Пример #1
0
    if (substr_count($url, '?')) {
        $url .= "&view=rss";
    } else {
        $url .= "?view=rss";
    }
    $url = elgg_format_url($url);
    $feedref = <<<END

\t<link rel="alternate" type="application/rss+xml" title="RSS" href="{$url}" />

END;
} else {
    $feedref = "";
}
$js = elgg_get_loaded_js('head');
$css = elgg_get_loaded_css();
$version = get_version();
$release = get_version(true);
?>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="ElggRelease" content="<?php 
echo $release;
?>
" />
	<meta name="ElggVersion" content="<?php 
echo $version;
?>
" />
	<title><?php 
echo $title;
?>
Пример #2
0
 * @internal It's dangerous to alter this view.
 * 
 * @uses $vars['title'] The page title
 * @uses $vars['metas'] Array of meta elements
 * @uses $vars['links'] Array of links
 */
$metas = elgg_extract('metas', $vars, array());
$links = elgg_extract('links', $vars, array());
echo elgg_format_element('title', array(), $vars['title'], array('encode_text' => true));
foreach ($metas as $attributes) {
    echo elgg_format_element('meta', $attributes);
}
foreach ($links as $attributes) {
    echo elgg_format_element('link', $attributes);
}
$stylesheets = elgg_get_loaded_css();
foreach ($stylesheets as $url) {
    echo elgg_format_element('link', array('rel' => 'stylesheet', 'href' => $url));
}
// A non-empty script *must* come below the CSS links, otherwise Firefox will exhibit FOUC
// See https://github.com/Elgg/Elgg/issues/8328
?>
<script>
	<?php 
// Do not convert this to a regular function declaration. It gets redefined later.
?>
	require = function () {
		// handled in the view "elgg.js"
		_require_queue.push(arguments);
	};
	_require_queue = [];