@@ -112,11 +112,14 @@ |
||
| 112 | 112 | </select> |
| 113 | 113 | </div> |
| 114 | 114 | </div> |
| 115 | - <?php else : ?> |
|
| 115 | + <?php else { |
|
| 116 | + : ?> |
|
| 116 | 117 | <input class="item-type" type="hidden" |
| 117 | 118 | v-bind:name="'<?= $enc->attr( $this->formparam( array( 'selection', 'idx', 'product.type' ) ) ) ?>'.replace('idx', idx)" |
| 118 | 119 | value="<?= $enc->attr( $types->firstKey() ) ?>" /> |
| 119 | - <?php endif; ?> |
|
| 120 | + <?php endif; |
|
| 121 | +} |
|
| 122 | +?> |
|
| 120 | 123 | <div class="form-group row mandatory"> |
| 121 | 124 | <label class="col-lg-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'SKU' ) ); ?></label> |
| 122 | 125 | <div class="col-lg-8"> |
@@ -118,10 +118,13 @@ |
||
| 118 | 118 | <?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?> |
| 119 | 119 | </option> |
| 120 | 120 | </select> |
| 121 | - <?php else : ?> |
|
| 121 | + <?php else { |
|
| 122 | + : ?> |
|
| 122 | 123 | <span class="form-control item-status"> |
| 123 | 124 | <?php $key = 'status:' . $this->get( 'itemData/review.status' ) ?> |
| 124 | - <?= $enc->html( $this->translate( 'mshop/code', $key ) ); ?> |
|
| 125 | + <?= $enc->html( $this->translate( 'mshop/code', $key ) ); |
|
| 126 | +} |
|
| 127 | +?> |
|
| 125 | 128 | </span> |
| 126 | 129 | <?php endif ?> |
| 127 | 130 | </div> |
@@ -185,9 +185,12 @@ |
||
| 185 | 185 | </option> |
| 186 | 186 | <?php endforeach; ?> |
| 187 | 187 | </select> |
| 188 | - <?php else : ?> |
|
| 188 | + <?php else { |
|
| 189 | + : ?> |
|
| 189 | 190 | <input class="item-languageid" type="hidden" |
| 190 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.languageid' ) ) ); ?>" |
|
| 191 | + name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.languageid' ) ) ); |
|
| 192 | +} |
|
| 193 | +?>" |
|
| 191 | 194 | value="<?= $enc->attr( $languages->getCode()->first() ); ?>" /> |
| 192 | 195 | <?php endif; ?> |
| 193 | 196 | </div> |
@@ -139,9 +139,12 @@ |
||
| 139 | 139 | </select> |
| 140 | 140 | </div> |
| 141 | 141 | </div> |
| 142 | - <?php else : ?> |
|
| 142 | + <?php else { |
|
| 143 | + : ?> |
|
| 143 | 144 | <input class="item-type" type="hidden" |
| 144 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'plugin.type' ) ) ); ?>" |
|
| 145 | + name="<?= $enc->attr( $this->formparam( array( 'item', 'plugin.type' ) ) ); |
|
| 146 | +} |
|
| 147 | +?>" |
|
| 145 | 148 | value="<?= $enc->attr( $types->getCode()->first() ) ?>" /> |
| 146 | 149 | <?php endif; ?> |
| 147 | 150 | <div class="form-group row mandatory"> |
@@ -355,9 +355,12 @@ |
||
| 355 | 355 | </select> |
| 356 | 356 | </div> |
| 357 | 357 | </div> |
| 358 | - <?php else : ?> |
|
| 358 | + <?php else { |
|
| 359 | + : ?> |
|
| 359 | 360 | <input class="item-type" type="hidden" |
| 360 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'product.type' ) ) ); ?>" |
|
| 361 | + name="<?= $enc->attr( $this->formparam( array( 'item', 'product.type' ) ) ); |
|
| 362 | +} |
|
| 363 | +?>" |
|
| 361 | 364 | value="<?= $enc->attr( $types->firstKey() ) ?>" /> |
| 362 | 365 | <?php endif; ?> |
| 363 | 366 | <div class="form-group row mandatory"> |
@@ -139,9 +139,12 @@ |
||
| 139 | 139 | </select> |
| 140 | 140 | </div> |
| 141 | 141 | </div> |
| 142 | - <?php else : ?> |
|
| 142 | + <?php else { |
|
| 143 | + : ?> |
|
| 143 | 144 | <input class="item-type" type="hidden" |
| 144 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'service.type' ) ) ); ?>" |
|
| 145 | + name="<?= $enc->attr( $this->formparam( array( 'item', 'service.type' ) ) ); |
|
| 146 | +} |
|
| 147 | +?>" |
|
| 145 | 148 | value="<?= $enc->attr( $types->getCode()->first() ) ?>" /> |
| 146 | 149 | <?php endif; ?> |
| 147 | 150 | <div class="form-group row mandatory"> |
@@ -40,8 +40,7 @@ |
||
| 40 | 40 | if( $view->access( ['super'] ) ) |
| 41 | 41 | { |
| 42 | 42 | $view->pageSiteItem = $siteManager->find( $view->param( 'site', 'default' ) ); |
| 43 | - } |
|
| 44 | - else |
|
| 43 | + } else |
|
| 45 | 44 | { |
| 46 | 45 | $siteid = $customerManager->get( $context->getUserId() )->getSiteId(); |
| 47 | 46 | $search = $siteManager->filter(); |
@@ -24,6 +24,7 @@ |
||
| 24 | 24 | * Initializes the class instance. |
| 25 | 25 | * |
| 26 | 26 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object |
| 27 | + * @return void |
|
| 27 | 28 | */ |
| 28 | 29 | public function __construct( \Aimeos\MShop\Context\Item\Iface $context ); |
| 29 | 30 | } |
@@ -25,6 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @param \Aimeos\Admin\JQAdm\Iface $client Admin object |
| 27 | 27 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects |
| 28 | + * @return void |
|
| 28 | 29 | */ |
| 29 | 30 | public function __construct( \Aimeos\Admin\JQAdm\Iface $client, \Aimeos\MShop\Context\Item\Iface $context ); |
| 30 | 31 | } |