Browse Source

Update theme

pull/255/head
Danang Probo Sayekti 10 years ago
parent
commit
cc91b4478f
9 changed files with 18 additions and 14 deletions
  1. +3
    -2
      README.md
  2. +3
    -0
      humans.txt
  3. +6
    -6
      system/admin/admin.php
  4. +1
    -1
      themes/clean/main.html.php
  5. +1
    -1
      themes/clean/post.html.php
  6. +1
    -1
      themes/default/main.html.php
  7. +1
    -1
      themes/default/post.html.php
  8. +1
    -1
      themes/logs/main.html.php
  9. +1
    -1
      themes/logs/post.html.php

+ 3
- 2
README.md View File

@ -12,7 +12,7 @@ Features
--------- ---------
- Admin Panel - Admin Panel
- Markdown editor with live preview and image upload - Markdown editor with live preview and image upload
- Categorization with tags (multiple tagging support)
- Categorization with category and tags (multiple tagging support)
- Static Pages (e.g. Contact Page, About Page) - Static Pages (e.g. Contact Page, About Page)
- Meta canonical, description, and rich snippets for SEO - Meta canonical, description, and rich snippets for SEO
- Pagination - Pagination
@ -144,7 +144,7 @@ This will produce a hash which is to be placed in the `password` field in `usern
Both Online or Offline Both Online or Offline
---------------------- ----------------------
The built-in editor found in the admin panel, also provides you the ability to write to Markdown files offline by uploading them (see naming convention below) into the `content/username/blog` folder (the `username` must match `YourUsername.ini` above).
The built-in editor found in the admin panel, also provides you the ability to write to Markdown files offline by uploading them (see naming convention below) into the `content/username/blog/category/type/` folder (the `username` must match `YourUsername.ini` above).
For static pages you can upload it to the `content/static` folder. For static pages you can upload it to the `content/static` folder.
@ -218,6 +218,7 @@ Contributors
- [BlackCodec](https://github.com/BlackCodec) - [BlackCodec](https://github.com/BlackCodec)
- [mlncn](https://github.com/mlncn) - [mlncn](https://github.com/mlncn)
- [Tea23](https://github.com/Tea23) - [Tea23](https://github.com/Tea23)
- [greenphp](https://github.com/greenphp)
Copyright / License Copyright / License
------------------- -------------------


+ 3
- 0
humans.txt View File

@ -28,6 +28,9 @@ Location: Natick, Massachusetts, USA
Contributor: Tea23 Contributor: Tea23
Github: https://github.com/Tea23 Github: https://github.com/Tea23
Contributor: greenphp
Github: https://github.com/greenphp
/* THANKS */ /* THANKS */
Name: Martin Angelov (http://tutorialzine.com) Name: Martin Angelov (http://tutorialzine.com)
Name: Xiaoying Riley (http://themes.3rdwavemedia.com) Name: Xiaoying Riley (http://themes.3rdwavemedia.com)


+ 6
- 6
system/admin/admin.php View File

@ -575,7 +575,7 @@ function edit_link($title, $tag, $url, $content, $oldfile, $destination = null,
$tagmd = ""; $tagmd = "";
} }
if ($link !== null) { if ($link !== null) {
$post_link = "\n<!--link" . $post_link. " link-->";
$post_link = "\n<!--link " . $post_link. " link-->";
} else { } else {
$post_link = ""; $post_link = "";
} }
@ -730,7 +730,7 @@ function edit_quote($title, $tag, $url, $content, $oldfile, $destination = null,
$tagmd = ""; $tagmd = "";
} }
if ($quote !== null) { if ($quote !== null) {
$post_quote = "\n<!--quote" . $post_quote . " quote-->";
$post_quote = "\n<!--quote " . $post_quote . " quote-->";
} else { } else {
$post_quote = ""; $post_quote = "";
} }
@ -886,7 +886,7 @@ function edit_audio($title, $tag, $url, $content, $oldfile, $destination = null,
$tagmd = ""; $tagmd = "";
} }
if ($audio !== null) { if ($audio !== null) {
$post_audio = "\n<!--audio" . $post_audio . " audio-->";
$post_audio = "\n<!--audio " . $post_audio . " audio-->";
} else { } else {
$post_audio = ""; $post_audio = "";
} }
@ -1069,7 +1069,7 @@ function edit_category($title, $url, $content, $oldfile, $destination = null, $d
} }
$post_content = '<!--t ' . $post_title . ' t-->' . $post_description . "\n\n" . $content; $post_content = '<!--t ' . $post_title . ' t-->' . $post_description . "\n\n" . $content;
if (!empty($post_title) && !empty($post_url) && !empty($post_content)) { if (!empty($post_title) && !empty($post_url) && !empty($post_content)) {
if (get_magic_quotes_gpc()) { if (get_magic_quotes_gpc()) {
$post_content = stripslashes($post_content); $post_content = stripslashes($post_content);
} }
@ -1080,8 +1080,8 @@ function edit_category($title, $url, $content, $oldfile, $destination = null, $d
rename($oldfile, $newfile); rename($oldfile, $newfile);
file_put_contents($newfile, print_r($post_content, true)); file_put_contents($newfile, print_r($post_content, true));
} }
rename_category_folder($post_url, $oldfile);
rename_category_folder($post_url, $oldfile);
rebuilt_cache('all'); rebuilt_cache('all');
if ($destination == 'post') { if ($destination == 'post') {


+ 1
- 1
themes/clean/main.html.php View File

@ -16,7 +16,7 @@
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></h2> <h2 class="title-index" itemprop="name"><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></h2>
<div class="date"> <div class="date">
<span itemprop="datePublished"><?php echo date('d F Y', $p->date) ?></span> - Posted in <span itemprop="datePublished"><?php echo date('d F Y', $p->date) ?></span> - Posted in
<span itemprop="articleSection"><?php echo $p->tag ?></span> by
<span itemprop="articleSection"><?php echo $p->category ?></span> by
<span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span> <span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span>
<?php if (disqus_count()) { ?> - <?php if (disqus_count()) { ?> -
<span><a href="<?php echo $p->url ?>#disqus_thread">Comments</a></span> <span><a href="<?php echo $p->url ?>#disqus_thread">Comments</a></span>


+ 1
- 1
themes/clean/post.html.php View File

@ -9,7 +9,7 @@
<div class="date"> <div class="date">
<span itemprop="datePublished"><a href="<?php echo $p->archive ?>" title="Show all posts made on this month"><?php echo date('d F Y', $p->date) ?></a></span> <span itemprop="datePublished"><a href="<?php echo $p->archive ?>" title="Show all posts made on this month"><?php echo date('d F Y', $p->date) ?></a></span>
- Posted in - Posted in
<span itemprop="articleSection"><?php echo $p->tag ?></span> by
<span itemprop="articleSection"><?php echo $p->category ?></span> by
<span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span> - <span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span> -
<span><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span> <span><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span>
</div> </div>


+ 1
- 1
themes/default/main.html.php View File

@ -16,7 +16,7 @@
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></h2> <h2 class="title-index" itemprop="name"><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></h2>
<div class="date"> <div class="date">
<span itemprop="datePublished"><?php echo date('d F Y', $p->date) ?></span> - Posted in <span itemprop="datePublished"><?php echo date('d F Y', $p->date) ?></span> - Posted in
<span itemprop="articleSection"><?php echo $p->tag ?></span> by
<span itemprop="articleSection"><?php echo $p->category ?></span> by
<span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span> <span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span>
<?php if (disqus_count()) { ?> - <?php if (disqus_count()) { ?> -
<span><a href="<?php echo $p->url ?>#disqus_thread">Comments</a></span> <span><a href="<?php echo $p->url ?>#disqus_thread">Comments</a></span>


+ 1
- 1
themes/default/post.html.php View File

@ -9,7 +9,7 @@
<div class="date"> <div class="date">
<span itemprop="datePublished"><a href="<?php echo $p->archive ?>" title="Show all posts made on this month"><?php echo date('d F Y', $p->date) ?></a></span> <span itemprop="datePublished"><a href="<?php echo $p->archive ?>" title="Show all posts made on this month"><?php echo date('d F Y', $p->date) ?></a></span>
- Posted in - Posted in
<span itemprop="articleSection"><?php echo $p->tag ?></span> by
<span itemprop="articleSection"><?php echo $p->category ?></span> by
<span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span> - <span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span> -
<span><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span> <span><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span>
</div> </div>


+ 1
- 1
themes/logs/main.html.php View File

@ -16,7 +16,7 @@
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></h2> <h2 class="title-index" itemprop="name"><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></h2>
<div class="date"> <div class="date">
<span itemprop="datePublished"><?php echo date('d F Y', $p->date) ?></span> - Posted in <span itemprop="datePublished"><?php echo date('d F Y', $p->date) ?></span> - Posted in
<span itemprop="articleSection"><?php echo $p->tag ?></span> by
<span itemprop="articleSection"><?php echo $p->category ?></span> by
<span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span> <span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span>
<?php if (disqus_count()) { ?> - <?php if (disqus_count()) { ?> -
<span><a href="<?php echo $p->url ?>#disqus_thread">Comments</a></span> <span><a href="<?php echo $p->url ?>#disqus_thread">Comments</a></span>


+ 1
- 1
themes/logs/post.html.php View File

@ -9,7 +9,7 @@
<div class="date"> <div class="date">
<span itemprop="datePublished"><a href="<?php echo $p->archive ?>" title="Show all posts made on this month"><?php echo date('d F Y', $p->date) ?></a></span> <span itemprop="datePublished"><a href="<?php echo $p->archive ?>" title="Show all posts made on this month"><?php echo date('d F Y', $p->date) ?></a></span>
- Posted in - Posted in
<span itemprop="articleSection"><?php echo $p->tag ?></span> by
<span itemprop="articleSection"><?php echo $p->category ?></span> by
<span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span> - <span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span> -
<span><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span> <span><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span>
</div> </div>


Loading…
Cancel
Save