Use the old style tag cloud

This commit is contained in:
danpros 2021-03-04 23:20:33 +07:00
commit 15a61242e4
7 changed files with 42 additions and 57 deletions

View file

@ -5,8 +5,6 @@
<title><?php echo $title;?></title>
<meta name="description" content="<?php echo $description; ?>"/>
<link rel="canonical" href="<?php echo $canonical; ?>" />
<?php if (publisher()): ?>
<link href="<?php echo publisher() ?>" rel="publisher" /><?php endif; ?>
<link rel="stylesheet" id="twentyfifteen-fonts-css" href="<?php echo site_url();?>themes/twentyfifteen/css/font.css" type="text/css" media="all">
<link rel="stylesheet" id="genericons-css" href="<?php echo site_url();?>themes/twentyfifteen/genericons/genericons.css" type="text/css" media="all">
<link rel="stylesheet" id="twentyfifteen-style-css" href="<?php echo site_url();?>themes/twentyfifteen/css/style_v2.css" type="text/css" media="all">
@ -101,14 +99,10 @@
<?php echo category_list() ?>
</aside>
<aside class="widget widget_meta">
<h2 class="widget-title"><?php echo i18n("Popular_tags");?></h2>
<?php $i = 1; $tags = tag_cloud(true); arsort($tags); ?>
<ul>
<?php foreach ($tags as $tag => $count):?>
<li><a class="more-link" 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>
<h2 class="widget-title"><?php echo i18n("Tags");?></h2>
<div class="tag-cloud">
<?php echo tag_cloud();?>
</div>
</aside>
</div>
</div>