Dotclear


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

Configuration des polices - step 1 : family

File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/_config.php

    r357 r376  
    1313 
    1414l10n::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); 
    1529 
    1630function adjustColor($c) 
     
    4054     'body_link_c' => null, 
    4155     '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 
    4359); 
    4460 
     
    5975          $ductile_user['body_link_v_c'] = adjustColor($_POST['body_link_v_c']); 
    6076           
     77          $ductile_user['body_font'] = $_POST['body_font']; 
     78          $ductile_user['alternate_font'] = $_POST['alternate_font']; 
     79           
    6180          $core->blog->settings->addNamespace('themes'); 
    6281          $core->blog->settings->themes->put('ductile_style',serialize($ductile_user)); 
     
    7493} 
    7594 
     95echo '<fieldset><legend>'.__('Fonts').'</legend>'. 
     96'<p class="field"><label for="body_font">'.__('Main font:').' '. 
     97form::combo('body_font',$fonts,$ductile_user['body_font']).'</label></p>'. 
     98 
     99'<p class="field"><label for="alternate_font">'.__('Alternate font:').' '. 
     100form::combo('alternate_font',$fonts,$ductile_user['alternate_font']).'</label></p>'. 
     101'</fieldset>'; 
     102 
    76103echo '<fieldset><legend>'.__('Links').'</legend>'. 
    77104'<p class="field"><label for="body_link_c">'.__('Links color:').' '. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map