Added missing files
This commit is contained in:
parent
793d996166
commit
1b57b9b691
3 changed files with 23 additions and 0 deletions
6
src/Views/index-help.phtml
Normal file
6
src/Views/index-help.phtml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<p>Todo: help. Examples what should be written here:</p>
|
||||||
|
<ul>
|
||||||
|
<li>what does NSFW mean</li>
|
||||||
|
<li>search syntax</li>
|
||||||
|
<li>search syntax examples</li>
|
||||||
|
</ul>
|
12
src/Views/layout-file.phtml
Normal file
12
src/Views/layout-file.phtml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<?php
|
||||||
|
if (!empty($this->context->transport->errorMessage))
|
||||||
|
{
|
||||||
|
\Chibi\HeadersHelper::set('Content-Type', 'text/plain; charset=utf-8');
|
||||||
|
echo $this->context->transport->errorMessage;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
\Chibi\HeadersHelper::set('Content-Type', $this->context->transport->mimeType);
|
||||||
|
readfile($this->context->transport->filePath);
|
||||||
|
flush();
|
||||||
|
}
|
5
src/Views/post-view.phtml
Normal file
5
src/Views/post-view.phtml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?php if (!empty($this->context->transport->errorMessage)): ?>
|
||||||
|
<p class="alert alert-error"><?php echo $this->context->transport->errorMessage ?></p>
|
||||||
|
<?php else: ?>
|
||||||
|
<img src="<?php echo \Chibi\UrlHelper::route('post', 'send', ['name' => $this->context->transport->post->name]) ?>" alt="<?php echo $this->context->transport->post->name ?>"/>
|
||||||
|
<?php endif ?>
|
Loading…
Reference in a new issue