Skip to content
Snippets Groups Projects
Commit ea5fc2d5 authored by Tim Steiner's avatar Tim Steiner
Browse files

Make title and tagline static and move previously tagline text to breadcrumbs.

parent a4d50697
No related branches found
No related tags found
No related merge requests found
Showing
with 17 additions and 29 deletions
......@@ -2,7 +2,7 @@
<?php $this->headScript()->appendFile($this->baseUrl() . '/tinymce/jscripts/tiny_mce/tiny_mce.js'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/tinymce.js'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/courses/edit.js'); ?>
<?php $this->layout()->tagline = 'Editing: ' . $this->course->getCourseCode() . ' (' . $this->request->getTypeDescription() . ')'; ?>
<?php $this->layout()->breadcrumbs = array('Editing: ' . $this->course->getCourseCode() . ' (' . $this->request->getTypeDescription() . ')'); ?>
<form action="<?php echo $this->url(array('action' => 'edit.post')); ?>" enctype="multipart/form-data" method="post">
......
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/iace/reports/weekly.css', 'all'); ?>
<?php $this->layout()->tagline = 'Curriculum Search'; ?>
<?php $this->layout()->breadcrumbs = array('Curriculum Search'); ?>
<?php $this->layout()->hideMenu = true; ?>
<h2>Results for:</h2>
......
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/public-view/search.css', 'all'); ?>
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/iace/reports/weekly.css', 'all'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/courses/public-view/search.js'); ?>
<?php $this->layout()->tagline = 'Curriculum Search'; ?>
<?php $this->layout()->breadcrumbs = array('Curriculum Search'); ?>
<?php $this->layout()->hideMenu = true; ?>
<?php if ($this->hasSearched) { ?>
......
......@@ -2,11 +2,11 @@
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/courses/view.js'); ?>
<?php
if ($this->preview) {
$tagline = 'Previewing';
$breadcrumb = 'Previewing';
} else {
$tagline = 'Viewing';
$breadcrumb = 'Viewing';
}
$this->layout()->tagline = $tagline . ': ' . $this->course->getCourseCode() . ' (' . $this->request->getTypeDescription() . ')';
$this->layout()->breadcrumbs = array($breadcrumb . ': ' . $this->course->getCourseCode() . ' (' . $this->request->getTypeDescription() . ')');
?>
<div id="viewRequest">
<?php echo $this->partial('view/course-info.phtml', $this); ?>
......
<?php $this->layout()->tagline = 'Welcome'; ?>
<?php $this->layout()->breadcrumbs = array('Welcome'); ?>
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/index/index.css', 'all'); ?>
<div id="announcements" class="titled_box">
......
......@@ -7,12 +7,9 @@ $this->headScript()->prependFile($this->baseUrl() . '/javascript/index.js');
if (!$this->layout()->template) {
$this->layout()->template = 'Fixed';
}
if (!$this->layout()->title) {
$this->layout()->title = 'Course Approval';
}
if (!$this->layout()->tagline) {
$this->layout()->tagline = '';
}
$this->layout()->title = 'Office of Undergraduate Studies';
$this->layout()->tagline = 'Course Approval';
$template = UNL_Templates::factory($this->layout()->template, array('sharedcodepath' => 'sharedcode'));
$template->titlegraphic = '<h1>' . $this->layout()->title . '</h1>'
......@@ -41,17 +38,10 @@ $template->loadSharedCodeFiles();
$defaultBreadcrumbs = array(
'<a href="http://www.unl.edu/">UNL</a>',
'<a href="http://www.unl.edu/ous">Undergraduate Studies</a>'
'<a href="http://www.unl.edu/ous">Undergraduate Studies</a>',
'<a href="' . Zend_Controller_Front::getInstance()->getBaseUrl() . '">Course Approval</a>'
);
if (!$this->layout()->breadcrumbs && $this->layout()->title) {
$defaultBreadcrumbs[] = '<a href="' . Zend_Controller_Front::getInstance()->getBaseUrl() . '">' . $this->layout()->title . '</a>';
}
if (!$this->layout()->breadcrumbs && $this->layout()->tagline) {
$defaultBreadcrumbs[] = $this->layout()->tagline;
}
$this->layout()->breadcrumbs = array_merge($defaultBreadcrumbs, (array) $this->layout()->breadcrumbs);
$breadcrumbCount = 0;
......
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/iace/reports/weekly.css', 'all'); ?>
<?php $this->layout()->tagline = ''; ?>
<?php $this->layout()->hideMenu = true; ?>
<h2>
......
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/iace/reports/weekly.css', 'all'); ?>
<?php $this->layout()->tagline = ''; ?>
<?php $this->layout()->hideMenu = true; ?>
<h2>
......
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/requests/approval-body-admin.css', 'all'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/requests/approval-body-admin.js'); ?>
<?php $this->layout()->tagline = 'Approval Body Admin'; ?>
<?php $this->layout()->breadcrumbs = array('Approval Body Admin'); ?>
<?php $this->layout()->hideMenu = true; ?>
<?php if ($this->approvalBody->getId()) { ?>
......
......@@ -2,7 +2,7 @@
<?php $this->headScript()->appendFile($this->baseUrl() . '/tinymce/jscripts/tiny_mce/tiny_mce.js'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/tinymce.js'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/requests/approval-body-admin.js'); ?>
<?php $this->layout()->tagline = 'Approval Body Admin'; ?>
<?php $this->layout()->breadcrumbs = array('Approval Body Admin'); ?>
<?php $this->layout()->hideMenu = true; ?>
......
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/requests/approval-body-admin.css', 'all'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/requests/approval-body-admin.js'); ?>
<?php $this->layout()->tagline = 'Approval Body Admin'; ?>
<?php $this->layout()->breadcrumbs = array('Approval Body Admin'); ?>
<?php $this->layout()->hideMenu = true; ?>
<ul class="editMenu">
......
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/requests/approval-chain-manager.css', 'all'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/requests/approval-chain-manager.js'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/courses/edit.js'); ?>
<?php $this->layout()->tagline = 'Approval Chain Manager'; ?>
<?php $this->layout()->breadcrumbs = array('Approval Chain Manager'); ?>
<?php $this->layout()->hideMenu = true; ?>
<ul class="editMenu">
......
<?php $this->layout()->tagline = 'My Requests'; ?>
<?php $this->layout()->breadcrumbs = array('My Requests'); ?>
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/requests/index.css', 'all'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/requests/index.js'); ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment