Skip to content
Snippets Groups Projects
Commit e64bf0b5 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

change default content in related links, footer, contact info; move the page...

change default content in related links, footer, contact info; move the page title from maincontent to its area; do string replace to add in some of the drupal vars to the html, head, body tags

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@107 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent b2097c03
No related branches found
No related tags found
No related merge requests found
......@@ -48,9 +48,11 @@ $t->doctitle = '<title>'. unl_wdn_head_title() .'</title>';
$html = $t->toHtml();
$html = strtr($html, array('<div id="maincontent">' => $page_top . PHP_EOL . '<div id="maincontent">',
'<div id="footer">' => $page_bottom . PHP_EOL . '<div id="footer">'));
$html = strtr($html, array('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">' => '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$language->language.'" version="XHTML+RDFa 1.0" dir="'.$language->dir.'" '.$rdf_namespaces.'>',
'<head>' => '<head profile="'.$grddl_profile.'">',
'<body class="fixed">' => '<body class="fixed '.$classes.'" '.$attributes.'>',
'<p class="skipnav">' => $page_top . PHP_EOL . '<p class="skipnav">',
'</body>' => $page_bottom . PHP_EOL . '</body>',
));
echo $html;
......@@ -81,15 +81,14 @@ $t->navlinks = render($page['navlinks']);
if (isset($site_name) && $site_name) {
$t->titlegraphic = '<h1>' . $site_name . '</h1>';
}
if (isset($site_slogan) && $site_slogan) {
$t->pagetitle = '<h2>' . $site_slogan . '</h2>';
if (isset($title) && $title) {
$t->pagetitle = '<h2>' . render($title_prefix) . $title . render($title_suffix) . '</h2>';
}
$t->maincontentarea = $messages . PHP_EOL
. render($tabs) . PHP_EOL
. render($action_links) . PHP_EOL
. '<h3>' . render($title_prefix) . $title . render($title_suffix) . '</h3>' . PHP_EOL
. strtr(render($page['content']), array('sticky-enabled' => 'zentable cool')) . PHP_EOL
;
......@@ -100,12 +99,9 @@ if ($page['leftcollinks']) {
} else {
$leftcollinks = <<<EOF
<ul>
<li class="first"><a href="http://ucomm.unl.edu/">University Communications</a>
<ul>
<li><a href="http://ucomm.unl.edu/resources.shtml">Print Resources </a></li>
</ul>
</li>
<li><a href="http://www.unl.edu/ucomm/chancllr/">Office of the Chancellor</a> </li>
<li><a href="http://events.unl.edu/">UNL Events Calendar</a></li>
<li><a href="http://ucomm.unl.edu/">University Communications</a></li>
<li><a href="http://www.unl.edu/ucomm/chancllr/">Office of the Chancellor</a></li>
</ul>
EOF;
}
......@@ -122,11 +118,10 @@ if ($page['contactinfo']) {
} else {
$contactinfo = <<<EOF
<p>
The WDN is coordinated by:<br />
<strong>University Communications</strong><br />
Internet and Interactive Media<br />
WICK 17<br />
Lincoln, NE 68583-0218
<strong>University of Nebraska-Lincoln</strong><br />
1400 R Street<br />
Lincoln, NE 68588<br />
402-472-7211
</p>
EOF;
}
......@@ -144,8 +139,13 @@ if ($page['optionalfooter']) {
$t->footercontent = '';
if ($page['footercontent']) {
$t->footercontent .= '<div>' . render($page['footercontent']) . '</div>';
$t->footercontent = render($page['footercontent']);
} else {
$year = date("Y");
$t->footercontent = <<<EOF
&copy; {$year} University of Nebraska&ndash;Lincoln | Lincoln, NE 68588 | 402-472-7211 | <a href="http://www.unl.edu/ucomm/aboutunl/" title="Click here to know more about UNL">About UNL</a> | <a href="http://www1.unl.edu/comments/" title="Click here to direct your comments and questions">comments?</a><br />
UNL is an equal opportunity employer with a comprehensive plan for diversity. Find out more: <a href="https://employment.unl.edu/" target="_blank" title="Employment at UNL">employment.unl.edu</a><br />
EOF;
}
$t->footercontent .= '<p style="margin:0.5em 0 -1.4em 0">This site is an instance of <a href="http://unlcms.unl.edu/" title="Go to the UNL CMS website">UNL CMS</a> powered by <a href="http://drupal.org/" title="Go to the official website of Drupal">Drupal</a></p>';
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