This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/views/post/popular_by_week.php

14 lines
1.2 KiB
PHP
Raw Normal View History

2013-10-27 01:06:58 +02:00
<div id="post-popular">
<h3><?= $this->linkTo('«', ['post#popular_by_week', 'year' => date('Y', strtotime('-1 week', $this->start)), 'month' => date('m', strtotime('-1 week', $this->start)), 'day' => date('d', strtotime('-1 week', $this->start))]) ?> <?= date("F d, Y", $this->start) ?> - <?= date("F d, Y", $this->end) ?> <?= $this->linkToIf($this->start <= time(), '»', ['post#popular_by_week', 'year' => date('Y', strtotime('+1 week', $this->start)), 'month' => date('m', strtotime('+1 week', $this->start)), 'day' => date('d', strtotime('+1 week', $this->start))]) ?></h3>
<?= $this->partial('posts', ['posts' => $this->posts]) ?>
</div>
<?= $this->contentFor('subnavbar', function() { ?>
<li><?= $this->linkTo("Popular", ['post#popular_by_day', 'month' => date('m', $this->start), 'day' => date('d', $this->start), 'year' => date('Y', $this->start)]) ?></li>
<li><?= $this->linkTo("Popular (by week)", ['post#popular_by_week', 'year' => date('Y', $this->start), 'month' => date('m', $this->start), 'day' => date('d', $this->start)]) ?></li>
<li><?= $this->linkTo("Popular (by month)", ['post#popular_by_month', 'year' => date('Y', $this->start), 'month' => date('m', $this->start)]) ?></li>
<?php }) ?>
<?= $this->partial('footer') ?>