Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Add base href only if page is opened in page builder, make sure theme has fav icon tag, don't add theme light/dark value is page cache is generating, add year global theme parameter
givanz50d162f3db4b
diff --git a/app/template/common.tpl b/app/template/common.tplindex 4af77a6..b72ac1b 100755--- a/app/template/common.tpl+++ b/app/template/common.tpl@@ -10,7 +10,7 @@ form[data-v-url-params]|action = <?php echo Vvveb\url('@@__data-v-url__@@' , @@_/* [data-v-img]|href = <?php echo htmlspecialchars(Vvveb\url('@@__data-v-img__@@'));?> */-head base|href = <?php echo Vvveb\themeUrlPath()?>+head base|href = <?php if($vvveb_is_page_edit) echo Vvveb\themeUrlPath()?>//csrfinput[data-v-csrf]|value = <?php echo \Vvveb\session('csrf');?>@@ -21,10 +21,16 @@ import(notifications.tpl)import(editor.tpl)import(pagination.tpl)+//make sure theme has fav icon <link rel="icon" type="image/x-icon" href="/media/favicon.ico" data-v-global-site.favicon>+link[rel="icon"]|delete+head|append = from(/public/themes/default/index.html|link[rel="icon"])+link[rel="shortcut icon"]|delete+head|append = from(/public/themes/default/index.html|link[rel="shortcut icon"])+html|addNewAttribute = <?php$vvveb_is_page_edit = Vvveb\isEditor();-if (isset($_COOKIE['theme']) && !$vvveb_is_page_edit) {+if (isset($_COOKIE['theme']) && !$vvveb_is_page_edit && !defined('PAGE_CACHE_GENERATING')) {echo 'data-bs-theme="';if ($_COOKIE['theme'] == 'dark') echo 'dark'; else if ($_COOKIE['theme'] == 'light') echo 'light';else echo 'auto';echo '"';@@ -69,6 +75,7 @@ if (isset($this->global) && $name}?>+[data-v-year]= $this->global['year']head > link[hreflang]|deleteAllButFirst