/** * Display page content * * @access public */ public function display_content() { if (VGet::cat()) { $add = $this->_menu[VGet::cat()]; } else { $add = null; } Html::header_videos($add); if (!empty($this->_content)) { Html::html5('o', 'id="videos">'); if (!VSession::html5()) { echo '<ul>'; } foreach ($this->_content as $video) { Html::video($video->_name, $video->_author_publicname, $video->_permalink, $video->_embed_code, nl2br($video->_description), $video->_date); } if (!VSession::html5()) { echo '</ul>'; } Html::html5('c'); } else { if (!VSession::html5()) { echo '<ul>'; } Html::no_content('There\'s no videos right now.'); if (!VSession::html5()) { echo '</ul>'; } } }