Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
#88 - add comments to video
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Sharov committed Nov 2, 2012
1 parent 91a6187 commit 6ab500c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions css/site/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -311,4 +311,8 @@ span.italic-12 {

.video-playlist li{
margin: 0 0 30px 0;
}

.video-view{
margin: 0 0 20px 0;
}
1 change: 1 addition & 0 deletions protected/modules/comments/portlets/CommentsPortlet.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function init()
public function run()
{
$cs = Yii::app()->clientScript;
$cs->registerCoreScript('jquery.ui');
$cs->registerScriptFile('/js/comments/commentsPortlet.js');
$options = CJavaScript::encode($this->client_options);
$cs->registerScript($this->id, "$('#{$this->id}').commentList($options)");
Expand Down
1 change: 1 addition & 0 deletions protected/modules/media/portlets/Uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public function createUrl($url, $params = [])

public function registerScripts()
{

$plugins = $this->assets . '/plugins/';
$cs = Yii::app()->clientScript;
$cs->registerCoreScript('jquery.ui')->registerScriptFile($plugins . 'tmpl/jquery.tmpl.min.js');
Expand Down
1 change: 0 additions & 1 deletion protected/modules/media/views/mediaVideo/v.php

This file was deleted.

8 changes: 7 additions & 1 deletion protected/modules/media/views/mediaVideo/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
<div class="video-container">
<?= $model->getPlayer(['width' => 670, 'height' => 400]) ?>
</div>
</div>
</div>

<?
$this->widget('comments.portlets.CommentsPortlet', array(
'model' => $model
));
?>

0 comments on commit 6ab500c

Please sign in to comment.