/** * Display all retrieved albums * * @access private */ private function display_albums() { Html::form('o', 'post', 'index.php?ns=media&ctl=albums'); $this->display_actions(); echo '<section id="labels">'; if (!empty($this->_albums)) { foreach ($this->_albums as $album) { $cats = explode(',', $album->_category); if (empty($cats[0])) { $cats = array(); } $cats_name = array(); foreach ($cats as $cat) { array_push($cats_name, $this->_categories[$cat]); } Html::ma_album_label($album->_id, $album->_permalink, $album->_name, $album->_status, $album->_author_name, $album->_date, $cats_name); } } else { echo 'No albums yet'; } echo '</section>'; Html::form('c'); }