1 <?php
defined('SYSPATH') OR die('No direct access allowed.');
4 if (Auth
::instance()->logged_in()) {
5 $auth = op5auth
::instance();
6 if ($auth->authorized_for('host_view_all')) {
11 if (!isset($keycommands_disabled) ||
$keycommands_disabled !== true) {
12 $keycommands_active = (int)(bool)config
::get('keycommands.activated', '*');
14 $keycommands_active = 0;
17 if (isset($this) && isset($this->template
->js_header
))
18 $this->template
->js_header
->js
= array_unique($this->xtra_js
);
25 require __DIR__
.'/template_head.php';
30 <div
class="container">
32 if (!empty($print_notifications)) {
33 ?
> <div
class="print-notification-bar"> <?php
34 foreach ($print_notifications as $print_notification) {
35 echo $print_notification;
40 if(!isset($hide_header)) {
41 require __DIR__
.'/template_header.php';
43 <div
class="content" tabindex
="0" id
="content">
47 if (isset($content)) {
50 return url
::redirect(Kohana
::config('routes.logged_in_default'));
53 require __DIR__
. '/template_notifications.php';
61 if (isset($saved_searches) && !empty($saved_searches)) {
69 if(!isset($no_dojo)) {
70 echo html
::script('application/media/js/dojo.js');
72 if (isset($context_menu))