<?php $item_layout = $item . '.html.php'; $item_template = realpath(__DIR__ . '/' . $item_layout); if (empty($item_template)) { $item_template = $_template->getTemplate('layouts/' . $item_layout); } if (empty($item_template)) { $item_template = $_template->getTemplate($item_layout); } if (!empty($item_template)) { _render($item_template, array('content' => ${$item})); } else { ?> <div id="<?php _getid($item); ?> " class="structure-<?php echo $item; ?> "> <?php if (is_array(${$item})) { ?> <ul> <?php foreach (${$item} as $var => $val) { ?> <li><a href="<?php echo $var;
use Library\Helper\Html as HtmlHelper; // -------------------------------- // the css $_template->getTemplateObject('CssTag')->set(array("\n/* Sticky footer styles\n-------------------------------------------------- */\nhtml {\n position: relative;\n min-height: 100%;\n}\nbody {\n /* Margin bottom by footer height */\n margin-bottom: 60px;\n}\n#footer {\n position: absolute;\n bottom: 0;\n width: 100%;\n /* Set the fixed height of the footer here */\n height: 60px;\n background-color: #f5f5f5;\n}\n ")); // -------------------------------- // the content if (empty($content)) { $content = 'Test footer'; } if (!is_array($content)) { $content = array($content); } ?> <footer id="<?php _getid('footer'); ?> "> <div class="container"> <div class="text-muted pull-left"> This page is <a href="" title="Check now online" id="html_validation">HTML5</a> & <a href="" title="Check now online" id="css_validation">CSS3</a> valid. <br /> <?php echo isset($content['left']) ? $content['left'] : array_shift($content); ?> </div> <?php if (isset($content['right'])) { ?> <div class="text-muted pull-right"> <?php