Commit de629bf8 authored by Jyhem's avatar Jyhem

[REF] Clean templates formatting so they are readable and maintainable again

parent 9c1134eb
......@@ -12,10 +12,10 @@
{/if}
<div class="container">
<div class="row page-header">
<div class="row page-header">
<div class="col-md-12">
{modulelist zone=top}
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
......@@ -26,65 +26,65 @@
<div class="row">
{if zone_is_empty('left') and zone_is_empty('right')}
<div class="col-md-12" id="col1">
{if $prefs.module_zones_pagetop eq 'fixed' or ($prefs.module_zones_pagetop ne 'n' && ! zone_is_empty('pagetop'))}
{modulelist zone=pagetop}
{/if}
{if $prefs.module_zones_pagetop eq 'fixed' or ($prefs.module_zones_pagetop ne 'n' && ! zone_is_empty('pagetop'))}
{modulelist zone=pagetop}
{/if}
<div class="pull-right">{block name=quicknav}{/block}</div>
{block name=title}{/block}
{block name=navigation}{/block}
{error_report}
{block name=content}{/block}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
</div>
{elseif zone_is_empty('left')}
<div class="col-md-9" id="col1">
{if $prefs.module_zones_pagetop eq 'fixed' or ($prefs.module_zones_pagetop ne 'n' && ! zone_is_empty('pagetop'))}
{modulelist zone=pagetop}
{/if}
{if $prefs.module_zones_pagetop eq 'fixed' or ($prefs.module_zones_pagetop ne 'n' && ! zone_is_empty('pagetop'))}
{modulelist zone=pagetop}
{/if}
<div class="pull-right">{block name=quicknav}{/block}</div>
{block name=title}{/block}
{block name=navigation}{/block}
{error_report}
{block name=content}{/block}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
</div>
<div class="col-md-3" id="col3">
{modulelist zone=right}
</div>
{elseif zone_is_empty('right')}
<div class="col-md-9 col-md-push-3" id="col1">
{if $prefs.module_zones_pagetop eq 'fixed' or ($prefs.module_zones_pagetop ne 'n' && ! zone_is_empty('pagetop'))}
{modulelist zone=pagetop}
{/if}
{if $prefs.module_zones_pagetop eq 'fixed' or ($prefs.module_zones_pagetop ne 'n' && ! zone_is_empty('pagetop'))}
{modulelist zone=pagetop}
{/if}
<div class="pull-right">{block name=quicknav}{/block}</div>
{block name=title}{/block}
{block name=navigation}{/block}
{error_report}
{block name=content}{/block}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
</div>
<div class="col-md-3 col-md-pull-9" id="col2">
{modulelist zone=left}
</div>
{else}
<div class="col-md-8 col-md-push-2" id="col1">
{if $prefs.module_zones_pagetop eq 'fixed' or ($prefs.module_zones_pagetop ne 'n' && ! zone_is_empty('pagetop'))}
{modulelist zone=pagetop}
{/if}
{if $prefs.module_zones_pagetop eq 'fixed' or ($prefs.module_zones_pagetop ne 'n' && ! zone_is_empty('pagetop'))}
{modulelist zone=pagetop}
{/if}
<div class="pull-right">{block name=quicknav}{/block}</div>
{block name=title}{/block}
{block name=navigation}{/block}
{error_report}
{block name=content}{/block}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
</div>
<div class="col-md-2 col-md-pull-8" id="col2">
{modulelist zone=left}
......
This diff is collapsed.
......@@ -11,26 +11,27 @@
{if !isset($moduleId)}{assign var=moduleId value=' '}{/if}
<div id="module_{$moduleId}" class="panel panel-default box-{$module_name}{if $module_type eq 'cssmenu'} cssmenubox{/if} module"{if !empty($tpl_module_style)} style="{$tpl_module_style}"{/if}>
{if $module_decorations ne 'n'}
<div class="panel-heading">
<h3 class="panel-title clearfix" {if !empty($module_params.bgcolor)} style="background-color:{$module_params.bgcolor};"{/if}>
{if $module_notitle ne 'y'}
<span class="moduletitle">{$module_title}</span>
{/if}
{if $module_flip eq 'y' and $prefs.javascript_enabled ne 'n'}
<span class="moduleflip" id="moduleflip-{$smarty.capture.name}">
<a title="{tr}Toggle module contents{/tr}" class="flipmodtitle close" href="javascript:icntoggle('mod-{$smarty.capture.name}','module.png');">
{icon id="icnmod-"|cat:$smarty.capture.name class="flipmodimage" _id="module" alt="[{tr}Toggle{/tr}]"}
</a>
</span>
{if $prefs.menus_items_icons eq 'y'}
<span class="moduleflip moduleflip-vert" id="moduleflip-vert-{$smarty.capture.name}">
<a title="{tr}Toggle module contents{/tr}" class="flipmodtitle" href="javascript:flip_class('main','minimize-modules-left','maximize-modules');icntoggle('mod-{$smarty.capture.name}','vmodule.png');">
{icon name="icnmod-"|cat:$smarty.capture.name class="flipmodimage" _id="trans" alt="[{tr}Toggle Vertically{/tr}]" _defaultdir="img"}
</a>
</span>
{/if}
{/if}
</h3></div>
<div class="panel-heading">
<h3 class="panel-title clearfix" {if !empty($module_params.bgcolor)} style="background-color:{$module_params.bgcolor};"{/if}>
{if $module_notitle ne 'y'}
<span class="moduletitle">{$module_title}</span>
{/if}
{if $module_flip eq 'y' and $prefs.javascript_enabled ne 'n'}
<span class="moduleflip" id="moduleflip-{$smarty.capture.name}">
<a title="{tr}Toggle module contents{/tr}" class="flipmodtitle close" href="javascript:icntoggle('mod-{$smarty.capture.name}','module.png');">
{icon id="icnmod-"|cat:$smarty.capture.name class="flipmodimage" _id="module" alt="[{tr}Toggle{/tr}]"}
</a>
</span>
{if $prefs.menus_items_icons eq 'y'}
<span class="moduleflip moduleflip-vert" id="moduleflip-vert-{$smarty.capture.name}">
<a title="{tr}Toggle module contents{/tr}" class="flipmodtitle" href="javascript:flip_class('main','minimize-modules-left','maximize-modules');icntoggle('mod-{$smarty.capture.name}','vmodule.png');">
{icon name="icnmod-"|cat:$smarty.capture.name class="flipmodimage" _id="trans" alt="[{tr}Toggle Vertically{/tr}]" _defaultdir="img"}
</a>
</span>
{/if}
{/if}
</h3>
</div>
{elseif $module_notitle ne 'y'}{* means when module decorations are set to 'n' don't render the panel-heading wrapper as above *}
{if $module_flip eq 'y' and $prefs.javascript_enabled ne 'n'}
<h3 class="panel-title" ondblclick="javascript:icntoggle('mod-{$smarty.capture.name}','module.png');"{if !empty($module_params.color)} style="color:{$module_params.color};"{/if}>
......@@ -57,22 +58,22 @@
{if $module_nobox neq 'y'}
</div>
{if $user and $prefs.user_assigned_modules == 'y' and $prefs.feature_modulecontrols eq 'y'}
<div class="panel-footer">
<span class="modcontrols">
<a title="{tr}Move module up{/tr}" href="{$current_location|escape}{$mpchar|escape}mc_up={$module_name}">
{icon _id="resultset_up" alt="{tr}Up{/tr}"}
</a>
<a title="{tr}Move module down{/tr}" href="{$current_location|escape}{$mpchar|escape}mc_down={$module_name}">
{icon _id="resultset_down" alt="{tr}Down{/tr}"}
</a>
<a title="{tr}Move module to opposite side{/tr}" href="{$current_location|escape}{$mpchar|escape}mc_move={$module_name}">
{icon _id="arrow_right-left" alt="{tr}Move to opposite side{/tr}"}
</a>
<a title="{tr}Unassign this module{/tr}" href="{$current_location|escape}{$mpchar|escape}mc_unassign={$module_name}" onclick='return confirmTheLink(this,"{tr}Are you sure you want to unassign this module?{/tr}")'>
{icon _id="cross" alt="{tr}Unassign{/tr}"}
</a>
</span>
</div>
<div class="panel-footer">
<span class="modcontrols">
<a title="{tr}Move module up{/tr}" href="{$current_location|escape}{$mpchar|escape}mc_up={$module_name}">
{icon _id="resultset_up" alt="{tr}Up{/tr}"}
</a>
<a title="{tr}Move module down{/tr}" href="{$current_location|escape}{$mpchar|escape}mc_down={$module_name}">
{icon _id="resultset_down" alt="{tr}Down{/tr}"}
</a>
<a title="{tr}Move module to opposite side{/tr}" href="{$current_location|escape}{$mpchar|escape}mc_move={$module_name}">
{icon _id="arrow_right-left" alt="{tr}Move to opposite side{/tr}"}
</a>
<a title="{tr}Unassign this module{/tr}" href="{$current_location|escape}{$mpchar|escape}mc_unassign={$module_name}" onclick='return confirmTheLink(this,"{tr}Are you sure you want to unassign this module?{/tr}")'>
{icon _id="cross" alt="{tr}Unassign{/tr}"}
</a>
</span>
</div>
{/if}
</div>
{if $prefs.feature_layoutshadows eq 'y'}{$prefs.box_shadow_end}</div>{/if}
......
{* $Id: layout_view.tpl 48366 2013-11-08 16:12:24Z lphuberdeau $ *}<!DOCTYPE html>
<html lang="{if !empty($pageLang)}{$pageLang}{else}{$prefs.language}{/if}"{if !empty($page_id)} id="page_{$page_id}"{/if}> <head>
<html lang="{if !empty($pageLang)}{$pageLang}{else}{$prefs.language}{/if}"{if !empty($page_id)} id="page_{$page_id}"{/if}>
<head>
{include file='header.tpl'}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
......@@ -20,9 +21,9 @@
{block name=navigation}{/block}
{error_report}
{block name=content}{/block}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
</div>
{elseif zone_is_empty('left')}
<div class="col-md-9" id="col1">
......@@ -31,9 +32,9 @@
{block name=navigation}{/block}
{error_report}
{block name=content}{/block}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
</div>
<div class="col-md-3" id="col3">
{modulelist zone=right}
......@@ -45,9 +46,9 @@
{block name=navigation}{/block}
{error_report}
{block name=content}{/block}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
</div>
<div class="col-md-3 col-md-pull-9" id="col2">
{modulelist zone=left}
......@@ -59,9 +60,9 @@
{block name=navigation}{/block}
{error_report}
{block name=content}{/block}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
{if $prefs.module_zones_pagebottom eq 'fixed' or ($prefs.module_zones_pagebottom ne 'n' && ! zone_is_empty('pagebottom'))}
{modulelist zone=pagebottom}
{/if}
</div>
<div class="col-md-2 col-md-pull-8" id="col2">
{modulelist zone=left}
......@@ -97,7 +98,8 @@
{if $prefs.sitelogo_icon}
<img src="{$prefs.sitelogo_icon}" style="max-height: 75%;" />
{/if}
{$prefs.sitetitle|escape}</a>
{$prefs.sitetitle|escape}
</a>
</div> {* navbar-header *}
<div class="collapse navbar-collapse" id="navbar-collapse-social">
......@@ -107,49 +109,50 @@
<div style="display:inline">
<ul class="nav navbar-nav navbar-right">
{if $user}
{if $user}
<li><a href="{if $prefs.feature_sefurl eq 'y'}logout{else}tiki-logout.php{/if}">{tr}Log out{/tr}</a></li>
{else}
<!--<li><a href="{if $prefs.feature_sefurl eq 'y'}login{else}tiki-login_scr.php{/if}">{tr}Log in{/tr}</a></li>-->
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{tr}Log in{/tr} <span class="caret"></span></a>
<ul class="dropdown-menu">
<li>
<div>
{module
module=login_box
mode="module"
show_register=""
show_forgot=""
error=""
flip=""
decorations="n"
nobox="y"
notitle="y"
}
</div>
</li>
</ul>
</li>
{if $prefs.allowRegister eq 'y'}
<li><a href="{if $prefs.feature_sefurl eq 'y'}register{else}tiki-register.php{/if}">{tr}Register{/tr}</a></li>
{else}
<!--<li><a href="{if $prefs.feature_sefurl eq 'y'}login{else}tiki-login_scr.php{/if}">{tr}Log in{/tr}</a></li>-->
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{tr}Log in{/tr} <span class="caret"></span></a>
<ul class="dropdown-menu">
<li>
<div>
{module
module=login_box
mode="module"
show_register=""
show_forgot=""
error=""
flip=""
decorations="n"
nobox="y"
notitle="y"
}
</div>
</li>
</ul>
</li>
{if $prefs.allowRegister eq 'y'}
<li><a href="{if $prefs.feature_sefurl eq 'y'}register{else}tiki-register.php{/if}">{tr}Register{/tr}</a></li>
{/if}
{/if}
</ul>
{*
{if $prefs.feature_search_show_search_box eq 'y'}
<form class="navbar-form navbar-right" role="search" action="tiki-searchindex.php">
<div class="input-group">
<input name="filter~content" type="search" class="form-control" placeholder="{tr}Search{/tr}">
<span class="input-group-btn">
<button type="submit" class="btn btn-default">{icon name="search"}</button>
</span>
</div>
</form>
{/if}
</ul>
{*
{if $prefs.feature_search_show_search_box eq 'y'}
<form class="navbar-form navbar-right" role="search" action="tiki-searchindex.php">
<div class="input-group">
<input name="filter~content" type="search" class="form-control" placeholder="{tr}Search{/tr}">
<span class="input-group-btn">
<button type="submit" class="btn btn-default">{icon name="search"}</button>
</span>
</div>
</form>
{/if}
*}
</div>
</div>
*}
</div>
</div> {* navbar-collapse-social *}
</div> {* container *}
</nav>
......
{* $Id$ *}
<div class="adminoptionbox preference form-group clearfix {$p.tagstring|escape}{if isset($smarty.request.highlight) and $smarty.request.highlight eq $p.preference} highlight{/if}" style="text-align: left;">
<label class="col-md-4 control-label" for="{$p.id|escape}">{$p.name|escape|breakline}</label>
<div class="col-md-8">
<select class="form-control" name="{$p.preference|escape}" id="{$p.id|escape}" data-tiki-admin-child-block=".{$p.preference|escape}_childcontainer">
{foreach from=$p.options key=value item=label}
<option value="{$value|escape}"{if $value eq $p.value} selected="selected"{/if} {$p.params}>{$label|escape}</option>
{/foreach}
</select>
{include file="prefs/shared-flags.tpl"}
{if $p.shorthint}
<em>{$p.shorthint|simplewiki}</em>
{/if}
{if $p.detail}
<br/>{$p.detail|simplewiki}
{/if}
{if $p.hint}
<br/><em>{$p.hint|simplewiki}</em>
{/if}
{include file="prefs/shared-dependencies.tpl"}
</div>
<label class="col-md-4 control-label" for="{$p.id|escape}">{$p.name|escape|breakline}</label>
<div class="col-md-8">
<select class="form-control" name="{$p.preference|escape}" id="{$p.id|escape}" data-tiki-admin-child-block=".{$p.preference|escape}_childcontainer">
{foreach from=$p.options key=value item=label}
<option value="{$value|escape}"{if $value eq $p.value} selected="selected"{/if} {$p.params}>{$label|escape}</option>
{/foreach}
</select>
{include file="prefs/shared-flags.tpl"}
{if $p.shorthint}
<em>{$p.shorthint|simplewiki}</em>
{/if}
{if $p.detail}
<br/>{$p.detail|simplewiki}
{/if}
{if $p.hint}
<br/><em>{$p.hint|simplewiki}</em>
{/if}
{include file="prefs/shared-dependencies.tpl"}
</div>
</div>
<div class="adminoptionbox preference clearfix {$p.tagstring|escape}{if isset($smarty.request.highlight) and $smarty.request.highlight eq $p.preference} highlight{/if}" style="text-align: left;">
<label class="col-md-4 control-label" for="{$p.id|escape}">{$p.name|escape}</label>
<div class="col-md-8">
<select class="form-control" name="{$p.preference|escape}[]" id="{$p.id|escape}" multiple="multiple">
{foreach from=$p.options key=value item=label}
<option value="{$value|escape}"{if in_array($value, $p.value)} selected="selected"{/if} {$p.params}>{$label|escape}</option>
{/foreach}
</select>
{include file="prefs/shared-flags.tpl"}
{if $p.shorthint}
<div class="help-block">{$p.shorthint|simplewiki}</div>
{/if}
{if $p.hint}
<div class="help-block">{$p.hint|simplewiki}</div>
{/if}
{include file="prefs/shared-dependencies.tpl"}
{if $prefs.jquery_ui_chosen neq 'y'}
{remarksbox type="tip" title="{tr}Tip{/tr}"}{tr}Use Ctrl+Click to select multiple options{/tr}{/remarksbox}
{/if}
</div>
<div class="col-md-8">
<select class="form-control" name="{$p.preference|escape}[]" id="{$p.id|escape}" multiple="multiple">
{foreach from=$p.options key=value item=label}
<option value="{$value|escape}"{if in_array($value, $p.value)} selected="selected"{/if} {$p.params}>{$label|escape}</option>
{/foreach}
</select>
{include file="prefs/shared-flags.tpl"}
{if $p.shorthint}
<div class="help-block">{$p.shorthint|simplewiki}</div>
{/if}
{if $p.hint}
<div class="help-block">{$p.hint|simplewiki}</div>
{/if}
{include file="prefs/shared-dependencies.tpl"}
{if $prefs.jquery_ui_chosen neq 'y'}
{remarksbox type="tip" title="{tr}Tip{/tr}"}{tr}Use Ctrl+Click to select multiple options{/tr}{/remarksbox}
{/if}
</div>
</div>
<div class="form-group adminoptionbox preference clearfix {$p.tagstring|escape}{if isset($smarty.request.highlight) and $smarty.request.highlight eq $p.preference} highlight{/if}">
<label class="control-label col-sm-4" for="{$p.id|escape}">{$p.name|escape}</label>
<div class="col-sm-8">
<div class="col-sm-8">
{object_selector_multi _simplename=$p.preference _simpleid=$p.id _simplevalue=$p.value _separator=$p.separator type=$p.selector_type _format=$p.format}
{if $p.shorthint}
<div class="help-block">{$p.shorthint|simplewiki}</div>
{/if}
{if $p.shorthint}
<div class="help-block">{$p.shorthint|simplewiki}</div>
{/if}
{include file="prefs/shared-flags.tpl"}
{include file="prefs/shared-flags.tpl"}
{if $p.detail}
<div class="help-block">{$p.detail|simplewiki}</div>
{/if}
{if $p.detail}
<div class="help-block">{$p.detail|simplewiki}</div>
{/if}
{if $p.hint}
<div class="help-block">{$p.hint|simplewiki}</div>
{/if}
{if $p.hint}
<div class="help-block">{$p.hint|simplewiki}</div>
{/if}
{include file="prefs/shared-dependencies.tpl"}
</div>
{include file="prefs/shared-dependencies.tpl"}
</div>
</div>
<div class="adminoptionbox preference clearfix {$p.tagstring|escape}{if isset($smarty.request.highlight) and $smarty.request.highlight eq $p.preference} highlight{/if}">
<label class="col-sm-4 control-label" for="{$p.id|escape}">{$p.name|escape}</label>
<div class="col-sm-8">
<input name="{$p.preference|escape}" id="{$p.id|escape}" value="{$p.value|escape}" class="form-control" {* size="{$p.size|default:80|escape}" *} type="password" {$p.params}>
{$p.detail|escape}
{include file="prefs/shared-flags.tpl"}
{if $p.shorthint}
<div class="help-block">{$p.shorthint|simplewiki}</div>
{/if}
{if $p.hint}
<div class="help-block">{$p.hint|simplewiki}</div>
{/if}
{include file="prefs/shared-dependencies.tpl"}
</div>
<div class="col-sm-8">
<input name="{$p.preference|escape}" id="{$p.id|escape}" value="{$p.value|escape}" class="form-control" {* size="{$p.size|default:80|escape}" *} type="password" {$p.params}>
{$p.detail|escape}
{include file="prefs/shared-flags.tpl"}
{if $p.shorthint}
<div class="help-block">{$p.shorthint|simplewiki}</div>
{/if}
{if $p.hint}
<div class="help-block">{$p.hint|simplewiki}</div>
{/if}
{include file="prefs/shared-dependencies.tpl"}
</div>
</div>
......@@ -5,11 +5,11 @@
{foreach from=$p.options key=value item=label name=loop}
<div class="adminoptionlabel">
<input id="{$p.id|cat:'_'|cat:$smarty.foreach.loop.index|escape}" type="radio" name="{$p.preference|escape}"
value="{$value}"{if $p.value eq $value} checked="checked"{/if} {$p.params}
<input id="{$p.id|cat:'_'|cat:$smarty.foreach.loop.index|escape}" type="radio" name="{$p.preference|escape}"
value="{$value}"{if $p.value eq $value} checked="checked"{/if} {$p.params}
data-tiki-admin-child-block="#{$p.preference|escape}_childcontainer_{$smarty.foreach.loop.index|escape}"
>
<label for="{$p.id|cat:'_'|cat:$smarty.foreach.loop.index|escape}">{$label|escape}</label>
>
<label for="{$p.id|cat:'_'|cat:$smarty.foreach.loop.index|escape}">{$label|escape}</label>
</div>
{/foreach}
{if $p.detail}
......
<div class="form-group adminoptionbox preference clearfix {$p.tagstring|escape}{if isset($smarty.request.highlight) and $smarty.request.highlight eq $p.preference} highlight{/if}">
<label class="control-label col-sm-4" for="{$p.id|escape}">{$p.name|escape}</label>
<div class="col-sm-8">
<div class="col-sm-8">
{object_selector _simplename=$p.preference _simpleid=$p.id _simplevalue=$p.value type=$p.selector_type _format=$p.format}
{if $p.shorthint}
<div class="help-block">{$p.shorthint|simplewiki}</div>
{/if}
{if $p.shorthint}
<div class="help-block">{$p.shorthint|simplewiki}</div>
{/if}
{include file="prefs/shared-flags.tpl"}
{include file="prefs/shared-flags.tpl"}
{if $p.detail}
<div class="help-block">{$p.detail|simplewiki}</div>
{/if}
{if $p.detail}
<div class="help-block">{$p.detail|simplewiki}</div>
{/if}
{if $p.hint}
<div class="help-block">{$p.hint|simplewiki}</div>
{/if}
{if $p.hint}
<div class="help-block">{$p.hint|simplewiki}</div>
{/if}
{include file="prefs/shared-dependencies.tpl"}
</div>
{include file="prefs/shared-dependencies.tpl"}
</div>
</div>
<div class="form-group adminoptionbox preference clearfix {$p.tagstring|escape}{if isset($smarty.request.highlight) and $smarty.request.highlight eq $p.preference} highlight{/if}">
<label class="control-label col-sm-4" for="{$p.id|escape}">{$p.name|escape}</label>
<div class="col-sm-8">
{if is_array( $p.value )}
<input name="{$p.preference|escape}" id="{$p.id|escape}" value="{$p.value|@implode:$p.separator|escape}" class="form-control" size="{$p.size|default:40|escape}"
type="text" {$p.params}>
{else}
<input name="{$p.preference|escape}" id="{$p.id|escape}" value="{$p.value|escape}" class="form-control" size="{$p.size|default:40|escape}"
type="text" {$p.params}>
{/if}
{if $p.shorthint}
<div class="help-block">{$p.shorthint|simplewiki}</div>
{/if}
<div class="col-sm-8">
{if is_array( $p.value )}
<input name="{$p.preference|escape}" id="{$p.id|escape}" value="{$p.value|@implode:$p.separator|escape}" class="form-control" size="{$p.size|default:40|escape}"
type="text" {$p.params}>
{else}
<input name="{$p.preference|escape}" id="{$p.id|escape}" value="{$p.value|escape}" class="form-control" size="{$p.size|default:40|escape}"
type="text" {$p.params}>
{/if}
{if $p.shorthint}
<div class="help-block">{$p.shorthint|simplewiki}</div>
{/if}
{include file="prefs/shared-flags.tpl"}
{include file="prefs/shared-flags.tpl"}
{if $p.detail}
<div class="help-block">{$p.detail|simplewiki}</div>
{/if}
{if $p.detail}
<div class="help-block">{$p.detail|simplewiki}</div>
{/if}
{if $p.hint}
<div class="help-block">{$p.hint|simplewiki}</div>
{/if}
{if $p.hint}
<div class="help-block">{$p.hint|simplewiki}</div>
{/if}
{include file="prefs/shared-dependencies.tpl"}
</div>
{include file="prefs/shared-dependencies.tpl"}
</div>
</div>
{strip}
<div class="adminoptionbox preference form-group clearfix {$p.tagstring|escape}{if isset($smarty.request.highlight) and $smarty.request.highlight eq $p.preference} highlight{/if}" style="text-align: left;">
<label class="control-label" for="{$p.id|escape}">{$p.name|escape}</label>
{include file="prefs/shared-flags.tpl"}
<textarea name="{$p.preference|escape}" id="{$p.id|escape}" {if $syntax} data-syntax="{$syntax|escape}" data-codemirror="{$codemirror|escape}" {/if} class="form-control" {if $p.size} rows="{$p.size|escape}"{/if} {$p.params}>
{$p.value|escape}
</textarea>
{if $p.hint}
<div class="help-block">{$p.hint|simplewiki}</div>
{/if}
{include file="prefs/shared-dependencies.tpl"}
</div>
<div class="adminoptionbox preference form-group clearfix {$p.tagstring|escape}{if isset($smarty.request.highlight) and $smarty.request.highlight eq $p.preference} highlight{/if}" style="text-align: left;">
<label class="control-label" for="{$p.id|escape}">{$p.name|escape}</label>
{include file="prefs/shared-flags.tpl"}
<textarea name="{$p.preference|escape}" id="{$p.id|escape}" {if $syntax} data-syntax="{$syntax|escape}" data-codemirror="{$codemirror|escape}" {/if} class="form-control" {if $p.size} rows="{$p.size|escape}"{/if} {$p.params}>
{$p.value|escape}
</textarea>
{if $p.hint}
<div class="help-block">{$p.hint|simplewiki}</div>
{/if}
{include file="prefs/shared-dependencies.tpl"}
</div>
{/strip}
......@@ -45,10 +45,10 @@
dayNames: ["{tr}Sunday{/tr}", "{tr}Monday{/tr}", "{tr}Tuesday{/tr}", "{tr}Wednesday{/tr}", "{tr}Thursday{/tr}", "{tr}Friday{/tr}", "{tr}Saturday{/tr}"],
dayNamesShort: ["{tr}Sun{/tr}", "{tr}Mon{/tr}", "{tr}Tue{/tr}", "{tr}Wed{/tr}", "{tr}Thu{/tr}", "{tr}Fri{/tr}", "{tr}Sat{/tr}"],
buttonText: {
today: "{tr}today{/tr}",
month: "{tr}month{/tr}",
week: "{tr}week{/tr}",
day: "{tr}day{/tr}"
today: "{tr}today{/tr}",
month: "{tr}month{/tr}",
week: "{tr}week{/tr}",
day: "{tr}day{/tr}"
},
allDayText: "{tr}all-day{/tr}",
firstDay: data.firstDayofWeek,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment