Файл: adultscript-2.0.3-pro/files/mobile/templates/default/photo_view.tpl.php
Строк: 204
<?php defined('_VALID') or die('Restricted Access!'); ?>
<script type="text/javascript" src="<?php echo TPL_REL; ?>/js/jquery.photo-1.0.js"></script>
<div data-role="content">
<input name="photo_id" type="hidden" value="<?php echo $this->photo['photo_id']; ?>" />
<ul data-role="listview"><li data-role="list-divider"><?php echo e($this->photo['title']),': ',__('photo'),' ',$this->photo['photo_id']; ?></li></ul>
<br />
<center><img src="<?php echo PHOTO_URL,'/mobile/',$this->photo['photo_id'],'.',$this->photo['ext'],'" alt="',e($this->photo['caption']); ?>" /></center>
<?php echo p('adv', 'mobile-photo-view'); ?>
<?php if (isset($this->prev_photo) OR isset($this->next_photo)): ?>
<center>
<div data-role="controlgroup" data-type="horizontal">
<?php if (isset($this->prev_photo)): ?>
<a href="<?php echo MOBILE_REL,'/photo/',$this->prev_photo,'/'; ?>" data-role="button" data-theme="b" rel="external" data-mini="true" data-icon="arrow-l">PREV</a>
<?php endif; if (isset($this->next_photo)): ?>
<a href="<?php echo MOBILE_REL,'/photo/',$this->next_photo,'/'; ?>" data-role="button" data-theme="b" rel="external" data-mini="true" data-icon="arrow-r">NEXT</a>
<?php endif; ?>
<a href="<?php echo MOBILE_REL,'/photo/',$this->photo['album_id'],'/',$this->photo['slug'],'/slideshow/" data-role="button" data-theme="b" data-mini="true" data-icon="bars">',__('slideshow'); ?></a>
</div>
</center>
<?php endif; ?>
<center>
<?php echo __('views'); ?>: <strong><?php echo $this->photo['total_views']; ?></strong>
<?php echo __('rating'); ?>: <span id="rating-result"><strong><?php echo ($this->photo['rating'] == 0 or $this->photo['rating'] == 5) ? 100 : round(($this->photo['rating']*100)/5); ?>%</strong></span>
<?php echo __('favorites'); ?>: <span id="favorite-result"><strong><?php echo $this->photo['total_favorites']; ?></strong></span>
</center>
<button id="response" disabled="" style="display:none;" data-icon="alert" class="success"></button>
<center>
<?php if ($this->photo['allow_rating']): ?>
<button id="rate-up" data-inline="true" data-role="button" data-icon="arrow-u">Like</button>
<button id="rate-down" data-inline="true" data-role="button" data-icon="arrow-d">Dislike</button>
<?php endif; ?>
<button id="favorite" data-inline="true" data-role="button" data-icon="heart">Favorite</button>
</center>
<?php if ($this->share): $photo_url = BASE_URL.'/photo/'.$this->photo['photo_id'].'/'; ?>
<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>
<br />
<?php endif; ?>
<?php if (isset($this->comments)): ?>
<br />
<ul data-role="listview">
<li data-role="list-divider">Comments</li>
</ul>
<br />
<?php if ($this->photo['allow_comment']): ?>
<center><button id="response-comment" disabled="" style="display:none;" data-icon="alert"></button></center>
<textarea cols="40" rows="8" name="comment" id="comment"></textarea>
<button id="post-comment" data-inline="true" data-role="button" data-icon="comment"><?php echo __('post-comment'); ?></button>
<br />
<?php endif; ?>
<?php if ($this->comments): ?>
<input name="page" type="hidden" value="1">
<div id="comments-container">
<ul id="comments" data-role="listview" data-inset="true">
<li id="comments-post-container" style="display: none;"></li>
<?php foreach ($this->comments as $comment): ?>
<li id="comment-<?php echo $comment['comment_id']; ?>">
<?php if (!empty($comment['user_id'])): ?>
<img src="<?php echo USER_URL,'/'; if ($comment['avatar'] !=''): echo $comment['user_id'],'.',$comment['avatar']; else: echo 'nopic-',$comment['gender'],'.gif'; endif; ?>" alt="<?php echo e($comment['username']); ?> Avatar" />
<?php else: ?>
<img src="<?php echo MEDIA_URL; ?>/users/nopic-hidden.gif" alt="" />
<?php endif; ?>
<p class="comment"><?php echo nl2br($comment['comment']); ?></p>
<p class="cfooter">By <strong><?php if (!empty($comment['user_id'])): echo e($comment['username']); else: echo e($comment['nickname']); endif; ?></strong> <?php echo VDate::nice($comment['add_time']); ?></p>
<?php if (VAuth::loggedin()): ?>
<p>
<button id="comment-report-<?php echo $comment['comment_id']; ?>" data-role="none" class="btnsmall"><?php echo __('spam'); ?></button>
<?php if ($comment['user_id'] == $_SESSION['user_id'] or $this->photo['user_id'] == $_SESSION['user_id']): ?>
<button id="comment-delete-<?php echo $comment['comment_id']; ?>" data-role="none" class="btnsmall"><?php echo __('delete'); ?></button>
<?php endif; ?>
</p>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php if ($this->comments_total > $this->comments_per_page): ?><center><button id="more-comments" data-role="button" data-inline="true" data-icon="refresh"><?php echo __('more-comments'); ?></button></center><?php endif; ?>
<?php else: ?>
<div class="none"><?php echo __('no-comments'); ?></div>
<?php endif; ?>
<?php endif; ?>
</div>