Вход Регистрация
Файл: adultscript-2.0.3-pro/files/mobile/templates/default/users_profile.tpl.php
Строк: 330
<?php defined('_VALID') or die('Restricted Access!'); $now time()-1800?>
    <div data-role="content">
        <?php echo $this->fetch('users_menu'); ?>
        <?php echo $this->fetch('users_top'); ?>
        <?php if ($this->total_friends): ?>
        <div class="ui-corner-all custom-corners">
            <div class="ui-bar ui-bar-b">
                <h3><?php echo __('friends-title'),' (',$this->total_friends?>)</h3>
                <?php if ($this->total_friends 2): ?><a href="<?php echo MOBILE_REL,'/users/',e($this->username),'/friends/" class="ui-btn ui-btn-inline ui-btn-right ui-mini ui-corner-all ui-shadow button-right">',__('see-all'); ?></a><?php endif; ?>
            </div>
            <div class="ui-body ui-body-b">
                  <ul data-role="listview">
                      <?php foreach ($this->friends as $user): ?>
                    <li>
                        <a href="<?php echo MOBILE_REL,'/users/',e($user['username']),'/'?>" rel="external">
                            <img src="<?php echo MEDIA_URL?>/users/<?php if ($user['avatar'] != ''): echo $user['user_id'],'.',$user['avatar']; else: echo 'nopic-',$user['gender'],'.gif'; endif; ?>" alt="" />
                            <h3><?php echo e($user['username']); if ($user['online'] > $now): echo '<span class="ui-li-count">Online</span>'; endif; ?></h3>
                        </a>
                    </li>
                    <?php endforeach; ?>
                  </ul>
            </div>
        </div>
        <?php endif; if ($this->total_subscribers): ?>
        <div class="ui-corner-all custom-corners">
            <div class="ui-bar ui-bar-b">
                <h3><?php echo __('subscribers-title'),' (',$this->total_subscribers?>)</h3>
                <?php if ($this->total_subscribers 2): ?><a href="<?php echo MOBILE_REL,'/users/',e($this->username),'/subscribers/" class="ui-btn ui-btn-inline ui-btn-right ui-mini ui-corner-all ui-shadow button-right">',__('see-all'); ?></a><?php endif; ?>
            </div>
            <div class="ui-body ui-body-b">
                  <ul data-role="listview">
                      <?php foreach ($this->subscribers as $user): ?>
                    <li>
                        <a href="<?php echo MOBILE_REL,'/users/',e($user['username']),'/'?>" rel="external">
                            <img src="<?php echo MEDIA_URL?>/users/<?php if ($user['avatar'] != ''): echo $user['user_id'],'.',$user['avatar']; else: echo 'nopic-',$user['gender'],'.gif'; endif; ?>" alt="" />
                            <h3><?php echo e($user['username']); if ($user['online'] > $now): echo '<span class="ui-li-count">Online</span>'; endif; ?></h3>
                        </a>
                    </li>
                    <?php endforeach; ?>
                  </ul>
            </div>
        </div>
        <?php endif; if ($this->total_subscriptions): ?>
        <div class="ui-corner-all custom-corners">
            <div class="ui-bar ui-bar-b">
                <h3><?php echo __('subscriptions-title'),' (',$this->total_subscriptions?>)</h3>
                <?php if ($this->total_subscriptions 2): ?><a href="<?php echo MOBILE_REL,'/users/',e($this->username),'/subscriptions/" class="ui-btn ui-btn-inline ui-btn-right ui-mini ui-corner-all ui-shadow button-right">',__('see-all'); ?></a><?php endif; ?>
            </div>
            <div class="ui-body ui-body-b">
                  <ul data-role="listview">
                      <?php foreach ($this->subscriptions as $user): ?>
                    <li>
                        <a href="<?php echo MOBILE_REL,'/users/',e($user['username']),'/'?>" rel="external">
                            <img src="<?php echo MEDIA_URL?>/users/<?php if ($user['avatar'] != ''): echo $user['user_id'],'.',$user['avatar']; else: echo 'nopic-',$user['gender'],'.gif'; endif; ?>" alt="" />
                            <h3><?php echo e($user['username']); if ($user['online'] > $now): echo '<span class="ui-li-count">Online</span>'; endif; ?></h3>
                        </a>
                    </li>
                    <?php endforeach; ?>
                  </ul>
            </div>
        </div>
        <?php endif; if ($this->public_videos): ?>
        <div class="ui-corner-all custom-corners">
            <div class="ui-bar ui-bar-b">
                <h3><?php echo __('videos-public-title'),' (',$this->total_public_videos?>)</h3>
                <?php if ($this->total_public_videos 2): ?><a href="<?php echo MOBILE_REL,'/users/',e($this->username),'/videos/public/" class="ui-btn ui-btn-inline ui-btn-right ui-mini ui-corner-all ui-shadow button-right">',__('see-all'); ?></a><?php endif; ?>
            </div>
            <div class="ui-body ui-body-b">
                  <ul data-role="listview" class="has-video-thumb">
                      <?php foreach ($this->public_videos as $video): $percent $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>
            </div>
        </div>
        <?php endif; if ($this->private_videos): ?>
        <div class="ui-corner-all custom-corners">
            <div class="ui-bar ui-bar-b">
                <h3><?php echo __('videos-private-title'),' (',$this->total_private_videos?>)</h3>
                <?php if ($this->total_private_videos 2): ?><a href="<?php echo MOBILE_REL,'/users/',e($this->username),'/videos/private/" class="ui-btn ui-btn-inline ui-btn-right ui-mini ui-corner-all ui-shadow button-right">',__('see-all'); ?></a><?php endif; ?>
            </div>
            <div class="ui-body ui-body-b">
                  <ul data-role="listview" class="has-video-thumb">
                      <?php foreach ($this->private_videos as $video): $percent $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>
            </div>
        </div>
        <?php endif; if ($this->watched_videos): ?>
        <div class="ui-corner-all custom-corners">
            <div class="ui-bar ui-bar-b">
                <h3><?php echo __('videos-watched-title'),' (',$this->total_watched_videos?>)</h3>
                <?php if ($this->total_watched_videos 2): ?><a href="<?php echo MOBILE_REL,'/users/',e($this->username),'/videos/history/" class="ui-btn ui-btn-inline ui-btn-right ui-mini ui-corner-all ui-shadow button-right">',__('see-all'); ?></a><?php endif; ?>
            </div>
            <div class="ui-body ui-body-b">
                  <ul data-role="listview" class="has-video-thumb">
                      <?php foreach ($this->watched_videos as $video): $percent $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>
            </div>
        </div>
        <?php endif; if ($this->total_favorites): ?>
        <div class="ui-corner-all custom-corners">
            <div class="ui-bar ui-bar-b">
                <h3><?php echo __('favorite-title'),' (',$this->total_favorites?>)</h3>
                <?php if ($this->total_favorites 2): ?><a href="<?php echo MOBILE_REL,'/users/',e($this->username),'/videos/favorites/" class="ui-btn ui-btn-inline ui-btn-right ui-mini ui-corner-all ui-shadow button-right">',__('see-all'); ?></a><?php endif; ?>
            </div>
            <div class="ui-body ui-body-b">
                  <ul data-role="listview" class="has-video-thumb">
                      <?php foreach ($this->favorites as $video): $percent $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>
            </div>
        </div>
        <?php endif; if ($this->total_public_albums): ?>
        <div class="ui-corner-all custom-corners">
            <div class="ui-bar ui-bar-b">
                <h3><?php echo __('albums-public-title'),' (',$this->total_public_albums?>)</h3>
                <?php if ($this->total_public_albums 2): ?><a href="<?php echo MOBILE_REL,'/users/',e($this->username),'/photos/public/" class="ui-btn ui-btn-inline ui-btn-right ui-mini ui-corner-all ui-shadow button-right">',__('see-all'); ?></a><?php endif; ?>
            </div>
            <div class="ui-body ui-body-b">
                  <ul data-role="listview" class="has-album-thumb">
                      <?php foreach ($this->public_albums as $album): ?>
                      <li>
                          <a href="<?php echo MOBILE_REL,'/album/',$album['album_id'],'/',$album['slug'],'/'?>" rel="external">
                              <div class="athumbContainer">
                                  <img src="<?php echo PHOTO_URL,'/covers/',$album['album_id'],'.jpg'?>" alt="" />
                              </div>
                              <h5><?php echo e($album['title']); ?></h5>
                              <p>Photos: <strong><?php echo $album['total_photos']; ?></strong></p>
                              <p>Added: <strong><?php echo VDate::nice($album['add_time']); ?></strong></p>
                          </a>
                      </li>
                      <?php endforeach; ?>
                  </ul>
            </div>
        </div>
        <?php endif; if ($this->total_private_albums): ?>
        <div class="ui-corner-all custom-corners">
            <div class="ui-bar ui-bar-b">
                <h3><?php echo __('albums-private-title'),' (',$this->total_private_albums?>)</h3>
                <?php if ($this->total_private_albums 2): ?><a href="<?php echo MOBILE_REL,'/users/',e($this->username),'/photos/private/" class="ui-btn ui-btn-inline ui-btn-right ui-mini ui-corner-all ui-shadow button-right">',__('see-all'); ?></a><?php endif; ?>
            </div>
            <div class="ui-body ui-body-b">
                  <ul data-role="listview" class="has-album-thumb">
                      <?php foreach ($this->private_albums as $album): ?>
                      <li>
                          <a href="<?php echo MOBILE_REL,'/album/',$album['album_id'],'/',$album['slug'],'/'?>" rel="external">
                              <div class="athumbContainer">
                                  <img src="<?php echo PHOTO_URL,'/covers/',$album['album_id'],'.jpg'?>" alt="" />
                              </div>
                              <h5><?php echo e($album['title']); ?></h5>
                              <p><?php echo __('photos'); ?>: <strong><?php echo $album['total_photos']; ?></strong></p>
                              <p><?php echo __('added'); ?>: <strong><?php echo VDate::nice($album['add_time']); ?></strong></p>
                          </a>
                      </li>
                      <?php endforeach; ?>
                  </ul>
            </div>
        </div>
        <?php endif; if ($this->total_photos): ?>
        <div class="ui-corner-all custom-corners">
            <div class="ui-bar ui-bar-b">
                <h3><?php echo __('photo-favorites-title'),' (',$this->total_photos?>)</h3>
                <?php if ($this->total_photos 2): ?><a href="<?php echo MOBILE_REL,'/users/',e($this->username),'/photos/favorites/" class="ui-btn ui-btn-inline ui-btn-right ui-mini ui-corner-all ui-shadow button-right">',__('see-all'); ?></a><?php endif; ?>
            </div>
            <div class="ui-body ui-body-b">
                  <ul data-role="listview" class="has-photo-thumb">
                      <?php foreach ($this->photos as $photo): $percent = ($photo['rating'] == 0) ? 100 round(($photo['rating']*100)/5); ?>
                      <li>
                          <a href="<?php echo MOBILE_REL,'/photo/',$photo['photo_id']; ?>" rel="external">
                              <div class="pthumbContainer">
                                  <img src="<?php echo PHOTO_URL,'/thumbs/',$photo['photo_id'],'.jpg" alt="',e($photo['caption']); ?>" />
                              </div>
                              <p><?php echo __('views'); ?>: <strong><?php echo $photo['total_views']; ?></strong></p>
                              <p><?php echo __('rating'); ?>: <strong><?php echo $percent?>%</strong></p>
                          </a>
                      </li>
                      <?php endforeach; ?>
                  </ul>
            </div>
        </div>
        <?php endif; if (isset($this->comments)): ?>
        <div class="ui-corner-all custom-corners">
            <div class="ui-bar ui-bar-b">
                <h3><?php echo __('comments-title'),' (',$this->pagination['total_items']; ?>)</h3>
                <?php if ($this->pagination['total_items'] > 5): ?><a href="<?php echo MOBILE_REL,'/users/',e($this->username),'/comments/" class="ui-btn ui-btn-inline ui-btn-right ui-mini ui-corner-all ui-shadow button-right">',__('see-all'); ?></a><?php endif; ?>
                <?php echo $this->fetch('users_comments_block'); ?>
            </div>
        </div>
        <?php endif; ?>
    </div>
Онлайн: 0
Реклама