本文整理匯總了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;