本文整理汇总了PHP中Tags::css_name方法的典型用法代码示例。如果您正苦于以下问题:PHP Tags::css_name方法的具体用法?PHP Tags::css_name怎么用?PHP Tags::css_name使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tags
的用法示例。
在下文中一共展示了Tags::css_name方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
_torrents">
<a href="#" class="tooltip show_torrents_link" onclick="toggle_group(<?php
echo $GroupID;
?>
, this, event);" title="Collapse this group. Hold [Command] <em>(Mac)</em> or [Ctrl] <em>(PC)</em> while clicking to collapse all groups on this page."></a>
</div>
</td>
<td class="center">
<div title="<?php
echo $TorrentTags->title();
?>
" class="tooltip <?php
echo Format::css_category($GroupCategoryID);
?>
<?php
echo $TorrentTags->css_name();
?>
"></div>
</td>
<td colspan="5">
<strong><?php
echo $DisplayName;
?>
</strong>
<?php
if (Bookmarks::has_bookmarked('torrent', $GroupID)) {
?>
<span class="remove_bookmark float_right">
<a style="float: right;" href="#" id="bookmarklink_torrent_<?php
echo $GroupID;
?>
示例2: generate_torrent_table
//.........这里部分代码省略.........
if ($GroupCategoryID == 1) {
$ExtraInfo .= ' / ';
}
$ExtraInfo .= Format::torrent_label('Snatched!');
}
if ($ExtraInfo != '') {
$ExtraInfo = "- [{$ExtraInfo}]";
}
}
$TorrentTags = new Tags($TagsList);
//Get report info, use the cache if available, if not, add to it.
$Reported = false;
$Reports = Torrents::get_reports($TorrentID);
if (count($Reports) > 0) {
$Reported = true;
}
// print row
?>
<tr class="torrent row<?php
echo $Highlight . ($IsBookmarked ? ' bookmarked' : '') . ($IsSnatched ? ' snatched_torrent' : '');
?>
">
<td style="padding: 8px; text-align: center;"><strong><?php
echo $Rank;
?>
</strong></td>
<td class="center cats_col"><div title="<?php
echo $TorrentTags->title();
?>
" class="tooltip <?php
echo Format::css_category($GroupCategoryID);
?>
<?php
echo $TorrentTags->css_name();
?>
"></div></td>
<td class="big_info">
<?php
if ($LoggedUser['CoverArt']) {
?>
<div class="group_image float_left clear">
<?php
ImageTools::cover_thumb($WikiImage, $GroupCategoryID);
?>
</div>
<?php
}
?>
<div class="group_info clear">
<span><a href="torrents.php?action=download&id=<?php
echo $TorrentID;
?>
&authkey=<?php
echo $LoggedUser['AuthKey'];
?>
&torrent_pass=<?php
echo $LoggedUser['torrent_pass'];
?>
" title="Download" class="brackets tooltip">DL</a></span>
<strong><?php
echo $DisplayName;
?>
</strong> <?php
echo $ExtraInfo;