<%~set content_header_title = $forum_name%>
        <%~set post_toolbar = 1%>
        <%~init array breadcrumbs%><%init hash breadcrumbs.0%><%init hash breadcrumbs.1%>
        <%~set breadcrumbs.0.name = $forum_name%>
        <%~set breadcrumbs.0.url  = GForum::SEO::url(params => "forum=$forum_id")%>
        <%~set breadcrumbs.1.name = $root_post_subject%>
        <%include include_breadcrumb.html%>
        
<%-- end contentwrapper --%>
    <%-- start content--%>
          <%include include_content_header.html%>
          
<%~set root_post_id ||= $post_root_id || $post_id%>
<%~set do = ''%>
<%~if in.do%>
  <%~set do = "do=$this_do"%>
<%~endif%>
<%~set pagination_options.type = 'post'%>
<%~set pagination_options.id = $root_post_id%>
<%~set pagination_options.params = "$do$hidden_sort$hidden_page"%>
<%~set pagination_options.page_items = $num_posts%>
<%~set pagination_options.show_view_all = 1%>
          
          <%loop post_loop%>
            <%~if is_moderator and post_reports_count%><%set admin_show_post = 1%><%else%><%set admin_show_post = 0%><%endif%>
            <%~if blocked and not admin_show_post and in.post != $post_id%><%set hide_post = 1%><%else%><%set hide_post = 0%><%endif%>
            <%-- Serve ad on mobile --%>
            <%~if row_num == 1%>
              <%~set serve_ad = 1%><%set ad_count = 1%>
            <%~else%>
              <%~set count += 1%><%set odd = $count % 10%>
              <%~if not $odd%><%set serve_ad = 1%><%set count = 0%><%endif%>
            <%~endif%>
            <%include include_post_display.html%>
<%~if forum_id eq '4' %>
<%~else %>
          <%~if $serve_ad%><%set height_choice = $ad_count % 2%>
          <%~if not height_choice%><%set ad_height = 250%><%else%><%set ad_height = 600 %><%endif%>
          <%~set ad_count += 1%>
          <%include include_ad_mobile.html%>
          <%~set serve_ad = 0%><%set count = 0%>
          <%~endif%>
<%~if not $odd%>
<%~set adsize = '728x90'%> <%include include_ad.html%>
<%~endif%>
<%~endif%>
            
          <%endloop%>
          <%include include_post_toolbar.html%>
          <%-- ad for tablet --%> 
          <%~if num_posts > 3%>
          <%include include_ad_tablet.html%>
          <%~endif%>
        
<%-- end content --%>