{* $Id$ *} {* Module layout with controls *} {if !isset($module_position)}{assign var=module_position value=''}{/if} {if !isset($module_ord)}{assign var=module_ord value=''}{/if} {capture name=name}{$module_name|replace:"+":"_"|cat:$module_position|cat:$module_ord|escape}{/capture} {if !empty($module_params.topclass)}
{/if} {if $module_nobox neq 'y'} {if !isset($moduleId)}{assign var=moduleId value=' '}{/if}
{if $module_decorations ne 'n'}
{if ($module_notitle ne 'y' && !empty($module_title)) || ($module_flip eq 'y' and $prefs.javascript_enabled ne 'n') || $prefs.menus_items_icons eq 'y'}

{if $module_notitle ne 'y' && !empty($module_title)} {$module_title} {/if} {if $module_flip eq 'y' and $prefs.javascript_enabled ne 'n'}
{* Only show edit and delete options in module title if on tiki-admin_modules.php page *} {if $smarty.server.SCRIPT_NAME == $url_path|cat:'tiki-admin_modules.php'}
{ticket}
{icon name="edit"} {/if} {icon id="icnmod-"|cat:$smarty.capture.name class="flipmodimage" name="bars" alt="[{tr}Toggle{/tr}]"}
{/if}

{/if}
{elseif $module_notitle ne 'y'}{* means when module decorations are set to 'n' don't render the card-header wrapper as above *} {if $module_flip eq 'y' and $prefs.javascript_enabled ne 'n'}

{else}

{/if} {$module_title} {if $module_flip eq 'y' and $prefs.javascript_enabled ne 'n'}
{* Only show edit and delete options in module title if on tiki-admin_modules.php page *} {if $smarty.server.SCRIPT_NAME == $url_path|cat:'tiki-admin_modules.php'}
{ticket}
{icon name="edit"} {/if} {icon id="icnmod-"|cat:$smarty.capture.name class="flipmodimage" name="module" alt="[{tr}Toggle{/tr}]"}
{/if}

{/if}
{else}{* $module_nobox eq 'y' *}
{/if}{* close $module_nobox *} {$module_content} {if $module_error} {remarksbox type="warning" title="{tr}Error{/tr}"} {$module_error} {/remarksbox} {/if} {if $module_nobox neq 'y'}
{* close div id="mod-{$smarty.capture.name}" *} {* Module controls when module in a box *} {if $user and $prefs.user_assigned_modules == 'y' and $prefs.feature_modulecontrols eq 'y' && ($module_position === 'left' || $module_position === 'right')}
{ticket}
{/if} {* Added because some themes use this div for styling purposes. *}
{* close div id="module_{$moduleId}" *} {else}{* $module_nobox eq 'y' *} {* Module controls when no module box *} {if $user and $prefs.user_assigned_modules == 'y' and $prefs.feature_modulecontrols eq 'y' && ($module_position === 'left' || $module_position === 'right')}
{/if}
{* close div id="mod-{$smarty.capture.name}" *}
{* close div id="module_{$moduleId}" *} {/if}{* close $module_nobox *} {if !empty($module_params.topclass)}
{/if}