Dotclear


Ignore:
Timestamp:
07/01/11 10:15:21 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
default
Message:

Mise en place de la gestion du paramètre de thème supplémentaire standalone_config

Permet que le _config.php du thème prenne en charge complètement la gestion du ou des formulaires de configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_theme.php

    r455 r465  
    338338     try 
    339339     { 
    340           # Let theme configuration set their own form(s) 
    341           $managed = (boolean) $core->callBehavior('adminThemeConfigManaged'); 
    342            
    343           if (!$managed) 
     340          # Let theme configuration set their own form(s) if required 
     341          $standalone_config = (boolean) $core->themes->moduleInfo($core->blog->settings->system->theme,'standalone_config'); 
     342 
     343          if (!$standalone_config) 
    344344               echo '<form id="theme_config" action="blog_theme.php?conf=1" method="post" enctype="multipart/form-data">'; 
    345345 
    346346          include $theme_conf_file; 
    347347 
    348           if (!$managed) 
     348          if (!$standalone_config) 
    349349               echo 
    350350               '<p class="clear"><input type="submit" value="'.__('Save').'" />'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map