Server : Apache System : Linux webm012.cluster129.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : eventfrsgx ( 61451) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/eventfrsgx/www/components/com_sppagebuilder/views/media/ |
<?php
/**
* @package SP Page Builder
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2020 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
//no direct accees
defined ('_JEXEC') or die ('Restricted access');
if(!class_exists('SppagebuilderHelperSite')) {
require_once JPATH_ROOT . '/components/com_sppagebuilder/helpers/helper.php';
}
jimport('joomla.application.component.view');
class SppagebuilderViewMedia extends JViewLegacy {
public function display( $tpl = null ) {
$input = JFactory::getApplication()->input;
$layout = $input->get('layout', 'browse', 'STRING');
$this->date = $input->post->get('date', NULL, 'STRING');
$this->start = $input->post->get('start', 0, 'INT');
$this->search = $input->post->get('search', NULL, 'STRING');
$this->limit= 18;
$model = $this->getModel();
if(($layout == 'browse') || ($layout == 'modal')) {
$this->items = $model->getItems();
$this->filters = $model->getDateFilters($this->date, $this->search);
$this->total = $model->getTotalMedia($this->date, $this->search);
$this->categories = $model->getMediaCategories();
} else {
$this->media = $model->getFolders();
}
SppagebuilderHelperSite::loadLanguage();
parent::display($tpl);
}
}