Dotclear

Changeset 377:80daf72eb48f


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

Configuration des polices - step 1.1 : controle de presence des elements de config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/_public.php

    r376 r377  
    4545          # Main font 
    4646          $main_font_selectors = 'body, #supranav li a span, #comments.me, a.comment-number'; 
    47           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 
    4949          # Alternate font 
    5050          $alternate_font_selectors = '#blogdesc, #supranav li, #content-info, #subcategories, #comments-feed, #sidebar h2, #sidebar h3, #footer p'; 
    51           self::prop($css,$alternate_font_selectors,'font-family',self::fontDef($s['alternate_font'])); 
     51          if isset($s['alternate_font']) self::prop($css,$alternate_font_selectors,'font-family',self::fontDef($s['alternate_font'])); 
    5252 
    5353          # Link colors 
    54           self::prop($css,'a','color',$s['body_link_c']); 
    55           self::prop($css,'a:visited','color',$s['body_link_v_c']); 
    56           self::prop($css,'a:hover, a:focus, a:active','color',$s['body_link_f_c']); 
     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']); 
    5757 
    5858          # Style directives 
     
    7070 
    7171     protected static $fonts = array( 
     72          // Theme standard 
    7273          'Ductile body' => '"Century Schoolbook", "Century Schoolbook L", Georgia, serif', 
    7374          'Ductile alternate' => '"Franklin gothic medium", "arial narrow", "DejaVu Sans Condensed", "helvetica neue", helvetica, sans-serif', 
     75 
     76          // Serif families 
    7477          'Times New Roman' => 'Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif', 
    7578          'Georgia' => 'Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif," "Bitstream Vera Serif", "Liberation Serif", Georgia, serif', 
    7679          'Garamond' => '"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif', 
     80 
     81          // Sans-serif families 
    7782          'Helvetica/Arial' => 'Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif', 
    7883          'Verdana' => 'Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif', 
    7984          'Trebuchet MS' => '"Segoe UI", Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif', 
     85 
     86          // Cursive families 
    8087          'Impact' => 'Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial Black", sans-serif', 
     88 
     89          // Monospace families 
    8190          'Monospace' => 'Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace' 
    8291     ); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map