Page 1 of 1

xhtml validation - <head> problem

Posted: Mon 2. Jan 2006, 18:24
by erodzina
Hello,
Well i'm making my web xhtml 1.0 Trans. valid and only 2 errors left !! so, the "phpwcms" is xml ready...

But my question is where can i change the valiues for:
meta name="keywords"
meta name="description"

What im looking is place where can I ad / on the end after closing last "
right now everything has the ">" on end and should have "/>"

<meta name="description" content="website root level">
Should be:
<meta name="description" content="website root level" />

and
<meta name="keywords" content="keywords>
Should be:
<meta name="keywords" content="keywords />

where can i found this Code to change ?? in index.php i don't see it...

Posted: Mon 2. Jan 2006, 18:57
by DeXXus
"include/inc_front/content.func.inc.php"

Code: Select all

// insert keywords meta tag if not definied
//if(!stristr($block["htmlhead"], '"keywords"') && !empty($content["articles"][$aktion[1]]["article_keyword"])) {
if(!stristr($block["htmlhead"], '"keywords"') && !empty($content['all_keywords'])) {
	$content['all_keywords'] = explode (",", $content['all_keywords']);
	$content['all_keywords'] = array_map('trim', $content['all_keywords']);
	$content['all_keywords'] = array_diff($content['all_keywords'], array(''));
	$content['all_keywords'] = array_unique($content['all_keywords']);
	$block["htmlhead"] .= '<meta name="keywords" content="';
	$block["htmlhead"] .= html_specialchars(implode(', ', $content['all_keywords']))."\">\n";
}