Completed
Push — master ( 521882...b49ab8 )
by Aimeos
04:07
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/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.
admin/jqadm/templates/type/price/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/price/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['price.type.domain', 'price.type.status', 'price.type.code', 'price.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/price/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/price/fields', $default );
56
+$default = $this->config('admin/jqadm/type/price/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/price/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
-	'price.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'price.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'price.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'price.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'price.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'price.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'price.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'price.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'price.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'price.type.id' => $this->translate('admin', 'ID'),
69
+	'price.type.domain' => $this->translate('admin', 'Domain'),
70
+	'price.type.status' => $this->translate('admin', 'Status'),
71
+	'price.type.code' => $this->translate('admin', 'Code'),
72
+	'price.type.label' => $this->translate('admin', 'Label'),
73
+	'price.type.position' => $this->translate('admin', 'Position'),
74
+	'price.type.ctime' => $this->translate('admin', 'Created'),
75
+	'price.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'price.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', 'Price Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Price 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/price/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/price/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/price/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/price/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-price-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-price-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/price/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/price/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/price/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/price/filter', []),
139 139
 					'data' => [
140 140
 						'price.type.id' => ['op' => '=='],
141 141
 						'price.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'price' => $this->translate( 'admin', 'price' ),
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
+							'price' => $this->translate('admin', 'price'),
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
 						'price.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
 						'price.type.code' => [],
159 159
 						'price.type.label' => [],
@@ -164,47 +164,47 @@  discard block
 block discarded – undo
164 164
 				] );
165 165
 			?>
166 166
 
167
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
168
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
169
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
170
-					<?php if( in_array( 'price.type.id', $fields ) ) : ?>
171
-						<td class="price-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
167
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
168
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
169
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
170
+					<?php if (in_array('price.type.id', $fields)) : ?>
171
+						<td class="price-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
172 172
 					<?php endif; ?>
173
-					<?php if( in_array( 'price.type.domain', $fields ) ) : ?>
174
-						<td class="price-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
173
+					<?php if (in_array('price.type.domain', $fields)) : ?>
174
+						<td class="price-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
175 175
 					<?php endif; ?>
176
-					<?php if( in_array( 'price.type.status', $fields ) ) : ?>
177
-						<td class="price-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
176
+					<?php if (in_array('price.type.status', $fields)) : ?>
177
+						<td class="price-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
178 178
 					<?php endif; ?>
179
-					<?php if( in_array( 'price.type.code', $fields ) ) : ?>
180
-						<td class="price-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
179
+					<?php if (in_array('price.type.code', $fields)) : ?>
180
+						<td class="price-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
181 181
 					<?php endif; ?>
182
-					<?php if( in_array( 'price.type.label', $fields ) ) : ?>
183
-						<td class="price-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
182
+					<?php if (in_array('price.type.label', $fields)) : ?>
183
+						<td class="price-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
184 184
 					<?php endif; ?>
185
-					<?php if( in_array( 'price.type.position', $fields ) ) : ?>
186
-						<td class="price-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
185
+					<?php if (in_array('price.type.position', $fields)) : ?>
186
+						<td class="price-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
187 187
 					<?php endif; ?>
188
-					<?php if( in_array( 'price.type.ctime', $fields ) ) : ?>
189
-						<td class="price-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
188
+					<?php if (in_array('price.type.ctime', $fields)) : ?>
189
+						<td class="price-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
190 190
 					<?php endif; ?>
191
-					<?php if( in_array( 'price.type.mtime', $fields ) ) : ?>
192
-						<td class="price-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
191
+					<?php if (in_array('price.type.mtime', $fields)) : ?>
192
+						<td class="price-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
193 193
 					<?php endif; ?>
194
-					<?php if( in_array( 'price.type.editor', $fields ) ) : ?>
195
-						<td class="price-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
194
+					<?php if (in_array('price.type.editor', $fields)) : ?>
195
+						<td class="price-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
196 196
 					<?php endif; ?>
197 197
 
198 198
 					<td class="actions">
199 199
 						<a class="btn act-copy fa" tabindex="1"
200
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
201
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
202
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
203
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
200
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
201
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
202
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
203
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
204 204
 							<a class="btn act-delete fa" tabindex="1"
205
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
206
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
207
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
205
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
206
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
207
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
208 208
 						<?php endif; ?>
209 209
 					</td>
210 210
 				</tr>
@@ -212,18 +212,18 @@  discard block
 block discarded – undo
212 212
 		</tbody>
213 213
 	</table>
214 214
 
215
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
216
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
215
+	<?php if ($this->get('items', []) === []) : ?>
216
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
217 217
 	<?php endif; ?>
218 218
 </form>
219 219
 
220 220
 <?= $this->partial(
221
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
222
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
223
-		'page' => $this->session( 'aimeos/admin/jqadm/type/price/page', [] )]
221
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
222
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
223
+		'page' => $this->session('aimeos/admin/jqadm/type/price/page', [])]
224 224
 	);
225 225
 ?>
226 226
 
227 227
 <?php $this->block()->stop(); ?>
228 228
 
229
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
229
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.