/** * 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'); }