Browse Source

Clean up the themes

pull/400/head
danpros 5 years ago
parent
commit
fb6fac0af1
24 changed files with 61 additions and 43 deletions
  1. +10
    -8
      themes/blog/layout.html.php
  2. +2
    -3
      themes/blog/main.html.php
  3. +2
    -3
      themes/blog/post.html.php
  4. +1
    -1
      themes/blog/profile.html.php
  5. +4
    -4
      themes/clean/css/style.css
  6. +10
    -1
      themes/clean/layout.html.php
  7. +1
    -1
      themes/clean/main.html.php
  8. +1
    -3
      themes/clean/post.html.php
  9. +1
    -1
      themes/clean/profile.html.php
  10. +10
    -1
      themes/default/layout.html.php
  11. +1
    -1
      themes/default/main.html.php
  12. +1
    -2
      themes/default/post.html.php
  13. +1
    -1
      themes/default/profile.html.php
  14. +7
    -1
      themes/logs/layout.html.php
  15. +1
    -1
      themes/logs/main.html.php
  16. +1
    -3
      themes/logs/post.html.php
  17. +1
    -1
      themes/logs/profile.html.php
  18. +1
    -1
      themes/twentyfifteen/main.html.php
  19. +1
    -1
      themes/twentyfifteen/post.html.php
  20. +1
    -1
      themes/twentyfifteen/profile.html.php
  21. +0
    -1
      themes/twentysixteen/layout.html.php
  22. +1
    -1
      themes/twentysixteen/main.html.php
  23. +1
    -1
      themes/twentysixteen/post.html.php
  24. +1
    -1
      themes/twentysixteen/profile.html.php

+ 10
- 8
themes/blog/layout.html.php View File

@ -51,7 +51,6 @@
<p class="desc"><?php echo blog_tagline();?></p>
<ul class="social list-inline">
<li><a href="<?php echo config('social.twitter');?>"><i class="fa fa-twitter"></i></a></li>
<li><a href="<?php echo config('social.google');?>"><i class="fa fa-google-plus"></i></a></li>
<li><a href="<?php echo config('social.facebook');?>"><i class="fa fa-facebook"></i></a></li>
<li><a href="<?php echo config('social.tumblr');?>"><i class="fa fa-tumblr"></i></a></li>
<li><a href="<?php echo site_url();?>feed/rss"><i class="fa fa-rss"></i></a></li>
@ -172,14 +171,17 @@
</div><!--//content-->
</div><!--//section-inner-->
</aside><!--//section-->
<aside class="tags aside section">
<aside class="category-list aside section">
<div class="section-inner">
<h2 class="heading">Tags</h2>
<div class="tag-cloud">
<?php $tags = tag_cloud(true);?>
<?php foreach ($tags as $tag => $count):?>
<a class="more-link" href="<?php echo site_url();?>tag/<?php echo $tag;?>"><?php echo tag_i18n($tag);?></a>
<?php endforeach;?>
<h2 class="heading"><?php echo i18n("Popular_tags");?></h2>
<div class="content">
<?php $i = 1; $tags = tag_cloud(true); arsort($tags); ?>
<ul>
<?php foreach ($tags as $tag => $count):?>
<li><a href="<?php echo site_url();?>tag/<?php echo $tag;?>"><?php echo tag_i18n($tag);?> (<?php echo $count;?>)</a></li>
<?php if ($i++ >= 5) break;?>
<?php endforeach;?>
</ul>
</div><!--//content-->
</div><!--//section-inner-->
</aside><!--//section-->


+ 2
- 3
themes/blog/main.html.php View File

@ -58,7 +58,7 @@
<h2 class="title" itemprop="headline"><a href="<?php echo $p->url;?>"><?php echo $p->title;?></a></h2>
<?php } ?>
<p class="meta">
<span class="date" itemprop="datePublished"><?php echo date('d F Y', $p->date) ?></span> - Posted in
<span class="date" itemprop="datePublished"><?php echo format_date($p->date) ?></span> - Posted in
<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()) { ?>
@ -77,8 +77,7 @@
<?php endif;?>
<span class="share pull-right">
<a target="_blank" class="first" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fa fa-facebook"></i></a>
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fa fa-twitter"></i></a>
<a target="_blank" class="last" href="https://plus.google.com/share?url=<?php echo $p->url ?>"><i class="fa fa-google-plus"></i></a>
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fa fa-twitter"></i></a>
</span>
<div style="clear:both;"></div>
</div>


+ 2
- 3
themes/blog/post.html.php View File

@ -33,7 +33,7 @@
<h1 class="title" itemprop="headline"><?php echo $p->title;?></h1>
<?php } ?>
<p class="meta">
<span class="date" itemprop="datePublished"><?php echo date('d F Y', $p->date) ?></span> - Posted in
<span class="date" itemprop="datePublished"><?php echo format_date($p->date) ?></span> - Posted in
<span itemprop="articleSection"><?php echo $p->category;?></span> by
<span itemprop="author"><a href="<?php echo $p->authorUrl;?>"><?php echo $p->author;?></a></span>
</p>
@ -50,8 +50,7 @@
<?php } ?>
<span class="share pull-right">
<a target=" " class="first" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fa fa-facebook"></i></a>
<a target=" " href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fa fa-twitter"></i></a>
<a target=" " class="last" href="https://plus.google.com/share?url=<?php echo $p->url ?>"><i class="fa fa-google-plus"></i></a>
<a target=" " href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fa fa-twitter"></i></a>
</span>
<div style="clear:both;"></div>
</div>


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

@ -24,7 +24,7 @@
$i++; ?>
<li class="<?php echo $class; ?>">
<span><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></span> on
<span><?php echo date('d F Y', $p->date) ?></span> - Posted in <span><?php echo $p->category ?></span>
<span><?php echo format_date($p->date) ?></span> - Posted in <span><?php echo $p->category ?></span>
</li>
<?php endforeach; ?>
</ul>


+ 4
- 4
themes/clean/css/style.css View File

@ -211,16 +211,16 @@ h6 {
text-decoration: none;
}
.infront .post, .intag .post, .inarchive .post, .insearch .post, .inprofile .post {
.in-front .post, .in-tag .post, .in-archive .post, .in-search .post, .in-profile .post {
border-bottom: 1px solid #dfdfdf;
padding: 30px 0 10px 0;
}
.infront .post.first {
.in-front .post.first {
padding-top: 50px;
}
.intag .post.first, .inarchive .post.first, .insearch .post.first, .inprofile .post.first {
.in-tag .post.first, .in-archive .post.first, .in-search .post.first, .in-profile .post.first {
padding-top: 0px;
}
@ -831,7 +831,7 @@ aside .copyright p {
padding-top: 0px;
}
.infront .post, .intag .post, .inarchive .post, .insearch .post {
.in-front .post, .in-tag .post, .in-archive .post, .in-search .post {
padding: 30px 0 20px 0;
}


+ 10
- 1
themes/clean/layout.html.php View File

@ -35,7 +35,16 @@
<div class="recent"><h3><?php echo i18n('Recent_posts');?></h3><?php echo recent_posts() ?></div>
<div class="archive"><h3><?php echo i18n('Archives');?></h3><?php echo archive_list() ?></div>
<div class="category-list"><h3><?php echo i18n('Category');?></h3><?php echo category_list() ?></div>
<div class="tagcloud"><h3>Tags</h3><?php echo tag_cloud() ?></div>
<div class="tagcloud">
<h3>Tags</h3>
<?php $i = 1; $tags = tag_cloud(true); arsort($tags); ?>
<ul>
<?php foreach ($tags as $tag => $count):?>
<li><a href="<?php echo site_url();?>tag/<?php echo $tag;?>"><?php echo tag_i18n($tag);?> (<?php echo $count;?>)</a></li>
<?php if ($i++ >= 5) break;?>
<?php endforeach;?>
</ul>
</div>
<div class="copyright"><?php echo copyright() ?></div>
</aside>
<section id="content">


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

@ -29,7 +29,7 @@
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></h2>
<?php } ?>
<div class="date">
<span itemprop="datePublished"><?php echo date('d F Y', $p->date) ?></span> - Posted in
<span itemprop="datePublished"><?php echo format_date($p->date) ?></span> - Posted in
<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()) { ?> -


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

@ -11,7 +11,7 @@
<h1 class="title-post" itemprop="name"><?php echo $p->title ?></h1>
<?php } ?>
<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 format_date($p->date) ?></a></span>
- Posted in
<span itemprop="articleSection"><?php echo $p->category ?></span> by
<span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span> -
@ -54,8 +54,6 @@
href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>">Twitter</a>
<a class="facebook" target="_blank"
href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>">Facebook</a>
<a class="googleplus" target="_blank"
href="https://plus.google.com/share?url=<?php echo $p->url ?>">Google+</a>
</div>
</div>
<div class="related">


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

@ -22,7 +22,7 @@
$i++; ?>
<li class="<?php echo $class; ?>">
<span><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></span> on
<span><?php echo date('d F Y', $p->date) ?></span> - Posted in <span><?php echo $p->tag ?></span>
<span><?php echo format_date($p->date) ?></span> - Posted in <span><?php echo $p->tag ?></span>
</li>
<?php endforeach; ?>
</ul>


+ 10
- 1
themes/default/layout.html.php View File

@ -62,7 +62,16 @@
<div class="inner"><h3>Archive</h3><?php echo archive_list() ?></div>
</div>
<div class="tagcloud column">
<div class="inner"><h3>Tags</h3><?php echo tag_cloud() ?></div>
<div class="inner">
<h3>Tags</h3>
<?php $i = 1; $tags = tag_cloud(true); arsort($tags); ?>
<ul>
<?php foreach ($tags as $tag => $count):?>
<li><a href="<?php echo site_url();?>tag/<?php echo $tag;?>"><?php echo tag_i18n($tag);?> (<?php echo $count;?>)</a></li>
<?php if ($i++ >= 5) break;?>
<?php endforeach;?>
</ul>
</div>
</div>
<div class="social column">
<div class="inner"><h3>Follow</h3><?php echo social() ?></div>


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

@ -29,7 +29,7 @@
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></h2>
<?php } ?>
<div class="date">
<span itemprop="datePublished"><?php echo date('d F Y', $p->date) ?></span> - Posted in
<span itemprop="datePublished"><?php echo format_date($p->date) ?></span> - Posted in
<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()) { ?> -


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

@ -11,7 +11,7 @@
<h1 class="title-post" itemprop="name"><?php echo $p->title ?></h1>
<?php } ?>
<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 format_date($p->date) ?></a></span>
- Posted in
<span itemprop="articleSection"><?php echo $p->category ?></span> by
<span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span> -
@ -52,7 +52,6 @@
<h4>Share this post</h4>
<a class="twitter" target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>">Twitter</a>
<a class="facebook" target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>">Facebook</a>
<a class="googleplus" target="_blank" href="https://plus.google.com/share?url=<?php echo $p->url ?>">Google+</a>
</div>
</div>
<div class="related">


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

@ -22,7 +22,7 @@
$i++; ?>
<li class="<?php echo $class; ?>">
<span><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></span> on
<span><?php echo date('d F Y', $p->date) ?></span> - Posted in <span><?php echo $p->tag ?></span>
<span><?php echo format_date($p->date) ?></span> - Posted in <span><?php echo $p->tag ?></span>
</li>
<?php endforeach; ?>
</ul>


+ 7
- 1
themes/logs/layout.html.php View File

@ -80,7 +80,13 @@
</div>
<div class="tagcloud">
<h3>Tags</h3>
<?php echo tag_cloud() ?>
<?php $i = 1; $tags = tag_cloud(true); arsort($tags); ?>
<ul>
<?php foreach ($tags as $tag => $count):?>
<li><a href="<?php echo site_url();?>tag/<?php echo $tag;?>"><?php echo tag_i18n($tag);?> (<?php echo $count;?>)</a></li>
<?php if ($i++ >= 5) break;?>
<?php endforeach;?>
</ul>
</div>
</aside>
</div>


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

@ -29,7 +29,7 @@
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></h2>
<?php } ?>
<div class="date">
<span itemprop="datePublished"><?php echo date('d F Y', $p->date) ?></span> - Posted in
<span itemprop="datePublished"><?php echo format_date($p->date) ?></span> - Posted in
<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()) { ?> -


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

@ -11,7 +11,7 @@
<h1 class="title-post" itemprop="name"><?php echo $p->title ?></h1>
<?php } ?>
<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 format_date($p->date) ?></a></span>
- Posted in
<span itemprop="articleSection"><?php echo $p->category ?></span> by
<span itemprop="author"><a href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></span> -
@ -54,8 +54,6 @@
href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>">Twitter</a>
<a class="facebook" target="_blank"
href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>">Facebook</a>
<a class="googleplus" target="_blank"
href="https://plus.google.com/share?url=<?php echo $p->url ?>">Google+</a>
</div>
</div>
<div class="related">


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

@ -22,7 +22,7 @@
$i++; ?>
<li class="<?php echo $class; ?>">
<span><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></span> on
<span><?php echo date('d F Y', $p->date) ?></span> - Posted in <span><?php echo $p->tag ?></span>
<span><?php echo format_date($p->date) ?></span> - Posted in <span><?php echo $p->tag ?></span>
</li>
<?php endforeach; ?>
</ul>


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

@ -50,7 +50,7 @@
</div>
<footer class="entry-footer">
<span class="posted-on">
<a href="<?php echo $p->url;?>" rel="permalink"><time class="entry-date published updated"><?php echo date('F d, Y', $p->date) ?></time></a>
<a href="<?php echo $p->url;?>" rel="permalink"><time class="entry-date published updated"><?php echo format_date($p->date) ?></time></a>
</span>
<span class="byline">
<span class="author vcard">


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

@ -48,7 +48,7 @@
</div>
<footer class="entry-footer">
<span class="posted-on">
<a href="<?php echo $p->url;?>" rel="permalink"><time class="entry-date published updated"><?php echo date('F d, Y', $p->date) ?></time></a>
<a href="<?php echo $p->url;?>" rel="permalink"><time class="entry-date published updated"><?php echo format_date($p->date) ?></time></a>
</span>
<span class="byline">
<span class="author vcard">


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

@ -19,7 +19,7 @@
$i++; ?>
<li class="<?php echo $class; ?>">
<span><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></span> on
<span><?php echo date('d F Y', $p->date) ?></span> - <?php echo i18n('Posted_in');?> <span><?php echo $p->tag ?></span>
<span><?php echo format_date($p->date) ?></span> - <?php echo i18n('Posted_in');?> <span><?php echo $p->tag ?></span>
</li>
<?php endforeach; ?>
</ul>


+ 0
- 1
themes/twentysixteen/layout.html.php View File

@ -135,7 +135,6 @@
<ul class="social-links-menu" id="menu-social-links">
<li><a href="<?php echo config('social.twitter');?>"><span class="screen-reader-text">Twitter</span></a></li>
<li><a href="<?php echo config('social.facebook');?>"><span class="screen-reader-text">Facebook</span></a></li>
<li><a href="<?php echo config('social.google');?>"><span class="screen-reader-text">Google+</span></a></li>
<li><a href="<?php echo config('social.github');?>"><span class="screen-reader-text">GitHub</span></a></li>
</ul>
</div>


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

@ -50,7 +50,7 @@
<footer class="entry-footer">
<span class="byline"><span class="author vcard"><a href="<?php echo $p->authorUrl;?>"><img alt="<?php echo $p->author;?>" src="<?php echo site_url();?>themes/twentysixteen/img/avatar.png" class="avatar avatar-49 grav-hashed grav-hijack" height="49" width="49"></a><span class="screen-reader-text">Author </span> <a class="url fn n" href="<?php echo $p->authorUrl;?>"><?php echo $p->author;?></a></span></span>
<span class="posted-on"><span class="screen-reader-text"><?php echo i18n('Posted_on');?> </span><a href="<?php echo $p->url;?>" rel="bookmark"><time class="entry-date published"><?php echo date('d F Y', $p->date) ?></time></a></span>
<span class="posted-on"><span class="screen-reader-text"><?php echo i18n('Posted_on');?> </span><a href="<?php echo $p->url;?>" rel="bookmark"><time class="entry-date published"><?php echo format_date($p->date) ?></time></a></span>
<span class="cat-links"><span class="screen-reader-text"><?php echo i18n('Category');?> </span><?php echo $p->category;?></span>
<span class="tags-links"><span class="screen-reader-text">Tags </span><?php echo $p->tag;?></span>
<?php if (disqus_count()) { ?>


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

@ -54,7 +54,7 @@
<footer class="entry-footer">
<span class="byline"><span class="author vcard"><a href="<?php echo $p->authorUrl;?>"><img alt="<?php echo $p->author;?>" title="<?php echo $p->author;?>" src="<?php echo site_url();?>themes/twentysixteen/img/avatar.png" class="avatar avatar-49 grav-hashed grav-hijack" height="49" width="49"/></a><span class="screen-reader-text">Author </span> <a class="url fn n" href="<?php echo $p->authorUrl;?>"><?php echo $p->author;?></a></span></span>
<span class="posted-on"><span class="screen-reader-text">Posted on </span><a href="<?php echo $p->url;?>" rel="bookmark"><time class="entry-date published"><?php echo date('d F Y', $p->date) ?></time></a></span>
<span class="posted-on"><span class="screen-reader-text">Posted on </span><a href="<?php echo $p->url;?>" rel="bookmark"><time class="entry-date published"><?php echo format_date($p->date) ?></time></a></span>
<span class="cat-links"><span class="screen-reader-text"><?php echo i18n('Category');?> </span><?php echo $p->category;?></span>


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

@ -19,7 +19,7 @@
$i++; ?>
<li class="<?php echo $class; ?>">
<span><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></span> on
<span><?php echo date('d F Y', $p->date) ?></span> - Posted in <span class="tags-links"><?php echo $p->tag ?></span>
<span><?php echo format_date($p->date) ?></span> - Posted in <span class="tags-links"><?php echo $p->tag ?></span>
</li>
<?php endforeach; ?>
</ul>


Loading…
Cancel
Save