summaryrefslogtreecommitdiff
path: root/templates/module.tpl
blob: 8064a1c876f009bd72b476807f5918450bc9ae19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{strip}
{if empty($moduleArea)}
	{if $moduleParams.layout_area == "l"}
		{assign var=area value="navig"}
	{elseif $moduleParams.layout_area == "r"}
		{assign var=area value="extra"}
	{elseif $moduleParams.layout_area == "t"}
		{assign var=area value="header"}
	{elseif $moduleParams.layout_area == "b"}
		{assign var=area value="footer"}
	{else}
		{assign var=area value=0}
	{/if}
{else}
	{assign var=area value=$moduleArea}
{/if}

<{$moduleTag} class="panel panel-default module{if !empty($modInfo.class)} {$modInfo.class}{/if} {if !empty($modInfo.class)} {$modInfo.name|replace:'_':'-'|default:''}{/if}" {if !empty($area)}id="{$area}{$moduleParams.pos}"{/if}>
	{if empty($modInfo.notitle)}
		<div class="panel-heading">
			{if $gBitSystem->isFeatureActive( 'themes_module_controls' )}
				<div class="control">
					<a title="{tr}Move module up{/tr}" href="{$smarty.const.THEMES_PKG_URL}module_controls_inc.php?move=up&module_id={$module_id}">
						{biticon ipackage=liberty iname="move_up" iexplain="up"}</a>
					<a title="{tr}Move module down{/tr}" href="{$smarty.const.THEMES_PKG_URL}module_controls_inc.php?move=down&module_id={$module_id}">
						{biticon ipackage=liberty iname="move_down" iexplain="down"}</a>
					<a title="{tr}Move module to opposite side{/tr}" href="{$smarty.const.THEMES_PKG_URL}module_controls_inc.php?move={$moduleParams.layout_area}&module_id={$module_id}">
						{biticon ipackage=liberty iname="move_left_right" iexplain="move left right"}</a>
				</div>
			{/if}
			{if $gBitSystem->isFeatureActive( 'themes_collapsible_modules' )}<a href="javascript:BitBase.toggle('module{$area}{$moduleParams.pos}','block',true);">{/if}
				{if !empty($modInfo.notra)}
					{$modInfo.title|default:$moduleParams.title}
				{else}
					{tr}{$modInfo.title|default:$moduleParams.title}{/tr}
				{/if}
			{if $gBitSystem->isFeatureActive( 'themes_collapsible_modules' )}</a>{/if}
		</div>
	{/if}
	<div class="panel-body"{if $gBitSystem->isFeatureActive( 'themes_collapsible_modules' )} style="display:{$moduleParams.toggle_state|default:block};" id="module{$area}{$moduleParams.pos}"{/if}>
		{$modInfo.data|default:null}
	</div>
</{$moduleTag}>
{/strip}