/** * Render the footer template * * @since 1.0.0 * @see \uix\ui\uix * @access public * @return string HTML of rendered box */ public function render_footer_template() { $output = null; if (!empty($this->footer)) { $output .= '<script type="text/html" id="' . esc_attr($this->id()) . '-footer-tmpl">'; $output .= $this->footer->render(); $output .= '</script>'; } return $output; }
public function call() { $ajax = False; $url = $_SERVER["REQUEST_URI"]; if (split("/", $url)[2] == "request") { $url = str_replace("/manager/request", "", $url); $ajax = True; } else { $url = str_replace("/manager", "", $url); } if ($ajax == False) { core::register(); header::IndexAction($this->twig); left::IndexAction($this->twig); } /*$module = $this->routes[$url]; $module["autoload"]::register(); $class = new $module["class"](); $class->$_SERVER["REQUEST_METHOD"]();*/ if ($ajax == False) { footer::IndexAction($this->twig); } }
<? class footer { function view($common,$db_object) { $path = $common->path; $filename = $path."templates/performance/popupfooter.html"; $file = $common->return_file_content($db_object,$filename); $file = $common->direct_replace($db_object,$file,$res); echo $file; } }//end class $ob = new footer; $ob->view($common,$db_object); ?>
<div class="mainmenu"> <?php echo layout::content('mainmenu'); ?> </div> <div class="quicklinks"> <?php echo layout::content('quicklinks'); ?> </div> </div> </div> <div class="wrapper"> <div class="main"> <?php echo layout::content('main'); ?> </div> </div> <div class='clr'> </div> <div class="wrapper"> <?php echo footer::copyright(); ?> <?php echo footer::confidentiality(); ?> </div> <div class='clr'> </div> </body> </html>
public function LoadPageFooter() { if (!isset($_GET['cmd']) || $_GET['cmd'] == "") { $footer_script = array("js4" => '<script src="' . ABSOLUTH_PATH_JS . 'wow.min.js"></script>', "js5" => '<script src="' . ABSOLUTH_PATH_JS . 'modernizr.custom.min.js"></script>', "js6" => '<script src="' . ABSOLUTH_PATH_JS . 'jquery.magnific-popup.js"></script>', "js7" => '<script src="' . ABSOLUTH_PATH_JS . 'landing.js"></script>'); } else { if (isset($_GET['cmd']) && $_GET['cmd'] == "profile") { $footer_script = array("js4" => '<script src="' . ABSOLUTH_PATH_JS . 'jquery.datetimepicker.full.min.js"></script>', "js5" => '<script src="' . ABSOLUTH_PATH_JS . 'profile.js"></script>'); } else { if (isset($_GET['cmd']) && $_GET['cmd'] == "roster") { $footer_script = array("js4" => '<script src="' . ABSOLUTH_PATH_JS . 'roster.js"></script>', "js5" => '<script src="' . ABSOLUTH_PATH_JS . 'jquery.tableDnD.js"></script>'); } else { if (isset($_GET['cmd']) && $_GET['cmd'] == "home") { $footer_script = array("js4" => '<script src="' . ABSOLUTH_PATH_JS . 'home.js"></script>'); } else { if (isset($_GET['cmd']) && $_GET['cmd'] == "trades") { $footer_script = array("js4" => '<script src="' . ABSOLUTH_PATH_JS . 'trades.js"></script>'); } else { if (isset($_GET['cmd']) && $_GET['cmd'] == "add-drop") { $footer_script = array("js4" => '<script src="https://cdn.datatables.net/1.10.11/js/jquery.dataTables.min.js"></script>', "js5" => '<script src="https://cdn.datatables.net/1.10.11/js/dataTables.bootstrap.min.js"></script>', "js6" => '<script src="https://cdn.datatables.net/responsive/2.0.2/js/dataTables.responsive.min.js"></script>', "js7" => '<script src="https://cdn.datatables.net/responsive/2.0.2/js/responsive.bootstrap.min.js"></script>', "js8" => '<script src="' . ABSOLUTH_PATH_JS . 'add-drop.js"></script>'); } else { if (isset($_GET['cmd']) && $_GET['cmd'] == "draft") { $footer_script = array("js4" => '<script src="https://cdn.datatables.net/1.10.11/js/jquery.dataTables.min.js"></script>', "js5" => '<script src="https://cdn.datatables.net/1.10.11/js/dataTables.bootstrap.min.js"></script>', "js6" => '<script src="https://cdn.datatables.net/responsive/2.0.2/js/dataTables.responsive.min.js"></script>', "js7" => '<script src="https://cdn.datatables.net/responsive/2.0.2/js/responsive.bootstrap.min.js"></script>', "js8" => '<script src="' . ABSOLUTH_PATH_JS . 'drafting.js"></script>'); } else { if (isset($_GET['cmd']) && $_GET['cmd'] != "") { $footer_script = array(); } } } } } } } } $footer = new footer(); $footer->FooterScripts($footer_script); $footer->ReturnFooterScript(); $footer->ShowALLFooter(); }
<div class="col-md-10 card-right"> <p>Hi John, Running slightly behind schedule but I will be with you by 2:30 today.</p> <p>James</p> </div> <p class="strapline">Posted by James Smith on 14 December 2015 at 10:25.</p> </div> </div> <div class="card"> <div class="row"> <div class="col-md-2 card-left"> <div class="profile-circle landlord">L</div> <p>Landlord</p> </div> <div class="col-md-9 card-right"> <form class="" action="#" method="post"> <div class="row"> <label for="description">Responses are seen by the tenant, agent & contractors.</label> <textarea placeholder="" name="description" id="description" rows="4"></textarea> </div> <div class="row view-submit"> <input class="button-landlord" type="submit" value="Submit"> </div> </form> </div> </div> </div> </div> <?php footer::all();
} } } } }) .on('success.form.fv', function(e) { // Prevent form submission e.preventDefault(); var $form = $(e.target), fv = $form.data('formValidation'); // Use Ajax to submit form data $.ajax({ url: $form.attr('action'), type: 'POST', data: $form.serialize(), success: function(result) { $( ".new-ticket-form, .home-update-link, #home-strapline" ).fadeOut(500); $( ".submit-confirmation-inner" ).append(result); $( ".submit-confirmation" ).delay(500).fadeIn(500); } }); }); }); </script> <?php footer::close();