Browse Source

Merge remote-tracking branch 'danpros/master'

pull/196/head
Andreas 10 years ago
parent
commit
bce4fe6a2d
29 changed files with 214 additions and 119 deletions
  1. +3
    -2
      README.md
  2. +0
    -1
      cache/.htaccess
  3. +0
    -1
      content/.htaccess
  4. +0
    -4
      content/images/.htaccess
  5. +3
    -0
      humans.txt
  6. +0
    -1
      system/.htaccess
  7. +3
    -3
      system/admin/admin.php
  8. +0
    -1
      system/admin/editor/.htaccess
  9. +3
    -1
      system/admin/views/update.html.php
  10. +13
    -14
      system/htmly.php
  11. +164
    -75
      system/includes/functions.php
  12. +0
    -1
      system/resources/.htaccess
  13. +0
    -1
      themes/.htaccess
  14. +0
    -1
      themes/blog/css/.htaccess
  15. +11
    -0
      themes/blog/css/styles.css
  16. +0
    -1
      themes/blog/fonts/.htaccess
  17. +0
    -1
      themes/blog/images/.htaccess
  18. +1
    -1
      themes/blog/post.html.php
  19. +0
    -1
      themes/clean/css/.htaccess
  20. +1
    -1
      themes/clean/main.html.php
  21. +2
    -1
      themes/clean/post.html.php
  22. +0
    -1
      themes/default/css/.htaccess
  23. +0
    -1
      themes/default/img/.htaccess
  24. +1
    -1
      themes/default/main.html.php
  25. +2
    -1
      themes/default/post.html.php
  26. +0
    -1
      themes/logs/css/.htaccess
  27. +4
    -0
      themes/logs/css/style.css
  28. +1
    -1
      themes/logs/main.html.php
  29. +2
    -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
-------------------


+ 0
- 1
cache/.htaccess View File

@ -1 +0,0 @@
deny from all

+ 0
- 1
content/.htaccess View File

@ -1 +0,0 @@
deny from all

+ 0
- 4
content/images/.htaccess View File

@ -1,4 +0,0 @@
Deny from all
<Files ~ "\.(jpg|png|gif)$">
Allow from all
</Files>

+ 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)


+ 0
- 1
system/.htaccess View File

@ -1 +0,0 @@
deny from all

+ 3
- 3
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 = "";
}


+ 0
- 1
system/admin/editor/.htaccess View File

@ -1 +0,0 @@
allow from all

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

@ -30,4 +30,6 @@ if ($updater->able()) {
echo \Michelf\MarkdownExtra::defaultTransform($info['body']);
echo '</div>';
echo '<p>Read on <a target="_blank" href="' . $info['html_url'] . '">Github</a>.</p>';
}
}
migrate_old_content();

+ 13
- 14
system/htmly.php View File

@ -1304,12 +1304,12 @@ get('/category/:category', function ($category) {
$perpage = config('category.perpage');
$posts = get_category($category, $page, $perpage);
$desc = get_category_info($category);
if(strtolower($category) !== 'uncategorized') {
$desc = $desc[0];
}
$desc = get_category_info($category);
if(strtolower($category) !== 'uncategorized') {
$desc = $desc[0];
}
$total = get_categorycount($category);
@ -1323,7 +1323,7 @@ get('/category/:category', function ($category) {
'canonical' => $desc->url,
'page' => $page,
'posts' => $posts,
'category' => $desc,
'category' => $desc,
'bodyclass' => 'incategory',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . $desc->title,
'pagination' => has_pagination($total, $perpage, $page),
@ -1441,8 +1441,7 @@ get('/category/:category/delete', function ($category) {
});
// Get deleted category data
post('/category/:category/delete', function ()
{
post('/category/:category/delete', function () {
$proper = is_csrf_proper(from($_REQUEST, 'csrf_token'));
if ($proper && login()) {
$file = from($_REQUEST, 'file');
@ -1669,7 +1668,7 @@ get('/post/:name', function ($name) {
}
if (config('blog.enable') === 'true') {
$blog = ' <span typeof="v:Breadcrumb"><a href="' . site_url() . 'blog">Blog</a></span> &#187; ';
$blog = ' <span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . 'blog">Blog</a></span> &#187; ';
} else {
$blog = '';
}
@ -1681,7 +1680,7 @@ get('/post/:name', function ($name) {
'p' => $current,
'author' => $author,
'bodyclass' => 'inpost',
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> &#187; '. $blog . $current->category . ' &#187; ' . $current->title,
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> &#187; '. $blog . '<span typeof="v:Breadcrumb">' . $current->categoryb . '</span>' . ' &#187; ' . $current->title,
'prev' => has_prev($prev),
'next' => has_next($next),
'type' => $var,
@ -2524,7 +2523,7 @@ get('/:year/:month/:name', function ($year, $month, $name) {
}
if (config('blog.enable') === 'true') {
$blog = ' <span typeof="v:Breadcrumb"><a href="' . site_url() . 'blog">Blog</a></span> &#187; ';
$blog = ' <span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . 'blog">Blog</a></span> &#187; ';
} else {
$blog = '';
}
@ -2536,7 +2535,7 @@ get('/:year/:month/:name', function ($year, $month, $name) {
'p' => $current,
'author' => $author,
'bodyclass' => 'inpost',
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> &#187; '. $blog . $current->category . ' &#187; ' . $current->title,
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> &#187; '. $blog . '<span typeof="v:Breadcrumb">' . $current->categoryb . '</span>' . ' &#187; ' . $current->title,
'prev' => has_prev($prev),
'next' => has_next($next),
'type' => $var,
@ -2810,4 +2809,4 @@ get('.*', function () {
});
// Serve the blog
dispatch();
dispatch();

+ 164
- 75
system/includes/functions.php View File

@ -125,7 +125,7 @@ function get_draft_posts()
return $_draft;
}
// Get user draft.
// Get category info files.
function get_category_files()
{
static $_desc = array();
@ -141,7 +141,7 @@ function get_category_files()
return $_desc;
}
// Get user draft.
// Get category folder.
function get_category_folder()
{
static $_dfolder = array();
@ -183,13 +183,13 @@ function rebuilt_cache($type)
}
if ($type === 'posts') {
$tmpu = array();
$tmpu = array();
$tmpu = glob('content/*/blog/*/*/*.md', GLOB_NOSORT);
if (is_array($tmpu)) {
if (is_array($tmpu)) {
foreach ($tmpu as $fileu) {
if(strpos($fileu, 'draft') === false) {
if(strpos($fileu, 'draft') === false) {
$posts_cache_unsorted[] = $fileu;
}
}
}
}
$string = serialize($posts_cache_unsorted);
@ -200,9 +200,9 @@ function rebuilt_cache($type)
if (is_array($tmp)) {
foreach ($tmp as $file) {
if(strpos($file, 'draft') === false) {
if(strpos($file, 'draft') === false) {
$posts_cache_sorted[] = pathinfo($file);
}
}
}
}
usort($posts_cache_sorted, "sortfile");
@ -263,20 +263,22 @@ function get_posts($posts, $page = 1, $perpage = 0)
// Author string
$str = explode('/', $replaced);
$author = $str[count($str) - 5];
if($str[count($str) - 3] == 'uncategorized') {
$category = default_category();
$post->category = '<a href="' . $category->url . '">' . $category->title . '</a>';
} else {
$category = get_category_info($str[count($str) - 3]);
$post->category = '<a href="' . $category[0]->url . '">' . $category[0]->title . '</a>';
}
$type = $str[count($str) - 2];
if($str[count($str) - 3] == 'uncategorized') {
$category = default_category();
$post->category = '<a href="' . $category->url . '">' . $category->title . '</a>';
$post->categoryb = '<a property="v:title" rel="v:url" href="' . $category->url . '">' . $category->title . '</a>';
} else {
$category = get_category_info($str[count($str) - 3]);
$post->category = '<a href="' . $category[0]->url . '">' . $category[0]->title . '</a>';
$post->categoryb = '<a property="v:title" rel="v:url" href="' . $category[0]->url . '">' . $category[0]->title . '</a>';
}
$type = $str[count($str) - 2];
// The post author + author url
$post->author = $author;
$post->authorUrl = site_url() . 'author/' . $author;
$post->type = $type;
$post->type = $type;
$dt = str_replace($replaced, '', $arr[0]);
$t = str_replace('-', '', $dt);
@ -310,7 +312,7 @@ function get_posts($posts, $page = 1, $perpage = 0)
$tag = array();
$url = array();
$bc = array();
$rel = array();
$rel = array();
$tagt = get_content_tag('tag', $content);
$t = explode(',', rtrim($arr[1], ','));
@ -339,8 +341,8 @@ function get_posts($posts, $page = 1, $perpage = 0)
$post->tag = implode(' ', $url);
$post->tagb = implode(' » ', $bc);
$post->related = rtrim($arr[1], ',');
$post->related = rtrim($arr[1], ',');
// Get the contents and convert it to HTML
$post->body = MarkdownExtra::defaultTransform(remove_html_comments($content));
@ -453,7 +455,7 @@ function get_category($category, $page, $perpage)
$tmp = array();
foreach ($posts as $index => $v) {
$filepath = $v['dirname'] . '/' . $v['basename'];
// Extract the date
@ -464,11 +466,11 @@ function get_category($category, $page, $perpage)
// Author string
$str = explode('/', $replaced);
$cat = $str[count($str) - 3];
if (strtolower($category) === strtolower($cat)) {
$tmp[] = $v;
}
$cat = $str[count($str) - 3];
if (strtolower($category) === strtolower($cat)) {
$tmp[] = $v;
}
}
if (empty($tmp)) {
@ -480,7 +482,7 @@ function get_category($category, $page, $perpage)
return $tmp = get_posts($tmp, $page, $perpage);
}
// Return category data.
// Return category info.
function get_category_info($category)
{
$posts = get_category_files();
@ -499,10 +501,10 @@ function get_category_info($category)
// The static page URL
$url= str_replace($replaced, '', $v);
$desc->url = site_url() . 'category/' . str_replace('.md', '', $url);
$desc->md = str_replace('.md', '', $url);
$desc->md = str_replace('.md', '', $url);
$desc->file = $v;
@ -519,11 +521,11 @@ function get_category_info($category)
}
}
}
if (strtolower($category) == 'uncategorized') {
return default_category();
}
if (strtolower($category) == 'uncategorized') {
return default_category();
}
return $tmp;
}
@ -882,7 +884,7 @@ function get_categorycount($var)
$tmp = array();
foreach ($posts as $index => $v) {
$filepath = $v['dirname'] . '/' . $v['basename'];
// Extract the date
@ -893,8 +895,8 @@ function get_categorycount($var)
// Author string
$str = explode('/', $replaced);
$cat = $str[count($str) - 3];
$cat = $str[count($str) - 3];
if (stripos($cat, "$var") !== false) {
$tmp[] = $v;
}
@ -911,7 +913,7 @@ function get_draftcount($var)
$tmp = array();
foreach ($posts as $index => $v) {
$filepath = $v['dirname'] . '/' . $v['basename'];
// Extract the date
@ -922,8 +924,8 @@ function get_draftcount($var)
// Author string
$str = explode('/', $replaced);
$cat = $str[count($str) - 3];
$cat = $str[count($str) - 3];
if (stripos($cat, "$var") !== false) {
$tmp[] = $v;
}
@ -1037,7 +1039,7 @@ function popular_posts($custom = null, $count = null)
if (config('views.counter') == 'true') {
if (empty($_views)) {
$filename = 'content/views.json';
$filename = 'content/data/views.json';
if (file_exists($filename)) {
$_views = json_decode(file_get_contents($filename), true);
if(is_array($_views)) {
@ -2400,7 +2402,7 @@ function is_csrf_proper($csrf_token)
// Add page views count
function add_view($page)
{
$filename = "content/views.json";
$filename = "content/data/views.json";
$views = array();
if (file_exists($filename)) {
$views = json_decode(file_get_contents($filename), true);
@ -2419,7 +2421,7 @@ function get_views($page)
static $_views = array();
if (empty($_views)) {
$filename = "content/views.json";
$filename = "content/data/views.json";
if (file_exists($filename)) {
$_views = json_decode(file_get_contents($filename), true);
}
@ -2511,7 +2513,7 @@ function shorten($string = null, $char = null)
// save the i18n tag
function save_tag_i18n($tag,$tagDisplay)
{
$filename = "content/tags.lang";
$filename = "content/data/tags.lang";
$tags = array();
$tmp = array();
$views = array();
@ -2544,7 +2546,7 @@ function tag_i18n($tag)
static $tags = array();
if (empty($tags)) {
$filename = "content/tags.lang";
$filename = "content/data/tags.lang";
if (file_exists($filename)) {
$tags = unserialize(file_get_contents($filename));
}
@ -2568,44 +2570,131 @@ function safe_html($string)
// return tag safe string
function safe_tag($string)
{
$tags = array();
$string = preg_replace('/[\s-]+/', ' ', $string);
$string = explode(',', $string);
$tags = array();
$string = preg_replace('/[\s-]+/', ' ', $string);
$string = explode(',', $string);
$string = array_map('trim', $string);
foreach ($string as $str) {
$tags[] = $str;
}
$string = implode(',', $tags);
$string = preg_replace('/[\s_]/', '-', $string);
return $string;
$string = implode(',', $tags);
$string = preg_replace('/[\s_]/', '-', $string);
return $string;
}
// rename category folder
function rename_category_folder($string, $old_url)
{
$old = str_replace('.md', '/', $old_url);
$url = substr($old, 0, strrpos($old, '/'));
$ostr = explode('/', $url);
$url = '/blog/' . $ostr[count($ostr) - 1];
$old = str_replace('.md', '/', $old_url);
$url = substr($old, 0, strrpos($old, '/'));
$ostr = explode('/', $url);
$url = '/blog/' . $ostr[count($ostr) - 1];
$dir = get_category_folder();
$file = array();
$file = array();
foreach ($dir as $index => $v) {
if (stripos($v, $url) !== false) {
$str = explode('/', $v);
$n = $str[count($ostr) - 4] . '/' . $str[count($ostr) - 3] .'/'. $str[count($ostr) - 2] .'/'. $string . '/';
$file[] = array($v, $n);
}
}
foreach ($file as $f) {
if(is_dir($f[0])) {
rename($f[0], $f[1]);
}
}
foreach ($dir as $index => $v) {
if (stripos($v, $url) !== false) {
$str = explode('/', $v);
$n = $str[count($ostr) - 4] . '/' . $str[count($ostr) - 3] .'/'. $str[count($ostr) - 2] .'/'. $string . '/';
$file[] = array($v, $n);
}
}
foreach ($file as $f) {
if(is_dir($f[0])) {
rename($f[0], $f[1]);
}
}
}
// Migrate old content.
function migrate_old_content()
{
$content = array();
$tmp = array();
$files = array();
$tmp = glob('content/*/blog/*.md', GLOB_NOSORT);
if (is_array($tmp)) {
foreach ($tmp as $file) {
$content[] = $file;
}
}
if(!empty($content)) {
foreach ($content as $c => $v) {
$arr = explode('/', $v);
$string = file_get_contents($v);
$image = get_content_tag('image', $string);
$video = get_youtube_id(get_content_tag('video', $string));
$audio = get_content_tag('audio', $string);
$link = get_content_tag('link', $string);
$quote = get_content_tag('quote', $string);
if (!empty($image)) {
$files[] = array($v, 'content/' . $arr[1] . '/blog/uncategorized/image/' . $arr[3]);
$dir = 'content/' . $arr[1] . '/blog/uncategorized/image/';
if (!is_dir($dir)) {
mkdir($dir, 0775, true);
}
}
if (!empty($video)) {
$files[] = array($v, 'content/' . $arr[1] . '/blog/uncategorized/video/' . $arr[3]);
$dir = 'content/' . $arr[1] . '/blog/uncategorized/video/';
if (!is_dir($dir)) {
mkdir($dir, 0775, true);
}
}
if (!empty($audio)) {
$files[] = array($v, 'content/' . $arr[1] . '/blog/uncategorized/audio/' . $arr[3]);
$dir = 'content/' . $arr[1] . '/blog/uncategorized/audio/';
if (!is_dir($dir)) {
mkdir($dir, 0775, true);
}
}
if (!empty($link)) {
$files[] = array($v, 'content/' . $arr[1] . '/blog/uncategorized/link/' . $arr[3]);
$dir = 'content/' . $arr[1] . '/blog/uncategorized/link/';
if (!is_dir($dir)) {
mkdir($dir, 0775, true);
}
}
if (!empty($quote)) {
$files[] = array($v, 'content/' . $arr[1] . '/blog/uncategorized/quote/' . $arr[3]);
$dir = 'content/' . $arr[1] . '/blog/uncategorized/quote/';
if (!is_dir($dir)) {
mkdir($dir, 0775, true);
}
}
if (empty($image) && empty($video) && empty($audio) && empty($link) && empty($quote)) {
$files[] = array($v, 'content/' . $arr[1] . '/blog/uncategorized/post/' . $arr[3]);
$dir = 'content/' . $arr[1] . '/blog/uncategorized/post/';
if (!is_dir($dir)) {
mkdir($dir, 0775, true);
}
}
}
foreach ($files as $f) {
rename($f[0], $f[1]);
}
}
if (file_exists('content/tags.lang')) {
$dir = 'content/data/';
if (!is_dir($dir)) {
mkdir($dir, 0775, true);
}
rename('content/tags.lang', 'content/data/tags.lang');
unlink('content/views.json');
}
rebuilt_cache('all');
}

+ 0
- 1
system/resources/.htaccess View File

@ -1 +0,0 @@
allow from all

+ 0
- 1
themes/.htaccess View File

@ -1 +0,0 @@
deny from all

+ 0
- 1
themes/blog/css/.htaccess View File

@ -1 +0,0 @@
allow from all

+ 11
- 0
themes/blog/css/styles.css View File

@ -142,6 +142,17 @@ pre {
margin:1em 0;
}
.tags {
margin-right:5px;
}
.tags a {
background-color: #f9f2f4;
border-radius: 4px;
color: #c7254e;
padding: 2px 4px;
}
/*-------------------------
Table
--------------------------*/


+ 0
- 1
themes/blog/fonts/.htaccess View File

@ -1 +0,0 @@
allow from all

+ 0
- 1
themes/blog/images/.htaccess View File

@ -1 +0,0 @@
allow from all

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

@ -43,7 +43,7 @@
<?php echo $p->body; ?>
</div><!--//desc-->
<div style="margin-top:30px;position:relative;">
<span class="tags"><i class="fa fa-tags"></i> <?php echo $p->tag;?></span>
<span class="tags"><i class="fa fa-tags"></i> <?php echo $p->tag;?></span>
<?php if (disqus_count()) { ?>
<span><i class="fa fa-comments"></i> <a href="<?php echo $p->url ?>#disqus_thread"> comments</a></span>
<?php } elseif (facebook()) { ?>


+ 0
- 1
themes/clean/css/.htaccess View File

@ -1 +0,0 @@
allow from all

+ 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>


+ 2
- 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>
@ -41,6 +41,7 @@
<div class="post-body" itemprop="articleBody">
<?php echo $p->body; ?>
</div>
<div class="tags"><strong>Tags:</strong> <?php echo $p->tag;?></div>
</div>
<div class="separator">&rarr;</div>
<div class="share-box">


+ 0
- 1
themes/default/css/.htaccess View File

@ -1 +0,0 @@
allow from all

+ 0
- 1
themes/default/img/.htaccess View File

@ -1 +0,0 @@
allow from all

+ 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>


+ 2
- 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>
@ -41,6 +41,7 @@
<div class="post-body" itemprop="articleBody">
<?php echo $p->body; ?>
</div>
<div class="tags"><strong>Tags:</strong> <?php echo $p->tag;?></div>
</div>
<div class="separator">&rarr;</div>
<div class="share-box">


+ 0
- 1
themes/logs/css/.htaccess View File

@ -1 +0,0 @@
allow from all

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

@ -154,6 +154,10 @@ a:hover {
font-family: 'Open Sans', sans-serif;
}
.tags a {
margin-right:3px;
}
/*-------------------------
Text element
--------------------------*/


+ 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>


+ 2
- 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>
@ -41,6 +41,7 @@
<div class="post-body" itemprop="articleBody">
<?php echo $p->body; ?>
</div>
<div class="tags"><strong>Tags:</strong> <?php echo $p->tag;?></div>
</div>
<div class="separator">&rarr;</div>
<div class="share-box">


Loading…
Cancel
Save