芝麻web文件管理V1.00
编辑当前文件:/home/asmplong/www/ancien-site-2019/site/libraries/joomla/document/html/renderer/head.php
fetchHead($this->_doc); $buffer = ob_get_contents(); ob_end_clean(); return $buffer; } /** * Generates the head HTML and return the results as a string * * @param $document The document for which the head will be created * * @return string The head hTML * * @since 11.1 */ public function fetchHead(&$document) { // Trigger the onBeforeCompileHead event (skip for installation, since it causes an error) $app = JFactory::getApplication(); $app->triggerEvent('onBeforeCompileHead'); // Get line endings $lnEnd = $document->_getLineEnd(); $tab = $document->_getTab(); $tagEnd = ' />'; $buffer = ''; // Generate base tag (need to happen first) $base = $document->getBase(); if (!empty($base)) { $buffer .= $tab.'
'.$lnEnd; } // Generate META tags (needs to happen as early as possible in the head) foreach ($document->_metaTags as $type => $tag) { foreach ($tag as $name => $content) { if ($type == 'http-equiv') { $content.= '; charset=' . $document->getCharset(); $buffer .= $tab.'
getDescription(); if ($documentDescription) { $buffer .= $tab.'
'.$lnEnd; } $buffer .= $tab.'
'.$lnEnd; $buffer .= $tab.'
'.htmlspecialchars($document->getTitle(), ENT_COMPAT, 'UTF-8').'
'.$lnEnd; // Generate link declarations foreach ($document->_links as $link => $linkAtrr) { $buffer .= $tab.'
_styleSheets as $strSrc => $strAttr) { $buffer .= $tab . '
_style as $type => $content) { $buffer .= $tab.''.$lnEnd; } // Generate script file links foreach ($document->_scripts as $strSrc => $strAttr) { $buffer .= $tab.''.$lnEnd; } // Generate script language declarations. if (count(JText::script())) { $buffer .= $tab.''.$lnEnd; } foreach($document->_custom as $custom) { $buffer .= $tab.$custom.$lnEnd; } return $buffer; } }