File manager - Edit - /home/jardides/www/Jardi-design/j37/plugins/fabrik_element/fileupload/models/allvideos.php
Back
<?php /** * All Videos * * @package Joomla.Plugin * @subpackage Fabrik.element.fileupload * @copyright Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html */ // No direct access defined('_JEXEC') or die('Restricted access'); /** * Fileupload adaptor to render allvideos * * @package Joomla.Plugin * @subpackage Fabrik.element.fileupload * @since 3.0 */ class AllVideosRenderModel { /** * Render output * * @var string */ public $output = ''; public $inTableView = false; /** * Render audio in the list view * * @param object &$model Element model * @param object &$params Element params * @param string $file Row data for this element * @param object $thisRow All row's data * * @return void */ public function renderListData(&$model, &$params, $file, $thisRow) { $this->inTableView = true; $this->render($model, $params, $file); } /** * Render uploaded image * * @param object &$model Element model * @param object &$params Element params * @param string $file Row data for this element * @param object $thisRow All row's data * * @return void */ public function render(&$model, &$params, $file, $thisRow = null) { $src = $model->getStorage()->getFileUrl($file); $ext = JString::strtolower(JFile::getExt($file)); if (!JPluginHelper::isEnabled('content', 'jw_allvideos')) { $this->output = FText::_('PLG_ELEMENT_FILEUPLOAD_INSTALL_ALL_VIDEOS'); return; } $extra = array(); $extra[] = $src; if ($this->inTableView || $params->get('fu_show_image') < 2) { $extra[] = $params->get('thumb_max_width'); $extra[] = $params->get('thumb_max_height'); } else { $extra[] = $params->get('fu_main_max_width'); $extra[] = $params->get('fu_main_max_height'); } $src = implode('|', $extra); switch ($ext) { case 'flv': $this->output = "{flvremote}$src{/flvremote}"; break; case '3gp': $this->output = "{3gpremote}$src{/3gpremote}"; break; case 'divx': $this->output = "{divxremote}$src{/divxremote}"; break; } } /** * Build Carousel HTML * * @param string $id Widget HTML id * @param array $data Images to add to the carousel * @param object $model Element model * @param object $params Element params * @param object $thisRow All rows data * * @return string HTML */ public function renderCarousel($id = 'carousel', $data = array(), $model = null, $params = null, $thisRow = null) { $rendered = ''; /** * @TODO - build it! */ return $rendered; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings