Skip to content
Snippets Groups Projects
Commit 9ff83745 authored by Michael Fairchild's avatar Michael Fairchild
Browse files

Use the shared iim app footer

parent 6926bc2b
No related branches found
No related tags found
No related merge requests found
...@@ -7,3 +7,4 @@ ...@@ -7,3 +7,4 @@
/www/less/lib /www/less/lib
/.buildpath /.buildpath
/vendor /vendor
/tmp
\ No newline at end of file
...@@ -96,4 +96,9 @@ class UNL_Search ...@@ -96,4 +96,9 @@ class UNL_Search
{ {
return self::$linkedCSEServer . '?u=' . urlencode($referrer); return self::$linkedCSEServer . '?u=' . urlencode($referrer);
} }
public static function getProjectRoot()
{
return dirname(dirname(__DIR__));
}
} }
...@@ -8,7 +8,13 @@ ...@@ -8,7 +8,13 @@
<div class="bp960-wdn-col-one-half"> <div class="bp960-wdn-col-one-half">
<div class="wdn-footer-module"> <div class="wdn-footer-module">
<span role="heading" class="wdn-footer-heading">About UNL Search</span> <span role="heading" class="wdn-footer-heading">About UNL Search</span>
<?php echo file_get_contents('http://iim.unl.edu/iim-app-footer?format=partial'); ?> <?php
if ($file = file_get_contents(UNL_Search::getProjectRoot() . '/tmp/iim-app-footer.html')) {
echo $file;
} else {
echo file_get_contents('http://iim.unl.edu/iim-app-footer?format=partial');
}
?>
</div> </div>
</div> </div>
<div class="bp960-wdn-col-one-fourth"> <div class="bp960-wdn-col-one-fourth">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment