Dotclear

Changeset 378:a103e2765a14


Ignore:
Timestamp:
06/16/11 23:11:22 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
themes
Message:

Configuration des polices - step 2 : couleurs et graisse des liens + divers

Location:
themes/ductile
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/_config.php

    r376 r378  
    5252 
    5353$ductile_base = array( 
    54      'body_link_c' => null, 
     54     'body_link_w' => null, 
    5555     'body_link_v_c' => null, 
    5656     'body_link_f_c' => null, 
     
    7171     try 
    7272     { 
    73           $ductile_user['body_link_c'] = adjustColor($_POST['body_link_c']); 
     73          $ductile_user['body_link_w'] = (integer) !empty($_POST['body_link_w']); 
     74 
     75          $ductile_user['body_link_v_c'] = adjustColor($_POST['body_link_v_c']); 
    7476          $ductile_user['body_link_f_c'] = adjustColor($_POST['body_link_f_c']); 
    75           $ductile_user['body_link_v_c'] = adjustColor($_POST['body_link_v_c']); 
    7677           
    7778          $ductile_user['body_font'] = $_POST['body_font']; 
     
    9798form::combo('body_font',$fonts,$ductile_user['body_font']).'</label></p>'. 
    9899 
    99 '<p class="field"><label for="alternate_font">'.__('Alternate font:').' '. 
     100'<p class="field"><label for="alternate_font">'.__('Secondary font:').' '. 
    100101form::combo('alternate_font',$fonts,$ductile_user['alternate_font']).'</label></p>'. 
    101102'</fieldset>'; 
    102103 
    103 echo '<fieldset><legend>'.__('Links').'</legend>'. 
    104 '<p class="field"><label for="body_link_c">'.__('Links color:').' '. 
    105 form::field('body_link_c',7,7,$ductile_user['body_link_c'],'colorpicker').'</label></p>'. 
     104echo '<fieldset><legend>'.__('Inside posts links').'</legend>'. 
     105'<p class="field"><label for="body_link_w">'.__('Links in bold:').' '. 
     106form::checkbox('body_link_w',1,$ductile_user['body_link_w']).'</label>'.'</p>'. 
    106107 
    107 '<p class="field"><label for="body_link_v_c">'.__('Visited links color:').' '. 
    108 form::field('body_link_v_c',7,7,$ductile_user['body_link_v_c'],'colorpicker').'</label></p>'. 
     108'<p class="field"><label for="body_link_v_c">'.__('Normal and visited links color:').'</label> '. 
     109form::field('body_link_v_c',7,7,$ductile_user['body_link_v_c'],'colorpicker').'</p>'. 
    109110 
    110 '<p class="field"><label for="body_link_f_c">'.__('Focus links color:').' '. 
    111 form::field('body_link_f_c',7,7,$ductile_user['body_link_f_c'],'colorpicker').'</label></p>'. 
     111'<p class="field"><label for="body_link_f_c">'.__('Active, hover and focus links color:').'</label> '. 
     112form::field('body_link_f_c',7,7,$ductile_user['body_link_f_c'],'colorpicker').'</p>'. 
    112113'</fieldset>'; 
    113114 
  • themes/ductile/_public.php

    r377 r378  
    4545          # Main font 
    4646          $main_font_selectors = 'body, #supranav li a span, #comments.me, a.comment-number'; 
    47           if isset($s['body_font']) self::prop($css,$main_font_selectors,'font-family',self::fontDef($s['body_font'])); 
     47          if (isset($s['body_font'])) self::prop($css,$main_font_selectors,'font-family',self::fontDef($s['body_font'])); 
    4848 
    49           # Alternate font 
    50           $alternate_font_selectors = '#blogdesc, #supranav li, #content-info, #subcategories, #comments-feed, #sidebar h2, #sidebar h3, #footer p'; 
    51           if isset($s['alternate_font']) self::prop($css,$alternate_font_selectors,'font-family',self::fontDef($s['alternate_font'])); 
     49          # Secondary font 
     50          $alternate_font_selectors = '#blogdesc, #supranav, #content-info, #subcategories, #comments-feed, #sidebar h2, #sidebar h3, #footer p'; 
     51          if (isset($s['alternate_font'])) self::prop($css,$alternate_font_selectors,'font-family',self::fontDef($s['alternate_font'])); 
     52           
     53          # Inside posts links font weight 
     54          $links = '.post-excerpt a, .post-content a'; 
     55          if (isset($s['body_link_w'])) self::prop($css,$links,'font-weight',($s['body_link_w'] ? 'bold' : 'normal')); 
    5256 
    53           # Link colors 
    54           if isset($s['body_link_c']) self::prop($css,'a','color',$s['body_link_c']); 
    55           if isset($s['body_link_v_c']) self::prop($css,'a:visited','color',$s['body_link_v_c']); 
    56           if isset($s['body_link_f_c']) self::prop($css,'a:hover, a:focus, a:active','color',$s['body_link_f_c']); 
     57          # Inside posts links colors (normal, visited) 
     58          $links_selectors = '.post-excerpt a:link, .post-excerpt a:visited, .post-content a:link, .post-content a:visited'; 
     59          if (isset($s['body_link_v_c'])) self::prop($css,$links_selectors,'color',$s['body_link_v_c']); 
     60 
     61          # Inside posts links colors (hover, active, focus) 
     62          $links_alternate_selectors = '.post-excerpt a:hover, .post-excerpt a:active, .post-excerpt a:focus, .post-content a:hover, .post-content a:active, .post-content a:focus'; 
     63          if (isset($s['body_link_f_c'])) self::prop($css,$links_alternate_selectors,'color',$s['body_link_f_c']); 
    5764 
    5865          # Style directives 
  • themes/ductile/locales/fr/main.po

    r376 r378  
    11msgid "Style sheet upgraded." 
    22msgstr "Feuille de style mise à jour." 
     3 
     4msgid "Links in bold:" 
     5msgstr "Liens en gras :" 
     6 
     7msgid "Inside posts links" 
     8msgstr "Liens dans les billets" 
     9 
     10msgid "Normal and visited links color:" 
     11msgstr "Couleur des liens normaux et visités :" 
     12 
     13msgid "Active, hover and focus links color:" 
     14msgstr "Couleur des liens actifs, survolés et ayant le focus :" 
    315 
    416msgid "Fonts" 
     
    820msgstr "Famille de police principale :" 
    921 
    10 msgid "Alternate font:" 
     22msgid "Secondary font:" 
    1123msgstr "Famille de police secondaire :" 
    1224 
Note: See TracChangeset for help on using the changeset viewer.

Sites map