Version 4.0.13.1
This commit is contained in:
1 parent
f9e857d255
commit
c6a86f0d9b
7517 files changed
+597400
-668041
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<ips:template parameters="$apps, $selected" />
|
||||
<input type="hidden" name="apps[core]" value="1">
|
||||
<ul class='ipsField_fieldList'>
|
||||
{{foreach $apps as $key => $data}}
|
||||
<li>
|
||||
<input type="checkbox" id='app_{$key}' {{if $key !== 'core'}}name="apps[{$key}]"{{endif}} {{if in_array( $key, $selected )}}checked{{endif}} {{if $data['disabled']}}disabled{{endif}} value='1'>
|
||||
<div class='ipsField_fieldList_content'>
|
||||
<label for='app_{$key}' class='ipsFieldRow_label'>{$data['name']}</label>
|
||||
{{if !empty( $data['errors'] )}}
|
||||
<p class="ipsMessage ipsMessage_error">
|
||||
{expression="implode( '<br />', $data['errors'] )" raw="true"}
|
||||
</p>
|
||||
{{endif}}
|
||||
</div>
|
||||
</li>
|
||||
{{endforeach}}
|
||||
</ul>
|
||||
@@ -0,0 +1,2 @@
|
||||
<ips:template parameters="$lang, $type" />
|
||||
<button type="{$type}" class='ipsButton ipsButton_primary'>{lang="$lang"}</button>
|
||||
@@ -0,0 +1,14 @@
|
||||
<ips:template parameters="$name, $value=FALSE, $disabled=FALSE, $toggles=array(), $toggleOn=TRUE, $label='', $hiddenName=''" />
|
||||
<input type="hidden" name="{$hiddenName}" value="0" />
|
||||
<label>
|
||||
<input
|
||||
type='checkbox'
|
||||
name='{$name}'
|
||||
value='1'
|
||||
{{if $value}}checked{{endif}}
|
||||
{{if $disabled}}disabled{{endif}}
|
||||
{{if !empty($toggles)}} data-control="toggle" data-toggles="{expression="implode( ',', $toggles )"}"{{endif}}
|
||||
{{if $toggleOn === FALSE}}data-togglereverse="true"{{endif}}
|
||||
/>
|
||||
{lang="$label"}
|
||||
</label>
|
||||
@@ -0,0 +1,4 @@
|
||||
<ips:template parameters="$lang, $id=NULL" />
|
||||
<li {{if $id !== NULL}} id="{$id}"{{endif}}>
|
||||
<h2 class='ipsFieldRow_section'>{lang="$lang"}</h2>
|
||||
</li>
|
||||
Whitespace-only changes.
@@ -0,0 +1,30 @@
|
||||
<ips:template parameters="$name, $value, $required, $unlimited, $range, $min, $max, $step, $decimals, $unlimitedLang, $disabled=FALSE, $suffix, $toggles" />
|
||||
<input
|
||||
type="{{if $range}}range{{else}}number{{endif}}"
|
||||
name="{$name}"
|
||||
size="5"
|
||||
{{if $required === TRUE}}required{{endif}}
|
||||
{{if $unlimited !== NULL and $value === $unlimited}}
|
||||
value=""
|
||||
data-jsdisable="true"
|
||||
{{else}}
|
||||
value="{$value}"
|
||||
{{endif}}
|
||||
{{if $min !== NULL}}
|
||||
min="{$min}"
|
||||
{{endif}}
|
||||
{{if $max !== NULL}}
|
||||
max="{$max}"
|
||||
{{endif}}
|
||||
{{if $step !== NULL}}
|
||||
step="{$step}"
|
||||
{{endif}}
|
||||
{{if $disabled}}disabled{{endif}}
|
||||
>
|
||||
{$suffix}
|
||||
{{if $unlimited !== NULL}}
|
||||
|
||||
{lang="or"}
|
||||
|
||||
<label><input type="checkbox" data-control="unlimited" name="{expression="preg_replace( '/\[(.+?)\]/', '[$1_unlimited]', $name, 1 )"}" value="{$unlimited}" {{if $unlimited === $value}}checked{{endif}} {{if $disabled}}disabled{{endif}} data-control="toggle" data-toggles="{expression="implode( ',', $toggles )"}" /> {lang="$unlimitedLang"}</label>
|
||||
{{endif}}
|
||||
@@ -0,0 +1,19 @@
|
||||
<ips:template parameters="$langKey, $element, $desc, $warning, $required = FALSE, $error=NULL, $prefix=NULL, $suffix=NULL, $id=NULL, $object=NULL, $form=NULL" />
|
||||
<li {{if $id !== NULL}}id="{$id}"{{endif}} class='ipsFieldRow'>
|
||||
<label class='ipsFieldRow_label {{if $error}}error{{endif}}'>
|
||||
{lang="$langKey"} {{if $required}}<span class='ipsFieldRow_required'>{lang="required"}</span>{{endif}}
|
||||
</label>
|
||||
<div class='ipsFieldRow_content'>
|
||||
{$prefix|raw}
|
||||
{$element|raw}
|
||||
{$suffix|raw}
|
||||
{$desc|raw}
|
||||
{$warning|raw}
|
||||
<br />
|
||||
{{if $error}}
|
||||
<span class='ipsType_warning'>{lang="$error"}</span>
|
||||
{{else}}
|
||||
<span class='ipsType_warning'></span>
|
||||
{{endif}}
|
||||
</div>
|
||||
</li>
|
||||
@@ -0,0 +1,5 @@
|
||||
<ips:template parameters="$label, $element, $required=FALSE, $error=NULL, $prefix=NULL, $suffix=NULL, $id=NULL, $object=NULL, $form=NULL" />
|
||||
<br>
|
||||
<span class='ipsFieldRow_desc'>
|
||||
%s
|
||||
</span>
|
||||
@@ -0,0 +1,5 @@
|
||||
<ips:template parameters="$label, $element, $required=FALSE, $error=NULL, $prefix=NULL, $suffix=NULL, $id=NULL, $object=NULL, $form=NULL" />
|
||||
<div {{if $id !== NULL}}id="{$id}_warning"{{endif}}>
|
||||
<br>
|
||||
<p class='ipsMessage ipsMessage_warning'>%s</p>
|
||||
</div>
|
||||
@@ -0,0 +1,6 @@
|
||||
<ips:template parameters="$name, $value, $required, $options" />
|
||||
<select name="{$name}" id="{$name}">
|
||||
{{foreach $options as $k => $v}}
|
||||
<option value='{$k}' {{if $value == $k}}selected{{endif}}>{$v|raw}</option>
|
||||
{{endforeach}}
|
||||
</select>
|
||||
@@ -0,0 +1,30 @@
|
||||
<ips:template parameters="$id, $action, $tabs, $activeTab, $error, $errorTabs, $hiddenValues, $actionButtons, $uploadField, $sidebar, $tabClasses, $class" />
|
||||
<form action="{$action}" method="post" {{if $uploadField}}enctype="multipart/form-data"{{endif}}>
|
||||
<input type="hidden" name="{$id}_submitted" value="1">
|
||||
{{foreach $hiddenValues as $k => $v}}
|
||||
{{if is_array( $v )}}
|
||||
{{foreach $v as $_k => $_v}}
|
||||
<input type="hidden" name="{$k}[{$_k}]" value="{$_v}">
|
||||
{{endforeach}}
|
||||
{{else}}
|
||||
<input type="hidden" name="{$k}" value="{$v}">
|
||||
{{endif}}
|
||||
{{endforeach}}
|
||||
{{if $uploadField}}
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="{$uploadField}">
|
||||
<input type="hidden" name="plupload" value="{expression="md5( uniqid() )"}">
|
||||
{{endif}}
|
||||
{{if $error}}
|
||||
<div class="ipsMessage ipsMessage_error">
|
||||
{$error}
|
||||
</div>
|
||||
{{endif}}
|
||||
<ul class='ipsForm {{if \IPS\Dispatcher::i()->step == 1}}ipsForm_vertical{{else}}{$class}{{endif}}'>
|
||||
{expression="array_pop( $tabs )" raw="true"}
|
||||
<li class='ipsFieldRow'>
|
||||
<div class='ipsFieldRow_content'>
|
||||
{expression="implode( '', $actionButtons)" raw="true"}
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
@@ -0,0 +1,37 @@
|
||||
<ips:template parameters="$name, $type, $value, $required, $maxlength=NULL, $size=NULL, $disabled=FALSE, $autoComplete=NULL, $placeholder" />
|
||||
<input
|
||||
type="{$type}"
|
||||
name="{$name}"
|
||||
value="{$value}"
|
||||
{{if $required === TRUE}}required{{endif}}
|
||||
{{if $maxlength !== NULL}}maxlength="{$maxlength}"{{endif}}
|
||||
{{if $size !== NULL}}size="{$size}"{{endif}}
|
||||
{{if $disabled}}disabled{{endif}}
|
||||
class="input_text"
|
||||
{{if $autoComplete !== NULL}}
|
||||
data-ipsAutocomplete
|
||||
{{if $autoComplete['maxItems']}}
|
||||
data-ipsAutocomplete-maxItems='{$autoComplete['maxItems']}'
|
||||
{{endif}}
|
||||
{{if $autoComplete['unique']}}
|
||||
data-ipsAutocomplete-unique
|
||||
{{endif}}
|
||||
{{if is_array( $autoComplete['source'] )}}
|
||||
list='{$name}_datalist'
|
||||
{{elseif $autoComplete['source']}}
|
||||
data-ipsAutocomplete-dataSource="{url="{$autoComplete['source']}"}"
|
||||
data-ipsAutocomplete-queryParam='input'
|
||||
{{endif}}
|
||||
{{if $autoComplete['resultItemTemplate']}}
|
||||
data-ipsAutocomplete-resultItemTemplate="{$autoComplete['resultItemTemplate']}"
|
||||
{{endif}}
|
||||
{{endif}}
|
||||
{{if $placeholder !== NULL}}placeholder='{$placeholder}'{{endif}}
|
||||
/>
|
||||
{{if is_array( $autoComplete )}}
|
||||
<datalist id="{$name}_datalist">
|
||||
{{foreach $autoComplete as $v}}
|
||||
<option value="$v">{$v}</option>
|
||||
{{endforeach}}
|
||||
</datalist>
|
||||
{{endif}}
|
||||
@@ -0,0 +1,39 @@
|
||||
<ips:template parameters="$name, $value='', $required, $maxlength=NULL, $disabled=FALSE, $class='', $placeholder='', $nullLang=NULL, $tags=array()" />
|
||||
{{if !empty( $tags )}}
|
||||
<div class='ipsColumns ipsColumns_collapseTablet' data-controller='core.global.editor.customtags' data-tagFieldType='text' data-tagFieldID='{$name}'>
|
||||
<div class='ipsColumn_fluid ipsColumn'>
|
||||
<div data-role="editor">
|
||||
{{endif}}
|
||||
<textarea
|
||||
name="{$name}"
|
||||
id='{expression="preg_replace('/[^a-zA-Z0-9\-_]/', '_', $name)"}'
|
||||
value="{$value}"
|
||||
class="ipsField_fullWidth {$class}"
|
||||
{{if $maxlength !== NULL}}maxlength="{$maxlength}"{{endif}}
|
||||
{{if $required === TRUE}}required aria-required='true'{{endif}}
|
||||
{{if $disabled}}disabled aria-disabled='true'{{endif}}
|
||||
{{if $placeholder}}placeholder="{$placeholder}"{{endif}}
|
||||
>{$value}</textarea>
|
||||
{{if !empty( $tags )}}
|
||||
</div>
|
||||
{{endif}}
|
||||
{{if $nullLang}}
|
||||
{lang="or"} <input type="checkbox" role='checkbox' data-control="unlimited" name="{$name}_null" id="{$name}_null" value="1" {{if $value === NULL}}checked aria-checked='true'{{endif}} {{if $disabled}}disabled{{endif}} aria-controls='{$name}' aria-labelledby='{$name}_null_label'> <label for='{$name}_null' id='{$name}_null_label'>{lang="$nullLang"}</label>
|
||||
{{endif}}
|
||||
{{if !empty( $tags )}}
|
||||
</div>
|
||||
<div class='ipsColumn_medium ipsColumn ipsAreaBackground_light ipsComposeArea_sidebar {{if !isset( \IPS\Request::i()->cookie['tagSidebar'] )}}ipsComposeArea_sidebarOpen{{else}}ipsComposeArea_sidebarClosed{{endif}}'>
|
||||
<a href='#' class="ipsJS_show" data-action='tagsToggle' data-ipsTooltip data-ipsTooltip-label="{lang="toggle_sidebar"}">{lang="toggle_sidebar"}</a>
|
||||
<h3 class='ipsAreaBackground ipsPad_half ipsType_reset' data-role='tagsHeader'>{lang="editor_tags"}</h3>
|
||||
<ul class='ipsList_reset ipsScrollbar' data-role='tagsList'>
|
||||
{{foreach $tags as $tagKey => $tagValue }}
|
||||
<li class='ipsPad_half'>
|
||||
<label class="ipsJS_show" data-tagKey="{$tagKey}">{$tagKey}</label>
|
||||
<div class='ipsJS_hide ipsType_light'><strong>{$tagKey}</strong></div>
|
||||
<div class='ipsType_light ipsType_small'>{$tagValue}</div>
|
||||
</li>
|
||||
{{endforeach}}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{endif}}
|
||||
Reference in new issue
Block a user