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
1 merge request!64.1
......@@ -7,3 +7,4 @@
/www/less/lib
/.buildpath
/vendor
/tmp
\ No newline at end of file
......@@ -96,4 +96,9 @@ class UNL_Search
{
return self::$linkedCSEServer . '?u=' . urlencode($referrer);
}
public static function getProjectRoot()
{
return dirname(dirname(__DIR__));
}
}
......@@ -8,7 +8,13 @@
<div class="bp960-wdn-col-one-half">
<div class="wdn-footer-module">
<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 class="bp960-wdn-col-one-fourth">
......
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