| Current Path : /var/www/html/components/com_jdonation/view/campaigns/ |
| Current File : /var/www/html/components/com_jdonation/view/campaigns/html.php |
<?php
use Joomla\CMS\Factory;
use Joomla\Registry\Registry;
/**
* @version 5.4.5
* @package Joomla
* @subpackage Joom Donation
* @author Tuan Pham Ngoc
* @copyright Copyright (C) 2009 - 2018 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
// no direct access
defined('_JEXEC') or die();
class DonationViewCampaignsHtml extends OSFViewList
{
protected function prepareView()
{
parent::prepareView();
$filter_search = $this->input->getString('filter_search','');
if($filter_search)
{
$model = $this->getModel();
$model->set('filter_state', $filter_search);
}
$document = Factory::getDocument();
$menus = Factory::getApplication()->getMenu();
$menu = $menus->getActive();
$params = new Registry() ;
if (is_object($menu))
{
$params = new Registry() ;
$params->loadString($menu->getParams());
$meta_description = $params->get('menu-meta_description','');
if($meta_description != "")
{
$document->setMetaData( "description", $meta_description);
}
$layout = $params->get('campaignlayout','default');
$ncolumns = $params->get('ncolumns',2);
$this->setLayout($layout);
}
$this->config = DonationHelper::getConfig();
$this->bootstrapHelper = new DonationHelperBootstrap($this->config->twitter_bootstrap_version);
$this->nullDate = Factory::getDbo()->getNullDate();
$this->ncolumns = $ncolumns;
}
}