Changeset 378:a103e2765a14
- Timestamp:
- 06/16/11 23:11:22 (14 years ago)
- Branch:
- themes
- Location:
- themes/ductile
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
themes/ductile/_config.php
r376 r378 52 52 53 53 $ductile_base = array( 54 'body_link_ c' => null,54 'body_link_w' => null, 55 55 'body_link_v_c' => null, 56 56 'body_link_f_c' => null, … … 71 71 try 72 72 { 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']); 74 76 $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']);76 77 77 78 $ductile_user['body_font'] = $_POST['body_font']; … … 97 98 form::combo('body_font',$fonts,$ductile_user['body_font']).'</label></p>'. 98 99 99 '<p class="field"><label for="alternate_font">'.__(' Alternatefont:').' '.100 '<p class="field"><label for="alternate_font">'.__('Secondary font:').' '. 100 101 form::combo('alternate_font',$fonts,$ductile_user['alternate_font']).'</label></p>'. 101 102 '</fieldset>'; 102 103 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>'.104 echo '<fieldset><legend>'.__('Inside posts links').'</legend>'. 105 '<p class="field"><label for="body_link_w">'.__('Links in bold:').' '. 106 form::checkbox('body_link_w',1,$ductile_user['body_link_w']).'</label>'.'</p>'. 106 107 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> '. 109 form::field('body_link_v_c',7,7,$ductile_user['body_link_v_c'],'colorpicker').'</p>'. 109 110 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> '. 112 form::field('body_link_f_c',7,7,$ductile_user['body_link_f_c'],'colorpicker').'</p>'. 112 113 '</fieldset>'; 113 114 -
themes/ductile/_public.php
r377 r378 45 45 # Main font 46 46 $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'])); 48 48 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')); 52 56 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']); 57 64 58 65 # Style directives -
themes/ductile/locales/fr/main.po
r376 r378 1 1 msgid "Style sheet upgraded." 2 2 msgstr "Feuille de style mise à jour." 3 4 msgid "Links in bold:" 5 msgstr "Liens en gras :" 6 7 msgid "Inside posts links" 8 msgstr "Liens dans les billets" 9 10 msgid "Normal and visited links color:" 11 msgstr "Couleur des liens normaux et visités :" 12 13 msgid "Active, hover and focus links color:" 14 msgstr "Couleur des liens actifs, survolés et ayant le focus :" 3 15 4 16 msgid "Fonts" … … 8 20 msgstr "Famille de police principale :" 9 21 10 msgid " Alternatefont:"22 msgid "Secondary font:" 11 23 msgstr "Famille de police secondaire :" 12 24
Note: See TracChangeset
for help on using the changeset viewer.