Added : Group topic files.
This commit is contained in:
parent
2cea16e711
commit
d517582f48
3 changed files with 108 additions and 0 deletions
17
upload/styles/cbv3/layout/blocks/groups/group_head.html
Normal file
17
upload/styles/cbv3/layout/blocks/groups/group_head.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<div class="group-head">
|
||||
<div class="group-title">An awesome group title</div>
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
<li><a href="#home" data-toggle="tab">Posts</a></li>
|
||||
<li><a href="#profile" data-toggle="tab">Profile</a></li>
|
||||
<li><a href="#messages" data-toggle="tab">Messages</a></li>
|
||||
<li><a href="#settings" data-toggle="tab">Settings</a></li>
|
||||
</ul>
|
||||
|
||||
<div align="right" class="btn-group">
|
||||
<a class="btn btn-mini disabled">Add </a>
|
||||
<a class="btn btn-mini" data-toggle="modal" data-target="#add-topic-modal"><i class="icon-list"></i></a>
|
||||
<a class="btn btn-mini"><i class="icon-film"></i></a>
|
||||
<a class="btn btn-mini"><i class="icon-picture"></i></a>
|
||||
</div>
|
||||
</div>
|
19
upload/styles/cbv3/layout/blocks/groups/topics.html
Normal file
19
upload/styles/cbv3/layout/blocks/groups/topics.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<div class="height10"></div>
|
||||
<div id="latest_comment_container"></div>
|
||||
|
||||
|
||||
{if $comments}
|
||||
|
||||
{foreach from=$comments.comments item=comment}
|
||||
{include file="$style_dir/blocks/groups/topic.html" comment=$comment type=$type parents=$comments.parents}
|
||||
{/foreach}
|
||||
|
||||
{else}
|
||||
|
||||
<div align="center" class="alert no_comments" id="no_comments">
|
||||
{$no_comments=lang("This %s has no comments, be the first to comment on this video..")}
|
||||
{$no_comments|sprintf:$object_type}
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
<div class="height10"></div>
|
72
upload/styles/cbv3/layout/view_topic.html
Normal file
72
upload/styles/cbv3/layout/view_topic.html
Normal file
|
@ -0,0 +1,72 @@
|
|||
{$object_type='topic'}
|
||||
<div id="global-container" class="relative clearfix">
|
||||
{include_template_file file='blocks/groups/group_left.html' group=$group}
|
||||
|
||||
<div class="pull-left">
|
||||
|
||||
|
||||
<div class="global-sidebar-column pull-right">
|
||||
|
||||
</div>
|
||||
|
||||
<div style="" class="global-content-column pull-left view-group">
|
||||
|
||||
{include_template_file file='blocks/groups/group_head.html'}
|
||||
|
||||
<div class="group-topics">
|
||||
<div class="group-topic-post">
|
||||
<div class="topic-post-thumb">
|
||||
<img src="{$userquery->getuserthumb($topic,'small')}" />
|
||||
</div>
|
||||
<div class="well well-small well-white relative topic-content">
|
||||
<div class="topic-bubble-caret"></div>
|
||||
<div class="topic-title">{$topic.topic_title}</div>
|
||||
<div class="topic-info">by admin - August 2012 04:55 pm</div>
|
||||
<div class="topic-post">
|
||||
{$topic.topic_post}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function()
|
||||
{
|
||||
comments_voting = 'no';
|
||||
get_comments('t','{$topic.topic_id}','{$topic.last_post_time}',1,'{$topic.total_replies}','{$object_type}')
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<div id="comments" class="comments">
|
||||
|
||||
</div>
|
||||
|
||||
{if $topic.total_replies == 0}
|
||||
<div id="no_comments">
|
||||
<div class="alert">{lang code="This topic has no comments.."}</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Topics use same Commentary based reply system so we going use it here too -->
|
||||
|
||||
<div class="add-topic-box muted">
|
||||
<form name="add-topic-comment" id="comment-form">
|
||||
<input type="hidden" name="obj_id" value="{$topic.topic_id}" />
|
||||
<input type="hidden" name="type" value="topic" />
|
||||
<h5>Post your comment</h5>
|
||||
<textarea class="span6" name="comment" ></textarea>
|
||||
<a class="btn width100perc padding_box margin0" onclick="add_comment('t')" id="add-comment-button" data-loading-text="Submiting..">Submit..</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="global-content-full-height"></div>
|
||||
</div>
|
Loading…
Add table
Reference in a new issue