item[0]->images); ?>
params->get('tag_list_show_tag_image', 1) == 1 && !empty($images->image_fulltext)) : ?>
-
+
params->get('tag_list_show_tag_description') == 1 && $this->item[0]->description) : ?>
item[0]->description, '', 'com_tags.tag'); ?>
@@ -40,19 +41,19 @@
params->get('tag_list_show_tag_description', 1) || $this->params->get('show_description_image', 1)) : ?>
params->get('show_description_image', 1) == 1 && $this->params->get('tag_list_image')) : ?>
-
+
params->get('tag_list_description', '') > '') : ?>
params->get('tag_list_description'), '', 'com_tags.tag'); ?>
-
-
loadTemplate('items'); ?>
params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->get('pages.total') > 1)) : ?>
diff --git a/components/com_tags/views/tag/tmpl/default_items.php b/components/com_tags/views/tag/tmpl/default_items.php
index bb3207c6d9212..60d7cdd972661 100644
--- a/components/com_tags/views/tag/tmpl/default_items.php
+++ b/components/com_tags/views/tag/tmpl/default_items.php
@@ -19,93 +19,91 @@
// Check if user is allowed to add/edit based on tags permissions.
// Do we really have to make it so people can see unpublished tags???
-$canEdit = $user->authorise('core.edit', 'com_tags');
-$canCreate = $user->authorise('core.create', 'com_tags');
+$canEdit = $user->authorise('core.edit', 'com_tags');
+$canCreate = $user->authorise('core.create', 'com_tags');
$canEditState = $user->authorise('core.edit.state', 'com_tags');
-$items = $this->items;
-$n = count($this->items);
+$items = $this->items;
+$n = count($this->items);
+
JFactory::getDocument()->addScriptDeclaration("
var resetFilter = function() {
document.getElementById('filter-search').value = '';
}
");
+
?>
diff --git a/components/com_tags/views/tag/tmpl/list.php b/components/com_tags/views/tag/tmpl/list.php
index 459ae3dc6588d..bfe7e2f615097 100644
--- a/components/com_tags/views/tag/tmpl/list.php
+++ b/components/com_tags/views/tag/tmpl/list.php
@@ -13,6 +13,7 @@
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
$n = count($this->items);
+
?>
params->get('show_page_heading')) : ?>
@@ -46,8 +47,6 @@
params->get('tag_list_description', '') > '') : ?>
params->get('tag_list_description'), '', 'com_tags.tag'); ?>
-
-
loadTemplate('items'); ?>
diff --git a/components/com_tags/views/tag/tmpl/list_items.php b/components/com_tags/views/tag/tmpl/list_items.php
index 1edc29899ed8e..b7333152262f5 100644
--- a/components/com_tags/views/tag/tmpl/list_items.php
+++ b/components/com_tags/views/tag/tmpl/list_items.php
@@ -15,78 +15,76 @@
$n = count($this->items);
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
+
JFactory::getDocument()->addScriptDeclaration("
var resetFilter = function() {
document.getElementById('filter-search').value = '';
}
");
-?>
+?>
diff --git a/components/com_tags/views/tags/tmpl/default.php b/components/com_tags/views/tags/tmpl/default.php
index d93f37a860534..e458fc2a1cf9d 100644
--- a/components/com_tags/views/tags/tmpl/default.php
+++ b/components/com_tags/views/tags/tmpl/default.php
@@ -12,8 +12,9 @@
// Note that there are certain parts of this layout used only when there is exactly one tag.
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
-$description = $this->params->get('all_tags_description');
+$description = $this->params->get('all_tags_description');
$descriptionImage = $this->params->get('all_tags_description_image');
+
?>
params->get('show_page_heading')) : ?>
@@ -22,12 +23,14 @@
params->get('all_tags_show_description_image') && !empty($descriptionImage)) : ?>
-
'; ?>
+
+
+
-
+
+
+
-
loadTemplate('items'); ?>
-
diff --git a/components/com_tags/views/tags/tmpl/default_items.php b/components/com_tags/views/tags/tmpl/default_items.php
index 81e0b6d320912..ec8c73ecccdd0 100644
--- a/components/com_tags/views/tags/tmpl/default_items.php
+++ b/components/com_tags/views/tags/tmpl/default_items.php
@@ -18,8 +18,8 @@
$user = JFactory::getUser();
// Check if user is allowed to add/edit based on tags permissions.
-$canEdit = $user->authorise('core.edit', 'com_tags');
-$canCreate = $user->authorise('core.create', 'com_tags');
+$canEdit = $user->authorise('core.edit', 'com_tags');
+$canCreate = $user->authorise('core.create', 'com_tags');
$canEditState = $user->authorise('core.edit.state', 'com_tags');
$columns = $this->params->get('tag_columns', 1);
@@ -38,14 +38,15 @@
}
$bscolumns = min($columns, floor(12 / $bsspans));
-$n = count($this->items);
+$n = count($this->items);
+
JFactory::getDocument()->addScriptDeclaration("
var resetFilter = function() {
document.getElementById('filter-search').value = '';
}
");
-?>
+?>
-
-
items)) : ?>
- params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
-
+ params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
+
+
-
+