本文整理汇总了PHP中bts函数的典型用法代码示例。如果您正苦于以下问题:PHP bts函数的具体用法?PHP bts怎么用?PHP bts使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bts函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bts
* - COMMENT_CONTROLS_BELOW
* - COMMENT_CONTROLS_ABOVE_BELOW
* - COMMENT_CONTROLS_HIDDEN
*
* Other variables:
* - $classes_array: Array of html class attribute values. It is flattened
* into a string within the variable $classes.
*
* @see template_preprocess_comment_wrapper()
*/
?>
<div id="comments" class="<?php
print $classes;
?>
">
<?php
if ($node->type != 'forum') {
?>
<h2 class="title"><?php
print bts('Comments');
?>
</h2>
<?php
}
?>
<?php
print $content;
?>
</div>
示例2: icoart
function icoart($k, $v, $c)
{
if (is_numeric($k)) {
$v = 'popup_popart___' . $k;
$ic = apps_arts_thumb($k);
$k = suj_of_id($k);
} else {
$ic = desk_icon($k, $v);
}
$ico = strpos($ic, '<') !== false ? btn('small', $ic) : mimes($k, $ic, 32);
return lj('" title="' . $k, $v, divb($c, $ico . ' ' . bts('display:block', $k)));
}
示例3: bts
<?php
}
?>
<div class="content">
<?php
print $content;
?>
<?php
if ($signature and $show_signatures) {
?>
<div class="user-signature clearfix">
<?php
print $signature;
?>
</div>
<?php
}
?>
</div>
</div> <!-- /.comment-body -->
</div> <!-- /.comment -->
<?php
if ($status == 'comment-preview') {
?>
<h2 class="title"><?php
print bts('Revise or post comment');
?>
</h2>
<?php
}
示例4: bts
?>
</span>
<span class="value"><?php
print $background;
?>
</span>
</div>
<?php
}
?>
<?php
if ($opinions) {
?>
<div class="opinions">
<span class="label"><?php
print bts('Opinion');
?>
</span>
<span class="value"><?php
print $opinions;
?>
</span>
</div>
<?php
}
?>
<?php
}
?>
</div>
<?php
示例5: rightarrow
function rightarrow()
{
return;
bts('float:right;', '►');
}
示例6: bts
}
?>
<?php
if ($display_submitted || $terms) {
?>
<div class="meta">
<?php
if ($display_submitted) {
?>
<span class="submitted">
<?php
if ($type == 'news') {
print bts('Submitted on !datetime', array('!datetime' => date('j M Y H:i:s T', $node->created)));
} else {
print bts('Submitted by !username on !datetime', array('!username' => $name, '!datetime' => date('j M Y H:i:s T', $node->created)));
}
?>
</span>
<?php
}
?>
<?php
if ($terms) {
?>
<div class="terms terms-inline"><?php
print $terms;
?>
</div>
<?php
示例7: l
?>
<?php
if ($pager) {
?>
<?php
print $pager;
?>
<?php
}
?>
<ul class="links">
<li class="forum first last">
<?php
print l(bts('Post new topic'), "node/add/team-forum/{$team_forum_id}");
?>
</li>
</ul>
<div class="clearfix"></div>
<?php
if ($attachment_after) {
?>
<div class="attachment attachment-after">
<?php
print $attachment_after;
?>
</div>
<?php
}
示例8: bts
</td>
</tr>
<?php
}
// Team forum
?>
<?php
}
// Team forums exist
?>
</tbody>
</table>
<div class="fine-print">
<p>
<?php
print bts('Please be responsible in what you write and do not create posts which are offensive or insulting. Offensive posts or threads may be deleted by forum moderators without warning or discussion. Do not respond to offensive postings. Click on the "report" button at the bottom of the post to call it to the attention of the moderators.');
?>
</p>
<p>
<?php
print bts('We also ask that you keep all discussion on the message boards related to @project or BOINC with the small exception of the Science message board where you are free to discuss anything relevant to the underlying science. Participants interested in broader discussions should post to unofficial forums for @project.', array('@project' => variable_get('site_name', bts('this project'))));
?>
</p>
<p>
<?php
print bts('These message boards now support BBCode tags only.');
?>
</p>
</div>
示例9: bts
<?php
}
?>
<?php
if ($feed_icon) {
?>
<div class="feed-icon">
<?php
print $feed_icon;
?>
</div>
<?php
}
?>
</div> <?php
/* class view */
?>
<?php
// Inject the task list for this workunit
//$view = views_get_view('boinc_workunit_tasks_all');
// Get the results of the view in order to retrieve the fields.
$myres = $view->result[0];
print '<div class="separator"></div>';
if ($myres->app_workunit_target_nresults > 0 and !$myres->workunit_canonical_resultid and !$myres->workunit_error_mask and !$myres->dontsuppresspending) {
print bts('Tasks are pending for this workunit.');
} else {
print views_embed_view('boinc_workunit_tasks_all', $display_id = 'page_1', arg(1));
}
示例10: l
if ($footer_message) {
?>
<div id="footer-message"><?php
print $footer_message;
?>
</div>
<?php
}
?>
<?php
if (user_access('create page content') or user_access('create news content')) {
?>
<div id="content-management-links">
<?php
print l(bts('Create content'), 'node/add');
?>
</div>
<?php
}
?>
<div class="clearfix"></div>
<?php
print $footer;
?>
</div>
</div></div> <!-- /.section, /#footer -->
<?php
示例11: variable_get
<?php
/**
* @file views-view-rss.tpl.php
* Default template for feed displays that use the RSS style.
*
* @ingroup views_templates
*/
// Set the feed description. Note that the title is set in the News view...
// that works there, this works here. Setting title here does not set the
// title in the RSS auto discovery link on the front page, and setting the
// description in the view does not allow the site_name variable.
$site_name = variable_get('site_name', 'BOINC');
$description = bts('The latest news from the @site_name project', array('@site_name' => $site_name));
print "<?xml";
?>
version="1.0" encoding="utf-8" <?php
print "?>";
?>
<rss version="2.0" xml:base="<?php
print $link;
?>
"<?php
print $namespaces;
?>
>
<channel>
<title><?php
print $title;
?>
</title>
示例12: mbd_color
function mbd_color($cnn)
{
$klr = msql_read('system', 'edition_colors', '', 1);
$sty = 'padding:0 5px; background-color:#';
foreach ($klr as $k => $v) {
$ret .= ljb($k, 'jumpvalue', 'cnp_' . $k, bts($sty . $v, '.')) . ' ';
}
return $ret . br() . br() . assistant('cnn', 'embed_css', $cnn, '', '');
}
示例13: make_divtable
function make_divtable($r, $h = '')
{
$cr = 'display:table-row;';
$cc = $cs . 'display:table-cell; vertical-align:middle; padding:2px; ';
if (is_array($r)) {
foreach ($r as $k => $v) {
$td = '';
$i++;
if ($h) {
$cs = $i == 1 ? 'background:rgba(255,255,255,0.4);' : '';
}
if (is_array($v)) {
foreach ($v as $ka => $va) {
$td .= bts($cc . $cs, $va);
}
}
if ($td) {
$ret .= bts($cr, $td);
}
}
}
return $ret;
}
示例14: bts
if ($topic->sticky and $topic->comment_mode == COMMENT_NODE_READ_ONLY) {
?>
<?php
print bts('Featured') . ' / ' . bts('Locked');
?>
<?php
} elseif ($topic->sticky) {
?>
<?php
print bts('Featured');
?>
<?php
} elseif ($topic->comment_mode == COMMENT_NODE_READ_ONLY) {
?>
<?php
print bts('Locked');
?>
<?php
} else {
?>
<?php
print $topic->last_reply;
?>
<?php
}
?>
</td>
<?php
}
?>
</tr>
示例15: pub_html
function pub_html($d)
{
list($p, $o) = split_right('§', $d);
$r = explode_k($o, ' ', '=');
$ra = array('css' => 'class', 'font' => 'font-family', 'size' => 'font-size');
$rb = colors();
foreach ($r as $k => $v) {
if ($k == 'color') {
$v = $rb[$v] ? $rb[$v] : '#' . $v;
}
$atb .= ($ra[$k] ? $ra[$k] : $k) . ':' . $v . '; ';
}
return bts($atb, $p);
}