Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ class HtmlView extends BaseHtmlView
*/
private $isEmptyState = false;

/**
* The ordering list for the categories
*
* @var array
* @since __DEPLOY_VERSION__
*/
protected $ordering = [];

/**
* Display the view
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@ class HtmlView extends BaseHtmlView
*/
private $isEmptyState = false;

/**
* Is the vote plugin enabled on the site
*
* @var boolean
* @since __DEPLOY_VERSION__
*/
protected $vote = false;

/**
* Are hits being recorded on the site?
*
* @var boolean
* @since __DEPLOY_VERSION__
*/
protected $hits = false;

/**
* Display the view
*
Expand All @@ -99,7 +115,7 @@ public function display($tpl = null)
$this->filterForm = $this->get('FilterForm');
$this->activeFilters = $this->get('ActiveFilters');
$this->vote = PluginHelper::isEnabled('content', 'vote');
$this->hits = ComponentHelper::getParams('com_content')->get('record_hits', 1);
$this->hits = ComponentHelper::getParams('com_content')->get('record_hits', 1) == 1;

if (!\count($this->items) && $this->isEmptyState = $this->get('IsEmptyState')) {
$this->setLayout('emptystate');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@ class HtmlView extends BaseHtmlView
*/
private $isEmptyState = false;

/**
* Form object for search filters
*
* @var \Joomla\CMS\Form\Form
*/
public $filterForm;

/**
* The active search filters
*
* @var array
*/
public $activeFilters;

/**
* Execute and display a template script.
*
Expand Down
8 changes: 8 additions & 0 deletions administrator/components/com_tags/src/View/Tags/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ class HtmlView extends BaseHtmlView
*/
private $isEmptyState = false;

/**
* The ordering list for the tags
*
* @var array
* @since __DEPLOY_VERSION__
*/
protected $ordering = [];

/**
* Execute and display a template script.
*
Expand Down