- <div id="video-popularity">
- <div id="video-views">
- <?php echo $video['views'] . ' '
- . ($video['views'] == 1 ?
- $this->lang->line('ui_view') :
- $this->lang->line('ui_views') );
- ?>
- </div>
-
- <div><!--<a id="link-like" href="#"><?php echo $this->lang->line('video_like') ?></a>
- <a id="link-dislike" href="#"><?php echo $this->lang->line('video_dislike') ?></a>-->
- <a class="link-vote" data-action="like" href="#"><?php echo $this->lang->line('video_like') ?></a>
- <a class="link-vote" data-action="dislike" href="#"><?php echo $this->lang->line('video_dislike') ?></a>
- <span id="video-likes"><?php echo $video['likes'] ?></span> <?php
- echo $this->lang->line('ui_likes') ?>,
- <span id="video-dislikes"><?php echo $video['dislikes'] ?></span> <?php
- echo $this->lang->line('ui_dislikes'); ?>
+ <div id="video-footer">
+ <div id="video-info" style="clear: both">
+ <div id="video-upload-info">
+ <?php echo $this->lang->line('ui_uploaded_by') ?>
+ <span id="video-user"><a href="<?php echo site_url("user/profile/{$video['username']}") ?>"><?php echo $video['username'] ?></a></span>
+ <?php echo $this->lang->line('ui_on_date') ?>
+ <span id="video-date"><?php echo $video['date'] ?></span>
+ </div>
+
+ <div id="video-popularity">
+ <div id="video-views">
+ <?php echo $video['views'] . ' '
+ . ($video['views'] == 1 ?
+ $this->lang->line('ui_view') :
+ $this->lang->line('ui_views') );
+ ?>
+ </div>
+
+ <div><a class="link-vote" data-action="like" href="#"><?php echo $this->lang->line('video_like') ?></a>
+ <a class="link-vote" data-action="dislike" href="#"><?php echo $this->lang->line('video_dislike') ?></a>
+ <span id="video-likes"><?php echo $video['likes'] ?></span> <?php
+ echo $this->lang->line('ui_likes') ?>,
+ <span id="video-dislikes"><?php echo $video['dislikes'] ?></span> <?php
+ echo $this->lang->line('ui_dislikes'); ?>
+ </div>
+ </div>
+
+ <div id="video-shorted-description" class="video-description"><?php echo $video['shorted_description'] ?></div>
+
+ <div id="video-info-details">
+ <div id="video-description" class="video-description"><?php echo $video['description'] ?></div>
+
+ <dl id="video-category">
+ <dt><?php echo ucwords($this->lang->line('ui_category'))
+ . ': ' ?></dt>
+ <dd><?php echo $video['category_title'] ?></dd>
+ </dl>
+
+ <dl id="video-tags">
+ <dt><?php echo ucwords($this->lang->line('ui_tags')). ': ' ?></dt>
+ <dd><?php if (isset($video['tags'])):
+ foreach ($video['tags'] as $tag => $score): ?>
+ <a href="<?php echo site_url('catalog/search/'. $tag) ?>" class="video-tag">
+ <?php echo "$tag " // TODO print score in future ?>
+ </a>
+ <?php endforeach; endif ?></dd>
+ </dl>
+
+ <dl id="video-torrents">
+ <dt><?php echo $this->lang->line('ui_download_torrents') ?>: </dt>
+ <?php foreach ($video['assets'] as $asset): ?>
+ <dd><a href="<?php echo $asset['src'] ?>"><?php echo $asset['def'] ?></a></dd>
+ <?php endforeach ?>
+ </dl>
+
+ <dl id="video-license">
+ <dt><?php echo ucwords($this->lang->line('ui_license')).': ' ?></dt>
+ <dd><?php echo $video['license'] ?></dd>
+ </dl>
+ </div>
+
+ <a id="a-show-info-details" data-val="more" href="#"><?php echo $this->lang->line('video_show_more') ?></a>