- md5
- 504fe59c20a8971b350af019a3e6ae92
- sha1
- 9076d248e40a6086df576426c8afb5e32e0721bb
- sha256
- 6e94e867bb405c8158f84c50e4320df672e5cc360d8b72664012d12f2798f339
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
<?php
/**
* @package Joomla.Administrator
* @subpackage Templates.Atum
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @since 4.0
*/
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
/** @var JDocumentHtml $this */
$app = Factory::getApplication();
$lang = $app->getLanguage();
$input = $app->input;
$wa = $this->getWebAssetManager();
// Detecting Active Variables
$option = $input->get('option', '');
$view = $input->get('view', '');
$layout = $input->get('layout', '');
$task = $input->get('task', '');
$itemid = $input->get('Itemid', '');
$cpanel = $option === 'com_cpanel';
$hidden = $app->input->get('hidemainmenu');
$logo = $this->baseurl . '/templates/' . $this->template . '/images/logo.svg';
$logoBlue = $this->baseurl . '/templates/' . $this->template . '/images/logo-blue.svg';
// Enable assets
$wa->enableAsset('template.atum.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr'));
// Load specific language related CSS
HTMLHelper::_('stylesheet', 'administrator/language/' . $lang->getTag() . '/' . $lang->getTag() . '.css', array('version' => 'auto'));
// Set some meta data
$this->setMetaData('viewport', 'width=device-width, initial-scale=1');
// @TODO sync with _variables.scss
$this->setMetaData('theme-color', '#1c3d5c');
$this->addScriptDeclaration('cssVars();');
?>
<!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="admin <?php echo $option . ' view-' . $view . ' layout-' . $layout . ' task-' . $task . ' itemid-' . $itemid; ?>">
<noscript>
<div class="alert alert-danger" role="alert">
<?php echo Text::_('JGLOBAL_WARNJAVASCRIPT'); ?>
</div>
</noscript>
<?php // Header ?>
<header id="header" class="header">
<div class="d-flex align-items-center">
<div class="header-title d-flex mr-auto">
<div class="d-flex">
<?php if (!$hidden) : ?>
<a class="logo" href="<?php echo Route::_('index.php'); ?>" aria-label="<?php echo Text::_('TPL_BACK_TO_CONTROL_PANEL'); ?>">
<img src="<?php echo $logoBlue; ?>" alt="">
</a>
<?php else : ?>
<a class="logo">
<img src="<?php echo $logoBlue; ?>" alt="">
</a>
<?php endif; ?>
</div>
<jdoc:include type="modules" name="title" />
</div>
<div class="header-items d-flex ml-auto">
<jdoc:include type="modules" name="status" />
</div>
</div>
</header>
<?php // Wrapper ?>
<div id="wrapper" class="d-flex wrapper<?php echo $hidden ? '0' : ''; ?>">
<?php // Sidebar ?>
<?php if (!$hidden) : ?>
<div id="sidebar-wrapper" class="sidebar-wrapper" <?php echo $hidden ? 'data-hidden="' . $hidden . '"' : ''; ?>>
<jdoc:include type="modules" name="menu" style="none" />
<div id="main-brand" class="main-brand d-flex align-items-center justify-content-center">
<img src="<?php echo $logo; ?>" alt="">
</div>
</div>
<?php endif; ?>
<?php // container-fluid ?>
<div class="container-fluid container-main">
<?php if (!$cpanel) : ?>
<?php // Subheader ?>
<a class="btn btn-subhead d-md-none d-lg-none d-xl-none" data-toggle="collapse" data-target=".subhead-collapse"><?php echo Text::_('TPL_ATUM_TOOLBAR'); ?>
<span class="icon-wrench"></span></a>
<div id="subhead" class="subhead">
<div id="container-collapse" class="container-collapse"></div>
<div class="row">
<div class="col-md-12">
<jdoc:include type="modules" name="toolbar" />
</div>
</div>
</div>
<?php endif; ?>
<section id="content" class="content">
<?php // Begin Content ?>
<jdoc:include type="modules" name="top" style="xhtml" />
<div class="row">
<div class="col-md-12">
<main>
<jdoc:include type="component" />
</main>
</div>
<?php if ($this->countModules('bottom')) : ?>
<jdoc:include type="modules" name="bottom" style="xhtml" />
<?php endif; ?>
</div>
<?php // End Content ?>
</section>
<div class="notify-alerts">
<jdoc:include type="message" />
</div>
</div>
</div>
<jdoc:include type="modules" name="debug" style="none" />
</body>
</html>
The same content is in 2 releases, Joomla 4.0.0-alpha8 to 4.0.0-alpha9. See them all, or every version of this file.