Completed
Push — master ( 0229de...f71bfb )
by Aimeos
04:41
created
admin/jqadm/tests/Admin/JQAdm/Log/StandardTest.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -21,16 +21,16 @@  discard block
 block discarded – undo
21 21
 		$this->view = \TestHelperJqadm::getView();
22 22
 		$this->context = \TestHelperJqadm::getContext();
23 23
 
24
-		$this->object = new \Aimeos\Admin\JQAdm\Log\Standard( $this->context );
25
-		$this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page( $this->object, $this->context );
26
-		$this->object->setAimeos( \TestHelperJqadm::getAimeos() );
27
-		$this->object->setView( $this->view );
24
+		$this->object = new \Aimeos\Admin\JQAdm\Log\Standard($this->context);
25
+		$this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page($this->object, $this->context);
26
+		$this->object->setAimeos(\TestHelperJqadm::getAimeos());
27
+		$this->object->setView($this->view);
28 28
 	}
29 29
 
30 30
 
31 31
 	protected function tearDown()
32 32
 	{
33
-		unset( $this->object, $this->view, $this->context );
33
+		unset($this->object, $this->view, $this->context);
34 34
 	}
35 35
 
36 36
 
@@ -38,23 +38,23 @@  discard block
 block discarded – undo
38 38
 	{
39 39
 		$param = array(
40 40
 			'site' => 'unittest', 'lang' => 'de',
41
-			'sort' => array( '-log.timestamp' ),
41
+			'sort' => array('-log.timestamp'),
42 42
 		);
43
-		$helper = new \Aimeos\MW\View\Helper\Param\Standard( $this->view, $param );
44
-		$this->view->addHelper( 'param', $helper );
43
+		$helper = new \Aimeos\MW\View\Helper\Param\Standard($this->view, $param);
44
+		$this->view->addHelper('param', $helper);
45 45
 
46 46
 		$result = $this->object->search();
47 47
 
48
-		$this->assertContains( '>unittest facility<', $result );
48
+		$this->assertContains('>unittest facility<', $result);
49 49
 	}
50 50
 
51 51
 
52 52
 	public function testSearchException()
53 53
 	{
54
-		$object = $this->getClientMock( 'initCriteria' );
54
+		$object = $this->getClientMock('initCriteria');
55 55
 
56
-		$object->expects( $this->once() )->method( 'initCriteria' )
57
-			->will( $this->throwException( new \RuntimeException() ) );
56
+		$object->expects($this->once())->method('initCriteria')
57
+			->will($this->throwException(new \RuntimeException()));
58 58
 
59 59
 		$object->search();
60 60
 	}
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
 
63 63
 	public function testSearchMShopException()
64 64
 	{
65
-		$object = $this->getClientMock( 'initCriteria' );
65
+		$object = $this->getClientMock('initCriteria');
66 66
 
67
-		$object->expects( $this->once() )->method( 'initCriteria' )
68
-			->will( $this->throwException( new \Aimeos\MShop\Exception() ) );
67
+		$object->expects($this->once())->method('initCriteria')
68
+			->will($this->throwException(new \Aimeos\MShop\Exception()));
69 69
 
70 70
 		$object->search();
71 71
 	}
@@ -73,27 +73,27 @@  discard block
 block discarded – undo
73 73
 
74 74
 	public function testGetSubClientInvalid()
75 75
 	{
76
-		$this->setExpectedException( \Aimeos\Admin\JQAdm\Exception::class );
77
-		$this->object->getSubClient( '$unknown$' );
76
+		$this->setExpectedException(\Aimeos\Admin\JQAdm\Exception::class);
77
+		$this->object->getSubClient('$unknown$');
78 78
 	}
79 79
 
80 80
 
81 81
 	public function testGetSubClientUnknown()
82 82
 	{
83
-		$this->setExpectedException( \Aimeos\Admin\JQAdm\Exception::class );
84
-		$this->object->getSubClient( 'unknown' );
83
+		$this->setExpectedException(\Aimeos\Admin\JQAdm\Exception::class);
84
+		$this->object->getSubClient('unknown');
85 85
 	}
86 86
 
87 87
 
88
-	public function getClientMock( $method )
88
+	public function getClientMock($method)
89 89
 	{
90
-		$object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Log\Standard::class )
91
-			->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) )
92
-			->setMethods( [$method] )
90
+		$object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Log\Standard::class)
91
+			->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths()))
92
+			->setMethods([$method])
93 93
 			->getMock();
94 94
 
95
-		$object->setAimeos( \TestHelperJqadm::getAimeos() );
96
-		$object->setView( $this->getViewNoRender() );
95
+		$object->setAimeos(\TestHelperJqadm::getAimeos());
96
+		$object->setView($this->getViewNoRender());
97 97
 
98 98
 		return $object;
99 99
 	}
@@ -101,17 +101,17 @@  discard block
 block discarded – undo
101 101
 
102 102
 	protected function getViewNoRender()
103 103
 	{
104
-		$view = $this->getMockBuilder( \Aimeos\MW\View\Standard::class )
105
-			->setConstructorArgs( array( [] ) )
106
-			->setMethods( array( 'render', 'config' ) )
104
+		$view = $this->getMockBuilder(\Aimeos\MW\View\Standard::class)
105
+			->setConstructorArgs(array([]))
106
+			->setMethods(array('render', 'config'))
107 107
 			->getMock();
108 108
 
109 109
 		$param = ['site' => 'unittest'];
110
-		$helper = new \Aimeos\MW\View\Helper\Param\Standard( $view, $param );
111
-		$view->addHelper( 'param', $helper );
110
+		$helper = new \Aimeos\MW\View\Helper\Param\Standard($view, $param);
111
+		$view->addHelper('param', $helper);
112 112
 
113
-		$helper = new \Aimeos\MW\View\Helper\Access\Standard( $view, [] );
114
-		$view->addHelper( 'access', $helper );
113
+		$helper = new \Aimeos\MW\View\Helper\Access\Standard($view, []);
114
+		$view->addHelper('access', $helper);
115 115
 
116 116
 		return $view;
117 117
 	}
Please login to merge, or discard this patch.
admin/jqadm/tests/Admin/JQAdm/Common/Decorator/PageTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -19,16 +19,16 @@  discard block
 block discarded – undo
19 19
 	{
20 20
 		$this->context = \TestHelperJqadm::getContext();
21 21
 
22
-		$client = new \Aimeos\Admin\JQAdm\Product\Standard( $this->context );
23
-		$this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page( $client, $this->context );
24
-		$this->object->setAimeos( \TestHelperJqadm::getAimeos() );
25
-		$this->object->setView( \TestHelperJqadm::getView() );
22
+		$client = new \Aimeos\Admin\JQAdm\Product\Standard($this->context);
23
+		$this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page($client, $this->context);
24
+		$this->object->setAimeos(\TestHelperJqadm::getAimeos());
25
+		$this->object->setView(\TestHelperJqadm::getView());
26 26
 	}
27 27
 
28 28
 
29 29
 	protected function tearDown()
30 30
 	{
31
-		unset( $this->object, $this->context );
31
+		unset($this->object, $this->context);
32 32
 	}
33 33
 
34 34
 
@@ -36,13 +36,13 @@  discard block
 block discarded – undo
36 36
 	{
37 37
 		$view = \TestHelperJqadm::getView();
38 38
 
39
-		$this->object->setView( $view );
39
+		$this->object->setView($view);
40 40
 
41
-		$this->assertNull( $view->get( 'pageUser' ) );
42
-		$this->assertInternalType( 'array', $view->pageParams );
43
-		$this->assertInternalType( 'array', $view->pageI18nList );
44
-		$this->assertInternalType( 'array', $view->pageLangItems );
45
-		$this->assertInstanceOf( \Aimeos\MShop\Locale\Item\Site\Iface::class, $view->pageSiteTree );
46
-		$this->assertInstanceOf( \Aimeos\MShop\Locale\Item\Site\Iface::class, $view->pageSiteItem );
41
+		$this->assertNull($view->get('pageUser'));
42
+		$this->assertInternalType('array', $view->pageParams);
43
+		$this->assertInternalType('array', $view->pageI18nList);
44
+		$this->assertInternalType('array', $view->pageLangItems);
45
+		$this->assertInstanceOf(\Aimeos\MShop\Locale\Item\Site\Iface::class, $view->pageSiteTree);
46
+		$this->assertInstanceOf(\Aimeos\MShop\Locale\Item\Site\Iface::class, $view->pageSiteItem);
47 47
 	}
48 48
 }
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/currency/list-standard.php 1 patch
Spacing   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -8,30 +8,30 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
17
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
18
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
19
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
16
+$newTarget = $this->config('admin/jqadm/url/create/target');
17
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
18
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
19
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
20 20
 
21
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
22
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
23
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
24
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
21
+$getTarget = $this->config('admin/jqadm/url/get/target');
22
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
23
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
24
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
25 25
 
26
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
27
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
28
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
29
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
26
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
27
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
28
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
29
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
30 30
 
31
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
32
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
33
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
34
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
31
+$delTarget = $this->config('admin/jqadm/url/delete/target');
32
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
33
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
34
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
35 35
 
36 36
 
37 37
 /** admin/jqadm/locale/currency/fields
@@ -49,37 +49,37 @@  discard block
 block discarded – undo
49 49
  * @category Developer
50 50
  */
51 51
 $default = ['locale.currency.status', 'locale.currency.code', 'locale.currency.label'];
52
-$default = $this->config( 'admin/jqadm/locale/currency/fields', $default );
53
-$fields = $this->session( 'aimeos/admin/jqadm/locale/currency/fields', $default );
52
+$default = $this->config('admin/jqadm/locale/currency/fields', $default);
53
+$fields = $this->session('aimeos/admin/jqadm/locale/currency/fields', $default);
54 54
 
55
-$searchParams = $params = $this->get( 'pageParams', [] );
55
+$searchParams = $params = $this->get('pageParams', []);
56 56
 $searchParams['page']['start'] = 0;
57 57
 
58 58
 $columnList = [
59
-	'locale.currency.id' => $this->translate( 'admin', 'ID' ),
60
-	'locale.currency.status' => $this->translate( 'admin', 'Status' ),
61
-	'locale.currency.code' => $this->translate( 'admin', 'Code' ),
62
-	'locale.currency.label' => $this->translate( 'admin', 'Label' ),
63
-	'locale.currency.ctime' => $this->translate( 'admin', 'Created' ),
64
-	'locale.currency.mtime' => $this->translate( 'admin', 'Modified' ),
65
-	'locale.currency.editor' => $this->translate( 'admin', 'Editor' ),
59
+	'locale.currency.id' => $this->translate('admin', 'ID'),
60
+	'locale.currency.status' => $this->translate('admin', 'Status'),
61
+	'locale.currency.code' => $this->translate('admin', 'Code'),
62
+	'locale.currency.label' => $this->translate('admin', 'Label'),
63
+	'locale.currency.ctime' => $this->translate('admin', 'Created'),
64
+	'locale.currency.mtime' => $this->translate('admin', 'Modified'),
65
+	'locale.currency.editor' => $this->translate('admin', 'Editor'),
66 66
 ];
67 67
 
68 68
 
69 69
 ?>
70
-<?php $this->block()->start( 'jqadm_content' ); ?>
70
+<?php $this->block()->start('jqadm_content'); ?>
71 71
 
72 72
 <nav class="main-navbar">
73 73
 
74 74
 	<span class="navbar-brand">
75
-		<?= $enc->html( $this->translate( 'admin', 'Currencies' ) ); ?>
75
+		<?= $enc->html($this->translate('admin', 'Currencies')); ?>
76 76
 	</span>
77 77
 
78 78
 	<?= $this->partial(
79
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
80
-			'filter' => $this->session( 'aimeos/admin/jqadm/locale/currency/filter', [] ),
81
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
82
-			'filterOperators' => $this->get( 'filterOperators', [] ),
79
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
80
+			'filter' => $this->session('aimeos/admin/jqadm/locale/currency/filter', []),
81
+			'filterAttributes' => $this->get('filterAttributes', []),
82
+			'filterOperators' => $this->get('filterOperators', []),
83 83
 			'params' => $params,
84 84
 		]
85 85
 	); ?>
@@ -87,13 +87,13 @@  discard block
 block discarded – undo
87 87
 
88 88
 
89 89
 <?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
91
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
92
-		'page' => $this->session( 'aimeos/admin/jqadm/locale/currency/page', [] )]
90
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
91
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
92
+		'page' => $this->session('aimeos/admin/jqadm/locale/currency/page', [])]
93 93
 	);
94 94
 ?>
95 95
 
96
-<form class="list list-locale-currency" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
96
+<form class="list list-locale-currency" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
97 97
 	<?= $this->csrf()->formfield(); ?>
98 98
 
99 99
 	<table class="list-items table table-hover table-striped">
@@ -101,20 +101,20 @@  discard block
 block discarded – undo
101 101
 			<tr>
102 102
 
103 103
 				<?= $this->partial(
104
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
105
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/locale/currency/sort' )]
104
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
105
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/locale/currency/sort')]
106 106
 					);
107 107
 				?>
108 108
 
109 109
 				<th class="actions">
110 110
 					<a class="btn fa act-add" tabindex="1"
111
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
112
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
113
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
111
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
112
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
113
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
114 114
 					</a>
115 115
 
116 116
 					<?= $this->partial(
117
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
117
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
118 118
 							['fields' => $fields, 'data' => $columnList]
119 119
 						);
120 120
 					?>
@@ -124,15 +124,15 @@  discard block
 block discarded – undo
124 124
 		<tbody>
125 125
 
126 126
 			<?= $this->partial(
127
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
128
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/locale/currency/filter', [] ),
127
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
128
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/locale/currency/filter', []),
129 129
 					'data' => [
130 130
 						'locale.currency.id' => ['op' => '=='],
131 131
 						'locale.currency.status' => ['op' => '==', 'type' => 'select', 'val' => [
132
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
133
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
134
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
135
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
132
+							'1' => $this->translate('mshop/code', 'status:1'),
133
+							'0' => $this->translate('mshop/code', 'status:0'),
134
+							'-1' => $this->translate('mshop/code', 'status:-1'),
135
+							'-2' => $this->translate('mshop/code', 'status:-2'),
136 136
 						]],
137 137
 						'locale.currency.code' => ['op' => '=='],
138 138
 						'locale.currency.label' => [],
@@ -143,58 +143,58 @@  discard block
 block discarded – undo
143 143
 				] );
144 144
 			?>
145 145
 
146
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
147
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
146
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
147
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
148 148
 				<tr>
149
-					<?php if( in_array( 'locale.currency.id', $fields ) ) : ?>
150
-						<td class="locale-currency-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
149
+					<?php if (in_array('locale.currency.id', $fields)) : ?>
150
+						<td class="locale-currency-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
151 151
 					<?php endif; ?>
152
-					<?php if( in_array( 'locale.currency.status', $fields ) ) : ?>
153
-						<td class="locale-currency-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
152
+					<?php if (in_array('locale.currency.status', $fields)) : ?>
153
+						<td class="locale-currency-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
154 154
 					<?php endif; ?>
155
-					<?php if( in_array( 'locale.currency.code', $fields ) ) : ?>
156
-						<td class="locale-currency-code"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getCode() ); ?></a></td>
155
+					<?php if (in_array('locale.currency.code', $fields)) : ?>
156
+						<td class="locale-currency-code"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getCode()); ?></a></td>
157 157
 					<?php endif; ?>
158
-					<?php if( in_array( 'locale.currency.label', $fields ) ) : ?>
159
-						<td class="locale-currency-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
158
+					<?php if (in_array('locale.currency.label', $fields)) : ?>
159
+						<td class="locale-currency-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
160 160
 					<?php endif; ?>
161
-					<?php if( in_array( 'locale.currency.ctime', $fields ) ) : ?>
162
-						<td class="locale-currency-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
161
+					<?php if (in_array('locale.currency.ctime', $fields)) : ?>
162
+						<td class="locale-currency-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
163 163
 					<?php endif; ?>
164
-					<?php if( in_array( 'locale.currency.mtime', $fields ) ) : ?>
165
-						<td class="locale-currency-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
164
+					<?php if (in_array('locale.currency.mtime', $fields)) : ?>
165
+						<td class="locale-currency-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
166 166
 					<?php endif; ?>
167
-					<?php if( in_array( 'locale.currency.editor', $fields ) ) : ?>
168
-						<td class="locale-currency-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
167
+					<?php if (in_array('locale.currency.editor', $fields)) : ?>
168
+						<td class="locale-currency-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
169 169
 					<?php endif; ?>
170 170
 
171 171
 					<td class="actions">
172 172
 						<a class="btn act-copy fa" tabindex="1"
173
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
174
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
175
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
173
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
174
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
175
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
176 176
 						<a class="btn act-delete fa" tabindex="1"
177
-							href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
178
-							title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
179
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
177
+							href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
178
+							title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
179
+							aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
180 180
 					</td>
181 181
 				</tr>
182 182
 			<?php endforeach; ?>
183 183
 		</tbody>
184 184
 	</table>
185 185
 
186
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
187
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
186
+	<?php if ($this->get('items', []) === []) : ?>
187
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
188 188
 	<?php endif; ?>
189 189
 </form>
190 190
 
191 191
 <?= $this->partial(
192
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
193
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
194
-		'page' => $this->session( 'aimeos/admin/jqadm/locale/currency/page', [] )]
192
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
193
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
194
+		'page' => $this->session('aimeos/admin/jqadm/locale/currency/page', [])]
195 195
 	);
196 196
 ?>
197 197
 
198 198
 <?php $this->block()->stop(); ?>
199 199
 
200
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
200
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/language/list-standard.php 1 patch
Spacing   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -8,30 +8,30 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
17
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
18
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
19
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
16
+$newTarget = $this->config('admin/jqadm/url/create/target');
17
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
18
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
19
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
20 20
 
21
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
22
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
23
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
24
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
21
+$getTarget = $this->config('admin/jqadm/url/get/target');
22
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
23
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
24
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
25 25
 
26
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
27
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
28
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
29
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
26
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
27
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
28
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
29
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
30 30
 
31
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
32
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
33
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
34
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
31
+$delTarget = $this->config('admin/jqadm/url/delete/target');
32
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
33
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
34
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
35 35
 
36 36
 
37 37
 /** admin/jqadm/locale/language/fields
@@ -49,37 +49,37 @@  discard block
 block discarded – undo
49 49
  * @category Developer
50 50
  */
51 51
 $default = ['locale.language.status', 'locale.language.code', 'locale.language.label'];
52
-$default = $this->config( 'admin/jqadm/locale/language/fields', $default );
53
-$fields = $this->session( 'aimeos/admin/jqadm/locale/language/fields', $default );
52
+$default = $this->config('admin/jqadm/locale/language/fields', $default);
53
+$fields = $this->session('aimeos/admin/jqadm/locale/language/fields', $default);
54 54
 
55
-$searchParams = $params = $this->get( 'pageParams', [] );
55
+$searchParams = $params = $this->get('pageParams', []);
56 56
 $searchParams['page']['start'] = 0;
57 57
 
58 58
 $columnList = [
59
-	'locale.language.id' => $this->translate( 'admin', 'ID' ),
60
-	'locale.language.status' => $this->translate( 'admin', 'Status' ),
61
-	'locale.language.code' => $this->translate( 'admin', 'Code' ),
62
-	'locale.language.label' => $this->translate( 'admin', 'Label' ),
63
-	'locale.language.ctime' => $this->translate( 'admin', 'Created' ),
64
-	'locale.language.mtime' => $this->translate( 'admin', 'Modified' ),
65
-	'locale.language.editor' => $this->translate( 'admin', 'Editor' ),
59
+	'locale.language.id' => $this->translate('admin', 'ID'),
60
+	'locale.language.status' => $this->translate('admin', 'Status'),
61
+	'locale.language.code' => $this->translate('admin', 'Code'),
62
+	'locale.language.label' => $this->translate('admin', 'Label'),
63
+	'locale.language.ctime' => $this->translate('admin', 'Created'),
64
+	'locale.language.mtime' => $this->translate('admin', 'Modified'),
65
+	'locale.language.editor' => $this->translate('admin', 'Editor'),
66 66
 ];
67 67
 
68 68
 
69 69
 ?>
70
-<?php $this->block()->start( 'jqadm_content' ); ?>
70
+<?php $this->block()->start('jqadm_content'); ?>
71 71
 
72 72
 <nav class="main-navbar">
73 73
 
74 74
 	<span class="navbar-brand">
75
-		<?= $enc->html( $this->translate( 'admin', 'Languages' ) ); ?>
75
+		<?= $enc->html($this->translate('admin', 'Languages')); ?>
76 76
 	</span>
77 77
 
78 78
 	<?= $this->partial(
79
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
80
-			'filter' => $this->session( 'aimeos/admin/jqadm/locale/language/filter', [] ),
81
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
82
-			'filterOperators' => $this->get( 'filterOperators', [] ),
79
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
80
+			'filter' => $this->session('aimeos/admin/jqadm/locale/language/filter', []),
81
+			'filterAttributes' => $this->get('filterAttributes', []),
82
+			'filterOperators' => $this->get('filterOperators', []),
83 83
 			'params' => $params,
84 84
 		]
85 85
 	); ?>
@@ -87,13 +87,13 @@  discard block
 block discarded – undo
87 87
 
88 88
 
89 89
 <?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
91
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
92
-		'page' => $this->session( 'aimeos/admin/jqadm/locale/language/page', [] )]
90
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
91
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
92
+		'page' => $this->session('aimeos/admin/jqadm/locale/language/page', [])]
93 93
 	);
94 94
 ?>
95 95
 
96
-<form class="list list-locale-language" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
96
+<form class="list list-locale-language" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
97 97
 	<?= $this->csrf()->formfield(); ?>
98 98
 
99 99
 	<table class="list-items table table-hover table-striped">
@@ -101,20 +101,20 @@  discard block
 block discarded – undo
101 101
 			<tr>
102 102
 
103 103
 				<?= $this->partial(
104
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
105
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/locale/language/sort' )]
104
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
105
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/locale/language/sort')]
106 106
 					);
107 107
 				?>
108 108
 
109 109
 				<th class="actions">
110 110
 					<a class="btn fa act-add" tabindex="1"
111
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
112
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
113
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
111
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
112
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
113
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
114 114
 					</a>
115 115
 
116 116
 					<?= $this->partial(
117
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
117
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
118 118
 							['fields' => $fields, 'data' => $columnList]
119 119
 						);
120 120
 					?>
@@ -124,15 +124,15 @@  discard block
 block discarded – undo
124 124
 		<tbody>
125 125
 
126 126
 			<?= $this->partial(
127
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
128
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/locale/language/filter', [] ),
127
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
128
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/locale/language/filter', []),
129 129
 					'data' => [
130 130
 						'locale.language.id' => ['op' => '=='],
131 131
 						'locale.language.status' => ['op' => '==', 'type' => 'select', 'val' => [
132
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
133
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
134
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
135
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
132
+							'1' => $this->translate('mshop/code', 'status:1'),
133
+							'0' => $this->translate('mshop/code', 'status:0'),
134
+							'-1' => $this->translate('mshop/code', 'status:-1'),
135
+							'-2' => $this->translate('mshop/code', 'status:-2'),
136 136
 						]],
137 137
 						'locale.language.code' => ['op' => '=='],
138 138
 						'locale.language.label' => [],
@@ -143,58 +143,58 @@  discard block
 block discarded – undo
143 143
 				] );
144 144
 			?>
145 145
 
146
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
147
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
146
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
147
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
148 148
 				<tr>
149
-					<?php if( in_array( 'locale.language.id', $fields ) ) : ?>
150
-						<td class="locale-language-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
149
+					<?php if (in_array('locale.language.id', $fields)) : ?>
150
+						<td class="locale-language-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
151 151
 					<?php endif; ?>
152
-					<?php if( in_array( 'locale.language.status', $fields ) ) : ?>
153
-						<td class="locale-language-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
152
+					<?php if (in_array('locale.language.status', $fields)) : ?>
153
+						<td class="locale-language-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
154 154
 					<?php endif; ?>
155
-					<?php if( in_array( 'locale.language.code', $fields ) ) : ?>
156
-						<td class="locale-language-code"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getCode() ); ?></a></td>
155
+					<?php if (in_array('locale.language.code', $fields)) : ?>
156
+						<td class="locale-language-code"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getCode()); ?></a></td>
157 157
 					<?php endif; ?>
158
-					<?php if( in_array( 'locale.language.label', $fields ) ) : ?>
159
-						<td class="locale-language-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
158
+					<?php if (in_array('locale.language.label', $fields)) : ?>
159
+						<td class="locale-language-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
160 160
 					<?php endif; ?>
161
-					<?php if( in_array( 'locale.language.ctime', $fields ) ) : ?>
162
-						<td class="locale-language-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
161
+					<?php if (in_array('locale.language.ctime', $fields)) : ?>
162
+						<td class="locale-language-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
163 163
 					<?php endif; ?>
164
-					<?php if( in_array( 'locale.language.mtime', $fields ) ) : ?>
165
-						<td class="locale-language-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
164
+					<?php if (in_array('locale.language.mtime', $fields)) : ?>
165
+						<td class="locale-language-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
166 166
 					<?php endif; ?>
167
-					<?php if( in_array( 'locale.language.editor', $fields ) ) : ?>
168
-						<td class="locale-language-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
167
+					<?php if (in_array('locale.language.editor', $fields)) : ?>
168
+						<td class="locale-language-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
169 169
 					<?php endif; ?>
170 170
 
171 171
 					<td class="actions">
172 172
 						<a class="btn act-copy fa" tabindex="1"
173
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
174
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
175
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
173
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
174
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
175
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
176 176
 						<a class="btn act-delete fa" tabindex="1"
177
-							href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
178
-							title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
179
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
177
+							href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
178
+							title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
179
+							aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
180 180
 					</td>
181 181
 				</tr>
182 182
 			<?php endforeach; ?>
183 183
 		</tbody>
184 184
 	</table>
185 185
 
186
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
187
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
186
+	<?php if ($this->get('items', []) === []) : ?>
187
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
188 188
 	<?php endif; ?>
189 189
 </form>
190 190
 
191 191
 <?= $this->partial(
192
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
193
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
194
-		'page' => $this->session( 'aimeos/admin/jqadm/locale/language/page', [] )]
192
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
193
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
194
+		'page' => $this->session('aimeos/admin/jqadm/locale/language/page', [])]
195 195
 	);
196 196
 ?>
197 197
 
198 198
 <?php $this->block()->stop(); ?>
199 199
 
200
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
200
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/language/item-standard.php 1 patch
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -5,37 +5,37 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
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 14
 
15
-$target = $this->config( 'admin/jqadm/url/save/target' );
16
-$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' );
17
-$action = $this->config( 'admin/jqadm/url/save/action', 'save' );
18
-$config = $this->config( 'admin/jqadm/url/save/config', [] );
15
+$target = $this->config('admin/jqadm/url/save/target');
16
+$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm');
17
+$action = $this->config('admin/jqadm/url/save/action', 'save');
18
+$config = $this->config('admin/jqadm/url/save/config', []);
19 19
 
20
-$params = $this->get( 'pageParams', [] );
20
+$params = $this->get('pageParams', []);
21 21
 
22 22
 
23 23
 ?>
24
-<?php $this->block()->start( 'jqadm_content' ); ?>
24
+<?php $this->block()->start('jqadm_content'); ?>
25 25
 
26
-<form class="item item-locale form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>">
27
-	<input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'locale.language.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/locale.language.id' ) ); ?>" />
28
-	<input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" />
26
+<form class="item item-locale form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>">
27
+	<input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'locale.language.id'))); ?>" value="<?= $enc->attr($this->get('itemData/locale.language.id')); ?>" />
28
+	<input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" />
29 29
 	<?= $this->csrf()->formfield(); ?>
30 30
 
31 31
 	<nav class="main-navbar">
32 32
 		<span class="navbar-brand">
33
-			<?= $enc->html( $this->translate( 'admin', 'Language' ) ); ?>:
34
-			<?= $enc->html( $this->get( 'itemData/locale.language.id' ) ); ?> -
35
-			<?= $enc->html( $this->get( 'itemData/locale.language.label', $this->translate( 'admin', 'New' ) ) ); ?>
33
+			<?= $enc->html($this->translate('admin', 'Language')); ?>:
34
+			<?= $enc->html($this->get('itemData/locale.language.id')); ?> -
35
+			<?= $enc->html($this->get('itemData/locale.language.label', $this->translate('admin', 'New'))); ?>
36 36
 		</span>
37 37
 		<div class="item-actions">
38
-			<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?>
38
+			<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?>
39 39
 		</div>
40 40
 	</nav>
41 41
 
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
 
47 47
 				<li class="nav-item basic">
48 48
 					<a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic">
49
-						<?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?>
49
+						<?= $enc->html($this->translate('admin', 'Basic')); ?>
50 50
 					</a>
51 51
 				</li>
52 52
 
53
-				<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?>
54
-					<li class="nav-item <?= $enc->attr( $subpart ); ?>">
55
-						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>">
56
-							<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
53
+				<?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?>
54
+					<li class="nav-item <?= $enc->attr($subpart); ?>">
55
+						<a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>">
56
+							<?= $enc->html($this->translate('admin', $subpart)); ?>
57 57
 						</a>
58 58
 					</li>
59 59
 				<?php endforeach; ?>
@@ -62,16 +62,16 @@  discard block
 block discarded – undo
62 62
 
63 63
 			<div class="item-meta text-muted">
64 64
 				<small>
65
-					<?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>:
66
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/locale.language.mtime' ) ); ?></span>
65
+					<?= $enc->html($this->translate('admin', 'Modified')); ?>:
66
+					<span class="meta-value"><?= $enc->html($this->get('itemData/locale.language.mtime')); ?></span>
67 67
 				</small>
68 68
 				<small>
69
-					<?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>:
70
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/locale.language.ctime' ) ); ?></span>
69
+					<?= $enc->html($this->translate('admin', 'Created')); ?>:
70
+					<span class="meta-value"><?= $enc->html($this->get('itemData/locale.language.ctime')); ?></span>
71 71
 				</small>
72 72
 				<small>
73
-					<?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>:
74
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/locale.language.editor' ) ); ?></span>
73
+					<?= $enc->html($this->translate('admin', 'Editor')); ?>:
74
+					<span class="meta-value"><?= $enc->html($this->get('itemData/locale.language.editor')); ?></span>
75 75
 				</small>
76 76
 			</div>
77 77
 		</div>
@@ -81,62 +81,62 @@  discard block
 block discarded – undo
81 81
 
82 82
 				<div class="col-xl-6 content-block">
83 83
 					<div class="form-group row mandatory">
84
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
84
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
85 85
 						<div class="col-sm-8">
86 86
 							<select class="form-control custom-select item-status" required="required" tabindex="1"
87
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'locale.language.status' ) ) ); ?>" >
87
+								name="<?= $enc->attr($this->formparam(array('item', 'locale.language.status'))); ?>" >
88 88
 								<option value="">
89
-									<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
89
+									<?= $enc->attr($this->translate('admin', 'Please select')); ?>
90 90
 								</option>
91
-								<option value="1" <?= $selected( $this->get( 'itemData/locale.language.status', 1 ), 1 ); ?> >
92
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
91
+								<option value="1" <?= $selected($this->get('itemData/locale.language.status', 1), 1); ?> >
92
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
93 93
 								</option>
94
-								<option value="0" <?= $selected( $this->get( 'itemData/locale.language.status', 1 ), 0 ); ?> >
95
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
94
+								<option value="0" <?= $selected($this->get('itemData/locale.language.status', 1), 0); ?> >
95
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
96 96
 								</option>
97
-								<option value="-1" <?= $selected( $this->get( 'itemData/locale.language.status', 1 ), -1 ); ?> >
98
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
97
+								<option value="-1" <?= $selected($this->get('itemData/locale.language.status', 1), -1); ?> >
98
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
99 99
 								</option>
100
-								<option value="-2" <?= $selected( $this->get( 'itemData/locale.language.status', 1 ), -2 ); ?> >
101
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
100
+								<option value="-2" <?= $selected($this->get('itemData/locale.language.status', 1), -2); ?> >
101
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
102 102
 								</option>
103 103
 							</select>
104 104
 						</div>
105 105
 					</div>
106 106
 					<div class="form-group row mandatory">
107
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label>
107
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Code')); ?></label>
108 108
 						<div class="col-sm-8">
109 109
 							<input class="form-control item-code" required="required" tabindex="1" autocomplete="off"
110
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'locale.language.code' ) ) ); ?>"
111
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'ISO language code (required)' ) ); ?>"
112
-								value="<?= $enc->attr( $this->get( 'itemData/locale.language.code' ) ); ?>" />
110
+								name="<?= $enc->attr($this->formparam(array('item', 'locale.language.code'))); ?>"
111
+								placeholder="<?= $enc->attr($this->translate('admin', 'ISO language code (required)')); ?>"
112
+								value="<?= $enc->attr($this->get('itemData/locale.language.code')); ?>" />
113 113
 						</div>
114 114
 						<div class="col-sm-12 form-text text-muted help-text">
115
-							<?= $enc->html( $this->translate( 'admin', 'Two letter ISO language code' ) ); ?>
115
+							<?= $enc->html($this->translate('admin', 'Two letter ISO language code')); ?>
116 116
 						</div>
117 117
 					</div>
118 118
 					<div class="form-group row mandatory">
119
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label>
119
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label>
120 120
 						<div class="col-sm-8">
121 121
 							<input class="form-control item-label" required="required" tabindex="1" autocomplete="off"
122
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'locale.language.label' ) ) ); ?>"
123
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Label (required)' ) ); ?>"
124
-								value="<?= $enc->attr( $this->get( 'itemData/locale.language.label' ) ); ?>" />
122
+								name="<?= $enc->attr($this->formparam(array('item', 'locale.language.label'))); ?>"
123
+								placeholder="<?= $enc->attr($this->translate('admin', 'Label (required)')); ?>"
124
+								value="<?= $enc->attr($this->get('itemData/locale.language.label')); ?>" />
125 125
 						</div>
126 126
 						<div class="col-sm-12 form-text text-muted help-text">
127
-							<?= $enc->html( $this->translate( 'admin', 'Descritive name of the language' ) ); ?>
127
+							<?= $enc->html($this->translate('admin', 'Descritive name of the language')); ?>
128 128
 						</div>
129 129
 					</div>
130 130
 				</div>
131 131
 
132 132
 			</div>
133 133
 
134
-			<?= $this->get( 'itemBody' ); ?>
134
+			<?= $this->get('itemBody'); ?>
135 135
 
136 136
 		</div>
137 137
 
138 138
 		<div class="item-actions">
139
-			<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?>
139
+			<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?>
140 140
 		</div>
141 141
 	</div>
142 142
 </form>
@@ -144,4 +144,4 @@  discard block
 block discarded – undo
144 144
 <?php $this->block()->stop(); ?>
145 145
 
146 146
 
147
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
147
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/order/item-standard.php 1 patch
Spacing   +306 added lines, -306 removed lines patch added patch discarded remove patch
@@ -5,20 +5,20 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
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
-$sortItems = function( array $items )
12
+$sortItems = function(array $items)
13 13
 {
14 14
 	$result = [];
15 15
 
16
-	if( isset( $items['payment'] ) ) {
17
-		$result['payment'] = $items['payment']; unset( $items['payment'] );
16
+	if (isset($items['payment'])) {
17
+		$result['payment'] = $items['payment']; unset($items['payment']);
18 18
 	}
19 19
 
20
-	if( isset( $items['delivery'] ) ) {
21
-		$result['delivery'] = $items['delivery']; unset( $items['delivery'] );
20
+	if (isset($items['delivery'])) {
21
+		$result['delivery'] = $items['delivery']; unset($items['delivery']);
22 22
 	}
23 23
 
24 24
 	return $result + $items;
@@ -28,32 +28,32 @@  discard block
 block discarded – undo
28 28
 $enc = $this->encoder();
29 29
 
30 30
 
31
-$target = $this->config( 'admin/jqadm/url/save/target' );
32
-$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' );
33
-$action = $this->config( 'admin/jqadm/url/save/action', 'save' );
34
-$config = $this->config( 'admin/jqadm/url/save/config', [] );
31
+$target = $this->config('admin/jqadm/url/save/target');
32
+$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm');
33
+$action = $this->config('admin/jqadm/url/save/action', 'save');
34
+$config = $this->config('admin/jqadm/url/save/config', []);
35 35
 
36
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
37
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
38
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
39
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
36
+$getTarget = $this->config('admin/jqadm/url/get/target');
37
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
38
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
39
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
40 40
 
41
-$listTarget = $this->config( 'admin/jqadm/url/search/target' );
42
-$listCntl = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
43
-$listAction = $this->config( 'admin/jqadm/url/search/action', 'search' );
44
-$listConfig = $this->config( 'admin/jqadm/url/search/config', [] );
41
+$listTarget = $this->config('admin/jqadm/url/search/target');
42
+$listCntl = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
43
+$listAction = $this->config('admin/jqadm/url/search/action', 'search');
44
+$listConfig = $this->config('admin/jqadm/url/search/config', []);
45 45
 
46
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
47
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
48
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
49
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
46
+$newTarget = $this->config('admin/jqadm/url/create/target');
47
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
48
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
49
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
50 50
 
51 51
 
52
-$searchParams = $params = $this->get( 'pageParams', [] );
53
-unset( $searchParams['id'] );
52
+$searchParams = $params = $this->get('pageParams', []);
53
+unset($searchParams['id']);
54 54
 
55 55
 /// Price format with price value (%1$s) and currency (%2$s)
56
-$priceFormat = $this->translate( 'client/code', '%1$s %2$s' );
56
+$priceFormat = $this->translate('client/code', '%1$s %2$s');
57 57
 
58 58
 $serviceAttrCodes = [
59 59
 	/** admin/jqadm/order/service/delivery/attribute/suggest
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	 * @category Developer
69 69
 	 * @see admin/jqadm/order/service/payment/attribute/suggest
70 70
 	 */
71
-	'delivery' => $this->config( 'admin/jqadm/order/service/delivery/attribute/suggest', ['trackingid'] ),
71
+	'delivery' => $this->config('admin/jqadm/order/service/delivery/attribute/suggest', ['trackingid']),
72 72
 
73 73
 	/** admin/jqadm/order/service/payment/attribute/suggest
74 74
 	 * List of suggested configuration keys for payment service attributes in orders
@@ -82,59 +82,59 @@  discard block
 block discarded – undo
82 82
 	 * @category Developer
83 83
 	 * @see admin/jqadm/order/service/delivery/attribute/suggest
84 84
 	 */
85
-	'payment' => $this->config( 'admin/jqadm/order/service/payment/attribute/suggest', [] ),
85
+	'payment' => $this->config('admin/jqadm/order/service/payment/attribute/suggest', []),
86 86
 ];
87 87
 
88 88
 $statusList = [
89
-	'-1' => $this->translate( 'mshop/code', 'stat:-1' ),
90
-	'0' => $this->translate( 'mshop/code', 'stat:0' ),
91
-	'1' => $this->translate( 'mshop/code', 'stat:1' ),
92
-	'2' => $this->translate( 'mshop/code', 'stat:2' ),
93
-	'3' => $this->translate( 'mshop/code', 'stat:3' ),
94
-	'4' => $this->translate( 'mshop/code', 'stat:4' ),
95
-	'5' => $this->translate( 'mshop/code', 'stat:5' ),
96
-	'6' => $this->translate( 'mshop/code', 'stat:6' ),
97
-	'7' => $this->translate( 'mshop/code', 'stat:7' ),
89
+	'-1' => $this->translate('mshop/code', 'stat:-1'),
90
+	'0' => $this->translate('mshop/code', 'stat:0'),
91
+	'1' => $this->translate('mshop/code', 'stat:1'),
92
+	'2' => $this->translate('mshop/code', 'stat:2'),
93
+	'3' => $this->translate('mshop/code', 'stat:3'),
94
+	'4' => $this->translate('mshop/code', 'stat:4'),
95
+	'5' => $this->translate('mshop/code', 'stat:5'),
96
+	'6' => $this->translate('mshop/code', 'stat:6'),
97
+	'7' => $this->translate('mshop/code', 'stat:7'),
98 98
 ];
99 99
 
100 100
 
101 101
 ?>
102
-<?php $this->block()->start( 'jqadm_content' ); ?>
102
+<?php $this->block()->start('jqadm_content'); ?>
103 103
 
104
-<?php if( isset( $this->item ) ) : ?>
105
-	<?php $basket = $this->item; $currency = $this->translate( 'currency', $basket->getPrice()->getCurrencyId() ); ?>
104
+<?php if (isset($this->item)) : ?>
105
+	<?php $basket = $this->item; $currency = $this->translate('currency', $basket->getPrice()->getCurrencyId()); ?>
106 106
 
107
-	<form class="item item-order form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>">
108
-		<input id="item-baseid" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'order.base.id' ) ) ); ?>" value="<?= $enc->attr( $basket->getId() ); ?>" />
109
-		<input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" />
107
+	<form class="item item-order form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>">
108
+		<input id="item-baseid" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'order.base.id'))); ?>" value="<?= $enc->attr($basket->getId()); ?>" />
109
+		<input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" />
110 110
 		<?= $this->csrf()->formfield(); ?>
111 111
 
112 112
 		<nav class="main-navbar">
113 113
 			<span class="navbar-brand">
114
-				<?= $enc->html( $this->translate( 'admin', 'Order' ) ); ?>:
115
-				<?= $enc->html( $basket->getId() ); ?> -
116
-				<?= $enc->html( $this->number( $basket->getPrice()->getValue() ) ); ?>
117
-				<?= $enc->html( $basket->getPrice()->getCurrencyId() ); ?>
118
-				<span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $basket->getLocale()->getSiteId() ) ); ?>)</span>
114
+				<?= $enc->html($this->translate('admin', 'Order')); ?>:
115
+				<?= $enc->html($basket->getId()); ?> -
116
+				<?= $enc->html($this->number($basket->getPrice()->getValue())); ?>
117
+				<?= $enc->html($basket->getPrice()->getCurrencyId()); ?>
118
+				<span class="navbar-secondary">(<?= $enc->html($this->site()->match($basket->getLocale()->getSiteId())); ?>)</span>
119 119
 			</span>
120 120
 			<div class="item-actions">
121 121
 				<a class="btn btn-secondary act-cancel"
122
-					title="<?= $enc->attr( $this->translate( 'admin', 'Cancel and return to list') ); ?>"
123
-					href="<?= $enc->attr( $this->url( $listTarget, $listCntl, $listAction, $searchParams, [], $listConfig ) ); ?>">
124
-					<?= $enc->html( $this->translate( 'admin', 'Cancel' ) ); ?>
122
+					title="<?= $enc->attr($this->translate('admin', 'Cancel and return to list')); ?>"
123
+					href="<?= $enc->attr($this->url($listTarget, $listCntl, $listAction, $searchParams, [], $listConfig)); ?>">
124
+					<?= $enc->html($this->translate('admin', 'Cancel')); ?>
125 125
 				</a>
126 126
 
127 127
 				<div class="btn-group">
128 128
 					<button type="submit" class="btn btn-primary act-save"
129
-						title="<?= $enc->attr( $this->translate( 'admin', 'Save entry (Ctrl+S)') ); ?>">
130
-						<?= $enc->html( $this->translate( 'admin', 'Save' ) ); ?>
129
+						title="<?= $enc->attr($this->translate('admin', 'Save entry (Ctrl+S)')); ?>">
130
+						<?= $enc->html($this->translate('admin', 'Save')); ?>
131 131
 					</button>
132 132
 					<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown"
133 133
 						aria-haspopup="true" aria-expanded="false">
134
-						<span class="sr-only"><?= $enc->html( $this->translate( 'admin', 'Toggle dropdown' ) ); ?></span>
134
+						<span class="sr-only"><?= $enc->html($this->translate('admin', 'Toggle dropdown')); ?></span>
135 135
 					</button>
136 136
 					<ul class="dropdown-menu dropdown-menu-right">
137
-						<li class="dropdown-item"><a class="next-action" href="#" data-next="search"><?= $enc->html( $this->translate( 'admin', 'Save & Close' ) ); ?></a></li>
137
+						<li class="dropdown-item"><a class="next-action" href="#" data-next="search"><?= $enc->html($this->translate('admin', 'Save & Close')); ?></a></li>
138 138
 					</ul>
139 139
 				</div>
140 140
 			</div>
@@ -147,14 +147,14 @@  discard block
 block discarded – undo
147 147
 
148 148
 					<li class="nav-item order">
149 149
 						<a class="nav-link active" href="#order" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="order">
150
-							<?= $enc->html( $this->translate( 'admin', 'Order' ) ); ?>
150
+							<?= $enc->html($this->translate('admin', 'Order')); ?>
151 151
 						</a>
152 152
 					</li>
153 153
 
154
-					<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $type => $subpart ) : ?>
155
-						<li class="nav-item <?= $enc->attr( $subpart ); ?>">
156
-							<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$type+1; ?>">
157
-								<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
154
+					<?php foreach (array_values($this->get('itemSubparts', [])) as $type => $subpart) : ?>
155
+						<li class="nav-item <?= $enc->attr($subpart); ?>">
156
+							<a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$type + 1; ?>">
157
+								<?= $enc->html($this->translate('admin', $subpart)); ?>
158 158
 							</a>
159 159
 						</li>
160 160
 					<?php endforeach; ?>
@@ -163,16 +163,16 @@  discard block
 block discarded – undo
163 163
 
164 164
 				<div class="item-meta text-muted">
165 165
 					<small>
166
-						<?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>:
167
-						<span class="meta-value"><?= $enc->html( $basket->getTimeModified() ); ?></span>
166
+						<?= $enc->html($this->translate('admin', 'Modified')); ?>:
167
+						<span class="meta-value"><?= $enc->html($basket->getTimeModified()); ?></span>
168 168
 					</small>
169 169
 					<small>
170
-						<?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>:
171
-						<span class="meta-value"><?= $enc->html( $basket->getTimeCreated() ); ?></span>
170
+						<?= $enc->html($this->translate('admin', 'Created')); ?>:
171
+						<span class="meta-value"><?= $enc->html($basket->getTimeCreated()); ?></span>
172 172
 					</small>
173 173
 					<small>
174
-						<?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>:
175
-						<span class="meta-value"><?= $enc->html( $basket->getEditor() ); ?></span>
174
+						<?= $enc->html($this->translate('admin', 'Editor')); ?>:
175
+						<span class="meta-value"><?= $enc->html($basket->getEditor()); ?></span>
176 176
 					</small>
177 177
 				</div>
178 178
 			</div>
@@ -182,57 +182,57 @@  discard block
 block discarded – undo
182 182
 				<div id="order" class="item-order tab-pane fade show active" role="tabpanel" aria-labelledby="order">
183 183
 
184 184
 					<div class="row item-base">
185
-						<div class="col-xl-6 content-block <?= $this->site()->readonly( $basket->getSiteId() ); ?>">
185
+						<div class="col-xl-6 content-block <?= $this->site()->readonly($basket->getSiteId()); ?>">
186 186
 							<div class="form-group row mandatory">
187
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Language' ) ); ?></label>
187
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Language')); ?></label>
188 188
 								<div class="col-sm-8">
189 189
 									<select class="form-control custom-select item-languageid" required="required" tabindex="1"
190
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'order.base.languageid' ) ) ); ?>"
191
-										<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> >
190
+										name="<?= $enc->attr($this->formparam(array('item', 'order.base.languageid'))); ?>"
191
+										<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> >
192 192
 										<option value="">
193
-											<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
193
+											<?= $enc->html($this->translate('admin', 'Please select')); ?>
194 194
 										</option>
195 195
 
196
-										<?php foreach( $this->get( 'pageLangItems', [] ) as $langId => $langItem ) : ?>
197
-											<option value="<?= $enc->attr( $langId ); ?>" <?= $selected( $basket->getLocale()->getLanguageId(), $langId ); ?> >
198
-												<?= $enc->html( $this->translate( 'language', $langId ) ); ?>
196
+										<?php foreach ($this->get('pageLangItems', []) as $langId => $langItem) : ?>
197
+											<option value="<?= $enc->attr($langId); ?>" <?= $selected($basket->getLocale()->getLanguageId(), $langId); ?> >
198
+												<?= $enc->html($this->translate('language', $langId)); ?>
199 199
 											</option>
200 200
 										<?php endforeach; ?>
201 201
 									</select>
202 202
 								</div>
203 203
 							</div>
204 204
 							<div class="form-group row">
205
-								<label class="col-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Site' ) ); ?></label>
205
+								<label class="col-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Site')); ?></label>
206 206
 								<div class="col-8">
207
-									<span class="form-control item-sitecode"><?= $enc->html( $basket->getSiteCode() ); ?></span>
207
+									<span class="form-control item-sitecode"><?= $enc->html($basket->getSiteCode()); ?></span>
208 208
 								</div>
209 209
 								<div class="col-12 form-text text-muted help-text">
210
-									<?= $enc->html( $this->translate( 'admin', 'Site the order was placed at' ) ); ?>
210
+									<?= $enc->html($this->translate('admin', 'Site the order was placed at')); ?>
211 211
 								</div>
212 212
 							</div>
213 213
 						</div>
214 214
 
215
-						<div class="col-xl-6 content-block <?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?>">
215
+						<div class="col-xl-6 content-block <?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?>">
216 216
 							<div class="form-group row">
217
-								<label class="col-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Customer' ) ); ?></label>
217
+								<label class="col-4 form-control-label"><?= $enc->html($this->translate('admin', 'Customer')); ?></label>
218 218
 								<div class="col-8">
219 219
 									<select class="combobox item-customer" tabindex="1"
220
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'order.base.customerid' ) ) ); ?>"
221
-										<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
222
-										<option value="<?= $enc->attr( $this->get( 'itemData/order.base.customerid' ) ); ?>" >
223
-											<?= $enc->html( $this->get( 'itemData/customer.code' ) ); ?>
220
+										name="<?= $enc->attr($this->formparam(array('item', 'order.base.customerid'))); ?>"
221
+										<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
222
+										<option value="<?= $enc->attr($this->get('itemData/order.base.customerid')); ?>" >
223
+											<?= $enc->html($this->get('itemData/customer.code')); ?>
224 224
 										</option>
225 225
 									</select>
226 226
 								</div>
227 227
 							</div>
228 228
 							<div class="form-group row">
229
-								<label class="col-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Customer ID' ) ); ?></label>
229
+								<label class="col-4 form-control-label"><?= $enc->html($this->translate('admin', 'Customer ID')); ?></label>
230 230
 								<div class="col-8">
231 231
 									<span class="form-control item-customerid">
232
-										<?php if( $basket->getCustomerId() ) : ?>
232
+										<?php if ($basket->getCustomerId()) : ?>
233 233
 											<a class="act-view" target="_blank"
234
-												href="<?= $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['resource' => 'customer', 'id' => $basket->getCustomerId()], [], $getConfig ) ); ?>">
235
-												<?= $enc->attr( $basket->getCustomerId() ); ?>
234
+												href="<?= $enc->attr($this->url($getTarget, $getCntl, $getAction, ['resource' => 'customer', 'id' => $basket->getCustomerId()], [], $getConfig)); ?>">
235
+												<?= $enc->attr($basket->getCustomerId()); ?>
236 236
 											</a>
237 237
 										<?php endif; ?>
238 238
 									</span>
@@ -245,73 +245,73 @@  discard block
 block discarded – undo
245 245
 					<div class="row item-product">
246 246
 
247 247
 						<div class="col-sm-12 content-block">
248
-							<h2 class="col-sm-12 item-header"><?= $enc->html( $this->translate( 'admin', 'Products' ) ); ?></h2>
248
+							<h2 class="col-sm-12 item-header"><?= $enc->html($this->translate('admin', 'Products')); ?></h2>
249 249
 							<table class="item-product-list table table-striped">
250 250
 								<thead>
251 251
 									<tr>
252
-										<th class="item-column column-subscription"><?= $enc->html( $this->translate( 'admin', 'Renew' ) ); ?></th>
253
-										<th class="item-column column-status"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></th>
254
-										<th class="item-column column-desc"><?= $enc->html( $this->translate( 'admin', 'Name' ) ); ?></th>
255
-										<th class="item-column column-quantity"><?= $enc->html( $this->translate( 'admin', 'Quantity' ) ); ?></th>
256
-										<th class="item-column column-price"><?= $enc->html( $this->translate( 'admin', 'Price' ) ); ?></th>
257
-										<th class="item-column column-sum"><?= $enc->html( $this->translate( 'admin', 'Sum' ) ); ?></th>
252
+										<th class="item-column column-subscription"><?= $enc->html($this->translate('admin', 'Renew')); ?></th>
253
+										<th class="item-column column-status"><?= $enc->html($this->translate('admin', 'Status')); ?></th>
254
+										<th class="item-column column-desc"><?= $enc->html($this->translate('admin', 'Name')); ?></th>
255
+										<th class="item-column column-quantity"><?= $enc->html($this->translate('admin', 'Quantity')); ?></th>
256
+										<th class="item-column column-price"><?= $enc->html($this->translate('admin', 'Price')); ?></th>
257
+										<th class="item-column column-sum"><?= $enc->html($this->translate('admin', 'Sum')); ?></th>
258 258
 									</tr>
259 259
 								</thead>
260 260
 								<tbody>
261 261
 
262
-									<?php foreach( (array) $basket->getProducts() as $pos => $orderProduct ) : ?>
262
+									<?php foreach ((array) $basket->getProducts() as $pos => $orderProduct) : ?>
263 263
 										<tr class="list-item">
264 264
 											<td class="item-column column-subscription">
265 265
 												<?php $newParams = [
266 266
 														'item' => ['subscription.ordbaseid' => $basket->getId(), 'subscription.ordprodid' => $orderProduct->getId()],
267
-														'site' => $this->param( 'site' ),
268
-														'lang' => $this->param( 'lang' ),
267
+														'site' => $this->param('site'),
268
+														'lang' => $this->param('lang'),
269 269
 														'resource' => 'subscription'
270 270
 													];
271 271
 												?>
272
-												<a class="btn btn-subscription fa" href="<?= $this->url( $newTarget, $newCntl, $newAction, $newParams, [], $newConfig ) ?>"></a>
272
+												<a class="btn btn-subscription fa" href="<?= $this->url($newTarget, $newCntl, $newAction, $newParams, [], $newConfig) ?>"></a>
273 273
 											</td>
274 274
 											<td class="item-column column-status">
275 275
 												<select class="form-control custom-select product-status" required="required" tabindex="1"
276
-													name="<?= $enc->attr( $this->formparam( array( 'item', 'product', $pos, 'order.base.product.status' ) ) ); ?>"
277
-													<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> >
276
+													name="<?= $enc->attr($this->formparam(array('item', 'product', $pos, 'order.base.product.status'))); ?>"
277
+													<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> >
278 278
 													<option value="">
279
-														<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
279
+														<?= $enc->html($this->translate('admin', 'Please select')); ?>
280 280
 													</option>
281
-													<?php foreach( $statusList as $code => $label ) : ?>
282
-														<option value="<?= $code ?>" <?= $selected( $this->get( 'itemData/product/' . $pos . '/order.base.product.status' ), $code ); ?> >
283
-															<?= $enc->html( $label ); ?>
281
+													<?php foreach ($statusList as $code => $label) : ?>
282
+														<option value="<?= $code ?>" <?= $selected($this->get('itemData/product/' . $pos . '/order.base.product.status'), $code); ?> >
283
+															<?= $enc->html($label); ?>
284 284
 														</option>
285 285
 													<?php endforeach; ?>
286 286
 												</select>
287 287
 											</td>
288 288
 											<td class="item-column column-desc">
289
-												<span class="product-name"><?= $enc->html( $orderProduct->getName() ); ?></span>
289
+												<span class="product-name"><?= $enc->html($orderProduct->getName()); ?></span>
290 290
 												<span class="product-attr">
291
-													<?php foreach( $orderProduct->getAttributeItems() as $attrItem ) : ?>
292
-														<span class="attr-code"><?= $enc->html( $attrItem->getCode() ); ?></span>
291
+													<?php foreach ($orderProduct->getAttributeItems() as $attrItem) : ?>
292
+														<span class="attr-code"><?= $enc->html($attrItem->getCode()); ?></span>
293 293
 														<span class="attr-value">
294
-															<?php if( $attrItem->getQuantity() > 1 ) : ?>
295
-																<?= $enc->html( $attrItem->getQuantity() ); ?>×
294
+															<?php if ($attrItem->getQuantity() > 1) : ?>
295
+																<?= $enc->html($attrItem->getQuantity()); ?>×
296 296
 															<?php endif; ?>
297
-															<?= $enc->html( $attrItem->getValue() ); ?>
297
+															<?= $enc->html($attrItem->getValue()); ?>
298 298
 														</span>
299 299
 													<?php endforeach; ?>
300 300
 												</span>
301
-												<span class="product-sku"><?= $enc->html( $orderProduct->getProductCode() ); ?></span>
301
+												<span class="product-sku"><?= $enc->html($orderProduct->getProductCode()); ?></span>
302 302
 											</td>
303 303
 											<td class="item-column column-quantity">
304
-												<span class="product-quantity"><?= $enc->html( $orderProduct->getQuantity() ); ?></span>
304
+												<span class="product-quantity"><?= $enc->html($orderProduct->getQuantity()); ?></span>
305 305
 											</td>
306 306
 											<td class="item-column column-price">
307
-												<span class="product-price"><?= $enc->html( sprintf( $priceFormat, $orderProduct->getPrice()->getValue(), $currency ) ); ?></span>
308
-												<span class="product-costs"><?= $enc->html( sprintf( $priceFormat, $orderProduct->getPrice()->getCosts(), $currency ) ); ?></span>
309
-												<span class="product-rebate"><?= $enc->html( sprintf( $priceFormat, $orderProduct->getPrice()->getRebate(), $currency ) ); ?></span>
307
+												<span class="product-price"><?= $enc->html(sprintf($priceFormat, $orderProduct->getPrice()->getValue(), $currency)); ?></span>
308
+												<span class="product-costs"><?= $enc->html(sprintf($priceFormat, $orderProduct->getPrice()->getCosts(), $currency)); ?></span>
309
+												<span class="product-rebate"><?= $enc->html(sprintf($priceFormat, $orderProduct->getPrice()->getRebate(), $currency)); ?></span>
310 310
 											</td>
311 311
 											<td class="item-column column-sum">
312
-												<span class="product-price"><?= $enc->html( sprintf( $priceFormat, $this->number( $orderProduct->getPrice()->getValue() * $orderProduct->getQuantity() ), $currency ) ); ?></span>
313
-												<span class="product-costs"><?= $enc->html( sprintf( $priceFormat, $this->number( $orderProduct->getPrice()->getCosts() * $orderProduct->getQuantity() ), $currency ) ); ?></span>
314
-												<span class="product-rebate"><?= $enc->html( sprintf( $priceFormat, $this->number( $orderProduct->getPrice()->getRebate() * $orderProduct->getQuantity() ), $currency ) ); ?></span>
312
+												<span class="product-price"><?= $enc->html(sprintf($priceFormat, $this->number($orderProduct->getPrice()->getValue() * $orderProduct->getQuantity()), $currency)); ?></span>
313
+												<span class="product-costs"><?= $enc->html(sprintf($priceFormat, $this->number($orderProduct->getPrice()->getCosts() * $orderProduct->getQuantity()), $currency)); ?></span>
314
+												<span class="product-rebate"><?= $enc->html(sprintf($priceFormat, $this->number($orderProduct->getPrice()->getRebate() * $orderProduct->getQuantity()), $currency)); ?></span>
315 315
 											</td>
316 316
 										</tr>
317 317
 									<?php endforeach; ?>
@@ -326,27 +326,27 @@  discard block
 block discarded – undo
326 326
 					<div class="row item-misc">
327 327
 
328 328
 						<div class="col-xl-6 content-block">
329
-							<h2 class="col-sm-12 item-header"><?= $enc->html( $this->translate( 'admin', 'Coupon' ) ); ?></h2>
330
-							<?php if( $basket->getCoupons() !== [] ) : ?>
331
-								<?php foreach( $basket->getCoupons() as $code => $product ) : ?>
329
+							<h2 class="col-sm-12 item-header"><?= $enc->html($this->translate('admin', 'Coupon')); ?></h2>
330
+							<?php if ($basket->getCoupons() !== []) : ?>
331
+								<?php foreach ($basket->getCoupons() as $code => $product) : ?>
332 332
 									<div class="form-group row">
333
-										<label class="col-sm-4"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label>
334
-										<div class="col-sm-8"><span class="item-coupon"><?= $enc->attr( $code ); ?></span></div>
333
+										<label class="col-sm-4"><?= $enc->html($this->translate('admin', 'Code')); ?></label>
334
+										<div class="col-sm-8"><span class="item-coupon"><?= $enc->attr($code); ?></span></div>
335 335
 									</div>
336 336
 								<?php endforeach; ?>
337 337
 							<?php else : ?>
338
-								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) ); ?>
338
+								<?= $enc->html($this->translate('admin', 'No voucher')); ?>
339 339
 							<?php endif; ?>
340 340
 						</div>
341 341
 
342 342
 						<div class="col-xl-6 content-block">
343
-							<h2 class="col-sm-12 item-header"><?= $enc->html( $this->translate( 'admin', 'Comment' ) ); ?></h2>
343
+							<h2 class="col-sm-12 item-header"><?= $enc->html($this->translate('admin', 'Comment')); ?></h2>
344 344
 							<div class="form-group optional">
345 345
 								<textarea class="form-control item-title" type="text" tabindex="1" rows="3"
346
-									name="<?= $enc->attr( $this->formparam( array( 'item', 'order.base.comment' ) ) ); ?>"
347
-									placeholder="<?= $enc->attr( $this->translate( 'admin', 'Customer comment (optional)' ) ); ?>"
348
-									<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?>
349
-								><?= $enc->html( $basket->getComment() ); ?></textarea>
346
+									name="<?= $enc->attr($this->formparam(array('item', 'order.base.comment'))); ?>"
347
+									placeholder="<?= $enc->attr($this->translate('admin', 'Customer comment (optional)')); ?>"
348
+									<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?>
349
+								><?= $enc->html($basket->getComment()); ?></textarea>
350 350
 							</div>
351 351
 						</div>
352 352
 
@@ -354,265 +354,265 @@  discard block
 block discarded – undo
354 354
 
355 355
 
356 356
 					<div class="row">
357
-						<?php foreach( $sortItems( $basket->getAddresses() ) as $type => $addressItem ) : $code = 'address:' . $type; ?>
357
+						<?php foreach ($sortItems($basket->getAddresses()) as $type => $addressItem) : $code = 'address:' . $type; ?>
358 358
 
359 359
 							<div class="col-xl-6 content-block item-address">
360
-								<h2 class="col-sm-12 item-header"><?= $enc->html( $this->translate( 'admin/ext', $code ) ); ?></h2>
360
+								<h2 class="col-sm-12 item-header"><?= $enc->html($this->translate('admin/ext', $code)); ?></h2>
361 361
 
362 362
 								<div class="address-short">
363 363
 									<?php
364 364
 										/// short order address with company (%1$s), first name (%2$s), last name (%3$s), street (%4$s), house number (%5$s),
365 365
 										/// zip code (%6$s), city (%7$s),state (%8$s), countryid (%9$s), e-mail (%10$s), telephone (%11$s), VAT ID  (%12$s)
366
-										$addrFormat = $this->translate( 'admin', "%1\$s\n%2\$s %3\$s\n%5\$s %4\$s\n%7\$s, %6\$s\n%8\$s, %9\$s\n%10\$s\n%11\$s\n%12\$s" );
366
+										$addrFormat = $this->translate('admin', "%1\$s\n%2\$s %3\$s\n%5\$s %4\$s\n%7\$s, %6\$s\n%8\$s, %9\$s\n%10\$s\n%11\$s\n%12\$s");
367 367
 									?>
368
-									<span class="address-text" data-format="<?= $enc->attr( $addrFormat ); ?>"><!-- inserted by order.js --></span>
368
+									<span class="address-text" data-format="<?= $enc->attr($addrFormat); ?>"><!-- inserted by order.js --></span>
369 369
 									<span class="address-edit"></span>
370 370
 								</div>
371 371
 
372 372
 								<fieldset class="address-form">
373 373
 									<div class="form-group row mandatory">
374
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'E-Mail' ) ); ?></label>
374
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'E-Mail')); ?></label>
375 375
 										<div class="col-sm-8">
376 376
 											<input class="form-control item-email" type="email" tabindex="1" data-field="email"
377
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.email' ) ) ); ?>"
378
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'E-Mail address (required)' ) ); ?>"
379
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.email' ) ); ?>"
380
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
377
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.email'))); ?>"
378
+												placeholder="<?= $enc->attr($this->translate('admin', 'E-Mail address (required)')); ?>"
379
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.email')); ?>"
380
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
381 381
 										</div>
382 382
 										<div class="col-sm-12 form-text text-muted help-text">
383
-											<?= $enc->html( $this->translate( 'admin', 'Customer e-mail address' ) ); ?>
383
+											<?= $enc->html($this->translate('admin', 'Customer e-mail address')); ?>
384 384
 										</div>
385 385
 									</div>
386 386
 									<div class="form-group row optional">
387
-										<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Language' ) ); ?></label>
387
+										<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Language')); ?></label>
388 388
 										<div class="col-sm-8">
389 389
 											<select class="form-control custom-select item-languageid" tabindex="1" data-field="languageid"
390
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.languageid' ) ) ); ?>"
391
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> >
392
-												<option value=""><?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?></option>
390
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.languageid'))); ?>"
391
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> >
392
+												<option value=""><?= $enc->html($this->translate('admin', 'Please select')); ?></option>
393 393
 
394
-												<?php foreach( $this->get( 'pageLangItems', [] ) as $langId => $langItem ) : ?>
395
-													<option value="<?= $enc->attr( $langId ); ?>" <?= $selected( $this->get( 'itemData/address/' . $type . '/order.base.address.languageid' ), $langId ); ?> >
396
-														<?= $enc->html( $this->translate( 'language', $langId ) ); ?>
394
+												<?php foreach ($this->get('pageLangItems', []) as $langId => $langItem) : ?>
395
+													<option value="<?= $enc->attr($langId); ?>" <?= $selected($this->get('itemData/address/' . $type . '/order.base.address.languageid'), $langId); ?> >
396
+														<?= $enc->html($this->translate('language', $langId)); ?>
397 397
 													</option>
398 398
 												<?php endforeach; ?>
399 399
 											</select>
400 400
 										</div>
401 401
 									</div>
402 402
 									<div class="form-group row optional">
403
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Salutation' ) ); ?></label>
403
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Salutation')); ?></label>
404 404
 										<div class="col-sm-8">
405 405
 											<select class="form-control custom-select item-salutation" tabindex="1" data-field="salutation"
406
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.salutation' ) ) ); ?>"
407
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> >
408
-												<option value="" <?= $selected( $this->get( 'itemData/address/' . $type . '/order.base.address.salutation' ), '' ); ?> >
409
-													<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
406
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.salutation'))); ?>"
407
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> >
408
+												<option value="" <?= $selected($this->get('itemData/address/' . $type . '/order.base.address.salutation'), ''); ?> >
409
+													<?= $enc->html($this->translate('admin', 'Please select')); ?>
410 410
 												</option>
411
-												<option value="company" <?= $selected( $this->get( 'itemData/address/' . $type . '/order.base.address.salutation' ), 'company' ); ?> >
412
-													<?= $enc->html( $this->translate( 'client/code', 'company' ) ); ?>
411
+												<option value="company" <?= $selected($this->get('itemData/address/' . $type . '/order.base.address.salutation'), 'company'); ?> >
412
+													<?= $enc->html($this->translate('client/code', 'company')); ?>
413 413
 												</option>
414
-												<option value="mr" <?= $selected( $this->get( 'itemData/address/' . $type . '/order.base.address.salutation' ), 'mr' ); ?> >
415
-													<?= $enc->html( $this->translate( 'client/code', 'mr' ) ); ?>
414
+												<option value="mr" <?= $selected($this->get('itemData/address/' . $type . '/order.base.address.salutation'), 'mr'); ?> >
415
+													<?= $enc->html($this->translate('client/code', 'mr')); ?>
416 416
 												</option>
417
-												<option value="mrs" <?= $selected( $this->get( 'itemData/address/' . $type . '/order.base.address.salutation' ), 'mrs' ); ?> >
418
-													<?= $enc->html( $this->translate( 'client/code', 'mrs' ) ); ?>
417
+												<option value="mrs" <?= $selected($this->get('itemData/address/' . $type . '/order.base.address.salutation'), 'mrs'); ?> >
418
+													<?= $enc->html($this->translate('client/code', 'mrs')); ?>
419 419
 												</option>
420
-												<option value="miss" <?= $selected( $this->get( 'itemData/address/' . $type . '/order.base.address.salutation' ), 'miss' ); ?> >
421
-													<?= $enc->html( $this->translate( 'client/code', 'miss' ) ); ?>
420
+												<option value="miss" <?= $selected($this->get('itemData/address/' . $type . '/order.base.address.salutation'), 'miss'); ?> >
421
+													<?= $enc->html($this->translate('client/code', 'miss')); ?>
422 422
 												</option>
423 423
 											</select>
424 424
 										</div>
425 425
 										<div class="col-sm-12 form-text text-muted help-text">
426
-											<?= $enc->html( $this->translate( 'admin', 'How the customer is addressed in e-mails' ) ); ?>
426
+											<?= $enc->html($this->translate('admin', 'How the customer is addressed in e-mails')); ?>
427 427
 										</div>
428 428
 									</div>
429 429
 									<div class="form-group row optional">
430
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Title' ) ); ?></label>
430
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Title')); ?></label>
431 431
 										<div class="col-sm-8">
432 432
 											<input class="form-control item-title" type="text" tabindex="1" data-field="title"
433
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.title' ) ) ); ?>"
434
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Honorary title (optional)' ) ); ?>"
435
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.title' ) ); ?>"
436
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
433
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.title'))); ?>"
434
+												placeholder="<?= $enc->attr($this->translate('admin', 'Honorary title (optional)')); ?>"
435
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.title')); ?>"
436
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
437 437
 										</div>
438 438
 										<div class="col-sm-12 form-text text-muted help-text">
439
-											<?= $enc->html( $this->translate( 'admin', 'Honorary titles like Dr., Ph.D, etc.' ) ); ?>
439
+											<?= $enc->html($this->translate('admin', 'Honorary titles like Dr., Ph.D, etc.')); ?>
440 440
 										</div>
441 441
 									</div>
442 442
 									<div class="form-group row mandatory">
443
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Last name' ) ); ?></label>
443
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Last name')); ?></label>
444 444
 										<div class="col-sm-8">
445 445
 											<input class="form-control item-lastname" type="text" required="required" tabindex="1" data-field="lastname"
446
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.lastname' ) ) ); ?>"
447
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Last name (required)' ) ); ?>"
448
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.lastname' ) ); ?>"
449
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
446
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.lastname'))); ?>"
447
+												placeholder="<?= $enc->attr($this->translate('admin', 'Last name (required)')); ?>"
448
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.lastname')); ?>"
449
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
450 450
 										</div>
451 451
 										<div class="col-sm-12 form-text text-muted help-text">
452
-											<?= $enc->html( $this->translate( 'admin', 'Last name of the person or full name in cultures where no first names are used' ) ); ?>
452
+											<?= $enc->html($this->translate('admin', 'Last name of the person or full name in cultures where no first names are used')); ?>
453 453
 										</div>
454 454
 									</div>
455 455
 									<div class="form-group row optional">
456
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'First name' ) ); ?></label>
456
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'First name')); ?></label>
457 457
 										<div class="col-sm-8">
458 458
 											<input class="form-control item-firstname" type="text" tabindex="1" data-field="firstname"
459
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.firstname' ) ) ); ?>"
460
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'First name (optional)' ) ); ?>"
461
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.firstname' ) ); ?>"
462
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
459
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.firstname'))); ?>"
460
+												placeholder="<?= $enc->attr($this->translate('admin', 'First name (optional)')); ?>"
461
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.firstname')); ?>"
462
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
463 463
 										</div>
464 464
 										<div class="col-sm-12 form-text text-muted help-text">
465
-											<?= $enc->html( $this->translate( 'admin', 'First name of the person if used in cultures where they are used' ) ); ?>
465
+											<?= $enc->html($this->translate('admin', 'First name of the person if used in cultures where they are used')); ?>
466 466
 										</div>
467 467
 									</div>
468 468
 									<div class="form-group row optional">
469
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Street' ) ); ?></label>
469
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Street')); ?></label>
470 470
 										<div class="col-sm-8">
471 471
 											<input class="form-control item-address1" type="text" tabindex="1" data-field="address1"
472
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.address1' ) ) ); ?>"
473
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Street name (optional)' ) ); ?>"
474
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.address1' ) ); ?>"
475
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
472
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.address1'))); ?>"
473
+												placeholder="<?= $enc->attr($this->translate('admin', 'Street name (optional)')); ?>"
474
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.address1')); ?>"
475
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
476 476
 										</div>
477 477
 										<div class="col-sm-12 form-text text-muted help-text">
478
-											<?= $enc->html( $this->translate( 'admin', 'First name of the person if used in cultures where they are used' ) ); ?>
478
+											<?= $enc->html($this->translate('admin', 'First name of the person if used in cultures where they are used')); ?>
479 479
 										</div>
480 480
 									</div>
481 481
 									<div class="form-group row optional">
482
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'House number' ) ); ?></label>
482
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'House number')); ?></label>
483 483
 										<div class="col-sm-8">
484 484
 											<input class="form-control item-address2" type="text" tabindex="1" data-field="address2"
485
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.address2' ) ) ); ?>"
486
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'House number (optional)' ) ); ?>"
487
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.address2' ) ); ?>"
488
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
485
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.address2'))); ?>"
486
+												placeholder="<?= $enc->attr($this->translate('admin', 'House number (optional)')); ?>"
487
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.address2')); ?>"
488
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
489 489
 										</div>
490 490
 										<div class="col-sm-12 form-text text-muted help-text">
491
-											<?= $enc->html( $this->translate( 'admin', 'Address identifier of the customer\'s house for delivery' ) ); ?>
491
+											<?= $enc->html($this->translate('admin', 'Address identifier of the customer\'s house for delivery')); ?>
492 492
 										</div>
493 493
 									</div>
494 494
 									<div class="form-group row optional">
495
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Floor / Appartment' ) ); ?></label>
495
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Floor / Appartment')); ?></label>
496 496
 										<div class="col-sm-8">
497 497
 											<input class="form-control item-address3" type="text" tabindex="1" data-field="address3"
498
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.address3' ) ) ); ?>"
499
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Floor and/or apartment (optional)' ) ); ?>"
500
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.address3' ) ); ?>"
501
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
498
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.address3'))); ?>"
499
+												placeholder="<?= $enc->attr($this->translate('admin', 'Floor and/or apartment (optional)')); ?>"
500
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.address3')); ?>"
501
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
502 502
 										</div>
503 503
 										<div class="col-sm-12 form-text text-muted help-text">
504
-											<?= $enc->html( $this->translate( 'admin', 'Additional information where the customer\'s apartment can be found' ) ); ?>
504
+											<?= $enc->html($this->translate('admin', 'Additional information where the customer\'s apartment can be found')); ?>
505 505
 										</div>
506 506
 									</div>
507 507
 									<div class="form-group row optional">
508
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Zip code' ) ); ?></label>
508
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Zip code')); ?></label>
509 509
 										<div class="col-sm-8">
510 510
 											<input class="form-control item-postal" type="text" tabindex="1" data-field="postal"
511
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.postal' ) ) ); ?>"
512
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Zip code (optional)' ) ); ?>"
513
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.postal' ) ); ?>"
514
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
511
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.postal'))); ?>"
512
+												placeholder="<?= $enc->attr($this->translate('admin', 'Zip code (optional)')); ?>"
513
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.postal')); ?>"
514
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
515 515
 										</div>
516 516
 										<div class="col-sm-12 form-text text-muted help-text">
517
-											<?= $enc->html( $this->translate( 'admin', 'Postal code for delivery if used in the area the customer is living' ) ); ?>
517
+											<?= $enc->html($this->translate('admin', 'Postal code for delivery if used in the area the customer is living')); ?>
518 518
 										</div>
519 519
 									</div>
520 520
 									<div class="form-group row mandatory">
521
-										<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'City' ) ); ?></label>
521
+										<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'City')); ?></label>
522 522
 										<div class="col-sm-8">
523 523
 											<input class="form-control item-city" type="text" required="required" tabindex="1" data-field="city"
524
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.city' ) ) ); ?>"
525
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'City or town name (required)' ) ); ?>"
526
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.city' ) ); ?>"
527
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
524
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.city'))); ?>"
525
+												placeholder="<?= $enc->attr($this->translate('admin', 'City or town name (required)')); ?>"
526
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.city')); ?>"
527
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
528 528
 										</div>
529 529
 									</div>
530 530
 									<div class="form-group row optional">
531
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'State' ) ); ?></label>
531
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'State')); ?></label>
532 532
 										<div class="col-sm-8">
533 533
 											<input class="form-control item-state" type="text" tabindex="1" data-field="state"
534
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.state' ) ) ); ?>"
535
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Country state code (optional)' ) ); ?>"
536
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.state' ) ); ?>"
537
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
534
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.state'))); ?>"
535
+												placeholder="<?= $enc->attr($this->translate('admin', 'Country state code (optional)')); ?>"
536
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.state')); ?>"
537
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
538 538
 										</div>
539 539
 										<div class="col-sm-12 form-text text-muted help-text">
540
-											<?= $enc->html( $this->translate( 'admin', 'Short state code (e.g. NY) if used in the country the customer is living' ) ); ?>
540
+											<?= $enc->html($this->translate('admin', 'Short state code (e.g. NY) if used in the country the customer is living')); ?>
541 541
 										</div>
542 542
 									</div>
543 543
 									<div class="form-group row optional">
544
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Country' ) ); ?></label>
544
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Country')); ?></label>
545 545
 										<div class="col-sm-8">
546 546
 											<input class="form-control item-countryid" type="text" tabindex="1" maxlength="2" pattern="^[a-zA-Z]{2}$" data-field="countryid"
547
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.countryid' ) ) ); ?>"
548
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Country code (required)' ) ); ?>"
549
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.countryid' ) ); ?>"
550
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
547
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.countryid'))); ?>"
548
+												placeholder="<?= $enc->attr($this->translate('admin', 'Country code (required)')); ?>"
549
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.countryid')); ?>"
550
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
551 551
 										</div>
552 552
 										<div class="col-sm-12 form-text text-muted help-text">
553
-											<?= $enc->html( $this->translate( 'admin', 'Two letter ISO country code' ) ); ?>
553
+											<?= $enc->html($this->translate('admin', 'Two letter ISO country code')); ?>
554 554
 										</div>
555 555
 									</div>
556 556
 									<div class="form-group row optional">
557
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Telephone' ) ); ?></label>
557
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Telephone')); ?></label>
558 558
 										<div class="col-sm-8">
559 559
 											<input class="form-control item-telephone" type="tel" tabindex="1" data-field="telephone"
560
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.telephone' ) ) ); ?>"
561
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Telephone number (optional)' ) ); ?>"
562
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.telephone' ) ); ?>"
563
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
560
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.telephone'))); ?>"
561
+												placeholder="<?= $enc->attr($this->translate('admin', 'Telephone number (optional)')); ?>"
562
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.telephone')); ?>"
563
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
564 564
 										</div>
565 565
 										<div class="col-sm-12 form-text text-muted help-text">
566
-											<?= $enc->html( $this->translate( 'admin', '(International) telephone number without separation characters, can start with a "+"' ) ); ?>
566
+											<?= $enc->html($this->translate('admin', '(International) telephone number without separation characters, can start with a "+"')); ?>
567 567
 										</div>
568 568
 									</div>
569 569
 									<div class="form-group row optional">
570
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Facsimile' ) ); ?></label>
570
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Facsimile')); ?></label>
571 571
 										<div class="col-sm-8">
572 572
 											<input class="form-control item-telefax" type="text" tabindex="1" data-field="telefax"
573
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.telefax' ) ) ); ?>"
574
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Facsimile number (optional)' ) ); ?>"
575
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.telefax' ) ); ?>"
576
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
573
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.telefax'))); ?>"
574
+												placeholder="<?= $enc->attr($this->translate('admin', 'Facsimile number (optional)')); ?>"
575
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.telefax')); ?>"
576
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
577 577
 										</div>
578 578
 										<div class="col-sm-12 form-text text-muted help-text">
579
-											<?= $enc->html( $this->translate( 'admin', '(International) facsimilie number without separation characters, can start with a "+"' ) ); ?>
579
+											<?= $enc->html($this->translate('admin', '(International) facsimilie number without separation characters, can start with a "+"')); ?>
580 580
 										</div>
581 581
 									</div>
582 582
 									<div class="form-group row optional">
583
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Web site' ) ); ?></label>
583
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Web site')); ?></label>
584 584
 										<div class="col-sm-8">
585 585
 											<input class="form-control item-website" type="url" tabindex="1" data-field="website"
586
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.website' ) ) ); ?>"
587
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Web site URL (optional)' ) ); ?>"
588
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.website') ); ?>"
589
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
586
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.website'))); ?>"
587
+												placeholder="<?= $enc->attr($this->translate('admin', 'Web site URL (optional)')); ?>"
588
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.website')); ?>"
589
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
590 590
 										</div>
591 591
 										<div class="col-sm-12 form-text text-muted help-text">
592
-											<?= $enc->html( $this->translate( 'admin', 'URL of the customer web site' ) ); ?>
592
+											<?= $enc->html($this->translate('admin', 'URL of the customer web site')); ?>
593 593
 										</div>
594 594
 									</div>
595 595
 									<div class="form-group row optional">
596
-										<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Company' ) ); ?></label>
596
+										<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Company')); ?></label>
597 597
 										<div class="col-sm-8">
598 598
 											<input class="form-control item-company" type="text" tabindex="1" data-field="company"
599
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.company' ) ) ); ?>"
600
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Company name (optional)' ) ); ?>"
601
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.company' ) ); ?>"
602
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
599
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.company'))); ?>"
600
+												placeholder="<?= $enc->attr($this->translate('admin', 'Company name (optional)')); ?>"
601
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.company')); ?>"
602
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
603 603
 										</div>
604 604
 									</div>
605 605
 									<div class="form-group row optional">
606
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'VAT ID' ) ); ?></label>
606
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'VAT ID')); ?></label>
607 607
 										<div class="col-sm-8">
608 608
 											<input class="form-control item-vatid" type="text" tabindex="1" data-field="vatid"
609
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.vatid' ) ) ); ?>"
610
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Value added tax identifier (optional)' ) ); ?>"
611
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.vatid' ) ); ?>"
612
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
609
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.vatid'))); ?>"
610
+												placeholder="<?= $enc->attr($this->translate('admin', 'Value added tax identifier (optional)')); ?>"
611
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.vatid')); ?>"
612
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
613 613
 										</div>
614 614
 										<div class="col-sm-12 form-text text-muted help-text">
615
-											<?= $enc->html( $this->translate( 'admin', 'Official VAT ID to determine if the tax needs to be billed in invoices' ) ); ?>
615
+											<?= $enc->html($this->translate('admin', 'Official VAT ID to determine if the tax needs to be billed in invoices')); ?>
616 616
 										</div>
617 617
 									</div>
618 618
 								</div>
@@ -622,41 +622,41 @@  discard block
 block discarded – undo
622 622
 					</div>
623 623
 
624 624
 					<div class="row">
625
-						<?php foreach( $sortItems( $basket->getServices() ) as $type => $services ) : $code = 'service:' . $type; ?>
626
-							<?php foreach( $services as $serviceItem ) : $serviceId = $serviceItem->getServiceId(); ?>
625
+						<?php foreach ($sortItems($basket->getServices()) as $type => $services) : $code = 'service:' . $type; ?>
626
+							<?php foreach ($services as $serviceItem) : $serviceId = $serviceItem->getServiceId(); ?>
627 627
 
628 628
 								<div class="col-xl-6 content-block item-service">
629
-									<h2 class="col-12 item-header"><?= $enc->html( $this->translate( 'admin/ext', $code ) ); ?></h2>
629
+									<h2 class="col-12 item-header"><?= $enc->html($this->translate('admin/ext', $code)); ?></h2>
630 630
 									<div class="row">
631 631
 										<div class="col-6 content-block">
632
-											<span class="service-name"><?= $enc->html( $serviceItem->getName() ); ?></span>
633
-											<span class="service-code"><?= $enc->html( $serviceItem->getCode() ); ?></span>
632
+											<span class="service-name"><?= $enc->html($serviceItem->getName()); ?></span>
633
+											<span class="service-code"><?= $enc->html($serviceItem->getCode()); ?></span>
634 634
 										</div>
635 635
 										<div class="col-6 content-block">
636
-											<span class="service-price"><?= $enc->html( sprintf( $priceFormat, $this->number( $serviceItem->getPrice()->getValue() + $serviceItem->getPrice()->getCosts() ), $currency ) ); ?></span>
637
-											<?php if( $serviceItem->getPrice()->getRebate() > 0 ) : ?>
638
-												<span class="service-rebate"><?= $enc->html( sprintf( $priceFormat, $this->number( $serviceItem->getPrice()->getRebate() ), $currency ) ); ?></span>
636
+											<span class="service-price"><?= $enc->html(sprintf($priceFormat, $this->number($serviceItem->getPrice()->getValue() + $serviceItem->getPrice()->getCosts()), $currency)); ?></span>
637
+											<?php if ($serviceItem->getPrice()->getRebate() > 0) : ?>
638
+												<span class="service-rebate"><?= $enc->html(sprintf($priceFormat, $this->number($serviceItem->getPrice()->getRebate()), $currency)); ?></span>
639 639
 											<?php endif; ?>
640 640
 										</div>
641 641
 									</div>
642 642
 
643
-									<table class="service-attr table table-striped" data-id="<?= $enc->attr($serviceId ) ?>"
644
-										data-codes="<?= $enc->attr( isset( $serviceAttrCodes[$type] ) ? implode( ',', $serviceAttrCodes[$type] ) : '' ); ?>">
643
+									<table class="service-attr table table-striped" data-id="<?= $enc->attr($serviceId) ?>"
644
+										data-codes="<?= $enc->attr(isset($serviceAttrCodes[$type]) ? implode(',', $serviceAttrCodes[$type]) : ''); ?>">
645 645
 										<thead>
646 646
 											<tr>
647 647
 												<th>
648
-													<span class="help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></span>
648
+													<span class="help"><?= $enc->html($this->translate('admin', 'Code')); ?></span>
649 649
 													<div class="form-text text-muted help-text">
650
-														<?= $enc->html( $this->translate( 'admin', 'Service attribute code' ) ); ?>
650
+														<?= $enc->html($this->translate('admin', 'Service attribute code')); ?>
651 651
 													</div>
652 652
 												</th>
653 653
 												<th>
654
-													<?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?>
654
+													<?= $enc->html($this->translate('admin', 'Value')); ?>
655 655
 												</th>
656 656
 												<th class="actions">
657
-													<?php if( !$this->site()->readonly( $basket->getLocale()->getSiteId() ) ) : ?>
657
+													<?php if (!$this->site()->readonly($basket->getLocale()->getSiteId())) : ?>
658 658
 														<div class="btn act-add fa" tabindex="1"
659
-															title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>">
659
+															title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>">
660 660
 														</div>
661 661
 													<?php endif; ?>
662 662
 												</th>
@@ -664,38 +664,38 @@  discard block
 block discarded – undo
664 664
 										</thead>
665 665
 										<tbody>
666 666
 
667
-											<?php foreach( (array) $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.id', [] ) as $idx => $attrId ) : ?>
667
+											<?php foreach ((array) $this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.id', []) as $idx => $attrId) : ?>
668 668
 												<tr class="service-attr-item">
669 669
 													<td>
670
-														<input type="hidden" class="service-attr-id" value="<?= $enc->attr( $attrId ); ?>"
671
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.id', '' ) ) ); ?>" />
670
+														<input type="hidden" class="service-attr-id" value="<?= $enc->attr($attrId); ?>"
671
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.id', ''))); ?>" />
672 672
 														<input type="hidden" class="service-attr-attributeid"
673
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.attrid', '' ) ) ); ?>"
674
-															value="<?= $enc->attr( $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.attrid/' . $idx ) ); ?>" />
673
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.attrid', ''))); ?>"
674
+															value="<?= $enc->attr($this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.attrid/' . $idx)); ?>" />
675 675
 														<input type="hidden" class="service-attr-type"
676
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.type', '' ) ) ); ?>"
677
-															value="<?= $enc->attr( $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.type/' . $idx ) ); ?>" />
676
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.type', ''))); ?>"
677
+															value="<?= $enc->attr($this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.type/' . $idx)); ?>" />
678 678
 														<input type="hidden" class="service-attr-name"
679
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.name', '' ) ) ); ?>"
680
-															value="<?= $enc->attr( $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.name/' . $idx ) ); ?>" />
679
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.name', ''))); ?>"
680
+															value="<?= $enc->attr($this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.name/' . $idx)); ?>" />
681 681
 														<input type="hidden" class="service-attr-quantity"
682
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.quantity', '' ) ) ); ?>"
683
-															value="<?= $enc->attr( $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.quantity/' . $idx ) ); ?>" />
682
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.quantity', ''))); ?>"
683
+															value="<?= $enc->attr($this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.quantity/' . $idx)); ?>" />
684 684
 														<input type="text" class="service-attr-code form-control" tabindex="1"
685
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.code', '' ) ) ); ?>"
686
-															value="<?= $enc->attr( $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.code/' . $idx ) ); ?>"
687
-															<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
685
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.code', ''))); ?>"
686
+															value="<?= $enc->attr($this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.code/' . $idx)); ?>"
687
+															<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
688 688
 													</td>
689 689
 													<td>
690 690
 														<input type="text" class="service-attr-value form-control" tabindex="1"
691
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.value', '' ) ) ); ?>"
692
-															value="<?= $enc->attr( $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.value/' . $idx ) ); ?>"
693
-															<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
691
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.value', ''))); ?>"
692
+															value="<?= $enc->attr($this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.value/' . $idx)); ?>"
693
+															<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
694 694
 													</td>
695 695
 													<td class="actions">
696
-														<?php if( !$this->site()->readonly( $basket->getLocale()->getSiteId() ) ) : ?>
696
+														<?php if (!$this->site()->readonly($basket->getLocale()->getSiteId())) : ?>
697 697
 															<div class="btn act-delete fa" tabindex="1"
698
-																title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
698
+																title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
699 699
 															</div>
700 700
 														<?php endif; ?>
701 701
 													</td>
@@ -705,26 +705,26 @@  discard block
 block discarded – undo
705 705
 											<tr class="prototype">
706 706
 												<td>
707 707
 													<input type="hidden" class="service-attr-id" value="" disabled="disabled"
708
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.id', '' ) ) ); ?>" />
708
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.id', ''))); ?>" />
709 709
 													<input type="hidden" class="service-attr-attributeid" value="" disabled="disabled"
710
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.attrid', '' ) ) ); ?>" />
711
-													<input type="hidden" class="service-attr-type" value="<?= $enc->attr( $type ); ?>" disabled="disabled"
712
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.type', '' ) ) ); ?>" />
710
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.attrid', ''))); ?>" />
711
+													<input type="hidden" class="service-attr-type" value="<?= $enc->attr($type); ?>" disabled="disabled"
712
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.type', ''))); ?>" />
713 713
 													<input type="hidden" class="service-attr-name" value="" disabled="disabled"
714
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.name', '' ) ) ); ?>" />
714
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.name', ''))); ?>" />
715 715
 													<input type="hidden" class="service-attr-quantity" value="1" disabled="disabled"
716
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.quantity', '' ) ) ); ?>" />
716
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.quantity', ''))); ?>" />
717 717
 													<input type="text" class="service-attr-code form-control" value="" disabled="disabled" tabindex="1"
718
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.code', '' ) ) ); ?>" />
718
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.code', ''))); ?>" />
719 719
 												</td>
720 720
 												<td>
721 721
 													<input type="text" class="service-attr-value form-control" value="" disabled="disabled" tabindex="1"
722
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.value', '' ) ) ); ?>" />
722
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.value', ''))); ?>" />
723 723
 												</td>
724 724
 												<td class="actions">
725
-													<?php if( !$this->site()->readonly( $basket->getLocale()->getSiteId() ) ) : ?>
725
+													<?php if (!$this->site()->readonly($basket->getLocale()->getSiteId())) : ?>
726 726
 														<div class="btn act-delete fa" tabindex="1"
727
-															title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
727
+															title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
728 728
 														</div>
729 729
 													<?php endif; ?>
730 730
 												</td>
@@ -741,40 +741,40 @@  discard block
 block discarded – undo
741 741
 						<div class="col-xl-6 content-block"></div>
742 742
 
743 743
 						<div class="col-xl-6 content-block item-total">
744
-							<h2 class="item-header"><?= $enc->html( $this->translate( 'admin', 'Order totals' ) ); ?></h2>
744
+							<h2 class="item-header"><?= $enc->html($this->translate('admin', 'Order totals')); ?></h2>
745 745
 							<div class="form-group row total-subtotal">
746
-								<div class="col-6 name"><?= $enc->html( $this->translate( 'admin', 'Sub-total' ) ); ?></div>
747
-								<div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getValue() ), $currency ) ); ?></div>
746
+								<div class="col-6 name"><?= $enc->html($this->translate('admin', 'Sub-total')); ?></div>
747
+								<div class="col-6 value"><?= $enc->html(sprintf($priceFormat, $this->number($basket->getPrice()->getValue()), $currency)); ?></div>
748 748
 							</div>
749 749
 							<div class="form-group row total-shipping">
750
-								<div class="col-6 name"><?= $enc->html( $this->translate( 'admin', 'Shipping' ) ); ?></div>
751
-								<div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getCosts() ), $currency ) ); ?></div>
750
+								<div class="col-6 name"><?= $enc->html($this->translate('admin', 'Shipping')); ?></div>
751
+								<div class="col-6 value"><?= $enc->html(sprintf($priceFormat, $this->number($basket->getPrice()->getCosts()), $currency)); ?></div>
752 752
 							</div>
753 753
 							<div class="form-group row total-value">
754
-								<div class="col-6 name"><?= $enc->html( $this->translate( 'admin', 'Total' ) ); ?></div>
755
-								<div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getValue() + $basket->getPrice()->getCosts() ), $currency ) ); ?></div>
754
+								<div class="col-6 name"><?= $enc->html($this->translate('admin', 'Total')); ?></div>
755
+								<div class="col-6 value"><?= $enc->html(sprintf($priceFormat, $this->number($basket->getPrice()->getValue() + $basket->getPrice()->getCosts()), $currency)); ?></div>
756 756
 							</div>
757 757
 							<div class="form-group row total-tax">
758 758
 								<div class="col-6 name">
759
-									<?php if( $basket->getPrice()->getTaxFlag() ) : ?>
760
-										<?= $enc->html( $this->translate( 'admin', 'Incl. tax' ) ); ?>
759
+									<?php if ($basket->getPrice()->getTaxFlag()) : ?>
760
+										<?= $enc->html($this->translate('admin', 'Incl. tax')); ?>
761 761
 									<?php else : ?>
762
-										<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) ); ?>
762
+										<?= $enc->html($this->translate('admin', 'Excl. tax')); ?>
763 763
 									<?php endif; ?>
764 764
 								</div>
765
-								<div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getTaxValue() ), $currency ) ); ?></div>
765
+								<div class="col-6 value"><?= $enc->html(sprintf($priceFormat, $this->number($basket->getPrice()->getTaxValue()), $currency)); ?></div>
766 766
 							</div>
767 767
 						</div>
768 768
 					</div>
769 769
 
770 770
 				</div>
771 771
 
772
-				<?= $this->get( 'itemBody' ); ?>
772
+				<?= $this->get('itemBody'); ?>
773 773
 
774 774
 			</div>
775 775
 
776 776
 			<div class="item-actions">
777
-				<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?>
777
+				<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?>
778 778
 			</div>
779 779
 		</div>
780 780
 	</form>
@@ -784,4 +784,4 @@  discard block
 block discarded – undo
784 784
 <?php $this->block()->stop(); ?>
785 785
 
786 786
 
787
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
787
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/text/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/text/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['text.type.domain', 'text.type.status', 'text.type.code', 'text.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/text/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/text/fields', $default );
56
+$default = $this->config('admin/jqadm/type/text/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/text/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'text.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'text.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'text.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'text.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'text.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'text.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'text.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'text.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'text.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'text.type.id' => $this->translate('admin', 'ID'),
69
+	'text.type.domain' => $this->translate('admin', 'Domain'),
70
+	'text.type.status' => $this->translate('admin', 'Status'),
71
+	'text.type.code' => $this->translate('admin', 'Code'),
72
+	'text.type.label' => $this->translate('admin', 'Label'),
73
+	'text.type.position' => $this->translate('admin', 'Position'),
74
+	'text.type.ctime' => $this->translate('admin', 'Created'),
75
+	'text.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'text.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Text Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Text Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/text/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/text/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/text/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/text/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-text-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-text-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/text/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/text/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/text/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/text/filter', []),
139 139
 					'data' => [
140 140
 						'text.type.id' => ['op' => '=='],
141 141
 						'text.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'text' => $this->translate( 'admin', 'text' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'text' => $this->translate('admin', 'text'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'text.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'text.type.code' => [],
159 159
 						'text.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'text.type.id', $fields ) ) : ?>
172
-						<td class="text-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('text.type.id', $fields)) : ?>
172
+						<td class="text-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'text.type.domain', $fields ) ) : ?>
175
-						<td class="text-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('text.type.domain', $fields)) : ?>
175
+						<td class="text-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'text.type.status', $fields ) ) : ?>
178
-						<td class="text-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('text.type.status', $fields)) : ?>
178
+						<td class="text-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'text.type.code', $fields ) ) : ?>
181
-						<td class="text-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('text.type.code', $fields)) : ?>
181
+						<td class="text-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'text.type.label', $fields ) ) : ?>
184
-						<td class="text-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('text.type.label', $fields)) : ?>
184
+						<td class="text-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'text.type.position', $fields ) ) : ?>
187
-						<td class="text-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('text.type.position', $fields)) : ?>
187
+						<td class="text-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'text.type.ctime', $fields ) ) : ?>
190
-						<td class="text-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('text.type.ctime', $fields)) : ?>
190
+						<td class="text-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'text.type.mtime', $fields ) ) : ?>
193
-						<td class="text-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('text.type.mtime', $fields)) : ?>
193
+						<td class="text-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'text.type.editor', $fields ) ) : ?>
196
-						<td class="text-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('text.type.editor', $fields)) : ?>
196
+						<td class="text-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/text/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/text/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/text/lists/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/text/lists/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['text.lists.type.domain', 'text.lists.type.status', 'text.lists.type.code', 'text.lists.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/text/lists/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/text/lists/fields', $default );
56
+$default = $this->config('admin/jqadm/type/text/lists/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/text/lists/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'text.lists.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'text.lists.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'text.lists.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'text.lists.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'text.lists.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'text.lists.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'text.lists.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'text.lists.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'text.lists.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'text.lists.type.id' => $this->translate('admin', 'ID'),
69
+	'text.lists.type.domain' => $this->translate('admin', 'Domain'),
70
+	'text.lists.type.status' => $this->translate('admin', 'Status'),
71
+	'text.lists.type.code' => $this->translate('admin', 'Code'),
72
+	'text.lists.type.label' => $this->translate('admin', 'Label'),
73
+	'text.lists.type.position' => $this->translate('admin', 'Position'),
74
+	'text.lists.type.ctime' => $this->translate('admin', 'Created'),
75
+	'text.lists.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'text.lists.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Text Lists Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Text Lists Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/text/lists/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/text/lists/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/text/lists/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/text/lists/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-text-lists-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-text-lists-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/text/lists/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/text/lists/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/text/lists/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/text/lists/filter', []),
139 139
 					'data' => [
140 140
 						'text.lists.type.id' => ['op' => '=='],
141 141
 						'text.lists.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'attribute' => $this->translate( 'admin', 'attribute' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'attribute' => $this->translate('admin', 'attribute'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'text.lists.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'text.lists.type.code' => [],
159 159
 						'text.lists.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'text.lists.type.id', $fields ) ) : ?>
172
-						<td class="text-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('text.lists.type.id', $fields)) : ?>
172
+						<td class="text-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'text.lists.type.domain', $fields ) ) : ?>
175
-						<td class="text-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('text.lists.type.domain', $fields)) : ?>
175
+						<td class="text-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'text.lists.type.status', $fields ) ) : ?>
178
-						<td class="text-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('text.lists.type.status', $fields)) : ?>
178
+						<td class="text-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'text.lists.type.code', $fields ) ) : ?>
181
-						<td class="text-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('text.lists.type.code', $fields)) : ?>
181
+						<td class="text-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'text.lists.type.label', $fields ) ) : ?>
184
-						<td class="text-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('text.lists.type.label', $fields)) : ?>
184
+						<td class="text-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'text.lists.type.position', $fields ) ) : ?>
187
-						<td class="text-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('text.lists.type.position', $fields)) : ?>
187
+						<td class="text-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'text.lists.type.ctime', $fields ) ) : ?>
190
-						<td class="text-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('text.lists.type.ctime', $fields)) : ?>
190
+						<td class="text-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'text.lists.type.mtime', $fields ) ) : ?>
193
-						<td class="text-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('text.lists.type.mtime', $fields)) : ?>
193
+						<td class="text-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'text.lists.type.editor', $fields ) ) : ?>
196
-						<td class="text-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('text.lists.type.editor', $fields)) : ?>
196
+						<td class="text-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/text/lists/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/text/lists/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/catalog/lists/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/catalog/lists/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['catalog.lists.type.domain', 'catalog.lists.type.status', 'catalog.lists.type.code', 'catalog.lists.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/catalog/lists/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/catalog/lists/fields', $default );
56
+$default = $this->config('admin/jqadm/type/catalog/lists/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/catalog/lists/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'catalog.lists.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'catalog.lists.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'catalog.lists.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'catalog.lists.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'catalog.lists.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'catalog.lists.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'catalog.lists.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'catalog.lists.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'catalog.lists.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'catalog.lists.type.id' => $this->translate('admin', 'ID'),
69
+	'catalog.lists.type.domain' => $this->translate('admin', 'Domain'),
70
+	'catalog.lists.type.status' => $this->translate('admin', 'Status'),
71
+	'catalog.lists.type.code' => $this->translate('admin', 'Code'),
72
+	'catalog.lists.type.label' => $this->translate('admin', 'Label'),
73
+	'catalog.lists.type.position' => $this->translate('admin', 'Position'),
74
+	'catalog.lists.type.ctime' => $this->translate('admin', 'Created'),
75
+	'catalog.lists.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'catalog.lists.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Catalog Lists Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Catalog Lists Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/catalog/lists/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/catalog/lists/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/catalog/lists/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/catalog/lists/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-catalog-lists-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-catalog-lists-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/catalog/lists/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/catalog/lists/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/catalog/lists/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/catalog/lists/filter', []),
139 139
 					'data' => [
140 140
 						'catalog.lists.type.id' => ['op' => '=='],
141 141
 						'catalog.lists.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'attribute' => $this->translate( 'admin', 'attribute' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'attribute' => $this->translate('admin', 'attribute'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'catalog.lists.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'catalog.lists.type.code' => [],
159 159
 						'catalog.lists.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'catalog.lists.type.id', $fields ) ) : ?>
172
-						<td class="catalog-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('catalog.lists.type.id', $fields)) : ?>
172
+						<td class="catalog-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'catalog.lists.type.domain', $fields ) ) : ?>
175
-						<td class="catalog-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('catalog.lists.type.domain', $fields)) : ?>
175
+						<td class="catalog-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'catalog.lists.type.status', $fields ) ) : ?>
178
-						<td class="catalog-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('catalog.lists.type.status', $fields)) : ?>
178
+						<td class="catalog-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'catalog.lists.type.code', $fields ) ) : ?>
181
-						<td class="catalog-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('catalog.lists.type.code', $fields)) : ?>
181
+						<td class="catalog-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'catalog.lists.type.label', $fields ) ) : ?>
184
-						<td class="catalog-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('catalog.lists.type.label', $fields)) : ?>
184
+						<td class="catalog-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'catalog.lists.type.position', $fields ) ) : ?>
187
-						<td class="catalog-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('catalog.lists.type.position', $fields)) : ?>
187
+						<td class="catalog-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'catalog.lists.type.ctime', $fields ) ) : ?>
190
-						<td class="catalog-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('catalog.lists.type.ctime', $fields)) : ?>
190
+						<td class="catalog-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'catalog.lists.type.mtime', $fields ) ) : ?>
193
-						<td class="catalog-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('catalog.lists.type.mtime', $fields)) : ?>
193
+						<td class="catalog-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'catalog.lists.type.editor', $fields ) ) : ?>
196
-						<td class="catalog-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('catalog.lists.type.editor', $fields)) : ?>
196
+						<td class="catalog-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/catalog/lists/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/catalog/lists/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.