xhtml validation - <head> problem

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
erodzina
Posts: 33
Joined: Mon 31. Oct 2005, 12:19

xhtml validation - <head> problem

Post 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...
hi from Poland,
Marcin - site owner
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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";
}
Post Reply