X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fpage%2Ffooter.inc;h=a47038e834fe24373793dc280f44ea54a91329a0;hb=74dc7287df122a02d0e5ef3b8bda58e60057a5a1;hp=cefc3c1afb5d39bd98d70cd76d75a4c756b93807;hpb=1a2a0326b84927ccaaf01b52f0d3e97d7b782f47;p=fa-stable.git diff --git a/includes/page/footer.inc b/includes/page/footer.inc index cefc3c1a..a47038e8 100644 --- a/includes/page/footer.inc +++ b/includes/page/footer.inc @@ -1,47 +1,26 @@ . +***********************************************************************/ function page_footer($no_menu=false, $is_index=false) { - global $version, $allow_demo_mode; - global $app_title, $power_url, $power_by; + global $path_to_root; - if (isset($_GET['ajax'])) return; + if (in_ajax()) + return;// just for speed up - echo set_js_focus(); // set focus on input (if $focus_on exists) - if (function_exists('hyperlink_back')) + if (!$is_index && function_exists('hyperlink_back')) hyperlink_back(); - if ($no_menu == false) - { - if ($is_index) - echo "\n"; - else - echo "
\n"; - echo ""; - if (isset($_SESSION['wa_current_user'])) - echo "\n"; - echo "
" . Today() . " | " . Now() . "
\n"; - } - echo "\n"; - echo "\n"; - if ($no_menu == false) - { - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - if ($allow_demo_mode==true) - { - echo "\n"; - //echo "\n"; - echo "\n"; - } - echo "

\n"; - } + include_once($path_to_root."/themes/".user_theme()."/renderer.php"); + $rend = new renderer(); + $rend->menu_footer($no_menu, $is_index); echo "\n"; }