@@ -48,8 +48,7 @@ |
||
| 48 | 48 | ] ) )->slice( 0, 1 ); |
| 49 | 49 | |
| 50 | 50 | $siteItem = $siteManager->search( $search )->first(); |
| 51 | - } |
|
| 52 | - else |
|
| 51 | + } else |
|
| 53 | 52 | { |
| 54 | 53 | $siteItem = $siteManager->find( $view->param( 'site', 'default' ) ); |
| 55 | 54 | } |
@@ -92,7 +92,8 @@ discard block |
||
| 92 | 92 | <?php if( $logos = $this->get( 'itemData/locale.site.logo' ) ) : ?> |
| 93 | 93 | <img class="item-preview" |
| 94 | 94 | src="<?= $enc->attr( $this->content( $this->config( 'resource/fs/baseurl' ) . '/' . end( $logos ) ) ) ?>" /> |
| 95 | - <?php else : ?> |
|
| 95 | + <?php else { |
|
| 96 | + : ?> |
|
| 96 | 97 | <p class="item-preview"> |
| 97 | 98 | <?= $enc->html( $this->translate( 'admin', 'Upload shop logo' ) ) ?> |
| 98 | 99 | </p> |
@@ -106,7 +107,9 @@ discard block |
||
| 106 | 107 | <div class="box"> |
| 107 | 108 | |
| 108 | 109 | <div class="form-group media-preview"> |
| 109 | - <input class="fileupload" type="file" tabindex="<?= $this->get( 'tabindex', 1 ); ?>" |
|
| 110 | + <input class="fileupload" type="file" tabindex="<?= $this->get( 'tabindex', 1 ); |
|
| 111 | +} |
|
| 112 | +?>" |
|
| 110 | 113 | name="media[icon]" /> |
| 111 | 114 | <?php if( $icon = $this->get( 'itemData/locale.site.icon' ) ) : ?> |
| 112 | 115 | <img class="item-preview" |
@@ -256,7 +256,7 @@ |
||
| 256 | 256 | $item = $this->fromArrayIcon( $item, $files ); |
| 257 | 257 | $item = $this->fromArrayLogo( $item, $files ); |
| 258 | 258 | |
| 259 | - return $item->setConfig( array_replace_recursive($item->getConfig(), $config) ) |
|
| 259 | + return $item->setConfig( array_replace_recursive( $item->getConfig(), $config ) ) |
|
| 260 | 260 | ->setTheme( $data['locale.site.theme'] ?? '' ) |
| 261 | 261 | ->setLabel( $data['locale.site.label'] ?? '' ) |
| 262 | 262 | ->setCode( $data['locale.site.code'] ?? '' ); |