<div class="row ovc-latest-video"> <?php foreach ($latestVideos as $video) { ?> <div class="col-sm-4 col-md-3"> <div class="thumbnail"> <?php echo \app\components\OvcVideoPlayerWidget::widget(['path' => $video->path, 'controls' => false, 'startTime' => '#t=00:00:01', 'cssClass' => 'player-lastest-videos']); ?> <div class="caption"> <table> <tr> <td style="width:50px;"><strong>Title</strong></td> <td> <?php echo strlen($video->title) > 25 ? substr($video->title, 0, 25) . '...' : $video->title; ?> </td> </tr> <tr> <td><strong>Course</strong></td> <td> <?php $course = app\models\Course::findOne($video->course_id)->name; ?> <?php echo strlen($course) > 25 ? substr($course, 0, 25) . '...' : $course; ?> </td> </tr> <tr> <td><strong>Date</strong></td>
<?php use app\components\OvcVideoPlayerWidget; /* @var $this yii\web\View */ /* @var $model app\models\Video */ $this->title = $model->title; $this->params['breadcrumbs'][] = ['label' => 'Videos', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; $currentUserId = app\components\OvcUser::getCurrentUser()->id; ?> <div class="row"> <div class="col-lg-7"> <?php echo OvcVideoPlayerWidget::widget(['path' => $model->path]); ?> </div> <div class="col-lg-5"> <table class="table table-bordered table-striped"> <tr> <td width="100">Title</td> <td><?php echo $model->title; ?> </td> </tr> <tr> <td>Description</td> <td> <div style="height: 92px; overflow-y: scroll;"><?php echo $model->description; ?>