Changeset 656:897d6fcceb43 for themes
- Timestamp:
- 07/26/11 09:44:48 (14 years ago)
- Branch:
- themes
- Location:
- themes/ductile
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
themes/ductile/_config.php
r655 r656 58 58 59 59 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 84 function 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>' : ''; 60 89 } 61 90 … … 457 486 echo '<fieldset><legend>'.__('Fonts').'</legend>'. 458 487 '<p class="field"><label for="body_font">'.__('Main:').' '. 459 form::combo('body_font',$fonts,$ductile_user['body_font']).'</label></p>'. 488 form::combo('body_font',$fonts,$ductile_user['body_font']).'</label>'. 489 (!empty($ductile_user['body_font']) ? ' '.fontDef($ductile_user['body_font']) : ''). 490 '</p>'. 460 491 461 492 '<p class="field"><label for="alternate_font">'.__('Secondary:').' '. 462 form::combo('alternate_font',$fonts,$ductile_user['alternate_font']).'</label></p>'. 493 form::combo('alternate_font',$fonts,$ductile_user['alternate_font']).'</label>'. 494 (!empty($ductile_user['alternate_font']) ? ' '.fontDef($ductile_user['alternate_font']) : ''). 495 '</p>'. 463 496 '</fieldset>'; 464 497 -
themes/ductile/_prepend.php
r636 r656 10 10 # -- END LICENSE BLOCK ----------------------------------------- 11 11 12 # Public and Admin modes :13 14 12 if (!defined('DC_RC_PATH')) { return; } 15 16 # Admin mode only :17 13 18 14 # Behaviors
Note: See TracChangeset
for help on using the changeset viewer.