modified: embed codes under share/embed section added

This commit is contained in:
Awais-cb 2017-05-09 12:29:02 +05:00
parent 3133dd2a75
commit d08c128918

View file

@ -8,7 +8,7 @@
{$shareableThumb = get_photo_file($photo.photo_id)} {$shareableThumb = get_photo_file($photo.photo_id)}
{$shareableThumb = $shareableThumb.0} {$shareableThumb = $shareableThumb.0}
<div class="clearfix"> <div class="clearfix">
<section id="content" class="clearfix"> <section id="content" class="clearfix">
<div class="clearfix leaderboard-ad ad"> <div class="clearfix leaderboard-ad ad">
{AD place='ad_728x90'} {AD place='ad_728x90'}
@ -86,7 +86,7 @@
<a href="#cb-item-info" data-toggle="tab"><span class="icon-info"></span>{lang code='info'}</a> <a href="#cb-item-info" data-toggle="tab"><span class="icon-info"></span>{lang code='info'}</a>
</li> </li>
<li> <li>
<a href="#cb-item-share" data-toggle="tab"><span class="icon-share"></span>{lang code='Share'}</a> <a href="#cb-item-share" data-toggle="tab"><span class="icon-share"></span>{lang code='Share / Embed'}</a>
</li> </li>
<li> <li>
<a href="#cb-item-addto" data-toggle="tab"><span class="icon-plusrounded"></span>{lang('add_to')}</a> <a href="#cb-item-addto" data-toggle="tab"><span class="icon-plusrounded"></span>{lang('add_to')}</a>
@ -138,10 +138,7 @@
</a> </a>
</li> </li>
</ul> </ul>
{show_share_form id=$photo.photo_id type=Photo} <!-- Embeding code to own forum -->
</div>
<div class="tab-pane fade in clearfix" id="cb-item-addto">
<div class="clearfix form-horizontal row"> <div class="clearfix form-horizontal row">
{$codes=$cbphoto->photo_embed_codes(['type'=>'all','with_url'=>true, 'details'=>$photo])} {$codes=$cbphoto->photo_embed_codes(['type'=>'all','with_url'=>true, 'details'=>$photo])}
{foreach from=$codes item=item} {foreach from=$codes item=item}
@ -155,6 +152,13 @@
{/foreach} {/foreach}
</div> </div>
<!-- Embeding code to own forum -->
{show_share_form id=$photo.photo_id type=Photo}
</div>
<div class="tab-pane fade in clearfix" id="cb-item-addto">
<!-- add photo to fav --> <!-- add photo to fav -->
<div class="clearfix btn-fav"> <div class="clearfix btn-fav">
<div id="video_action_result_cont"></div> <div id="video_action_result_cont"></div>
@ -196,9 +200,9 @@
</div> </div>
</div> </div>
</div> </div>
</section> </section>
<aside id="sidebar"> <aside id="sidebar">
<div class="box-ad ad">{AD place='ad_300x250'}</div> <div class="box-ad ad">{AD place='ad_300x250'}</div>
<h2>{lang code='related_photos'}</h2> <h2>{lang code='related_photos'}</h2>
<div class="clearfix sidebar-items"> <div class="clearfix sidebar-items">
@ -240,16 +244,16 @@
{/if} {/if}
</div> </div>
{/if} {/if}
</aside> </aside>
{*section name=list loop=$uphotos} {*section name=list loop=$uphotos}
{include file="$style_dir/blocks/photo.html" display_type="related_photos" photo=$uphotos[list]} {include file="$style_dir/blocks/photo.html" display_type="related_photos" photo=$uphotos[list]}
{/section*} {/section*}
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
var seoUrls = "{$Cbucket->configs.seo}"; var seoUrls = "{$Cbucket->configs.seo}";
var srcFirst = "{$srcfirst}"; var srcFirst = "{$srcfirst}";
var key_globel; // image source key0 var key_globel; // image source key0
var first_source; var first_source;
var collection_id; var collection_id;
@ -276,10 +280,10 @@ $(document).ready(function()
} }
}); });
comments_voting = 'no'; comments_voting = 'no';
getComments('p','{$photo.photo_id}','{$photo.last_commented}',1,'{$photo.total_comments}','{$object_type}') getComments('p','{$photo.photo_id}','{$photo.last_commented}',1,'{$photo.total_comments}','{$object_type}')
{rdelim} {rdelim}
); );
/*$(document).ready(function(){ /*$(document).ready(function(){
var form_selector = 'comment_form'; var form_selector = 'comment_form';
@ -297,5 +301,5 @@ comments_voting = 'no';
}); });
}); });
*/ */
</script> </script>