1 <div class="videos-summary">
2 <h1 class="category-title">
3 <a href="<?php echo site_url("catalog/category/$category_name") ?>">
4 <?php echo $category_title ?>
11 $ordering_opts = array(
12 'hottest'=> $this->lang->line('ui_show_hottest'),
13 'newest'=> $this->lang->line('ui_show_newest'),
14 'alphabetically'=> $this->lang->line('ui_sort_alphabetically')
18 echo form_dropdown('ordering', $ordering_opts, $ordering, 'id="ordering"');
23 <?php echo $pagination ?>
25 <?php foreach($videos as $video):
26 $thumb_src = $video['thumbs'][ $video['default_thumb'] ];
28 <div class="video-icon">
29 <div class="video-thumb ui-widget-content ui-corner-all">
30 <a href="<?php echo $video['video_url'] ?>">
31 <img src="<?php echo $thumb_src ?>" />
32 <div class="video-duration"><?php echo $video['duration'] ?></div>
35 <div class="video-title">
36 <a href="<?php echo $video['video_url'] ?>">
37 <?php echo $video['shorted_title'] ?></a>
39 <div class="video-views">
40 <?php echo $video['views'] . ' '
41 . ($video['views'] == 1 ?
42 $this->lang->line('ui_view') :
43 $this->lang->line('ui_views') );
46 <div class="video-username">
47 <?php echo $this->lang->line('ui_from') . ' TODO' //TODO ?>
52 <?php echo $pagination ?>
54 <div style="clear: both"></div>
58 <script type="text/javascript">
60 $('#ordering').change(function(e) {
61 var uri = "<?php echo site_url("catalog/category/$category_name") ?>";
64 if ($(this).val() != "hottest")
65 uri += "/" + $(this).val();
67 window.location = uri;