mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 20:51:53 +02:00
Admin-nav and frontend keyword/meta error. PHP5.4
This commit is contained in:
parent
6bde567964
commit
f3f7826c95
@ -490,11 +490,13 @@ function render_meta($type)
|
||||
}
|
||||
|
||||
// legay meta-tag checks.
|
||||
if(empty(e107::getUrl()->response()->getMetaKeywords()))
|
||||
$isKeywords = e107::getUrl()->response()->getMetaKeywords();
|
||||
$isDescription = e107::getUrl()->response()->getMetaDescription();
|
||||
if(empty($isKeywords))
|
||||
{
|
||||
echo (defined("META_KEYWORDS")) ? "\n<meta name=\"keywords\" content=\"".$key_merge.META_KEYWORDS."\" />\n" : render_meta('keywords');
|
||||
}
|
||||
if(empty(e107::getUrl()->response()->getMetaDescription()))
|
||||
if(empty($isDescription))
|
||||
{
|
||||
echo (defined("META_DESCRIPTION")) ? "\n<meta name=\"description\" content=\"".$diz_merge.META_DESCRIPTION."\" />\n" : render_meta('description');
|
||||
}
|
||||
@ -503,7 +505,7 @@ if(empty(e107::getUrl()->response()->getMetaDescription()))
|
||||
//echo render_meta('author');
|
||||
echo render_meta('tag');
|
||||
|
||||
unset($key_merge,$diz_merge);
|
||||
unset($key_merge,$diz_merge,$isKeywords,$isDescription);
|
||||
|
||||
// ---------- Favicon ---------
|
||||
if (file_exists(THEME."favicon.ico"))
|
||||
|
@ -27,7 +27,7 @@ $E_ADMIN_NAVIGATION['start_other'] = '<ul class="nav nav-admin navbar-nav navbar
|
||||
$E_ADMIN_NAVIGATION['button'] = '
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" role="button" data-toggle="dropdown" data-target="#" href="{LINK_URL}" title="{LINK_TEXT}">
|
||||
{LINK_IMAGE}
|
||||
{LINK_IMAGE} <span class="hidden-md hidden-lg">{LINK_TEXT}</span>
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
{SUB_MENU}
|
||||
|
Loading…
x
Reference in New Issue
Block a user