本文整理汇总了PHP中TimeHelper::convert_seconds_to_HMS方法的典型用法代码示例。如果您正苦于以下问题:PHP TimeHelper::convert_seconds_to_HMS方法的具体用法?PHP TimeHelper::convert_seconds_to_HMS怎么用?PHP TimeHelper::convert_seconds_to_HMS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TimeHelper
的用法示例。
在下文中一共展示了TimeHelper::convert_seconds_to_HMS方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: secure_url
echo $settings->enable_https ? secure_url('post') : URL::to('post');
echo '/' . $post->slug;
?>
">
<div class="thumbnail-overlay"></div>
<img src="<?php
echo ImageHandler::getImage($post->image, 'medium');
?>
">
<div class="details">
<h2><?php
echo $post->title;
?>
</h2>
<span><?php
echo TimeHelper::convert_seconds_to_HMS($post->duration);
?>
</span>
</div>
</a>
<div class="block-contents">
<p class="date"><?php
echo date("F jS, Y", strtotime($post->created_at));
?>
</p>
<p class="desc"><?php
if (strlen($post_description) > 90) {
echo substr($post_description, 0, 90) . '...';
} else {
echo $post->description;
}
示例2: secure_url
echo $settings->enable_https ? secure_url('video') : URL::to('video');
echo '/' . $video->id;
?>
"><img src="<?php
echo ImageHandler::getImage($video->image, 'medium');
?>
" width="100%" class="featured-img" /></a>
</div>
<div class="col-md-6">
<div class="feature-info">
<h2><?php
echo $video->title;
?>
</h2>
<div class="feature_duration"><i class="fa fa-clock-o"></i> <?php
echo TimeHelper::convert_seconds_to_HMS($video->duration);
?>
</div>
<p><?php
echo $video->description;
?>
</p>
<a href="<?php
echo $settings->enable_https ? secure_url('video') : URL::to('video');
echo '/' . $video->id;
?>
" class="btn btn-primary">Watch Now</a>
</div>
</div>