e107_core/templates/header_default.php
Consider simplifying this complex logical expression. Open
Open
if($def == 'legacyCustom' || $def=='legacyDefault' ) // 0.6 themes.
{
// echo "MODE 0.6";
if($def == 'legacyCustom')
{
Reference to undeclared constant \TEXTDIRECTION
Open
Open
$htmlTag = "<html".(defined("TEXTDIRECTION") ? " dir='".TEXTDIRECTION."'" : "").(defined("CORE_LC") ? " lang=\"".CORE_LC."\"" : "").">";
- Exclude checks
Argument 3 (dep)
is 'jquery'
but \e107::css()
takes null
defined at /code/e107_handlers/e107_class.php:2692
Open
Open
e107::css('core', 'bootstrap-notify/css/bootstrap-notify.css', 'jquery');
- Exclude checks
Argument 1 (name)
is 'author'
but \e107::meta()
takes null
defined at /code/e107_handlers/e107_class.php:2861
Open
Open
if(!empty($pref['meta_author'][e_LANGUAGE])) e107::meta('author',$pref['meta_author'][e_LANGUAGE]);
- Exclude checks
Reference to undeclared constant \HTMLTAG
Open
Open
echo (defined('HTMLTAG') ? str_replace('THEME_LAYOUT', THEME_LAYOUT, HTMLTAG) : $htmlTag)."\n";
- Exclude checks
Argument 3 (dep)
is 'jquery'
but \e107::css()
takes null
defined at /code/e107_handlers/e107_class.php:2692
Open
Open
e107::css('core', 'core/all.jquery.css', 'jquery');
- Exclude checks
Argument 1 (name)
is 'dcterms.rights'
but \e107::meta()
takes null
defined at /code/e107_handlers/e107_class.php:2861
Open
Open
if(!empty($pref['meta_copyright'][e_LANGUAGE])) e107::meta('dcterms.rights',$pref['meta_copyright'][e_LANGUAGE]);
- Exclude checks
Reference to undeclared constant \TEXTDIRECTION
Open
Open
$e_js->themeCSS(TEXTDIRECTION.'.css');
- Exclude checks
Reference to undeclared constant \BODYTAG
Open
Open
$BODYTAG = str_replace('THEME_LAYOUT', THEME_LAYOUT, BODYTAG); // BC Fix, but will fail with PHP8.
- Exclude checks
Reference to undeclared constant \CSSORDER
Open
Open
$CSSORDER = deftrue('CSSORDER') ? explode(",",CSSORDER) : array('library', 'other','core','plugin','theme','inline');
- Exclude checks
Argument 2 (zone)
is false
but \e_jsmanager::renderJs()
takes int
defined at /code/e107_handlers/js_manager.php:1235
Open
Open
$e_js->renderJs($cssId, false, 'css');
- Exclude checks
Reference to undeclared constant \THEME_ONLOAD
Open
Open
$js_body_onload[] = THEME_ONLOAD;
- Exclude checks
Argument 1 (LAYOUT)
is ?array{}|?string|?string[]
but \e107::renderLayout()
takes string
defined at /code/e107_handlers/e107_class.php:338
Open
Open
e107::renderLayout($HEADER, $psc);
- Exclude checks
Argument 1 (haystack)
is ?array{}|?string|?string[]
but \strpos()
takes string
Open
Open
if(!deftrue('e_IFRAME') && (strpos($HEADER, "{ALERTS}") === false && strpos($FOOTER, "{ALERTS}") === false)) // Old theme, missing {ALERTS}
- Exclude checks
Argument 2 (content)
is 'width=device-width, initial-scale=1.0'
but \e107::meta()
takes null
defined at /code/e107_handlers/e107_class.php:2861
Open
Open
if(defined("VIEWPORT")) e107::meta('viewport',VIEWPORT); //BC ONLY
- Exclude checks
Reference to undeclared constant \META_MERGE
Open
Open
$diz_merge = (defined("META_MERGE") && META_MERGE != FALSE && $pref['meta_description'][e_LANGUAGE]) ? $pref['meta_description'][e_LANGUAGE]." " : "";
- Exclude checks
Reference to undeclared constant \META_MERGE
Open
Open
$key_merge = (defined("META_MERGE") && META_MERGE != FALSE && $pref['meta_keywords'][e_LANGUAGE]) ? $pref['meta_keywords'][e_LANGUAGE]."," : "";
- Exclude checks
Call to undeclared function \theme_head()
Open
Open
echo theme_head();
- Exclude checks
Variable $text
is undeclared Open
Open
unset($text);
- Exclude checks
Reference to undeclared constant \TEXTDIRECTION
Open
Open
if(defined('TEXTDIRECTION') && file_exists(THEME.'/'.strtolower(TEXTDIRECTION).'.css'))
- Exclude checks
Argument 3 (subject)
is ?array{}|?string|?string[]
but \preg_replace()
takes array|string
Open
Open
$HEADER = preg_replace('#(src|href)=("|\')([^:\'"]*)("|\')#','$1=$2'.THEME.'$3$4', $HEADER);
- Exclude checks
Argument 1 (haystack)
is ?array{}|?string|?string[]
but \strpos()
takes string
Open
Open
if(deftrue('e_FRONTPAGE') && ($noBody !== true) && strpos($HEADER, "{WMESSAGE") === false && strpos($FOOTER, "{WMESSAGE") === false) // Auto-detection to override old pref.
- Exclude checks
Argument 3 (external)
is 'css'
but \e_jsmanager::renderJs()
takes bool|true
defined at /code/e107_handlers/js_manager.php:1235
Open
Open
$e_js->renderJs($cssId, false, 'css');
- Exclude checks
Argument 1 (name)
is 'viewport'
but \e107::meta()
takes null
defined at /code/e107_handlers/e107_class.php:2861
Open
Open
if(defined("VIEWPORT")) e107::meta('viewport',VIEWPORT); //BC ONLY
- Exclude checks