Revision 435:63421b3dd352,
914 bytes
checked in by Franck <carnet.franck.paul@…>, 14 years ago
(diff) |
- Prise en charge complète de la gestion des formulaires de configuration (voir la révision précédente, “Let theme configuration set their own form(s)”)
- Début de mise en place d'un header supplémentaire pour la configuration en vue d'injection de styles et/ou javascripts
|
Rev | Line | |
---|
[435] | 1 | <?php |
---|
| 2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
---|
| 3 | # |
---|
| 4 | # This file is part of Dotclear 2. |
---|
| 5 | # |
---|
| 6 | # Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear |
---|
| 7 | # Licensed under the GPL version 2.0 license. |
---|
| 8 | # See LICENSE file or |
---|
| 9 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
| 10 | # |
---|
| 11 | # -- END LICENSE BLOCK ----------------------------------------- |
---|
| 12 | |
---|
| 13 | # Public and Admin modes : |
---|
| 14 | |
---|
| 15 | if (!defined('DC_RC_PATH')) { return; } |
---|
| 16 | |
---|
| 17 | # Admin mode only : |
---|
| 18 | |
---|
| 19 | # Behaviors |
---|
| 20 | $GLOBALS['core']->addBehavior('adminPageHTMLHead',array('tplDuctileThemeAdmin','adminPageHTMLHead')); |
---|
| 21 | $GLOBALS['core']->addBehavior('adminThemeConfigManaged',array('tplDuctileThemeAdmin','adminThemeConfigManaged')); |
---|
| 22 | |
---|
| 23 | class tplDuctileThemeAdmin |
---|
| 24 | { |
---|
| 25 | public static function adminPageHTMLHead() |
---|
| 26 | { |
---|
| 27 | echo "\n".'<!-- Header directives for Ductile configuration -->'."\n"; |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | public static function adminThemeConfigManaged() |
---|
| 31 | { |
---|
| 32 | return true; |
---|
| 33 | } |
---|
| 34 | } |
---|
| 35 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.