本文整理汇总了PHP中RevSliderBase::get_font_weight_count方法的典型用法代码示例。如果您正苦于以下问题:PHP RevSliderBase::get_font_weight_count方法的具体用法?PHP RevSliderBase::get_font_weight_count怎么用?PHP RevSliderBase::get_font_weight_count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RevSliderBase
的用法示例。
在下文中一共展示了RevSliderBase::get_font_weight_count方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_slider_speed
//.........这里部分代码省略.........
</span>
</span>
<span class="tp-clearfix" style="height:35px"></span>
<!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
<span style="float:left;width:40%; display:block">
<span class="tp-monitor-smalllabel"><?php
echo __("Fonts Loaded:", REVSLIDER_TEXTDOMAIN);
?>
</span>
<span class="tp-monitor-jsicon"></span><span class="tp-monitor-total-subsize">%font_size%</span>
</span>
<span style="float:left;width:60%; text-align:right;">
<span class="tp-monitor-showdetails" data-target="#monitor-fonts-details" data-open="</span><?php
echo __("Hide Details", REVSLIDER_TEXTDOMAIN);
?>
" data-close="</span><?php
echo __("Show Details", REVSLIDER_TEXTDOMAIN);
?>
"><span class="tp-monitor-openclose"></span><span class="tp-show-inner-btn"><?php
echo __("Show Details", REVSLIDER_TEXTDOMAIN);
?>
</span></span>
</span>
<span class="tp-clearfix" style="height:15px"></span>
<?php
//echo '<span class="tp-monitor-smalllabel">'.$font_url.'</span>';
echo '<ul class="tp-monitor-list" id="monitor-fonts-details" style="margin-bottom:15px;display:none">';
$all_font_count = 0;
if (!empty($my_fonts)) {
foreach ($my_fonts as $c_font) {
$fcount = RevSliderBase::get_font_weight_count($c_font);
$_li = '<li class="tp-monitor-listli">';
if ($fcount < 4) {
$_li .= '<span class="tp-monitor-good"></span>';
} else {
if ($fcount < 7) {
$_li .= '<span class="tp-monitor-well"></span>';
} else {
$_li .= '<span class="tp-monitor-warning"></span>';
}
}
$_li .= '<span class="tp-monitor-file">';
$_li .= strip_tags($c_font);
$_li .= '</span>';
$_li .= '</li>';
if ($fcount > 4) {
$issues .= $_li;
}
echo $_li;
$all_font_count += $fcount;
}
}
echo '</ul>';
?>
</div><!-- END OF OVERALL Div-->
<script>
jQuery(document).on("ready",function() {
jQuery('body').on('click','.tp-monitor-showdetails',function() {
var bt = jQuery(this);
if (bt.hasClass("selected")) {
bt.find('.tp-show-inner-btn').html(bt.data('close'));