Dotclear

Changeset 684:3d217b8adc52 for admin


Ignore:
Timestamp:
08/13/11 11:46:29 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
default
Message:

Récupération

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_theme.php

    r683 r684  
    156156      
    157157     $radio_id = 'theme_'.html::escapeHTML($id); 
    158      $theme_url = http::concatURL($core->blog->url,$core->blog->settings->system->themes_url.'/'.$id); 
     158     if (preg_match('#^http(s)?://#',$core->blog->settings->system->themes_url)) { 
     159          $theme_url = http::concatURL($core->blog->settings->system->themes_url,'/'.$id); 
     160     } else { 
     161          $theme_url = http::concatURL($core->blog->url,$core->blog->settings->system->themes_url.'/'.$id); 
     162     } 
    159163     $has_conf = file_exists(path::real($core->blog->themes_path.'/'.$id).'/_config.php'); 
    160164     $has_css = file_exists(path::real($core->blog->themes_path.'/'.$id).'/style.css'); 
     
    212216{ 
    213217     echo 
    214      '<h2>'.html::escapeHTML($core->blog->name).' &rsaquo; '.__('Blog appearance').'</h2>'; 
     218     '<h2>'.html::escapeHTML($core->blog->name).' &rsaquo; <span class="page-title">'.__('Blog appearance').'</span></h2>'; 
    215219      
    216220     if (!empty($_GET['upd'])) { 
     
    330334     echo 
    331335     '<h2>'.html::escapeHTML($core->blog->name). 
    332      ' &rsaquo; <a href="blog_theme.php">'.__('Blog appearance').'</a> &rsaquo; '.__('Theme configuration').'</h2>'. 
     336     ' &rsaquo; <a href="blog_theme.php">'.__('Blog appearance').'</a> &rsaquo; <span class="page-title">'.__('Theme configuration').'<span class="page-title"></h2>'. 
    333337     '<p><a class="back" href="blog_theme.php">'.__('back').'</a></p>'; 
    334338      
    335339     try 
    336340     { 
    337           # Let theme configuration set their own form(s) 
    338           $managed = (boolean) $core->callBehavior('adminThemeConfigManaged'); 
    339            
    340           if (!$managed) 
     341          # Let theme configuration set their own form(s) if required 
     342          $standalone_config = (boolean) $core->themes->moduleInfo($core->blog->settings->system->theme,'standalone_config'); 
     343 
     344          if (!$standalone_config) 
    341345               echo '<form id="theme_config" action="blog_theme.php?conf=1" method="post" enctype="multipart/form-data">'; 
    342346 
    343347          include $theme_conf_file; 
    344348 
    345           if (!$managed) 
     349          if (!$standalone_config) 
    346350               echo 
    347351               '<p class="clear"><input type="submit" value="'.__('Save').'" />'. 
    348352               $core->formNonce().'</p>'. 
    349353               '</form>'; 
     354 
    350355     } 
    351356     catch (Exception $e) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map