Dotclear

Changeset 656:897d6fcceb43 for themes


Ignore:
Timestamp:
07/26/11 09:44:48 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
themes
Message:

Affichage de la famille de police sélectionnée

Location:
themes/ductile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/_config.php

    r655 r656  
    5858 
    5959     return null; 
     60} 
     61 
     62$font_families = array( 
     63     // Theme standard 
     64     'Ductile body' => '"Century Schoolbook", "Century Schoolbook L", Georgia, serif', 
     65     'Ductile alternate' => '"Franklin gothic medium", "arial narrow", "DejaVu Sans Condensed", "helvetica neue", helvetica, sans-serif', 
     66 
     67     // Serif families 
     68     'Times New Roman' => 'Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif', 
     69     'Georgia' => 'Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif', 
     70     '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', 
     71 
     72     // Sans-serif families 
     73     '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', 
     74     'Verdana' => 'Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif', 
     75     'Trebuchet MS' => '"Segoe UI", Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif', 
     76 
     77     // Cursive families 
     78     'Impact' => 'Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial Black", sans-serif', 
     79 
     80     // Monospace families 
     81     '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' 
     82); 
     83 
     84function fontDef($c) 
     85{ 
     86     global $font_families; 
     87      
     88     return isset($font_families[$c]) ? '<span style="position:absolute;top:0;left:32em;">'.$font_families[$c].'</span>' : ''; 
    6089} 
    6190 
     
    457486echo '<fieldset><legend>'.__('Fonts').'</legend>'. 
    458487'<p class="field"><label for="body_font">'.__('Main:').' '. 
    459 form::combo('body_font',$fonts,$ductile_user['body_font']).'</label></p>'. 
     488form::combo('body_font',$fonts,$ductile_user['body_font']).'</label>'. 
     489(!empty($ductile_user['body_font']) ? ' '.fontDef($ductile_user['body_font']) : ''). 
     490'</p>'. 
    460491 
    461492'<p class="field"><label for="alternate_font">'.__('Secondary:').' '. 
    462 form::combo('alternate_font',$fonts,$ductile_user['alternate_font']).'</label></p>'. 
     493form::combo('alternate_font',$fonts,$ductile_user['alternate_font']).'</label>'. 
     494(!empty($ductile_user['alternate_font']) ? ' '.fontDef($ductile_user['alternate_font']) : ''). 
     495'</p>'. 
    463496'</fieldset>'; 
    464497 
  • themes/ductile/_prepend.php

    r636 r656  
    1010# -- END LICENSE BLOCK ----------------------------------------- 
    1111 
    12 # Public and Admin modes : 
    13  
    1412if (!defined('DC_RC_PATH')) { return; } 
    15  
    16 # Admin mode only : 
    1713 
    1814# Behaviors 
Note: See TracChangeset for help on using the changeset viewer.

Sites map