SLPlus
extends SLP_Object_With_Objects
in package
The base plugin class for Store Locator Plus.
Table of Contents
Constants
- earth_radius_km = 6371
- earth_radius_mi = 3959
- locationPostType = 'store_page'
- locationTaxonomy = 'stores'
- menu_icon = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMC4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAzMy4zIDQyLjkiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMzLjMgNDIuOTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6dXJsKCNTVkdJRF8xXyk7fQ0KPC9zdHlsZT4NCjx0aXRsZT5TTFAtbG9nby1zbWFsbC1jb2xvcjwvdGl0bGU+DQo8bGluZWFyR3JhZGllbnQgaWQ9IlNWR0lEXzFfIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjMzNy43ODY3IiB5MT0iLTI4Ny40ODIyIiB4Mj0iMzY5LjA5NjYiIHkyPSItMjg3LjQ4MjIiIGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgLTMzNi42MiAtMjY1Ljk4NjcpIj4NCgk8c3RvcCAgb2Zmc2V0PSIwIiBzdHlsZT0ic3RvcC1jb2xvcjojRUY1MzIzIi8+DQoJP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: SLP_Actions
- $Activation : SLP_Admin_Activation
- $Activation : mixed
- $add_ons : SLP_AddOns
- $add_ons : mixed
- $AddOns : SLP_AddOns
- $Admin_Locations : SLP_Admin_Locations
- $Admin_Locations_Add : SLP_Admin_Locations_Add
- $admin_page_prefix : string
- $admin_page_prefix : mixed
- $AdminUI : SLP_Admin_UI
- $ajax : SLP_AJAX
- $AJAX : SLP_AJAX
- $AjaxHandler : SLP_AJAX
- $AjaxHandler : mixed
- $class_prefix : mixed
- $class_prefix : string
- $clean : array<string|int, mixed>
- $clean : mixed
- $Country_Manager : SLP_Country_Manager
- $current_addon : SLP_BaseClass_Addon
- $currentLocation : SLPlus_Location
- $currentLocation : mixed
- $database : SLP_Data
- $database : mixed
- $db : wpdb
- $db : mixed
- $dir : mixed
- $dir : string
- $dir : string
- $Experience_Admin_Locations : SLP_Experience_Admin_Locations
- $Helper : SLP_Admin_Helper
- $infoFetched : array<string|int, mixed>
- $infoFetched : mixed
- $installed_version : string
- $installed_version : mixed
- $Internet_Helper : SLP_Internet_Helper
- $javascript_is_forced : bool
- $javascript_is_forced : mixed
- $Location_Manager : SLP_Location_Manager
- $location_manager : mixed
- $main_id : int
- $min_add_on_versions : mixed
- $name : string
- $name : mixed
- $network_multisite : mixed
- $notifications : SLP_Notifications_Manager
- $notifications : mixed
- $objects : mixed
- $objects : array<string|int, mixed>
- $objects : array<string|int, mixed>
- $options : array<string|int, mixed>
- $options : mixed
- $options_default : array<string|int, mixed>
- $options_default : mixed
- $options_nojs : array<string|int, mixed>
- $options_nojs : mixed
- $options_nojs_default : array<string|int, mixed>
- $options_nojs_default : mixed
- $plugin_url : string
- $plugin_url : mixed
- $Power_Admin_General : SLP_Power_Admin_General
- $Power_Admin_General_Text : SLP_Power_Admin_General_Text
- $Power_Admin_Location_Filters : SLP_Power_Admin_Location_Filters
- $Power_Admin_Locations : SLP_Power_Admin_Locations
- $Power_Admin_Locations_Actions : SLP_Power_Admin_Locations_Actions
- $Power_AJAX : SLP_Power_AJAX
- $Power_Category_Manager : SLP_Power_Category_Manager
- $Power_Text : SLP_Power_Text
- $prefix : string
- $prefix : mixed
- $Premier_Category : SLP_Premier_Category
- $Premier_Category_UI : SLP_Premier_Category_UI
- $Premier_URL_Control : SLP_Premier_URL_Control
- $short_slug : mixed
- $shortcode_was_rendered : bool
- $shortcode_was_rendered : mixed
- $slider_rendered : bool
- $slider_rendered : mixed
- $slp_store_url : string
- $slp_store_url : mixed
- $slplus : SLPlus
- $slug : string
- $slug : mixed
- $SmartOptions : SLP_SmartOptions
- $support_url : string
- $support_url : mixed
- $Text : SLP_Text
- $UI : SLP_UI
- $url : string
- $url : mixed
- $url_main_slp_site : mixed
- $userMetaKeys : array<string|int, mixed>
- $userMetaKeys : mixed
- $uses_slplus : mixed
- $uses_slplus : bool
- $WPML : mixed
- $WPOption_Manager : SLP_WPOption_Manager
- $slplus : mixed
- $main_id : mixed
Methods
- __construct() : mixed
- Initialize a new SLPlus Object
- __get() : SLPlus_BaseClass_Object
- __isset() : bool
- add_actions() : mixed
- Setup WordPress action scripts.
- add_meta_links() : string
- Add meta links.
- add_object() : mixed
- addon() : mixed|null
- Return an active addon object.
- auto_load() : mixed
- Auto-loads classes whenever new ClassName() is called.
- createobject_AJAX() : mixed
- Create the AJAX processing object and attach to this->ajax
- enqueue_google_maps_script() : mixed
- Enqueue the Google Maps Script
- find_addon() : mixed|null|SLPlus
- Find add on by class name.
- get_apikey() : mixed|void
- Get an API key for SLP
- get_instance() : SLPlus_BaseClass_Object
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- initialize() : mixed
- Finish our starting constructor elements.
- initialize_after_plugins_loaded() : mixed
- Things to do after all plugins are loaded.
- instantiate() : null|object
- Instantiate an object of the noted class.
- is_CheckTrue() : bool|string
- Return '1' if the given value is set to 'true', 'on', or '1' (case insensitive).
- is_func_available() : mixed
- Check if certain safe mode restricted functions are available.
- is_main_blog() : bool
- Are we on the main blog ID (first site)?
- is_valid_url() : bool
- Checks if a URL is valid.
- load_jquery_theme() : mixed
- Load the selected jQuery UI theme.
- recenter_map() : mixed
- Re-center the map as needed.
- sanitize_things() : mixed
- Sanitize some stuff we care about.
- set_properties() : mixed
- Set our properties.
- set_ValidOptions() : mixed
- Set valid options from the incoming REQUEST
- set_ValidOptionsNoJS() : mixed
- Set valid options from the incoming REQUEST
- ua_is_a_bot() : bool
- Check if User Agent is a bot.
- at_startup() : mixed
- Things to do at startup after this baby is initialized. Override in your class.
- set_default_object_options() : mixed
- Set default options for objects. Override in your class.
- augment_class() : string
- Augment the class names so we can reference simple property names.
- auto_instantiate() : mixed
- Any object with auto_instantiate set to true is instantiate during initialization.
- get_google_maps_url() : mixed
- Get the Google Maps URL (front end)
- get_main_blog_id() : int|null
- Get the main blog ID.
- set_map_center_fallback() : mixed
- Set the map center fallback for the selected country.
Constants
earth_radius_km
public
mixed
earth_radius_km
= 6371
earth_radius_mi
public
mixed
earth_radius_mi
= 3959
locationPostType
public
mixed
locationPostType
= 'store_page'
locationTaxonomy
public
mixed
locationTaxonomy
= 'stores'
menu_icon
public
mixed
menu_icon
= 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMC4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAzMy4zIDQyLjkiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMzLjMgNDIuOTsiIHhtbDpzcGFjZT0icHJlc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C41LDQuNywxMS42LDAuOCwxNi41TDI2LjUsMjVsLTkuNywxMi4xTDE0LDMzLjZsMS4zLDAuMWgwLjJjMC45LDAsMS41LTAuNywxLjUtMS42YzAtMC44LTAuNi0xLjQtMS40LTEuNQ0KCWMtMS43LTAuMi0zLjUtMC4yLTUuMi0wLjJjLTAuNiwwLjEtMS4xLDAuNy0xLjIsMS4zbC0wLjYsNC42QzguNiwzNy4yLDkuMiwzNy45LDEwLDM4aDAuMmMwLjgsMCwxLjQtMC42LDEuNS0xLjRsMC4xLTAuOWw0LjQsNS40DQoJYzAuMywwLjMsMC44LDAuNCwxLjEsMC4xYzAsMCwwLjEtMC4xLDAuMS0wLjFMMjksMjYuOGwwLDBDMzEuMiwyNCwzMi40LDIwLjcsMzIuNSwxNy4yeiIvPg0KPC9zdmc+DQo='
web_timeout
public
mixed
web_timeout
= 30
Properties
$Actions
public
SLP_Actions
$Actions
Manages high-level WordPress action setup.
$Activation
public
SLP_Admin_Activation
$Activation
$Activation
public
mixed
$Activation
$add_ons
public
SLP_AddOns
$add_ons
TODO: remove when all ->add-ons references are ->AddOns Remove (MUP, CEX, ELM, GFI, J, SMI, UML)
$add_ons
public
mixed
$add_ons
$AddOns
public
SLP_AddOns
$AddOns
Manager our add on objects and meta.
$Admin_Locations
public
SLP_Admin_Locations
$Admin_Locations
Locations admin interface.
$Admin_Locations_Add
public
SLP_Admin_Locations_Add
$Admin_Locations_Add
Manage location add UX.
$admin_page_prefix
public
string
$admin_page_prefix
Admin page prefix, needs to be changed if the
$admin_page_prefix
public
mixed
$admin_page_prefix
= \SLP_ADMIN_PAGEPRE
$AdminUI
public
SLP_Admin_UI
$AdminUI
TODO: remove when all ->AdminUI references are Use SLP_Admin_UI::get_instance() for Admin_UI references. (GFI ,
-- SLP
$ajax
public
SLP_AJAX
$ajax
TODO: remove when all references are ->AJAX not ->ajax
$AJAX
public
SLP_AJAX
$AJAX
$AjaxHandler
public
SLP_AJAX
$AjaxHandler
TODO: remove when all things use ->AJAX (GFI , GFL , UML)
$AjaxHandler
public
mixed
$AjaxHandler
$class_prefix
public
mixed
$class_prefix
= 'SLP_'
$class_prefix
public
string
$class_prefix
the prefix that goes before all our classes
$clean
public
array<string|int, mixed>
$clean
Sanitized stuff we care about.
$clean
public
mixed
$clean
= array('act' => '', 'action' => '', 'deactivate' => '', 'locationID' => 0, 'option_page' => '', 'orderBy' => '', 'page' => '', 'selected_nav_element' => '', 'sortorder' => '', 'start' => 0)
$Country_Manager
public
SLP_Country_Manager
$Country_Manager
$current_addon
public
SLP_BaseClass_Addon
$current_addon
The current addon being processed.
$currentLocation
public
SLPlus_Location
$currentLocation
The current location.
$currentLocation
public
mixed
$currentLocation
$database
public
SLP_Data
$database
The data interface helper.
$database
public
mixed
$database
$db
public
wpdb
$db
The global $wpdb object for WordPress.
$db
public
mixed
$db
$dir
public
mixed
$dir
$dir
public
string
$dir
Full path to this plugin directory.
$dir
public
string
$dir
the root directory for this theme
$Experience_Admin_Locations
public
SLP_Experience_Admin_Locations
$Experience_Admin_Locations
-- Premier Plugin
$Helper
public
SLP_Admin_Helper
$Helper
Methods that handle generic functions we use in a few classes.
$infoFetched
public
array<string|int, mixed>
$infoFetched
Array of slugs + booleans for plugins we've already fetched info for. named array, key = slug, value = true
$infoFetched
public
mixed
$infoFetched
= array()
$installed_version
public
string
$installed_version
The version that was installed at the start of the plugin (prior installed version).
$installed_version
public
mixed
$installed_version
$Internet_Helper
public
SLP_Internet_Helper
$Internet_Helper
Assist with Internet queries like remote gets and JSON parsing.
$javascript_is_forced
public
bool
$javascript_is_forced
Quick reference for the Force Load JavaScript setting.
$javascript_is_forced
public
mixed
$javascript_is_forced
= \false
$Location_Manager
public
SLP_Location_Manager
$Location_Manager
Higher level location manager things like initial distance updater and total location count management.
$location_manager
public
mixed
$location_manager
$main_id read-only
public
int
$main_id
The main blog ID.
$min_add_on_versions
public
mixed
$min_add_on_versions
= array(
'slp-premier' => '2210.05.00',
'slp-power' => '2210.05.00',
'slp-experience' => '2210.05',
// 3rd Party
'slp-gravity-forms-integration' => '4.7.6',
'slp-gravity-forms-location-free' => '4.7.10',
// Unsupported
'slp-janitor' => '99.99.99',
'slp-extended-data-manager' => '99.99.99',
'slp-contact-extender' => '99.99.99',
'slp-directory-builder' => '99.99.99',
'slp-enhanced-map' => '99.99.99',
'slp-enhanced-results' => '99.99.99',
'slp-enhanced-search' => '99.99.99',
'slp-pages' => '99.99.99',
'slp-pro' => '99.99.99',
'slp-tagalong' => '99.99.99',
'slp-widgets' => '99.99.99',
'slp-event-location-manager' => '99.99.99',
'slp-multi-map' => '99.99.99',
'slp-social-media-extender' => '99.99.99',
'slp-user-managed-locations' => '99.99.99',
)
$name
public
string
$name
TODO: deprecate when no longer referenced use SLPLUS_NAME constant. (ELM, SME, UML, J, PAGES )
$name
public
mixed
$name
= \SLPLUS_NAME
$network_multisite
public
mixed
$network_multisite
= \false
$notifications
public
SLP_Notifications_Manager
$notifications
$notifications
public
mixed
$notifications
$objects
public
mixed
$objects
$objects
public
array<string|int, mixed>
$objects
Objects we care about, similar to objects of objects.
$objects
public
array<string|int, mixed>
$objects
key = class name, array of attributes() auto_instantiate = true , instantiate the object when this object initializes object = the instantiated object options = default startup options subdir = the subdirectory (from theme root) that contains the class definition
$options
public
array<string|int, mixed>
$options
The options that the user has set for Store Locator Plus that get localized to the slp.js script.
$options
public
mixed
$options
= array(
'ignore_radius' => '0',
// Passed in as form var from Experience
'map_domain' => 'maps.google.com',
'no_autozoom' => '0',
)
$options_default
public
array<string|int, mixed>
$options_default
The default options (before being read from DB)
$options_default
public
mixed
$options_default
= array()
$options_nojs
public
array<string|int, mixed>
$options_nojs
The options that the user has set for Store Locator Plus that are NOT localized to the slp.js script.
$options_nojs
public
mixed
$options_nojs
= array('broadcast_timestamp' => '0', 'default_country' => 'us', 'extended_data_tested' => '0', 'map_language' => 'en', 'next_field_id' => 1, 'next_field_ported' => '', 'premium_user_id' => '', 'premium_subscription_id' => '', 'radius_behavior' => 'always_use', 'slplus_plugindir' => \SLPLUS_PLUGINDIR, 'slplus_basename' => \SLPLUS_BASENAME, 'themes_last_updated' => '0')
$options_nojs_default
public
array<string|int, mixed>
$options_nojs_default
The default options_nojs (before being read from DB).
$options_nojs_default
public
mixed
$options_nojs_default
= array()
$plugin_url
public
string
$plugin_url
The URL that reaches the home directory for the plugin.
$plugin_url
public
mixed
$plugin_url
= \SLPLUS_PLUGINURL
$Power_Admin_General
public
SLP_Power_Admin_General
$Power_Admin_General
$Power_Admin_General_Text
public
SLP_Power_Admin_General_Text
$Power_Admin_General_Text
$Power_Admin_Location_Filters
public
SLP_Power_Admin_Location_Filters
$Power_Admin_Location_Filters
$Power_Admin_Locations
public
SLP_Power_Admin_Locations
$Power_Admin_Locations
$Power_Admin_Locations_Actions
public
SLP_Power_Admin_Locations_Actions
$Power_Admin_Locations_Actions
$Power_AJAX
public
SLP_Power_AJAX
$Power_AJAX
$Power_Category_Manager
public
SLP_Power_Category_Manager
$Power_Category_Manager
$Power_Text
public
SLP_Power_Text
$Power_Text
$prefix
public
string
$prefix
TODO: deprecate when all references use the SLPLUS_PREFIX constant (MUP, ELM, GFI, SME, UML)
$prefix
public
mixed
$prefix
= \SLPLUS_PREFIX
$Premier_Category
public
SLP_Premier_Category
$Premier_Category
$Premier_Category_UI
public
SLP_Premier_Category_UI
$Premier_Category_UI
$Premier_URL_Control
public
SLP_Premier_URL_Control
$Premier_URL_Control
-- Power Plugin
$short_slug
public
mixed
$short_slug
= 'store-locator-le'
$shortcode_was_rendered
public
bool
$shortcode_was_rendered
$shortcode_was_rendered
public
mixed
$shortcode_was_rendered
= \false
$slider_rendered
public
bool
$slider_rendered
True if slider was rendered, preventing multiple inline CSS calls.
$slider_rendered
public
mixed
$slider_rendered
= \false
$slp_store_url
public
string
$slp_store_url
The SLP Store URL.
$slp_store_url
public
mixed
$slp_store_url
= 'https://wordpress.storelocatorplus.com/'
$slplus
public
SLPlus
$slplus
$slug
public
string
$slug
What slug do we go by? May need to exists if we "eat our own food" extending base classes
$slug
public
mixed
$slug
$SmartOptions
public
SLP_SmartOptions
$SmartOptions
The new settings interface for this plugin.
$support_url
public
string
$support_url
The SLP Support Site URL.
$support_url
public
mixed
$support_url
= 'https://docs.storelocatorplus.com'
$Text
public
SLP_Text
$Text
The text manager to corral i18n/l10n gettext stuff.
$UI
public
SLP_UI
$UI
The front-end user interface functions.
$url
public
string
$url
Full URL to this plugin directory.
$url
public
mixed
$url
$url_main_slp_site
public
mixed
$url_main_slp_site
= 'https://storelocatorplus.com'
$userMetaKeys
public
array<string|int, mixed>
$userMetaKeys
List of valid user meta keys for SLP user meta updates.
$userMetaKeys
public
mixed
$userMetaKeys
= ['locations_per_page']
$uses_slplus
public
mixed
$uses_slplus
= \false
$uses_slplus
public
bool
$uses_slplus
Set to true (default) if the object needs access to the SLPlus plugin object.
$WPML
public
mixed
$WPML
$WPOption_Manager
public
SLP_WPOption_Manager
$WPOption_Manager
Augment the WordPress get/update/delete option functions with fiters.
-- Experience Plugin
$slplus
protected
mixed
$slplus
$main_id
private
mixed
$main_id
Methods
__construct()
Initialize a new SLPlus Object
public
__construct() : mixed
__get()
public
__get(string $property) : SLPlus_BaseClass_Object
Parameters
- $property : string
Return values
SLPlus_BaseClass_Object__isset()
public
__isset(string $property) : bool
Parameters
- $property : string
Return values
booladd_actions()
Setup WordPress action scripts.
public
add_actions() : mixed
Note: admin_menu is not called on every admin page load Reference: http://codex.wordpress.org/Plugin_API/Action_Reference
add_meta_links()
Add meta links.
public
add_meta_links(array<string|int, string> $links, string $file) : string
TODO: ADMIN ONLY
Parameters
- $links : array<string|int, string>
- $file : string
Return values
stringadd_object()
public
add_object( $object) : mixed
Parameters
addon()
Return an active addon object.
public
addon( $slug) : mixed|null
Parameters
Return values
mixed|null —null if not add on is active.
auto_load()
Auto-loads classes whenever new ClassName() is called.
public
auto_load( $class_name) : mixed
Loads them from the module/
Parameters
createobject_AJAX()
Create the AJAX processing object and attach to this->ajax
public
createobject_AJAX() : mixed
Tags
enqueue_google_maps_script()
Enqueue the Google Maps Script
public
enqueue_google_maps_script() : mixed
find_addon()
Find add on by class name.
public
find_addon(string $class_name) : mixed|null|SLPlus
Parameters
- $class_name : string
Return values
mixed|null|SLPlusget_apikey()
Get an API key for SLP
public
get_apikey() : mixed|void
Return values
mixed|voidget_instance()
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
public
static get_instance([bool $no_global = false ][, mixed $params = array() ]) : SLPlus_BaseClass_Object
TODO: PHP7.4 and PHP8.0 the static instance variable returns an object matching $class TODO: PHP8.1 the static instance continually returns the FIRST object (SLP_Admin_Helper) every time -- it is like PHP8.1 static instance is bound to base_class-object versus the calling class object
Parameters
- $no_global : bool = false
-
set to true to skip assigning object to SLP global as a property.
- $params : mixed = array()
-
object init params
Return values
SLPlus_BaseClass_Objectinitialize()
Finish our starting constructor elements.
public
initialize() : mixed
initialize_after_plugins_loaded()
Things to do after all plugins are loaded.
public
initialize_after_plugins_loaded() : mixed
instantiate()
Instantiate an object of the noted class.
public
instantiate(string $class[, array<string|int, mixed> $options = array() ]) : null|object
Parameters
- $class : string
- $options : array<string|int, mixed> = array()
Return values
null|objectis_CheckTrue()
Return '1' if the given value is set to 'true', 'on', or '1' (case insensitive).
public
is_CheckTrue( $value[, string $return_type = 'boolean' ]) : bool|string
Return '0' otherwise.
Useful for checkbox values that may be stored as 'on' or '1'.
Parameters
Return values
bool|stringis_func_available()
Check if certain safe mode restricted functions are available.
public
is_func_available( $funcname) : mixed
exec, set_time_limit
Parameters
is_main_blog()
Are we on the main blog ID (first site)?
public
is_main_blog() : bool
Return values
boolis_valid_url()
Checks if a URL is valid.
public
is_valid_url( $url) : bool
Parameters
Return values
boolload_jquery_theme()
Load the selected jQuery UI theme.
public
load_jquery_theme([string $theme = 'none' ]) : mixed
Parameters
- $theme : string = 'none'
-
the jQuery UI theme
recenter_map()
Re-center the map as needed.
public
recenter_map() : mixed
Sets Center Map At ('map-center') and Lat/Lng Fallback if any of those entries are blank.
Uses the Map Domain ('default_country') as the source for the new center.
sanitize_things()
Sanitize some stuff we care about.
public
sanitize_things() : mixed
Called via add_action( 'plugins_loaded' , ... )
set_properties()
Set our properties.
public
set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
set_ValidOptions()
Set valid options from the incoming REQUEST
public
set_ValidOptions(mixed $val, string $key) : mixed
Parameters
- $val : mixed
-
- the value of a form var
- $key : string
-
- the key for that form var
set_ValidOptionsNoJS()
Set valid options from the incoming REQUEST
public
set_ValidOptionsNoJS(mixed $val, string $key) : mixed
Set this if the incoming value is not an empty string.
Parameters
- $val : mixed
-
- the value of a form var
- $key : string
-
- the key for that form var
ua_is_a_bot()
Check if User Agent is a bot.
public
ua_is_a_bot() : bool
Return values
boolat_startup()
Things to do at startup after this baby is initialized. Override in your class.
protected
at_startup() : mixed
set_default_object_options()
Set default options for objects. Override in your class.
protected
set_default_object_options() : mixed
augment_class()
Augment the class names so we can reference simple property names.
private
augment_class(string $class) : string
Parameters
- $class : string
Return values
stringauto_instantiate()
Any object with auto_instantiate set to true is instantiate during initialization.
private
auto_instantiate() : mixed
get_google_maps_url()
Get the Google Maps URL (front end)
private
get_google_maps_url() : mixed
get_main_blog_id()
Get the main blog ID.
private
get_main_blog_id() : int|null
Return values
int|nullset_map_center_fallback()
Set the map center fallback for the selected country.
private
set_map_center_fallback([string $for = 'latlng' ]) : mixed
Parameters
- $for : string = 'latlng'
-
latlng | lat | lng