function __construct() { parent::__construct(); $wpage = ICL_PLUGIN_FOLDER . '/menu/languages.php'; $title = 'Thematic - '; // Header switcher $this->add_option_checkbox($wpage, __('Add a list of languages to the site\'s header', 'sitepress'), 'header_language_selector', $title . __('Language selector options', 'sitepress'), 'checked'); $this->add_option_checkbox($wpage, __('Only include languages with translation in the languages list header', 'sitepress'), 'header_skip_languages', $title . __('More options', 'sitepress'), 'checked'); $this->add_option_checkbox($wpage, __('Load CSS for header languages list', 'sitepress'), 'header_load_css', $title . __('More options', 'sitepress'), 'checked'); if ($this->settings['header_language_selector']) { add_action('thematic_aboveheader', array(&$this, 'language_selector_header')); if ($this->settings['header_load_css']) { $this->load_css('css/selector-header.css'); } $this->check_sidebar_language_selector_widget(); } add_filter('wp_page_menu', array(&$this, 'filter_home_link')); add_action('thematic_header', array(&$this, 'remove_thematic_blogtitle'), 0); $footer_text = get_option('thm_footertext', true); if ($footer_text) { icl_register_string('theme ' . $this->name, 'Footer text', $footer_text); add_filter('thematic_footertext', array(&$this, 'translate_footer_text')); } $this->load_css('css/compatibility-package.css'); }
function __construct() { parent::__construct(); $wpage = ICL_PLUGIN_FOLDER . '/menu/languages.php'; $title = 'Default - '; $this->load_css('css/compatibility-package.css'); }
function __construct() { parent::__construct(); if (!is_admin()) { foreach ($this->translatable_strings as $option => $value) { $option_value = get_option($option); if (!$option_value) { continue; } $this->current_option = $option; add_filter('option_' . $option, array(&$this, 'filter_option')); } add_filter('option_headspace_options', array(&$this, 'filter_option_firsttimevisitor')); } else { foreach ($this->translatable_strings as $option => $value) { $option_value = get_option($option); if (!$option_value) { continue; } foreach ($value['values'] as $v) { if (!$option_value[$v]) { continue; } icl_register_string($this->context, $value['title'] . ' - ' . $this->make_title($v), $option_value[$v]); } } $first_time = get_option('headspace_options'); if (isset($first_time['site']['hss_firsttimevisitor']['message']) && !empty($first_time['site']['hss_firsttimevisitor']['message'])) { icl_register_string($this->context, 'Site Modules - First time visitor message', $first_time['site']['hss_firsttimevisitor']['message']); } } }
function __construct() { parent::__construct(); global $sitepress; if ($sitepress->get_current_language() != $sitepress->get_default_language()) { add_filter('genesis_seo_title', array($this, 'genesis_seo_title_filter')); } }
function __construct() { parent::__construct(); if (is_admin()) { add_action('init', array(&$this, 'register_strings')); } else { add_action('get_header', array(&$this, 'filter_options')); } $wpage = ICL_PLUGIN_FOLDER . '/menu/languages.php'; $title = 'Atahualpa - '; // Widget switcher CSS $this->add_option_checkbox($wpage, __('Load CSS for language selector widget', 'sitepress'), 'widget_load_css', $title . __('More options', 'sitepress'), 'checked'); if ($this->settings['widget_load_css']) { $this->load_css('css/selector-widget.css'); } else { if (!defined('ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS')) { define('ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS', true); } } $this->load_css('css/compatibility-package.css'); }
function __construct() { parent::__construct(); }