diff --git a/wmGeolocation.php b/wmGeolocation.php index 6d70fbc..2da1b90 100644 --- a/wmGeolocation.php +++ b/wmGeolocation.php @@ -3,7 +3,7 @@ * World Manager geolocation plugin for Joomla. * This is required to use the wmCareers & wmLanguageSwitch plugins. * @package wmGeolocation - * @version 1.0 + * @version 1.1 * @author Grant McNally * @link https://github.com/grantism/wmGeolocation */ @@ -110,4 +110,18 @@ public function isAustralia() { public function isUnitedStates() { return $this->getCountryIsoCode() == 'US'; } -} + + /** + * @return bool + */ + public function isCanada() { + return $this->getCountryIsoCode() == 'CA'; + } + + /** + * @return bool + */ + public function isIndonesia() { + return $this->getCountryIsoCode() == 'ID'; + } +} \ No newline at end of file diff --git a/wmGeolocation.xml b/wmGeolocation.xml index b5d449a..a5509fd 100644 --- a/wmGeolocation.xml +++ b/wmGeolocation.xml @@ -2,6 +2,9 @@ World Manager - Geolocation World Manager geolocation plugin for Joomla. + 1.1 + December 2019 + World Manager wmGeolocation.php