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
- 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)
- Meta canonical, description, and rich snippets for SEO
- 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
----------------------
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.
@ -218,6 +218,7 @@ Contributors
- [BlackCodec](https://github.com/BlackCodec)
- [mlncn](https://github.com/mlncn)
- [Tea23](https://github.com/Tea23)
- [greenphp](https://github.com/greenphp)
Copyright / License
-------------------


+ 3
- 0
humans.txt View File

@ -28,6 +28,9 @@ Location: Natick, Massachusetts, USA
Contributor: Tea23
Github: https://github.com/Tea23
Contributor: greenphp
Github: https://github.com/greenphp
/* THANKS */
Name: Martin Angelov (http://tutorialzine.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 = "";
}
if ($link !== null) {
$post_link = "\n<!--link" . $post_link. " link-->";
$post_link = "\n<!--link " . $post_link. " link-->";
} else {
$post_link = "";
}
@ -730,7 +730,7 @@ function edit_quote($title, $tag, $url, $content, $oldfile, $destination = null,
$tagmd = "";
}
if ($quote !== null) {
$post_quote = "\n<!--quote" . $post_quote . " quote-->";
$post_quote = "\n<!--quote " . $post_quote . " quote-->";
} else {
$post_quote = "";
}
@ -886,7 +886,7 @@ function edit_audio($title, $tag, $url, $content, $oldfile, $destination = null,
$tagmd = "";
}
if ($audio !== null) {
$post_audio = "\n<!--audio" . $post_audio . " audio-->";
$post_audio = "\n<!--audio " . $post_audio . " audio-->";
} else {
$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;
if (!empty($post_title) && !empty($post_url) && !empty($post_content)) {
if (get_magic_quotes_gpc()) {
$post_content = stripslashes($post_content);
}
@ -1080,8 +1080,8 @@ function edit_category($title, $url, $content, $oldfile, $destination = null, $d
rename($oldfile, $newfile);
file_put_contents($newfile, print_r($post_content, true));
}
rename_category_folder($post_url, $oldfile);
rename_category_folder($post_url, $oldfile);
rebuilt_cache('all');
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>
<div class="date">
<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>
<?php if (disqus_count()) { ?> -
<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">
<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
<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><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span>
</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>
<div class="date">
<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>
<?php if (disqus_count()) { ?> -
<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">
<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
<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><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span>
</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>
<div class="date">
<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>
<?php if (disqus_count()) { ?> -
<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">
<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
<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><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span>
</div>


Loading…
Cancel
Save