Class WPGlobus_Config
Class WPGlobus_Config
Methods summary
public
|
|
public
|
#
init_current_language( )
Set the current language: if not found in the URL or REFERER, then keep the default |
public
|
#
on_activate( stdClass $object = null, array $options = array() )
Check plugin version and update versioning option |
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
protected
|
#
_init_language_table( )
Initialize the language table with the hard-coded names, locales and flags. |
protected
|
Properties summary
public
string
|
$default_language
Language by default |
#
'en'
|
public
string
|
$language
Current language. Should be set to default initially. |
#
'en'
|
public
string[]
|
$enabled_languages
Enabled languages |
#
array(
'en',
'es',
'de',
'fr',
'ru',
)
|
public
boolean
|
$hide_default_language
Hide from URL language by default |
#
true
|
public
string[]
|
$open_languages
Opened languages |
#
array()
|
public
array
|
$flag
Flag images configuration Look in /flags/ directory for a huge list of flags for usage |
#
array()
|
public
string
|
$flags_url
Location of flags (needs trailing slash!) |
#
''
|
public
array
|
$language_name
Stores languages in pairs code=>name |
#
array()
|
public
array
|
$en_language_name
Stores languages names in English |
#
array()
|
public
array
|
$locale
Stores locales |
#
array()
|
public
array
|
$enabled_locale
Stores enabled locales |
#
array()
|
public
array
|
$version
Stores version and update from WPGlobus Mini info |
#
array()
|
public
string
|
$show_flag_name
Use flag name for navigation menu : 'name' || 'code' || '' |
#
'code'
|
public
string
|
$nav_menu
Use navigation menu by slug for use in all nav menu set value to 'all' |
#
''
|
public
boolean
|
$selector_wp_list_pages
Add language selector to navigation menu which was created with wp_list_pages |
#
true
|
public
string
|
$custom_css
Custom CSS |
#
''
|
public
string
|
$option
WPGlobus option key |
#
'wpglobus_option'
|
public static
string
|
$option_versioning
WPGlobus option versioning key |
#
'wpglobus_option_versioning'
|
public
string
|
$option_language_names
WPGlobus option key for $language_name |
#
'wpglobus_option_language_names'
|
public
string
|
$option_en_language_names
WPGlobus option key for $en_language_name |
#
'wpglobus_option_en_language_names'
|
public
string
|
$option_locale
WPGlobus option key for $locale |
#
'wpglobus_option_locale'
|
public
string
|
$option_flags
WPGlobus option key for $flag |
#
'wpglobus_option_flags'
|
public
string
|
$option_post_meta_settings
WPGlobus option key for meta settings |
#
'wpglobus_option_post_meta_settings'
|
public
string
|
$css_editor
|
#
''
|
public
string
|
$toggle
WPGlobus devmode. |
#
'on'
|
public
array
|
$disabled_entities
|
#
array()
|
public
array
|
$extended_options
WPGlobus extended options can be added via filter 'wpglobus_option_sections' |
#
array()
|