-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Update Joomla! content and contacts to include an item-featured class if an item is featured #10011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 79 commits
5c2b1fc
3b8eb5f
da2e466
19a9927
f1e6f7f
e2ba667
aef9d39
49bdec2
b0157fa
69c99ad
3e62ea2
deab579
8248296
4ec5d89
513f67c
d62b3f8
c045a02
95bb424
0d0bf5b
f8747d5
4811f6f
7c055e6
ac7b46b
a6dfd7c
f410206
9836ec6
4041e5a
0fa960b
f9a20d3
50a579b
6454891
c290012
25a8bc7
f6a0fa4
709a132
dcaacf5
cc558a7
9eb72b1
56eb40e
3186896
0742bfc
69c5a48
c72b3f3
2d7c014
e806ddb
33c3fc5
466099b
6fe9190
90a7a77
0a6854f
1947521
cac6f32
6928d86
5c2a0e9
2935029
8a2a8ad
cfdbd4c
35562eb
94764e4
3b31d8b
f7d1dd3
813dbad
d21fe4f
9418f18
05530cb
97a4772
52c0c2d
7f915dd
e66a67a
64dc0c8
5f8ddcc
b684ba5
05adf6c
5f310b9
30f4e03
06bf1c4
c0cb1c9
f7d3028
9c905d9
37babe9
08be27e
ec0cabb
146a7fa
1b2098f
44321a5
b2b0dd6
e7d1976
470ec32
b925ac0
9dc54c2
7cd7a14
376a1f2
01ce6a5
d472d2b
af46bf4
2863c56
330322e
01a1ed9
d6f46fa
5b7d1f4
1931954
61fc48f
1a96427
666a475
7550741
84258a6
fdb38d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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; | ||
|
|
@@ -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)); ?>"> | ||
|
||
| <div class="item column-<?php echo $rowcount; echo $item->state == 0 ? ' system-unpublished' : null; echo (empty($item->featured)) ? '' : ' item-featured';?>" | ||
|
||
| itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting"> | ||
| <?php | ||
| $this->item = & $item; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| <?php | ||
|
||
| /** | ||
| * @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') . ' '; ?> | ||
| </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> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -146,4 +146,4 @@ | |
| </div> | ||
| <?php endif; ?> | ||
| </form> | ||
| <?php endif; ?> | ||
| <?php endif; ?> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,122 @@ | ||
| <?php | ||
|
||
| /** | ||
| * @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') . ' '; ?> | ||
| </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> | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add space before
: