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 remove_thematic_blogtitle() { add_action('thematic_header',array(&$this,'add_thematic_blogtitle'),3); remove_action('thematic_header','thematic_blogtitle',3); } function add_thematic_blogtitle() { ?>
name,'Footer text',$str); } // do call the destructor of the parent class function __destruct(){ parent::__destruct(); } } $Thematic_theme_compatibility = new Thematic_theme_compatibility(); ?>