public function before() { $this->theme = new Theme(array('paths' => array(APPPATH . 'themes/'), 'active' => $this->_render['theme'], 'view_ext' => '.php')); $this->template = $this->theme->view('layouts/' . $this->_render['layout']); $this->template->set_global('title', array(LitePress::setting('title'))); $this->template->set_global('theme', $this->theme); $this->_get_user(); return parent::before(); }
</div> <?php } ?> <?php if (Session::get_flash('notice')) { ?> <div class="notice"><?php echo implode('<br />', (array) Session::get_flash('notice')); ?> </div> <?php } ?> <section id="page"> <?php echo $content; ?> </section> <footer id="footer"> LitePress <?php echo LitePress::version(); ?> © <?php echo Html::anchor('http://nirix.net/go=litepress', 'Nirix'); ?> <br />Page rendered in {exec_time}s using {mem_usage}mb of memory. </footer> </div> </body> </html>
} else { if ($setting['type'] == 'select') { ?> <?php echo Form::select("settings[{$id}]", LitePress::setting($id), $setting['options'], array('id' => "settings[{$id}]")); ?> <?php } else { if ($setting['type'] == 'yes_no') { ?> <?php echo Form::radio("settings[{$id}]", 1, LitePress::setting($id) ? array('checked') : array()); ?> Yes <?php echo Form::radio("settings[{$id}]", 0, !LitePress::setting($id) ? array('checked') : array()); ?> No <?php } } } ?> </div> <?php } ?> <div class="group"> <?php echo Form::submit('submit', 'Save'); ?>