Sequenzia/app/views/comment/_comments.php
2013-10-26 18:06:58 -05:00

28 lines
1.3 KiB
PHP
Executable File

<div class="response-list">
<?php foreach ($this->comments as $c) : ?>
<?= $this->partial("comment/comment", array('comment' => $c)) ?>
<?php endforeach ?>
</div>
<div style="clear: both;">
<?php if ($this->hide) : ?>
<?= $this->contentTag("h6", $this->linkToFunction($this->t('.reply'), "Comment.show_reply_form(".$this->post_id.");"), array('id' => 'respond-link-'.$this->post_id)) ?>
<?php endif ?>
<div id="reply-<?= $this->post_id ?>" style="<?= $this->hide ? "display: none;" : null ?>">
<?= $this->formTag('comment#create', array('level' => 'member'), function() { ?>
<?= $this->hiddenFieldTag("comment[post_id]", $this->post_id, array('id' => 'comment_post_id_'.$this->post_id)) ?>
<?= $this->textArea("comment", "body", array('rows' => '7', 'id' => 'reply-text-'.$this->post_id, 'style' => 'width: 98%; margin-bottom: 2px;')) ?>
<?= $this->submitTag($this->t('.post')) ?>
<!-- <?= $this->submitTag($this->t('.bump')) ?> -->
<?php }) ?>
<!-- <p style="margin-top: 1em; font-style: italic;">[spoiler]Hide spoiler text like this[/spoiler] (<?= $this->linkTo($this->t('.more'), 'help#comments') ?>)</p> -->
</div>
</div>
<script type="text/javascript">
<?= $this->avatar_init() ?>
InlineImage.init();
</script>