Merge branch 'extended-cookie'
[scuttle] / templates / tags.tpl.php
1 <?php
2 $this->includeTemplate($GLOBALS['top_include']);
3 if ($tags && count($tags) > 0) {
4 ?>
5
6 <p id="sort">
7     <?php echo T_("Sort by:"); ?>
8     <a href="?sort=alphabet_asc"><?php echo T_("Alphabet"); ?></a><span> / </span>
9     <a href="?sort=popularity_asc"><?php echo T_("Popularity"); ?></a>
10 </p>
11 <p class="tags">
12
13 <?php
14 $contents = '';
15 foreach ($tags as $row) {
16     $entries = T_ngettext('bookmark', 'bookmarks', $row['bCount']);
17     $contents .= '<a href="'. sprintf($cat_url, $user, filter($row['tag'], 'url')) .'" title="'. $row['bCount'] .' '. $entries .'" rel="tag" style="font-size:'. $row['size'] .'">'. filter($row['tag']) .'</a> ';
18 }
19 echo $contents ."\n";
20 ?>
21
22 </p>
23
24 <?php
25 }
26 $this->includeTemplate($GLOBALS['bottom_include']);
27 ?>

Benjamin Mako Hill || Want to submit a patch?