Browse Source

Fix post preview when insert image

pull/298/head
noxymon 8 years ago
parent
commit
aa05f86593
10 changed files with 17 additions and 12 deletions
  1. +0
    -0
      .gitignore
  2. +0
    -0
      cache/installedVersion.json
  3. +9
    -6
      system/admin/views/add-page.html.php
  4. +1
    -1
      system/admin/views/categories.html.php
  5. +0
    -3
      system/htmly.php
  6. +6
    -1
      system/resources/css/dashboard.css
  7. +0
    -0
      system/resources/css/select2.min.css
  8. +0
    -0
      system/resources/images/logo-small-white.png
  9. +0
    -0
      system/resources/js/select2.full.min.js
  10. +1
    -1
      themes/bootstrap

+ 0
- 0
.gitignore View File


+ 0
- 0
cache/installedVersion.json View File


+ 9
- 6
system/admin/views/add-page.html.php View File

@ -16,18 +16,21 @@
<form method="POST">
Title <span class="required">*</span>
<br>
<input type="text" class="text <?php if (isset($postTitle)) {if (empty($postTitle)) {echo 'error';}} ?>" name="title" value="<?php if (isset($postTitle)) {echo $postTitle;} ?>"/>
<br><br>
Url (optional)<br><input type="text" class="text" name="url" value="<?php if (isset($postUrl)) {echo $postUrl;} ?>"/>
<input type="text" class="text form-control <?php if (isset($postTitle)) {if (empty($postTitle)) {echo 'error';}} ?>" name="title" value="<?php if (isset($postTitle)) {echo $postTitle;} ?>"/>
<br>
Url (optional)
<br>
<span class="help">If the url leave empty we will use the page title.</span>
<span class="help">
<input type="text" class="text form-control" name="url" value="<?php if (isset($postUrl)) {echo $postUrl;} ?>"/>
If the url leave empty we will use the page title.
</span>
<br><br>
Meta Description (optional)
<br>
<textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {echo $p->description;} ?></textarea>
<textarea style="form-control" name="description" rows="3" cols="20"><?php if (isset($p->description)) {echo $p->description;} ?></textarea>
<br><br>
<div id="wmd-button-bar" class="wmd-button-bar"></div>
<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 form-control<?php if (isset($postContent)) {if (empty($postContent)) {echo 'error';}} ?>" name="content" cols="20" rows="10"><?php if (isset($postContent)) {echo $postContent;} ?></textarea>
<br/>
<input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>">
<?php if ($type == 'is_page') :?>


+ 1
- 1
system/admin/views/categories.html.php View File

@ -31,4 +31,4 @@
<?php endforeach;?>
</tbody>
</table>
</div>
</div>

+ 0
- 3
system/htmly.php View File

@ -758,11 +758,8 @@ post('/add/page', function () {
// Show the add category
get('/add/category', function () {
if (login()) {
config('views.root', 'system/admin/views');
render('add-page', array(
'title' => 'Add page - ' . blog_title(),
'description' => strip_tags(blog_description()),


+ 6
- 1
system/resources/css/dashboard.css View File

@ -7,7 +7,6 @@ body {
padding-top: 50px;
}
/*
* Global add-ons
*/
@ -103,3 +102,9 @@ body {
display: inline-block;
border-radius: 50%;
}
/*Admin Part Addition*/
.wmd-preview img {
max-width: 100%;
}

+ 0
- 0
system/resources/css/select2.min.css View File


+ 0
- 0
system/resources/images/logo-small-white.png View File

Before After
Width: 323  |  Height: 320  |  Size: 7.4 KiB Width: 323  |  Height: 320  |  Size: 7.4 KiB

+ 0
- 0
system/resources/js/select2.full.min.js View File


+ 1
- 1
themes/bootstrap

@ -1 +1 @@
Subproject commit c11343263e8fea04c3e72accd1a0f17024fa2065
Subproject commit 8cd40967b8e2b61e44db4c73f665dc6be5d5bf42

Loading…
Cancel
Save