From aa05f865931c6e8b7979233db11d78c065038192 Mon Sep 17 00:00:00 2001 From: noxymon Date: Tue, 24 Jan 2017 21:15:24 +0700 Subject: [PATCH] Fix post preview when insert image --- .gitignore | 0 cache/installedVersion.json | 0 system/admin/views/add-page.html.php | 15 +++++++++------ system/admin/views/categories.html.php | 2 +- system/htmly.php | 3 --- system/resources/css/dashboard.css | 7 ++++++- system/resources/css/select2.min.css | 0 system/resources/images/logo-small-white.png | Bin system/resources/js/select2.full.min.js | 0 themes/bootstrap | 2 +- 10 files changed, 17 insertions(+), 12 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 cache/installedVersion.json mode change 100644 => 100755 system/resources/css/select2.min.css mode change 100644 => 100755 system/resources/images/logo-small-white.png mode change 100644 => 100755 system/resources/js/select2.full.min.js diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/cache/installedVersion.json b/cache/installedVersion.json old mode 100644 new mode 100755 diff --git a/system/admin/views/add-page.html.php b/system/admin/views/add-page.html.php index f0be3d3..971753f 100755 --- a/system/admin/views/add-page.html.php +++ b/system/admin/views/add-page.html.php @@ -16,18 +16,21 @@
Title *
- -

- Url (optional)
+ +
+ Url (optional)
- If the url leave empty we will use the page title. + + + If the url leave empty we will use the page title. +

Meta Description (optional)
- +

- +
diff --git a/system/admin/views/categories.html.php b/system/admin/views/categories.html.php index 3706428..552865a 100755 --- a/system/admin/views/categories.html.php +++ b/system/admin/views/categories.html.php @@ -31,4 +31,4 @@ - + \ No newline at end of file diff --git a/system/htmly.php b/system/htmly.php index 27bee3d..9cd64e1 100755 --- a/system/htmly.php +++ b/system/htmly.php @@ -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()), diff --git a/system/resources/css/dashboard.css b/system/resources/css/dashboard.css index e0e3632..8b92ab1 100755 --- a/system/resources/css/dashboard.css +++ b/system/resources/css/dashboard.css @@ -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%; +} diff --git a/system/resources/css/select2.min.css b/system/resources/css/select2.min.css old mode 100644 new mode 100755 diff --git a/system/resources/images/logo-small-white.png b/system/resources/images/logo-small-white.png old mode 100644 new mode 100755 diff --git a/system/resources/js/select2.full.min.js b/system/resources/js/select2.full.min.js old mode 100644 new mode 100755 diff --git a/themes/bootstrap b/themes/bootstrap index c113432..8cd4096 160000 --- a/themes/bootstrap +++ b/themes/bootstrap @@ -1 +1 @@ -Subproject commit c11343263e8fea04c3e72accd1a0f17024fa2065 +Subproject commit 8cd40967b8e2b61e44db4c73f665dc6be5d5bf42