diff --git a/.gitignore b/.gitignore index 5f21c4239df600bcb10b96b7ef9cc6cef11721d9..1fd9d30f7dc579375e4d65672b777e5556793664 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /www/less/lib /.buildpath /vendor +/tmp \ No newline at end of file diff --git a/src/UNL/Search.php b/src/UNL/Search.php index 2f71e7bbebca7c2e8fc66c8375d8aaea112f15a4..be5d1f28cfa4aa18f277c44909cbd15e631021dd 100644 --- a/src/UNL/Search.php +++ b/src/UNL/Search.php @@ -96,4 +96,9 @@ class UNL_Search { return self::$linkedCSEServer . '?u=' . urlencode($referrer); } + + public static function getProjectRoot() + { + return dirname(dirname(__DIR__)); + } } diff --git a/www/templates/local-footer.tpl.php b/www/templates/local-footer.tpl.php index 109c03502e0711da2f1e1f8537da3bb00a203919..476b90d8a01099fad39864e54d5a07db081f96a1 100644 --- a/www/templates/local-footer.tpl.php +++ b/www/templates/local-footer.tpl.php @@ -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">