addons
11 years ago
external
11 years ago
rules
11 years ago
class-popup-admin.php
11 years ago
class-popup-base.php
11 years ago
class-popup-database.php
11 years ago
class-popup-help.php
11 years ago
class-popup-item.php
11 years ago
class-popup-posttype.php
11 years ago
class-popup-public.php
11 years ago
class-popup-rule.php
11 years ago
config-defaults.php
11 years ago
config-defaults.php
33 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Defines default plugin configuration values. |
| 4 | * These values can be overridden inside wp-config.php |
| 5 | */ |
| 6 | |
| 7 | // Multi-Site setting |
| 8 | // True .. the plugin operates on a global site-admin basis |
| 9 | // False .. the plugin operates on a blog by blog basis |
| 10 | if ( ! defined( 'PO_GLOBAL' ) ) { |
| 11 | define( 'PO_GLOBAL', false ); |
| 12 | } |
| 13 | |
| 14 | // The url that we are using to return the country. |
| 15 | // It should only return the country code for the passed IP address! |
| 16 | # Example: |
| 17 | # define( 'PO_REMOTE_IP_URL', 'http://api.hostip.info/country.php?ip=%ip%' ); |
| 18 | if ( ! defined( 'PO_REMOTE_IP_URL' ) ) { |
| 19 | define( 'PO_REMOTE_IP_URL', '' ); |
| 20 | } |
| 21 | |
| 22 | // Fallback value in case the PO_REMOTE_IP_URL did not return any value. |
| 23 | // Either set to a valid country code (US, DE, AU, ...) |
| 24 | // Or set to False to not show the popup when country could not be resolved. |
| 25 | if ( ! defined( 'PO_DEFAULT_COUNTRY' ) ) { |
| 26 | define( 'PO_DEFAULT_COUNTRY', 'US' ); |
| 27 | } |
| 28 | |
| 29 | // Set default cookie expiry time (in days). |
| 30 | if ( ! defined( 'PO_DEFAULT_EXPIRY' ) ) { |
| 31 | define( 'PO_DEFAULT_EXPIRY', 365 ); |
| 32 | } |
| 33 |