%PDF- %PDF-
| Direktori : /home/lightco1/www/lightingrepublic.com.au/components/com_allvideoshare/views/videos/ |
| Current File : /home/lightco1/www/lightingrepublic.com.au/components/com_allvideoshare/views/videos/view.html.php |
<?php
/*
* @version $Id: view.html.php 2.2.0 2014-01-18 $
* @package Joomla
* @copyright Copyright (C) 2012-2014 MrVinoth
* @license GNU/GPL http://www.gnu.org/licenses/gpl-2.0.html
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// Import libraries
require_once( JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_allvideoshare'.DS.'views'.DS.'view.php' );
class AllVideoShareViewVideos extends AllVideoShareView {
function display($tpl = null) {
$mainframe = JFactory::getApplication();
$model= $this->getModel();
$config = $model->getconfig();
$this->assignRef('config', $config);
// Adds parameter handling
$params = $mainframe->getParams();
$this->assignRef('params', $params);
$rows = $params->get('no_of_rows', $config[0]->rows);
$this->assignRef('rows', $rows);
$cols = $params->get('no_of_cols', $config[0]->cols);
$this->assignRef('cols', $cols);
$thumb_width = $params->get('avs_thumb_width', $config[0]->thumb_width);
$this->assignRef('thumb_width', $thumb_width);
$thumb_height = $params->get('avs_thumb_height', $config[0]->thumb_height);
$this->assignRef('thumb_height', $thumb_height);
if(substr(JVERSION,0,3) != '1.5') {
$doc = JFactory::getDocument();
if ($params->get('menu-meta_description')) {
$doc->setDescription($params->get('menu-meta_description'));
}
if ($params->get('menu-meta_keywords')) {
$doc->setMetadata('keywords', $params->get('menu-meta_keywords'));
}
if ($params->get('robots')) {
$doc->setMetadata('robots', $params->get('robots'));
}
}
$videos = $model->getvideos( $rows * $cols );
$this->assignRef('videos', $videos);
$pagination = $model->getpagination();
$this->assignRef('pagination', $pagination);
parent::display($tpl);
}
}