clipbucket/upload/styles/cb_28/layout/view_collection.html

173 lines
No EOL
5.6 KiB
HTML

<div id="main" class="container clearfix">
<div class="clearfix">
<section id="content" class="clearfix">
<div class="clearfix leaderboard-ad ad">
{AD place='ad_728x90'}
</div>
<h1>
{$c.collection_name|capitalize}&nbsp;&nbsp;
({$c.total_objects}&nbsp;{$c.type|capitalize})
{lang code='collection' assign='object_type'}
{uploadButton details=$c output='link' target="_blank" class='btn btn-success pull-right'}
</h1>
{if $c.type == 'photos'}
{$type = 'p'}
{else}
{$type = 'v'}
{/if}
{if $type == 'p'}
<div id="photos" class="clearfix row">
{section name=list loop=$objects}
<div class="item-photo col-lg-4 col-md-4 col-sm-6 col-xs-12">
{include file="$style_dir/blocks/collection.html" object=$objects[list] display_type=view_collection type=$c.type}
</div>
{sectionelse}
<div class="item-photo col-xs-12">
<div class="well well-info">
{$c.collection_name} has 0 items.
</div>
<div class="item-photo col-lg-4 col-md-4 col-sm-6 col-xs-6">
{/section}
</div>
{else}
<div class="videos clearfix">
<div class="clearfix row">
{if $objects}
{foreach $objects as $video}
<div class="item-video col-lg-3 col-md-4 col-sm-4 col-xs-12">
{include file="$style_dir/blocks/videos/video.html" display_type='homeVideos'}
</div>
{/foreach}
{else}
<div class="well well-info">No Videos Found !</div>
{/if}
</div>
</div>
{/if}
<div align="center" class="clearfix">
{include file="$style_dir/blocks/pagination.html"}
</div>
<div class="clearfix fav-repo">
<div class="show clearfix photoStats">
<a href="javascript:void(0)" class="btn btn-ghost" id="addToFav" onclick="slide_up_watch_video('#video_action_result_cont');_cb.add_to_favNew('collection','{$c.collection_id}');">{lang code='add_to_my_favorites'}</a>
<a href="javascript:void(0)" class="btn btn-ghost" id="flagPhotoButton" onclick="$('#flag_item').toggle();">{lang code='report_this'}</a>
</div>
<div class="video_action_result_boxes clearfix">
{show_flag_form id=$c.collection_id type=Collection}
<div class="action_box" style="display:none" id="video_action_result_cont"></div>
</div>
<ul class="clearfix desc-list">
<li>
<strong>{lang code="uploaded"}:</strong>&nbsp;{$c.date_added|niceTime}
</li>
<li>
<strong>{lang code="views"}:</strong>&nbsp;{$c.views|number_format}
</li>
<li>
<strong>{lang code="category"}:</strong>&nbsp;{$c.category|categories:collections}
</li>
<li>
<strong>{lang code="tags"}:</strong>&nbsp;{$c.collection_tags|tags:collections}
</li>
</ul>
</div>
<div class="clearfix comments-block">
{if $myquery->is_commentable($c,'collection')}
<div class="collectionComments addComment">
<h2>{lang code="comments"} ({$c.total_comments})</h2>
{if $myquery->is_commentable($c,'collection')}
{include file="$style_dir/blocks/comments/add_comment.html" id=$c.collection_id type='cl'}
{/if}
</div>
<div class="userComments">
<ul id="userCommentsList" style="margin-left:-40px;">
</ul>
</div>
{else}
<div align="center" class="moveL no_comments">
{lang code='comm_disabled_for_collection'}
</div>
{/if}
</div>
</section>
<aside id="sidebar">
<div class="box-ad ad">{AD place='ad_300x250'}</div>
{$featured=get_photos(["featured"=>"yes","limit"=>6])}
{if $featured}
<h2>{lang code='featured_photos'}</h2>
<div class="clearfix sidebar-items">
<div class="row">
{foreach $featured 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='featuredPhoto_sidebar'}
</div>
{/foreach}
</div>
</div>
{/if}
{$row = $myquery->Get_Website_Details()}
{if $row.collectionsSection == 'yes'}
{$collections = $cbcollection->get_collections(['limit'=>5, 'active'=>'yes'])}
<h2>{lang code="top_collections"}</h2>
<div class="clearfix sidebar-items collections-grid">
{$limit=10}
{if $collections}
<div class="clearfix row">
{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-12 col-xs-12">
{include file="$style_dir/blocks/collection-item.html"}
</div>
{/foreach}
</div>
{else}
<div class="well well-info">{lang code='no_items_found_in_collect'}</div>
{/if}
</div>
{/if}
</aside>
</div>
<script>
$(document).ready(function(){
function getAllComments(type,type_id,last_update,pageNum,total,object_type,admin){
$('#userCommentsList').html("<div style='padding:5px 0px;'>"+loading+"</div>");
$.ajax({
type: 'POST',
url: page,
data: {
mode:'getComments',
page:pageNum,type:type,
type_id:type_id,
object_type : object_type,
last_update : last_update,
total_comments : total,
comments_voting : comments_voting,admin : admin
},
success: function(comments){
$("#userCommentsList").html(comments);
},
dataType: 'text'
});
}
comments_voting = 'no';
getAllComments('cl','{$c.collection_id}','{$c.last_commented}',1,'{$c.total_comments}','{$object_type}');
//
var adHtml = $('.ad-holder').html();
if(adHtml<1){
$('.ad-holder').parent().remove();
$('#photos').parent().removeClass('col-lg-10 col-md-10 col-sm-10');
$('#photos').parent().addClass('clearfix col-lg-12 col-md-12 col-sm-12');
}
});
</script>
</div>