diff --git a/components/com_content/views/category/tmpl/default_articles.php b/components/com_content/views/category/tmpl/default_articles.php index c6bc7f85b04cf..8969ab8489757 100644 --- a/components/com_content/views/category/tmpl/default_articles.php +++ b/components/com_content/views/category/tmpl/default_articles.php @@ -31,11 +31,20 @@ } } } -?> +// For B/C we also add the css classes inline. This will be removed in 4.0. +JFactory::getDocument()->addStyleDeclaration(" +.hide { display: none; } +.table-noheader { border-collapse: collapse; } +.table-noheader thead { display: none; } +"); + +$tableClass = $this->params->get('show_headings') != 1 ? ' table-noheader' : ''; +?>
-params->get('show_headings') || $this->params->get('filter_field') != 'hide' || $this->params->get('show_pagination_limit')) :?> +params->get('filter_field') != 'hide' || $this->params->get('show_pagination_limit')) : ?>
+ params->get('filter_field') != 'hide') :?>
params->get('filter_field') != 'tag') :?> @@ -65,39 +74,29 @@
+ +
+
+ +
+
+ items)) : ?> - params->get('show_no_articles', 1)) : ?>

- - - - - params->get('show_headings')) : ?> - - +
+ + - params->get('list_show_date')) : ?> - params->get('list_show_author')) : ?> - params->get('list_show_hits')) : ?> - - + - - + items as $i => $article) : ?> items[$i]->state == 0) : ?> @@ -130,7 +128,7 @@ - params->get('list_show_date')) : ?> - params->get('list_show_author', 1)) : ?> - params->get('list_show_hits', 1)) : ?> - -
category->title); ?>
+ + @@ -108,21 +107,20 @@ + +
class="list-title"> + access, $this->user->getAuthorisedViewLevels())) : ?> escape($article->title); ?> @@ -165,7 +163,7 @@ class="list-date small"> + displayDate, @@ -174,7 +172,7 @@ class="list-author"> + author) || !empty($article->created_by_alias)) : ?> author ?> created_by_alias ? $article->created_by_alias : $author);?> @@ -187,14 +185,14 @@ class="list-hits"> + hits); ?> class="list-edit"> + params->get('access-edit')) : ?> diff --git a/language/en-GB/en-GB.com_content.ini b/language/en-GB/en-GB.com_content.ini index 773cd4aa04dcd..65b1d0f11babd 100644 --- a/language/en-GB/en-GB.com_content.ini +++ b/language/en-GB/en-GB.com_content.ini @@ -26,6 +26,9 @@ COM_CONTENT_ERROR_PARENT_CATEGORY_NOT_FOUND="Parent category not found" COM_CONTENT_FEED_READMORE="Read More ..." COM_CONTENT_FILTER_SEARCH_DESC="Content Filter Search" COM_CONTENT_FORM_EDIT_ARTICLE="Edit an article" +COM_CONTENT_FORM_FILTER_LEGEND="Filters" +COM_CONTENT_FORM_FILTER_SUBMIT="Filter" +COM_CONTENT_CATEGORY_LIST_TABLE_CAPTION="List of articles in category %s" COM_CONTENT_HEADING_TITLE="Title" COM_CONTENT_HITS_FILTER_LABEL="Hits Filter" COM_CONTENT_INTROTEXT="Article must have some content." diff --git a/media/jui/less/tables.less b/media/jui/less/tables.less index 0e35271e11fe5..bdb32c60f4dc8 100644 --- a/media/jui/less/tables.less +++ b/media/jui/less/tables.less @@ -242,3 +242,14 @@ table th[class*="span"], background-color: darken(@infoBackground, 5%); } } + + +// TABLE WITHOUT HEADER +// ----------------- +// Table with table header hidden +.table-noheader { + border-collapse: collapse; + thead { + display: none; + } +} \ No newline at end of file diff --git a/templates/protostar/css/template.css b/templates/protostar/css/template.css index f17c17a642883..546aa1fdb0f72 100644 --- a/templates/protostar/css/template.css +++ b/templates/protostar/css/template.css @@ -1938,6 +1938,12 @@ table th[class*="span"], .table-hover tbody tr.info:hover > td { background-color: #c4e3f3; } +.table-noheader { + border-collapse: collapse; +} +.table-noheader thead { + display: none; +} .dropup, .dropdown { position: relative;