diff --git a/include/themecontroller.php b/include/themecontroller.php index d695d6d..b7a8cf0 100644 --- a/include/themecontroller.php +++ b/include/themecontroller.php @@ -10,8 +10,6 @@ public function __construct() { } public function init() { - $this->setPluginWarnings(); - add_event_handler('loc_begin_page_header', array($this, 'assignConfig')); $shortname = $this->config->comments_disqus_shortname; if ($this->config->comments_type == 'disqus' && !empty($shortname)) { @@ -19,13 +17,6 @@ public function init() { } } - private function setPluginWarnings() { - global $pwg_loaded_plugins, $page; - if (isset($pwg_loaded_plugins['language_switch'])) { - $page['errors'][] = l10n('Language Switch plugin is enabled but is not compatible with the Bootstrap Default theme. Please disable it and download the Bootstrap Default Language Switch instead.'); - } - } - public function assignConfig() { global $template; $template->assign('theme_config', $this->config); diff --git a/template/language_switch_flags.tpl b/template/language_switch_flags.tpl new file mode 100644 index 0000000..f599bc9 --- /dev/null +++ b/template/language_switch_flags.tpl @@ -0,0 +1,21 @@ +