本文整理汇总了PHP中ts_sticky_badge函数的典型用法代码示例。如果您正苦于以下问题:PHP ts_sticky_badge函数的具体用法?PHP ts_sticky_badge怎么用?PHP ts_sticky_badge使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ts_sticky_badge函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: absint
<?php
}
}
?>
</div>
<div class="title-date clearfix">
<div class="title-info">
<h<?php
echo absint($title_size->h);
?>
class="title-h entry-title <?php
echo esc_attr($text_align);
?>
"><?php
echo ts_sticky_badge();
?>
<a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a></h<?php
echo absint($title_size->h);
?>
>
</div>
</div>
<?php
示例2: esc_attr
}
echo '<div class="fluid-width-video-wrapper"><div>';
echo '<iframe id="' . esc_attr($video_service . '-' . $slider->post->ID . '-' . $rand_id) . '" src="' . esc_url($video_src) . '" width="' . absint($w) . '" ' . $img_height . ' data-videoid="' . esc_attr($video_id) . '" class="' . esc_attr($iframe_class) . '" allowFullScreen webkitAllowFullScreen></iframe>';
echo '</div></div>' . "\n";
}
if ($img) {
echo strip_tags($link_begin, '<a>');
echo $ts_slider_type == 'flex' && $slider_width_class == 'full' ? '' : strip_tags($img_html, '<a><img>');
if ((trim($title) || trim($descr)) && $hide_text != '1') {
echo '<div class="ts-item-details">' . "\n";
echo $ts_slider_type == 'flex' && $w == 1360 ? '<div class="ts-item-details-inner container">' . "\n" : '<div class="ts-item-details-inner">' . "\n";
if ($ts_slider_source == 'portfolio') {
echo '<h' . absint($title_size) . ' class="portfolio-title title text-' . esc_attr($slider_text_align) . ' color-white">' . esc_html($title) . '</h' . absint($title_size) . '>' . "\n";
echo trim($meta) ? '<p class="portfolio-meta color-shortcode white text-' . esc_attr($slider_text_align) . '">' . strip_tags($meta, '<span>') . '</p>' . "\n" : '';
} else {
echo '<h' . absint($title_size) . ' class="blog-title title text-' . esc_attr($slider_text_align) . ' color-white">' . ts_sticky_badge() . esc_html($title) . '</h' . absint($title_size) . '>' . "\n";
echo '<p class="blog-meta text-' . esc_attr($slider_text_align) . '">' . strip_tags($meta, '<span>') . '</p>' . "\n";
}
echo '</div></div>' . "\n";
}
echo strip_tags($link_end, '<a>');
}
echo '</li>' . "\n";
}
}
echo '</ul>' . "\n";
echo '<span class="pause-slider smaller uppercase bg-primary"><i class="fa fa-pause"></i> ' . __('Pause', 'ThemeStockyard') . '</span>' . "\n";
echo '<span class="play-slider smaller uppercase bg-primary"><i class="fa fa-play"></i> ' . __('Resume', 'ThemeStockyard') . '</span>' . "\n";
echo '</div>' . "\n";
echo '<div class="ts-main-flex-nav"></div>' . "\n";
echo '</div>' . "\n";