|
|
@@ -21,8 +21,12 @@ class ThemeDefault {
|
|
|
}
|
|
|
function footer() { // inside UI::dol()
|
|
|
$version = (file_exists(APP_PATH_ROOT . '/VERSION'))? file_get_contents(APP_PATH_ROOT . '/VERSION') : null;
|
|
|
- if ($version) {
|
|
|
- echo '<div style="' . UI::fixFooterPosition('footer_style') . 'border-top:1px solid #ddd; margin-top:10px; padding:0 30px; font-size:xx-small; color:#888">version: '.$version.'</div>';
|
|
|
+ $footerHtml = (file_exists(APP_PATH_ROOT . '/config/.footer.html'))? file_get_contents(APP_PATH_ROOT . '/config/.footer.html') : null;
|
|
|
+ if ($version || $footerHtml) {
|
|
|
+ echo '<div style="' . UI::fixFooterPosition('footer_style') . 'border-top:1px solid #ddd; margin-top:10px; padding:0 30px; font-size:xx-small; color:#888">';
|
|
|
+ if ($version) echo 'version: '.$version . ' ';
|
|
|
+ if ($footerHtml) echo $footerHtml;
|
|
|
+ echo '</div>';
|
|
|
}
|
|
|
echo UI::fixFooterPosition('footer_js_tag');
|
|
|
}
|