$view->banned = $banned;
$view->forum = $forums->getForum();
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('ban.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$notification->notify(array('listeners' => 'status'));
$view->notify = Horde::endBuffer();
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('main.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$notification->notify(array('listeners' => 'status'));
$view->notify = Horde::endBuffer();
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('main.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$view->pager_link = $pager_ob->render();
$title = _("All Forums");
-require AGORA_TEMPLATES . '/common-header.inc';
+$linkTags = array('<link rel="alternate" title="' . _("Forums") . '" href="' . Horde::url('rss/index.php', true, -1)->add('scope', $scope) . '" type="application/rss+xml" />');
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('forums.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$view->message_date = strftime($prefs->getValue('date_format'), $message['message_timestamp']);
$view->message_body = Agora_Messages::formatBody($message['body']);
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('messages/form.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$form->renderActive(null, $vars, 'delete.php', 'post');
$view->formbox = Horde::endBuffer();
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('messages/form.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$form->renderActive(null, $vars, 'edit.php', 'post');
$view->formbox = Horde::endBuffer();
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('messages/edit.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
Horde::addScriptFile('hideable.js', 'horde', true);
Horde::addScriptFile('stripe.js', 'horde', true);
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render($template_file);
require $registry->get('templates', 'horde') . '/common-footer.inc';
$view->message_date = strftime($prefs->getValue('date_format'), $message['message_timestamp']);
$view->message_body = Agora_Messages::formatBody($message['body']);
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('messages/form.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$view->message_author = $message['message_author'];
$view->message_body = Agora_Messages::formatBody($message['body']);
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('main.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$view->message_author = $message['message_author'];
$view->message_body = Agora_Messages::formatBody($message['body']);
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('messages/edit.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$view->message_author = $message['message_author'];
$view->message_body = Agora_Messages::formatBody($message['body']);
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('messages/edit.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$title = _("Messages Awaiting Moderation");
$view->menu = Horde::menu();
Horde::addScriptFile('stripe.js', 'horde', true);
- require AGORA_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('moderate.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
}
$view->forums = $forums_list;
Horde::addScriptFile('stripe.js', 'horde', true);
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('moderators.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$sort_by = Agora::getSortBy('threads');
$sort_dir = Agora::getSortDir('threads');
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
$view->searchForm = Horde::endBuffer();
$title = _("Search Forums");
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('search.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Agora: Copyright 2002-2010 The Horde Project. Agora is under a Horde license. -->
-<!-- Horde Project: http://www.horde.org/ | Agora: http://www.horde.org/agora/ -->
-<!-- Horde Licenses: http://www.horde.org/licenses/ -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-<link rel="alternate" title="<?php echo _("Forums") ?>" href="<?php echo Horde_Util::addParameter(Horde::url('rss/index.php', true, -1), 'scope', $scope) ?>" type="application/rss+xml" />
-</head>
-
-<body>
$view->pager_link = $pager_ob->render();
$title = sprintf(_("Threads in %s"), $forum_array['forum_name']);
-require AGORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $view->render('threads.html.php');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$layout_html = $layout->toHtml();
$title = _("Photo Galleries");
Ansel_Search_Tag::clearSearch();
-require ANSEL_BASE . '/templates/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
echo '<div id="menuBottom"><a href="' . Horde::url('browse_edit.php') . '">' . _("Add Content") . '</a></div><div class="clear"> </div>';
}
$title = _("My Photos :: Add Content");
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
require $registry->get('templates', 'horde') . '/portal/edit.inc';
}
}
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
$form->renderActive(null, null, null, 'post');
exit;
}
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
$form->renderActive(null, null, null, 'post');
$injector->getInstance('Horde_Themes_Css')->addThemeStylesheet('cropper.css');
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
require ANSEL_TEMPLATES . '/faces/custom.inc';
$title = _("Face") . ' :: ' . $face['face_name'];
$facename = htmlspecialchars($face['face_name']);
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
require_once ANSEL_TEMPLATES . '/faces/face.inc';
$title = sprintf(_("Searching for faces in %s"),Ansel::getUrlFor('view', array('gallery' => $gallery_id, 'view' => 'Gallery'))->link() . $gallery->get('name') . '</a>');
Horde::addScriptFile('stripe.js', 'horde');
Horde::addScriptFile('popup.js', 'horde');
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
require ANSEL_TEMPLATES . '/faces/gallery.inc';
exit;
}
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
$form->renderActive(null, null, null, 'post');
)
);
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
include ANSEL_TEMPLATES . '/faces/faces.inc';
}
$title = _("Upload face photo");
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
echo $tabs->render(Horde_Util::getGet('search_faces', 'image'));
Horde::addScriptFile('cropper.js', 'ansel');
Horde::addScriptFile('stripe.js', 'horde');
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
require ANSEL_TEMPLATES . '/faces/define.inc';
)
);
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
require ANSEL_TEMPLATES . '/faces/search.inc';
'perpage' => $perpage));
$title = _("Search by name");
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
include ANSEL_TEMPLATES . '/faces/faces.inc';
)
);
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
include ANSEL_TEMPLATES . '/faces/faces.inc';
)
);
$pager->preserve('owner', $owner);
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
include ANSEL_TEMPLATES . '/faces/faces.inc';
if ($galleryId) {
try {
$gallery = $GLOBALS['injector']->getInstance('Ansel_Injector_Factory_Storage')->create()->getGallery($galleryId);
- require ANSEL_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
require ANSEL_TEMPLATES . '/gallery/delete_confirmation.inc';
}
$title = _("Caption Editor");
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
require ANSEL_TEMPLATES . '/captions/captions.inc';
Horde::addScriptFile('dragdrop.js', 'horde');
$title = sprintf(_("%s :: Sort"), $gallery->get('name'));
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
?>
$groupby_links[] = Ansel::getUrlFor('group', array('actionID' => 'groupby', 'groupby' => 'none'))->link() . _("none") . '</a>';
}
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
require ANSEL_TEMPLATES . '/group/header.inc';
$vars->set('image_originalDate', $image->originalDate);
$vars->set('image_uploaded', $image->uploaded);
- require ANSEL_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
$form->renderActive($renderer, $vars, 'image.php', 'post', 'multipart/form-data');
require $registry->get('templates', 'horde') . '/common-footer.inc';
exit;
Horde::addScriptFile('dragdrop.js', 'horde');
}
- require ANSEL_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
$form = new Ansel_Form_Watermark($vars, _("Watermark"));
$renderer = new Horde_Form_Renderer();
- require ANSEL_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
$form->renderActive($renderer, $vars, 'image.php', 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
exit;
$gallery->get('name'),
$image->filename);
- require ANSEL_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
require ANSEL_TEMPLATES . '/image/preview_image.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
$params = $x1 . '.' . $y1 . '.' . $x2 . '.' . $y2;
- require ANSEL_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
require ANSEL_TEMPLATES . '/image/preview_cropimage.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
exit;
}
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$form->renderActive($renderer, $vars, 'image.php', 'post',
'multipart/form-data');
$form->addHidden('', 'rtemode', 'text', false);
}
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
$notification->notify(array('listeners' => 'status'));
$form->renderActive($renderer, $vars, 'ecard.php', 'post', 'multipart/form-data');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$nojs = $view->handleNoJs();
$title = _("Add Photo");
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
echo '<div class="header" id="galleryHeader"><span class="breadcrumbs">' . Ansel::getBreadCrumbs($gallery) . '</span></div>';
require ANSEL_TEMPLATES . '/image/plupload.inc';
const SORT_DESCENDING = 1;
/**
- * Build initial Ansel javascript object.
- *
- * @return string
- */
- static public function initJSVars()
- {
- $code = array('Ansel = {ajax: {}, widgets: {}}');
- return $code;
- }
-
- /**
* Create and initialize the database object.
*
* @return mixed MDB2 object
/* Set a logger for the Vfs */
$GLOBALS['injector']->getInstance('Horde_Core_Factory_Vfs')->create('images')->setLogger($GLOBALS['injector']->getInstance('Horde_Log_Logger'));
+
+ /* Build initial Ansel javascript object. */
+ Horde::addInlineJsVars(array('var Ansel' => array('ajax' => new stdClass, 'widgets' => new stdClass)));
}
/**
'slug' => $this->_properties['slug']
));
- require ANSEL_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$GLOBALS['notification']->notify(array('listeners' => 'status'));
echo $view->render('properties');
exit;
}
}
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
echo '<div class="header">' . Ansel::getBreadCrumbs() . '</div>';
exit;
}
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
$form->renderActive(null, null, null, 'post');
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Ansel: Copyright 2001-2010 The Horde Project. Ansel is under the GPL. -->
-<!-- Horde Project: http://www.horde.org/ | Ansel: http://www.horde.org/ansel/ -->
-<!-- GNU Public License: http://www.fsf.org/copyleft/gpl.html -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $GLOBALS['registry']->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-echo Horde::wrapInlineScript(Ansel::initJSVars());
-Horde::outputInlineScript();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body>
try {
$view = new $view($params);
} catch (Horde_Exception $e) {
- require ANSEL_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
echo '<br /><em>' . htmlspecialchars($e->getMessage()) . '</em>';
}
$title = $view->getTitle();
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
$view_html = $view->html();
$PUBLISH_CMD = '';
$title = sprintf(_("Publish to %s"), $registry->get('name'));
-require ANSEL_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
// Check for a login.
if ($cmd == 'login') {
}
$title = $form->getTitle();
-require BEATNIK_TEMPLATES . '/common-header.inc';
+Beatnik::notifyCommits();
+require $registry->get('templates', 'horde') . '/common-header.inc';
require BEATNIK_TEMPLATES . '/menu.inc';
$form->renderActive(null, null, $url, 'post');
}
}
+ function notifyCommits()
+ {
+ // This check has to come after the page has finished all work in case
+ // the status has changed due to a now-completed edit.
+ if (count(Beatnik::needCommit())) {
+ foreach (Beatnik::needCommit() as $domain) {
+ $GLOBLAS['notification']->push(sprintf(_("You have uncommitted changes in %s."), $domain));
+ }
+ }
+ }
+
/**
* Checks for the given permissions for the current user on the given
* permissions node. Optionally check for the requested permssion for a
Horde::addScriptFile('stripe.js', 'horde');
// Initialization complete. Render the page.
-require BEATNIK_TEMPLATES . '/common-header.inc';
+Beatnik::notifyCommits();
+require $registry->get('templates', 'horde') . '/common-header.inc';
require BEATNIK_TEMPLATES . '/menu.inc';
require BEATNIK_TEMPLATES . '/listzones/header.inc';
+++ /dev/null
-<?php
-/**
- * Copyright 2005-2007 Ben Klang <ben@alkaloid.net>
- *
- * See the enclosed file COPYING for license information (GPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
- */
-
-// This check has to come after the page has finished all work in case the
-// status has changed due to a now-completed edit.
-if (count(Beatnik::needCommit())) {
- foreach(Beatnik::needCommit() as $domain) {
- $notification->push(sprintf(_("You have uncommitted changes in %s."), $domain));
- }
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Beatnik Copyright 2005-2007, Ben Klang <ben@alkaloid.net> -->
-<!-- Horde Project: http://www.horde.org/ -->
-<!-- Beatnik: http://projects.alkaloid.net/ -->
-<!-- Horde Licenses: http://www.horde.org/licenses/ -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-<body>
$title = $_SESSION['beatnik']['curdomain']['zonename'];
Horde::addScriptFile('stripe.js', 'horde');
-require BEATNIK_TEMPLATES . '/common-header.inc';
+Beatnik::notifyCommits();
+require $registry->get('templates', 'horde') . '/common-header.inc';
require BEATNIK_TEMPLATES . '/menu.inc';
// Get a list of all the fields for all record typess we'll be processing
Chora::url('co', $where, array('r' => $rev, 'p' => 1)), _("Download"));
Horde::addScriptFile('annotate.js', 'chora');
-
-$js_vars = array(
+Horde::addInlineJsVars(array('var Chora' => array(
'ANNOTATE_URL' => (string)Horde::url('annotate.php', true)->add(array('actionID' => 'log', 'f' => $where, 'rev' => '')),
'loading_text' => _("Loading...")
-);
+)));
-require CHORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require CHORA_TEMPLATES . '/menu.inc';
require CHORA_TEMPLATES . '/headerbar.inc';
require CHORA_TEMPLATES . '/annotate/header.inc';
$sortdirclass = $acts['sbt'] ? 'sortdown' : 'sortup';
Horde::addScriptFile('tables.js', 'horde');
-require CHORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require CHORA_TEMPLATES . '/menu.inc';
require CHORA_TEMPLATES . '/headerbar.inc';
require CHORA_TEMPLATES . '/directory/header.inc';
Horde::addScriptFile('tables.js', 'horde');
Horde::addScriptFile('quickfinder.js', 'horde');
Horde::addScriptFile('revlog.js', 'chora');
-require CHORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require CHORA_TEMPLATES . '/menu.inc';
require CHORA_TEMPLATES . '/headerbar.inc';
require CHORA_TEMPLATES . '/log/header.inc';
$extraLink = _("View:") . ' ' . implode(' | ', $views);
Horde::addScriptFile('stripe.js', 'horde');
- require CHORA_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require CHORA_TEMPLATES . '/menu.inc';
require CHORA_TEMPLATES . '/headerbar.inc';
require CHORA_TEMPLATES . '/checkout/checkout.inc';
header('Cache-Control: max-age=604800');
Horde::addScriptFile('tables.js', 'horde');
-require CHORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require CHORA_TEMPLATES . '/menu.inc';
require CHORA_TEMPLATES . '/headerbar.inc';
require CHORA_TEMPLATES . '/patchsets/ps_single.inc';
$title = sprintf(_("Graph for %s"), $injector->getInstance('Horde_Core_Factory_TextFilter')->filter($where, 'space2html', array('encode' => true, 'encode_all' => true)));
$extraLink = Chora::getFileViews($where, 'cvsgraph');
-require CHORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require CHORA_TEMPLATES . '/menu.inc';
require CHORA_TEMPLATES . '/headerbar.inc';
}
Horde::addScriptFile('stripe.js', 'horde');
-require CHORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require CHORA_TEMPLATES . '/menu.inc';
require CHORA_TEMPLATES . '/headerbar.inc';
require CHORA_TEMPLATES . '/diff/header.inc';
$title = sprintf(_("Source Branching View for %s"), $injector->getInstance('Horde_Core_Factory_TextFilter')->filter($where, 'space2html', array('encode' => true, 'encode_all' => true)));
$extraLink = Chora::getFileViews($where, 'history');
-require CHORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require CHORA_TEMPLATES . '/menu.inc';
require CHORA_TEMPLATES . '/headerbar.inc';
require CHORA_TEMPLATES . '/history/header.inc';
}
$GLOBALS['notification']->push($message, 'horde.error');
- require CHORA_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require CHORA_TEMPLATES . '/menu.inc';
require $GLOBALS['registry']->get('templates', 'horde') . '/common-footer.inc';
exit;
Horde::addScriptFile('tables.js', 'horde');
Horde::addScriptFile('quickfinder.js', 'horde');
-require CHORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require CHORA_TEMPLATES . '/menu.inc';
require CHORA_TEMPLATES . '/headerbar.inc';
require CHORA_TEMPLATES . '/patchsets/header_table.inc';
$title = sprintf(_("Statistics for %s"), $injector->getInstance('Horde_Core_Factory_TextFilter')->filter($where, 'space2html', array('encode' => true, 'encode_all' => true)));
Horde::addScriptFile('tables.js', 'horde');
-require CHORA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require CHORA_TEMPLATES . '/menu.inc';
require CHORA_TEMPLATES . '/headerbar.inc';
require CHORA_TEMPLATES . '/stats/stats.inc';
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<?php
-echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html><head>';
-
-$page_title = $GLOBALS['registry']->get('name');
-if (!empty($title)) {
- $page_title = $title . ' - ' . $page_title;
-}
-
-Horde::outputMetaTags();
-
-if (Horde_Util::nonInputVar('js_vars')) {
- Horde::addInlineScript('var Chora = ' . Horde_Serialize::serialize($js_vars, Horde_Serialize::JSON));
-}
-
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body>
}
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
require FOLKS_TEMPLATES . '/login/signup.php';
}
$title = _("Sign up");
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
require FOLKS_TEMPLATES . '/login/signup.php';
}
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
require FOLKS_TEMPLATES . '/login/signup.php';
Horde::addScriptFile('stripe.js', 'horde');
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
require FOLKS_TEMPLATES . '/list/list.php';
Horde::addScriptFile('stripe.js', 'horde');
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
require FOLKS_TEMPLATES . '/list/list.php';
$delete_img = Horde::img('delete.png');
Horde::addScriptFile('tables.js', 'horde');
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('activity');
}
Horde::addScriptFile('tables.js', 'horde');
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('comments');
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('edit');
Horde::url('user.php')->redirect();
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('facebook');
echo $block;
$friend_form = new Folks_AddFriend_Form($vars, _("Add or remove user"), 'blacklist');
Horde::addScriptFile('tables.js', 'horde');
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('add');
require FOLKS_TEMPLATES . '/edit/header.php';
$friend_form = new Folks_AddFriend_Form($vars, _("Add or remove user"), 'blacklist');
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('blacklist');
'name' => _("Send message"));
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('friendsof');
'name' => _("Send message"));
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('friends');
'name' => _("Send message"));
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('friendsof');
$members_url = Horde::url('edit/friends/friends.php');
$members_img = Horde::img('group.png');
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('groups');
'name' => _("Send message"));
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('friends');
}
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('friends');
'name' => _("Send message"));
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('friends');
'name' => _("Send message"));
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('friendsof');
$v = &$form_security->addVariable(_("Security answer"), 'security_answer', 'text', true);
$v->setDefault($prefs->getValue('security_answer'));
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('password');
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
echo $tabs->render('privacy');
$form->renderActive(null, null, null, 'post');
}
Horde::addScriptFile('stripe.js', 'horde');
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
require FOLKS_TEMPLATES . '/friends/friends.php';
require $registry->get('templates', 'horde') . '/common-footer.inc';
public $version = 'H4 (0.1-git)';
/**
+ * Initialization function.
+ *
+ * Global variables defined:
+ * - $linkTags: <link> tags for common-header.inc.
+ */
+ protected function _init()
+ {
+ $links = array(Folks::getUrlFor('feed', 'online') => _("Online users"));
+ if ($GLOBALS['registry']->isAuthenticated()) {
+ $links[Folks::getUrlFor('feed', 'friends')] = _("Online friends");
+ $links[Folks::getUrlFor('feed', 'activity')] = _("Friends activity");
+ $links[Folks::getUrlFor('feed', 'know')] = _("People you might know");
+ }
+
+ $GLOBALS['linkTags'] = array();
+ foreach ($links as $url => $label) {
+ $GLOBALS['linkTags'][] = '<link rel="alternate" type="application/rss+xml" href="' . $url . '" title="' . $label . '" />';
+ }
+ }
+
+ /**
* Add additional items to the menu.
*
* @param Horde_Menu $menu The menu object.
Horde::addScriptFile('stripe.js', 'horde');
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
require FOLKS_TEMPLATES . '/list/list.php';
exit;
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
require FOLKS_TEMPLATES . '/login/login.php';
Horde::addScriptFile('stripe.js', 'horde');
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
require FOLKS_TEMPLATES . '/list/list.php';
Horde::addScriptFile('stripe.js', 'horde');
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
require FOLKS_TEMPLATES . '/list/list.php';
Horde::logMessage($e, 'NOTICE');
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
$notification->notify(array('listeners' => 'status'));
require $registry->get('templates', 'horde') . '/shares/edit.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
$list_url = Folks::getUrlFor('list', 'popularity');
Horde::addScriptFile('stripe.js', 'horde');
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
require FOLKS_TEMPLATES . '/list/list.php';
require $registry->get('templates', 'horde') . '/common-footer.inc';
Folks::getUrlFor('user', $user)->redirect();
}
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
$form->renderActive(null, null, null, 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
Horde::addScriptFile('redbox.js', 'horde');
Horde::addScriptFile('search.js', 'folks');
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
require FOLKS_TEMPLATES . '/list/list.php';
}
asort($apps);
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
require FOLKS_TEMPLATES . '/services/services.php';
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Folks: Copyright 2008 Obala d.o.o.. www.obala.si -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-<link rel="alternate" type="application/rss+xml" href="<?php echo Folks::getUrlFor('feed', 'online') ?>" title="<?php echo _("Online users") ?>" />
-<?php if ($GLOBALS['registry']->isAuthenticated()): ?>
-<link rel="alternate" type="application/rss+xml" href="<?php echo Folks::getUrlFor('feed', 'friends') ?>" title="<?php echo _("Online friends") ?>" />
-<link rel="alternate" type="application/rss+xml" href="<?php echo Folks::getUrlFor('feed', 'activity') ?>" title="<?php echo _("Friends activity") ?>" />
-<link rel="alternate" type="application/rss+xml" href="<?php echo Folks::getUrlFor('feed', 'know') ?>" title="<?php echo _("People you might know") ?>" />
-<?php endif; ?>
-</head>
-
-<body>
Horde::addScriptFile('stripe.js', 'horde');
$title = sprintf(_("%s's profile"), $user);
-require FOLKS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require FOLKS_TEMPLATES . '/menu.inc';
switch ($profile['user_status']) {
$title = _("Clipboard");
Horde::addScriptFile('tables.js', 'horde');
$menu = Gollem::menu();
-require GOLLEM_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require GOLLEM_TEMPLATES . '/javascript_defs.php';
echo $menu;
Gollem::status();
echo $template->fetch(GOLLEM_TEMPLATES . '/clipboard/clipboard.html');
if ($mime_type == 'text/html') {
$injector->getInstance('Horde_Editor')->initialize(array('id' => 'content'));
}
- require GOLLEM_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
+require GOLLEM_TEMPLATES . '/javascript_defs.php';
Gollem::status();
require GOLLEM_TEMPLATES . '/edit/edit.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
));
$menu = Gollem::menu();
-require GOLLEM_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require GOLLEM_TEMPLATES . '/javascript_defs.php';
echo $menu;
Gollem::status();
echo $template->fetch(GOLLEM_TEMPLATES . '/manager/manager.html');
$title = _("Gollem Backend Permissions Administration");
$menu = Gollem::menu();
- require GOLLEM_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
+require GOLLEM_TEMPLATES . '/javascript_defs.php';
echo $menu;
Gollem::status();
require $registry->get('templates', 'horde') . '/common-footer.inc';
}
$title = _("Quota Display");
-require GOLLEM_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require GOLLEM_TEMPLATES . '/javascript_defs.php';
if (!$isPopup) {
Gollem::menu();
Gollem::status();
'cacheid' => $cacheid,
'formid' => $formid
));
-require GOLLEM_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require GOLLEM_TEMPLATES . '/javascript_defs.php';
Gollem::status();
echo $t->fetch(GOLLEM_TEMPLATES . '/selectlist/selectlist.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<?php
-echo !empty($language)
- ? '<html lang="' . strtr($language, '_', '-') . '">'
- : '<html>';
-?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-Horde::outputInlineScript();
-
-require GOLLEM_TEMPLATES . '/javascript_defs.php';
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body>
$opened = true;
$beendone = true;
$title = _("Administration");
- require HERMES_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require HERMES_TEMPLATES . '/menu.inc';
}
}
}
$title = _("Deliverables");
-require HERMES_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require HERMES_TEMPLATES . '/menu.inc';
$renderer = new Horde_Form_Renderer();
$form->setCostObjects($vars);
$title = $vars->exists('id') ? _("Edit Time") : _("New Time");
-require HERMES_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require HERMES_TEMPLATES . '/menu.inc';
$form->renderActive(new Horde_Form_Renderer(), $vars, 'entry.php', 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
Horde::url('time.php')->redirect();
}
-require HERMES_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require HERMES_TEMPLATES . '/menu.inc';
$renderer = new Horde_Form_Renderer(array('varrenderer_driver' => 'tableset_html'));
if (!$print_view) {
Horde::addScriptFile('popup.js', 'horde', true);
}
-require HERMES_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
if (!($searchVars = $session->get('hermes', 'search_criteria'))) {
$searchVars = $vars;
}
$title = _("Stop Watch");
-require HERMES_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
$renderer = new Horde_Form_Renderer();
$form->renderActive($renderer, $vars, 'start.php', 'post');
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Hermes: Copyright 2002-2009 The Horde Project. Hermes is under a Horde license. -->
-<!-- Horde Project: http://www.horde.org/ | Hermes: http://www.horde.org/hermes/ -->
-<!-- Horde Licenses: http://www.horde.org/licenses/ -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $GLOBALS['registry']->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon()
-Horde::includeStylesheetFiles();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body<?php if ($bc = Horde_Util::nonInputVar('bodyClass')) echo ' class="' . $bc . '"' ?><?php if ($bi = Horde_Util::nonInputVar('bodyId')) echo ' id="' . $bi . '"'; ?>>
if (!$print_view) {
Horde::addScriptFile('popup.js', 'horde', true);
}
-require HERMES_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
if ($print_view) {
require $registry->get('templates', 'horde') . '/javascript/print.js';
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require HYLAX_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(HYLAX_TEMPLATES . '/compose/compose.html');
$renderer = new Horde_Form_Renderer();
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require HYLAX_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(HYLAX_TEMPLATES . '/folder/folder.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require HYLAX_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(HYLAX_TEMPLATES . '/fax/fax.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require HYLAX_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(HYLAX_TEMPLATES . '/summary/summary.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Hylax: Copyright 2003-2010 The Horde Project. Hylax is under a Horde license. -->
-<!-- Horde Project: http://www.horde.org/ | Hylax: http://www.horde.org/hylax/ -->
-<!-- Horde Licenses: http://www.horde.org/licenses/ -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $GLOBALS['registry']->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body>
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require HYLAX_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(HYLAX_TEMPLATES . '/fax/fax.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$menu = Ingo::menu();
Ingo::addNewFolderJs();
$title = _("Blacklist Edit");
-require INGO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $menu;
Ingo::status();
require INGO_TEMPLATES . '/blacklist/blacklist.inc';
Horde::addScriptFile('filters.js', 'ingo');
$menu = Ingo::menu();
$title = _("Filter Rules");
-require INGO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $menu;
Ingo::status();
require INGO_TEMPLATES . '/filters/header.inc';
$title = _("Forwards Edit");
$menu = Ingo::menu();
-require INGO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $menu;
Ingo::status();
$form->renderActive(new Horde_Form_Renderer(array('encode_title' => false)), $vars, 'forward.php', 'post');
Horde::addScriptFile('rule.js', 'ingo');
$menu = Ingo::menu();
Ingo::addNewFolderJs();
-require INGO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $menu;
Ingo::status();
require INGO_TEMPLATES . '/rule/header.inc';
$title = _("Filter Script Display");
$menu = Ingo::menu();
-require INGO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $menu;
Ingo::status();
require INGO_TEMPLATES . '/script/header.inc';
$title = _("Spam Filtering");
$menu = Ingo::menu();
Ingo::addNewFolderJs();
-require INGO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $menu;
Ingo::status();
$form->renderActive($renderer, $vars, 'spam.php', 'post');
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-$page_title = $GLOBALS['registry']->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
- Horde::outputMetaTags();
- Horde::includeStylesheetFiles();
- Horde::includeScriptFiles();
- Horde::includeFavicon();
- Horde::outputInlineScript();
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body>
$title = _("Vacation Edit");
$menu = Ingo::menu();
-require INGO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $menu;
Ingo::status();
$form->renderActive(new Horde_Form_Renderer(array('encode_title' => false)), $vars, 'vacation.php', 'post');
$title = _("Whitelist Edit");
$menu = Ingo::menu();
-require INGO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $menu;
Ingo::status();
require INGO_TEMPLATES . '/whitelist/whitelist.inc';
$GLOBALS['notification']->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require JONAH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(JONAH_TEMPLATES . '/delivery/html.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
* Initialization function.
*
* Global variables defined:
+ * - $linkTags: <link> tags for common-header.inc.
*/
protected function _init()
{
$GLOBALS['injector']->bindFactory('Jonah_Driver', 'Jonah_Injector_Factory_Driver', 'create');
+
+ if ($channel_id = Horde_Util::getFormData('channel_id')) {
+ $url = Horde::url('delivery/rss.php', true, -1)
+ ->add('channel_id', $channel_id);
+ if ($tag_id = Horde_Util::getFormData('tag_id')) {
+ $url->add('tag_id', $tag_id);
+ }
+ $GLOBALS['linkTags'] = array('<link rel="alternate" type="application/rss+xml" title="RSS 0.91" href="' . $url . '" />');
+ }
}
/**
{
extract($this->_params, EXTR_REFS);
$notification->push(sprintf(_("Error fetching story: %s"), $message), 'horde.error');
- require JONAH_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
$notification->notify(array('listeners' => 'status'));
require $registry->get('templates', 'horde') . '/common-footer.inc';
exit;
exit;
}
- require JONAH_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require JONAH_TEMPLATES . '/menu.inc';
$form->renderActive(null, $vars, Horde::selfUrl(), 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$renderer = new Horde_Form_Renderer();
$title = $form->getTitle();
- require JONAH_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require JONAH_TEMPLATES . '/menu.inc';
$form->renderActive($renderer, $vars, 'edit.php', 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
Horde::addScriptFile('prototype.js', 'horde', true);
Horde::addScriptFile('tables.js', 'horde', true);
Horde::addScriptFile('quickfinder.js', 'horde', true);
- require JONAH_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require JONAH_TEMPLATES . '/menu.inc';
echo $view->render('channellist');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$GLOBALS['notification']->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
- require JONAH_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(JONAH_TEMPLATES . '/delivery/html.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
}
Horde::url('stories/index.php', true)->add('channel_id', $channel_id)->setRaw(true)->redirect();
exit;
}
- require JONAH_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require JONAH_TEMPLATES . '/menu.inc';
$form->renderActive(null, $vars, 'delete.php', 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
/* Needed javascript. */
Horde::addScriptFile('open_calendar.js', 'horde');
$title = $form->getTitle();
- require JONAH_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require JONAH_TEMPLATES . '/menu.inc';
$form->renderActive($form->getRenderer(), $vars, 'edit.php', 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$view->stories = $stories;
$view->read = true;
$view->comments = $conf['comments']['allow'] && $registry->hasMethod('forums/numMessages') && $channel['channel_type'] == Jonah::INTERNAL_CHANNEL;
- require JONAH_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require JONAH_TEMPLATES . '/menu.inc';
echo $view->render('index');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$story = $driver->getStory($channel_id, $story_id, !$browser->isRobot());
} catch (Exception $e) {
$notification->push(sprintf(_("Error fetching story: %s"), $e->getMessage()), 'horde.warning');
- require JONAH_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require JONAH_TEMPLATES . '/menu.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
exit;
}
}
- require JONAH_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require JONAH_TEMPLATES . '/menu.inc';
echo $view->render('view');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$view->stories = $stories;
$view->read = true;
$view->comments = $conf['comments']['allow'] && $registry->hasMethod('forums/numMessages') && $channel['channel_type'] == Jonah::INTERNAL_CHANNEL;
- require JONAH_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require JONAH_TEMPLATES . '/menu.inc';
echo $view->render('index');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$GLOBALS['notification']->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require JONAH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $share_template->fetch(JONAH_TEMPLATES . '/stories/share.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$story_id = $injector->getInstance('Jonah_Driver')->getLatestStoryId($channel_id);
} catch (Exception $e) {
$notification->push(sprintf(_("Error fetching story: %s"), $e->getMessage()), 'horde.warning');
- require JONAH_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require JONAH_TEMPLATES . '/menu.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
exit;
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $GLOBALS['registry']->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-if ($channel_id = Horde_Util::getFormData('channel_id')) {
- $rss_url_params = array('channel_id' => $channel_id);
- if ($tag_id = Horde_Util::getFormData('tag_id')) {
- $rss_url_params['tag_id'] = $tag_id;
- }
- echo '<link rel="alternate" type="application/rss+xml" title="RSS 0.91" href="' . Horde_Util::addParameter(Horde::url('delivery/rss.php', true, -1), $rss_url_params) . '" />';
-}
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body<?php if ($bc = Horde_Util::nonInputVar('bodyClass')) echo ' class="' . $bc . '"' ?><?php if ($bi = Horde_Util::nonInputVar('bodyId')) echo ' id="' . $bi . '"'; ?>>
}
}
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
?>
<div id="menu"><h1> <?php echo htmlspecialchars($title) ?></h1></div>
));
$title = _("Edit attendees");
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
$notification->notify(array('listeners' => 'status'));
require KRONOLITH_TEMPLATES . '/attendees/attendees.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
$title = $form->getTitle();
$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
echo $form->renderActive($form->getRenderer(), $vars, 'create.php', 'post');
$title = $form->getTitle();
$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
echo $form->renderActive($form->getRenderer(), $vars, 'delete.php', 'post');
));
$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
echo $form->renderActive($form->getRenderer(), $vars, 'edit.php', 'post');
Horde::addScriptFile('tables.js', 'horde');
$title = _("Manage Calendars");
$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
require KRONOLITH_TEMPLATES . '/calendar_list.php';
$vars->set('password', $password);
$title = $form->getTitle();
$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
echo $form->renderActive($form->getRenderer(), $vars, 'remote_edit.php', 'post');
$title = $form->getTitle();
$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
echo $form->renderActive($form->getRenderer(), $vars, 'remote_subscribe.php', 'post');
$vars->set('url', $calendar['url']);
$title = $form->getTitle();
$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
echo $form->renderActive($form->getRenderer(), $vars, 'remote_unsubscribe.php', 'post');
/* Display the form. */
$title = _("Address Book");
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
require KRONOLITH_TEMPLATES . '/contacts/contacts.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
$title = _("Import/Export Calendar");
$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
$view = Kronolith::getView('Day');
$title = $view->getTime($prefs->getValue('date_format'));
+if ($prefs->getValue('show_panel')) {
+ $bodyClass = 'rightPanel';
+}
+
+Horde::addScriptFile('views.js', 'kronolith');
-Horde::addScriptFile('tooltips.js', 'horde');
-$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
-echo $menu;
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
+echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
echo '<div id="page">';
}
$title = $view->getTitle();
-$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
-echo $menu;
+if ($prefs->getValue('show_panel')) {
+ $bodyClass = 'rightPanel';
+}
+
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
+echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
echo '<div id="page">';
* Initialization function.
*
* Global variables defined:
- * $kronolith_shares - TODO
+ * - $kronolith_shares: TODO
+ * - $linkTags: <link> tags for common-header.inc.
*/
protected function _init()
{
$GLOBALS['kronolith_shares'] = $GLOBALS['injector']->getInstance('Horde_Core_Factory_Share')->create();
Kronolith::initialize();
+
+ $GLOBALS['linkTags'] = array();
+ foreach ($GLOBALS['display_calendars'] as $calendar) {
+ $GLOBALS['linkTags'][] = '<link href="' . Kronolith::feedUrl($calendar) . '" rel="alternate" type="application/atom+xml" />';
+ }
}
/**
$view = Kronolith::getView('Month');
$title = $view->date->strftime('%B %Y');
+if ($prefs->getValue('show_panel')) {
+ $bodyClass = 'rightPanel';
+}
+
+Horde::addScriptFile('views.js', 'kronolith');
-Horde::addScriptFile('tooltips.js', 'horde');
-$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
-echo $menu;
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
+echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
echo '<div id="page">';
Horde::addScriptFile('edit.js', 'kronolith');
Horde::addScriptFile('popup.js', 'horde');
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
require KRONOLITH_TEMPLATES . '/edit/edit.inc';
Horde::logMessage($e, 'NOTICE');
}
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
$notification->notify(array('listeners' => 'status'));
require KRONOLITH_TEMPLATES . '/perms/perms.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
$menu = Horde::menu();
$title = $form->getTitle();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
echo $form->renderActive($form->getRenderer(), $vars, 'create.php', 'post');
$menu = Horde::menu();
$title = $form->getTitle();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
echo $form->renderActive($form->getRenderer(), $vars, 'delete.php', 'post');
$menu = Horde::menu();
$title = $form->getTitle();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
echo $form->renderActive($form->getRenderer(), $vars, 'edit.php', 'post');
$title = $form->getTitle();
$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
echo $form->renderActive($form->getRenderer(), $vars, 'create.php', 'post');
$title = $form->getTitle();
$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
echo $form->renderActive($form->getRenderer(), $vars, 'delete.php', 'post');
$title = $form->getTitle();
$menu = Horde::menu();
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
echo $form->renderActive($form->getRenderer(), $vars, 'edit.php', 'post');
$menu = Horde::menu();
$title = _("Resource Groups");
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
$menu = Horde::menu();
$title = _("Edit resources");
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
$menu = Horde::menu();
$title = _("Search");
Horde::addScriptFile('tooltips.js', 'horde');
-require KRONOLITH_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
echo $menu;
$notification->notify(array('listeners' => 'status'));
+++ /dev/null
-<?php
-
-Horde::addScriptFile('effects.js', 'horde');
-Horde::addScriptFile('views.js', 'kronolith');
-Horde::addScriptFile('stripe.js', 'horde');
-
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Kronolith: Copyright 2000-2010 The Horde Project. Kronolith is under the GPL. -->
-<!-- Horde Project: http://www.horde.org/ | Kronolith: http://www.horde.org/kronolith/ -->
-<!-- GNU Public License: http://www.fsf.org/copyleft/gpl.html -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-foreach ($GLOBALS['display_calendars'] as $calendar) {
- echo '<link href="' . Kronolith::feedUrl($calendar) . '" rel="alternate" type="application/atom+xml" />';
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-require KRONOLITH_TEMPLATES . '/javascript_defs.php';
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-Horde::outputInlineScript();
-
-$bc = (isset($view) && is_object($view) && $prefs->getValue('show_panel'))
- ? 'rightPanel'
- : '';
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body<?php if ($bc) echo ' class="' . $bc . '"' ?>>
$view = Kronolith::getView('Week');
$title = sprintf(_("Week %d"), $view->week);
-$menu = Horde::menu();
+if ($prefs->getValue('show_panel')) {
+ $bodyClass = 'rightPanel';
+}
+
+Horde::addScriptFile('views.js', 'kronolith');
-Horde::addScriptFile('tooltips.js', 'horde');
-require KRONOLITH_TEMPLATES . '/common-header.inc';
-echo $menu;
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
+echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
echo '<div id="page">';
$view = Kronolith::getView('WorkWeek');
$title = sprintf(_("Week %d"), $view->week);
-$menu = Horde::menu();
+if ($prefs->getValue('show_panel')) {
+ $bodyClass = 'rightPanel';
+}
+
+Horde::addScriptFile('views.js', 'kronolith');
-Horde::addScriptFile('tooltips.js', 'horde');
-require KRONOLITH_TEMPLATES . '/common-header.inc';
-echo $menu;
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
+echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
echo '<div id="page">';
$view = Kronolith::getView('Year');
$title = $view->year;
-$menu = Horde::menu();
+if ($prefs->getValue('show_panel')) {
+ $bodyClass = 'rightPanel';
+}
+
+Horde::addScriptFile('views.js', 'kronolith');
-require KRONOLITH_TEMPLATES . '/common-header.inc';
-echo $menu;
+require $registry->get('templates', 'horde') . '/common-header.inc';
+require KRONOLITH_TEMPLATES . '/javascript_defs.php';
+echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
echo '<div id="page">';
// If there are multiple search results, display some info for all of them.
$title = sprintf(_("Symbol Search for \"%s\""), $symbol);
-require LUXOR_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require LUXOR_TEMPLATES . '/menu.inc';
echo '<h1 class="header">' . htmlspecialchars($title) . '</h1>';
$notification->push($content->getMessage(), 'horde.error');
}
-require LUXOR_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require LUXOR_TEMPLATES . '/menu.inc';
require LUXOR_TEMPLATES . '/headerbar.inc';
if (!is_a($content, 'PEAR_Error')) {
}
$title = sprintf(_("%s :: Symbol \"%s\""), $source['name'], $index->symname($ident));
-require LUXOR_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require LUXOR_TEMPLATES . '/menu.inc';
$view = new Horde_View(array('templatePath' => LUXOR_TEMPLATES));
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Luxor: Copyright 2003-2009 The Horde Project. Luxor is under the GPL. -->
-<!-- Horde Project: http://www.horde.org/ | Luxor: http://www.horde.org/luxor/ -->
-<!-- Horde Licenses: http://www.horde.org/licenses/ -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body<?php if ($bc = Horde_Util::nonInputVar('bodyClass')) echo ' class="' . $bc . '"' ?><?php if ($bi = Horde_Util::nonInputVar('bodyId')) echo ' id="' . $bi . '"'; ?>>
}
$title = _("Import/Export Notes");
-require MNEMO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify();
protected function _init()
{
Mnemo::initialize();
+ $GLOBALS['injector']->getInstance('Horde_Themes_Css')->addThemeStylesheet('categoryCSS.php');
}
/**
break;
}
+if ($prefs->getValue('show_panel')) {
+ $bodyClass = 'rightPanel';
+}
+
Horde::addScriptFile('tables.js', 'horde', true);
Horde::addScriptFile('quickfinder.js', 'horde', true);
-require MNEMO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify();
require MNEMO_TEMPLATES . '/list/header.inc';
}
$notepads = Mnemo::listNotepads(false, Horde_Perms::EDIT);
-require MNEMO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify();
require MNEMO_TEMPLATES . '/memo/memo.inc';
}
$title = $form->getTitle();
-require MNEMO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify();
echo $form->renderActive($form->getRenderer(), $vars, 'create.php', 'post');
}
$title = $form->getTitle();
-require MNEMO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify();
echo $form->renderActive($form->getRenderer(), $vars, 'delete.php', 'post');
$vars->set('name', $notepad->get('name'));
$vars->set('description', $notepad->get('desc'));
$title = $form->getTitle();
-require MNEMO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify();
echo $form->renderActive($form->getRenderer(), $vars, 'edit.php', 'post');
Horde::addScriptFile('popup.js', 'horde', true);
Horde::addScriptFile('tables.js', 'horde', true);
$title = _("Manage Notepads");
-require MNEMO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify();
require MNEMO_TEMPLATES . '/notepad_list.php';
$title = _("Search Results");
$memos = $search_results;
+if ($prefs->getValue('show_panel')) {
+ $bodyClass = 'rightPanel';
+}
+
Horde::addScriptFile('tables.js', 'horde', true);
Horde::addScriptFile('quickfinder.js', 'horde', true);
-require MNEMO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
require MNEMO_TEMPLATES . '/list/header.inc';
'$("search_pattern").focus()'
), 'dom');
+if ($prefs->getValue('show_panel')) {
+ $bodyClass = 'rightPanel';
+}
+
$title = _("Search");
-require MNEMO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify();
require MNEMO_TEMPLATES . '/search/search.inc';
break;
}
-require MNEMO_TEMPLATES . '/common-header.inc';
+if ($prefs->getValue('show_panel')) {
+ $bodyClass = 'rightPanel';
+}
+
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify();
require MNEMO_TEMPLATES . '/list/header.inc';
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Mnemo: Copyright 2002-2009 The Horde Project. Mnemo is under a Horde license. -->
-<!-- Horde Project: http://www.horde.org/ | Mnemo: http://www.horde.org/mnemo/ -->
-<!-- Horde Licenses: http://www.horde.org/licenses/ -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-
-$injector->getInstance('Horde_Themes_Css')->addThemeStylesheet('categoryCSS.php');
-Horde::includeStylesheetFiles();
-
-$bc = $prefs->getValue('show_panel')
- ? 'rightPanel'
- : '';
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body<?php if ($bc) echo ' class="' . $bc . '"' ?><?php if ($bi = Horde_Util::nonInputVar('bodyId')) echo ' id="' . $bi . '"'; ?>>
if (!$print_view) {
Horde::addScriptFile('popup.js', 'horde', true);
}
-require MNEMO_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
if ($print_view) {
require $registry->get('templates', 'horde') . '/javascript/print.js';
}
$title = _("Import/Export Tasks");
-require NAG_TEMPLATES . '/common-header.inc';
-echo Horde::menu();
+require $registry->get('templates', 'horde') . '/common-header.inc';
+echo Nag::menu();
Nag::status();
foreach ($templates[$next_step] as $template) {
$GLOBALS['nag_shares'] = $GLOBALS['injector']->getInstance('Horde_Core_Factory_Share')->create();
Nag::initialize();
+
+ $GLOBALS['injector']->getInstance('Horde_Themes_Css')->addThemeStylesheet('categoryCSS.php');
}
/**
$GLOBALS['prefs']->setValue('display_tasklists', serialize($GLOBALS['display_tasklists']));
}
+ public static function menu()
+ {
+ Horde::startBuffer();
+ include NAG_TEMPLATES . '/quick.inc';
+ return Horde::menu() . Horde::endBuffer();
+ }
+
/**
* Trigger notifications.
*/
Horde::addScriptFile('effects.js', 'horde');
Horde::addScriptFile('quickfinder.js', 'horde');
-require NAG_TEMPLATES . '/common-header.inc';
-echo Horde::menu();
+if ($prefs->getValue('show_panel')) {
+ $bodyClass = 'rightPanel';
+}
+
+require $registry->get('templates', 'horde') . '/common-header.inc';
+echo Nag::menu();
Nag::status();
echo '<div id="page">';
'$("search_pattern")'
), 'dom');
+if ($prefs->getValue('show_panel')) {
+ $bodyClass = 'rightPanel';
+}
$title = _("Search");
-require NAG_TEMPLATES . '/common-header.inc';
-echo Horde::menu();
+NAG_TEMPLATES . '/common-header.inc';
+echo Nag::menu();
Nag::status();
require NAG_TEMPLATES . '/search/search.inc';
require NAG_TEMPLATES . '/panel.inc';
}
$title = $form->getTitle();
-require NAG_TEMPLATES . '/common-header.inc';
-echo Horde::menu();
+require $registry->get('templates', 'horde') . '/common-header.inc';
+echo Nag::menu();
Nag::status();
$form->renderActive();
require $registry->get('templates', 'horde') . '/common-footer.inc';
}
$title = $form->getTitle();
-require NAG_TEMPLATES . '/common-header.inc';
-echo Horde::menu();
+require $registry->get('templates', 'horde') . '/common-header.inc';
+echo Nag::menu();
Nag::status();
echo $form->renderActive($form->getRenderer(), $vars, 'create.php', 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
}
$title = $form->getTitle();
-require NAG_TEMPLATES . '/common-header.inc';
-echo Horde::menu();
+require $registry->get('templates', 'horde') . '/common-header.inc';
+echo Nag::menu();
Nag::status();
echo $form->renderActive($form->getRenderer(), $vars, 'delete.php', 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$vars->set('description', $tasklist->get('desc'));
$vars->set('system', is_null($tasklist->get('owner')));
$title = $form->getTitle();
-require NAG_TEMPLATES . '/common-header.inc';
-echo Horde::menu();
+require $registry->get('templates', 'horde') . '/common-header.inc';
+echo Nag::menu();
Nag::status();
echo $form->renderActive($form->getRenderer(), $vars, 'edit.php', 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
Horde::addScriptFile('tables.js', 'horde');
$title = _("Manage Task Lists");
-require NAG_TEMPLATES . '/common-header.inc';
-echo Horde::menu();
+require $registry->get('templates', 'horde') . '/common-header.inc';
+echo Nag::menu();
Nag::status();
require NAG_TEMPLATES . '/tasklist_list.php';
require $registry->get('templates', 'horde') . '/common-footer.inc';
Horde::addScriptFile('effects.js', 'horde');
Horde::addScriptFile('quickfinder.js', 'horde');
-require NAG_TEMPLATES . '/common-header.inc';
-echo Horde::menu();
+if ($prefs->getValue('show_panel')) {
+ $bodyClass = 'rightPanel';
+}
+
+require $registry->get('templates', 'horde') . '/common-header.inc';
+echo Nag::menu();
Nag::status();
echo '<div id="page">';
require NAG_TEMPLATES . '/list.html.php';
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::addInlineJsVars(array(
- '-var Nag' => '{}'
-), array('top' => true));
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::outputInlineScript();
-Horde::includeFavicon();
-
-$injector->getInstance('Horde_Themes_Css')->addThemeStylesheet('categoryCSS.php');
-Horde::includeStylesheetFiles();
-
-$bc = $prefs->getValue('show_panel')
- ? 'rightPanel'
- : '';
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body<?php if ($bc) echo ' class="' . $bc . '"' ?>>
-
-<div id="quickAddInfoPanel" class="quickAddInfoPanel" style="display:none;">
- <h2><?php echo _("Quick Task Creation") ?></h2>
- <form method="post" action="quick.php">
- <p><?php echo _("Enter one task per line. Create child tasks by indenting them below their parent task. Include due dates like \"laundry tomorrow\" or \"get dry cleaning next Thursday\".") ?></p>
- <textarea name="quickText" id="quickText"></textarea>
- <p><input type="submit" value="<?php echo _("Create") ?>" /></p>
- </form>
-</div>
--- /dev/null
+<div id="quickAddInfoPanel" class="quickAddInfoPanel" style="display:none;">
+ <h2><?php echo _("Quick Task Creation") ?></h2>
+ <form method="post" action="quick.php">
+ <p><?php echo _("Enter one task per line. Create child tasks by indenting them below their parent task. Include due dates like \"laundry tomorrow\" or \"get dry cleaning next Thursday\".") ?></p>
+ <textarea name="quickText" id="quickText"></textarea>
+ <p>
+ <input type="submit" class="button" value="<?php echo _("Create") ?>" />
+ <input type="button" class="button" onclick="RedBox.close()" value="<?php echo _("Cancel") ?>" />
+ </p>
+ </form>
+</div>
$links[] = Horde::widget(Horde::url(Horde_Util::addParameter($taskurl, 'actionID', 'delete_task')), _("Delete"), 'smallheader', '', $prefs->getValue('delete_opt') ? 'return window.confirm(\'' . addslashes(_("Really delete this task?")) . '\');' : '', _("_Delete"));
}
-require NAG_TEMPLATES . '/common-header.inc';
-echo Horde::menu();
+require $registry->get('templates', 'horde') . '/common-header.inc';
+echo Nag::menu();
Nag::status();
/* Set up alarm units and value. */
$title = _("Export Call Detail Records");
-require OPERATOR_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require OPERATOR_TEMPLATES . '/menu.inc';
$notification->notify();
$form->renderActive($renderer, $vars, Horde::url('export.php'), 'post');;
$title = _("Search Call Detail Records");
Horde::addScriptFile('stripe.js', 'horde', true);
-require OPERATOR_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require OPERATOR_TEMPLATES . '/menu.inc';
$notification->notify();
$form->renderActive($renderer, $vars, Horde::url('search.php'), 'post');
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<!-- Operator: Copyright 2008 Alkaloid Networks LLC. Operator is under a Horde license. -->
-<!-- Horde Project: http://www.horde.org/ | Operator: http://projects.alkaloid.net/ -->
-<!-- Horde Licenses: http://www.horde.org/licenses/ -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body>
$title = _("Call Detail Records Graph");
-require OPERATOR_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require OPERATOR_TEMPLATES . '/menu.inc';
$form->renderActive($renderer, $vars, Horde::url('viewgraph.php'), 'post');
), 'dom');
$title = _("Change Password");
-require PASSWD_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require PASSWD_TEMPLATES . '/main/main.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
+++ /dev/null
-<?php
-global $language;
-if (isset($language)) {
- header('Content-type: text/html; charset=' . NLS::getCharset());
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Passwd: Copyright 2002-2009 The Horde Project. Passwd is under a Horde license. -->
-<!-- Horde Project: http://www.horde.org/ | Passwd: http://www.horde.org/passwd/ -->
-<!-- Horde Licenses: http://www.horde.org/licenses/ -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-/* Print the page title. */
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body<?php if ($bc = Util::nonInputVar('bodyClass')) echo ' class="' . $bc . '"' ?><?php if ($bi = Util::nonInputVar('bodyId')) echo ' id="' . $bi . '"'; ?>>
$title = $form->getTitle();
-require PASTIE_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require PASTIE_TEMPLATES . '/menu.inc';
require PASTIE_TEMPLATES . '/paste.inc';
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body>
$title = _("View Paste");
-require PASTIE_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require PASTIE_TEMPLATES . '/menu.inc';
require PASTIE_TEMPLATES . '/view.inc';
Horde::addScriptFile('stripe.js', 'horde');
-require SHOUT_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require SHOUT_TEMPLATES . '/menu.inc';
$notification->notify();
Horde::addScriptFile('stripe.js', 'horde');
-require SHOUT_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require SHOUT_TEMPLATES . '/menu.inc';
$notification->notify();
Horde::addScriptFile('stripe.js', 'horde');
-require SHOUT_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require SHOUT_TEMPLATES . '/menu.inc';
$notification->notify();
}
Horde::addScriptFile('stripe.js', 'horde');
-require SHOUT_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require SHOUT_TEMPLATES . '/menu.inc';
$notification->notify();
}
Horde::addScriptFile('stripe.js', 'horde');
-require SHOUT_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require SHOUT_TEMPLATES . '/menu.inc';
$notification->notify();
Horde::addScriptFile('stripe.js', 'horde');
Horde::addScriptFile('scriptaculous.js', 'horde');
-require SHOUT_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require SHOUT_TEMPLATES . '/menu.inc';
$notification->notify();
Horde::addScriptFile('stripe.js', 'horde');
Horde::addScriptFile('scriptaculous.js', 'horde');
-require SHOUT_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require SHOUT_TEMPLATES . '/menu.inc';
$notification->notify();
Horde::addScriptFile('stripe.js', 'horde');
-require SHOUT_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require SHOUT_TEMPLATES . '/menu.inc';
$notification->notify();
+++ /dev/null
-<?php
- if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
- }
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "DTD/xhtml1-transitional.dtd">
-<!-- Shout: Copyright 2005-2006, Ben Klang. -->
-<!-- Horde Project: http://horde.org/ | Shout: http://projects.alkaloid.net/ -->
-<!-- Horde Licenses: http://www.horde.org/licenses/ -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $GLOBALS['registry']->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeStylesheetFiles();
-
-?>
- <title><?php echo $page_title ?></title>
-</head>
-
-<body>
Horde::addScriptFile('scriptaculous.js', 'horde');
Horde::addScriptFile('stripe.js', 'horde');
-require SHOUT_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require SHOUT_TEMPLATES . '/menu.inc';
$notification->notify();
$title = _("List");
-require SKELETON_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
require $registry->get('templates', 'horde') . '/common-footer.inc';
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body>
echo Horde::wrapInlineScript(array('window.close();'));
} elseif (Horde_Util::getFormData('iframe')) {
$notification->push(_("Bookmark Added"), 'horde.success');
- require TREAN_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
$notification->notify();
} else {
Horde::url('browse.php', true)
}
$title = _("New Bookmark");
-require TREAN_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
if (!Horde_Util::getFormData('popup') && !Horde_Util::getFormData('iframe')) {
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
Horde::addScriptFile('effects.js', 'horde', true);
Horde::addScriptFile('redbox.js', 'horde', true);
$title = _("Browse");
-require TREAN_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
if (!Horde_Util::getFormData('popup')) {
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
}
$title = _("Import Bookmarks");
-require TREAN_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
if (!$folders_exceeded || !$bookmarks_exceeded) {
case 'del_folder':
$folder = &$trean_shares->getFolder($folderId);
$title = _("Confirm Deletion");
- require TREAN_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
require TREAN_TEMPLATES . '/edit/delete_folder_confirmation.inc';
}
$title = _("Edit Bookmark");
-require TREAN_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
if (!Horde_Util::getFormData('popup')) {
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
* Initialization function.
*
* Global variables defined:
- * $trean_db - TODO
- * $trean_shares - TODO
+ * - $trean_db: TODO
+ * - $trean_shares: TODO
+ * - $linkTags: <link> tags for common-header.inc.
+ * - $bodyClass: <body> CSS class for common-header.inc.
*/
protected function _init()
{
$GLOBALS['trean_shares'] = new Trean_Bookmarks();
Trean::initialize();
+
+ $GLOBALS['injector']->getInstance('Horde_Themes_Css')->addThemeStylesheet('grids-min.css');
+ $rss = Horde::url('rss.php', true, -1);
+ if (Horde_Util::getFormData('f')) {
+ $rss->add('f', Horde_Util::getFormData('f'));
+ }
+ $GLOBALS['linkTags'] = array('<link rel="alternate" type="application/rss+xml" title="' . htmlspecialchars(_("Bookmarks Feed")) . '" href="' . $rss . '" />');
+ if ($GLOBALS['prefs']->getValue('show_folder_actions')) {
+ $GLOBALS['bodyClass'] = 'folderActions';
+ }
}
/**
$drilldown = Horde_Util::getFormData('drilldown');
$title = _("Reports");
Horde::addScriptFile('stripe.js', 'horde', true);
-require TREAN_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
require_once TREAN_BASE . '/lib/Views/BookmarkList.php';
$title = _("Search");
-require TREAN_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo Horde::menu();
$notification->notify(array('listeners' => 'status'));
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Trean: Copyright 2000-2009 The Horde Project. Trean is under a Horde license. -->
-<!-- Horde Project: http://www.horde.org/ | Trean: http://www.horde.org/trean/ -->
-<!-- Horde Licenses: http://www.horde.org/licenses/ -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-
-$injector->getInstance('Horde_Themes_Css')->addThemeStylesheet('grids-min.css');
-Horde::includeStylesheetFiles();
-
-$rss = Horde::url('rss.php', true, -1);
-if (Horde_Util::getFormData('f')) {
- $rss = Horde_Util::addParameter($rss, 'f', Horde_Util::getFormData('f'), false);
-}
-echo '<link rel="alternate" type="application/rss+xml" title="' . htmlspecialchars(_("Bookmarks Feed")) . '" href="' . $rss . '" />';
-
-$bc = Horde_Util::nonInputVar('bodyClass');
-if ($prefs->getValue('show_folder_actions')) {
- if ($bc) {
- $bc .= ' ';
- }
- $bc .= 'folderActions';
-}
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body<?php if ($bc) echo ' class="' . $bc . '"' ?><?php if ($bi = Horde_Util::nonInputVar('bodyId')) echo ' id="' . $bi . '"'; ?>>
}
$title = _("New Contact");
-require TURBA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require TURBA_TEMPLATES . '/menu.inc';
$form->renderActive(new Horde_Form_Renderer(), $vars, Horde::url('add.php'), 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
}
$title = $form->getTitle();
-require TURBA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require TURBA_TEMPLATES . '/menu.inc';
echo $form->renderActive($form->getRenderer(), $vars, Horde::url('addressbooks/create.php'), 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
}
$title = $form->getTitle();
-require TURBA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require TURBA_TEMPLATES . '/menu.inc';
echo $form->renderActive($form->getRenderer(), $vars, Horde::url('addressbooks/delete.php'), 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$vars->set('name', $addressbook->get('name'));
$vars->set('description', $addressbook->get('desc'));
$title = $form->getTitle();
-require TURBA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require TURBA_TEMPLATES . '/menu.inc';
echo $form->renderActive($form->getRenderer(), $vars, Horde::url('edit.php'), 'post');
require $registry->get('templates', 'horde') . '/common-footer.inc';
Horde::addScriptFile('tables.js', 'horde');
$title = _("Manage Address Books");
-require TURBA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require TURBA_TEMPLATES . '/menu.inc';
require TURBA_TEMPLATES . '/addressbook_list.php';
require $registry->get('templates', 'horde') . '/common-footer.inc';
$title = $view->getTitle();
Horde::addScriptFile('contact_tabs.js', 'turba');
-require TURBA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require TURBA_TEMPLATES . '/menu.inc';
echo '<div id="page">';
echo $tabs->render($viewName);
/* If there are absolutely no valid sources, abort. */
if (!$cfgSources) {
$notification->push(_("No Address Books are currently available. Import and Export is disabled."), 'horde.error');
- require TURBA_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require TURBA_TEMPLATES . '/menu.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
exit;
}
$title = _("Import/Export Address Books");
-require TURBA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require TURBA_TEMPLATES . '/menu.inc';
$default_source = $prefs->getValue('default_dir');
}
$title = _("Deletion failed");
-require TURBA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require TURBA_TEMPLATES . '/menu.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
}
$title = sprintf(_("Edit \"%s\""), $contact->getValue('name'));
-require TURBA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require TURBA_TEMPLATES . '/menu.inc';
$form->setTitle($title);
$form->renderActive(new Horde_Form_Renderer(), $vars, Horde::url('edit.php'), 'post');
Horde::addScriptFile('quickfinder.js', 'horde');
Horde::addScriptFile('effects.js', 'horde');
Horde::addScriptFile('redbox.js', 'horde');
- require TURBA_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require TURBA_TEMPLATES . '/menu.inc';
foreach ($templates as $template) {
require TURBA_TEMPLATES . $template;
Horde::addScriptFile('prototype.js', 'horde');
$bodyClass = 'summary';
-require TURBA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
?>
<?php
/* If there are absolutely no valid sources, abort. */
if (!isset($addressBooks[$source])) {
$notification->push(_("No Address Books are currently available. Searching is disabled."), 'horde.error');
- require TURBA_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require TURBA_TEMPLATES . '/menu.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
exit;
Turba::addBrowseJs();
}
-require TURBA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require TURBA_TEMPLATES . '/menu.inc';
echo $tabs->render($search_mode);
echo $headerView->render('header');
+++ /dev/null
-<?php
-global $language;
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Turba: Copyright 2000-2010 The Horde Project. Turba is under an ASL license. -->
-<!-- Horde Project: http://www.horde.org/ | Turba: http://www.horde.org/turba/ -->
-<!-- Horde ASL License: http://www.horde.org/licenses/asl.php -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body<?php if ($bc = Horde_Util::nonInputVar('bodyClass')) echo ' class="' . $bc . '"' ?>>
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require VILMA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(VILMA_TEMPLATES . '/main/main.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require VILMA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(VILMA_TEMPLATES . '/main/main.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$template->set('images', $images);
/* Render the page. */
-require VILMA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(VILMA_TEMPLATES . '/domains/index.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Vilma: Copyright 2003-2010 The Horde Project. Vilma is under a Horde license. -->
-<!-- Horde Project: http://www.horde.org/ | Vilma: http://www.horde.org/vilma/ -->
-<!-- Horde BSD License: http://www.horde.org/licenses/bsdl.php -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $GLOBALS['registry']->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-Horde::outputInlineScript();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-</head>
-
-<body>
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require VILMA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(VILMA_TEMPLATES . '/main/main.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require VILMA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(VILMA_TEMPLATES . '/main/main.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require VILMA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(VILMA_TEMPLATES . '/main/main.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require VILMA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(VILMA_TEMPLATES . '/main/main.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$template->set('images', $images);
/* Render the page. */
-require VILMA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(VILMA_TEMPLATES . '/users/index.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require VILMA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(VILMA_TEMPLATES . '/main/main.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
-require VILMA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(VILMA_TEMPLATES . '/main/main.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$template->set('notify', Horde::endBuffer());
/* Render the page. */
-require VILMA_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
echo $template->fetch(VILMA_TEMPLATES . '/virtuals/index.html');
require $registry->get('templates', 'horde') . '/common-footer.inc';
$opened = true;
$title = _("Administration");
- require WHUPS_TEMPLATES . '/common-header.inc';
+ require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
echo $tabs->render($vars->get('action'));
}
* Whups initialization.
*
* Global variables defined:
- * $whups_driver - The global Whups driver object.
+ * - $whups_driver: The global Whups driver object.
+ * - $linkTags: <link> tags for common-header.inc.
*/
protected function _init()
{
$GLOBALS['whups_driver'] = Whups_Driver::factory();
$GLOBALS['whups_driver']->initialise();
+
+ $GLOBALS['linkTags'] = array('<link href="' . Horde::url('opensearch.php', true, -1) . '" rel="search" type="application/opensearchdescription+xml" title="' . $GLOBALS['registry']->get('name') . ' (' . Horde::url('', true) . ')" />');
}
/**
}
/**
+ * Returns a <link> tag for this query's feed.
+ *
+ * @return string A full <link> tag.
+ */
+ function feedLink()
+ {
+ return '<link rel="alternate" type="application/rss+xml" title="' . htmlspecialchars($this->name) . '" href="' . Whups::urlFor('query_rss', empty($this->slug) ? array('id' => $this->id) : array('slug' => $this->slug), true, -1) . '" />';
+ }
+
+ /**
* Tab operations for this query.
*/
function getTabs($vars)
}
/**
+ * Returns a <link> tag for this ticket's feed.
+ *
+ * @return string A full <link> tag.
+ */
+ function feedLink()
+ {
+ return '<link rel="alternate" type="application/rss+xml" title="' . htmlspecialchars('[#' . $this->getId() . '] ' . $this->get('summary')) . '" href="' . Whups::urlFor('ticket_rss', $this->getId(), true, -1) . '" />';
+ }
+
+ /**
* Sets exclusive read permissions on a comment to a certain group.
*
* @param integer $commentId The id of the comment to restrict.
$title = sprintf(_("My %s"), $registry->get('name'));
$menuBottom = '<div id="menuBottom"><a href="' . Horde::url('mybugs_edit.php') . '">' . _("Add Content") . '</a></div><div class="clear"> </div>';
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
echo $layout_html;
require $registry->get('templates', 'horde') . '/common-footer.inc';
}
$title = sprintf(_("My %s :: Add Content"), $registry->get('name'));
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
require $registry->get('templates', 'horde') . '/portal/edit.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
);
// Start the page.
+if ($whups_query->id) {
+ $linkTags[] = $whups_query->feedLink();
+}
$title = _("Query Builder");
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
echo $queryTabs->render(Horde_Util::getFormData('action', 'edit'));
$session->set('whups', 'last_search', Horde::url('query/run.php'));
}
+if ($whups_query->id) {
+ $linkTags[] = $whups_query->feedLink();
+}
$title = $whups_query->name ? $whups_query->name : _("Query Results");
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
echo $tabs->render($vars->get('action') ? $vars->get('action') : 'run');
}
$title = sprintf(_("Open tickets in %s"), $queue['name']);
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
$criteria = array('queue' => $id,
$reporter = new Whups_Reports($whups_driver);
$title = _("Reports");
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
if (count($queues)) {
require WHUPS_TEMPLATES . '/reports/stats.inc';
}
$title = _("Search");
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
if ($results) {
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Whups: Copyright 2002-2010 The Horde Project. Whups is under a Horde license. -->
-<!-- Horde Project: http://www.horde.org/ | Whups: http://www.horde.org/whups/ -->
-<!-- Horde Licenses: http://www.horde.org/licenses/ -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $GLOBALS['registry']->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-if (isset($ticket)) {
- echo '<link rel="alternate" type="application/rss+xml" title="' . htmlspecialchars('[#' . $ticket->getId() . '] ' . $ticket->get('summary')) . '" href="' . Whups::urlFor('ticket_rss', $ticket->getId(), true, -1) . '" />';
-}
-if (isset($whups_query) && isset($whups_query->id)) {
- echo '<link rel="alternate" type="application/rss+xml" title="' . htmlspecialchars($whups_query->name) . '" href="' . Whups::urlFor('query_rss', empty($whups_query->slug) ? array('id' => $whups_query->id) : array('slug' => $whups_query->slug), true, -1) . '" />';
-}
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-<link href="<?php echo Horde::url('opensearch.php', true, -1) ?>" rel="search" type="application/opensearchdescription+xml" title="<?php echo $registry->get('name') . ' (' . Horde::url('', true) . ')' ?>" />
-</head>
-
-<body>
require_once WHUPS_BASE . '/lib/Forms/AddComment.php';
$ticket = Whups::getCurrentTicket();
+$linkTags[] = $ticket->feedLink();
+
$vars = Horde_Variables::getDefaultVariables();
$vars->set('id', $id = $ticket->getId());
foreach ($ticket->getDetails() as $varname => $value) {
}
}
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
require WHUPS_TEMPLATES . '/prevnext.inc';
// Start the page.
$title = _("New Ticket");
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
if ($valid3 && $valid2 && $valid1) {
}
$ticket = Whups::getCurrentTicket();
+$linkTags[] = $ticket->feedLink();
$details = $ticket->getDetails();
if (!Whups::hasPermission($details['queue'], 'queue', Horde_Perms::DELETE)) {
$notification->push(_("Permission Denied"), 'horde.error');
}
}
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
require WHUPS_TEMPLATES . '/prevnext.inc';
$ticket = Whups::getCurrentTicket();
$vars = Horde_Variables::getDefaultVariables();
$ticket->setDetails($vars);
+$linkTags[] = $ticket->feedLink();
$title = '[#' . $ticket->getId() . '] ' . $ticket->get('summary');
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
require WHUPS_TEMPLATES . '/prevnext.inc';
}
$ticket = Whups::getCurrentTicket();
+$linkTags[] = $ticket->feedLink();
$vars = Horde_Variables::getDefaultVariables();
$vars->set('id', $id = $ticket->getId());
$form = $vars->get('formname');
}
$title = sprintf(_("Set Queue for %s"), '[#' . $id . '] ' . $ticket->get('summary'));
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
require WHUPS_TEMPLATES . '/prevnext.inc';
}
$ticket = Whups::getCurrentTicket();
+$linkTags[] = $ticket->feedLink();
$details = $ticket->getDetails();
if (!Whups::hasPermission($details['queue'], 'queue', 'update')) {
$notification->push(_("Permission Denied"), 'horde.error');
}
$title = sprintf(_("Set Type for %s"), '[#' . $id . '] ' . $ticket->get('summary'));
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
require WHUPS_TEMPLATES . '/prevnext.inc';
require_once WHUPS_BASE . '/lib/Forms/EditTicket.php';
$ticket = Whups::getCurrentTicket();
+$linkTags[] = $ticket->feedLink();
if (!Whups::hasPermission($ticket->get('queue'), 'queue', 'update')) {
$notification->push(_("Permission Denied"), 'horde.error');
}
$title = '[#' . $id . '] ' . $ticket->get('summary');
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
require WHUPS_TEMPLATES . '/prevnext.inc';
}
$ticket = Whups::getCurrentTicket();
+$linkTags[] = $ticket->feedLink();
$vars = Horde_Variables::getDefaultVariables();
$vars->set('id', $id = $ticket->getId());
foreach ($ticket->getDetails() as $varname => $value) {
}
$title = sprintf(_("Watchers for %s"), '[#' . $id . '] ' . $ticket->get('summary'));
-require WHUPS_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WHUPS_TEMPLATES . '/menu.inc';
require WHUPS_TEMPLATES . '/prevnext.inc';
}
$title = sprintf(_("Diff for %s between %s and %s"), $page->pageName(), $v1, $page->version());
-require WICKED_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WICKED_TEMPLATES . '/menu.inc';
$page->render(Wicked::MODE_DIFF, $v1);
require $registry->get('templates', 'horde') . '/common-footer.inc';
$history = $session->get('wicked', 'history', Horde_Session::TYPE_ARRAY);
$title = $page->pageTitle();
-require WICKED_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WICKED_TEMPLATES . '/menu.inc';
$page->render(Wicked::MODE_DISPLAY, $params);
require $registry->get('templates', 'horde') . '/common-footer.inc';
}
$title = sprintf(_("History: %s"), $page->pageName());
-require WICKED_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WICKED_TEMPLATES . '/menu.inc';
$page->render(Wicked::MODE_HISTORY);
require $registry->get('templates', 'horde') . '/common-footer.inc';
* Wicked initialization.
*
* Global variables defined:
- * $wicked - The Wicked_Driver object.
+ * - $wicked: The Wicked_Driver object.
+ * - $linkTags: <link> tags for common-header.inc.
*/
protected function _init()
{
$GLOBALS['wicked'] = Wicked_Driver::factory();
+ $GLOBALS['linkTags'] = array('<link href="' . Horde::url('opensearch.php', true, -1) . '" rel="search" type="application/opensearchdescription+xml" title="' . $GLOBALS['registry']->get('name') . ' (' . Horde::url('', true) . ')" />');
}
/**
$text = $wiki->transform($text);
$title = sprintf(_("Edit %s"), Horde_Util::getFormData('age'));
-require WICKED_TEMPLATES . '/common-header.inc';
+require $registry->get('templates', 'horde') . '/common-header.inc';
require WICKED_TEMPLATES . '/menu.inc';
require WICKED_TEMPLATES . '/edit/preview.inc';
require $registry->get('templates', 'horde') . '/common-footer.inc';
+++ /dev/null
-<?php
-if (isset($language)) {
- header('Content-type: text/html; charset=UTF-8');
- header('Vary: Accept-Language');
-}
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Wicked: Copyright 2003-2010 The Horde Project. Wicked is under a Horde license. -->
-<!-- Horde Project: http://www.horde.org/ | Wicked: http://www.horde.org/wicked/ -->
-<!-- Horde Licenses: http://www.horde.org/licenses/ -->
-<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
-<head>
-<?php
-
-$page_title = $registry->get('name');
-if (!empty($title)) {
- $page_title .= ' :: ' . $title;
-}
-
-Horde::outputMetaTags();
-Horde::includeScriptFiles();
-Horde::includeFavicon();
-Horde::includeStylesheetFiles();
-
-?>
-<title><?php echo htmlspecialchars($page_title) ?></title>
-<link href="<?php echo Horde::url('opensearch.php', true, -1) ?>" rel="search" type="application/opensearchdescription+xml" title="<?php echo $registry->get('name') . ' (' . Horde::url('', true) . ')' ?>" />
-</head>
-
-<body>