Clean up the themes

This commit is contained in:
danpros 2020-05-06 10:16:33 +07:00
commit fb6fac0af1
24 changed files with 61 additions and 43 deletions

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

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>

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>

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>