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; }
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>