Browse Source

Improvements

pull/189/head
Danang Probo Sayekti 10 years ago
parent
commit
c4f424ad4f
17 changed files with 33 additions and 28 deletions
  1. +2
    -2
      system/admin/views/add-audio.html.php
  2. +2
    -2
      system/admin/views/add-image.html.php
  3. +2
    -2
      system/admin/views/add-link.html.php
  4. +1
    -1
      system/admin/views/add-page.html.php
  5. +1
    -1
      system/admin/views/add-post.html.php
  6. +2
    -2
      system/admin/views/add-quote.html.php
  7. +2
    -2
      system/admin/views/add-video.html.php
  8. +5
    -0
      system/admin/views/config.html.php
  9. +2
    -2
      system/admin/views/edit-audio.html.php
  10. +2
    -2
      system/admin/views/edit-image.html.php
  11. +2
    -2
      system/admin/views/edit-link.html.php
  12. +1
    -1
      system/admin/views/edit-page.html.php
  13. +1
    -1
      system/admin/views/edit-post.html.php
  14. +2
    -2
      system/admin/views/edit-quote.html.php
  15. +2
    -2
      system/admin/views/edit-video.html.php
  16. +2
    -2
      system/admin/views/update.html.php
  17. +2
    -2
      system/htmly.php

+ 2
- 2
system/admin/views/add-audio.html.php View File

@ -29,11 +29,11 @@
echo $postUrl;
} ?>"/><br>
<span class="help">If the url leave empty we will use the post title.</span><br><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} ?></textarea>
<br><br>
Featured Audio <span class="required">*</span> (SoundCloud Only)<br><textarea maxlength="200" class="text <?php if (isset($postAudio)) {
Featured Audio <span class="required">*</span> (SoundCloud Only)<br><textarea rows="3" cols="20" class="text <?php if (isset($postAudio)) {
if (empty($postAudio)) {
echo 'error';
}


+ 2
- 2
system/admin/views/add-image.html.php View File

@ -29,11 +29,11 @@
echo $postUrl;
} ?>"/><br>
<span class="help">If the url leave empty we will use the post title.</span><br><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} ?></textarea>
<br><br>
Featured Image <span class="required">*</span> <br><textarea maxlength="200" class="text <?php if (isset($postImage)) {
Featured Image <span class="required">*</span> <br><textarea rows="3" cols="20" class="text <?php if (isset($postImage)) {
if (empty($postImage)) {
echo 'error';
}


+ 2
- 2
system/admin/views/add-link.html.php View File

@ -29,11 +29,11 @@
echo $postUrl;
} ?>"/><br>
<span class="help">If the url leave empty we will use the post title.</span><br><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} ?></textarea>
<br><br>
Featured Link <span class="required">*</span> <br><textarea maxlength="200" class="text <?php if (isset($postLink)) {
Featured Link <span class="required">*</span> <br><textarea rows="3" cols="20" class="text <?php if (isset($postLink)) {
if (empty($postLink)) {
echo 'error';
}


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

@ -22,7 +22,7 @@
echo $postUrl;
} ?>"/><br>
<span class="help">If the url leave empty we will use the page title.</span><br><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} ?></textarea>
<br><br>


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

@ -29,7 +29,7 @@
echo $postUrl;
} ?>"/><br>
<span class="help">If the url leave empty we will use the post title.</span><br><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} ?></textarea>
<br><br>


+ 2
- 2
system/admin/views/add-quote.html.php View File

@ -29,11 +29,11 @@
echo $postUrl;
} ?>"/><br>
<span class="help">If the url leave empty we will use the post title.</span><br><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} ?></textarea>
<br><br>
Featured Quote <span class="required">*</span> <br><textarea maxlength="200" class="text <?php if (isset($postQuote)) {
Featured Quote <span class="required">*</span> <br><textarea rows="3" cols="20" class="text <?php if (isset($postQuote)) {
if (empty($postQuote)) {
echo 'error';
}


+ 2
- 2
system/admin/views/add-video.html.php View File

@ -29,11 +29,11 @@
echo $postUrl;
} ?>"/><br>
<span class="help">If the url leave empty we will use the post title.</span><br><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} ?></textarea>
<br><br>
Featured Video <span class="required">*</span> (YouTube Only)<br><textarea maxlength="200" class="text <?php if (isset($postVideo)) {
Featured Video <span class="required">*</span> (YouTube Only)<br><textarea rows="3" cols="20" class="text <?php if (isset($postVideo)) {
if (empty($postVideo)) {
echo 'error';
}


+ 5
- 0
system/admin/views/config.html.php View File

@ -2,6 +2,11 @@
<p>
<u>hint:</u> Use <code>Ctrl</code>/<code>CMD⌘</code> + <code>F</code> to search for your config key or value.
</p>
<p>
<u>pro tips:</u> You can creating custom config key and print out your config key value anywhere in your template.
</p>
<pre><code>&lt;?php echo config('your.key'); ?&gt;</code></pre>
<hr style="margin:30px 0;border:1px solid #e3e3e3;">
<form method="POST">
<input type="hidden" name="csrf_token" value="<?php echo get_csrf(); ?>">
<input type="submit">


+ 2
- 2
system/admin/views/edit-audio.html.php View File

@ -71,11 +71,11 @@ if (config('permalink.type') == 'post') {
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
Hour, Minute, Second<br><input
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} else {echo $olddescription;}?></textarea>
<br><br>
Featured Audio <span class="required">*</span> (SoundCloud Only)<br><textarea maxlength="200" class="text <?php if (isset($postAudio)) {
Featured Audio <span class="required">*</span> (SoundCloud Only)<br><textarea rows="3" cols="20" class="text <?php if (isset($postAudio)) {
if (empty($postAudio)) {
echo 'error';
}


+ 2
- 2
system/admin/views/edit-image.html.php View File

@ -71,11 +71,11 @@ if (config('permalink.type') == 'post') {
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
Hour, Minute, Second<br><input
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} else {echo $olddescription;}?></textarea>
<br><br>
Featured Image <span class="required">*</span> <br><textarea maxlength="200" class="text <?php if (isset($postImage)) {
Featured Image <span class="required">*</span> <br><textarea rows="3" cols="20" class="text <?php if (isset($postImage)) {
if (empty($postImage)) {
echo 'error';
}


+ 2
- 2
system/admin/views/edit-link.html.php View File

@ -72,11 +72,11 @@ if (config('permalink.type') == 'post') {
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
Hour, Minute, Second<br><input
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} else {echo $olddescription;}?></textarea>
<br><br>
Featured Link <span class="required">*</span> <br><textarea maxlength="200" class="text <?php if (isset($postLink)) {
Featured Link <span class="required">*</span> <br><textarea rows="3" cols="20" class="text <?php if (isset($postLink)) {
if (empty($postLink)) {
echo 'error';
}


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

@ -53,7 +53,7 @@ else {
} ?>" value="<?php echo $oldtitle ?>"/><br><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>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} else {echo $olddescription;}?></textarea>
<br><br>


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

@ -71,7 +71,7 @@ if (config('permalink.type') == 'post') {
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
Hour, Minute, Second<br><input
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} else { echo $olddescription;} ?></textarea>
<br><br>


+ 2
- 2
system/admin/views/edit-quote.html.php View File

@ -72,11 +72,11 @@ if (config('permalink.type') == 'post') {
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
Hour, Minute, Second<br><input
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} else {echo $olddescription;}?></textarea>
<br><br>
Featured Quote <span class="required">*</span> <br><textarea maxlength="200" class="text <?php if (isset($postQuote)) {
Featured Quote <span class="required">*</span> <br><textarea rows="3" cols="20" class="text <?php if (isset($postQuote)) {
if (empty($postQuote)) {
echo 'error';
}


+ 2
- 2
system/admin/views/edit-video.html.php View File

@ -73,11 +73,11 @@ if (config('permalink.type') == 'post') {
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
Hour, Minute, Second<br><input
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
echo $p->description;
} else {echo $olddescription;}?></textarea>
<br><br>
Featured Video <span class="required">*</span> (YouTube Only)<br><textarea maxlength="200" class="text <?php if (isset($postVideo)) {
Featured Video <span class="required">*</span> (YouTube Only)<br><textarea rows="3" cols="20" class="text <?php if (isset($postVideo)) {
if (empty($postVideo)) {
echo 'error';
}


+ 2
- 2
system/admin/views/update.html.php View File

@ -15,7 +15,7 @@ if ($updater->able()) {
echo '<p>Release Title: <strong>'. $info['name'] .'</strong></p>';
echo '<p>Version: <strong>'. $info['tag_name'] .'</strong></p>';
echo '<h4>Release Notes</h4>';
echo '<div style="background-color:#f9f9f9;border:1px solid #ccc;border-radius:4px;color:#333;display:block;font-size:13px;line-height:1.42857;margin:20px 0;padding:0 1em;word-break:break-all;word-wrap:break-word;">';
echo '<div style="background-color:#f9f9f9;border:1px solid #ccc;border-radius:4px;color:#333;display:block;font-size:13px;margin:20px 0;padding:0 1em;">';
echo \Michelf\MarkdownExtra::defaultTransform($info['body']);
echo '</div>';
echo '<p><strong>Important:</strong> Please always backup your files before upgrading to newer version.</p>';
@ -26,7 +26,7 @@ if ($updater->able()) {
echo '<p>Release Title: <strong>'. $info['name'] .'</strong></p>';
echo '<p>Installed Version: <strong>'. $info['tag_name'] .'</strong></p>';
echo '<h4>Release Notes: </h4>';
echo '<div style="background-color:#f9f9f9;border:1px solid #ccc;border-radius:4px;color:#333;display:block;font-size:13px;line-height:1.42857;margin:20px 0;padding:0 1em;word-break:break-all;word-wrap:break-word;">';
echo '<div style="background-color:#f9f9f9;border:1px solid #ccc;border-radius:4px;color:#333;display:block;font-size:13px;margin:20px 0;padding:0 1em;">';
echo \Michelf\MarkdownExtra::defaultTransform($info['body']);
echo '</div>';
echo '<p>Read on <a target="_blank" href="' . $info['html_url'] . '">Github</a>.</p>';

+ 2
- 2
system/htmly.php View File

@ -1229,7 +1229,7 @@ get('/tag/:tag', function ($tag) {
render('main', array(
'title' => 'Posts tagged: ' . tag_i18n($tag) . ' - ' . blog_title(),
'description' => 'All posts tagged: ' . tag_i18n($tag) . ' on ' . blog_title() . '.',
'canonical' => site_url() . 'tag/' . $tag,
'canonical' => site_url() . 'tag/' . strtolower($tag),
'page' => $page,
'posts' => $posts,
'bodyclass' => 'intag',
@ -1312,7 +1312,7 @@ get('/search/:keyword', function ($keyword) {
render('main', array(
'title' => 'Search results for: ' . tag_i18n($keyword) . ' - ' . blog_title(),
'description' => 'Search results for: ' . tag_i18n($keyword) . ' on ' . blog_title() . '.',
'canonical' => site_url() . 'search/' . $keyword,
'canonical' => site_url() . 'search/' . strtolower($keyword),
'page' => $page,
'posts' => $posts,
'bodyclass' => 'insearch',


Loading…
Cancel
Save