Dotclear

Changeset 683:b32debb0479b for admin


Ignore:
Timestamp:
08/13/11 11:44:35 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
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.
Message:

Remerge themes dans default

Location:
admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_theme.php

    r503 r683  
    190190     '<div class="theme-actions">'; 
    191191          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>'; 
    193193          } 
    194194          if ($current) { 
     
    265265     '<div class="two-cols clear" id="themes-actions">'. 
    266266     $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>'; 
    268268      
    269269     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>'; 
    271271     } 
    272272      
     
    327327{ 
    328328     $theme_name = $core->themes->moduleInfo($core->blog->settings->system->theme,'name'); 
     329     $core->themes->loadModuleL10Nresources($core->blog->settings->system->theme,$_lang); 
    329330     echo 
    330331     '<h2>'.html::escapeHTML($core->blog->name). 
  • admin/blog_theme.php

    r635 r683  
    156156      
    157157     $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); 
    163159     $has_conf = file_exists(path::real($core->blog->themes_path.'/'.$id).'/_config.php'); 
    164160     $has_css = file_exists(path::real($core->blog->themes_path.'/'.$id).'/style.css'); 
     
    216212{ 
    217213     echo 
    218      '<h2>'.html::escapeHTML($core->blog->name).' &rsaquo; <span class="page-title">'.__('Blog appearance').'</span></h2>'; 
     214     '<h2>'.html::escapeHTML($core->blog->name).' &rsaquo; '.__('Blog appearance').'</h2>'; 
    219215      
    220216     if (!empty($_GET['upd'])) { 
     
    334330     echo 
    335331     '<h2>'.html::escapeHTML($core->blog->name). 
    336      ' &rsaquo; <a href="blog_theme.php">'.__('Blog appearance').'</a> &rsaquo; <span class="page-title">'.__('Theme configuration').'<span class="page-title"></h2>'. 
     332     ' &rsaquo; <a href="blog_theme.php">'.__('Blog appearance').'</a> &rsaquo; '.__('Theme configuration').'</h2>'. 
    337333     '<p><a class="back" href="blog_theme.php">'.__('back').'</a></p>'; 
    338334      
    339335     try 
    340336     { 
    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) 
     337          # Let theme configuration set their own form(s) 
     338          $managed = (boolean) $core->callBehavior('adminThemeConfigManaged'); 
     339           
     340          if (!$managed) 
    345341               echo '<form id="theme_config" action="blog_theme.php?conf=1" method="post" enctype="multipart/form-data">'; 
    346342 
    347343          include $theme_conf_file; 
    348344 
    349           if (!$standalone_config) 
     345          if (!$managed) 
    350346               echo 
    351347               '<p class="clear"><input type="submit" value="'.__('Save').'" />'. 
    352348               $core->formNonce().'</p>'. 
    353349               '</form>'; 
    354  
    355350     } 
    356351     catch (Exception $e) 
  • admin/style/default.css

    r503 r683  
    7878} 
    7979 
    80  
    8180/* LAYOUT 
    8281-------------------------------------------------------- */ 
    83 /* prelude */ 
     82/* header */ 
     83#header { 
     84     background: #575859; 
     85     height: 3em; 
     86     position: relative; 
     87} 
    8488#prelude { 
    8589     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; 
    8893     overflow: hidden; 
     94     position: absolute; 
     95     top: 1.2em; 
     96     left: 0; 
    8997     } 
    9098#prelude li { 
     
    93101     background:transparent; 
    94102     } 
    95 #prelude a { 
     103#prelude li a { 
    96104     color:#fff; 
    97105     } 
    98 /* header */ 
    99 #header { 
    100      background: #575859; 
    101      height: 3em; 
    102      position: relative; 
    103 } 
    104106#top { 
    105107     margin: 0; 
     
    139141#info-box2 { 
    140142     margin: .1em 0 0 0; 
    141      padding: .5em 1em 4px 0; 
     143     padding: .5em 1.3em 4px 0; 
    142144     color: #fff; 
    143145     float: right; 
     
    188190} 
    189191#content { 
    190      margin: .5em 1.5em 4em 13em; 
     192     margin: 1.5em 1.5em 4em 13em; 
    191193     padding: 1em; 
    192194     background: #fff; 
     
    322324} 
    323325#favorites-menu a { 
    324      color: #000; 
    325      font-weight: normal; 
     326     color: #333; 
    326327} 
    327328#favorites-menu .active { 
     
    331332#favorites-menu .active a { 
    332333     font-weight: bold; 
     334     color: #666; 
    333335} 
    334336/* ------------------------------------------------------------------ footer */ 
     
    370372     margin-left: .5em; 
    371373} 
    372 #login-screen fieldset { 
     374#login-screen fieldset, #login-screen .fieldset { 
    373375     border: 1px solid #999; 
    374376     padding: 1em 1em 0 1em; 
     
    916918/* -------------------------------------------------------------------- CLASSES COMMUNES */ 
    917919 
     920.no-margin { 
     921     margin: 0; 
     922} 
     923 
    918924/* paragraphe pour bouton Nouveau bidule */ 
    919925p.top-add { 
     
    10081014     background: #ddd; 
    10091015} 
     1016caption { 
     1017     color: #333; 
     1018     font-size: 1.2em; 
     1019     font-weight: bold; 
     1020     text-align: left; 
     1021     margin-bottom: .5em; 
     1022} 
     1023 
    10101024th, td { 
    10111025     border-width: 0 0 1px 0; 
     
    10771091     padding: 0; 
    10781092} 
    1079 fieldset { 
     1093fieldset, .fieldset { 
    10801094     display: block; 
    10811095     margin: 0 0 1em 0; 
     
    11661180     display: block; 
    11671181     width: 100%; 
     1182     resize: vertical; 
    11681183} 
    11691184label.required { 
     
    11931208label .maximal, textarea.maximal, input.maximal { 
    11941209     width: 100%; 
     1210} 
     1211textarea.maximal { 
     1212     resize: vertical; 
    11951213} 
    11961214 
     
    12021220     padding-left: 20px; 
    12031221} 
    1204 fieldset.constrained { 
     1222.constrained { 
    12051223     margin: 0; 
    12061224     padding: 0; 
     
    12281246     text-align: center; 
    12291247     text-decoration: none; 
    1230      padding: .1em .5em; 
     1248     padding: .1em .5em 0 .5em; 
    12311249     text-shadow: 0 1px 1px rgba(0,0,0,.3); 
    12321250     -webkit-border-radius: .2em; 
     
    12881306input[type=submit].delete { 
    12891307     color: #c00; 
     1308     padding-bottom: .1em; 
     1309} 
     1310#entry-content .delete { 
     1311     margin-left: 1em; 
    12901312} 
    12911313a.delete:hover, 
     
    13131335     border-radius: .5em; 
    13141336     margin-bottom: .1em;      
    1315      background: #2C8FD1 url(add.png) no-repeat .2em center; 
     1337     background: #2C8FD1 url(add.png) no-repeat 6px center; 
    13161338     color: #fff; 
    1317      padding: .1em 1em .2em 28px; 
     1339     padding: .2em 16px .2em 30px; 
    13181340     border: 1px solid #2373A8; 
    13191341} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map