{if $reorder_link}
  <a class="btn btn-sm" href="#" id="reorder_list_{$template_container_id}_link" onclick="pagecontent.reorder.toggle({$template_container_id}); return false;">
    <i>&#x2630;</i> Re-order
  </a>
{/if}

{if is_array($contents) && !empty($contents)}
  <div class="list">
    <ul id="page_content_list_{$template_container_id}" class="pageContentList">
    {foreach from=$contents item=content name=content}
    <li id="pagecontent_{$content.page_content_id}" class="{if $smarty.foreach.content.iteration%2 == 1}even{else}odd{/if}item">
     {if !$no_edit}
     <div id="edit_links_for_{$content.page_content_id}" class="edit_links_for_item">
     &nbsp; &nbsp;
     {link_to href="controller:`$content._asset`;action:edit;id:`$content.id`;page_content_id:`$content.page_content_id`;" text="Edit" class="control" referer=1} |
     {link_to href="controller:page_content;action:remove_content;id:`$content.page_content_id`;" text="Remove" class="control" referer=1 confirm="Are you sure?"}
     </div>
     {/if}
     <div id="content_for_{$content.page_content_id}" class="content_for_item">
     <img src="/nterchange/images/drag.gif" alt="Drag" class="dragger_{$template_container_id} dragger" id="drag_{$content.page_content_id}" width="25" height="11" style="display: none" />
     {$content.cms_headline} <span class="assettype">({$content._asset_name})</span>
     </div>
    </li>
    {/foreach}
    </ul>
  </div>
{/if}


