@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | <th class="actions"> |
120 | 120 | <a class="btn fa act-add" tabindex="1" |
121 | 121 | href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>" |
122 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
122 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
123 | 123 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>"> |
124 | 124 | </a> |
125 | 125 | |
@@ -199,12 +199,12 @@ discard block |
||
199 | 199 | <td class="actions"> |
200 | 200 | <a class="btn act-copy fa" tabindex="1" |
201 | 201 | href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>" |
202 | - title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>" |
|
202 | + title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry' ) ); ?>" |
|
203 | 203 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a> |
204 | 204 | <?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?> |
205 | 205 | <a class="btn act-delete fa" tabindex="1" |
206 | 206 | href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>" |
207 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
207 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
208 | 208 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a> |
209 | 209 | <?php endif; ?> |
210 | 210 | </td> |
@@ -31,19 +31,19 @@ discard block |
||
31 | 31 | v-bind:aria-controls="'item-address-group-data-' + idx" aria-expanded="false"> |
32 | 32 | <div class="card-tools-left"> |
33 | 33 | <div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
34 | - title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>"> |
|
34 | + title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry' ) ); ?>"> |
|
35 | 35 | </div> |
36 | 36 | </div> |
37 | 37 | <span class="item-label header-label">{{ getLabel(idx, 'customer.address.') }}</span> |
38 | 38 | |
39 | 39 | <div class="card-tools-right"> |
40 | 40 | <div class="btn btn-card-header act-copy fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
41 | - title="<?= $enc->attr( $this->translate( 'admin', 'Duplicate entry (Ctrl+D)') ); ?>" |
|
41 | + title="<?= $enc->attr( $this->translate( 'admin', 'Duplicate entry (Ctrl+D)' ) ); ?>" |
|
42 | 42 | v-on:click.stop="duplicateItem(idx)"> |
43 | 43 | </div> |
44 | 44 | <div v-if="!checkSite('customer.address.siteid', idx)" |
45 | 45 | class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
46 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
46 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
47 | 47 | v-on:click="removeItem(idx)"> |
48 | 48 | </div> |
49 | 49 | </div> |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | |
338 | 338 | <div class="card-tools-more"> |
339 | 339 | <div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
340 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
340 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
341 | 341 | v-on:click="addItem('customer.address.')" > |
342 | 342 | </div> |
343 | 343 | </div> |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $first = ( $offset > 0 ? 0 : null ); |
43 | 43 | $prev = ( $offset - $limit >= 0 ? $offset - $limit : null ); |
44 | 44 | $next = ( $offset + $limit < $total ? $offset + $limit : null ); |
45 | -$last = ( floor(($total - 1) / $limit) * $limit > $offset ? floor(($total - 1) / $limit) * $limit : null ); |
|
45 | +$last = ( floor( ( $total - 1 ) / $limit ) * $limit > $offset ? floor( ( $total - 1 ) / $limit ) * $limit : null ); |
|
46 | 46 | |
47 | 47 | $pageCurrent = floor( $offset / $limit ) + 1; |
48 | 48 | $pageTotal = ( $total != 0 ? ceil( $total / $limit ) : 1 ); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | v-bind:aria-controls="'item-media-group-data-' + idx" aria-expanded="false"> |
30 | 30 | <div class="card-tools-left"> |
31 | 31 | <div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
32 | - title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>"> |
|
32 | + title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry' ) ); ?>"> |
|
33 | 33 | </div> |
34 | 34 | </div> |
35 | 35 | <span class="item-label header-label" v-html="getLabel(idx)"></span> |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | <div class="card-tools-right"> |
38 | 38 | <div v-if="!checkSite('attribute.lists.siteid', idx)" |
39 | 39 | class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
40 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
40 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
41 | 41 | v-on:click.stop="removeItem(idx)"> |
42 | 42 | </div> |
43 | 43 | </div> |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'media.url' ) ) ); ?>'.replace( 'idx', idx )" |
63 | 63 | v-model="items[idx]['media.url']" /> |
64 | 64 | <img v-if="items[idx]['media.preview']" class="item-preview" |
65 | - v-bind:src="getUrl('<?= $this->content('') ?>', items[idx]['media.preview'])" |
|
65 | + v-bind:src="getUrl('<?= $this->content( '' ) ?>', items[idx]['media.preview'])" |
|
66 | 66 | v-bind:alt="items[idx]['media.label']" /> |
67 | 67 | <p v-else class="item-preview"> |
68 | 68 | {{ items[idx]['media.label'] || '<?= $enc->html( $this->translate( 'admin', 'Select file' ) ) ?>' }} |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | <div v-on:click="toggle(idx)" class="col-xl-12 advanced" v-bind:class="{ 'collapsed': !advanced[idx] }"> |
172 | 172 | <div class="card-tools-left"> |
173 | 173 | <div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
174 | - title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data') ); ?>"> |
|
174 | + title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data' ) ); ?>"> |
|
175 | 175 | </div> |
176 | 176 | </div> |
177 | 177 | <span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span> |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | </th> |
251 | 251 | <th class="actions"> |
252 | 252 | <div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
253 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
253 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
254 | 254 | v-bind:readonly="checkSite('attribute.lists.siteid', idx)" |
255 | 255 | v-on:click="addConfig(idx)" > |
256 | 256 | </div> |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | <td class="actions"> |
278 | 278 | <div v-if="!checkSite('attribute.lists.siteid', idx)" v-on:click="removeConfig(idx, pos)" |
279 | 279 | class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
280 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"> |
|
280 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"> |
|
281 | 281 | </div> |
282 | 282 | </td> |
283 | 283 | </tr> |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | |
294 | 294 | <div class="card-tools-more"> |
295 | 295 | <div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
296 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
296 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
297 | 297 | v-on:click="addItem('attribute.lists.')" > |
298 | 298 | </div> |
299 | 299 | </div> |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | |
155 | 155 | <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
156 | 156 | <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
157 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
157 | + <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
158 | 158 | <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
159 | 159 | </a> |
160 | 160 | </li> |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | <th class="actions"> |
322 | 322 | <?php if( !$this->site()->readonly( $this->get( 'itemData/product.siteid' ) ) ) : ?> |
323 | 323 | <div class="btn act-add fa" tabindex="1" |
324 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"> |
|
324 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"> |
|
325 | 325 | </div> |
326 | 326 | <?php endif; ?> |
327 | 327 | </th> |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | <td class="actions"> |
347 | 347 | <?php if( !$this->site()->readonly( $this->get( 'itemData/product.siteid' ) ) ) : ?> |
348 | 348 | <div class="btn act-delete fa" tabindex="1" |
349 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"> |
|
349 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"> |
|
350 | 350 | </div> |
351 | 351 | <?php endif; ?> |
352 | 352 | </td> |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | <td class="actions"> |
366 | 366 | <?php if( !$this->site()->readonly( $this->get( 'itemData/product.siteid' ) ) ) : ?> |
367 | 367 | <div class="btn act-delete fa" tabindex="1" |
368 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"> |
|
368 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"> |
|
369 | 369 | </div> |
370 | 370 | <?php endif; ?> |
371 | 371 | </td> |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | </th> |
33 | 33 | <th class="actions"> |
34 | 34 | <div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
35 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
35 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
36 | 36 | v-on:click="addItem('product.lists.')"> |
37 | 37 | </th> |
38 | 38 | </tr> |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | </td> |
67 | 67 | <td class="actions"> |
68 | 68 | <div v-if="!checkSite('product.lists.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
69 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
69 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
70 | 70 | v-on:click.stop="removeItem(idx)"> |
71 | 71 | </td> |
72 | 72 |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | v-bind:aria-controls="'item-text-group-data-' + idx" aria-expanded="false"> |
30 | 30 | <div class="card-tools-left"> |
31 | 31 | <div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
32 | - title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>"> |
|
32 | + title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry' ) ); ?>"> |
|
33 | 33 | </div> |
34 | 34 | </div> |
35 | 35 | <span class="item-label header-label" v-html="getLabel(idx)"></span> |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | <div class="card-tools-right"> |
38 | 38 | <div v-if="!checkSite('service.lists.siteid', idx)" |
39 | 39 | class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
40 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
40 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
41 | 41 | v-on:click.stop="removeItem(idx)"> |
42 | 42 | </div> |
43 | 43 | </div> |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | <div v-on:click="toggle(idx)" class="col-xl-12 advanced" v-bind:class="{ 'collapsed': !advanced[idx] }"> |
173 | 173 | <div class="card-tools-left"> |
174 | 174 | <div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
175 | - title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data') ); ?>"> |
|
175 | + title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data' ) ); ?>"> |
|
176 | 176 | </div> |
177 | 177 | </div> |
178 | 178 | <span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span> |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | </th> |
255 | 255 | <th class="actions"> |
256 | 256 | <div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
257 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
257 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
258 | 258 | v-bind:readonly="checkSite('service.lists.siteid', idx)" |
259 | 259 | v-on:click="addConfig(idx)" > |
260 | 260 | </div> |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | <td class="actions"> |
282 | 282 | <div v-if="!checkSite('service.lists.siteid', idx)" v-on:click="removeConfig(idx, pos)" |
283 | 283 | class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
284 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"> |
|
284 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"> |
|
285 | 285 | </div> |
286 | 286 | </td> |
287 | 287 | </tr> |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | |
298 | 298 | <div class="card-tools-more"> |
299 | 299 | <div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
300 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
300 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
301 | 301 | v-on:click="addItem('service.lists.')" > |
302 | 302 | </div> |
303 | 303 | </div> |
@@ -279,7 +279,7 @@ |
||
279 | 279 | $manager = \Aimeos\MShop::create( $context, 'locale/language' ); |
280 | 280 | |
281 | 281 | $search = $manager->createSearch(); |
282 | - $search->setSortations( [$search->sort( '-', 'locale.language.status'), $search->sort( '+', 'locale.language.id')] ); |
|
282 | + $search->setSortations( [$search->sort( '-', 'locale.language.status' ), $search->sort( '+', 'locale.language.id' )] ); |
|
283 | 283 | $search = $this->initCriteria( $search, $params ); |
284 | 284 | |
285 | 285 | $view->items = $manager->searchItems( $search, [], $total ); |
@@ -407,7 +407,7 @@ |
||
407 | 407 | $data['time'] = $fs->time( $data['attribute.code'] ); |
408 | 408 | $data['size'] = $fs->size( $data['attribute.code'] ); |
409 | 409 | } |
410 | - catch( \Exception $e ) { ; } // Show product even if file isn't available any more |
|
410 | + catch( \Exception $e ) {; } // Show product even if file isn't available any more |
|
411 | 411 | } |
412 | 412 | |
413 | 413 | return $data; |