2016-03-16 17:30:07 +05:00
|
|
|
<!-- Defining object type-->
|
|
|
|
{lang code='photo' assign='object_type'}
|
2016-03-30 18:57:53 +05:00
|
|
|
{assign var=json value=$photo.photo_details|json_decode}
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-03-30 18:57:53 +05:00
|
|
|
<div class="clearfix">
|
|
|
|
<section id="content" class="clearfix">
|
|
|
|
<div class="clearfix leaderboard-ad ad">
|
|
|
|
{AD place='ad_728x90'}
|
|
|
|
</div>
|
|
|
|
<div class="clearfix photo-view">
|
2016-03-16 17:30:07 +05:00
|
|
|
{get_photo details=$photo size='l' class='img-responsive center-block' output='html' height="100"}
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-03-16 17:30:07 +05:00
|
|
|
{assign var=objctid value=$object.ci_id}
|
|
|
|
{assign var=collid value=$object.collection_id}
|
|
|
|
|
|
|
|
{assign var=preLink value=$cbphoto->collection->get_next_prev_item($objctid,$collid,'prev')}
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-03-16 17:30:07 +05:00
|
|
|
{assign var=nextLink value=$cbphoto->collection->get_next_prev_item($objctid,$collid,'next')}
|
|
|
|
|
2016-03-30 18:57:53 +05:00
|
|
|
<div class="btn-holder clearfix">
|
|
|
|
<a class="btn view-photo-nxt icon-right-arrow" href="{$cbphoto->photo_links($nextLink.0,'view_item')}"><i>next</i></a>
|
|
|
|
|
|
|
|
<a class="btn view-photo-pre icon-left-arrow" href="{$cbphoto->photo_links($preLink.0,'view_item')}"><i>prev</i></a>
|
|
|
|
</div>
|
2016-03-16 17:30:07 +05:00
|
|
|
</div>
|
2016-03-30 18:57:53 +05:00
|
|
|
|
|
|
|
<section class="view-details clearfix">
|
|
|
|
<header class="clearfix details">
|
2016-03-30 19:21:50 +05:00
|
|
|
<div id="result_cont"></div>
|
2016-03-30 18:57:53 +05:00
|
|
|
<h1>{$photo.photo_title|truncate:55}</h1>
|
|
|
|
<div class="user-video-info clearfix">
|
2016-04-01 11:11:21 +05:00
|
|
|
<a href="{$userquery->profile_link($user)}" class="avatar">
|
2016-03-30 18:57:53 +05:00
|
|
|
<img src="{$userquery->avatar($video,'small',userid())}" class="img-responsive">
|
|
|
|
</a>
|
|
|
|
<h2 class="user-title">
|
|
|
|
<a href="{$userquery->profile_link($user)}">{$user.username}</a>
|
|
|
|
</h2>
|
|
|
|
<div class="views-counter">
|
|
|
|
<span>{prettyNum($photo.views)}</span>
|
|
|
|
</div>
|
2016-03-16 17:30:07 +05:00
|
|
|
</div>
|
2016-03-30 18:57:53 +05:00
|
|
|
<div class="user-likes-sub clearfix">
|
|
|
|
<div class="clearfix like-rating col-lg-6 col-md-6 col-sm-6 col-xs-12" id="rating_container">
|
|
|
|
{if $photo.allow_rating != 'no'}
|
|
|
|
{show_video_rating rating=$photo.rating ratings=$photo.rated_by total='10' id=$photo.photo_id type=photo}
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
<div class="clearfix subscribe-col col-lg-6 col-md-6 col-sm-6 col-xs-12">
|
|
|
|
{if $photo.userid != userid()}
|
2016-03-30 19:21:50 +05:00
|
|
|
<a id="subscribeUser" class="btn btn-subscribe btn-primary" href="javascript:void(0)" onclick="subscriber('{$user.userid}','subscribe_user','video_detail_result_cont')">
|
2016-03-16 17:30:07 +05:00
|
|
|
<span>{lang('Subscribe')}</span>
|
|
|
|
</a>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-30 18:57:53 +05:00
|
|
|
</header>
|
|
|
|
<div id="messageFav" class="alert alert-info marginTop" style="display:none"></div>
|
|
|
|
<div class="view-tabs clearfix">
|
2016-03-16 17:30:07 +05:00
|
|
|
<ul class="clearfix nav nav-tabs">
|
|
|
|
<li class="active">
|
|
|
|
<a href="#cb-item-info" data-toggle="tab"><span class="icon-info"></span>{lang('Info')}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2016-03-30 18:57:53 +05:00
|
|
|
<a href="#cb-item-share" data-toggle="tab"><span class="icon-share"></span>Share/Embed</a>
|
2016-03-16 17:30:07 +05:00
|
|
|
</li>
|
|
|
|
<li>
|
2016-03-30 18:57:53 +05:00
|
|
|
<a href="#cb-item-addto" data-toggle="tab"><span class="icon-plusrounded"></span>{lang('Add to')}</a>
|
2016-03-16 17:30:07 +05:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#cb-item-report" data-toggle="tab"><span class="icon-flag"></span>{lang('Report')}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content clearfix">
|
|
|
|
<div class="tab-pane fade in clearfix active" id="cb-item-info">
|
|
|
|
<div class="clearfix watch-vid-details">
|
|
|
|
<ul class="clearfix desc-list">
|
|
|
|
<li><strong>{lang('Photo description')}</strong>: {$photo.photo_description|truncate:90}</li>
|
|
|
|
|
|
|
|
{assign var=category value=$userquery->get_category($user.category)}
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-03-16 17:30:07 +05:00
|
|
|
<li><strong>{lang('Category')}</strong>: {$category.category_name}</li>
|
|
|
|
<li><strong>{lang('Tags')}</strong>: {$photo.photo_tags|tags:photos}</li>
|
|
|
|
<li><strong>{$photo.views|number_format}</strong> {lang('View')}{if $photo.views > 1}{lang('s')}{/if}</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-03-16 17:30:07 +05:00
|
|
|
<div class="tab-pane fade in clearfix" id="cb-item-share">
|
2016-03-30 18:57:53 +05:00
|
|
|
<ul class="social-share">
|
|
|
|
<li>
|
|
|
|
<a href="http://www.facebook.com/sharer/sharer.php?s=100&p[url]={videoLink($video)|urlencode}&p[images][0]={get_thumb vdetails=$video}&p[title]={$video.title|title|urlencode}&p[summary]={$video.description|description|urlencode}" target="_blank" class="btn-fb icon-facebook">
|
|
|
|
<span>Facebook</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://twitter.com/share" target="_blank" class="btn-tw icon-twitter">
|
|
|
|
<span>Twitter</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://plus.google.com/share?url={urlencode(videolink($video))}" target="_blank" class="btn-gplus icon-gplus">
|
|
|
|
<span>Google Plus</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2016-03-16 17:30:07 +05:00
|
|
|
{show_share_form id=$photo.photo_id type=Photo}
|
|
|
|
</div>
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-03-16 17:30:07 +05:00
|
|
|
<div class="tab-pane fade in clearfix" id="cb-item-addto">
|
|
|
|
<div class="clearfix form-horizontal row">
|
|
|
|
{$codes=$cbphoto->photo_embed_codes(['type'=>'all','with_url'=>true, 'details'=>$photo])}
|
|
|
|
{foreach from=$codes item=item}
|
|
|
|
|
|
|
|
<div class="photo-share-tab col-lg-6 col-md-6 col-sm-6 col-xs-12 form-group">
|
|
|
|
<label class="col-sm-2 col-xs-3 control-label" for="{$item.type}">{$item.name}</label>
|
|
|
|
<div class="col-sm-10 col-xs-9">
|
|
|
|
<input class="form-control" onFocus="this.select();" value="{$item.code}" id="{$item.type}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{/foreach}
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-04-05 11:04:42 +05:00
|
|
|
<div class="tab-pane fade in clearfix custom-elements" id="cb-item-report">
|
2016-03-16 17:30:07 +05:00
|
|
|
{show_flag_form id=$photo.photo_id type=Photo}
|
|
|
|
</div>
|
2016-03-30 18:57:53 +05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<div class="clearfix comments-block" id="comments-block">
|
|
|
|
<div id="test1"></div>
|
|
|
|
<div id="reply" class="clearfix">
|
|
|
|
<div class="pad-bottom">
|
|
|
|
<div class="addComment clearfix">
|
|
|
|
<div class="com_count" id="com_count">
|
2016-04-04 11:22:32 +05:00
|
|
|
<h2>{$photo.total_comments} <span>{lang code='comments'}</span></h2>
|
2016-03-16 17:30:07 +05:00
|
|
|
</div>
|
2016-03-30 18:57:53 +05:00
|
|
|
{if $myquery->is_commentable($photo,'p')}
|
|
|
|
{include file="$style_dir/blocks/comments/add_comment.html" id=$photo.photo_id type=p}
|
|
|
|
{else}
|
|
|
|
<div class="alert alert-warning">{lang code='Comments disabled for this photo'}</div>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
<div id="comments"></div>
|
|
|
|
<div id="userCommentsList">
|
2016-03-16 17:30:07 +05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-03-30 18:57:53 +05:00
|
|
|
<aside id="sidebar">
|
|
|
|
<div class="box-ad ad">{AD place='ad_300x250'}</div>
|
|
|
|
<h2>{lang code='Related Photos'}</h2>
|
|
|
|
<div class="clearfix sidebar-items">
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-03-30 18:57:53 +05:00
|
|
|
{$related_photos=get_photos(['title'=>$photo.photo_title,'tags'=>$photo.photo_tags,
|
|
|
|
'exclude'=>$photo.photo_id,'show_related'=>'yes','limit'=>6,'order'=>'date_added DESC'])}
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-03-30 18:57:53 +05:00
|
|
|
{if $related_photos}
|
|
|
|
<div class="row">
|
|
|
|
{foreach $related_photos as $photo}
|
|
|
|
<div class="item-photo col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
|
|
|
{include file="$style_dir/blocks/photo.html" display_type='relatedPhoto_sidebar'}
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
</div>
|
|
|
|
{else}
|
|
|
|
<div class="well well-info">No Photos Found !</div>
|
|
|
|
{/if}
|
2016-03-16 17:30:07 +05:00
|
|
|
</div>
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-03-30 18:57:53 +05:00
|
|
|
{$row = $myquery->Get_Website_Details()}
|
|
|
|
{if $row.collectionsSection == 'yes'}
|
|
|
|
{$collections = $cbcollection->get_collections(['limit'=>5, 'active'=>'yes'])}
|
|
|
|
<h2>{lang code="Top Collections"}</h2>
|
2016-04-04 11:22:32 +05:00
|
|
|
<div class="clearfix sidebar-items collections-grid">
|
2016-03-30 18:57:53 +05:00
|
|
|
<div class="clearfix row">
|
|
|
|
{$limit=10}
|
|
|
|
{if $collections}
|
|
|
|
{foreach from=$collections item=collection}
|
|
|
|
{$first_col_thumb = $cbcollection->coll_first_thumb($collection,'l')}
|
|
|
|
<div class="clearfix collection-item col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
|
|
|
<div class="collection-holder">
|
|
|
|
<div class="photo-block">
|
|
|
|
<a href="{$cbphoto->photo_links($item,'view_item')}">
|
|
|
|
<img alt="{$collection.title}" title="{$collection.title}" class="img-responsive" id="photo_{$collection.ci_id}" src="{$first_col_thumb}">
|
2016-04-04 11:22:32 +05:00
|
|
|
<div class="collection-info">
|
|
|
|
<span>{$collection.total_objects}</span>Photo(s)
|
|
|
|
</div>
|
2016-03-30 18:57:53 +05:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<img src="{$theme}/images/photo-bg.png" alt="" class="photo-bg">
|
|
|
|
</div>
|
2016-04-04 11:22:32 +05:00
|
|
|
<span class="title">{$collection.collection_name}</span>
|
2016-03-30 18:57:53 +05:00
|
|
|
</div>
|
|
|
|
{/foreach}
|
2016-03-16 17:30:07 +05:00
|
|
|
</div>
|
2016-03-30 18:57:53 +05:00
|
|
|
{else}
|
|
|
|
<div class="well well-info">No Collection</div>
|
|
|
|
{/if}
|
2016-03-16 17:30:07 +05:00
|
|
|
</div>
|
2016-03-30 18:57:53 +05:00
|
|
|
{/if}
|
|
|
|
</aside>
|
|
|
|
{*section name=list loop=$uphotos}
|
|
|
|
{include file="$style_dir/blocks/photo.html" display_type="related_photos" photo=$uphotos[list]}
|
|
|
|
{/section*}
|
|
|
|
</div>
|
2016-03-16 17:30:07 +05:00
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function()
|
|
|
|
{ldelim}
|
|
|
|
$(".clip_read").click(function() {
|
|
|
|
$(this).toggleClass('clip_hide');
|
|
|
|
if(!$(this).hasClass('clip_hide'))
|
|
|
|
|
|
|
|
{
|
|
|
|
$('.not_show').show();
|
|
|
|
$('.will_show').hide();
|
|
|
|
$(".clip_read").text("Show Less");
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$('.not_show').hide();
|
|
|
|
$('.will_show').show();
|
|
|
|
$(".clip_read").text("Show More");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
comments_voting = 'no';
|
|
|
|
getComments('p','{$photo.photo_id}','{$photo.last_commented}',1,'{$photo.total_comments}','{$object_type}')
|
|
|
|
{rdelim}
|
|
|
|
);
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{literal}
|
|
|
|
|
|
|
|
{/literal}
|