/** * Display video edition form * * @access private */ private function display_edit_video() { $aliens = $this->get_aliens(); Html::mm_edit_video('o', $this->_medias[0]->_name, $this->_medias[0]->_permalink, $this->_medias[0]->_description); $categories = explode(',', $this->_medias[0]->_category); foreach ($this->_categories as $key => $value) { Html::category($key, $value, $categories); } Html::mm_edit_video('m'); if (!empty($aliens)) { foreach ($aliens as $alien) { Html::mm_opt_actions($alien->_id, $alien->_name, $this->_medias[0]->_attachment); } } Html::mm_edit_video('c', $this->_medias[0]->_permalink, $this->_medias[0]->_id, VGet::type()); }
/** * Display applicable actions buttons * * @access private */ private function display_actions() { if (!empty($this->_albums)) { foreach ($this->_dates as $album) { $key = $album['date']; $dates[$key] = date('F Y', strtotime($key)); } } else { $dates = array(); } Html::ma_actions('o'); foreach ($dates as $key => $date) { Html::mm_opt_actions($key, $date); } Html::ma_actions('m'); foreach ($this->_categories as $key => $cat) { Html::mm_opt_actions($key, ucwords($cat)); } Html::ma_actions('c'); }