- md5
- 64506d37e21bb15fc625f0c54bff3b1e
- sha1
- 5060cdd5a4543d131cd21b8bbb916fffb9f4a6e1
- sha256
- b19f1fac6a9af753b11e3493fc59f9abf7258712f16678f8f59d3cddbe88f1ed
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
<?php
/**
* @package Joomla.Administrator
* @subpackage Templates.Atum
* @copyright Copyright (C) 2005 - 2018 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\Registry\Registry;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Helper\ModuleHelper;
/** @var JDocumentHtml $this */
$app = Factory::getApplication();
$lang = Factory::getLanguage();
$user = Factory::getUser();
$input = $app->input;
// Detecting Active Variables
$option = $input->get('option', '');
$view = $input->get('view', '');
$layout = $input->get('layout', '');
$task = $input->get('task', '');
$itemid = $input->get('Itemid', '');
$sitename = htmlspecialchars($app->get('sitename', ''), ENT_QUOTES, 'UTF-8');
$hidden = $app->input->get('hidemainmenu');
$logoLg = $this->baseurl . '/templates/' . $this->template . '/images/logo.svg';
$logoSm = $this->baseurl . '/templates/' . $this->template . '/images/logo-icon.svg';
$scriptOptions = [
"system.paths" => [
'root' => JUri::root(true),
'rootFull' => JUri::root(),
'base' => JUri::base(true),
],
"webcomponents" => [
Uri::root() . 'media/vendor/joomla-custom-elements/js/joomla-alert.min.js',
]
];
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<meta charset="utf-8">
<base href="<?php echo JUri::root(); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#1c3d5c">
<title><?php echo $this->title; ?> <?php echo htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8'); ?></title>
<link href="<?php echo 'templates/' . $this->template . '/favicon.ico'; ?>" rel="shortcut icon" type="image/vnd.microsoft.icon">
<link href="<?php echo Uri::root(); ?>media/vendor/joomla-custom-elements/css/joomla-alert.min.css" rel="stylesheet">
<link href="<?php echo 'templates/' . $this->template . '/css/bootstrap.min.css'; ?>" rel="stylesheet">
<link href="<?php echo 'templates/' . $this->template . '/css/font-awesome.min.css'; ?>" rel="stylesheet">
<link href="<?php echo 'templates/' . $this->template . '/css/template' . ($this->direction === 'rtl' ? '-rtl' : '') . '.min.css'; ?>" rel="stylesheet">
<?php $userCss = 'administrator/templates/' . $this->template . '/css/user.css'; ?>
<?php if (is_file(JPATH_ROOT . $userCss)) : ?>
<link href="<?php echo $userCss; ?>" rel="stylesheet">
<?php endif; ?>
<?php $langCss = 'administrator/language/' . $lang->getTag() . '/' . $lang->getTag() . '.css'; ?>
<?php if (is_file(JPATH_ROOT . $langCss)) : ?>
<link href="<?php echo $langCss; ?>" rel="stylesheet">
<?php endif; ?>
<?php // Web Components and Custom Elements are loaded based on the client capabilities ?>
<script type="application/json" class="joomla-script-options new"><?php echo json_encode($scriptOptions); ?></script>
<script src="<?php echo Uri::root(); ?>media/system/js/core.js"></script>
</head>
<body class="admin <?php echo $option . ' view-' . $view . ' layout-' . $layout . ' task-' . $task . ' itemid-' . $itemid; ?>">
<noscript>
<joomla-alert type="danger" style="display:block; opacity:1;">
<?php echo Text::_('JGLOBAL_WARNJAVASCRIPT'); ?>
</joomla-alert>
</noscript>
<?php // Wrapper ?>
<div id="wrapper" class="wrapper<?php echo $hidden ? '0' : ''; ?>">
<?php // Sidebar ?>
<?php if (!$hidden) : ?>
<div id="sidebar-wrapper" class="sidebar-wrapper" <?php echo $hidden ? 'data-hidden="' . $hidden . '"' :''; ?>>
<div id="main-brand" class="main-brand align-items-center">
<a href="<?php echo Route::_('index.php'); ?>" aria-label="<?php echo Text::_('TPL_BACK_TO_CONTROL_PANEL'); ?>">
<img src="<?php echo $logoLg; ?>" class="logo" alt="<?php echo $sitename; ?>">
</a>
</div>
<?php // Display menu modules ?>
<?php $this->menumodules = ModuleHelper::getModules('menu'); ?>
<?php foreach ($this->menumodules as $menumodule) : ?>
<?php $output = ModuleHelper::renderModule($menumodule, array('style' => 'none')); ?>
<?php $params = new Registry($menumodule->params); ?>
<?php echo $output; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php // Header ?>
<header id="header" class="header">
<div class="container-fluid">
<div class="d-flex justify-content-end">
<div class="d-flex col">
<div class="menu-collapse">
<a id="menu-collapse" class="menu-toggle" href="#">
<span class="menu-toggle-icon fa fa-chevron-left fa-fw" aria-hidden="true"></span>
<span class="sr-only"><?php echo Text::_('TPL_ATUM_CONTROL_PANEL_MENU'); ?></span>
</a>
</div>
<div class="container-title">
<jdoc:include type="modules" name="title" />
</div>
</div>
<div class="ml-auto">
<ul class="nav text-center">
<li class="nav-item">
<a class="nav-link" href="<?php echo Joomla\CMS\Uri\Uri::root(); ?>" title="<?php echo Text::sprintf('TPL_ATUM_PREVIEW', $sitename); ?>" target="_blank">
<span class="fa fa-external-link" aria-hidden="true"></span>
<span class="sr-only"><?php echo HTMLHelper::_('string.truncate', $sitename, 28, false, false); ?></span>
</a>
</li>
<li class="nav-item">
<a class="nav-link dropdown-toggle" href="<?php echo Route::_('index.php?option=com_messages'); ?>" title="<?php echo Text::_('TPL_ATUM_PRIVATE_MESSAGES'); ?>">
<span class="fa fa-envelope-o" aria-hidden="true"></span>
<span class="sr-only"><?php echo Text::_('TPL_ATUM_PRIVATE_MESSAGES'); ?></span>
<?php $countUnread = Factory::getSession()->get('messages.unread'); ?>
<?php if ($countUnread > 0) : ?>
<span class="badge badge-pill badge-success"><?php echo $countUnread; ?></span>
<?php endif; ?>
</a>
</li>
<?php
try
{
$messagesModel = new \Joomla\Component\Postinstall\Administrator\Model\MessagesModel(['ignore_request' => true]);
$messages = $messagesModel->getItems();
}
catch (RuntimeException $e)
{
$messages = [];
// Still render the error message from the Exception object
Factory::getApplication()->enqueueMessage($e->getMessage(), 'error');
}
$lang->load('com_postinstall', JPATH_ADMINISTRATOR, 'en-GB', true);
?>
<?php if ($user->authorise('core.manage', 'com_postinstall')) : ?>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" title="<?php echo Text::_('TPL_ATUM_POST_INSTALLATION_MESSAGES'); ?>">
<span class="fa fa-bell-o" aria-hidden="true"></span>
<?php if (count($messages) > 0) : ?>
<span class="badge badge-pill badge-success"><?php echo count($messages); ?></span>
<?php endif; ?>
</a>
<div class="dropdown-menu dropdown-menu-right dropdown-notifications">
<div class="list-group">
<?php if (empty($messages)) : ?>
<p class="list-group-item text-center">
<strong><?php echo Text::_('COM_POSTINSTALL_LBL_NOMESSAGES_TITLE'); ?></strong>
</p>
<?php endif; ?>
<?php foreach ($messages as $message) : ?>
<a href="<?php echo Route::_('index.php?option=com_postinstall&eid=700'); ?>" class="list-group-item list-group-item-action">
<h5 class="list-group-item-heading"><?php echo HTMLHelper::_('string.truncate', Text::_($message->title_key), 28, false, false); ?></h5>
<p class="list-group-item-text small">
<?php echo HTMLHelper::_('string.truncate', Text::_($message->description_key), 120, false, false); ?>
</p>
</a>
<?php endforeach; ?>
</div>
</div>
</li>
<?php endif; ?>
<li class="nav-item dropdown header-profile">
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown">
<span class="fa fa-user-o" aria-hidden="true"></span>
<span class="sr-only"><?php echo Text::_('TPL_ATUM_ADMIN_USER_MENU'); ?></span>
</a>
<div class="dropdown-menu dropdown-menu-right">
<div class="dropdown-item header-profile-user">
<span class="fa fa-user" aria-hidden="true"></span>
<?php echo $user->name; ?>
</div>
<?php $route = 'index.php?option=com_admin&task=profile.edit&id=' . $user->id; ?>
<a class="dropdown-item" href="<?php echo Route::_($route); ?>">
<?php echo Text::_('TPL_ATUM_EDIT_ACCOUNT'); ?></a>
<a class="dropdown-item" href="<?php echo Route::_('index.php?option=com_login&task=logout&'
. Joomla\CMS\Session\Session::getFormToken() . '=1') ?>"><?php echo Text::_('TPL_ATUM_LOGOUT'); ?></a>
</div>
</li>
</ul>
</div>
</div>
</div>
</header>
<?php // container-fluid ?>
<div class="container-fluid container-main">
<section id="content" class="content">
<?php // Begin Content ?>
<div class="row">
<div class="col-md-12">
<jdoc:include type="message" />
<h1><?php echo Text::_('JERROR_AN_ERROR_HAS_OCCURRED'); ?></h1>
<blockquote class="blockquote">
<span class="badge badge-secondary"><?php echo $this->error->getCode(); ?></span> <?php echo htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8'); ?>
</blockquote>
<?php if ($this->debug) : ?>
<div>
<?php echo $this->renderBacktrace(); ?>
<?php // Check if there are more Exceptions and render their data as well ?>
<?php if ($this->error->getPrevious()) : ?>
<?php $loop = true; ?>
<?php // Reference $this->_error here and in the loop as setError() assigns errors to this property and we need this for the backtrace to work correctly ?>
<?php // Make the first assignment to setError() outside the loop so the loop does not skip Exceptions ?>
<?php $this->setError($this->_error->getPrevious()); ?>
<?php while ($loop === true) : ?>
<p><strong><?php echo Text::_('JERROR_LAYOUT_PREVIOUS_ERROR'); ?></strong></p>
<p><?php echo htmlspecialchars($this->_error->getMessage(), ENT_QUOTES, 'UTF-8'); ?></p>
<?php echo $this->renderBacktrace(); ?>
<?php $loop = $this->setError($this->_error->getPrevious()); ?>
<?php endwhile; ?>
<?php // Reset the main error object to the base error ?>
<?php $this->setError($this->error); ?>
<?php endif; ?>
</div>
<?php endif; ?>
<p><a href="<?php echo $this->baseurl; ?>" class="btn btn-secondary"><span class="fa fa-dashboard" aria-hidden="true"></span>
<?php echo Text::_('JGLOBAL_TPL_CPANEL_LINK_TEXT'); ?></a></p>
</div>
</div>
<?php // End Content ?>
</section>
</div>
</div>
</body>
</html>
No other release has this exact content. See every version of this file.