Changeset 376:e3fd223da7f8 for themes/ductile/_config.php
- Timestamp:
- 06/16/11 13:01:26 (14 years ago)
- Branch:
- themes
- File:
-
- 1 edited
-
themes/ductile/_config.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
themes/ductile/_config.php
r357 r376 13 13 14 14 l10n::set(dirname(__FILE__).'/locales/'.$_lang.'/main'); 15 16 $fonts = array( 17 __('default') => '', 18 __('Ductile primary') => 'Ductile body', 19 __('Ductile secondary') => 'Ductile alternate', 20 __('Times New Roman') => 'Times New Roman', 21 __('Georgia') => 'Georgia', 22 __('Garamond') => 'Garamond', 23 __('Helvetica/Arial') => 'Helvetica/Arial', 24 __('Verdana') => 'Verdana', 25 __('Trebuchet MS') => 'Trebuchet MS', 26 __('Impact') => 'Impact', 27 __('Monospace') => 'Monospace' 28 ); 15 29 16 30 function adjustColor($c) … … 40 54 'body_link_c' => null, 41 55 'body_link_v_c' => null, 42 'body_link_f_c' => null 56 'body_link_f_c' => null, 57 'body_font' => null, 58 'alternate_font' => null 43 59 ); 44 60 … … 59 75 $ductile_user['body_link_v_c'] = adjustColor($_POST['body_link_v_c']); 60 76 77 $ductile_user['body_font'] = $_POST['body_font']; 78 $ductile_user['alternate_font'] = $_POST['alternate_font']; 79 61 80 $core->blog->settings->addNamespace('themes'); 62 81 $core->blog->settings->themes->put('ductile_style',serialize($ductile_user)); … … 74 93 } 75 94 95 echo '<fieldset><legend>'.__('Fonts').'</legend>'. 96 '<p class="field"><label for="body_font">'.__('Main font:').' '. 97 form::combo('body_font',$fonts,$ductile_user['body_font']).'</label></p>'. 98 99 '<p class="field"><label for="alternate_font">'.__('Alternate font:').' '. 100 form::combo('alternate_font',$fonts,$ductile_user['alternate_font']).'</label></p>'. 101 '</fieldset>'; 102 76 103 echo '<fieldset><legend>'.__('Links').'</legend>'. 77 104 '<p class="field"><label for="body_link_c">'.__('Links color:').' '.
Note: See TracChangeset
for help on using the changeset viewer.
