I don't think that will re-arrange the code.
Here are the codes in content.func.inc.php
Code: Select all
// add possible redirection code (article summary) to $block["htmlhead"];
$block["htmlhead"] = render_PHPcode($block["htmlhead"]);
$block["htmlhead"] = $content["redirect"]["code"].$block["htmlhead"]."\n"."\n<!-- position A-->\n";
//$block["htmlhead"] .= '<meta name="generator" content="phpwcms v'.$phpwcms['version']."\">\n";
// insert description meta tag if not definied
if(!stristr($block["htmlhead"], '"description"') && $content["struct"][$aktion[0]]["acat_info"]) {
$block["htmlhead"] .= '<meta name="description" content="';
$block["htmlhead"] .= html_specialchars($content["struct"][$aktion[0]]["acat_info"])."\">\n";
}
// 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";
}
// new $block['custom_htmlhead'] var (array) for usage in own rendering stuff.
// you will be able to use $GLOBALS['block']['custom_htmlhead']['myheadname']
// always check if you want to use same head code only once
if(count($block['custom_htmlhead'])) {
$block["htmlhead"] .= implode("\n", $block['custom_htmlhead'])."\n";
}
As you can see the custom_htmlhead is after the meta keywords.
However, the result is the meta keyword is displayed after the custom_htmlhead text ( the place you reply above).
I've tried to re-arrange the codes, but it couldn't do anything.
Any idea?
Thank you