castopod/themes/cp_app/podcast/_partials/post_with_replies.php

28 lines
847 B
PHP

<?= $this->include('podcast/_partials/post') ?>
<div class="-mt-2 overflow-hidden border-b border-l border-r post-replies rounded-b-xl">
<div class="px-6 pt-8 pb-4 bg-gray-50">
<?= anchor_popup(
route_to('post-remote-action', $podcast->handle, $post->id, 'reply'),
lang('Post.reply_to', [
'actorUsername' => $post->actor->username,
]),
[
'class' =>
'text-center justify-center font-semibold rounded-full shadow relative z-10 px-4 py-2 w-full bg-rose-600 text-white inline-flex items-center hover:bg-rose-700',
'width' => 420,
'height' => 620,
],
) ?>
</div>
<?php if ($post->has_replies): ?>
<?php foreach ($post->replies as $reply): ?>
<?= view('podcast/_partials/reply', [
'reply' => $reply,
]) ?>
<?php endforeach; ?>
<?php endif; ?>
</div>