// e107::link('rel="preload" href="{THEME}fonts/myfont.woff2?v=2.2.0" as="font" type="font/woff2" crossorigin'); // added to
// e107::meta('apple-mobile-web-app-capable','yes'); $login_iframe = e107::pref('theme', 'login_iframe', false); if(THEME_LAYOUT === "splash" && $login_iframe) { define('e_IFRAME', '0'); } } /** * Override how THEME_STYLE is loaded. Duplicates will be automatically removed. * @return void */ function css() { e107::css('theme', THEME_STYLE); e107::css('theme', 'style.css'); // always load style.css last. e107::css('inline', '#carousel-hero.carousel { margin-bottom: 80px; }'); } /** * @param string $text * @return string without p tags added always with bbcodes * note: this solves W3C validation issue and CSS style problems * use this carefully, mainly for custom menus, let decision on theme developers */ function remove_ptags($text = '') // FIXME this is a bug in e107 if this is required. { $text = str_replace(array("", "
"), "", $text); return $text; } function tablestyle($caption, $text, $mode='', $data = array()) { $style = varset($data['setStyle'], 'default'); // Override style based on mode. switch($mode) { case 'wmessage': case 'wm': $style = 'wmessage'; break; case "login_page": case "fpw": case "coppa": case "signup": $style = 'splash'; break; case 'news_months_menu': $style = 'listgroup'; break; } echo "\n\n\n"; if($style === 'listgroup' && empty($data['list'])) { $style = 'cardmenu'; } if($style === 'cardmenu' && !empty($data['list'])) { $style = 'listgroup'; } /* Changing card look via prefs */ if(!e107::pref('theme', 'cardmenu_look') && $style == 'cardmenu') { $style = 'menu'; } // echo "\n\n\n"; if(deftrue('e_DEBUG')) { echo "\n\n\n"; } switch($style) { case 'wmessage': echo ''.$this->remove_ptags($text).'
'; echo '