Skip to content

Commit f9a9d97

Browse files
committed
Display site logo in sidebar instead of branding
1 parent 7c83b9e commit f9a9d97

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

app/template/components/site.tpl

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
if (isset($_site_idx)) $_site_idx++; else $_site_idx = 0;
33
$previous_component = isset($component)?$component:null;
44
$site = $component = $this->_component['site'][$_site_idx] ?? [];
5-
//$site = \Vvveb\session('site');
65
?>
76

87
[data-v-component-site] [data-v-site-description-*]|innerText = $site['description']['@@__data-v-site-description-(*)__@@']
@@ -27,4 +26,4 @@ echo $site['description'][$name] ?? '';
2726

2827
[data-v-component-site]|append = <?php
2928
$component = $previous_component;
30-
?>
29+
?>

public/admin/default

Submodule default updated 131 files

system/component/component-base.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function __construct($options = []) {
4646
if (! self :: $global) {
4747
$user = User::current();
4848
self :: $global['start'] = 0;
49-
self :: $global['site_id'] = defined('SITE_ID') ? SITE_ID : 0;
49+
self :: $global['site_id'] = sess('site_id') ?? (defined('SITE_ID') ? SITE_ID : 0);
5050
self :: $global['user_id'] = $user['user_id'] ?? null;
5151
self :: $global['user_group_id'] = $user['user_group_id'] ?? 1;
5252
self :: $global['language_id'] = $request->request['language_id'] ?? sess('language_id') ?? 1;

0 commit comments

Comments
 (0)