Skip to content
This repository was archived by the owner on Jun 26, 2024. It is now read-only.

Commit 6894789

Browse files
committed
Implementing basic HTML5 semantic markup
1 parent 95e663d commit 6894789

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

components/com_content/views/featured/tmpl/default.php

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,37 @@
1616
// If the page class is defined, add to class as suffix.
1717
// It will be a separate class if the user starts it with a space
1818
?>
19-
<div class="blog-featured<?php echo $this->pageclass_sfx;?>">
19+
<section class="blog-featured<?php echo $this->pageclass_sfx;?>">
2020
<?php if ($this->params->get('show_page_heading') != 0) : ?>
21-
<div class="page-header">
22-
<h1>
23-
<?php echo $this->escape($this->params->get('page_heading')); ?>
24-
</h1>
25-
</div>
21+
22+
<h1 class="page-header">
23+
<?php echo $this->escape($this->params->get('page_heading')); ?>
24+
</h1>
25+
2626
<?php endif; ?>
2727

2828
<?php $leadingcount = 0; ?>
2929
<?php if (!empty($this->lead_items)) : ?>
30-
<div class="items-leading">
30+
<section class="items-leading clearfix">
3131
<?php foreach ($this->lead_items as &$item) : ?>
32-
<div class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>">
32+
<article class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>">
3333
<?php
3434
$this->item = &$item;
3535
echo $this->loadTemplate('item');
3636
?>
37-
</div>
38-
<div class="clearfix"></div>
39-
<hr class="divider-vertical" />
37+
</article>
4038
<?php
4139
$leadingcount++;
4240
?>
4341
<?php endforeach; ?>
44-
</div>
45-
<div class="clearfix"></div>
42+
</section>
4643
<?php endif; ?>
4744
<?php
4845
$introcount = (count($this->intro_items));
4946
$counter = 0;
5047
?>
5148
<?php if (!empty($this->intro_items)) : ?>
49+
<section class="items-intro">
5250
<?php foreach ($this->intro_items as $key => &$item) : ?>
5351

5452
<?php
@@ -60,40 +58,39 @@
6058

6159
<div class="items-row cols-<?php echo (int) $this->columns;?> <?php echo 'row-'.$row; ?> row-fluid">
6260
<?php endif; ?>
63-
<div class="item column-<?php echo $rowcount;?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?> span<?php echo round((12 / $this->columns));?>">
61+
<article class="item column-<?php echo $rowcount;?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?> span<?php echo round((12 / $this->columns));?>">
6462
<?php
6563
$this->item = &$item;
6664
echo $this->loadTemplate('item');
6765
?>
68-
</div>
66+
</article>
6967
<?php $counter++; ?>
7068

7169
<?php if (($rowcount == $this->columns) or ($counter == $introcount)): ?>
7270

7371
</div>
74-
<hr class="divider-vertical" />
7572
<?php endif; ?>
7673

7774
<?php endforeach; ?>
75+
</section>
7876
<?php endif; ?>
7977

8078
<?php if (!empty($this->link_items)) : ?>
8179
<div class="items-more">
8280
<?php echo $this->loadTemplate('links'); ?>
8381
</div>
84-
<hr class="divider-vertical" />
8582
<?php endif; ?>
8683

8784
<?php if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->pagesTotal > 1)) : ?>
88-
<div class="pagination">
85+
<nav class="pagination">
8986

9087
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
9188
<p class="counter pull-right">
9289
<?php echo $this->pagination->getPagesCounter(); ?>
9390
</p>
9491
<?php endif; ?>
9592
<?php echo $this->pagination->getPagesLinks(); ?>
96-
</div>
93+
</nav>
9794
<?php endif; ?>
9895

99-
</div>
96+
</section>

0 commit comments

Comments
 (0)