@@ -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 ); |
@@ -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> |
@@ -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; |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | </th> |
25 | 25 | <th class="actions"> |
26 | 26 | <div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
27 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
27 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
28 | 28 | v-on:click="addPropertyItem(idx)"> |
29 | 29 | </div> |
30 | 30 | </th> |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | <td class="actions"> |
79 | 79 | <div v-if="!checkSite('media.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
80 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
80 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
81 | 81 | v-on:click.stop="removePropertyItem(idx, propidx)"> |
82 | 82 | </div> |
83 | 83 | </td> |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
59 | 59 | <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
60 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
60 | + <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
61 | 61 | <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
62 | 62 | </a> |
63 | 63 | </li> |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
59 | 59 | <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
60 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
60 | + <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
61 | 61 | <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
62 | 62 | </a> |
63 | 63 | </li> |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | </th> |
25 | 25 | <th class="actions"> |
26 | 26 | <div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
27 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
27 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
28 | 28 | v-on:click="addPropertyItem(idx)"> |
29 | 29 | </div> |
30 | 30 | </th> |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | <td class="actions"> |
79 | 79 | <div v-if="!checkSite('media.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
80 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
80 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
81 | 81 | v-on:click.stop="removePropertyItem(idx, propidx)"> |
82 | 82 | </div> |
83 | 83 | </td> |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
59 | 59 | <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
60 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
60 | + <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
61 | 61 | <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
62 | 62 | </a> |
63 | 63 | </li> |