Skip to content
Snippets Groups Projects
Commit 36da5e73 authored by Alan Nelson's avatar Alan Nelson
Browse files

Start on moving preview to 4.0 templates

This commit has multiple display issues and is still a work in progress.
parent 20f44435
No related branches found
No related tags found
2 merge requests!20Projects Task 43,!19Projects Task 43
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="ie iem7"><![endif]-->
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"><![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"><![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"><![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7) ]><html class="ie" lang="en"><![endif]-->
<!--[if !(IEMobile) | !(IE)]><!--><html lang="en"><!--<![endif]-->
<head>
<?php include $this->baseUrl('/wdn/templates_4.0/includes/metanfavico.html'); ?>
<?php include $this->baseUrl('/wdn/templates_4.0/includes/scriptsandstyles.html'); ?>
<!--
Membership and regular participation in the UNL Web Developer Network
is required to use the UNL templates. Visit the WDN site at
http://wdn.unl.edu/. Click the WDN Registry link to log in and
register your unl.edu site.
All UNL template code is the property of the UNL Web Developer Network.
The code seen in a source code view is not, and may not be used as, a
template. You may not use this code, a reverse-engineered version of
this code, or its associated visual presentation in whole or in part to
create a derivative work.
This message may not be removed from any pages based on the UNL site template.
$Id: php.local.dwt.php | 252c2891a48c70db689be6d897d4f34768b8258a | Thu Aug 1 15:08:19 2013 -0500 | Kevin Abel $
-->
<!-- TemplateBeginEditable name="doctitle" -->
<?php echo $this->headTitle($this->app_displayname . ' | University of Nebraska&ndash;Lincoln')->setSeparator(' | ')->setAutoEscape(false); ?>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- Place optional header elements here -->
<!-- TemplateEndEditable -->
<!-- TemplateParam name="class" type="text" value="" -->
<?php echo $this->headScript(); ?>
<?php echo $this->headLink(); ?>
</head>
<body class="@@(_document['class'])@@" data-version="4.0">
<?php include $this->baseUrl('/wdn/templates_4.0/includes/skipnav.html'); ?>
<div id="wdn_wrapper">
<input type="checkbox" id="wdn_menu_toggle" value="Show navigation menu" class="wdn-content-slide wdn-input-driver" />
<?php include $this->baseUrl('/wdn/templates_4.0/includes/noscript-padding.html'); ?>
<header id="header" role="banner" class="wdn-content-slide wdn-band">
<?php include $this->baseUrl('/wdn/templates_4.0/includes/wdnResources.html'); ?>
<div class="wdn-inner-wrapper">
<?php include $this->baseUrl('/wdn/templates_4.0/includes/logo.html'); ?>
<div id="wdn_resources">
<?php include $this->baseUrl('/wdn/templates_4.0/includes/idm.html'); ?>
<?php include $this->baseUrl('/wdn/templates_4.0/includes/wdnTools.html'); ?>
</div>
<span id="wdn_institution_title">University of Nebraska&ndash;Lincoln</span>
</div>
<?php include $this->baseUrl('/wdn/templates_4.0/includes/apps.html'); ?>
<div class="wdn-inner-wrapper">
<div id="wdn_site_title">
<span><!-- TemplateBeginEditable name="titlegraphic" --><?php echo $this->app_displayname; ?><!-- TemplateEndEditable --></span>
</div>
</div>
</header>
<div id="wdn_navigation_bar" role="navigation" class="wdn-band">
<nav id="breadcrumbs" class="wdn-inner-wrapper">
<!-- WDN: see glossary item 'breadcrumbs' -->
<h3 class="wdn_list_descriptor wdn-text-hidden">Breadcrumbs</h3>
<!-- TemplateBeginEditable name="breadcrumbs" -->
<ul>
<li><a href="http://www.unl.edu/" title="University of Nebraska&ndash;Lincoln" class="wdn-icon-home">UNL</a></li>
<?php
/**
if (!$this->my_identity) {
$breadcrumbs = $this->navigation('visitor')->breadcrumbs()->setLinkLast(false)->setMinDepth(0)->setSeparator('')->render();
} else {
$breadcrumbs = $this->navigation('navigation')->breadcrumbs()->setLinkLast(false)->setMinDepth(0)->setSeparator('')->render();
}
$breadcrumbs = str_replace('<a ','<li><a ',str_replace('</a>','</a></li>',$breadcrumbs));
if (strripos($breadcrumbs,"</li>")===false) {
$breadcrumbs = "<li>".$breadcrumbs."</li>";
} else if ((strripos($breadcrumbs,"</li>")+5) < strlen($breadcrumbs)) {
$breadcrumbs = substr($breadcrumbs,0,(strripos($breadcrumbs,"</li>")+5))."<li>".substr($breadcrumbs,(strlen($breadcrumbs)-(strripos($breadcrumbs,"</li>")+5))*-1)."</li>";
}
$breadcrumbs = trim(str_replace("</li>","</li>".PHP_EOL." ",$breadcrumbs)).PHP_EOL;
echo $breadcrumbs;
*/
?>
</ul>
<!-- TemplateEndEditable -->
</nav>
<div id="wdn_navigation_wrapper">
<nav id="navigation" role="navigation" class="wdn-band">
<h3 class="wdn_list_descriptor wdn-text-hidden">Navigation</h3>
<!-- TemplateBeginEditable name="navlinks" -->
<?php include __DIR__ . '/partial_navigation40.phtml'; ?>
<!-- TemplateEndEditable -->
<label for="wdn_menu_toggle" class="wdn-icon-menu">Menu</label>
</nav>
</div>
</div>
<!-- Navigation Trigger -->
<div class="wdn-menu-trigger wdn-content-slide">
<label for="wdn_menu_toggle" class="wdn-icon-menu">Menu</label>
</div>
<!-- End navigation trigger -->
<div id="wdn_content_wrapper" role="main" class="wdn-content-slide">
<div class="wdn-band">
<div class="wdn-inner-wrapper">
<div id="pagetitle">
<!-- TemplateBeginEditable name="pagetitle" -->
<h1><?php echo $this->placeholder('contentTitle'); ?></h1>
<!-- TemplateEndEditable -->
</div>
</div>
</div>
<div id="maincontent" class="wdn-main">
<!--THIS IS THE MAIN CONTENT AREA; WDN: see glossary item 'main content area' -->
<!-- TemplateBeginEditable name="maincontentarea" -->
<div class="wdn-band">
<div class="wdn-inner-wrapper wdn-inner-padding-sm">
<?php echo $this->content; ?>
</div>
</div>
<!-- TemplateEndEditable -->
<!--THIS IS THE END OF THE MAIN CONTENT AREA.-->
</div>
</div>
<div class="wdn-band wdn-content-slide" id="wdn_optional_footer">
<div class="wdn-inner-wrapper">
<!-- TemplateBeginEditable name="optionalfooter" -->
<!-- TemplateEndEditable -->
</div>
</div>
<footer id="footer" role="contentinfo" class="wdn-content-slide">
<div class="wdn-band" id="wdn_footer_related">
<div class="wdn-inner-wrapper">
<!-- TemplateBeginEditable name="leftcollinks" -->
<?php include __DIR__ . '/partial_relatedLinks40.phtml'; ?>
<!-- TemplateEndEditable -->
</div>
</div>
<div class="wdn-band">
<div class="wdn-inner-wrapper">
<div class="footer_col" id="wdn_footer_contact">
<h3>Contact Us</h3>
<div class="wdn-contact-wrapper">
<!-- TemplateBeginEditable name="contactinfo" -->
<?php include __DIR__ . '/partial_footerContactInfo40.phtml'; ?>
<!-- TemplateEndEditable -->
</div>
</div>
<div id="wdn_copyright">
<div class="wdn-footer-text">
<!-- TemplateBeginEditable name="footercontent" -->
<?php include __DIR__ . '/partial_footer40.phtml'; ?>
<!-- TemplateEndEditable -->
<?php include $this->baseUrl('/wdn/templates_4.0/includes/wdn.html'); ?>
</div>
<?php include $this->baseUrl('/wdn/templates_4.0/includes/logos.html'); ?>
</div>
</div>
</div>
<?php include $this->baseUrl('/wdn/templates_4.0/includes/footer_floater.html'); ?>
</footer>
<?php include $this->baseUrl('/wdn/templates_4.0/includes/noscript.html'); ?>
</div>
</body>
</html>
&copy; 2013 University of Nebraska&ndash;Lincoln &middot; Lincoln, NE 68588 &middot; 402-472-7211 &middot; <a href="http://www.unl.edu/ucomm/aboutunl/" title="Click here to learn more about UNL">About UNL</a><br />
The University of Nebraska&ndash;Lincoln is an <a href="http://www.unl.edu/equity/">equal opportunity</a> educator and employer. For current job openings, visit <a href="http://employment.unl.edu/" title="Employment at UNL">employment.unl.edu</a><br />
<div class="vcard">
<p class="wdn-icon-location adr">
<span class="fn"><?php echo $this->app_displayname; ?></span><br />
<span class="street-address"><?php echo $this->app_address; ?></span><br />
<span class="locality"><?php echo $this->app_city; ?></span>,
<abbr class="region" title="<?php echo $this->app_state_full; ?>"><?php echo $this->app_state_abbr; ?></abbr>
<span class="postal-code"><?php echo $this->app_zip; ?></span>
</p>
<p class="wdn-icon-phone"><a href="tel:<?php echo $this->app_phone; ?>" class="tel"><?php echo $this->app_phone; ?></a></p>
<p class="wdn-icon-print"><?php echo $this->app_fax; ?></p>
<p class="wdn-icon-mail"><a href="mailto:<?php echo $this->app_email; ?>" class="email"><?php echo $this->app_email; ?></a></p>
</div>
\ No newline at end of file
<ul>
<li><a href="http://www.unl.edu/" title="UNL homepage">UNL</a>
<ul>
<li><a href="http://www.unl.edu/ucomm/aboutunl/" title="Summary of the University">About UNL</a></li>
<li><a href="http://newsroom.unl.edu/" title="Official news and information from the University of Nebraska-Lincoln">News</a></li>
<li><a href="http://www.unl.edu/ucomm/admin/">Administrative Units</a></li>
<li><a href="http://www.unl.edu/ucomm/depts/">Colleges &amp; Departments</a></li>
<li><a href="http://www.unl.edu/ucomm/chancllr/">Office of the Chancellor</a></li>
<li><a href="http://www.unl.edu/svcaa/">Office of Academic Affairs</a></li>
<li><a href="http://irp.unl.edu/factbooks.html">UNL Fact Book</a></li>
</ul>
</li>
<li><a href="http://visit.unl.edu/" title="Visitor information">Visitor</a>
<ul>
<li><a href="http://maps.unl.edu/" title="Campus maps for the University of Nebraska-Lincoln (high bandwidth) and downloadable PDF maps">Campus Maps</a></li>
<li><a href="http://events.unl.edu/" title="Upcoming UNL events in a searchable database">Calendar of Events</a></li>
<li><a href="http://www.unl.edu/ucomm/lincoln/" title="find out more about the city of Lincoln">About Lincoln</a></li>
<li><a href="http://visit.unl.edu/#affiliates" title="UNL Affiliates">Affiliates</a></li>
<li><a href="http://parentsassoc.unl.edu/" title="Parents Association">Parents Association</a></li>
<li><a href="http://nufoundation.org/Page.aspx?pid=341" title="NU Foundation">Gifts to Your University</a></li>
<li><a href="http://admissions.unl.edu/visit/">Schedule a Visit</a></li>
</ul>
</li>
<li><a href="http://www.unl.edu/ucomm/prospective/" title="Information for prospective students interested in attending UNL">Prospective Student</a>
<ul>
<li><a href="http://admissions.unl.edu/apply/">Apply for Admission</a></li>
<li><a href="http://admissions.unl.edu/" title="Office of Undergraduate Admissions website">Undergraduate Admissions</a></li>
<li><a href="http://admissions.unl.edu/visit/">Schedule a Visit</a></li>
<li><a href="http://www.unl.edu/gradstudies/">Graduate Studies</a></li>
<li><a href="http://online.unl.edu/">Extended Education</a></li>
<li><a href="http://law.unl.edu">Law</a></li>
</ul>
</li>
<li><a href="http://www.unl.edu/ucomm/current/" title="Resources for UNL students">Current Student</a>
<ul>
<li><a href="http://myred.unl.edu/" title="Go to the Student Information System portal, MyRed">MyRED</a></li>
<li><a href="http://my.unl.edu/" title="Access to MyUNL academic portal">My.UNL</a></li>
<li><a href="https://myred.nebraska.edu/psp/myred/NBL/HRMS/c/COMMUNITY_ACCESS.CLASS_SEARCH.GBL?INSTITUTION=NEUNL" title="Schedule of classes and online registration">Schedule of Classes</a></li>
<li><a href="http://www.unl.edu/regrec/calendar/calendar_main.shtml" title="Academic Calendar">Academic Calendar</a></li>
<li><a href="http://iris.unl.edu/" title="Catalogs, resources, services and information from University Libraries">Libraries</a></li><li><a href="http://bulletin.unl.edu/undergraduate/" title="browse the undergraduate bulletin online">Undergraduate Bulletin</a></li>
<li><a href="http://bulletin.unl.edu/" title="browse the graduate bulletin online">Graduate Bulletin</a></li>
<li><a href="http://huskers.unl.edu/mail/" title="Student Email service - huskers.unl.edu">Student Email</a></li>
<li><a href="http://involved.unl.edu/" title="Information on organizations, membership and events for students">Student Involvement</a></li>
</ul>
</li>
<li><a href="http://www.unl.edu/ucomm/facstaff/" title="Resources for UNL faculty and staff">Faculty/Staff</a>
<ul>
<li><a href="https://firefly.nebraska.edu/" title="Employee Self Service; view personnal records in a secure browser">Firefly (ESS)</a></li>
<li><a href="http://directory.unl.edu/" title="Search the UNL Directory for Faculty, Staff, Students and Departments">Directory</a></li>
<li><a href="http://hr.unl.edu/" title="Benefits, employment, orientation services for UNL employees">Human Resources</a></li>
<li><a href="http://scarlet.unl.edu/" title="The Scarlet - faculty and staff newspaper of the University of Nebraska-Lincoln">The Scarlet</a></li>
<li><a href="http://www.unl.edu/asenate/welcome.htm" title="Committees, motions, minutes of UNL faculty government">Faculty Senate</a></li>
<li><a href="http://notes.unl.edu/" title="Lotus Notes">Web Email</a></li>
<li><a href="http://bf.unl.edu/policies/" title="Go to the UNL Policies page">Policies</a></li>
</ul>
</li>
<li><a href="http://www.unl.edu/ucomm/research/">Research &amp; Innovation</a>
<ul>
<li><a href="http://research.unl.edu/">Office of Research &amp; Economic Development</a></li>
<li><a href="http://www.nutechventures.org/">NUtech Ventures</a></li>
<li><a href="http://innovate.unl.edu/">Innovation Campus</a></li>
<li><a href="http://research.unl.edu/industry_relations/">Industry Relations</a></li>
</ul>
</li>
</ul>
<h3>Related Links</h3>
<ul>
<li><a href="http://http://its.unl.edu/" title="Information Technology Services">UNL ITS</a></li>
<li><a href="http://employment.unl.edu/" title="Web Developer Network">Web Developer Network</a></li>
<li><a href="http://directory.unl.edu/" title="UNL's campus directory of students, faculty and staff">Directory</a></li>
<li><a href="http://events.unl.edu/" title="Upcoming UNL events in a searchable database">Calendar of Events</a></li>
</ul>
......@@ -60,6 +60,8 @@ class Bulletin_ViewController extends Requests_ViewController
*/
public function previewAction()
{
$this->_helper->layout->setLayout('40_template/layout_unl40');
$this->_commonIndexAction();
$request = $this->view->request;
......@@ -71,7 +73,7 @@ class Bulletin_ViewController extends Requests_ViewController
$this->view->initialRequest = false;
$this->view->preview = false;
$this->view->proposedFileContents = $repo->getFileNotes(
$this->view->proposedFileContents = $repo->getFileContents(
'/data/' . $repo->getFilePathForSection($section), 'request-' . $request->getId()
);
......
<?php
$this->headLink()->appendStylesheet($this->baseUrl() . '/css/bulletin/view.css', 'all');
$this->headLink()->appendStylesheet($this->baseUrl() . '/bulletin.unl.edu/all.css', 'all');
$this->headScript()->appendFile($this->baseUrl() . '/javascript/bulletin/view.js');
$this->headLink()->appendStylesheet($this->baseUrl('/css/bulletin/view.css'));
$this->headLink()->appendStylesheet($this->baseUrl('/wdn/templates_4.0/css/all.css'));
$this->headScript()->appendFile($this->baseUrl('/javascript/bulletin/view.js'));
$this->layout()->pageTitle = "Preview". ': ' . ($this->section->getMajor() ? $this->section->getMajor() : $this->section->getCollegeLong()) . ' (' . $this->request->getTypeDescription() . ')';
?>
$this->pageTitle = "Preview". ': ' . ($this->section->getMajor() ? $this->section->getMajor() : $this->section->getCollegeLong()) . ' (' . $this->request->getTypeDescription() . ')';
<?php echo $this->proposedFileContents; ?>
$this->content = $this->proposedFileContents;
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment