Completed
Push — master ( f2513e...3690f7 )
by Aimeos
06:45
created
admin/jqadm/templates/common/partials/error-default.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,16 +6,16 @@
 block discarded – undo
6 6
  */
7 7
 
8 8
 $enc = $this->encoder();
9
-$errors = $this->get( 'errors', array() );
9
+$errors = $this->get('errors', array());
10 10
 
11 11
 ?>
12
-<?php if( !empty( $errors ) ) : ?>
12
+<?php if (!empty($errors)) : ?>
13 13
 <ul class="error-list alert alert-danger" role="alert">
14
-<?php	foreach( $errors as $key => $error ) : ?>
15
-	<li class="error-item" data-key="<?php echo $enc->attr( $key ); ?>">
14
+<?php	foreach ($errors as $key => $error) : ?>
15
+	<li class="error-item" data-key="<?php echo $enc->attr($key); ?>">
16 16
 		<span class="fa fa-exclamation-circle" aria-hidden="true"></span>
17
-		<span class="sr-only"><?php echo $enc->html( $this->translate( 'admin', 'Error' ) ); ?></span>
18
-		<?php echo $enc->html( $error ); ?>
17
+		<span class="sr-only"><?php echo $enc->html($this->translate('admin', 'Error')); ?></span>
18
+		<?php echo $enc->html($error); ?>
19 19
 	</li>
20 20
 <?php	endforeach; ?>
21 21
 </ul>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/confirm-default.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@
 block discarded – undo
12 12
 	<div class="modal-dialog">
13 13
 		<div class="modal-content">
14 14
 			<div class="modal-header">
15
-				<button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>"><span aria-hidden="true">&times;</span></button>
16
-				<h4 class="modal-title"><?php echo $enc->html( $this->translate( 'admin', 'Delete items?' ) ); ?></h4>
15
+				<button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $enc->attr($this->translate('admin', 'Close')); ?>"><span aria-hidden="true">&times;</span></button>
16
+				<h4 class="modal-title"><?php echo $enc->html($this->translate('admin', 'Delete items?')); ?></h4>
17 17
 			</div>
18 18
 			<div class="modal-body">
19
-				<p><?php echo $enc->html( $this->translate( 'admin', 'You are going to delete one or more items. Would you like to proceed?' ) ); ?></p>
19
+				<p><?php echo $enc->html($this->translate('admin', 'You are going to delete one or more items. Would you like to proceed?')); ?></p>
20 20
 			</div>
21 21
 			<div class="modal-footer">
22
-				<button type="button" class="btn btn-danger" data-dismiss="modal"><?php echo $enc->html( $this->translate( 'admin', 'Delete' ) ); ?></button>
23
-				<button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo $enc->html( $this->translate( 'admin', 'Close' ) ); ?></button>
22
+				<button type="button" class="btn btn-danger" data-dismiss="modal"><?php echo $enc->html($this->translate('admin', 'Delete')); ?></button>
23
+				<button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo $enc->html($this->translate('admin', 'Close')); ?></button>
24 24
 			</div>
25 25
 		</div>
26 26
 	</div>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/filter-default.php 2 patches
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -7,72 +7,72 @@
 block discarded – undo
7 7
 
8 8
 $enc = $this->encoder();
9 9
 
10
-$operators = $this->get( 'operators', array() );
11
-$operators = ( isset( $operators['compare'] ) ? $operators['compare'] : array() );
10
+$operators = $this->get('operators', array());
11
+$operators = (isset($operators['compare']) ? $operators['compare'] : array());
12 12
 
13 13
 $operatorMap = array(
14
-	'=~' => array( 'string' ),
15
-	'~=' => array( 'string' ),
16
-	'>' => array( 'date', 'datetime', 'integer', 'float' ),
17
-	'>=' => array( 'date', 'datetime', 'integer', 'float' ),
18
-	'<' => array( 'date', 'datetime', 'integer', 'float' ),
19
-	'<=' => array( 'date', 'datetime', 'integer', 'float' ),
20
-	'==' => array( 'boolean', 'date', 'datetime', 'integer', 'float', 'string' ),
21
-	'!=' => array( 'boolean', 'date', 'datetime', 'integer', 'float', 'string' ),
14
+	'=~' => array('string'),
15
+	'~=' => array('string'),
16
+	'>' => array('date', 'datetime', 'integer', 'float'),
17
+	'>=' => array('date', 'datetime', 'integer', 'float'),
18
+	'<' => array('date', 'datetime', 'integer', 'float'),
19
+	'<=' => array('date', 'datetime', 'integer', 'float'),
20
+	'==' => array('boolean', 'date', 'datetime', 'integer', 'float', 'string'),
21
+	'!=' => array('boolean', 'date', 'datetime', 'integer', 'float', 'string'),
22 22
 );
23 23
 
24
-$filter = $this->param( 'filter' );
24
+$filter = $this->param('filter');
25 25
 
26
-if( !isset( $filter['key'][0] ) ) {
27
-	$filter['key'][0] = $this->get( 'default', '' );
26
+if (!isset($filter['key'][0])) {
27
+	$filter['key'][0] = $this->get('default', '');
28 28
 }
29 29
 
30
-$cnt = count( (array) $filter['key'] );
30
+$cnt = count((array) $filter['key']);
31 31
 
32 32
 ?>
33 33
 <table class="filter-items search-item">
34
-<?php for( $pos = 0; $pos < $cnt; $pos++ ) : ?>
34
+<?php for ($pos = 0; $pos < $cnt; $pos++) : ?>
35 35
 	<tr class="input-group filter-item">
36 36
 		<td>
37
-<?php	if( $pos < $cnt - 1 ) : ?>
38
-			<div class="fa fa-minus" aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'Remove filter' ) ); ?>"></div>
37
+<?php	if ($pos < $cnt - 1) : ?>
38
+			<div class="fa fa-minus" aria-label="<?php echo $enc->attr($this->translate('admin', 'Remove filter')); ?>"></div>
39 39
 <?php	else : ?>
40
-			<div class="fa fa-plus" aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'Add filter' ) ); ?>"></div>
40
+			<div class="fa fa-plus" aria-label="<?php echo $enc->attr($this->translate('admin', 'Add filter')); ?>"></div>
41 41
 <?php	endif; ?>
42 42
 		</td>
43 43
 		<td>
44 44
 			<fieldset>
45
-				<select name="<?php echo $this->formparam( array( 'filter', 'key', '' ) ); ?>" class="filter-key form-control" data-selected="<?php echo $filter['key'][$pos]; ?>">
45
+				<select name="<?php echo $this->formparam(array('filter', 'key', '')); ?>" class="filter-key form-control" data-selected="<?php echo $filter['key'][$pos]; ?>">
46 46
 				</select><!--
47
-				--><select name="<?php echo $this->formparam( array( 'filter', 'op', '' ) ); ?>" class="filter-operator form-control c-select">
48
-<?php foreach( $operators as $code ) : ?>
49
-					<option value="<?php echo $enc->attr( $code ); ?>"
50
-						class="<?php echo ( isset( $operatorMap[$code] ) ? implode( ' ', $operatorMap[$code] ) : '' ); ?>"
51
-						<?php echo ( isset( $filter['op'][$pos] ) && $filter['op'][$pos] === $code ? 'selected' : '' ); ?>
52
-					><?php echo $enc->html( $this->translate( 'admin/ext', $code ) ); ?></option>
47
+				--><select name="<?php echo $this->formparam(array('filter', 'op', '')); ?>" class="filter-operator form-control c-select">
48
+<?php foreach ($operators as $code) : ?>
49
+					<option value="<?php echo $enc->attr($code); ?>"
50
+						class="<?php echo (isset($operatorMap[$code]) ? implode(' ', $operatorMap[$code]) : ''); ?>"
51
+						<?php echo (isset($filter['op'][$pos]) && $filter['op'][$pos] === $code ? 'selected' : ''); ?>
52
+					><?php echo $enc->html($this->translate('admin/ext', $code)); ?></option>
53 53
 <?php endforeach; ?>
54 54
 				</select><!--
55
-				--><input name="<?php echo $this->formparam( array( 'filter', 'val', '' ) ); ?>" class="filter-value form-control" type="text" value="<?php echo $enc->attr( ( isset( $filter['val'][$pos] ) ? $filter['val'][$pos] : '' ) ); ?>" />
55
+				--><input name="<?php echo $this->formparam(array('filter', 'val', '')); ?>" class="filter-value form-control" type="text" value="<?php echo $enc->attr((isset($filter['val'][$pos]) ? $filter['val'][$pos] : '')); ?>" />
56 56
 			</fieldset>
57 57
 		</td>
58 58
 	</tr>
59 59
 <?php endfor; ?>
60 60
 	<tr class="input-group prototype">
61 61
 		<td>
62
-			<div class="fa fa-plus" aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'Add filter' ) ); ?>"></div>
62
+			<div class="fa fa-plus" aria-label="<?php echo $enc->attr($this->translate('admin', 'Add filter')); ?>"></div>
63 63
 		</td>
64 64
 		<td>
65 65
 			<fieldset>
66
-				<select name="<?php echo $this->formparam( array( 'filter', 'key', '' ) ); ?>" class="filter-key form-control" data-selected="<?php echo $this->get( 'default' ); ?>" disabled="disabled">
66
+				<select name="<?php echo $this->formparam(array('filter', 'key', '')); ?>" class="filter-key form-control" data-selected="<?php echo $this->get('default'); ?>" disabled="disabled">
67 67
 				</select><!--
68
-				--><select name="<?php echo $this->formparam( array( 'filter', 'op', '' ) ); ?>" class="filter-operator form-control c-select" disabled="disabled">
69
-<?php foreach( $operators as $code ) : ?>
70
-					<option value="<?php echo $enc->attr( $code ); ?>"
71
-						class="<?php echo ( isset( $operatorMap[$code] ) ? implode( ' ', $operatorMap[$code] ) : '' ); ?>"
72
-					><?php echo $enc->html( $this->translate( 'admin/ext', $code ) ); ?></option>
68
+				--><select name="<?php echo $this->formparam(array('filter', 'op', '')); ?>" class="filter-operator form-control c-select" disabled="disabled">
69
+<?php foreach ($operators as $code) : ?>
70
+					<option value="<?php echo $enc->attr($code); ?>"
71
+						class="<?php echo (isset($operatorMap[$code]) ? implode(' ', $operatorMap[$code]) : ''); ?>"
72
+					><?php echo $enc->html($this->translate('admin/ext', $code)); ?></option>
73 73
 <?php endforeach; ?>
74 74
 				</select><!--
75
-				--><input name="<?php echo $this->formparam( array( 'filter', 'val', '' ) ); ?>" class="filter-value form-control" type="text" disabled="disabled" />
75
+				--><input name="<?php echo $this->formparam(array('filter', 'val', '')); ?>" class="filter-value form-control" type="text" disabled="disabled" />
76 76
 			</fieldset>
77 77
 		</td>
78 78
 	</tr>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,11 @@
 block discarded – undo
36 36
 		<td>
37 37
 <?php	if( $pos < $cnt - 1 ) : ?>
38 38
 			<div class="fa fa-minus" aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'Remove filter' ) ); ?>"></div>
39
-<?php	else : ?>
40
-			<div class="fa fa-plus" aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'Add filter' ) ); ?>"></div>
39
+<?php	else {
40
+	: ?>
41
+			<div class="fa fa-plus" aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'Add filter' ) );
42
+}
43
+?>"></div>
41 44
 <?php	endif; ?>
42 45
 		</td>
43 46
 		<td>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/pagination-default.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -7,60 +7,60 @@
 block discarded – undo
7 7
 
8 8
 $enc = $this->encoder();
9 9
 
10
-$target = $this->config( 'admin/jqadm/url/search/target' );
11
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
12
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
13
-$config = $this->config( 'admin/jqadm/url/search/config', array() );
10
+$target = $this->config('admin/jqadm/url/search/target');
11
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
12
+$action = $this->config('admin/jqadm/url/search/action', 'search');
13
+$config = $this->config('admin/jqadm/url/search/config', array());
14 14
 
15
-$params = $this->get( 'pageParams', array() );
15
+$params = $this->get('pageParams', array());
16 16
 
17
-$total = $this->get( 'total', 0 );
18
-$offset = max( $this->param( 'page/offset', 0 ), 0 );
19
-$limit = max( $this->param( 'page/limit', 100 ), 1 );
17
+$total = $this->get('total', 0);
18
+$offset = max($this->param('page/offset', 0), 0);
19
+$limit = max($this->param('page/limit', 100), 1);
20 20
 
21
-$first = ( $offset > 0 ? 0 : null );
22
-$prev = ( $offset - $limit >= 0 ? $offset - $limit : null );
23
-$next = ( $offset + $limit < $total ? $offset + $limit : null );
24
-$last = ( ((int) ($total / $limit)) * $limit > $offset ? ((int) ($total / $limit)) * $limit : null );
21
+$first = ($offset > 0 ? 0 : null);
22
+$prev = ($offset - $limit >= 0 ? $offset - $limit : null);
23
+$next = ($offset + $limit < $total ? $offset + $limit : null);
24
+$last = (((int) ($total / $limit)) * $limit > $offset ? ((int) ($total / $limit)) * $limit : null);
25 25
 
26
-$pageCurrent = floor( $offset / $limit ) + 1;
27
-$pageTotal = ( $total != 0 ? ceil( $total / $limit ) : 1 );
26
+$pageCurrent = floor($offset / $limit) + 1;
27
+$pageTotal = ($total != 0 ? ceil($total / $limit) : 1);
28 28
 
29 29
 ?>
30 30
 <nav class="list-page">
31 31
 	<ul class="page-offset pagination">
32 32
 		<li class="page-item">
33
-			<a class="page-link" href="<?php $params['page']['offset'] = $first; echo $enc->attr( $this->url( $target, $controller, $action, $params, array(), $config ) ); ?>" aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'First' ) ); ?>">
33
+			<a class="page-link" href="<?php $params['page']['offset'] = $first; echo $enc->attr($this->url($target, $controller, $action, $params, array(), $config)); ?>" aria-label="<?php echo $enc->attr($this->translate('admin', 'First')); ?>">
34 34
 				<span class="fa fa-fast-backward" aria-hidden="true"></span>
35 35
 			</a>
36 36
 		</li><!--
37 37
 		--><li class="page-item">
38
-			<a class="page-link" href="<?php $params['page']['offset'] = $prev; echo $enc->attr( $this->url( $target, $controller, $action, $params, array(), $config ) ); ?>" aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'Previous' ) ); ?>">
38
+			<a class="page-link" href="<?php $params['page']['offset'] = $prev; echo $enc->attr($this->url($target, $controller, $action, $params, array(), $config)); ?>" aria-label="<?php echo $enc->attr($this->translate('admin', 'Previous')); ?>">
39 39
 				<span class="fa fa-step-backward" aria-hidden="true"></span>
40 40
 			</a>
41 41
 		</li><!--
42
-		--><li class="page-item disabled"><a class="page-link" href="#"><?php echo $enc->html( sprintf( $this->translate( 'admin', 'Page %1$d of %2$d' ), $pageCurrent, $pageTotal ) ); ?></a></li><!--
42
+		--><li class="page-item disabled"><a class="page-link" href="#"><?php echo $enc->html(sprintf($this->translate('admin', 'Page %1$d of %2$d'), $pageCurrent, $pageTotal)); ?></a></li><!--
43 43
 		--><li class="page-item">
44
-			<a class="page-link" href="<?php $params['page']['offset'] = $next; echo $enc->attr( $this->url( $target, $controller, $action, $params, array(), $config ) ); ?>" aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'Next' ) ); ?>">
44
+			<a class="page-link" href="<?php $params['page']['offset'] = $next; echo $enc->attr($this->url($target, $controller, $action, $params, array(), $config)); ?>" aria-label="<?php echo $enc->attr($this->translate('admin', 'Next')); ?>">
45 45
 				<span class="fa fa-step-forward" aria-hidden="true"></span>
46 46
 			</a>
47 47
 		</li><!--
48 48
 		--><li class="page-item">
49
-			<a class="page-link" href="<?php $params['page']['offset'] = $last; echo $enc->attr( $this->url( $target, $controller, $action, $params, array(), $config ) ); ?>" aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'Last' ) ); ?>">
49
+			<a class="page-link" href="<?php $params['page']['offset'] = $last; echo $enc->attr($this->url($target, $controller, $action, $params, array(), $config)); ?>" aria-label="<?php echo $enc->attr($this->translate('admin', 'Last')); ?>">
50 50
 				<span class="fa fa-fast-forward" aria-hidden="true"></span>
51 51
 			</a>
52 52
 		</li>
53 53
 	</ul>
54
-	<div class="page-limit btn-group <?php echo ( $this->get( 'pos', 'top' ) === 'bottom' ? 'dropup' : '' ); ?>" role="group">
54
+	<div class="page-limit btn-group <?php echo ($this->get('pos', 'top') === 'bottom' ? 'dropup' : ''); ?>" role="group">
55 55
 		<button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
56 56
 			<?php echo $limit; ?> <span class="caret"></span>
57 57
 		</button>
58 58
 		<ul class="dropdown-menu">
59
-			<li class="dropdown-item"><a href="<?php $params['page']['limit'] = 25; echo $enc->attr( $this->url( $target, $controller, $action, $params, array(), $config ) ); ?>">25</a></li>
60
-			<li class="dropdown-item"><a href="<?php $params['page']['limit'] = 50; echo $enc->attr( $this->url( $target, $controller, $action, $params, array(), $config ) ); ?>">50</a></li>
61
-			<li class="dropdown-item"><a href="<?php $params['page']['limit'] = 100; echo $enc->attr( $this->url( $target, $controller, $action, $params, array(), $config ) ); ?>">100</a></li>
62
-			<li class="dropdown-item"><a href="<?php $params['page']['limit'] = 200; echo $enc->attr( $this->url( $target, $controller, $action, $params, array(), $config ) ); ?>">200</a></li>
63
-			<li class="dropdown-item"><a href="<?php $params['page']['limit'] = 500; echo $enc->attr( $this->url( $target, $controller, $action, $params, array(), $config ) ); ?>">500</a></li>
59
+			<li class="dropdown-item"><a href="<?php $params['page']['limit'] = 25; echo $enc->attr($this->url($target, $controller, $action, $params, array(), $config)); ?>">25</a></li>
60
+			<li class="dropdown-item"><a href="<?php $params['page']['limit'] = 50; echo $enc->attr($this->url($target, $controller, $action, $params, array(), $config)); ?>">50</a></li>
61
+			<li class="dropdown-item"><a href="<?php $params['page']['limit'] = 100; echo $enc->attr($this->url($target, $controller, $action, $params, array(), $config)); ?>">100</a></li>
62
+			<li class="dropdown-item"><a href="<?php $params['page']['limit'] = 200; echo $enc->attr($this->url($target, $controller, $action, $params, array(), $config)); ?>">200</a></li>
63
+			<li class="dropdown-item"><a href="<?php $params['page']['limit'] = 500; echo $enc->attr($this->url($target, $controller, $action, $params, array(), $config)); ?>">500</a></li>
64 64
 		</ul>
65 65
 	</div>
66 66
 </nav>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-selection-default.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -12,48 +12,48 @@  discard block
 block discarded – undo
12 12
 	<div id="product-item-selection-head" class="header card-header collapsed" role="tab"
13 13
 		data-toggle="collapse" data-parent="#accordion" data-target="#product-item-selection-data"
14 14
 		aria-expanded="true" aria-controls="product-item-selection-data">
15
-		<?php echo $enc->html( $this->translate( 'admin', 'Variants' ) ); ?>
15
+		<?php echo $enc->html($this->translate('admin', 'Variants')); ?>
16 16
 	</div>
17 17
 	<div id="product-item-selection-data" class="item-selection card-block panel-collapse collapse"
18 18
 		role="tabpanel" aria-labelledby="product-item-selection-head">
19 19
 		<div id="product-item-selection-group" role="tablist" aria-multiselectable="true">
20 20
 
21
-<?php foreach( (array) $this->get( 'selectionData', array() ) as $code => $map ) : ?>
21
+<?php foreach ((array) $this->get('selectionData', array()) as $code => $map) : ?>
22 22
 
23 23
 			<div class="group-item card">
24
-				<input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'selection', 'product.lists.id', '' ) ) ); ?>"
25
-					value="<?php echo $enc->attr( $this->value( $map, 'product.lists.id' ) ); ?>" />
26
-				<div id="product-item-selection-group-item-<?php echo $enc->attr( $code ); ?>" class="header card-header collapsed" role="tab"
27
-					data-toggle="collapse" data-target="#product-item-selection-group-data-<?php echo $enc->attr( $code ); ?>"
28
-					aria-expanded="true" aria-controls="product-item-selection-group-data-<?php echo $enc->attr( $code ); ?>">
24
+				<input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('selection', 'product.lists.id', ''))); ?>"
25
+					value="<?php echo $enc->attr($this->value($map, 'product.lists.id')); ?>" />
26
+				<div id="product-item-selection-group-item-<?php echo $enc->attr($code); ?>" class="header card-header collapsed" role="tab"
27
+					data-toggle="collapse" data-target="#product-item-selection-group-data-<?php echo $enc->attr($code); ?>"
28
+					aria-expanded="true" aria-controls="product-item-selection-group-data-<?php echo $enc->attr($code); ?>">
29 29
 					<div class="btn btn-secondary fa fa-files-o"></div>
30 30
 					<div class="btn btn-danger fa fa-trash"></div>
31
-					<span class="item-code header-label"><?php echo $enc->html( $code ); ?></span>
31
+					<span class="item-code header-label"><?php echo $enc->html($code); ?></span>
32 32
 				</div>
33
-				<div id="product-item-selection-group-data-<?php echo $enc->attr( $code ); ?>" class="card-block panel-collapse collapse">
33
+				<div id="product-item-selection-group-data-<?php echo $enc->attr($code); ?>" class="card-block panel-collapse collapse">
34 34
 					<div class="col-lg-6">
35 35
 						<div class="form-group row">
36
-							<label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'ID' ) ); ?></label>
36
+							<label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'ID')); ?></label>
37 37
 							<div class="col-sm-9">
38
-								<input class="item-id" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'selection', 'product.id', '' ) ) ); ?>"
39
-									value="<?php echo $enc->attr( $this->value( $map, 'product.id' ) ); ?>" />
40
-								<p class="form-control-static group-item-id"><?php echo $enc->html( $this->value( $map, 'product.id' ) ); ?></p>
38
+								<input class="item-id" type="hidden" name="<?php echo $enc->attr($this->formparam(array('selection', 'product.id', ''))); ?>"
39
+									value="<?php echo $enc->attr($this->value($map, 'product.id')); ?>" />
40
+								<p class="form-control-static group-item-id"><?php echo $enc->html($this->value($map, 'product.id')); ?></p>
41 41
 							</div>
42 42
 						</div>
43 43
 						<div class="form-group row mandatory">
44
-							<label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label>
44
+							<label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Code')); ?></label>
45 45
 							<div class="col-sm-9">
46
-								<input class="form-control item-code" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'selection', 'product.code', '' ) ) ); ?>"
47
-									placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'EAN, SKU or article number (required)' ) ); ?>"
48
-									value="<?php echo $enc->attr( $code ); ?>">
46
+								<input class="form-control item-code" type="text" name="<?php echo $enc->attr($this->formparam(array('selection', 'product.code', ''))); ?>"
47
+									placeholder="<?php echo $enc->attr($this->translate('admin', 'EAN, SKU or article number (required)')); ?>"
48
+									value="<?php echo $enc->attr($code); ?>">
49 49
 							</div>
50 50
 						</div>
51 51
 						<div class="form-group row mandatory">
52
-							<label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label>
52
+							<label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Label')); ?></label>
53 53
 							<div class="col-sm-9">
54
-								<input class="form-control item-label" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'selection', 'product.label', '' ) ) ); ?>"
55
-									placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>"
56
-									value="<?php echo $enc->attr( $this->value( $map, 'product.label' ) ); ?>">
54
+								<input class="form-control item-label" type="text" name="<?php echo $enc->attr($this->formparam(array('selection', 'product.label', ''))); ?>"
55
+									placeholder="<?php echo $enc->attr($this->translate('admin', 'Internal name (required)')); ?>"
56
+									value="<?php echo $enc->attr($this->value($map, 'product.label')); ?>">
57 57
 							</div>
58 58
 						</div>
59 59
 					</div>
@@ -61,20 +61,20 @@  discard block
 block discarded – undo
61 61
 						<table class="selection-item-attributes table table-default">
62 62
 							<thead>
63 63
 								<tr>
64
-									<th><?php echo $enc->html( $this->translate( 'admin', 'Variant attributes' ) ); ?></th>
64
+									<th><?php echo $enc->html($this->translate('admin', 'Variant attributes')); ?></th>
65 65
 									<th class="actions"><div class="btn btn-primary fa fa-plus"></div></th>
66 66
 								</tr>
67 67
 							</thead>
68 68
 							<tbody>
69
-<?php foreach( (array) $this->value( $map, 'attr', array() ) as $attrid => $list ) : ?>
69
+<?php foreach ((array) $this->value($map, 'attr', array()) as $attrid => $list) : ?>
70 70
 								<tr>
71 71
 									<td>
72
-										<input class="item-attr-ref" type="hidden" value="<?php echo $enc->attr( $code ); ?>"
73
-											name="<?php echo $enc->attr( $this->formparam( array( 'selection', 'attr', 'ref', '' ) ) ); ?>" />
74
-										<input class="item-attr-label" type="hidden" value="<?php echo $enc->attr( $this->value( $list, 'label' ) ); ?>"
75
-											name="<?php echo $enc->attr( $this->formparam( array( 'selection', 'attr', 'label', '' ) ) ); ?>" />
76
-										<select class="combobox item-attr-id" name="<?php echo $enc->attr( $this->formparam( array( 'selection', 'attr', 'id', '' ) ) ); ?>">
77
-											<option value="<?php echo $enc->attr( $attrid ); ?>" ><?php echo $enc->html( $this->value( $list, 'label' ) ); ?></option>
72
+										<input class="item-attr-ref" type="hidden" value="<?php echo $enc->attr($code); ?>"
73
+											name="<?php echo $enc->attr($this->formparam(array('selection', 'attr', 'ref', ''))); ?>" />
74
+										<input class="item-attr-label" type="hidden" value="<?php echo $enc->attr($this->value($list, 'label')); ?>"
75
+											name="<?php echo $enc->attr($this->formparam(array('selection', 'attr', 'label', ''))); ?>" />
76
+										<select class="combobox item-attr-id" name="<?php echo $enc->attr($this->formparam(array('selection', 'attr', 'id', ''))); ?>">
77
+											<option value="<?php echo $enc->attr($attrid); ?>" ><?php echo $enc->html($this->value($list, 'label')); ?></option>
78 78
 										</select>
79 79
 									</td>
80 80
 									<td class="actions"><div class="btn btn-danger fa fa-trash"></div></td>
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
 <?php endforeach; ?>
83 83
 								<tr class="prototype">
84 84
 									<td>
85
-										<input class="item-attr-ref" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'selection', 'attr', 'ref', '' ) ) ); ?>" value="" disabled="disabled" />
86
-										<input class="item-attr-label" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'selection', 'attr', 'label', '' ) ) ); ?>" value="" disabled="disabled" />
87
-										<select class="combobox-prototype item-attr-id" name="<?php echo $enc->attr( $this->formparam( array( 'selection', 'attr', 'id', '' ) ) ); ?>" disabled="disabled"></select>
85
+										<input class="item-attr-ref" type="hidden" name="<?php echo $enc->attr($this->formparam(array('selection', 'attr', 'ref', ''))); ?>" value="" disabled="disabled" />
86
+										<input class="item-attr-label" type="hidden" name="<?php echo $enc->attr($this->formparam(array('selection', 'attr', 'label', ''))); ?>" value="" disabled="disabled" />
87
+										<select class="combobox-prototype item-attr-id" name="<?php echo $enc->attr($this->formparam(array('selection', 'attr', 'id', ''))); ?>" disabled="disabled"></select>
88 88
 									</td>
89 89
 									<td class="actions"><div class="btn btn-danger fa fa-trash"></div></td>
90 90
 								</tr>
@@ -97,6 +97,6 @@  discard block
 block discarded – undo
97 97
 <?php endforeach; ?>
98 98
 
99 99
 		</div>
100
-<?php echo $this->get( 'selectionBody' ); ?>
100
+<?php echo $this->get('selectionBody'); ?>
101 101
 	</div>
102 102
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-physical-default.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2015
6 6
  */
7 7
 
8
-$items = $this->get( 'physicalItems', array() );
8
+$items = $this->get('physicalItems', array());
9 9
 
10
-$value = function( $type ) use ( $items ) {
11
-	return ( isset( $items[$type] ) ? $items[$type]->getValue() : '' );
10
+$value = function($type) use ($items) {
11
+	return (isset($items[$type]) ? $items[$type]->getValue() : '');
12 12
 };
13 13
 
14 14
 $enc = $this->encoder();
@@ -16,45 +16,45 @@  discard block
 block discarded – undo
16 16
 ?>
17 17
 <div class="product-item-physical card panel">
18 18
 	<div id="product-item-physical" class="header card-header collapsed" role="tab" data-toggle="collapse" data-parent="#accordion" data-target="#product-item-physical-data" aria-expanded="false" aria-controls="product-item-physical-data">
19
-		<?php echo $enc->html( $this->translate( 'admin', 'Physical values' ) ); ?>
19
+		<?php echo $enc->html($this->translate('admin', 'Physical values')); ?>
20 20
 	</div>
21 21
 	<div id="product-item-physical-data" class="item-physical card-block panel-collapse collapse" role="tabpanel" aria-labelledby="product-item-physical">
22 22
 		<div class="col-lg-6">
23 23
 			<div class="form-group row optional">
24
-				<label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Length' ) ); ?></label>
24
+				<label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Length')); ?></label>
25 25
 				<div class="col-sm-9">
26
-					<input class="form-control item-package-length" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'physical', 'package-length' ) ) ); ?>"
27
-						placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Product length, e.g. 30.0 (in yard, inch, etc.)' ) ); ?>"
28
-						value="<?php echo $enc->attr( $this->param( 'physical/package-length', $value( 'package-length' ) ) ); ?>" >
26
+					<input class="form-control item-package-length" type="text" name="<?php echo $enc->attr($this->formparam(array('physical', 'package-length'))); ?>"
27
+						placeholder="<?php echo $enc->attr($this->translate('admin', 'Product length, e.g. 30.0 (in yard, inch, etc.)')); ?>"
28
+						value="<?php echo $enc->attr($this->param('physical/package-length', $value('package-length'))); ?>" >
29 29
 				</div>
30 30
 			</div>
31 31
 			<div class="form-group row optional">
32
-				<label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Width' ) ); ?></label>
32
+				<label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Width')); ?></label>
33 33
 				<div class="col-sm-9">
34
-					<input class="form-control item-package-width" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'physical', 'package-width' ) ) ); ?>"
35
-						placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Product width, e.g. 17.5 (in yard, inch etc.)' ) ); ?>"
36
-						value="<?php echo $enc->attr( $this->param( 'physical/package-width', $value( 'package-width' ) ) ); ?>" >
34
+					<input class="form-control item-package-width" type="text" name="<?php echo $enc->attr($this->formparam(array('physical', 'package-width'))); ?>"
35
+						placeholder="<?php echo $enc->attr($this->translate('admin', 'Product width, e.g. 17.5 (in yard, inch etc.)')); ?>"
36
+						value="<?php echo $enc->attr($this->param('physical/package-width', $value('package-width'))); ?>" >
37 37
 				</div>
38 38
 			</div>
39 39
 			<div class="form-group row optional">
40
-				<label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Height' ) ); ?></label>
40
+				<label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Height')); ?></label>
41 41
 				<div class="col-sm-9">
42
-					<input class="form-control item-package-height" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'physical', 'package-height' ) ) ); ?>"
43
-						placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Product height, e.g. 20.0 (in yard, inch, etc.)' ) ); ?>"
44
-						value="<?php echo $enc->attr( $this->param( 'physical/package-height', $value( 'package-height' ) ) ); ?>" >
42
+					<input class="form-control item-package-height" type="text" name="<?php echo $enc->attr($this->formparam(array('physical', 'package-height'))); ?>"
43
+						placeholder="<?php echo $enc->attr($this->translate('admin', 'Product height, e.g. 20.0 (in yard, inch, etc.)')); ?>"
44
+						value="<?php echo $enc->attr($this->param('physical/package-height', $value('package-height'))); ?>" >
45 45
 				</div>
46 46
 			</div>
47 47
 		</div>
48 48
 		<div class="col-lg-6">
49 49
 			<div class="form-group row optional">
50
-				<label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Weight' ) ); ?></label>
50
+				<label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Weight')); ?></label>
51 51
 				<div class="col-sm-9">
52
-					<input class="form-control item-package-weight" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'physical', 'package-weight' ) ) ); ?>"
53
-						placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Product weight, e.g. 1.25 (in pound, ounce, etc.)' ) ); ?>"
54
-						value="<?php echo $enc->attr( $this->param( 'physical/package-weight', $value( 'package-weight' ) ) ); ?>" >
52
+					<input class="form-control item-package-weight" type="text" name="<?php echo $enc->attr($this->formparam(array('physical', 'package-weight'))); ?>"
53
+						placeholder="<?php echo $enc->attr($this->translate('admin', 'Product weight, e.g. 1.25 (in pound, ounce, etc.)')); ?>"
54
+						value="<?php echo $enc->attr($this->param('physical/package-weight', $value('package-weight'))); ?>" >
55 55
 				</div>
56 56
 			</div>
57 57
 		</div>
58
-<?php echo $this->get( 'physicalBody' ); ?>
58
+<?php echo $this->get('physicalBody'); ?>
59 59
 	</div>
60 60
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-characteristic-default.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 ?>
11 11
 <div class="product-item-characteristic card panel">
12 12
 	<div id="product-item-characteristic" class="header card-header collapsed" role="tab" data-toggle="collapse" data-parent="#accordion" data-target="#product-item-characteristic-data" aria-expanded="false" aria-controls="product-item-characteristic-data">
13
-		<?php echo $enc->html( $this->translate( 'admin', 'Characteristics' ) ); ?>
13
+		<?php echo $enc->html($this->translate('admin', 'Characteristics')); ?>
14 14
 	</div>
15 15
 	<div id="product-item-characteristic-data" class="item-characteristic card-block panel-collapse collapse" role="tabpanel" aria-labelledby="product-item-characteristic">
16
-<?php echo $this->get( 'characteristicBody' ); ?>
16
+<?php echo $this->get('characteristicBody'); ?>
17 17
 	</div>
18 18
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-default.php 1 patch
Spacing   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -5,99 +5,99 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2015
6 6
  */
7 7
 
8
-$selected = function( $key, $code ) {
9
-	return ( $key == $code ? 'selected="selected"' : '' );
8
+$selected = function($key, $code) {
9
+	return ($key == $code ? 'selected="selected"' : '');
10 10
 };
11 11
 
12 12
 $enc = $this->encoder();
13 13
 
14
-$target = $this->config( 'admin/jqadm/url/save/target' );
15
-$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' );
16
-$action = $this->config( 'admin/jqadm/url/save/action', 'save' );
17
-$config = $this->config( 'admin/jqadm/url/save/config', array() );
14
+$target = $this->config('admin/jqadm/url/save/target');
15
+$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm');
16
+$action = $this->config('admin/jqadm/url/save/action', 'save');
17
+$config = $this->config('admin/jqadm/url/save/config', array());
18 18
 
19
-$listTarget = $this->config( 'admin/jqadm/url/search/target' );
20
-$listCntl = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
21
-$listAction = $this->config( 'admin/jqadm/url/search/action', 'search' );
22
-$listConfig = $this->config( 'admin/jqadm/url/search/config', array() );
19
+$listTarget = $this->config('admin/jqadm/url/search/target');
20
+$listCntl = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
21
+$listAction = $this->config('admin/jqadm/url/search/action', 'search');
22
+$listConfig = $this->config('admin/jqadm/url/search/config', array());
23 23
 
24
-$params = $this->get( 'pageParams', array() );
25
-$params['id'] = $this->param( 'id', '' );
24
+$params = $this->get('pageParams', array());
25
+$params['id'] = $this->param('id', '');
26 26
 
27 27
 ?>
28
-<?php $this->block()->start( 'jqadm_content' ); ?>
28
+<?php $this->block()->start('jqadm_content'); ?>
29 29
 
30
-<form class="item item-product form-horizontal" method="POST" enctype="multipart/form-data" action="<?php echo $enc->attr( $this->url( $target, $cntl, $action, $params, array(), $config ) ); ?>">
30
+<form class="item item-product form-horizontal" method="POST" enctype="multipart/form-data" action="<?php echo $enc->attr($this->url($target, $cntl, $action, $params, array(), $config)); ?>">
31 31
 <?php echo $this->csrf()->formfield(); ?>
32 32
 
33 33
 	<div id="accordion" role="tablist" aria-multiselectable="true">
34 34
 
35 35
 		<div class="product-item card panel">
36 36
 			<div id="product-item" class="header card-header" role="tab" data-toggle="collapse" data-parent="#accordion" data-target="#product-item-data" aria-expanded="true" aria-controls="product-item-data">
37
-				<?php echo $enc->html( $this->translate( 'admin', 'Basic' ) ); ?> <span class="item-label"> - <?php echo $enc->html( $this->get( 'itemData/product.label' ) ); ?></span>
37
+				<?php echo $enc->html($this->translate('admin', 'Basic')); ?> <span class="item-label"> - <?php echo $enc->html($this->get('itemData/product.label')); ?></span>
38 38
 			</div>
39 39
 			<div id="product-item-data" class="item-basic card-block panel-collapse collapse in" role="tabpanel" aria-labelledby="product-item">
40 40
 				<div class="col-lg-6">
41 41
 					<div class="form-group row">
42
-						<label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'ID' ) ); ?></label>
42
+						<label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'ID')); ?></label>
43 43
 						<div class="col-sm-9">
44
-							<input class="item-id" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'product.id' ) ) ); ?>" value="<?php echo $enc->attr( $this->get( 'itemData/product.id' ) ); ?>" />
45
-							<p class="form-control-static item-id"><?php echo $enc->attr( $this->get( 'itemData/product.id' ) ); ?></p>
44
+							<input class="item-id" type="hidden" name="<?php echo $enc->attr($this->formparam(array('item', 'product.id'))); ?>" value="<?php echo $enc->attr($this->get('itemData/product.id')); ?>" />
45
+							<p class="form-control-static item-id"><?php echo $enc->attr($this->get('itemData/product.id')); ?></p>
46 46
 						</div>
47 47
 					</div>
48 48
 					<div class="form-group row mandatory">
49
-						<label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
49
+						<label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Status')); ?></label>
50 50
 						<div class="col-sm-9">
51
-							<select class="form-control c-select item-status" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'product.status' ) ) ); ?>">
52
-								<option value="1" <?php echo $selected( $this->get( 'itemData/product.status', 1 ), 1 ); ?>><?php echo $enc->html( $this->translate( 'admin', 'status:enabled' ) ); ?></option>
53
-								<option value="0" <?php echo $selected( $this->get( 'itemData/product.status', 1 ), 0 ); ?>><?php echo $enc->html( $this->translate( 'admin', 'status:disabled' ) ); ?></option>
54
-								<option value="-1" <?php echo $selected( $this->get( 'itemData/product.status', 1 ), -1 ); ?>><?php echo $enc->html( $this->translate( 'admin', 'status:review' ) ); ?></option>
55
-								<option value="-2" <?php echo $selected( $this->get( 'itemData/product.status', 1 ), -2 ); ?>><?php echo $enc->html( $this->translate( 'admin', 'status:archive' ) ); ?></option>
51
+							<select class="form-control c-select item-status" name="<?php echo $enc->attr($this->formparam(array('item', 'product.status'))); ?>">
52
+								<option value="1" <?php echo $selected($this->get('itemData/product.status', 1), 1); ?>><?php echo $enc->html($this->translate('admin', 'status:enabled')); ?></option>
53
+								<option value="0" <?php echo $selected($this->get('itemData/product.status', 1), 0); ?>><?php echo $enc->html($this->translate('admin', 'status:disabled')); ?></option>
54
+								<option value="-1" <?php echo $selected($this->get('itemData/product.status', 1), -1); ?>><?php echo $enc->html($this->translate('admin', 'status:review')); ?></option>
55
+								<option value="-2" <?php echo $selected($this->get('itemData/product.status', 1), -2); ?>><?php echo $enc->html($this->translate('admin', 'status:archive')); ?></option>
56 56
 							</select>
57 57
 						</div>
58 58
 					</div>
59 59
 					<div class="form-group row mandatory">
60
-						<label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label>
60
+						<label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Type')); ?></label>
61 61
 						<div class="col-sm-9">
62
-							<select class="form-control c-select item-typeid" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'product.typeid' ) ) ); ?>">
63
-<?php foreach( $this->get( 'itemTypes', array() ) as $id => $typeItem ) : ?>
64
-								<option value="<?php echo $enc->attr( $id ); ?>" data-code="<?php echo $enc->attr( $typeItem->getCode() ); ?>" <?php echo $selected( $this->get( 'itemData/product.typeid' ), $id ); ?>><?php echo $enc->html( $typeItem->getLabel() ); ?></option>
62
+							<select class="form-control c-select item-typeid" name="<?php echo $enc->attr($this->formparam(array('item', 'product.typeid'))); ?>">
63
+<?php foreach ($this->get('itemTypes', array()) as $id => $typeItem) : ?>
64
+								<option value="<?php echo $enc->attr($id); ?>" data-code="<?php echo $enc->attr($typeItem->getCode()); ?>" <?php echo $selected($this->get('itemData/product.typeid'), $id); ?>><?php echo $enc->html($typeItem->getLabel()); ?></option>
65 65
 <?php endforeach; ?>
66 66
 							</select>
67 67
 						</div>
68 68
 					</div>
69 69
 					<div class="form-group row mandatory">
70
-						<label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label>
70
+						<label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Code')); ?></label>
71 71
 						<div class="col-sm-9">
72
-							<input class="form-control item-code" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'product.code' ) ) ); ?>"
73
-								placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'EAN, SKU or article number (required)' ) ); ?>"
74
-								value="<?php echo $enc->attr( $this->get( 'itemData/product.code' ) ); ?>" />
72
+							<input class="form-control item-code" type="text" name="<?php echo $enc->attr($this->formparam(array('item', 'product.code'))); ?>"
73
+								placeholder="<?php echo $enc->attr($this->translate('admin', 'EAN, SKU or article number (required)')); ?>"
74
+								value="<?php echo $enc->attr($this->get('itemData/product.code')); ?>" />
75 75
 						</div>
76 76
 					</div>
77 77
 					<div class="form-group row mandatory">
78
-						<label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label>
78
+						<label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Label')); ?></label>
79 79
 						<div class="col-sm-9">
80
-							<input class="form-control item-label" type="text" name="<?php echo $this->formparam( array( 'item', 'product.label' ) ); ?>"
81
-								placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>"
82
-								value="<?php echo $enc->attr( $this->get( 'itemData/product.label' ) ); ?>" />
80
+							<input class="form-control item-label" type="text" name="<?php echo $this->formparam(array('item', 'product.label')); ?>"
81
+								placeholder="<?php echo $enc->attr($this->translate('admin', 'Internal name (required)')); ?>"
82
+								value="<?php echo $enc->attr($this->get('itemData/product.label')); ?>" />
83 83
 						</div>
84 84
 					</div>
85 85
 					<div class="form-group row optional">
86
-						<label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label>
86
+						<label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Start date')); ?></label>
87 87
 						<div class="col-sm-9">
88
-							<input class="form-control item-datestart date" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'product.datestart' ) ) ); ?>"
89
-								placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
90
-								value="<?php echo $enc->attr( $this->get( 'itemData/product.datestart' ) ); ?>"
91
-								data-format="<?php echo $this->translate( 'admin', 'yy-mm-dd' ); ?>" />
88
+							<input class="form-control item-datestart date" type="text" name="<?php echo $enc->attr($this->formparam(array('item', 'product.datestart'))); ?>"
89
+								placeholder="<?php echo $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
90
+								value="<?php echo $enc->attr($this->get('itemData/product.datestart')); ?>"
91
+								data-format="<?php echo $this->translate('admin', 'yy-mm-dd'); ?>" />
92 92
 						</div>
93 93
 					</div>
94 94
 					<div class="form-group row optional">
95
-						<label class="col-sm-3 control-label"><?php echo $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label>
95
+						<label class="col-sm-3 control-label"><?php echo $enc->html($this->translate('admin', 'End date')); ?></label>
96 96
 						<div class="col-sm-9">
97
-							<input class="form-control item-dateend date" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'product.dateend' ) ) ); ?>"
98
-								placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
99
-								value="<?php echo $enc->attr( $this->get( 'itemData/product.dateend' ) ); ?>"
100
-								data-format="<?php echo $this->translate( 'admin', 'yy-mm-dd' ); ?>" />
97
+							<input class="form-control item-dateend date" type="text" name="<?php echo $enc->attr($this->formparam(array('item', 'product.dateend'))); ?>"
98
+								placeholder="<?php echo $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
99
+								value="<?php echo $enc->attr($this->get('itemData/product.dateend')); ?>"
100
+								data-format="<?php echo $this->translate('admin', 'yy-mm-dd'); ?>" />
101 101
 						</div>
102 102
 					</div>
103 103
 				</div>
@@ -105,22 +105,22 @@  discard block
 block discarded – undo
105 105
 					<table class="item-config table table-striped">
106 106
 						<thead>
107 107
 							<tr>
108
-								<th><?php echo $enc->html( $this->translate( 'admin', 'Option' ) ); ?></th>
109
-								<th><?php echo $enc->html( $this->translate( 'admin', 'Value' ) ); ?></th>
108
+								<th><?php echo $enc->html($this->translate('admin', 'Option')); ?></th>
109
+								<th><?php echo $enc->html($this->translate('admin', 'Value')); ?></th>
110 110
 								<th class="actions"><div class="btn btn-primary fa fa-plus"></div></th>
111 111
 							</tr>
112 112
 						</thead>
113 113
 						<tbody>
114
-<?php	foreach( (array) $this->get( 'itemData/config/key', array() ) as $idx => $key ) : ?>
114
+<?php	foreach ((array) $this->get('itemData/config/key', array()) as $idx => $key) : ?>
115 115
 							<tr class="config-item">
116
-								<td><input type="text" class="config-key form-control" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'config', 'key', '' ) ) ); ?>" value="<?php echo $enc->attr( $this->get( 'itemData/config/key/' . $idx, $key ) ); ?>" /></td>
117
-								<td><input type="text" class="config-value form-control" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" value="<?php echo $enc->attr( $this->get( 'itemData/config/val/' . $idx ) ); ?>" /></td>
116
+								<td><input type="text" class="config-key form-control" name="<?php echo $enc->attr($this->formparam(array('item', 'config', 'key', ''))); ?>" value="<?php echo $enc->attr($this->get('itemData/config/key/' . $idx, $key)); ?>" /></td>
117
+								<td><input type="text" class="config-value form-control" name="<?php echo $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" value="<?php echo $enc->attr($this->get('itemData/config/val/' . $idx)); ?>" /></td>
118 118
 								<td class="actions"><div class="btn btn-danger fa fa-trash"></div></td>
119 119
 							</tr>
120 120
 <?php	endforeach; ?>
121 121
 							<tr class="prototype">
122
-								<td><input type="text" class="config-key form-control" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'config', 'key', '' ) ) ); ?>" value="" disabled="disabled" /></td>
123
-								<td><input type="text" class="config-value form-control" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" value="" disabled="disabled" /></td>
122
+								<td><input type="text" class="config-key form-control" name="<?php echo $enc->attr($this->formparam(array('item', 'config', 'key', ''))); ?>" value="" disabled="disabled" /></td>
123
+								<td><input type="text" class="config-value form-control" name="<?php echo $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" value="" disabled="disabled" /></td>
124 124
 								<td class="actions"><div class="btn btn-danger fa fa-trash"></div></td>
125 125
 							</tr>
126 126
 						</tbody>
@@ -129,16 +129,16 @@  discard block
 block discarded – undo
129 129
 			</div>
130 130
 		</div>
131 131
 
132
-<?php echo $this->get( 'itemBody' ); ?>
132
+<?php echo $this->get('itemBody'); ?>
133 133
 
134 134
 	</div>
135 135
 
136 136
 	<div class="actions-group">
137 137
 		<button class="btn btn-primary">
138
-			<?php echo $enc->html( $this->translate( 'admin', 'Save' ) ); ?>
138
+			<?php echo $enc->html($this->translate('admin', 'Save')); ?>
139 139
 		</button>
140
-		<a class="btn btn-warning" href="<?php echo $enc->attr( $this->url( $listTarget, $listCntl, $listAction, $params, array(), $listConfig ) ); ?>">
141
-			<?php echo $enc->html( $this->translate( 'admin', 'Cancel' ) ); ?>
140
+		<a class="btn btn-warning" href="<?php echo $enc->attr($this->url($listTarget, $listCntl, $listAction, $params, array(), $listConfig)); ?>">
141
+			<?php echo $enc->html($this->translate('admin', 'Cancel')); ?>
142 142
 		</a>
143 143
 	</div>
144 144
 </form>
@@ -146,4 +146,4 @@  discard block
 block discarded – undo
146 146
 <?php $this->block()->stop(); ?>
147 147
 
148 148
 
149
-<?php echo $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-default.php' ) ); ?>
149
+<?php echo $this->render($this->config('admin/jqadm/template/page', 'common/page-default.php')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-category-default.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -10,31 +10,31 @@  discard block
 block discarded – undo
10 10
 ?>
11 11
 <div class="product-item-category card panel">
12 12
 	<div id="product-item-category" class="header card-header collapsed" role="tab" data-toggle="collapse" data-parent="#accordion" data-target="#product-item-category-data" aria-expanded="false" aria-controls="product-item-category-data">
13
-		<?php echo $enc->html( $this->translate( 'admin', 'Categories' ) ); ?>
13
+		<?php echo $enc->html($this->translate('admin', 'Categories')); ?>
14 14
 	</div>
15 15
 	<div id="product-item-category-data" class="item-category card-block panel-collapse collapse" role="tabpanel" aria-labelledby="product-item-category">
16 16
 		<div class="col-lg-6">
17 17
 			<table class="category-list table table-default">
18 18
 				<thead>
19 19
 					<tr>
20
-						<th><?php echo $enc->html( $this->translate( 'admin', 'Default' ) ); ?></th>
20
+						<th><?php echo $enc->html($this->translate('admin', 'Default')); ?></th>
21 21
 						<th class="actions"><div class="btn btn-primary fa fa-plus"></div></th>
22 22
 					</tr>
23 23
 				</thead>
24 24
 				<tbody>
25
-<?php $listTypeId = $this->get( 'categoryListTypes/default' ); ?>
26
-<?php foreach( $this->get( 'categoryData/catalog.lists.id', array() ) as $idx => $id ) : ?>
27
-<?php 	if( $this->get( 'categoryData/catalog.lists.typeid/' . $idx ) == $listTypeId ) : ?>
25
+<?php $listTypeId = $this->get('categoryListTypes/default'); ?>
26
+<?php foreach ($this->get('categoryData/catalog.lists.id', array()) as $idx => $id) : ?>
27
+<?php 	if ($this->get('categoryData/catalog.lists.typeid/' . $idx) == $listTypeId) : ?>
28 28
 					<tr>
29 29
 						<td>
30
-							<input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.typeid', '' ) ) ); ?>"
31
-								value="<?php echo $enc->attr( $listTypeId ); ?>" />
32
-							<input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.id', '' ) ) ); ?>"
33
-								value="<?php echo $enc->attr( $id ); ?>" />
34
-							<input class="item-label" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.label', '' ) ) ); ?>"
35
-								value="<?php echo $enc->attr( $this->get( 'categoryData/catalog.label/' . $idx ) ); ?>" />
36
-							<select class="combobox item-id" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.id', '' ) ) ); ?>">
37
-								<option value="<?php echo $enc->attr( $this->get( 'categoryData/catalog.id/' . $idx ) ); ?>" ><?php echo $enc->html( $this->get( 'categoryData/catalog.label/' . $idx ) ); ?></option>
30
+							<input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.typeid', ''))); ?>"
31
+								value="<?php echo $enc->attr($listTypeId); ?>" />
32
+							<input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.id', ''))); ?>"
33
+								value="<?php echo $enc->attr($id); ?>" />
34
+							<input class="item-label" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.label', ''))); ?>"
35
+								value="<?php echo $enc->attr($this->get('categoryData/catalog.label/' . $idx)); ?>" />
36
+							<select class="combobox item-id" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.id', ''))); ?>">
37
+								<option value="<?php echo $enc->attr($this->get('categoryData/catalog.id/' . $idx)); ?>" ><?php echo $enc->html($this->get('categoryData/catalog.label/' . $idx)); ?></option>
38 38
 							</select>
39 39
 						</td>
40 40
 						<td class="actions"><div class="btn btn-danger fa fa-trash"></div></td>
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
 <?php endforeach; ?>
44 44
 					<tr class="prototype">
45 45
 						<td>
46
-							<input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.typeid', '' ) ) ); ?>" value="<?php echo $enc->attr( $listTypeId ); ?>" disabled="disabled" />
47
-							<input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.id', '' ) ) ); ?>" value="" disabled="disabled" />
48
-							<input class="item-label" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.label', '' ) ) ); ?>" value="" disabled="disabled" />
49
-							<select class="combobox-prototype item-id" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.id', '' ) ) ); ?>" disabled="disabled">
46
+							<input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.typeid', ''))); ?>" value="<?php echo $enc->attr($listTypeId); ?>" disabled="disabled" />
47
+							<input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.id', ''))); ?>" value="" disabled="disabled" />
48
+							<input class="item-label" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.label', ''))); ?>" value="" disabled="disabled" />
49
+							<select class="combobox-prototype item-id" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.id', ''))); ?>" disabled="disabled">
50 50
 							</select>
51 51
 						</td>
52 52
 						<td class="actions"><div class="btn btn-danger fa fa-trash"></div></td>
@@ -58,24 +58,24 @@  discard block
 block discarded – undo
58 58
 			<table class="category-list table table-default">
59 59
 				<thead>
60 60
 					<tr>
61
-						<th><?php echo $enc->html( $this->translate( 'admin', 'Promotion' ) ); ?></th>
61
+						<th><?php echo $enc->html($this->translate('admin', 'Promotion')); ?></th>
62 62
 						<th class="actions"><div class="btn btn-primary fa fa-plus"></div></th>
63 63
 					</tr>
64 64
 				</thead>
65 65
 				<tbody>
66
-<?php $listTypeId = $this->get( 'categoryListTypes/promotion' ); ?>
67
-<?php foreach( $this->get( 'categoryData/catalog.lists.id', array() ) as $idx => $id ) : ?>
68
-<?php 	if( $this->get( 'categoryData/catalog.lists.typeid/' . $idx ) == $listTypeId ) : ?>
66
+<?php $listTypeId = $this->get('categoryListTypes/promotion'); ?>
67
+<?php foreach ($this->get('categoryData/catalog.lists.id', array()) as $idx => $id) : ?>
68
+<?php 	if ($this->get('categoryData/catalog.lists.typeid/' . $idx) == $listTypeId) : ?>
69 69
 					<tr>
70 70
 						<td>
71
-							<input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.typeid', '' ) ) ); ?>"
72
-								value="<?php echo $enc->attr( $listTypeId ); ?>" />
73
-							<input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.id', '' ) ) ); ?>"
74
-								value="<?php echo $enc->attr( $id ); ?>" />
75
-							<input class="item-label" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.label', '' ) ) ); ?>"
76
-								value="<?php echo $enc->attr( $this->get( 'categoryData/catalog.label/' . $idx ) ); ?>" />
77
-							<select class="combobox item-id" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.id', '' ) ) ); ?>">
78
-								<option value="<?php echo $enc->attr( $this->get( 'categoryData/catalog.id/' . $idx ) ); ?>" ><?php echo $enc->html( $this->get( 'categoryData/catalog.label/' . $idx ) ); ?></option>
71
+							<input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.typeid', ''))); ?>"
72
+								value="<?php echo $enc->attr($listTypeId); ?>" />
73
+							<input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.id', ''))); ?>"
74
+								value="<?php echo $enc->attr($id); ?>" />
75
+							<input class="item-label" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.label', ''))); ?>"
76
+								value="<?php echo $enc->attr($this->get('categoryData/catalog.label/' . $idx)); ?>" />
77
+							<select class="combobox item-id" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.id', ''))); ?>">
78
+								<option value="<?php echo $enc->attr($this->get('categoryData/catalog.id/' . $idx)); ?>" ><?php echo $enc->html($this->get('categoryData/catalog.label/' . $idx)); ?></option>
79 79
 							</select>
80 80
 						</td>
81 81
 						<td class="actions"><div class="btn btn-danger fa fa-trash"></div></td>
@@ -84,10 +84,10 @@  discard block
 block discarded – undo
84 84
 <?php endforeach; ?>
85 85
 					<tr class="prototype">
86 86
 						<td>
87
-							<input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.typeid', '' ) ) ); ?>" value="<?php echo $enc->attr( $listTypeId ); ?>" disabled="disabled" />
88
-							<input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.id', '' ) ) ); ?>" value="" disabled="disabled" />
89
-							<input class="item-label" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.label', '' ) ) ); ?>" value="" disabled="disabled" />
90
-							<select class="combobox-prototype item-id" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.id', '' ) ) ); ?>" disabled="disabled">
87
+							<input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.typeid', ''))); ?>" value="<?php echo $enc->attr($listTypeId); ?>" disabled="disabled" />
88
+							<input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.id', ''))); ?>" value="" disabled="disabled" />
89
+							<input class="item-label" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.label', ''))); ?>" value="" disabled="disabled" />
90
+							<select class="combobox-prototype item-id" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.id', ''))); ?>" disabled="disabled">
91 91
 							</select>
92 92
 						</td>
93 93
 						<td class="actions"><div class="btn btn-danger fa fa-trash"></div></td>
@@ -95,6 +95,6 @@  discard block
 block discarded – undo
95 95
 				</tbody>
96 96
 			</table>
97 97
 		</div>
98
-		<?php echo $this->get( 'categoryBody' ); ?>
98
+		<?php echo $this->get('categoryBody'); ?>
99 99
 	</div>
100 100
 </div>
Please login to merge, or discard this patch.