Use the item's title for the KEYWORDS tag if the item does not have any tags.
This commit is contained in:
parent
e8802e5859
commit
1c2b18a439
@ -12,6 +12,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If $metaTags is empty, use the item's title instead.
|
||||||
|
if ($metaTags == "") {
|
||||||
|
$metaTags = p::clean($item->title);
|
||||||
|
}
|
||||||
|
|
||||||
$metaDescription = "";
|
$metaDescription = "";
|
||||||
$metaDescription = trim(nl2br(p::purify($item->description)));
|
$metaDescription = trim(nl2br(p::purify($item->description)));
|
||||||
// If description is empty, use title instead.
|
// If description is empty, use title instead.
|
||||||
|
Reference in New Issue
Block a user