Browse Source

Merge pull request #90 from Kanti/master

Little Improvement by @Kanti.
pull/93/merge
Danang Probo Sayekti 11 years ago
parent
commit
c3460f239e
6 changed files with 10 additions and 4 deletions
  1. +1
    -1
      system/admin/views/add-page.html.php
  2. +1
    -1
      system/admin/views/add-post.html.php
  3. +1
    -1
      system/admin/views/edit-page.html.php
  4. +1
    -1
      system/admin/views/edit-post.html.php
  5. +2
    -0
      system/includes/functions.php
  6. +4
    -0
      themes/default/css/style.css

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

@ -10,7 +10,7 @@
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> 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;} ?>"/><br> Url (optional)<br><input type="text" class="text" name="url" value="<?php if (isset($postUrl)) { echo $postUrl;} ?>"/><br>
<span class="help">If the url leave empty we will use the page title.</span><br><br> <span class="help">If the url leave empty we will use the page title.</span><br><br>
Meta Description (optional)<br><input type="text" class="text" name="description" maxlength="2" value="<?php if (isset($postDescription)) { echo $postDescription;} ?>"/><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) { echo $p->description;} ?></textarea>
<br> <br>
<div id="wmd-button-bar" class="wmd-button-bar"></div> <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><br/> <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/>


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

@ -11,7 +11,7 @@
Tag <span class="required">*</span> <br><input type="text" class="text <?php if (isset($postTag)) { if (empty($postTag)) { echo 'error';}} ?>" name="tag" value="<?php if (isset($postTag)) { echo $postTag;} ?>"/><br><br> Tag <span class="required">*</span> <br><input type="text" class="text <?php if (isset($postTag)) { if (empty($postTag)) { echo 'error';}} ?>" name="tag" value="<?php if (isset($postTag)) { echo $postTag;} ?>"/><br><br>
Url (optional)<br><input type="text" class="text" name="url" value="<?php if (isset($postUrl)) { echo $postUrl;} ?>"/><br> Url (optional)<br><input type="text" class="text" name="url" value="<?php if (isset($postUrl)) { echo $postUrl;} ?>"/><br>
<span class="help">If the url leave empty we will use the post title.</span><br><br> <span class="help">If the url leave empty we will use the post title.</span><br><br>
Meta Description (optional)<br><input type="text" class="text" name="description" maxlength="2" value="<?php if (isset($postDescription)) { echo $postDescription;} ?>"/><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) { echo $p->description;} ?></textarea>
<br><br> <br><br>
<div id="wmd-button-bar" class="wmd-button-bar"></div> <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><br/> <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/>


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

@ -35,7 +35,7 @@
Title <span class="required">*</span><br><input type="text" name="title" class="text <?php if (isset($postTitle)) { if (empty($postTitle)) { echo 'error';}} ?>" value="<?php echo $oldtitle?>"/><br><br> Title <span class="required">*</span><br><input type="text" name="title" class="text <?php if (isset($postTitle)) { if (empty($postTitle)) { echo 'error';}} ?>" value="<?php echo $oldtitle?>"/><br><br>
Url (optional)<br><input type="text" name="url" class="text" value="<?php echo $oldmd ?>"/><br> Url (optional)<br><input type="text" name="url" class="text" value="<?php echo $oldmd ?>"/><br>
<span class="help">If the url leave empty we will use the page title.</span><br><br> <span class="help">If the url leave empty we will use the page title.</span><br><br>
Meta Description (optional)<br><input type="text" class="text" name="description" maxlength="2" value="<?php if (isset($p->description)) { echo $p->description;} ?>"/><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) { echo $p->description;} ?></textarea>
<br><br> <br><br>
<div id="wmd-button-bar" class="wmd-button-bar"></div> <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 echo $oldcontent ?></textarea><br> <textarea id="wmd-input" class="wmd-input <?php if (isset($postContent)) { if (empty($postContent)) { echo 'error';}} ?>" name="content" cols="20" rows="10"><?php echo $oldcontent ?></textarea><br>


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

@ -49,7 +49,7 @@
Tag <span class="required">*</span> <br><input type="text" name="tag" class="text <?php if (isset($postTag)) { if (empty($postTag)) { echo 'error';}} ?>" value="<?php echo $oldtag?>"/><br><br> Tag <span class="required">*</span> <br><input type="text" name="tag" class="text <?php if (isset($postTag)) { if (empty($postTag)) { echo 'error';}} ?>" value="<?php echo $oldtag?>"/><br><br>
Url (optional)<br><input type="text" name="url" class="text" value="<?php echo $oldmd ?>"/><br> Url (optional)<br><input type="text" name="url" class="text" value="<?php echo $oldmd ?>"/><br>
<span class="help">If the url leave empty we will use the post title.</span><br><br> <span class="help">If the url leave empty we will use the post title.</span><br><br>
Meta Description (optional)<br><input type="text" class="text" name="description" maxlength="2" value="<?php if (isset($p->description)) { echo $p->description;} ?>"/><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) { echo $p->description;} ?></textarea>
<br><br> <br><br>
<div id="wmd-button-bar" class="wmd-button-bar"></div> <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 echo $oldcontent ?></textarea><br> <textarea id="wmd-input" class="wmd-input <?php if (isset($postContent)) { if (empty($postContent)) { echo 'error';}} ?>" name="content" cols="20" rows="10"><?php echo $oldcontent ?></textarea><br>


+ 2
- 0
system/includes/functions.php View File

@ -1625,6 +1625,8 @@ EOF;
// File cache // File cache
function file_cache($request) { function file_cache($request) {
if(config('cache.off')) return;
$c = str_replace('/', '#', str_replace('?', '~', $request)); $c = str_replace('/', '#', str_replace('?', '~', $request));
$cachefile = 'cache/page/' . $c . '.cache'; $cachefile = 'cache/page/' . $c . '.cache';


+ 4
- 0
themes/default/css/style.css View File

@ -266,6 +266,10 @@ textarea {
line-height: 1.4; line-height: 1.4;
background-color: #F6F7F9; background-color: #F6F7F9;
border: 1px solid #CFDAE5; border: 1px solid #CFDAE5;
padding: 2%;
width: 96%;
min-height: 5em;
overflow: auto;
} }
textarea:hover { textarea:hover {


Loading…
Cancel
Save