diff --git a/Web/Presenters/templates/@layout.xml b/Web/Presenters/templates/@layout.xml index 99b0dad8..70e98d94 100644 --- a/Web/Presenters/templates/@layout.xml +++ b/Web/Presenters/templates/@layout.xml @@ -7,15 +7,22 @@ - {css "css/style.css"} - {css "css/dialog.css"} {script "js/node_modules/jquery/dist/jquery.min.js"} {script "js/node_modules/umbrellajs/umbrella.min.js"} {script "js/openvk.cls.js"} + {ifset $thisUser} {if !is_null($thisUser->getTheme())} {var theme = $thisUser->getTheme()} + {if $theme->inheritDefault()} + {css "css/style.css"} + {css "css/dialog.css"} + {/if} + + {else} + {css "css/style.css"} + {css "css/dialog.css"} {/if} {if $thisUser->getStyleAvatar() == 1} @@ -24,6 +31,9 @@ {if $thisUser->getStyleAvatar() == 2} {css "css/avatar.2.css"} {/if} + {else} + {css "css/style.css"} + {css "css/dialog.css"} {/ifset} {ifset headIncludes}{include headIncludes}{/ifset} @@ -48,6 +58,11 @@