diff options
author | emkael <emkael@tlen.pl> | 2016-05-02 23:15:21 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-05-02 23:15:21 +0200 |
commit | 7657b04ec6292a0cdc1186d7abbcff6fbcc37486 (patch) | |
tree | b3d9b1bffa3766d29628392277db0b6e7c771dbf | |
parent | a5c71eb8d3166c5010848868af28282df878042f (diff) |
* theme manager
-rw-r--r-- | app/php/pages/config.xml | 9 | ||||
-rw-r--r-- | app/php/themes/default/preloader.gif | bin | 0 -> 7681 bytes | |||
-rw-r--r-- | app/php/web/ThemeManager.php | 11 | ||||
l--------- | http/_themes | 1 |
4 files changed, 20 insertions, 1 deletions
diff --git a/app/php/pages/config.xml b/app/php/pages/config.xml index d6403ff..11d708f 100644 --- a/app/php/pages/config.xml +++ b/app/php/pages/config.xml @@ -3,10 +3,17 @@ <services> <service id="page" class="TPageService" - ClientScriptManagerClass="Application.web.ClientScriptManager" /> + ClientScriptManagerClass="Application.web.ClientScriptManager"> + <modules> + <module id="theme" + class="Application.web.ThemeManager" + BasePath="Web._themes" /> + </modules> + </service> </services> <pages MasterClass="Application.layouts.MainLayout" + Theme="default" StatePersisterClass="System.Web.UI.TCachePageStatePersister" StatePersister.CacheModuleID="cache" StatePersister.CacheTimeout="3600" /> diff --git a/app/php/themes/default/preloader.gif b/app/php/themes/default/preloader.gif Binary files differnew file mode 100644 index 0000000..6505467 --- /dev/null +++ b/app/php/themes/default/preloader.gif diff --git a/app/php/web/ThemeManager.php b/app/php/web/ThemeManager.php new file mode 100644 index 0000000..9dcae76 --- /dev/null +++ b/app/php/web/ThemeManager.php @@ -0,0 +1,11 @@ +<?php + +Prado::using('Application.web.BaseUrlDerivedFromBasePath'); + +class ThemeManager extends TThemeManager { + + use BaseUrlDerivedFromBasePath; + +} + +?> diff --git a/http/_themes b/http/_themes new file mode 120000 index 0000000..db75df8 --- /dev/null +++ b/http/_themes @@ -0,0 +1 @@ +../app/php/themes
\ No newline at end of file |