Skip to content
Closed
Show file tree
Hide file tree
Changes from 79 commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
5c2b1fc
Update blog.php
uglyeoin Apr 20, 2016
3b8eb5f
Update blog.php
uglyeoin Apr 20, 2016
da2e466
Update blog.php
uglyeoin Apr 20, 2016
19a9927
Update blog.php
uglyeoin Apr 20, 2016
f1e6f7f
Update default.php
uglyeoin Apr 26, 2016
e2ba667
Update default_items.php
uglyeoin Apr 26, 2016
aef9d39
Update default.php
uglyeoin Apr 26, 2016
49bdec2
Update default.php
uglyeoin Apr 26, 2016
b0157fa
Update horizontal.php
uglyeoin Apr 26, 2016
69c99ad
Update vertical.php
uglyeoin Apr 26, 2016
3e62ea2
Update default.php
uglyeoin Apr 26, 2016
deab579
Update default.php
uglyeoin Apr 26, 2016
8248296
Update default_items.php
uglyeoin Apr 26, 2016
4ec5d89
Update list_items.php
uglyeoin Apr 26, 2016
513f67c
Update default_items.php
uglyeoin Apr 26, 2016
d62b3f8
Update list_items.php
uglyeoin Apr 26, 2016
c045a02
Update default_items.php
uglyeoin Apr 26, 2016
95bb424
updated to item-featured
uglyeoin Jun 3, 2016
0d0bf5b
updated to item-featured
uglyeoin Jun 3, 2016
f8747d5
updated to item-featured
uglyeoin Jun 3, 2016
4811f6f
updated to item-featured
uglyeoin Jun 3, 2016
7c055e6
Updated to item-featured
uglyeoin Jun 3, 2016
ac7b46b
updated to item-featured
uglyeoin Jun 3, 2016
a6dfd7c
UPdated item-featured
uglyeoin Jun 3, 2016
f410206
updated item-featured
uglyeoin Jun 3, 2016
9836ec6
updated item-featured
uglyeoin Jun 3, 2016
4041e5a
updated item-featured
uglyeoin Jun 3, 2016
0fa960b
updated item-featured
uglyeoin Jun 3, 2016
f9a20d3
updated item-featured
uglyeoin Jun 3, 2016
50a579b
updated item-featured
uglyeoin Jun 3, 2016
6454891
updated item-featured
uglyeoin Jun 3, 2016
c290012
Update blog.php
uglyeoin Apr 20, 2016
25a8bc7
Update blog.php
uglyeoin Apr 20, 2016
f6a0fa4
Update blog.php
uglyeoin Apr 20, 2016
709a132
Update blog.php
uglyeoin Apr 20, 2016
dcaacf5
Update default.php
uglyeoin Apr 26, 2016
cc558a7
Update default_items.php
uglyeoin Apr 26, 2016
9eb72b1
Update default.php
uglyeoin Apr 26, 2016
56eb40e
Update default.php
uglyeoin Apr 26, 2016
3186896
Update horizontal.php
uglyeoin Apr 26, 2016
0742bfc
Update vertical.php
uglyeoin Apr 26, 2016
69c5a48
Update default.php
uglyeoin Apr 26, 2016
c72b3f3
Update default.php
uglyeoin Apr 26, 2016
2d7c014
Update default_items.php
uglyeoin Apr 26, 2016
e806ddb
Update list_items.php
uglyeoin Apr 26, 2016
33c3fc5
Update default_items.php
uglyeoin Apr 26, 2016
466099b
Update list_items.php
uglyeoin Apr 26, 2016
6fe9190
Update default_items.php
uglyeoin Apr 26, 2016
90a7a77
updated to item-featured
uglyeoin Jun 3, 2016
0a6854f
updated to item-featured
uglyeoin Jun 3, 2016
1947521
updated to item-featured
uglyeoin Jun 3, 2016
cac6f32
updated to item-featured
uglyeoin Jun 3, 2016
6928d86
Updated to item-featured
uglyeoin Jun 3, 2016
5c2a0e9
updated to item-featured
uglyeoin Jun 3, 2016
2935029
UPdated item-featured
uglyeoin Jun 3, 2016
8a2a8ad
updated item-featured
uglyeoin Jun 3, 2016
cfdbd4c
updated item-featured
uglyeoin Jun 3, 2016
35562eb
updated item-featured
uglyeoin Jun 3, 2016
94764e4
updated item-featured
uglyeoin Jun 3, 2016
3b31d8b
updated item-featured
uglyeoin Jun 3, 2016
f7d1dd3
updated item-featured
uglyeoin Jun 3, 2016
813dbad
Code cleanup
roland-d Jun 4, 2016
d21fe4f
Merge branch 'staging' of https://github.com/joomla/joomla-cms into s…
uglyeoin Jun 4, 2016
9418f18
Merge branch 'staging' of https://github.com/uglyeoin/joomla-cms into…
roland-d Jun 4, 2016
05530cb
Merge pull request #1 from roland-d/blogfix
uglyeoin Jun 4, 2016
97a4772
code golf changes, removed ?><?php for efficiency
uglyeoin Jun 4, 2016
52c0c2d
tested and improved
uglyeoin Jun 4, 2016
7f915dd
removed print-r from files which I was using to test whether part of …
uglyeoin Jun 5, 2016
e66a67a
removed tags files as they were redundent
uglyeoin Jun 5, 2016
64dc0c8
Merge branch 'staging' of https://github.com/joomla/joomla-cms into s…
uglyeoin Jun 5, 2016
5f8ddcc
added tags files back into installation
uglyeoin Jun 5, 2016
b684ba5
updating tags to include all files
uglyeoin Jun 6, 2016
05adf6c
Add featured class to tr element
wilsonge Aug 16, 2016
5f310b9
Merge pull request #2 from wilsonge/patch-5
uglyeoin Aug 17, 2016
30f4e03
Merge branch 'staging' into featured
uglyeoin Sep 23, 2016
06bf1c4
Merge branch 'staging' into staging
uglyeoin May 29, 2017
c0cb1c9
Merge branch 'staging' into staging
uglyeoin May 29, 2017
f7d3028
Put file back to default
uglyeoin May 29, 2017
9c905d9
Merge branch 'staging' into staging
uglyeoin Jun 23, 2017
37babe9
add space before class remove space after li
uglyeoin Jul 13, 2017
08be27e
remove space after li add space before class
uglyeoin Jul 13, 2017
ec0cabb
removed an unecessary space
uglyeoin Jul 13, 2017
146a7fa
removed double brackets
uglyeoin Jul 13, 2017
1b2098f
reset to staging
wojsmol Aug 29, 2017
44321a5
rremove files
wojsmol Aug 29, 2017
b2b0dd6
Update default_items.php
wojsmol Aug 29, 2017
e7d1976
Merge pull request #3 from wojsmol/staging-u
uglyeoin Aug 30, 2017
470ec32
added a space before ?>
uglyeoin Aug 30, 2017
b925ac0
added a space before ?>
uglyeoin Aug 30, 2017
9dc54c2
added a space before ?>
uglyeoin Aug 30, 2017
7cd7a14
added a space before ?>
uglyeoin Aug 30, 2017
376a1f2
added a space before ?>
uglyeoin Aug 30, 2017
01ce6a5
added a space before ?>
uglyeoin Aug 30, 2017
d472d2b
added a space before ?>
uglyeoin Aug 30, 2017
af46bf4
added a space before ?>
uglyeoin Aug 30, 2017
2863c56
added a space before ?>
uglyeoin Aug 30, 2017
330322e
added a space before ?>
uglyeoin Aug 30, 2017
01a1ed9
added a space before ?>
uglyeoin Aug 30, 2017
d6f46fa
Added space before :
uglyeoin Aug 30, 2017
5b7d1f4
Removed additional parenthesis
uglyeoin Aug 30, 2017
1931954
added a space before class
uglyeoin Aug 30, 2017
61fc48f
Removed tab
uglyeoin Aug 30, 2017
1a96427
Made calls consistent
uglyeoin Aug 30, 2017
666a475
coding style
Sep 18, 2017
7550741
Remove space
Sep 18, 2017
84258a6
Remove space
Sep 18, 2017
fdb38d0
Merge pull request #4 from Quy/patch-5
uglyeoin Sep 18, 2017
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
6 changes: 3 additions & 3 deletions components/com_contact/views/category/tmpl/default_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@

<?php if (in_array($item->access, $this->user->getAuthorisedViewLevels())) : ?>
<?php if ($this->items[$i]->published == 0) : ?>
<li class="row-fluid system-unpublished cat-list-row<?php echo $i % 2; ?>">
<?php else : ?>
<li class="row-fluid cat-list-row<?php echo $i % 2; ?>" >
<li class="row-fluid system-unpublished cat-list-row<?php echo $i % 2; echo $item->featured ? ' item-featured' : ''; ?>">
<?php else: ?>
Copy link
Contributor

@Quy Quy Aug 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add space before :

<li class="row-fluid cat-list-row<?php echo $i % 2; echo $item->featured ? ' item-featured' : ''; ?>" >
<?php endif; ?>

<?php if ($this->params->get('show_image_heading')) : ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

<tbody>
<?php foreach ($this->items as $i => $item) : ?>
<tr class="<?php echo ($i % 2) ? 'odd' : 'even'; ?>" itemscope itemtype="https://schema.org/Person">
<tr class="<?php echo ($i % 2) ? 'odd' : 'even'; echo $item->featured ? ' item-featured' : '';?>" itemscope itemtype="https://schema.org/Person">
<td class="item-num">
<?php echo $i; ?>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div id="archive-items">
<?php foreach ($this->items as $i => $item) : ?>
<?php $info = $item->params->get('info_block_position', 0); ?>
<div class="row<?php echo $i % 2; ?>" itemscope itemtype="https://schema.org/Article">
<div class="row<?php echo $i % 2; echo $item->featured ? ' item-featured' : '';?>" itemscope itemtype="https://schema.org/Article">
<div class="page-header">
<h2 itemprop="headline">
<?php if ($params->get('link_titles')) : ?>
Expand Down
6 changes: 3 additions & 3 deletions components/com_content/views/category/tmpl/blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<?php if (!empty($this->lead_items)) : ?>
<div class="items-leading clearfix">
<?php foreach ($this->lead_items as &$item) : ?>
<div class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>"
<div class="leading-<?php echo $leadingcount; echo $item->state == 0 ? ' system-unpublished' : null; echo $item->featured ? ' item-featured' : '';?>"
itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<?php
$this->item = & $item;
Expand All @@ -97,8 +97,8 @@
<?php $row = $counter / $this->columns; ?>
<div class="items-row cols-<?php echo (int) $this->columns; ?> <?php echo 'row-' . $row; ?> row-fluid clearfix">
<?php endif; ?>
<div class="span<?php echo round(12 / $this->columns); ?>">
<div class="item column-<?php echo $rowcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>"
<div class="span<?php echo round((12 / $this->columns)); ?>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the double brackets

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea. It's unlikely to be something I added, is it possible that the original code was refactored in some sort of code clean up?

<div class="item column-<?php echo $rowcount; echo $item->state == 0 ? ' system-unpublished' : null; echo (empty($item->featured)) ? '' : ' item-featured';?>"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it consistent with line 76.

itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<?php
$this->item = & $item;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@
<tbody>
<?php foreach ($this->items as $i => $article) : ?>
<?php if ($this->items[$i]->state == 0) : ?>
<tr class="system-unpublished cat-list-row<?php echo $i % 2; ?>">
<?php else : ?>
<tr class="cat-list-row<?php echo $i % 2; ?>" >
<tr class="system-unpublished cat-list-row<?php echo $i % 2; echo $article->featured ? ' item-featured': ''; ?>">
<?php else: ?>
<tr class="cat-list-row<?php echo $i % 2; echo $article->featured ? ' item-featured': ''; ?>" >
<?php endif; ?>
<td headers="categorylist_header_title" class="list-title">
<?php if (in_array($article->access, $this->user->getAuthorisedViewLevels())) : ?>
Expand Down
4 changes: 2 additions & 2 deletions components/com_content/views/featured/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<?php if (!empty($this->lead_items)) : ?>
<div class="items-leading clearfix">
<?php foreach ($this->lead_items as &$item) : ?>
<div class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?> clearfix"
<div class="leading-<?php echo $leadingcount; echo $item->state == 0 ? ' system-unpublished' : null; echo $item->featured ? ' item-featured' : '';?> clearfix"
itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<?php
$this->item = &$item;
Expand Down Expand Up @@ -58,7 +58,7 @@

<div class="items-row cols-<?php echo (int) $this->columns; ?> <?php echo 'row-' . $row; ?> row-fluid">
<?php endif; ?>
<div class="item column-<?php echo $rowcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?> span<?php echo round(12 / $this->columns); ?>"
<div class="item column-<?php echo $rowcount; echo $item->state == 0 ? ' system-unpublished' : null; ?> span<?php echo round((12 / $this->columns)); echo $item->featured ? ' item-featured' : '';?>"
itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<?php
$this->item = &$item;
Expand Down
7 changes: 1 addition & 6 deletions components/com_tags/views/tag/tmpl/default_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;

JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');

JHtml::_('behavior.core');
JHtml::_('formbehavior.chosen', 'select');

// Get the user object.
$user = JFactory::getUser();

// 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');
Expand Down Expand Up @@ -108,4 +103,4 @@
</ul>

<?php endif; ?>
</form>
</form>
129 changes: 129 additions & 0 deletions components/com_tags/views/tag/tmpl/list_items.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?php
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this file

/**
* @package Joomla.Site
* @subpackage com_tags
*
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::_('behavior.core');
JHtml::_('formbehavior.chosen', 'select');
$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 = '';
}
");
?>

<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
<?php if ($this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
<fieldset class="filters btn-toolbar">
<?php if ($this->params->get('filter_field')) :?>
<div class="btn-group">
<label class="filter-search-lbl element-invisible" for="filter-search">
<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL') . '&#160;'; ?>
</label>
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->state->get('list.filter')); ?>" class="inputbox" onchange="document.adminForm.submit();" title="<?php echo JText::_('COM_TAGS_FILTER_SEARCH_DESC'); ?>" placeholder="<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL'); ?>" />
<button type="button" name="filter-search-button" title="<?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?>" onclick="document.adminForm.submit();" class="btn">
<span class="icon-search"></span>
</button>
<button type="reset" name="filter-clear-button" title="<?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?>" class="btn" onclick="resetFilter(); document.adminForm.submit();">
<span class="icon-remove"></span>
</button>
</div>
<?php endif; ?>
<?php if ($this->params->get('show_pagination_limit')) : ?>
<div class="btn-group pull-right">
<label for="limit" class="element-invisible">
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
</label>
<?php echo $this->pagination->getLimitBox(); ?>
</div>
<?php endif; ?>

<input type="hidden" name="filter_order" value="" />
<input type="hidden" name="filter_order_Dir" value="" />
<input type="hidden" name="limitstart" value="" />
<input type="hidden" name="task" value="" />
<div class="clearfix"></div>
</fieldset>
<?php endif; ?>

<?php if ($this->items == false || $n == 0) : ?>
<p> <?php echo JText::_('COM_TAGS_NO_ITEMS'); ?></p>
<?php else : ?>
<table class="category table table-striped table-bordered table-hover">
<?php if ($this->params->get('show_headings')) : ?>
<thead>
<tr>
<th id="categorylist_header_title">
<?php echo JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'c.core_title', $listDirn, $listOrder); ?>
</th>
<?php if ($date = $this->params->get('tag_list_show_date')) : ?>
<th id="categorylist_header_date">
<?php if ($date == "created") : ?>
<?php echo JHtml::_('grid.sort', 'COM_TAGS_' . $date . '_DATE', 'c.core_created_time', $listDirn, $listOrder); ?>
<?php elseif ($date == "modified") : ?>
<?php echo JHtml::_('grid.sort', 'COM_TAGS_' . $date . '_DATE', 'c.core_modified_time', $listDirn, $listOrder); ?>
<?php elseif ($date == "published") : ?>
<?php echo JHtml::_('grid.sort', 'COM_TAGS_' . $date . '_DATE', 'c.core_publish_up', $listDirn, $listOrder); ?>
<?php endif; ?>
</th>
<?php endif; ?>

</tr>
</thead>
<?php endif; ?>
<tbody>
<?php foreach ($this->items as $i => $item) : ?>
<?php if ($this->items[$i]->core_state == 0) : ?>
<tr class="system-unpublished cat-list-row<?php echo $i % 2; ?>">
<?php else: ?>
<tr class="cat-list-row<?php echo $i % 2; ?>" >
<?php endif; ?>
<td <?php if ($this->params->get('show_headings')) echo "headers=\"categorylist_header_title\""; ?> class="list-title">
<a href="<?php echo JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router)); ?>">
<?php echo $this->escape($item->core_title); ?>
</a>
<?php if ($item->core_state == 0) : ?>
<span class="list-published label label-warning">
<?php echo JText::_('JUNPUBLISHED'); ?>
</span>
<?php endif; ?>
</td>
<?php if ($this->params->get('tag_list_show_date')) : ?>
<td headers="categorylist_header_date" class="list-date small">
<?php
echo JHtml::_(
'date', $item->displayDate,
$this->escape($this->params->get('date_format', JText::_('DATE_FORMAT_LC3')))
); ?>
</td>
<?php endif; ?>

</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>

<?php // Add pagination links ?>
<?php if (!empty($this->items)) : ?>
<?php if (($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
<div class="pagination">

<?php if ($this->params->def('show_pagination_results', 1)) : ?>
<p class="counter pull-right">
<?php echo $this->pagination->getPagesCounter(); ?>
</p>
<?php endif; ?>

<?php echo $this->pagination->getPagesLinks(); ?>
</div>
<?php endif; ?>
<?php endif; ?>
</form>
12 changes: 1 addition & 11 deletions components/com_tags/views/tag/tmpl/list_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
$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 = '';
}
");

?>

<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
Expand All @@ -31,12 +27,6 @@
<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL') . '&#160;'; ?>
</label>
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->state->get('list.filter')); ?>" class="inputbox" onchange="document.adminForm.submit();" title="<?php echo JText::_('COM_TAGS_FILTER_SEARCH_DESC'); ?>" placeholder="<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL'); ?>" />
<button type="button" name="filter-search-button" title="<?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?>" onclick="document.adminForm.submit();" class="btn">
<span class="icon-search"></span>
</button>
<button type="reset" name="filter-clear-button" title="<?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?>" class="btn" onclick="resetFilter(); document.adminForm.submit();">
<span class="icon-remove"></span>
</button>
</div>
<?php endif; ?>
<?php if ($this->params->get('show_pagination_limit')) : ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_tags/views/tags/tmpl/default_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@
</div>
<?php endif; ?>
</form>
<?php endif; ?>
<?php endif; ?>
122 changes: 122 additions & 0 deletions components/com_tags/views/tags/tmpl/list_items.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<?php
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems wrong from the diff

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wilsonge I just want to reset all of the tags stuff to be the same as master is there a way to do this?

/**
* @package Joomla.Site
* @subpackage com_tags
*
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;

JHtml::_('behavior.core');
JHtml::_('formbehavior.chosen', 'select');

$n = count($this->items);
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));

?>

<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
<?php if ($this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
<fieldset class="filters btn-toolbar">
<?php if ($this->params->get('filter_field')) :?>
<div class="btn-group">
<label class="filter-search-lbl element-invisible" for="filter-search">
<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL') . '&#160;'; ?>
</label>
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->state->get('list.filter')); ?>" class="inputbox" onchange="document.adminForm.submit();" title="<?php echo JText::_('COM_TAGS_FILTER_SEARCH_DESC'); ?>" placeholder="<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL'); ?>" />
</div>
<?php endif; ?>
<?php if ($this->params->get('show_pagination_limit')) : ?>
<div class="btn-group pull-right">
<label for="limit" class="element-invisible">
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
</label>
<?php echo $this->pagination->getLimitBox(); ?>
</div>
<?php endif; ?>

<input type="hidden" name="filter_order" value="" />
<input type="hidden" name="filter_order_Dir" value="" />
<input type="hidden" name="limitstart" value="" />
<input type="hidden" name="task" value="" />
<div class="clearfix"></div>
</fieldset>
<?php endif; ?>

<?php if ($this->items == false || $n == 0) : ?>
<p> <?php echo JText::_('COM_TAGS_NO_ITEMS'); ?></p>
<?php else : ?>
<table class="category table table-striped table-bordered table-hover">
<?php if ($this->params->get('show_headings')) : ?>
<thead>
<tr>
<th id="categorylist_header_title">
<?php echo JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'c.core_title', $listDirn, $listOrder); ?>
</th>
<?php if ($date = $this->params->get('tag_list_show_date')) : ?>
<th id="categorylist_header_date">
<?php if ($date == "created") : ?>
<?php echo JHtml::_('grid.sort', 'COM_TAGS_' . $date . '_DATE', 'c.core_created_time', $listDirn, $listOrder); ?>
<?php elseif ($date == "modified") : ?>
<?php echo JHtml::_('grid.sort', 'COM_TAGS_' . $date . '_DATE', 'c.core_modified_time', $listDirn, $listOrder); ?>
<?php elseif ($date == "published") : ?>
<?php echo JHtml::_('grid.sort', 'COM_TAGS_' . $date . '_DATE', 'c.core_publish_up', $listDirn, $listOrder); ?>
<?php endif; ?>
</th>
<?php endif; ?>

</tr>
</thead>
<?php endif; ?>
<tbody>
<?php foreach ($this->items as $i => $item) : ?>
<?php if ($this->items[$i]->core_state == 0) : ?>
<tr class="system-unpublished cat-list-row<?php echo $i % 2; ?>">
<?php else: ?>
<tr class="cat-list-row<?php echo $i % 2; ?>" >
<?php endif; ?>
<td <?php if ($this->params->get('show_headings')) echo "headers=\"categorylist_header_title\""; ?> class="list-title">
<a href="<?php echo JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router)); ?>">
<?php echo $this->escape($item->core_title); ?>
</a>
<?php if ($item->core_state == 0) : ?>
<span class="list-published label label-warning">
<?php echo JText::_('JUNPUBLISHED'); ?>
</span>
<?php endif; ?>
</td>
<?php if ($this->params->get('tag_list_show_date')) : ?>
<td headers="categorylist_header_date" class="list-date small">
<?php
echo JHtml::_(
'date', $item->displayDate,
$this->escape($this->params->get('date_format', JText::_('DATE_FORMAT_LC3')))
); ?>
</td>
<?php endif; ?>

</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>

<?php // Add pagination links ?>
<?php if (!empty($this->items)) : ?>
<?php if (($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
<div class="pagination">

<?php if ($this->params->def('show_pagination_results', 1)) : ?>
<p class="counter pull-right">
<?php echo $this->pagination->getPagesCounter(); ?>
</p>
<?php endif; ?>

<?php echo $this->pagination->getPagesLinks(); ?>
</div>
<?php endif; ?>
<?php endif; ?>
</form>
Loading