<?
function replaceThemeTags($template) {
$themeReplace = array();
$themeReplace['NEWSTITLE'] = 'News Title';
$themeReplace['NEWSDATE'] = 'News Date';
if ( ! empty($themeReplace) ) {
foreach ( $themeReplace as $tag => $value ) {
// Make the replacement
$template = str_replace('<!--[' . $tag . ']-->', $value, $template);
}
}
// Return updated
return $template;
}
?>
Give the error:
Parse error: syntax error, unexpected $end in /home/content/11/5887411/html/metalclub/includes/init.php on line 1
The error seems to come from line:
foreach ( $themeReplace as $tag => $value ) {
as everything before it works when i comment it out
Bookmarks