{include file="cblocks/list_js.html"}

{$LABEL.lbl_blocks}

{if fn_check_admin_rights('cblocks', 'add_custom')} {/if}
{if fn_check_admin_rights('cblocks', 'edit_custom')} {assign var=edit_custom_allowed value=true} {else} {assign var=edit_custom_allowed value=false} {/if} {if fn_check_admin_rights('cblocks', 'delete_custom')} {assign var=delete_custom_allowed value=true} {else} {assign var=delete_custom_allowed value=false} {/if}

{$LABEL.help_blocks}

{$LABEL.lbl_current_customer_area_theme}: {$ctheme}

{foreach from=$lblocks item=lblock name=lblocks}

{if $lblock.type ne 'B'} {if $lblock.name} {assign var=lblock_module value=$lblock.module} {$LABEL[$lblock.label]} {if $lblock.module and $CONFIG.modules.$lblock_module.admin_menu_id}({$LABEL.link_mng}){/if} {else} {$lblock.caption|truncate:20:"...":true} {if $edit_custom_allowed} {$LABEL.link_edit2} {/if} {if $delete_custom_allowed} {$LABEL.link_delete} {/if} {/if} {else} {$LABEL.lbl_banner_place} ({$lblock.name|truncate:18:"...":true}) {/if}

{$LABEL.lbl_pages}: {if $lblock.type eq 'B'}

{$LABEL.link_edit_banner_place} {/if}

{foreachelse}
 
{/foreach}
{foreach from=$cblocks item=cblock name=cblocks}

{if $cblock.name} {assign var=cblock_module value=$cblock.module} {$LABEL[$cblock.label]} {if $cblock.module and $CONFIG.modules.$cblock_module.admin_menu_id}({$LABEL.link_mng}){/if} {else} {$cblock.caption|truncate:20:"...":true} {if $edit_custom_allowed} {$LABEL.link_edit2} {/if} {if $delete_custom_allowed} {$LABEL.link_delete} {/if} {/if}

{$LABEL.lbl_pages}:

{/foreach}
{foreach from=$rblocks item=rblock name=rblocks}

{if $rblock.type ne 'B'} {if $rblock.name} {assign var=rblock_module value=$rblock.module} {$LABEL[$rblock.label]} {if $rblock.module and $CONFIG.modules.$rblock_module.admin_menu_id}({$LABEL.link_mng}){/if} {else} {$rblock.caption|truncate:20:"...":true} {if $edit_custom_allowed} {$LABEL.link_edit2} {/if} {if $delete_custom_allowed} {$LABEL.link_delete} {/if} {/if} {else} {$LABEL.lbl_banner_place} ({$rblock.name|truncate:18:"...":true}) {/if}

{$LABEL.lbl_pages}: {if $rblock.type eq 'B'}

{$LABEL.link_edit_banner_place} {/if}

{foreachelse}
 
{/foreach}