/** * Display retrieved templates * * @access private */ private function display_templates() { Html::form('o', 'post', 'index.php?ns=templates&ctl=library'); Html::lib_actions(); echo '<section id="labels">'; if (!empty($this->_templates)) { foreach ($this->_templates as $tpl) { Html::lib_tpl_label($tpl['user'], $tpl['repo'], $tpl['download'], $tpl['description'], $tpl['website']); } } else { echo 'No templates found!'; } echo '</section>'; Html::form('c'); }
/** * Display page content * * @access public */ public function display_content() { $this->display_menu(); if ($this->_user['settings']) { echo $this->_action_msg; Html::form('o', 'post', '#'); $this->display_actions(); $this->display_templates(); Html::form('c'); } else { echo ActionMessages::part_no_perm(); } }