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