Changeset 683:b32debb0479b for admin
- Timestamp:
- 08/13/11 11:44:35 (14 years ago)
- Branch:
- default
- Parents:
- 682:5c856b1a2962 (diff), 675:7845286256ac (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_theme.php
r503 r683 190 190 '<div class="theme-actions">'; 191 191 if ($current && $has_conf) { 192 $res .= '<p><a href="blog_theme.php?conf=1" class="button">'.__(' Theme configuration').'</a></p>';192 $res .= '<p><a href="blog_theme.php?conf=1" class="button">'.__('Configure theme').'</a></p>'; 193 193 } 194 194 if ($current) { … … 265 265 '<div class="two-cols clear" id="themes-actions">'. 266 266 $core->formNonce(). 267 '<p class="col"><input type="submit" name="select" value="'.__(' use selected theme').'" /></p>';267 '<p class="col"><input type="submit" name="select" value="'.__('Use selected theme').'" /></p>'; 268 268 269 269 if ($can_install) { 270 echo '<p class="col right"><input type="submit" class="delete" name="remove" value="'.__(' delete selected theme').'" /></p>';270 echo '<p class="col right"><input type="submit" class="delete" name="remove" value="'.__('Delete selected theme').'" /></p>'; 271 271 } 272 272 … … 327 327 { 328 328 $theme_name = $core->themes->moduleInfo($core->blog->settings->system->theme,'name'); 329 $core->themes->loadModuleL10Nresources($core->blog->settings->system->theme,$_lang); 329 330 echo 330 331 '<h2>'.html::escapeHTML($core->blog->name). -
admin/blog_theme.php
r635 r683 156 156 157 157 $radio_id = 'theme_'.html::escapeHTML($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 } 158 $theme_url = http::concatURL($core->blog->url,$core->blog->settings->system->themes_url.'/'.$id); 163 159 $has_conf = file_exists(path::real($core->blog->themes_path.'/'.$id).'/_config.php'); 164 160 $has_css = file_exists(path::real($core->blog->themes_path.'/'.$id).'/style.css'); … … 216 212 { 217 213 echo 218 '<h2>'.html::escapeHTML($core->blog->name).' › <span class="page-title">'.__('Blog appearance').'</span></h2>';214 '<h2>'.html::escapeHTML($core->blog->name).' › '.__('Blog appearance').'</h2>'; 219 215 220 216 if (!empty($_GET['upd'])) { … … 334 330 echo 335 331 '<h2>'.html::escapeHTML($core->blog->name). 336 ' › <a href="blog_theme.php">'.__('Blog appearance').'</a> › <span class="page-title">'.__('Theme configuration').'<span class="page-title"></h2>'.332 ' › <a href="blog_theme.php">'.__('Blog appearance').'</a> › '.__('Theme configuration').'</h2>'. 337 333 '<p><a class="back" href="blog_theme.php">'.__('back').'</a></p>'; 338 334 339 335 try 340 336 { 341 # Let theme configuration set their own form(s) if required342 $ standalone_config = (boolean) $core->themes->moduleInfo($core->blog->settings->system->theme,'standalone_config');343 344 if (!$ standalone_config)337 # Let theme configuration set their own form(s) 338 $managed = (boolean) $core->callBehavior('adminThemeConfigManaged'); 339 340 if (!$managed) 345 341 echo '<form id="theme_config" action="blog_theme.php?conf=1" method="post" enctype="multipart/form-data">'; 346 342 347 343 include $theme_conf_file; 348 344 349 if (!$ standalone_config)345 if (!$managed) 350 346 echo 351 347 '<p class="clear"><input type="submit" value="'.__('Save').'" />'. 352 348 $core->formNonce().'</p>'. 353 349 '</form>'; 354 355 350 } 356 351 catch (Exception $e) -
admin/style/default.css
r503 r683 78 78 } 79 79 80 81 80 /* LAYOUT 82 81 -------------------------------------------------------- */ 83 /* prelude */ 82 /* header */ 83 #header { 84 background: #575859; 85 height: 3em; 86 position: relative; 87 } 84 88 #prelude { 85 89 background: #575859; 86 line-height: 1.8em; 87 margin: 0; 90 line-height: 1.5em; 91 margin: 0; 92 padding: 0 1.7em 0 1em; 88 93 overflow: hidden; 94 position: absolute; 95 top: 1.2em; 96 left: 0; 89 97 } 90 98 #prelude li { … … 93 101 background:transparent; 94 102 } 95 #prelude a {103 #prelude li a { 96 104 color:#fff; 97 105 } 98 /* header */99 #header {100 background: #575859;101 height: 3em;102 position: relative;103 }104 106 #top { 105 107 margin: 0; … … 139 141 #info-box2 { 140 142 margin: .1em 0 0 0; 141 padding: .5em 1 em 4px 0;143 padding: .5em 1.3em 4px 0; 142 144 color: #fff; 143 145 float: right; … … 188 190 } 189 191 #content { 190 margin: .5em 1.5em 4em 13em;192 margin: 1.5em 1.5em 4em 13em; 191 193 padding: 1em; 192 194 background: #fff; … … 322 324 } 323 325 #favorites-menu a { 324 color: #000; 325 font-weight: normal; 326 color: #333; 326 327 } 327 328 #favorites-menu .active { … … 331 332 #favorites-menu .active a { 332 333 font-weight: bold; 334 color: #666; 333 335 } 334 336 /* ------------------------------------------------------------------ footer */ … … 370 372 margin-left: .5em; 371 373 } 372 #login-screen fieldset {374 #login-screen fieldset, #login-screen .fieldset { 373 375 border: 1px solid #999; 374 376 padding: 1em 1em 0 1em; … … 916 918 /* -------------------------------------------------------------------- CLASSES COMMUNES */ 917 919 920 .no-margin { 921 margin: 0; 922 } 923 918 924 /* paragraphe pour bouton Nouveau bidule */ 919 925 p.top-add { … … 1008 1014 background: #ddd; 1009 1015 } 1016 caption { 1017 color: #333; 1018 font-size: 1.2em; 1019 font-weight: bold; 1020 text-align: left; 1021 margin-bottom: .5em; 1022 } 1023 1010 1024 th, td { 1011 1025 border-width: 0 0 1px 0; … … 1077 1091 padding: 0; 1078 1092 } 1079 fieldset {1093 fieldset, .fieldset { 1080 1094 display: block; 1081 1095 margin: 0 0 1em 0; … … 1166 1180 display: block; 1167 1181 width: 100%; 1182 resize: vertical; 1168 1183 } 1169 1184 label.required { … … 1193 1208 label .maximal, textarea.maximal, input.maximal { 1194 1209 width: 100%; 1210 } 1211 textarea.maximal { 1212 resize: vertical; 1195 1213 } 1196 1214 … … 1202 1220 padding-left: 20px; 1203 1221 } 1204 fieldset.constrained {1222 .constrained { 1205 1223 margin: 0; 1206 1224 padding: 0; … … 1228 1246 text-align: center; 1229 1247 text-decoration: none; 1230 padding: .1em .5em ;1248 padding: .1em .5em 0 .5em; 1231 1249 text-shadow: 0 1px 1px rgba(0,0,0,.3); 1232 1250 -webkit-border-radius: .2em; … … 1288 1306 input[type=submit].delete { 1289 1307 color: #c00; 1308 padding-bottom: .1em; 1309 } 1310 #entry-content .delete { 1311 margin-left: 1em; 1290 1312 } 1291 1313 a.delete:hover, … … 1313 1335 border-radius: .5em; 1314 1336 margin-bottom: .1em; 1315 background: #2C8FD1 url(add.png) no-repeat .2emcenter;1337 background: #2C8FD1 url(add.png) no-repeat 6px center; 1316 1338 color: #fff; 1317 padding: . 1em 1em .2em 28px;1339 padding: .2em 16px .2em 30px; 1318 1340 border: 1px solid #2373A8; 1319 1341 }
Note: See TracChangeset
for help on using the changeset viewer.