{* $Id: module.tpl 12244 2008-03-30 13:32:53Z luciash $*}
{* Module layout with controls *}

<div class="box"><div class="box-title">
{* Draw module controls for logged user only *}
{if $user and $prefs.user_assigned_modules == 'y' and $prefs.feature_modulecontrols eq 'y'}
  <span class="modcontrols">
    <a class="movemodup" title="{tr}Move module up{/tr}" href="{$current_location}?mc_up={$module_name}"><span>{tr}Up{/tr}</span></a>
    <a class="movemoddown" title="{tr}Move module down{/tr}" href="{$current_location}?mc_down={$module_name}"><span>{tr}Down{/tr}</span></a>
    <a class="movemodopside" title="{tr}Move module to opposite side{/tr}" href="{$current_location}?mc_move={$module_name}"><span>{tr}left/right{/tr}</span></a>
    <a class="removemod" title="{tr}Unassign module{/tr}" href="{$current_location}?mc_unassign={$module_name}"><span>{tr}Remove{/tr}</span></a>
  </span>
{/if}
{if $module_flip eq 'y'}<a href="javascript:toggle('mod-{$module_name|escape}');" style="text-decoration: none"><strong>{$module_title}</strong></a>
{else}<strong>{$module_title}</strong>
{/if}
</div><div class="box-data" id="mod-{$module_name|escape}" style="display: block">
    {$module_content}{$module_error}
</div></div>
