-
Notifications
You must be signed in to change notification settings - Fork 11
/
year.php
34 lines (29 loc) · 1008 Bytes
/
year.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* Copyright 1999-2017 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (GPL). If you
* did not receive this file, see http://www.horde.org/licenses/gpl.
*
* @author Chuck Hagenbuch <[email protected]>
* @package Kronolith
*/
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('kronolith');
if (Kronolith::showAjaxView()) {
Horde::url('', true)->setAnchor('year:' . Kronolith::currentDate()->dateString())->redirect();
exit;
}
$view = Kronolith::getView('Year');
$page_output->addScriptFile('tooltips.js', 'horde');
$page_output->addScriptFile('views.js');
$page_output->header(array(
'body_class' => $prefs->getValue('show_panel') ? 'rightPanel' : null,
'title' => $view->year
));
require KRONOLITH_TEMPLATES . '/javascript_defs.php';
$notification->notify(array('listeners' => 'status'));
Kronolith::tabs($view);
$view->html();
require KRONOLITH_TEMPLATES . '/calendar_titles.inc';
$page_output->footer();