Browse Source

Cleanup themes

pull/674/head
danpros 1 year ago
parent
commit
b0960c6871
22 changed files with 333 additions and 197 deletions
  1. +157
    -6
      system/htmly.php
  2. +3
    -1
      system/includes/functions.php
  3. +21
    -32
      themes/blog/main.html.php
  4. +8
    -8
      themes/blog/post.html.php
  5. +4
    -4
      themes/blog/profile.html.php
  6. +1
    -1
      themes/blog/static.html.php
  7. +16
    -18
      themes/clean/main.html.php
  8. +8
    -8
      themes/clean/post.html.php
  9. +5
    -5
      themes/clean/profile.html.php
  10. +16
    -18
      themes/logs/main.html.php
  11. +8
    -8
      themes/logs/post.html.php
  12. +5
    -5
      themes/logs/profile.html.php
  13. +16
    -18
      themes/readable/main.html.php
  14. +8
    -8
      themes/readable/post.html.php
  15. +5
    -5
      themes/readable/profile.html.php
  16. +1
    -1
      themes/readable/static.html.php
  17. +14
    -14
      themes/twentyfifteen/main.html.php
  18. +7
    -7
      themes/twentyfifteen/post.html.php
  19. +5
    -5
      themes/twentyfifteen/profile.html.php
  20. +13
    -13
      themes/twentysixteen/main.html.php
  21. +7
    -7
      themes/twentysixteen/post.html.php
  22. +5
    -5
      themes/twentysixteen/profile.html.php

+ 157
- 6
system/htmly.php View File

@ -68,6 +68,16 @@ get('/index', function () {
'static' => $front,
'type' => 'is_frontpage',
'is_front' => true,
'is_blog' => '',
'is_category' => '',
'is_search' => '',
'is_archive' => '',
'is_type' => '',
'is_tag' => '',
'is_profile' => '',
'is_post' => '',
'is_page' => '',
'is_subpage' => '',
), $layout);
@ -103,9 +113,20 @@ get('/index', function () {
'title' => blog_title() . $tagline,
'description' => strip_tags(blog_description()),
'canonical' => site_url(),
'breadcrumb' => '',
'bodyclass' => 'no-posts',
'type' => 'is_frontpage',
'is_front' => true,
'is_blog' => '',
'is_category' => '',
'is_search' => '',
'is_archive' => '',
'is_type' => '',
'is_tag' => '',
'is_profile' => '',
'is_post' => '',
'is_page' => '',
'is_subpage' => '',
), $layout);
die;
@ -122,6 +143,16 @@ get('/index', function () {
'pagination' => has_pagination($total, $perpage, $page),
'type' => 'is_frontpage',
'is_front' => true,
'is_blog' => '',
'is_category' => '',
'is_search' => '',
'is_archive' => '',
'is_type' => '',
'is_tag' => '',
'is_profile' => '',
'is_post' => '',
'is_page' => '',
'is_subpage' => '',
), $layout);
}
@ -253,7 +284,17 @@ get('/author/:name', function ($name) {
'bodyclass' => 'in-profile author-' . $name,
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Profile_for') . ' ' . $author->name,
'pagination' => has_pagination($total, $perpage, $page),
'is_front' => '',
'is_blog' => '',
'is_category' => '',
'is_search' => '',
'is_archive' => '',
'is_type' => '',
'is_tag' => '',
'is_profile' => true,
'is_post' => '',
'is_page' => '',
'is_subpage' => '',
), $layout);
die;
}
@ -270,7 +311,17 @@ get('/author/:name', function ($name) {
'bodyclass' => 'in-profile author-' . $name,
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Profile_for') . ' ' . $author->name,
'pagination' => has_pagination($total, $perpage, $page),
'is_front' => '',
'is_blog' => '',
'is_category' => '',
'is_search' => '',
'is_archive' => '',
'is_type' => '',
'is_tag' => '',
'is_profile' => true,
'is_post' => '',
'is_page' => '',
'is_subpage' => '',
), $layout);
});
@ -278,7 +329,7 @@ get('/author/:name', function ($name) {
get('/author/:name/feed', function ($name) {
header('Content-Type: application/rss+xml');
$posts = get_profile_posts($name, 1, config('rss.count'));
$author = get_author($name);
@ -1878,7 +1929,17 @@ get('/category/:category', function ($category) {
'bodyclass' => 'in-category category-' . strtolower($category),
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . $desc->title,
'pagination' => has_pagination($total, $perpage, $page),
'is_front' => '',
'is_blog' => '',
'is_category' => true,
'is_search' => '',
'is_archive' => '',
'is_type' => '',
'is_tag' => '',
'is_profile' => '',
'is_post' => '',
'is_page' => '',
'is_subpage' => '',
), $layout);
});
@ -2095,7 +2156,17 @@ get('/type/:type', function ($type) {
'bodyclass' => 'in-type type-' . strtolower($type),
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . ucfirst($type),
'pagination' => has_pagination($total, $perpage, $page),
'is_front' => '',
'is_blog' => '',
'is_category' => '',
'is_search' => '',
'is_archive' => '',
'is_type' => true,
'is_tag' => '',
'is_profile' => '',
'is_post' => '',
'is_page' => '',
'is_subpage' => '',
), $layout);
});
@ -2103,7 +2174,7 @@ get('/type/:type', function ($type) {
get('/type/:type/feed', function ($type) {
header('Content-Type: application/rss+xml');
$posts = get_type($type, 1, config('rss.count'));
$data = new stdClass;
$data->title = ucfirst($type);
@ -2178,7 +2249,17 @@ get('/tag/:tag', function ($tag) {
'bodyclass' => 'in-tag tag-' . strtolower($tag),
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Posts_tagged') . ' ' . tag_i18n($tag),
'pagination' => has_pagination($total, $perpage, $page),
'is_front' => '',
'is_blog' => '',
'is_category' => '',
'is_search' => '',
'is_archive' => '',
'is_type' => '',
'is_tag' => true,
'is_profile' => '',
'is_post' => '',
'is_page' => '',
'is_subpage' => '',
), $layout);
});
@ -2186,7 +2267,7 @@ get('/tag/:tag', function ($tag) {
get('/tag/:tag/feed', function ($tag) {
header('Content-Type: application/rss+xml');
$posts = get_tag($tag, 1, config('rss.count'));
$data = new stdClass;
$data->title = tag_i18n($tag);
@ -2271,7 +2352,17 @@ get('/archive/:req', function ($req) {
'bodyclass' => 'in-archive archive-' . strtolower($req),
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Archive_for') . ' ' . $timestamp,
'pagination' => has_pagination($total, $perpage, $page),
'is_front' => '',
'is_blog' => '',
'is_category' => '',
'is_search' => '',
'is_archive' => true,
'is_type' => '',
'is_tag' => '',
'is_profile' => '',
'is_post' => '',
'is_page' => '',
'is_subpage' => '',
), $layout);
});
@ -2279,9 +2370,9 @@ get('/archive/:req', function ($req) {
get('/archive/:req/feed', function ($req) {
header('Content-Type: application/rss+xml');
$posts = get_archive($req, 1, config('rss.count'));
$time = explode('-', $req);
$date = strtotime($req);
@ -2368,7 +2459,17 @@ get('/search/:keyword', function ($keyword) {
'bodyclass' => 'in-search search-' . strtolower($keyword),
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Search_results_for') . ' ' . $keyword,
'pagination' => has_pagination($total, $perpage, $page),
'is_front' => '',
'is_blog' => '',
'is_category' => '',
'is_search' => true,
'is_archive' => '',
'is_type' => '',
'is_tag' => '',
'is_profile' => '',
'is_post' => '',
'is_page' => '',
'is_subpage' => '',
), $layout);
});
@ -2376,7 +2477,7 @@ get('/search/:keyword', function ($keyword) {
get('/search/:keyword/feed', function ($keyword) {
header('Content-Type: application/rss+xml');
$posts = get_keyword($keyword, 1, config('rss.count'));
$data = new stdClass;
@ -2534,7 +2635,17 @@ get('/post/:name', function ($name) {
'prev' => has_prev($prev),
'next' => has_next($next),
'type' => $var,
'is_front' => '',
'is_blog' => '',
'is_category' => '',
'is_search' => '',
'is_archive' => '',
'is_type' => '',
'is_tag' => '',
'is_profile' => '',
'is_post' => true,
'is_page' => '',
'is_subpage' => '',
), $layout);
});
@ -2960,7 +3071,17 @@ get('/:static', function ($static) {
'bodyclass' => 'in-blog',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Blog',
'pagination' => has_pagination($total, $perpage, $page),
'is_front' => '',
'is_blog' => true,
'is_category' => '',
'is_search' => '',
'is_archive' => '',
'is_type' => '',
'is_tag' => '',
'is_profile' => '',
'is_post' => '',
'is_page' => '',
'is_subpage' => '',
), $layout);
} elseif ($static === 'front') {
@ -3032,7 +3153,17 @@ get('/:static', function ($static) {
'type' => 'staticPage',
'prev' => static_prev($prev),
'next' => static_next($next),
'is_front' => '',
'is_blog' => '',
'is_category' => '',
'is_search' => '',
'is_archive' => '',
'is_type' => '',
'is_tag' => '',
'is_profile' => '',
'is_post' => '',
'is_page' => true,
'is_subpage' => '',
), $layout);
}
});
@ -3329,6 +3460,16 @@ get('/:static/:sub', function ($static, $sub) {
'prev' => static_prev($prev),
'next' => static_next($next),
'type' => 'subPage',
'is_front' => '',
'is_blog' => '',
'is_category' => '',
'is_search' => '',
'is_archive' => '',
'is_type' => '',
'is_tag' => '',
'is_profile' => '',
'is_post' => '',
'is_page' => '',
'is_subpage' => true,
), $layout);
});
@ -3600,7 +3741,17 @@ get('/:year/:month/:name', function ($year, $month, $name) {
'prev' => has_prev($prev),
'next' => has_next($next),
'type' => $var,
'is_front' => '',
'is_blog' => '',
'is_category' => '',
'is_search' => '',
'is_archive' => '',
'is_type' => '',
'is_tag' => '',
'is_profile' => '',
'is_post' => true,
'is_page' => '',
'is_subpage' => '',
), $layout);
});


+ 3
- 1
system/includes/functions.php View File

@ -2098,7 +2098,9 @@ function tab($p)
echo '<div class="tab"><ul class="nav nav-tabs"><li role="presentation" class="active"><a href="' . $p->url . '">' . i18n('View') .'</a></li><li><a href="' . $p->url . '/edit?destination=post">'. i18n('Edit') .'</a></li></ul></div>';
}
} else {
echo '<div class="tab"><ul class="nav nav-tabs"><li role="presentation" class="active"><a href="' . $p->url . '">' . i18n('View') .'</a></li><li><a href="' . $p->url . '/edit?destination=post">'. i18n('Edit') .'</a></li></ul></div>';
if ($p->url) {
echo '<div class="tab"><ul class="nav nav-tabs"><li role="presentation" class="active"><a href="' . $p->url . '">' . i18n('View') .'</a></li><li><a href="' . $p->url . '/edit?destination=post">'. i18n('Edit') .'</a></li></ul></div>';
}
}
}


+ 21
- 32
themes/blog/main.html.php View File

@ -1,59 +1,48 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<?php if (config('category.info') === 'true'):?>
<?php if (!empty($category)): ?>
<div class="section">
<div class="section-inner">
<div class="content">
<div class="item">
<h2 class="title"><?php echo $category->title;?></h2>
<div class="text-left">
<?php echo $category->body; ?>
</div><!--//desc-->
</div><!--//item-->
</div><!--//content-->
</div>
<?php if ($is_category): ?>
<div class="section">
<div class="section-inner">
<div class="content">
<div class="item">
<h2 class="title"><?php echo $category->title;?></h2>
<div class="text-left">
<?php echo $category->body; ?>
</div><!--//desc-->
</div><!--//item-->
</div><!--//content-->
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php $i = 0; $len = count($posts); ?>
<?php foreach ($posts as $p): ?>
<?php if ($i == 0) {
$class = 'post first';
} elseif ($i == $len - 1) {
$class = 'post last';
} else {
$class = 'post';
}
$i++; ?>
<section class="post section <?php echo $class ?>" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<section class="post section" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<div class="section-inner">
<div class="content">
<div class="item">
<?php if (!empty($p->image)) { ?>
<?php if ($p->image) { ?>
<div class="featured featured-image">
<a href="<?php echo $p->url ?>"><img itemprop="image" src="<?php echo $p->image; ?>" alt="<?php echo $p->title ?>"/></a>
</div>
<?php } ?>
<?php if (!empty($p->video)) { ?>
<?php if ($p->video) { ?>
<div class="featured featured-video embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" frameborder="0" allowfullscreen></iframe>
</div>
<?php } ?>
<?php if (!empty($p->audio)) { ?>
<?php if ($p->audio) { ?>
<div class="featured featured-audio embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&amp;auto_play=false&amp;visual=true"></iframe>
</div>
<?php } ?>
<?php if (!empty($p->quote)) { ?>
<?php if ($p->quote) { ?>
<div class="featured featured-quote">
<blockquote class="quote"><i class="fa fa-quote-left"></i> <?php echo $p->quote ?> <i class="fa fa-quote-right"></i></blockquote>
</div>
<?php } ?>
<div class="info text-left">
<?php if (!empty($p->link)) { ?>
<?php if ($p->link) { ?>
<h2 class="title" itemprop="headline"><a target="_blank" href="<?php echo $p->link ?>"><?php echo $p->title;?> <i class="fa fa-external-link"></i></a></h2>
<?php } else {?>
<h2 class="title" itemprop="headline"><a href="<?php echo $p->url;?>"><?php echo $p->title;?></a></h2>
@ -67,7 +56,7 @@
<?php } elseif (facebook()) { ?>
- <i class="fa fa-comments"></i> <a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> <?php echo i18n("Comments");?></span></a>
<?php } ?>
<?php if (login()) { echo ' - <span><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
<?php if (login()) { echo ' - <span><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
</p>
</div>
<div class="desc text-left" itemprop="articleBody">
@ -88,7 +77,7 @@
</div><!--//section-inner-->
</section><!--//section-->
<?php endforeach; ?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<?php if ($pagination['prev'] || $pagination['next']): ?>
<div class="pagination"><?php echo $pagination['html'];?></div>
<?php endif; ?>
<?php if (disqus_count()): ?>


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

@ -1,5 +1,5 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<section class="inpost post section" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
@ -7,28 +7,28 @@
<div class="content">
<?php if (login()) { echo tab($p); } ?>
<div class="item">
<?php if (!empty($p->image)) { ?>
<?php if ($p->image) { ?>
<div class="featured featured-image">
<a href="<?php echo $p->url ?>"><img itemprop="image" src="<?php echo $p->image; ?>" alt="<?php echo $p->title ?>"/></a>
</div>
<?php } ?>
<?php if (!empty($p->video)) { ?>
<?php if ($p->video) { ?>
<div class="featured featured-video embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" frameborder="0" allowfullscreen></iframe>
</div>
<?php } ?>
<?php if (!empty($p->audio)) { ?>
<?php if ($p->audio) { ?>
<div class="featured featured-audio embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&amp;auto_play=false&amp;visual=true"></iframe>
</div>
<?php } ?>
<?php if (!empty($p->quote)) { ?>
<?php if ($p->quote) { ?>
<div class="featured featured-quote">
<blockquote class="quote"><i class="fa fa-quote-left"></i> <?php echo $p->quote ?> <i class="fa fa-quote-right"></i></blockquote>
</div>
<?php } ?>
<div class="info text-left">
<?php if (!empty($p->link)) { ?>
<?php if ($p->link) { ?>
<h1 class="title" itemprop="headline"><a target="_blank" href="<?php echo $p->link ?>"><?php echo $p->title;?> <i class="fa fa-external-link"></i></a></h1>
<?php } else { ?>
<h1 class="title" itemprop="headline"><?php echo $p->title;?></h1>
@ -57,10 +57,10 @@
</div>
<div style="margin-top:30px;position:relative;">
<hr>
<?php if (!empty($next)): ?>
<?php if ($next): ?>
<span class="newer"><a href="<?php echo($next['url']); ?>" rel="next"><i class="fa fa-long-arrow-left"></i> <?php echo i18n("Next");?></a></span>
<?php endif; ?>
<?php if (!empty($prev)): ?>
<?php if ($prev): ?>
<span class="older pull-right"><a href="<?php echo($prev['url']); ?>" rel="prev"><?php echo i18n("Prev");?> <i class="fa fa-long-arrow-right"></i></a></span>
<?php endif; ?>
<div style="clear:both;"></div>


+ 4
- 4
themes/blog/profile.html.php View File

@ -1,5 +1,5 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<section class="inprofile post section">
@ -11,7 +11,7 @@
<?php echo $about; ?>
</div><!--//desc-->
<h3><?php echo i18n("Post_by_author");?></h3>
<?php if (!empty($posts)) { ?>
<?php if ($posts) { ?>
<ul class="post-list">
<?php foreach ($posts as $p): ?>
<li class="item">
@ -27,8 +27,8 @@
</div><!--//content-->
</div><!--//section-inner-->
</section><!--//section-->
<?php if (!empty($posts)) { ?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<?php if ($posts) { ?>
<?php if ($pagination['prev'] || $pagination['next']): ?>
<div class="pagination"><?php echo $pagination['html'];?></div>
<?php endif; ?>
<?php } ?>

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

@ -1,5 +1,5 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<section class="inpage post section" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">


+ 16
- 18
themes/clean/main.html.php View File

@ -1,16 +1,14 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<?php if (config('category.info') === 'true'):?>
<?php if (!empty($category)): ?>
<div class="category">
<h2 class="category-title"><?php echo $category->title;?></h2>
<div class="category-content">
<?php echo $category->body; ?>
</div>
<?php if ($is_category): ?>
<div class="category">
<h2 class="category-title"><?php echo $category->title;?></h2>
<div class="category-content">
<?php echo $category->body; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php $i = 0; $len = count($posts); ?>
<?php foreach ($posts as $p): ?>
@ -24,7 +22,7 @@
$i++; ?>
<div class="<?php echo $class ?>" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<div class="main">
<?php if (!empty($p->link)) { ?>
<?php if ($p->link) { ?>
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->link ?>"><?php echo $p->title ?> &rarr;</a></h2>
<?php } else { ?>
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></h2>
@ -38,24 +36,24 @@
<?php } elseif (facebook()) { ?> -
<a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> <?php echo i18n("Comments");?></span></a>
<?php } ?>
<?php if (login()) { echo ' - <span><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
<?php if (login()) { echo ' - <span><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
</div>
<?php if (!empty($p->image)) { ?>
<?php if ($p->image) { ?>
<div class="featured-image">
<a href="<?php echo $p->url ?>"><img src="<?php echo $p->image; ?>" alt="<?php echo $p->title ?>"/></a>
</div>
<?php } ?>
<?php if (!empty($p->video)) { ?>
<?php if ($p->video) { ?>
<div class="featured-video">
<iframe src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" width="560" height="315" frameborder="0" allowfullscreen></iframe>
</div>
<?php } ?>
<?php if (!empty($p->audio)) { ?>
<?php if ($p->audio) { ?>
<div class="featured-audio">
<iframe width="560" height="315" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&amp;auto_play=false&amp;visual=true"></iframe>
</div>
<?php } ?>
<?php if (!empty($p->quote)) { ?>
<?php if ($p->quote) { ?>
<div class="featured-quote">
<blockquote><?php echo $p->quote ?></blockquote>
</div>
@ -68,13 +66,13 @@
</div>
</div>
<?php endforeach; ?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<?php if ($pagination['prev'] || $pagination['next']): ?>
<div class="pager">
<?php if (!empty($pagination['prev'])): ?>
<?php if ($pagination['prev']): ?>
<span><a href="?page=<?php echo $page - 1 ?>" class="pagination-arrow newer" rel="prev"><?php echo i18n('Newer'); ?></a></span>
<?php endif; ?>
<span class="page-number"><?php echo $pagination['pagenum']; ?></span>
<?php if (!empty($pagination['next'])): ?>
<?php if ($pagination['next']): ?>
<span><a href="?page=<?php echo $page + 1 ?>" class="pagination-arrow older" rel="next"><?php echo i18n('Older'); ?></a></span>
<?php endif; ?>
</div>


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

@ -1,12 +1,12 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb" xmlns:v="http://rdf.data-vocabulary.org/#"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<?php if (login()) { echo tab($p); } ?>
<div class="post" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<div class="main">
<a name="more"></a>
<?php if (!empty($p->link)) { ?>
<?php if ($p->link) { ?>
<h1 class="title-post" itemprop="name"><a target="_blank" href="<?php echo $p->link ?>"><?php echo $p->title ?> &rarr;</a></h1>
<?php } else { ?>
<h1 class="title-post" itemprop="name"><?php echo $p->title ?></h1>
@ -18,22 +18,22 @@
<span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->authorName; ?></a></span> -
<span><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span>
</div>
<?php if (!empty($p->image)) { ?>
<?php if ($p->image) { ?>
<div class="featured-image">
<a href="<?php echo $p->url ?>"><img src="<?php echo $p->image; ?>" alt="<?php echo $p->title ?>"/></a>
</div>
<?php } ?>
<?php if (!empty($p->video)) { ?>
<?php if ($p->video) { ?>
<div class="featured-video">
<iframe src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" width="560" height="315" frameborder="0" allowfullscreen></iframe>
</div>
<?php } ?>
<?php if (!empty($p->audio)) { ?>
<?php if ($p->audio) { ?>
<div class="featured-audio">
<iframe width="560" height="315" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&amp;auto_play=false&amp;visual=true"></iframe>
</div>
<?php } ?>
<?php if (!empty($p->quote)) { ?>
<?php if ($p->quote) { ?>
<div class="featured-quote">
<blockquote><?php echo $p->quote ?></blockquote>
</div>
@ -70,10 +70,10 @@
<?php endif; ?>
</div>
<div class="postnav">
<?php if (!empty($next)): ?>
<?php if ($next): ?>
<span><a href="<?php echo($next['url']); ?>" class="pagination-arrow newer" rel="next"><?php echo($next['title']); ?></a></span>
<?php endif; ?>
<?php if (!empty($prev)): ?>
<?php if ($prev): ?>
<span><a href="<?php echo($prev['url']); ?>" class="pagination-arrow older" rel="prev"><?php echo($prev['title']); ?></a></span>
<?php endif; ?>
</div>


+ 5
- 5
themes/clean/profile.html.php View File

@ -1,5 +1,5 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<div class="profile-wrapper" itemprop="accountablePerson" itemscope="itemscope">
@ -9,7 +9,7 @@
</div>
</div>
<h2 class="post-index"><?php echo i18n("Post_by_author");?></h2>
<?php if (!empty($posts)) { ?>
<?php if ($posts) { ?>
<ul class="post-list">
<?php foreach ($posts as $p): ?>
<li class="item">
@ -18,13 +18,13 @@
</li>
<?php endforeach; ?>
</ul>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<?php if ($pagination['prev'] || $pagination['next']): ?>
<div class="pager">
<?php if (!empty($pagination['prev'])): ?>
<?php if ($pagination['prev']): ?>
<span><a href="?page=<?php echo $page - 1 ?>" class="pagination-arrow newer" rel="prev">Newer</a></span>
<?php endif; ?>
<span class="page-number"><?php echo $pagination['pagenum']; ?></span>
<?php if (!empty($pagination['next'])): ?>
<?php if ($pagination['next']): ?>
<span><a href="?page=<?php echo $page + 1 ?>" class="pagination-arrow older" rel="next">Older</a></span>
<?php endif; ?>
</div>


+ 16
- 18
themes/logs/main.html.php View File

@ -1,21 +1,19 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<?php if (config('category.info') === 'true'):?>
<?php if (!empty($category)): ?>
<div class="category">
<h2 class="category-title"><?php echo $category->title;?></h2>
<div class="category-content">
<?php echo $category->body; ?>
</div>
<?php if ($is_category): ?>
<div class="category">
<h2 class="category-title"><?php echo $category->title;?></h2>
<div class="category-content">
<?php echo $category->body; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php foreach ($posts as $p): ?>
<div class="post" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<div class="main">
<?php if (!empty($p->link)) { ?>
<?php if ($p->link) { ?>
<h2 class="title-index" itemprop="name"><a target="_blank" href="<?php echo $p->link ?>"><?php echo $p->title ?> &rarr;</a></h2>
<?php } else { ?>
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></h2>
@ -29,24 +27,24 @@
<?php } elseif (facebook()) { ?> -
<a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> <?php echo i18n('Comments');?></span></a>
<?php } ?>
<?php if (login()) { echo ' - <span><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
<?php if (login()) { echo ' - <span><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
</div>
<?php if (!empty($p->image)) { ?>
<?php if ($p->image) { ?>
<div class="featured-image">
<a href="<?php echo $p->url ?>"><img src="<?php echo $p->image; ?>" alt="<?php echo $p->title ?>"/></a>
</div>
<?php } ?>
<?php if (!empty($p->video)) { ?>
<?php if ($p->video) { ?>
<div class="featured-video">
<iframe src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" width="560" height="315" frameborder="0" allowfullscreen></iframe>
</div>
<?php } ?>
<?php if (!empty($p->audio)) { ?>
<?php if ($p->audio) { ?>
<div class="featured-audio">
<iframe width="560" height="315" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&amp;auto_play=false&amp;visual=true"></iframe>
</div>
<?php } ?>
<?php if (!empty($p->quote)) { ?>
<?php if ($p->quote) { ?>
<div class="featured-quote">
<blockquote><?php echo $p->quote ?></blockquote>
</div>
@ -59,13 +57,13 @@
</div>
</div>
<?php endforeach; ?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<?php if ($pagination['prev'] || $pagination['next']): ?>
<div class="pager">
<?php if (!empty($pagination['prev'])): ?>
<?php if ($pagination['prev']): ?>
<span class="newer" ><a href="?page=<?php echo $page - 1 ?>" rel="prev">&laquo; <?php echo i18n('Newer');?></a></span>
<?php endif; ?>
<span class="page-number"><?php echo $pagination['pagenum'];?></span>
<?php if (!empty($pagination['next'])): ?>
<?php if ($pagination['next']): ?>
<span class="older"><a href="?page=<?php echo $page + 1 ?>" rel="next"><?php echo i18n('Older');?> &raquo;</a></span>
<?php endif; ?>
</div>


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

@ -1,12 +1,12 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb" xmlns:v="http://rdf.data-vocabulary.org/#"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<?php if (login()) { echo tab($p); } ?>
<div class="post" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<div class="main">
<a name="more"></a>
<?php if (!empty($p->link)) { ?>
<?php if ($p->link) { ?>
<h1 class="title-post" itemprop="name"><a target="_blank" href="<?php echo $p->link ?>"><?php echo $p->title ?> &rarr;</a></h1>
<?php } else { ?>
<h1 class="title-post" itemprop="name"><?php echo $p->title ?></h1>
@ -18,22 +18,22 @@
<span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->authorName; ?></a></span> -
<span><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span>
</div>
<?php if (!empty($p->image)) { ?>
<?php if ($p->image) { ?>
<div class="featured-image">
<a href="<?php echo $p->url ?>"><img src="<?php echo $p->image; ?>" alt="<?php echo $p->title ?>"/></a>
</div>
<?php } ?>
<?php if (!empty($p->video)) { ?>
<?php if ($p->video) { ?>
<div class="featured-video">
<iframe src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" width="560" height="315" frameborder="0" allowfullscreen></iframe>
</div>
<?php } ?>
<?php if (!empty($p->audio)) { ?>
<?php if ($p->audio) { ?>
<div class="featured-audio">
<iframe width="560" height="315" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&amp;auto_play=false&amp;visual=true"></iframe>
</div>
<?php } ?>
<?php if (!empty($p->quote)) { ?>
<?php if ($p->quote) { ?>
<div class="featured-quote">
<blockquote><?php echo $p->quote ?></blockquote>
</div>
@ -70,10 +70,10 @@
<?php endif; ?>
</div>
<div class="postnav">
<?php if (!empty($next)): ?>
<?php if ($next): ?>
<span class="newer">&laquo; <a href="<?php echo($next['url']); ?>" rel="next"><?php echo($next['title']); ?></a></span>
<?php endif; ?>
<?php if (!empty($prev)): ?>
<?php if ($prev): ?>
<span class="older"><a href="<?php echo($prev['url']); ?>" rel="prev"><?php echo($prev['title']); ?></a> &raquo;</span>
<?php endif; ?>
</div>


+ 5
- 5
themes/logs/profile.html.php View File

@ -1,5 +1,5 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<div class="profile-wrapper" itemprop="accountablePerson" itemscope="itemscope">
@ -9,7 +9,7 @@
</div>
</div>
<h2 class="post-index"><?php echo i18n('Post_by_author');?></h2>
<?php if (!empty($posts)) { ?>
<?php if ($posts) { ?>
<ul class="post-list">
<?php foreach ($posts as $p): ?>
<li class="item">
@ -18,13 +18,13 @@
</li>
<?php endforeach; ?>
</ul>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<?php if ($pagination['prev'] || $pagination['next']): ?>
<div class="pager">
<?php if (!empty($pagination['prev'])): ?>
<?php if ($pagination['prev']): ?>
<span class="newer" ><a href="?page=<?php echo $page - 1 ?>" rel="prev">&laquo; <?php echo i18n('Newer');?></a></span>
<?php endif; ?>
<span class="page-number"><?php echo $pagination['pagenum'];?></span>
<?php if (!empty($pagination['next'])): ?>
<?php if ($pagination['next']): ?>
<span class="older"><a href="?page=<?php echo $page + 1 ?>" rel="next"><?php echo i18n('Older');?> &raquo;</a></span>
<?php endif; ?>
</div>


+ 16
- 18
themes/readable/main.html.php View File

@ -1,21 +1,19 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<?php if (config('category.info') === 'true'):?>
<?php if (!empty($category)): ?>
<div class="category">
<h2 class="category-title"><?php echo $category->title;?></h2>
<div class="category-content">
<?php echo $category->body; ?>
</div>
<?php if ($is_category): ?>
<div class="category">
<h2 class="category-title"><?php echo $category->title;?></h2>
<div class="category-content">
<?php echo $category->body; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php foreach ($posts as $p): ?>
<div class="post" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<div class="main">
<?php if (!empty($p->link)) { ?>
<?php if ($p->link) { ?>
<h2 class="title-index" itemprop="name"><a target="_blank" href="<?php echo $p->link ?>"><?php echo $p->title ?> &rarr;</a></h2>
<?php } else { ?>
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></h2>
@ -29,24 +27,24 @@
<?php } elseif (facebook()) { ?> -
<a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> <?php echo i18n('Comments');?></span></a>
<?php } ?>
<?php if (login()) { echo ' - <span><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
<?php if (login()) { echo ' - <span><a href="'. $p->url .'/edit?destination=post">Edit</a></span>'; } ?>
</div>
<?php if (!empty($p->image)) { ?>
<?php if ($p->image) { ?>
<div class="featured-image">
<a href="<?php echo $p->url ?>"><img src="<?php echo $p->image; ?>" alt="<?php echo $p->title ?>"/></a>
</div>
<?php } ?>
<?php if (!empty($p->video)) { ?>
<?php if ($p->video) { ?>
<div class="featured-video">
<iframe src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" width="560" height="315" frameborder="0" allowfullscreen></iframe>
</div>
<?php } ?>
<?php if (!empty($p->audio)) { ?>
<?php if ($p->audio) { ?>
<div class="featured-audio">
<iframe width="560" height="315" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&amp;auto_play=false&amp;visual=true"></iframe>
</div>
<?php } ?>
<?php if (!empty($p->quote)) { ?>
<?php if ($p->quote) { ?>
<div class="featured-quote">
<blockquote><?php echo $p->quote ?></blockquote>
</div>
@ -59,12 +57,12 @@
</div>
</div>
<?php endforeach; ?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<?php if ($pagination['prev'] || $pagination['next']): ?>
<div class="pager">
<?php if (!empty($pagination['prev'])): ?>
<?php if ($pagination['prev']): ?>
<span><a href="?page=<?php echo $page - 1 ?>" class="pagination-arrow newer" rel="prev"><?php echo i18n('Newer');?></a></span>
<?php endif; ?>
<?php if (!empty($pagination['next'])): ?>
<?php if ($pagination['next']): ?>
<span><a href="?page=<?php echo $page + 1 ?>" class="pagination-arrow older" rel="next"><?php echo i18n('Older');?></a></span>
<?php endif; ?>
</div>


+ 8
- 8
themes/readable/post.html.php View File

@ -1,12 +1,12 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb" xmlns:v="http://rdf.data-vocabulary.org/#"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<?php if (login()) { echo tab($p); } ?>
<div class="post" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<div class="main">
<a name="more"></a>
<?php if (!empty($p->link)) { ?>
<?php if ($p->link) { ?>
<h1 class="title-post" itemprop="name"><a target="_blank" href="<?php echo $p->link ?>"><?php echo $p->title ?> &rarr;</a></h1>
<?php } else { ?>
<h1 class="title-post" itemprop="name"><?php echo $p->title ?></h1>
@ -18,22 +18,22 @@
<span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->authorName; ?></a></span> -
<span><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span>
</div>
<?php if (!empty($p->image)) { ?>
<?php if ($p->image) { ?>
<div class="featured-image">
<a href="<?php echo $p->url ?>"><img src="<?php echo $p->image; ?>" alt="<?php echo $p->title ?>"/></a>
</div>
<?php } ?>
<?php if (!empty($p->video)) { ?>
<?php if ($p->video) { ?>
<div class="featured-video">
<iframe src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" width="560" height="315" frameborder="0" allowfullscreen></iframe>
</div>
<?php } ?>
<?php if (!empty($p->audio)) { ?>
<?php if ($p->audio) { ?>
<div class="featured-audio">
<iframe width="560" height="315" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&amp;auto_play=false&amp;visual=true"></iframe>
</div>
<?php } ?>
<?php if (!empty($p->quote)) { ?>
<?php if ($p->quote) { ?>
<div class="featured-quote">
<blockquote><?php echo $p->quote ?></blockquote>
</div>
@ -68,10 +68,10 @@
<?php endif; ?>
</div>
<div class="postnav">
<?php if (!empty($next)): ?>
<?php if ($next): ?>
<span><a href="<?php echo($next['url']); ?>" class="pagination-arrow newer" rel="next"><?php echo($next['title']); ?></a></span>
<?php endif; ?>
<?php if (!empty($prev)): ?>
<?php if ($prev): ?>
<span><a href="<?php echo($prev['url']); ?>" class="pagination-arrow older" rel="prev"><?php echo($prev['title']); ?></a></span>
<?php endif; ?>
</div>


+ 5
- 5
themes/readable/profile.html.php View File

@ -1,5 +1,5 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<div class="profile-wrapper" itemprop="accountablePerson" itemscope="itemscope">
@ -9,7 +9,7 @@
</div>
</div>
<h2 class="post-index"><?php echo i18n('Post_by_author');?></h2>
<?php if (!empty($posts)) { ?>
<?php if ($posts) { ?>
<ul class="post-list">
<?php foreach ($posts as $p): ?>
<li class="item">
@ -18,12 +18,12 @@
</li>
<?php endforeach; ?>
</ul>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<?php if ($pagination['prev'] || $pagination['next']): ?>
<div class="pager">
<?php if (!empty($pagination['prev'])): ?>
<?php if ($pagination['prev']): ?>
<span><a href="?page=<?php echo $page - 1 ?>" class="pagination-arrow newer" rel="prev"><?php echo i18n('Newer');?></a></span>
<?php endif; ?>
<?php if (!empty($pagination['next'])): ?>
<?php if ($pagination['next']): ?>
<span><a href="?page=<?php echo $page + 1 ?>" class="pagination-arrow older" rel="next"><?php echo i18n('Older');?></a></span>
<?php endif; ?>
</div>


+ 1
- 1
themes/readable/static.html.php View File

@ -1,5 +1,5 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (!empty($breadcrumb)): ?>
<?php if ($breadcrumb): ?>
<div class="breadcrumb" xmlns:v="http://rdf.data-vocabulary.org/#"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<?php if (login()) { echo tab($p); } ?>


+ 14
- 14
themes/twentyfifteen/main.html.php View File

@ -1,42 +1,42 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (isset($is_category)):?>
<?php if ($is_category):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Category');?>: <?php echo $category->title;?></h1><div class="taxonomy-description"><?php echo $category->body;?></div></header>
<?php endif;?>
<?php if (isset($is_tag)):?>
<?php if ($is_tag):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Tags');?>: <?php echo $tag->title;?></h1></header>
<?php endif;?>
<?php if (isset($is_archive)):?>
<?php if ($is_archive):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Archives');?>: <?php echo $archive->title;?></h1></header>
<?php endif;?>
<?php if (isset($is_search)):?>
<?php if ($is_search):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Search');?>: <?php echo $search->title;?></h1></header>
<?php endif;?>
<?php if (isset($is_type)):?>
<?php if ($is_type):?>
<header class="page-header"><h1 class="page-title">Type: <?php echo ucfirst($type->title);?></h1></header>
<?php endif;?>
<?php foreach ($posts as $p): ?>
<article class="post type-post hentry <?php if (!empty($p->image) || !empty ($p->audio) || !empty ($p->video)):?>has-post-thumbnail<?php endif;?>">
<?php if (!empty($p->image)):?>
<article class="post type-post hentry <?php if ($p->image || $p->audio || $p->video):?>has-post-thumbnail<?php endif;?>">
<?php if ($p->image):?>
<div class="post-thumbnail">
<img style="width:100%;" title="<?php echo $p->title; ?>" alt="<?php echo $p->title; ?>" class="attachment-post-thumbnail wp-post-image" src="<?php echo $p->image; ?>">
</div>
<?php endif; ?>
<?php if (!empty($p->audio)):?>
<?php if ($p->audio):?>
<div class="post-thumbnail">
<iframe width="100%" height="200px" class="embed-responsive-item" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&amp;auto_play=false&amp;visual=true"></iframe>
</div>
<?php endif; ?>
<?php if (!empty($p->video)):?>
<?php if ($p->video):?>
<div class="post-thumbnail">
<iframe width="100%" height="315px" class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" frameborder="0" allowfullscreen></iframe>
</div>
<?php endif; ?>
<?php if (!empty($p->quote)):?>
<?php if ($p->quote):?>
<div class="post-blockquote">
<blockquote class="quote"><?php echo $p->quote ?></blockquote>
</div>
<?php endif; ?>
<?php if (!empty($p->link)) { ?>
<?php if ($p->link) { ?>
<header class="entry-header">
<div class="post-link"><h2 class="entry-title"><a target="_blank" href="<?php echo $p->url; ?>"><?php echo $p->title; ?></a></h2></div>
</header>
@ -73,14 +73,14 @@
</footer>
</article>
<?php endforeach; ?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<?php if ($pagination['prev'] || $pagination['next']): ?>
<div class="navigation pagination">
<div class="nav-links">
<?php if (!empty($pagination['prev'])): ?>
<?php if ($pagination['prev']): ?>
<a class="prev page-numbers" href="?page=<?php echo $page - 1 ?>">«</a>
<?php endif; ?>
<span class="page-numbers"><?php echo $pagination['pagenum'];?></span>
<?php if (!empty($pagination['next'])): ?>
<?php if ($pagination['next']): ?>
<a class="next page-numbers" href="?page=<?php echo $page + 1 ?>">»</a>
<?php endif; ?>
</div>


+ 7
- 7
themes/twentyfifteen/post.html.php View File

@ -1,21 +1,21 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<article class="post type-post hentry <?php if (!empty($p->image) || !empty ($p->audio) || !empty ($p->video)):?>has-post-thumbnail<?php endif;?>">
<?php if (!empty($p->image)):?>
<article class="post type-post hentry <?php if ($p->image || $p->audio || $p->video):?>has-post-thumbnail<?php endif;?>">
<?php if ($p->image):?>
<div class="post-thumbnail">
<img style="width:100%;" title="<?php echo $p->title; ?>" alt="<?php echo $p->title; ?>" class="attachment-post-thumbnail wp-post-image" src="<?php echo $p->image; ?>">
</div>
<?php endif; ?>
<?php if (!empty($p->audio)):?>
<?php if ($p->audio):?>
<div class="post-thumbnail">
<iframe width="100%" height="200px" class="embed-responsive-item" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&amp;auto_play=false&amp;visual=true"></iframe>
</div>
<?php endif; ?>
<?php if (!empty($p->video)):?>
<?php if ($p->video):?>
<div class="post-thumbnail">
<iframe width="100%" height="315px" class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" frameborder="0" allowfullscreen></iframe>
</div>
<?php endif; ?>
<?php if (!empty($p->quote)):?>
<?php if ($p->quote):?>
<div class="post-blockquote">
<blockquote class="quote"><?php echo $p->quote ?></blockquote>
</div>
@ -88,10 +88,10 @@
<nav role="navigation" class="navigation post-navigation">
<h2 class="screen-reader-text">Post navigation</h2>
<div class="nav-links">
<?php if (!empty($prev)): ?>
<?php if ($prev): ?>
<div class="nav-previous"><a style="background-image: url(<?php echo($prev['image']); ?>);<?php if (!empty($prev['image'])):?>color:#fff;<?php endif;?>" rel="prev" href="<?php echo($prev['url']); ?>"><span style="<?php if (!empty($prev['image'])):?>color:#fff;<?php endif;?>" aria-hidden="true" class="meta-nav"><?php echo i18n('Prev');?></span> <span class="screen-reader-text">Previous post:</span> <span class="post-title"><?php echo($prev['title']); ?></span></a></div>
<?php endif; ?>
<?php if (!empty($next)): ?>
<?php if ($next): ?>
<div class="nav-next"><a style="background-image: url(<?php echo($next['image']); ?>);<?php if (!empty($next['image'])):?>color:#fff;<?php endif;?>" rel="next" href="<?php echo($next['url']); ?>"><span style="<?php if (!empty($next['image'])):?>color:#fff;<?php endif;?>" aria-hidden="true" class="meta-nav"><?php echo i18n('Next');?></span> <span class="screen-reader-text">Next post:</span> <span class="post-title"><?php echo($next['title']); ?></span></a></div>
<?php endif; ?>
</div>


+ 5
- 5
themes/twentyfifteen/profile.html.php View File

@ -6,7 +6,7 @@
<div class="entry-content">
<?php echo $about ?>
<h2 class="post-index"><?php echo i18n('Post_by_author');?></h2>
<?php if (!empty($posts)) { ?>
<?php if ($posts) { ?>
<ul class="post-list">
<?php foreach ($posts as $p): ?>
<li class="item">
@ -20,15 +20,15 @@
} ?>
</div>
</article>
<?php if (!empty($posts)) { ?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<?php if ($posts) { ?>
<?php if ($pagination['prev'] || $pagination['next']): ?>
<div class="navigation pagination">
<div class="nav-links">
<?php if (!empty($pagination['prev'])): ?>
<?php if ($pagination['prev']): ?>
<a class="prev page-numbers" href="?page=<?php echo $page - 1 ?>">«</a>
<?php endif; ?>
<span class="page-numbers"><?php echo $pagination['pagenum'];?></span>
<?php if (!empty($pagination['next'])): ?>
<?php if ($pagination['next']): ?>
<a class="next page-numbers" href="?page=<?php echo $page + 1 ?>">»</a>
<?php endif; ?>
</div>


+ 13
- 13
themes/twentysixteen/main.html.php View File

@ -1,31 +1,31 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (isset($is_category)):?>
<?php if ($is_category):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Category');?>: <?php echo $category->title;?></h1><div class="taxonomy-description"><?php echo $category->body;?></div></header>
<?php endif;?>
<?php if (isset($is_tag)):?>
<?php if ($is_tag):?>
<header class="page-header"><h1 class="page-title">Tag: <?php echo $tag->title;?></h1></header>
<?php endif;?>
<?php if (isset($is_archive)):?>
<?php if ($is_archive):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Archives');?>: <?php echo $archive->title;?></h1></header>
<?php endif;?>
<?php if (isset($is_search)):?>
<?php if ($is_search):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Search');?>: <?php echo $search->title;?></h1></header>
<?php endif;?>
<?php if (isset($is_type)):?>
<?php if ($is_type):?>
<header class="page-header"><h1 class="page-title">Type: <?php echo ucfirst($type->title);?></h1></header>
<?php endif;?>
<?php foreach ($posts as $p):?>
<article class="post <?php if ($p->type == 'post') {echo 'format-standard';} else { echo 'format-' . $p->type;} ?> hentry single">
<header class="entry-header">
<?php if (!empty($p->link)) {?>
<?php if ($p->link) {?>
<div class="post-link"><h2 class="entry-title"><a target="_blank" href="<?php echo $p->link;?>"><?php echo $p->title;?></a></h2></div>
<?php } else { ?>
<h2 class="entry-title"><a href="<?php echo $p->url;?>"><?php echo $p->title;?></a></h2>
<?php } ?>
</header><!-- .entry-header -->
<?php if (!empty($p->image)):?>
<?php if ($p->image):?>
<a class="post-thumbnail" href="<?php echo $p->url;?>"><img alt="<?php echo $p->title;?>" src="<?php echo $p->image;?>" width="100%"/></a>
<?php endif;?>
@ -33,13 +33,13 @@
<div class="content">
<div class="clearfix text-formatted field field--name-body">
<div class="content">
<?php if (!empty($p->quote)):?>
<?php if ($p->quote):?>
<blockquote><?php echo $p->quote;?></blockquote>
<?php endif;?>
<?php if (!empty($p->video)):?>
<?php if ($p->video):?>
<span class="embed-youtube"><iframe width="100%" height="315px" class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" frameborder="0" allowfullscreen></iframe></span>
<?php endif; ?>
<?php if (!empty($p->audio)):?>
<?php if ($p->audio):?>
<span class="embed-soundcloud"><iframe width="100%" height="200px" class="embed-responsive-item" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&amp;auto_play=false&amp;visual=true"></iframe></span>
<?php endif; ?>
<?php echo get_teaser($p->body, $p->url);?>
@ -64,14 +64,14 @@
</article><!-- #post-## -->
<?php endforeach;?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<?php if ($pagination['prev'] || $pagination['next']): ?>
<div class="navigation pagination">
<div class="nav-links">
<?php if (!empty($pagination['prev'])): ?>
<?php if ($pagination['prev']): ?>
<a class="prev page-numbers" href="?page=<?php echo $page - 1 ?>">«</a>
<?php endif; ?>
<span class="page-numbers"><?php echo $pagination['pagenum'];?></span>
<?php if (!empty($pagination['next'])): ?>
<?php if ($pagination['next']): ?>
<a class="next page-numbers" href="?page=<?php echo $page + 1 ?>">»</a>
<?php endif; ?>
</div>


+ 7
- 7
themes/twentysixteen/post.html.php View File

@ -3,14 +3,14 @@
<header class="entry-header">
<?php if (login()) { echo tab($p); } ?>
<?php if (!empty($p->link)) {?>
<?php if ($p->link) {?>
<div class="post-link"><h1 class="entry-title"><a target="_blank" href="<?php echo $p->link;?>"><?php echo $p->title;?></a></h1></div>
<?php } else { ?>
<h1 class="entry-title"><?php echo $p->title;?></h1>
<?php } ?>
</header><!-- .entry-header -->
<?php if (!empty($p->image)):?>
<?php if ($p->image):?>
<a class="post-thumbnail" href="<?php echo $p->url;?>"><img alt="<?php echo $p->title;?>" src="<?php echo $p->image;?>" width="100%"/></a>
<?php endif;?>
@ -18,13 +18,13 @@
<div class="content">
<div class="clearfix text-formatted field field--name-body">
<div class="content">
<?php if (!empty($p->quote)):?>
<?php if ($p->quote):?>
<blockquote><?php echo $p->quote;?></blockquote>
<?php endif;?>
<?php if (!empty($p->video)):?>
<?php if ($p->video):?>
<span class="embed-youtube"><iframe width="100%" height="315px" class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" frameborder="0" allowfullscreen></iframe></span>
<?php endif; ?>
<?php if (!empty($p->audio)):?>
<?php if ($p->audio):?>
<span class="embed-soundcloud"><iframe width="100%" height="200px" class="embed-responsive-item" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&amp;auto_play=false&amp;visual=true"></iframe></span>
<?php endif; ?>
<?php echo $p->body;?>
@ -98,10 +98,10 @@
<nav role="navigation" class="navigation post-navigation">
<h2 class="screen-reader-text">Post navigation</h2>
<div class="nav-links">
<?php if (!empty($prev)): ?>
<?php if ($prev): ?>
<div class="nav-previous"><a rel="prev" href="<?php echo($prev['url']); ?>"><span aria-hidden="true" class="meta-nav"><?php echo i18n('Prev');?></span> <span class="screen-reader-text">Previous post:</span> <span class="post-title"><?php echo($prev['title']); ?></span></a></div>
<?php endif;?>
<?php if (!empty($next)): ?>
<?php if ($next): ?>
<div class="nav-next"><a rel="next" href="<?php echo($next['url']); ?>"><span aria-hidden="true" class="meta-nav"><?php echo i18n('Next');?></span> <span class="screen-reader-text">Next post:</span> <span class="post-title"><?php echo($next['title']); ?></span></a></div>
<?php endif;?>
</div>

+ 5
- 5
themes/twentysixteen/profile.html.php View File

@ -6,7 +6,7 @@
<div class="entry-content">
<?php echo $about ?>
<h2 class="post-index"><?php echo i18n('Post_by_author');?></h2>
<?php if (!empty($posts)) { ?>
<?php if ($posts) { ?>
<ul class="post-list">
<?php foreach ($posts as $p): ?>
<li class="item">
@ -20,15 +20,15 @@
} ?>
</div>
</article>
<?php if (!empty($posts)) { ?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<?php if ($posts) { ?>
<?php if ($pagination['prev'] || $pagination['next']): ?>
<div class="navigation pagination">
<div class="nav-links">
<?php if (!empty($pagination['prev'])): ?>
<?php if ($pagination['prev']): ?>
<a class="prev page-numbers" href="?page=<?php echo $page - 1 ?>">«</a>
<?php endif; ?>
<span class="page-numbers"><?php echo $pagination['pagenum'];?></span>
<?php if (!empty($pagination['next'])): ?>
<?php if ($pagination['next']): ?>
<a class="next page-numbers" href="?page=<?php echo $page + 1 ?>">»</a>
<?php endif; ?>
</div>


Loading…
Cancel
Save