Файл: adultscript-2.0.3-pro/files/mobile/templates/default/channel_view.tpl.php
Строк: 128
<?php defined('_VALID') or die('Restricted Access!'); ?>
<script type="text/javascript" src="<?php echo TPL_REL; ?>/js/jquery.channel-1.0.js"></script>
<div id="channel" data-role="content" class="ui-content">
<input name="channel_id" type="hidden" value="<?php echo $this->channel['channel_id']; ?>">
<ul data-role="listview">
<li data-role="list-divider"><h1><?php echo e($this->channel['name']),' ',__('channel'); ?></h1></li>
</ul>
<br>
<center>
<a href="<?php echo $this->channel['url']; ?>" target="_blank" rel="external">
<img src="<?php echo MEDIA_URL,'/channels/',$this->channel['channel_id'],'.thumb.',$this->channel['thumb'],'" alt="',e($this->channel['name']); ?>" class="image" />
</a>
</center>
<?php if ($this->channel['description']): ?><center><?php echo $this->channel['description']; ?></center><?php endif; ?>
<center><button id="response" disabled="" style="display:none;" data-icon="alert" class="success"></button></center>
<center>
<?php echo __('videos'); ?>: <strong><?php echo $this->channel['total_videos']; ?></strong>
<?php echo __('views'); ?>: <strong><?php echo $this->channel['total_views']; ?></strong>
<?php echo __('likes'); ?>: <span id="like-result"><strong><?php echo $this->channel['total_likes']; ?></strong></span>
</center>
<center>
<button id="like" data-inline="true" data-role="button" data-icon="arrow-u"><?php echo __('like'); ?></button>
<button id="subscribe" data-inline="true" data-role="button" data-icon="heart"><?php echo __('subscribe'),' (',$this->channel['total_subscribers']; ?>)</button>
<a href="<?php echo $this->channel['url']; ?>" target="_blank" data-role="button" data-inline="true"><?php echo __('visit-site'); ?></a>
</center>
<?php if (isset($this->videos)): ?>
<br />
<ul data-role="listview" class="has-video-thumb">
<li data-role="list-divider"><?php echo e($this->title_videos); ?></li>
<?php if ($this->videos): ?>
<?php foreach ($this->videos as $video): ?>
<li>
<a href="<?php echo MOBILE_REL,'/',$video['video_id'],'/',$video['slug'],'/'; ?>" rel="external">
<div class="thumbContainer">
<img src="<?php echo THUMB_URL,'/',path($video['video_id']),'/',$video['thumb'],'.jpg'; ?>" alt="" />
</div>
<h5><?php echo e($video['title']); ?></h5>
<p><?php echo __('rating'); ?>: <strong><?php echo round(($video['rating']*100)/5); ?>%</strong></p>
<p><?php echo __('views'); ?>: <strong><?php echo $video['total_views']; ?></strong></p>
<p><?php echo __('length'); ?>: <strong><?php echo VDate::seconds_to_time($video['duration'], FALSE); ?></strong></p>
</a>
</li>
<?php endforeach; ?>
<br />
<center><?php echo p('pagination', $this->pagination, MOBILE_REL,'/channel/',$this->channel['slug'],'/#PAGE#/'); ?></center>
<?php else: ?>
<br />
<center><strong><cite>No videos yet!</cite></strong></center>
<?php endif; ?>
<br />
</ul>
<?php endif; ?>
</div>