<div class="clsSideBarSections" id="selCategories">
  <div class="clsSideBarContents">
  <div class="clsClearfix clsSidebarHeaderConteiner">
		<h3>{$LANG.header_debate_categories}</h3>
	</div>
    <!--rounded corners-->
    <div class="lbsidebarsections">
      <div class="rbsidebarsections">
        <div class="bbsidebarsections">
          <div class="blcsidebarsections">
            <div class="brcsidebarsections">
              <div class="tbsidebarsections">
                <div class="tlcsidebarsections">
                  <div class="trcsidebarsections">
                    <ul class="clsSideBarLinks">
						{if $getAllCategories_arr.rs_PO_RecordCount}
                            {foreach key=gacKey item=gacValue from=$getAllCategories_arr.row}
                                  <li class="{$gacValue.class}">
                                    <a class="clsSubCategorySidebar" href="{$gacValue.questions_category.url}"><span>{$gacValue.row_cat_name_manual}
                                    {if $gacValue.record.total_debates}
                                    ({$gacValue.record.total_debates})
                                    {/if}
                                    {if $gacValue.record.has_child == '1'}
	                                    <img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-dropdown.gif" alt="{$LANG.header_category_click_for_subcategory}" title="{$LANG.header_category_click_for_subcategory}" />
                                    {/if}
                                    </span></a>
                                    {if $getAllCategories_arr.parent_id == $gacValue.record.cat_id}
                                         <ul>
                                             {foreach key=gascKey item=gascValue from=$gacValue.getAllSubCategories_arr}
                                                  <li class="{$gascValue.class}"><a href="{$gascValue.questions_category.url}"><span>{$gascValue.row_cat_name_manual}
												      {if $gascValue.record.total_debates} ({$gascValue.record.total_debates}) {/if}
											        </span></a></li>
                                             {/foreach}
                                         </ul>

                                    {/if}
                                  </li>
                            {/foreach}
						{else}
                        	<li class="clsNoCategory">{$LANG.header_no_categories_added}</li>
                        {/if}

                    </ul>
                    {if $getAllCategories_arr.rs_PO_RecordCount}
	                    <p class="clsMoreLink"><a href="{$getAllCategories_arr.categories.url}">{$LANG.header_more}</a></p>
                    {/if}
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!--end of rounded corners-->
  </div>
</div>
