Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Display site logo in sidebar instead of branding

givanzf9a9d97b4a9c
diff --git a/app/template/components/site.tpl b/app/template/components/site.tpl
index 802e1a3..eab0824 100755
--- a/app/template/components/site.tpl
+++ b/app/template/components/site.tpl
@@ -2,7 +2,6 @@
if (isset($_site_idx)) $_site_idx++; else $_site_idx = 0;
$previous_component = isset($component)?$component:null;
$site = $component = $this->_component['site'][$_site_idx] ?? [];
- //$site = \Vvveb\session('site');
?>
[data-v-component-site] [data-v-site-description-*]|innerText = $site['description']['@@__data-v-site-description-(*)__@@']
@@ -27,4 +26,4 @@ echo $site['description'][$name] ?? '';
[data-v-component-site]|append = <?php
$component = $previous_component;
-?>
\ No newline at end of file
+?>
diff --git a/public/admin/default b/public/admin/default
index dbb380e..44f1595 160000
--- a/public/admin/default
+++ b/public/admin/default
@@ -1 +1 @@
-Subproject commit dbb380e9f0ee7e7b72fdc4917e63786ddeeaf116
+Subproject commit 44f15953925614db3af6a98e678653bafedd1ac1
diff --git a/system/component/component-base.php b/system/component/component-base.php
index 166dfd7..f89f9c4 100755
--- a/system/component/component-base.php
+++ b/system/component/component-base.php
@@ -46,7 +46,7 @@ class ComponentBase {
if (! self :: $global) {
$user = User::current();
self :: $global['start'] = 0;
- self :: $global['site_id'] = defined('SITE_ID') ? SITE_ID : 0;
+ self :: $global['site_id'] = sess('site_id') ?? (defined('SITE_ID') ? SITE_ID : 0);
self :: $global['user_id'] = $user['user_id'] ?? null;
self :: $global['user_group_id'] = $user['user_group_id'] ?? 1;
self :: $global['language_id'] = $request->request['language_id'] ?? sess('language_id') ?? 1;