Project

General

Profile

Bug #15681 ยป meta.patch

Administrator Admin, 2006-05-14 21:42

View differences:

meta.php 2006-05-14 21:25:47.000000000 +0200
}
$val=trim($val);
$regular[] = '<meta name="description" content="'.htmlspecialchars($val).'" />';
$DC[] = '<meta name="DC.Description" content="'.htmlspecialchars($val).'" />';
$DC[] = '<meta name="DC.description" content="'.htmlspecialchars($val).'" />';
}
if ($globalMeta['keywords'] || $globalMeta['keywords_2'] || $localKeywords) {
$val = trim($globalMeta['keywords']);
......
$val=trim(ereg_replace(',$','',trim($val)));
$val=implode(',',t3lib_div::trimExplode(',',$val,1));
$regular[] = '<meta name="keywords" content="'.htmlspecialchars($val).'" />';
$DC[] = '<meta name="DC.Subject" content="'.htmlspecialchars($val).'" />';
$DC[] = '<meta name="DC.subject" content="'.htmlspecialchars($val).'" />';
}
if ($globalMeta['robots']) {
$regular[] = '<meta name="robots" content="'.htmlspecialchars($globalMeta['robots']).'" />';
}
if ($globalMeta['copyright']) {
$regular[] = '<meta name="copyright" content="'.htmlspecialchars($globalMeta['copyright']).'" />';
$DC[] = '<meta name="DC.Rights" content="'.htmlspecialchars($globalMeta['copyright']).'" />';
$DC[] = '<meta name="DC.rights" content="'.htmlspecialchars($globalMeta['copyright']).'" />';
}
if ($globalMeta['language']) {
$regular[] = '<meta http-equiv="content-language" content="'.htmlspecialchars($globalMeta['language']).'" />';
$DC[] = '<meta name="DC.Language" scheme="NISOZ39.50" content="'.htmlspecialchars($globalMeta['language']).'" />';
$DC[] = '<meta name="DC.language" scheme="NISOZ39.50" content="'.htmlspecialchars($globalMeta['language']).'" />';
}
if ($globalMeta['email']) {
$regular[] = '<link rev="made" href="mailto:'.htmlspecialchars($globalMeta['email']).'" />';
......
}
if ($globalMeta['author']) {
$regular[] = '<meta name="author" content="'.htmlspecialchars($globalMeta['author']).'" />';
$DC[] = '<meta name="DC.Creator" content="'.htmlspecialchars($globalMeta['author']).'" />';
$DC[] = '<meta name="DC.creator" content="'.htmlspecialchars($globalMeta['author']).'" />';
}
if ($globalMeta['distribution']) {
$regular[] = '<meta name="distribution" content="'.htmlspecialchars($globalMeta['distribution']).'" />';
......
$content.= implode($regular,chr(10)).chr(10);
$content.= implode($DC,chr(10)).chr(10);
?>
?>
    (1-1/1)