Файл: adultscript-2.0.3-pro/files/templates/defboot/photo_view.tpl.php
Строк: 257
<?php defined('_VALID') or die('Restricted Access!'); ?>
<script type="text/javascript" src="<?php echo TPL_REL; ?>/js/photo.js"></script>
<div id="photo" class="row">
<h1><?php echo e($this->video['title']); ?></h1>
<div class="right hidden-xs hidden-sm">
<div class="content">
<?php echo p('adv', 'photo-right'); ?>
</div>
</div>
<div class="left content">
<input name="photo_id" type="hidden" value="<?php echo $this->photo['photo_id']; ?>">
<input name="user_id" type="hidden" value="<?php echo $this->user_id; ?>">
<div id="response-container" class="alert alert-dismissible" role="alert" style="display: none;"></div>
<div id="image" class="content-container first-container">
<?php $url = ($this->photo['url'] != '') ? $this->photo['url'] : PHOTO_URL; if ($this->friends): ?>
<a href="<?php echo $url; ?>/orig/<?php echo $this->photo['photo_id'],'.',$this->photo['ext']; ?>"><img src="<?php echo $url,'/',$this->photo['photo_id'],'.',$this->photo['ext']; ?>" alt="<?php echo e($this->photo['caption']); ?>" /></a>
<?php if (isset($this->prev_photo)): ?>
<a href="<?php echo REL_URL,'/photo/',$this->prev_photo,'/'; ?>" id="prev" rel="prev"><i class="fa fa-chevron-circle-left fa-4x"></i></a>
<?php endif; ?>
<?php if (isset($this->next_photo)): ?>
<a href="<?php echo REL_URL,'/photo/',$this->next_photo,'/'; ?>" id="next" rel="next"><i class="fa fa-chevron-circle-right fa-4x"></i></a>
<?php endif; ?>
<?php else: ?>
<div class="none-private"><?php echo __('photo-friends', array('<a href="'.REL_URL.'/users/'.$this->album['username'].'/">'.$this->album['username'].'</a>')); ?></div>
<?php endif; ?>
</div>
<div class="content-container">
<div id="response" class="alert alert-dismissible" role="alert" style="display: none;"></div>
<div class="actions-container row">
<div class="btn-group btn-group-mb actions-left" role="group">
<button id="like" type="button" class="btn btn-default btn-d" data-toggle="tooltip" data-placement="top" title="<?php echo __('like-help'); ?>"><i id="like-icon" class="fa fa-thumbs-up"></i></button>
<button id="rating" type="button" class="btn btn-default btn-d" disabled="disabled">
<?php $percent = ($this->photo['likes'] > 0 && $this->photo['rated_by']) ? round($this->photo['likes']*100/$this->photo['rated_by']) : 100; ?>
<?php echo $percent,'% (',$this->photo['likes'],'/',$this->photo['rated_by']; ?>)
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="<?php echo $percent; ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $percent; ?>%;">
<span class="sr-only"><?php echo $percent; ?>% Complete</span>
</div>
</div>
</button>
<button id="dislike" type="button" class="btn btn-default btn-d" data-toggle="tooltip" data-placement="top" title="<?php echo __('dislike-help'); ?>"><i id="dislike-icon" class="fa fa-thumbs-down"></i></button>
</div>
<div class="btn-toolbar actions-right">
<div class="btn-group">
<button id="share" class="btn btn-default btn-mb" data-toggle="tooltip" data-placement="top" title="<?= __('share-help'); ?>"><i class="fa fa-share"></i> <span class="hidden-xs"><?php echo __('share'); ?></span></button>
</div>
<div class="btn-group">
<button id="favorite" class="btn btn-default btn-mb" data-toggle="tooltip" data-placement="top" title="<?= __('favorite-help'); ?>"><i id="favorite-icon" class="fa fa-heart"></i> <span class="hidden-sm no-text"><?php echo __('favorite'); ?></span> (<span id="total-favorites"><?php echo $this->photo['total_favorites']; ?></span>)</button>
</div>
<div class="btn-group">
<button id="report" class="btn btn-default btn-mb" data-toggle="tooltip" data-placement="top" title="<?= __('report-help'); ?>"><i class="fa fa-flag"></i></button>
</div>
</div>
</div>
</div>
<div id="share-container" class="content-container" style="display: none;">
<button type="button" class="close close-parent"><span aria-hidden="true">×</span><span class="sr-only"><?php echo __('close'); ?></span></button>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6">
<div class="content-title"><?php echo __('share'); ?>:</div>
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<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":false};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4f9d8c433d6f0bfa"></script>
<!-- AddThis Button END -->
</div>
<div class="col-xs-12 col-sm-12 col-md-6">
<div class="content-title"><?php echo __('photo-link'); ?>:</div>
<input name="link" type="text" class="form-control" value="<?php echo e(CUR_URL); ?>" />
<div class="content-title"><?php echo __('photo-bbcode'); ?>:</div>
<input name="bbcode" type="text" class="form-control" value="[img]<?php $base = (defined('CDN_PHOTO_URL')) ? CDN_PHOTO_URL : BASE_URL.PHOTO_URL; if ($this->photo['url']): echo $this->photo['url']; else: echo $base; endif; echo '/',$this->photo['photo_id'],'.',$this->photo['ext']; ?>[/img]" />
</div>
</div>
</div>
<div id="report-container" style="display:none;"></div>
<div class="content-container">
<div class="row">
<div class="col-xs-7 col-sm-7 col-md-7 col-lg-8">
<?php echo __('from'),': <a href="',REL_URL,'/users/',$this->photo['username'],'/"><strong>',$this->photo['username']; ?></strong></a><br>
<?php echo __('album'),': <a href="',REL_URL,'/photo/',$this->photo['album_id'],'/',$this->photo['slug'],'/"><strong>',e($this->photo['title']); ?></strong></a><br>
</div>
<div class="col-xs-5 col-sm-5 col-md-5 col-lg-4 text-center">
<span class="views"><?php echo $this->photo['total_views'],' '; if ($this->photo['total_views'] == '1'): echo __('view'); else: echo __('views'); endif; ?></span>
<?php echo __('since'),' ',VDate::format($this->photo['add_time'], 'M d, Y'); ?>
</div>
</div>
</div>
<?php if (isset($this->comments)): ?>
<div role="tabpanel" style="padding: 0 5px;">
<ul class="nav nav-tabs" role="tablist">
<li class="active" role="presentation"><a href="#comments" aria-controls="comments" role="tab" data-toggle="tab"><strong><?php echo __('comments'),' (<span id="total-comments">',$this->total_comments; ?></span>)</strong></a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="comments">
<?php $allow_comment = VCfg::get('photo.allow_comment'); if ($this->photo['allow_comment'] && (($allow_comment == '1' && $this->user_id) or $allow_comment == '2')): ?>
<div class="post-comment">
<div id="response-comment" class="alert alert-dismissible" style="display: none;"></div>
<div class="row">
<div class="col-xs-3 col-sm-1 col-md-2 col-lg-1 comment-picture">
<?php if ($this->user_id): ?>
<img src="<?php echo USER_URL,'/'; if ($_SESSION['avatar'] != ''): echo $_SESSION['user_id'].'.'.$_SESSION['avatar']; else: echo 'nopic-'.$_SESSION['gender'].'.gif'; endif; ?>" alt="Profile Picture" class="img-rounded" />
<?php else: ?>
<img src="<?php echo USER_URL; ?>/nopic-hidden.gif" alt="">
<?php endif; ?>
</div>
<div class="col-xs-9 col-sm-11 col-md-10 col-lg-11">
<?php if (!$this->user_id): ?>
<input name="nickname" id="nickname" class="form-control margin-bottom-5" placeholder="<?php echo __('nickname'); ?>">
<?php endif; ?>
<textarea name="comment" id="comment" class="form-control" rows="4" cols="60" placeholder="<?php echo __('comment'); ?>"></textarea>
<div class="row" style="margin-top: 5px;">
<div class="col-xs-6 col-sm-8 col-md-5">
<small><span id="remaining">500</span> <?php echo __('characters-left'); ?></small>
</div>
<div class="col-xs-6 col-sm-4 col-md-7 text-right">
<button id="post-comment" type="button" class="btn btn-primary"><?php echo __('post-comment'); ?></button>
</div>
</div>
</div>
</div>
</div>
<?php endif; $this->type = 'photo'; $this->parent_id = $this->photo['photo_id']; echo $this->fetch('_comments_list'); ?>
</div>
</div>
</div>
<?php endif; ?>
</div>
<div class="clearfix"></div>
</div>