$this->_head['title'] = $title ? $GLOBALS['mosConfig_sitename'] . ' - '. $title : $GLOBALS['mosConfig_sitename'];
$this->_head['title'] = $title ? $title .' - '. $GLOBALS['mosConfig_sitename'] : $GLOBALS['mosConfig_sitename'];
function appendMetaTag( $name, $content ) {
$name = trim( htmlspecialchars( $name ) );
$n = count( $this->_head['meta'] );
for ($i = 0; $i < $n; $i++) {
if ($this->_head['meta'][$i][0] == $name) {
$content = trim( htmlspecialchars( $content ) );
if ( $content ) {
if ( !$this->_head['meta'][$i][1] ) {
$this->_head['meta'][$i][1] = $content ;
} else {
$this->_head['meta'][$i][1] = $content .', '. $this->_head['meta'][$i][1];
}
}
return;
}
}
$this->addMetaTag( $name , $content );
}
function appendMetaTag( $name, $content ) {
global $mosConfig_MetaDesc, $mosConfig_MetaKeys, $option;
$name = trim( htmlspecialchars( $name ) );
$n = count( $this->_head['meta'] );
// to correct description display (avoid coma after full stop).
if (strtolower($name) == "description") $delimiter = " "; else $delimiter = ", ";
for ($i = 0; $i < $n; $i++) {
if ($this->_head['meta'][$i][0] == $name) {
$content = trim( htmlspecialchars( $content ) );
$this->_head['meta'][$i][1] .= (strlen($this->_head['meta'][$i][1]) > 0 && strlen($content) > 0 ? $delimiter : '') . $content;
// we're changing default behaviour for home page
if ( $option == "com_frontpage" && strtolower($name) == "description") $this->_head['meta'][$i][1] = $mosConfig_MetaDesc ;
if ( $option == "com_frontpage" && strtolower($name) == "keywords") $this->_head['meta'][$i][1] = $mosConfig_MetaKeys ;
return;
}
}
$this->addMetaTag( $name, $content );
}
Time to create page: 0.048 seconds