View file modules/album/templates/index.phtml

File size: 1.91Kb
<?php

/**
 * This file is part of JohnCMS Content Management System.
 *
 * @copyright JohnCMS Community
 * @license   https://opensource.org/licenses/GPL-3.0 GPL-3.0
 * @link      https://johncms.com JohnCMS Project
 */

/**
 * @var $title
 * @var $page_title
 * @var $data
 */

$this->layout(
    'system::layout/default',
    [
        'title'      => $title,
        'page_title' => $page_title,
    ]
);
?>

<div class="list-group with_counters">
    <div class="list-group-item">
        <a href="./top" class="link"><?= __('New Photos') ?></a>
        <span class="counter badge badge-light badge-pill"><?= $data['new'] ?></span>
    </div>
    <div class="list-group-item">
        <a href="./top?mod=last_comm" class="link"><?= __('New Comments') ?></a>
    </div>
</div>

<h3 class="mt-3"><?= __('Albums') ?></h3>

<div class="list-group with_counters">
    <div class="list-group-item">
        <a href="./users?mod=boys" class="link"><?= __('Guys') ?></a>
        <span class="counter badge badge-light badge-pill"><?= $data['men'] ?></span>
    </div>
    <div class="list-group-item">
        <a href="./users?mod=girls" class="link"><?= __('Girls') ?></a>
        <span class="counter badge badge-light badge-pill"><?= $data['women'] ?></span>
    </div>
    <?php if ($user->isValid()): ?>
        <div class="list-group-item">
            <a href="./list" class="link"><?= __('My Album') ?></a>
        </div>
    <?php endif; ?>
</div>

<h3 class="mt-3"><?= __('Rating') ?></h3>

<div class="list-group mb-3">
    <a href="./top?mod=votes" class="list-group-item"><?= __('Top Votes') ?></a>
    <a href="./top?mod=downloads" class="list-group-item"><?= __('Top Downloads') ?></a>
    <a href="./top?mod=views" class="list-group-item"><?= __('Top Views') ?></a>
    <a href="./top?mod=comments" class="list-group-item"><?= __('Top Comments') ?></a>
    <a href="./top?mod=trash" class="list-group-item"><?= __('Top Worst') ?></a>
</div>