1{* $Id$ *} 2{if strlen($blog_data.post_heading) > 0 and $prefs.feature_blog_heading eq 'y'} 3 {eval var=$blog_data.post_heading} 4{else} 5 {include file='blog_post_heading.tpl'} 6{/if} 7<article class="card blogpost post post_single"> 8 {include file='blog_wrapper.tpl' blog_post_context='view_blog_post'} 9</article> 10{include file='blog_post_related_content.tpl'} 11{if $prefs.feature_blogposts_comments == 'y' && $blog_data.allow_comments == 'y' 12 && ($tiki_p_read_comments == 'y' 13 || $tiki_p_post_comments == 'y' 14 || $tiki_p_edit_comments == 'y')} 15 <div id="comment-container" data-target="{service controller=comment action=list type="blog post" objectId=$postId}"></div> 16 {jq} 17 var id = '#comment-container'; 18 $(id).comment_load($(id).data('target')); 19 $(document).ajaxComplete(function(){$(id).tiki_popover();}); 20 {/jq} 21{/if} 22