|
|
@ -18,6 +18,7 @@ |
|
|
<br /> |
|
|
<br /> |
|
|
<input type="text" class="text <?php if (isset($postTitle)) {if (empty($postTitle)) {echo 'error';}} ?>" id="pTitle" name="title" value="<?php if (isset($postTitle)) {echo $postTitle;} ?>"/> |
|
|
<input type="text" class="text <?php if (isset($postTitle)) {if (empty($postTitle)) {echo 'error';}} ?>" id="pTitle" name="title" value="<?php if (isset($postTitle)) {echo $postTitle;} ?>"/> |
|
|
<br /><br /> |
|
|
<br /><br /> |
|
|
|
|
|
<?php if ($type == 'is_page') :?>
|
|
|
<label for="pURL">Url (optional)</label> |
|
|
<label for="pURL">Url (optional)</label> |
|
|
<br /> |
|
|
<br /> |
|
|
<input type="text" class="text" id="pURL" name="url" value="<?php if (isset($postUrl)) {echo $postUrl;} ?>"/> |
|
|
<input type="text" class="text" id="pURL" name="url" value="<?php if (isset($postUrl)) {echo $postUrl;} ?>"/> |
|
|
@ -28,8 +29,11 @@ |
|
|
<br /> |
|
|
<br /> |
|
|
<textarea id="pMeta" name="description" rows="3" cols="20"><?php if (isset($p->description)) {echo $p->description;} ?></textarea>
|
|
|
<textarea id="pMeta" name="description" rows="3" cols="20"><?php if (isset($p->description)) {echo $p->description;} ?></textarea>
|
|
|
<br /><br /> |
|
|
<br /><br /> |
|
|
|
|
|
<?php endif;?>
|
|
|
<label for="wmd-input">Content</label> |
|
|
<label for="wmd-input">Content</label> |
|
|
|
|
|
<?php if ($type == 'is_page') :?>
|
|
|
<div id="wmd-button-bar" class="wmd-button-bar"></div> |
|
|
<div id="wmd-button-bar" class="wmd-button-bar"></div> |
|
|
|
|
|
<?php endif;?>
|
|
|
<textarea id="wmd-input" class="wmd-input <?php if (isset($postContent)) {if (empty($postContent)) {echo 'error';}} ?>" name="content" cols="20" rows="10"><?php if (isset($postContent)) {echo $postContent;} ?></textarea>
|
|
|
<textarea id="wmd-input" class="wmd-input <?php if (isset($postContent)) {if (empty($postContent)) {echo 'error';}} ?>" name="content" cols="20" rows="10"><?php if (isset($postContent)) {echo $postContent;} ?></textarea>
|
|
|
<br /> |
|
|
<br /> |
|
|
<input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>"> |
|
|
<input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>"> |
|
|
|