Вход Регистрация
Файл: adultscript-2.0.3-pro/files/mobile/templates/default/video_view_deleted.tpl.php
Строк: 115
<?php defined('_VALID') or die('Restricted Access!'); ?>
    <script type="text/javascript" src="<?php echo TPL_REL?>/js/jquery.video-1.0.js"></script>
    <div id="view" data-role="content" class="ui-content">
        <input name="video_id" type="hidden" value="<?php echo $this->video['video_id']; ?>">
        <ul data-role="listview">
            <li data-role="list-divider"><h1><?php echo e($this->video['title']); ?></h1></li>
        </ul>
        <br />
        <?php if ($this->access): ?>
        <div style="width: 100%; padding: 50px 0; text-align: center; font-weight: bold;"><?php echo __('video-deleted'); ?></div>
        <?php elseif ($this->user_id): ?>
        <center>Please <a href="<?php echo MOBILE_REL?>/upgrade/">Upgrade your account</a> to watch premium videos!</a></center>
        <?php else: ?>
        <center>Please <a href="<?php echo MOBILE_REL?>/register/">Register</a> to watch premium videos!</a></center>
        <?php endif; ?>
        <center><button id="response" disabled="" style="display:none;" data-icon="alert" class="success"></button></center>
        <center>
              <?php echo __('length'); ?>: <strong><?php echo VDate::duration($this->video['duration']); ?></strong>
              <?php echo __('rating'); ?>: <span id="rating-result"><strong><?php echo ($this->video['rating'] == or $this->video['rating'] == 5) ? 100 round(($this->video['rating']*100)/5); ?>%</strong></span>
              <?php echo __('views'); ?>: <strong><?php echo $this->video['total_views']; ?></strong>
              <?php echo __('favorites'); ?>: <span id="favorite-result"><strong><?php echo $this->video['total_favorites']; ?></strong></span>
          </center>
          <center>
              <?php if ($this->allow_rating): ?>
            <button id="rate-up" data-inline="true" data-role="button" data-icon="arrow-u" disabled="">Like</button>
            <button id="rate-down" data-inline="true" data-role="button" data-icon="arrow-d" disabled="">Dislike</button>
            <?php endif; ?>
            <button id="favorite" data-inline="true" data-role="button" data-icon="heart" disabled="">Favorite</button>
        </center>
        <?php if ($this->share): $video_url BASE_URL.'/'.$this->video['video_id'].'/'.$this->video['slug'].'/'?>
        <br />
        <center>
            <!-- AddThis Button BEGIN -->
            <div class="addthis_toolbox addthis_default_style addthis_32x32_style" style="width: 280px;margin: 0 auto;">
                <a class="addthis_button_email"></a>
                <a class="addthis_button_favorites"></a>
                <a class="addthis_button_facebook"></a>
                <a class="addthis_button_twitter"></a>
                <a class="addthis_button_reddit"></a>
                <a class="addthis_button_compact"></a>
                <a class="addthis_counter addthis_bubble_style"></a>
            </div>  
            <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
            <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4f9d8c433d6f0bfa"></script>
            <!-- AddThis Button END -->        
        </center>        
        <?php endif; ?>
        <br />
        <div data-role="tabs" id="tabs">
            <div data-role="navbar">
                  <ul>
                    <?php if (isset($this->related)): ?><li><a href="#related" data-ajax="false"><?php echo __('related-videos'); ?></a></li><?php endif; ?>
                  </ul>
            </div>
            <?php if (isset($this->related)): ?>
            <div id="related" class="ui-body-d ui-content">
                <?php if ($this->related): ?>
                  <ul data-role="listview" class="has-video-thumb">
                      <?php foreach ($this->related as $video): $percent = ($video['rating'] == 0) ? 100 round(($video['rating']*100)/5); ?>
                      <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'?>" /></div>
                              <h5><?php echo e($video['title']); ?></h5>
                              <p><?php echo __('rating'); ?>: <strong><?php echo $percent?>%</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; ?>            
                  </ul>
                  <?php else: ?>
                  <div class="none"><?php echo __('no-related'); ?></div>
                  <?php endif; ?>
            </div>
            <?php endif; ?>
        </div>
    </div>
Онлайн: 2
Реклама