本文整理汇总了PHP中Tags::format_top方法的典型用法代码示例。如果您正苦于以下问题:PHP Tags::format_top方法的具体用法?PHP Tags::format_top怎么用?PHP Tags::format_top使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tags
的用法示例。
在下文中一共展示了Tags::format_top方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count
<li>Torrent groups: <?php
echo $NumGroups;
?>
</li>
<li>Artists: <?php
echo count($ArtistCount);
?>
</li>
</ul>
</div>
<div class="box box_tags">
<div class="head"><strong>Top Tags</strong></div>
<div class="pad">
<ol style="padding-left: 5px;">
<?php
Tags::format_top(5);
?>
</ol>
</div>
</div>
<div class="box box_artists">
<div class="head"><strong>Top Artists</strong></div>
<div class="pad">
<?php
$Indent = "\t\t\t\t";
if (count($ArtistCount) > 0) {
echo "{$Indent}<ol style=\"padding-left: 5px;\">\n";
uasort($ArtistCount, 'compare');
$i = 0;
foreach ($ArtistCount as $ID => $Artist) {
$i++;
示例2: count
user<?php
echo count($UserAdditions) > 1 ? 's' : '';
?>
</li>
<li>Last updated: <?php
echo time_diff($Updated);
?>
</li>
</ul>
</div>
<div class="box box_tags">
<div class="head"><strong>Top Tags</strong></div>
<div class="pad">
<ol style="padding-left: 5px;">
<?php
Tags::format_top(5, 'collages.php?action=search&tags=');
?>
</ol>
</div>
</div>
<?php
if (!empty($TopArtists)) {
?>
<div class="box box_artists">
<div class="head"><strong>Top Artists</strong></div>
<div class="pad">
<ol style="padding-left: 5px;">
<?php
uasort($TopArtists, 'compare');
$i = 0;
foreach ($TopArtists as $ID => $Artist) {
示例3: number_format
?>
>Prefer Bonus Tracks</option>
</select>
<input type="submit" style="width: 210px;" value="Download" />
</form>
</div>
</div>
<?php
}
//if (check_perms('zip_downloader'))
?>
<div class="box box_tags">
<div class="head"><strong>Tags</strong></div>
<ul class="stats nobullet">
<?php
Tags::format_top(50, 'torrents.php?taglist=', $Name);
?>
</ul>
</div>
<?php
// Stats
?>
<div class="box box_info box_statistics_artist">
<div class="head"><strong>Statistics</strong></div>
<ul class="stats nobullet">
<li>Number of groups: <?php
echo number_format($NumGroups);
?>
</li>
<li>Number of torrents: <?php
echo number_format($NumTorrents);