2021-03-13 06:54:03 +01:00
|
|
|
|
<?php include TEMPLATE_DIR . '/header.php'; ?>
|
2021-04-11 17:40:39 +02:00
|
|
|
|
<div class="w-100">
|
2021-04-04 16:51:12 +02:00
|
|
|
|
<div class="left-ots">
|
2021-03-13 06:54:03 +01:00
|
|
|
|
|
2021-04-04 16:51:12 +02:00
|
|
|
|
<h1><?php echo $data['h1']; ?></h1>
|
2021-03-13 06:54:03 +01:00
|
|
|
|
|
|
|
|
|
<div class="box create">
|
|
|
|
|
<form action="/post/create" method="post">
|
|
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
<div class="boxline">
|
|
|
|
|
<label for="post_title">Заголовок</label>
|
2021-04-01 06:59:56 +02:00
|
|
|
|
<input id="title" class="add" type="text" name="post_title" /><br />
|
|
|
|
|
</div>
|
|
|
|
|
<?php if($uid['trust_level'] == 5) { ?>
|
|
|
|
|
<div class="boxline">
|
|
|
|
|
<label for="post_title">URL</label>
|
2021-04-06 14:19:33 +02:00
|
|
|
|
<input id="link" class="add-url" type="url" name="post_url" />
|
|
|
|
|
<input id="graburl" type="submit_url" name="submit_url" value="Извлечь" />
|
2021-04-01 06:59:56 +02:00
|
|
|
|
<br>
|
2021-04-03 23:13:52 +02:00
|
|
|
|
</div> <?php } ?>
|
|
|
|
|
<div class="boxline">
|
|
|
|
|
<label for="post_title">Превью</label>
|
|
|
|
|
<script src="/assets/js/editor.js"></script>
|
|
|
|
|
<textarea class="content_preview" name="content_preview" placeholder=""></textarea>
|
|
|
|
|
<br />
|
|
|
|
|
<label for="post_title"></label>
|
|
|
|
|
<div class="box_h">Около 160 символов</div>
|
2021-04-01 06:59:56 +02:00
|
|
|
|
</div>
|
2021-04-03 23:13:52 +02:00
|
|
|
|
|
2021-04-03 07:00:36 +02:00
|
|
|
|
<div class="qa-mod qa-editor-box">
|
|
|
|
|
<div class="mod-head">
|
|
|
|
|
<div class="wmd-panel">
|
|
|
|
|
<div id="questionText" class="editor liveMode">
|
|
|
|
|
<div class="editor-toolbar">
|
|
|
|
|
<div class="editor-mode"></div>
|
|
|
|
|
<div id="wmd-button-bar"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="wmd">
|
|
|
|
|
<textarea id="wmd-input" name="post_content" placeholder=""></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editor-preview"><div class="fmt" id="wmd-preview"></div></div>
|
|
|
|
|
</div>
|
|
|
|
|
<link rel="stylesheet" href="/assets/js/editor/editor.css">
|
|
|
|
|
<script src="/assets/js/editor/marked.js"></script>
|
|
|
|
|
<script src="/assets/js/editor/markdown.editor.js"></script>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-04-03 23:13:52 +02:00
|
|
|
|
|
2021-03-13 06:54:03 +01:00
|
|
|
|
<div class="boxline">
|
2021-04-06 23:27:57 +02:00
|
|
|
|
<label for="post_content">Пространствa</label>
|
|
|
|
|
<?php foreach ($space as $sp) { ?>
|
|
|
|
|
<input type="radio" name="space_id" value="<?= $sp['space_id']; ?>"><?= $sp['space_name']; ?>
|
|
|
|
|
<?php } ?>
|
2021-03-13 06:54:03 +01:00
|
|
|
|
</div>
|
|
|
|
|
<input type="submit" name="submit" value="Написать" />
|
|
|
|
|
</form>
|
2021-04-03 23:13:52 +02:00
|
|
|
|
<br>
|
|
|
|
|
<details>
|
|
|
|
|
<summary>Доступно форматирование Markdown</summary>
|
|
|
|
|
<p>
|
|
|
|
|
<table>
|
|
|
|
|
<tbody><tr>
|
|
|
|
|
<td width="125"><em>курсив</em></td>
|
|
|
|
|
<td>окружить текст <tt>*звездочками*</tt></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><strong>жирный</strong></td>
|
|
|
|
|
<td>окружить текст <tt>**двумя звездочками**</tt></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><strike>зачеркнутый</strike></td>
|
|
|
|
|
<td>окружить текст <tt>~~двумя тильдами~~</tt></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><tt>од (строка)</tt></td>
|
|
|
|
|
<td>окружить текст <tt>`обратными ковычками`</tt></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2021-04-06 14:19:33 +02:00
|
|
|
|
<td><a href="http://example.com/">связаный текст</a></td>
|
2021-04-03 23:13:52 +02:00
|
|
|
|
<td><tt>[связанный текст](http://example.com/)</tt> или просто URL-адрес для создания без заголовка</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><blockquote> цитата</blockquote></td>
|
|
|
|
|
<td><tt>></tt> текс цитаты </td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody></table>
|
|
|
|
|
</p>
|
|
|
|
|
</details>
|
|
|
|
|
<br>
|
2021-03-13 06:54:03 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
2021-04-04 16:51:12 +02:00
|
|
|
|
</main>
|
2021-03-13 06:54:03 +01:00
|
|
|
|
<?php include TEMPLATE_DIR . '/footer.php'; ?>
|