28 lines
No EOL
1.4 KiB
PHP
28 lines
No EOL
1.4 KiB
PHP
<?php $url = app('Flarum\Http\UrlGenerator'); ?>
|
|
|
|
<div class="container">
|
|
<h1><?php echo e($tag->name); ?></h1>
|
|
<p><?php echo e($tag->description); ?></p>
|
|
|
|
<ul>
|
|
<?php $__currentLoopData = $apiDocument->data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $discussion): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<li>
|
|
<a href="<?php echo e($url->to('forum')->route('discussion', [
|
|
'id' => $discussion->attributes->slug
|
|
])); ?>">
|
|
<?php echo e($discussion->attributes->title); ?>
|
|
|
|
</a>
|
|
</li>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
</ul>
|
|
|
|
<?php if(isset($apiDocument->links->prev)): ?>
|
|
<a href="<?php echo e($url->to('forum')->route('tag', ['slug' => $tag->slug])); ?>?page=<?php echo e($page - 1); ?>">« <?php echo e($translator->trans('core.views.index.previous_page_button')); ?></a>
|
|
<?php endif; ?>
|
|
|
|
<?php if(isset($apiDocument->links->next)): ?>
|
|
<a href="<?php echo e($url->to('forum')->route('tag', ['slug' => $tag->slug])); ?>?page=<?php echo e($page + 1); ?>"><?php echo e($translator->trans('core.views.index.next_page_button')); ?> »</a>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php /**PATH /var/www/html/flarum/vendor/flarum/tags/views/frontend/content/tag.blade.php ENDPATH**/ ?>
|