Grouped views into file hierarchy
This commit is contained in:
parent
53f4d77ff3
commit
c15f59db39
27 changed files with 13 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
Assets::addStylesheet('comment-small.css');
|
||||
Assets::addStylesheet('comment-edit.css');
|
||||
Assets::addScript('comment-edit.js');
|
||||
Assets::addStylesheet('comment-small.css');
|
||||
Assets::addStylesheet('comment-edit.css');
|
||||
Assets::addScript('comment-edit.js');
|
||||
?>
|
||||
|
||||
<div class="comment">
|
|
@ -1,16 +1,14 @@
|
|||
<?php
|
||||
Assets::addStylesheet('post-list.css');
|
||||
Assets::addScript('post-list.js');
|
||||
?>
|
||||
|
||||
<?php if (isset($this->context->source)
|
||||
if (isset($this->context->source)
|
||||
and $this->context->source == 'mass-tag'
|
||||
and Access::check(new Privilege(Privilege::MassTag))): ?>
|
||||
|
||||
<?php \Chibi\View::render('tag-mass-tag', $this->context) ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
and Access::check(new Privilege(Privilege::MassTag)))
|
||||
{
|
||||
\Chibi\View::render('tag-mass-tag', $this->context);
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if (!empty($this->context->transport->message)): ?>
|
||||
<?php \Chibi\View::render('message', $this->context) ?>
|
|
@ -26,6 +26,7 @@ if ($masstag)
|
|||
?>
|
||||
|
||||
<div class="<?= implode(' ', $classNames) ?>">
|
||||
|
||||
<?php if ($masstag): ?>
|
||||
<a class="toggle-tag"
|
||||
href="<?= \Chibi\Router::linkTo(['PostController', 'toggleTagAction'], [
|
|
@ -378,9 +378,10 @@ $canEditAnything = count(array_filter($editPostPrivileges)) > 0;
|
|||
</div>
|
||||
|
||||
<?php
|
||||
Assets::addStylesheet('comment-list.css');
|
||||
Assets::addStylesheet('comment-small.css');
|
||||
Assets::addStylesheet('comment-list.css');
|
||||
Assets::addStylesheet('comment-small.css');
|
||||
?>
|
||||
|
||||
<div class="comments-wrapper">
|
||||
<?php if (!empty($this->context->transport->post->getComments())): ?>
|
||||
<div class="unit comments">
|
Loading…
Reference in a new issue