Changeset 684:3d217b8adc52 for admin
- Timestamp:
- 08/13/11 11:46:29 (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_theme.php
r683 r684 156 156 157 157 $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 } 159 163 $has_conf = file_exists(path::real($core->blog->themes_path.'/'.$id).'/_config.php'); 160 164 $has_css = file_exists(path::real($core->blog->themes_path.'/'.$id).'/style.css'); … … 212 216 { 213 217 echo 214 '<h2>'.html::escapeHTML($core->blog->name).' › '.__('Blog appearance').'</h2>';218 '<h2>'.html::escapeHTML($core->blog->name).' › <span class="page-title">'.__('Blog appearance').'</span></h2>'; 215 219 216 220 if (!empty($_GET['upd'])) { … … 330 334 echo 331 335 '<h2>'.html::escapeHTML($core->blog->name). 332 ' › <a href="blog_theme.php">'.__('Blog appearance').'</a> › '.__('Theme configuration').'</h2>'.336 ' › <a href="blog_theme.php">'.__('Blog appearance').'</a> › <span class="page-title">'.__('Theme configuration').'<span class="page-title"></h2>'. 333 337 '<p><a class="back" href="blog_theme.php">'.__('back').'</a></p>'; 334 338 335 339 try 336 340 { 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) 341 345 echo '<form id="theme_config" action="blog_theme.php?conf=1" method="post" enctype="multipart/form-data">'; 342 346 343 347 include $theme_conf_file; 344 348 345 if (!$ managed)349 if (!$standalone_config) 346 350 echo 347 351 '<p class="clear"><input type="submit" value="'.__('Save').'" />'. 348 352 $core->formNonce().'</p>'. 349 353 '</form>'; 354 350 355 } 351 356 catch (Exception $e)
Note: See TracChangeset
for help on using the changeset viewer.