1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/3.0/modules/allcomments/views/allcomments.html.php
2012-12-15 22:10:35 +02:00

39 lines
1.2 KiB
PHP

<?php defined("SYSPATH") or die("No direct script access."); ?>
<h1>All Comments</h1>
<div id="allcomments">
<ul>
<? foreach ($comments as $comment): ?>
<div class="allcomments-comment">
<li id="g-comment-<?= $comment->id ?>">
<p class="allcomments-author">
<a href="<?= $comment->item()->url() ?>">
<?= t("on %date",
array("date" => gallery::date_time($comment->created),
"title" => $comment->item()->title)); ?></a><br />
<a href="<?= $comment->item()->url() ?>">
<?= $comment->item()->thumb_img(array(), 128) ?></a>
<a href="<?= $comment->author_url() ?>">
<?= nl2br(html::purify($comment->author_name())) ?></a>:
<?= nl2br(html::purify($comment->text)) ?>
</p>
</li>
</div>
<? endforeach ?>
</ul>
<?php
if($page > 0)
{
?>
<a class="g-button ui-icon-right ui-state-default ui-corner-all" href="<?=url::base()?>allcomments/page/<?=$page-1?>">
<span class="ui-icon ui-icon-seek-prev"></span>
prev
</a>
<?}?>
<a class="g-button ui-icon-right ui-state-default ui-corner-all" href="<?=url::base()?>allcomments/page/<?=$page+1?>">
<span class="ui-icon ui-icon-seek-next"></span>
next
</a>
</div>