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

Switch to new UNL Templates (v3)

parent b49bd27d
Branches solution
No related tags found
No related merge requests found
<?php <?php
$staticBaseUrl = '';
if ($_SERVER['HTTPS']) {
$staticBaseUrl = 'https://';
} else {
$staticBaseUrl = 'http://';
}
$staticBaseUrl .= $_SERVER['HTTP_HOST']
. Zend_Controller_Front::getInstance()->getBaseUrl();
$this->headLink()->appendStylesheet($this->baseUrl() . '/css/index.css', 'all'); $this->headLink()->appendStylesheet($this->baseUrl() . '/css/index.css', 'all');
$this->headLink()->appendStylesheet($this->baseUrl() . '/css/print.css', 'print'); $this->headLink()->appendStylesheet($this->baseUrl() . '/css/print.css', 'print');
$this->headScript()->prependFile($this->baseUrl() . '/javascript/index.js'); $this->headScript()->prependFile($this->baseUrl() . '/javascript/index.js');
$this->headScript()->prependFile($this->baseUrl() . '/yui/yuiloader/yuiloader-min.js');
$this->headLink(array('rel' => 'home',
'href' => $staticBaseUrl,
'title' => 'Course Approval'));
if (!$this->layout()->template) { if (!$this->layout()->template) {
$this->layout()->template = 'Fixed'; $this->layout()->template = 'Fixed';
...@@ -14,19 +28,16 @@ if (!$this->layout()->tagline) { ...@@ -14,19 +28,16 @@ if (!$this->layout()->tagline) {
} }
require_once 'UNL/Templates.php'; require_once 'UNL/Templates.php';
Unl_Templates::$options['version'] = UNL_Templates::VERSION3;
$template = UNL_Templates::factory($this->layout()->template, array('sharedcodepath' => 'sharedcode')); $template = UNL_Templates::factory($this->layout()->template, array('sharedcodepath' => 'sharedcode'));
$template->titlegraphic = '<h1>' . $this->layout()->title . '</h1>' $template->titlegraphic = '<h1>' . $this->layout()->title . '</h1>';
. '<h2>' . $this->layout()->tagline . '</h2>'; $template->pagetitle = '<h2>' . $this->layout()->tagline . '</h2>';
$template->maincontentarea = '';
$template->maincontentarea .= '<div id="creqSidebar">' . "\n";
if (!$this->layout()->hideMenu) {
$template->maincontentarea .= $this->render('menu.phtml');
}
$template->maincontentarea .= $this->layout()->sidebar . "\n" $template->navlinks = $this->render('menu.phtml');
. '</div>' . "\n"
. '<div id="creqMain">' . "\n"
$template->maincontentarea = '<div id="creqMain">' . "\n"
. $this->layout()->content . "\n" . $this->layout()->content . "\n"
. '</div>' . "\n" . '</div>' . "\n"
. '<div class="clear">' . "\n" . '<div class="clear">' . "\n"
...@@ -42,7 +53,7 @@ $template->loadSharedCodeFiles(); ...@@ -42,7 +53,7 @@ $template->loadSharedCodeFiles();
$defaultBreadcrumbs = array( $defaultBreadcrumbs = array(
'<a href="http://www.unl.edu/">UNL</a>', '<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>' '<a href="' . $staticBaseUrl . '">Course Approval</a>'
); );
$this->layout()->breadcrumbs = array_merge($defaultBreadcrumbs, (array) $this->layout()->breadcrumbs); $this->layout()->breadcrumbs = array_merge($defaultBreadcrumbs, (array) $this->layout()->breadcrumbs);
......
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/index/menu.css', 'all'); ?>
<div id="creqNavigation">
<h4>Navigation</h4>
<div id="navigationLinks">
<ul> <ul>
<?php if (Zend_Auth::getInstance()->getIdentity()) { ?> <?php if (Zend_Auth::getInstance()->getIdentity()) { ?>
<li><a href="<?php echo $this->baseUrl(); ?>/requests">My Requests</a></li> <li><a href="<?php echo $this->baseUrl(); ?>/requests">My Requests</a></li>
...@@ -13,6 +7,3 @@ ...@@ -13,6 +7,3 @@
<li><a href="<?php echo $this->baseUrl(); ?>/auth/index/login">Log In</a></li> <li><a href="<?php echo $this->baseUrl(); ?>/auth/index/login">Log In</a></li>
<?php } ?> <?php } ?>
</ul> </ul>
\ No newline at end of file
</div>
</div>
\ No newline at end of file
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
overflow:hidden; overflow:hidden;
width:345px; width:345px;
} }
.courseInfo div.current h2 { #maincontent .courseInfo div.current h2 {
background-color:#444444; background-color:#444444;
border:1px solid #888888; border:1px solid #888888;
color:#FFFFFF; color:#FFFFFF;
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
overflow:hidden; overflow:hidden;
width:345px; width:345px;
} }
.courseInfo div.proposed h2 { #maincontent .courseInfo div.proposed h2 {
background-color:#444444; background-color:#444444;
border:1px solid #888888; border:1px solid #888888;
color:#FFFFFF; color:#FFFFFF;
......
@CHARSET "UTF-8"; @CHARSET "UTF-8";
#navigation {display: none;} #maincontent {
#container div.clear #main_right {float: none; width: auto;} width: 940px;
#creqSidebar {float: left;} }
#creqMain {overflow: hidden; float:left;}
.box_shadow { .box_shadow {
background-color: #fff; background-color: #fff;
...@@ -108,8 +107,10 @@ ...@@ -108,8 +107,10 @@
width: 3px; width: 3px;
} }
#maincontent .titled_box {
.titled_box .tl h2 { margin-bottom: 1em;
}
#maincontent .titled_box .tl h2 {
background-color: #6E6E6E; background-color: #6E6E6E;
color: #e3e3e3; color: #e3e3e3;
font-family: URWGroteskTLig, sans-serif; font-family: URWGroteskTLig, sans-serif;
...@@ -117,7 +118,7 @@ ...@@ -117,7 +118,7 @@
font-weight: normal; font-weight: normal;
padding: 5px; padding: 5px;
} }
.titled_box .tl h3 { #maincontent .titled_box .tl h3 {
color: #e3e3e3; color: #e3e3e3;
font-family: URWGroteskTLig, sans-serif; font-family: URWGroteskTLig, sans-serif;
font-size: 14px; font-size: 14px;
...@@ -126,6 +127,10 @@ ...@@ -126,6 +127,10 @@
right: 10px; right: 10px;
top: 6px; top: 6px;
} }
.titled_box .tl h3 em { #maincontent .titled_box .tl h3 em {
font-size: 14px; font-size: 14px;
} }
#maincontent .titled_box .content {
padding-left: 3px;
padding-right: 3px;
}
@CHARSET "UTF-8"; @CHARSET "UTF-8";
#creqMain {
width: 720px;
}
\ No newline at end of file
@CHARSET "UTF-8"; @CHARSET "UTF-8";
#creqMain {width: 720px;}
#decisionMessage {margin: 1em; padding: 0.5em; text-align: center; color: #060; background-color: #cfc; border: 1px solid #4c4;} #decisionMessage {margin: 1em; padding: 0.5em; text-align: center; color: #060; background-color: #cfc; border: 1px solid #4c4;}
table.course_list {width: 100%;} table.course_list {width: 100%;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment