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