-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WS-266] Add location checks for Canada & Indonesia
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
* @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'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters