Файл: adultscript-2.0.3-pro/files/mobile/templates/default/users_photos.tpl.php
Строк: 78
<?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_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; ?>
</div>