- md5
- ec00b2af28852b1964ca5820423b6286
- sha1
- a5d3c6cb62813fac52a6063d86ded869029ba07a
- sha256
- be85bf4586776c4c43d14da9e61cbc53eff2b9a15977723ee885ab68b3bca173
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
<?php
/**
* @package Joomla.Site
* @subpackage Templates.cassiopeia
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
/** @var JDocumentHtml $this */
$app = Factory::getApplication();
$lang = $app->getLanguage();
$wa = $this->getWebAssetManager();
// Detecting Active Variables
$option = $app->input->getCmd('option', '');
$view = $app->input->getCmd('view', '');
$layout = $app->input->getCmd('layout', '');
$task = $app->input->getCmd('task', '');
$itemid = $app->input->getCmd('Itemid', '');
$sitename = $app->get('sitename');
$menu = $app->getMenu()->getActive();
$pageclass = $menu->params->get('pageclass_sfx');
// Enable assets
$wa->enableAsset('template.cassiopeia.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr'));
// Load specific language related CSS
HTMLHelper::_('stylesheet', 'language/' . $lang->getTag() . '/' . $lang->getTag() . '.css', array('version' => 'auto'));
// Logo file or site title param
if ($this->params->get('logoFile'))
{
$logo = '<img src="' . Uri::root() . $this->params->get('logoFile') . '" alt="' . $sitename . '">';
}
elseif ($this->params->get('siteTitle'))
{
$logo = '<span title="' . $sitename . '">' . htmlspecialchars($this->params->get('siteTitle'), ENT_COMPAT, 'UTF-8') . '</span>';
}
else
{
$logo = '<img src="' . $this->baseurl . '/templates/' . $this->template . '/images/logo.svg' . '" class="logo d-inline-block" alt="' . $sitename . '">';
}
// Header bottom margin
$headerMargin = !$this->countModules('banner') ? ' mb-4' : '';
// Container
$wrapper = $this->params->get('fluidContainer') ? 'wrapper-fluid' : 'wrapper-static';
$this->setMetaData('viewport', 'width=device-width, initial-scale=1');
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="metas" />
<jdoc:include type="styles" />
<jdoc:include type="scripts" />
</head>
<body class="site-grid site <?php echo $option
. ' ' . $wrapper
. ' view-' . $view
. ($layout ? ' layout-' . $layout : ' no-layout')
. ($task ? ' task-' . $task : ' no-task')
. ($itemid ? ' itemid-' . $itemid : '')
. ' ' . $pageclass;
echo ($this->direction == 'rtl' ? ' rtl' : '');
?>">
<div class="grid-child container-header full-width">
<header class="header">
<nav class="grid-child navbar navbar-expand-lg">
<div class="navbar-brand">
<a href="<?php echo $this->baseurl; ?>/">
<?php echo $logo; ?>
</a>
<?php if ($this->params->get('siteDescription')) : ?>
<div class="site-description"><?php echo htmlspecialchars($this->params->get('siteDescription')); ?></div>
<?php endif; ?>
</div>
<?php if ($this->countModules('menu') || $this->countModules('search')) : ?>
<button class="navbar-toggler navbar-toggler-right" type="button" aria-hidden="true" data-toggle="collapse" data-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="<?php echo Text::_('TPL_CASSIOPEIA_TOGGLE'); ?>">
<span class="fa fa-bars"></span>
</button>
<div class="collapse navbar-collapse" id="navbar">
<jdoc:include type="modules" name="menu" style="none" />
<?php if ($this->countModules('search')) : ?>
<div class="form-inline">
<jdoc:include type="modules" name="search" style="none" />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</nav>
<?php if ($this->countModules('banner')) : ?>
<div class="grid-child container-banner">
<jdoc:include type="modules" name="banner" style="xhtml" />
</div>
<?php endif; ?>
<div class="header-shadow"></div>
<div class="header-shape-bottom">
<canvas width="736" height="15"></canvas>
<svg class="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 736 15">
<path d="M1040,301V285s-75,12-214,12-284-26-524,0v4Z" transform="translate(-302 -285)" fill="#fafafa"/>
</svg>
</div>
</header>
</div>
<?php if ($this->countModules('top-a')) : ?>
<div class="grid-child container-top-a">
<jdoc:include type="modules" name="top-a" style="cardGrey" />
</div>
<?php endif; ?>
<?php if ($this->countModules('top-b')) : ?>
<div class="grid-child container-top-b">
<jdoc:include type="modules" name="top-b" style="card" />
</div>
<?php endif; ?>
<div class="grid-child container-main">
<?php if ($this->countModules('sidebar-left')) : ?>
<div class="container-sidebar-left">
<jdoc:include type="modules" name="sidebar-left" style="default" />
</div>
<?php endif; ?>
<div class="container-component">
<jdoc:include type="modules" name="main-top" style="cardGrey" />
<jdoc:include type="message" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="breadcrumbs" style="none" />
<jdoc:include type="modules" name="main-bottom" style="cardGrey" />
</div>
<?php if ($this->countModules('sidebar-right')) : ?>
<div class="container-sidebar-right">
<jdoc:include type="modules" name="sidebar-right" style="default" />
</div>
<?php endif; ?>
</div>
<?php if ($this->countModules('bottom-a')) : ?>
<div class="grid-child container-bottom-a">
<jdoc:include type="modules" name="bottom-a" style="cardGrey" />
</div>
<?php endif; ?>
<?php if ($this->countModules('bottom-b')) : ?>
<div class="grid-child container-bottom-b">
<jdoc:include type="modules" name="bottom-b" style="card" />
</div>
<?php endif; ?>
<?php if ($this->countModules('footer')) : ?>
<footer class="grid-child container-footer footer">
<hr>
<p class="float-right">
<a href="#top" id="back-top" class="back-top">
<span class="icon-arrow-up-4" aria-hidden="true"></span>
<span class="sr-only"><?php echo Text::_('TPL_CASSIOPEIA_BACKTOTOP'); ?></span>
</a>
</p>
<jdoc:include type="modules" name="footer" style="none" />
</footer>
<?php endif; ?>
<jdoc:include type="modules" name="debug" style="none" />
</body>
</html>
The same content is in 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.