Dotclear


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/_config.php

    r1096 r1011  
    4444} 
    4545 
     46 
     47 
    4648$contexts = array( 
    4749     'default' => __('Home (first page)'), 
     
    6567     __('Impact') => 'Impact', 
    6668     __('Monospace') => 'Monospace' 
    67 ); 
    68  
    69 $webfont_apis = array( 
    70      __('none') => '', 
    71      __('javascript (Adobe)') => 'js', 
    72      __('stylesheet (Google)') => 'css' 
    7369); 
    7470 
     
    229225     'subtitle_hidden' => null, 
    230226     'logo_src' => null, 
    231      'preview_not_mandatory' => null, 
    232227     // CSS 
    233228     'body_font' => null, 
    234      'body_webfont_family' => null, 
    235      'body_webfont_url' => null, 
    236      'body_webfont_api' => null, 
    237229     'alternate_font' => null, 
    238      'alternate_webfont_family' => null, 
    239      'alternate_webfont_url' => null, 
    240      'alternate_webfont_api' => null, 
    241230     'blog_title_w' => null, 
    242231     'blog_title_s' => null, 
     
    338327               $ductile_user['subtitle_hidden'] = (integer) !empty($_POST['subtitle_hidden']); 
    339328               $ductile_user['logo_src'] = $_POST['logo_src']; 
    340                $ductile_user['preview_not_mandatory'] = (integer) !empty($_POST['preview_not_mandatory']); 
    341329 
    342330               $ductile_stickers = array(); 
     
    380368          if ($conf_tab == 'css') { 
    381369               $ductile_user['body_font'] = $_POST['body_font']; 
    382                $ductile_user['body_webfont_family'] = $_POST['body_webfont_family']; 
    383                $ductile_user['body_webfont_url'] = $_POST['body_webfont_url']; 
    384                $ductile_user['body_webfont_api'] = $_POST['body_webfont_api']; 
    385  
    386370               $ductile_user['alternate_font'] = $_POST['alternate_font']; 
    387                $ductile_user['alternate_webfont_family'] = $_POST['alternate_webfont_family']; 
    388                $ductile_user['alternate_webfont_url'] = $_POST['alternate_webfont_url']; 
    389                $ductile_user['alternate_webfont_api'] = $_POST['alternate_webfont_api']; 
    390371 
    391372               $ductile_user['blog_title_w'] = (integer) !empty($_POST['blog_title_w']); 
     
    512493echo '</fieldset>'; 
    513494 
    514 echo '<fieldset><legend>'.__('Miscellaneous options').'</legend>'; 
    515 echo '<p class="field"><label for="preview_not_mandatory">'.__('Comment preview is not mandatory:').' '. 
    516 form::checkbox('preview_not_mandatory',1,$ductile_user['preview_not_mandatory']).'</label>'.'</p>'; 
    517 echo '</fieldset>'; 
    518  
    519495echo '<input type="hidden" name="conf_tab" value="html">'; 
    520496echo '<p class="clear">'.form::hidden('ds_order','').'<input type="submit" value="'.__('Save').'" />'.$core->formNonce().'</p>'; 
     
    531507echo '<h3>'.__('General settings').'</h3>'; 
    532508 
    533 echo '<fieldset><legend>'.__('Fonts').'</legend>'; 
    534  
    535 echo '<div class="two-cols">'; 
    536 echo '<div class="col">'; 
    537 echo 
     509echo '<fieldset><legend>'.__('Fonts').'</legend>'. 
    538510'<p class="field"><label for="body_font">'.__('Main:').' '. 
    539511form::combo('body_font',$fonts,$ductile_user['body_font']).'</label>'. 
    540512(!empty($ductile_user['body_font']) ? ' '.fontDef($ductile_user['body_font']) : ''). 
    541513'</p>'. 
    542 '<p class="form-note">'.__('Set main font to default to use webfont below.').'</p> '. 
    543 '<p class="field"><label for="body_webfont_family">'.__('Webfont family:').'</label> '. 
    544 form::field('body_webfont_family',25,255,$ductile_user['body_webfont_family']).'</p>'. 
    545 '<p class="field"><label for="body_webfont_url">'.__('Webfont URL:').'</label> '. 
    546 form::field('body_webfont_url',50,255,$ductile_user['body_webfont_url']).'</p>'. 
    547 '<p class="field"><label for="body_webfont_url">'.__('Webfont API:').' '. 
    548 form::combo('body_webfont_api',$webfont_apis,$ductile_user['body_webfont_api']).'</label>'.'</p>'; 
    549 echo '</div>'; 
    550 echo '<div class="col">'; 
    551 echo 
     514 
    552515'<p class="field"><label for="alternate_font">'.__('Secondary:').' '. 
    553516form::combo('alternate_font',$fonts,$ductile_user['alternate_font']).'</label>'. 
    554517(!empty($ductile_user['alternate_font']) ? ' '.fontDef($ductile_user['alternate_font']) : ''). 
    555518'</p>'. 
    556 '<p class="form-note">'.__('Set secondary font to default to use webfont below.').'</p> '. 
    557 '<p class="field"><label for="alternate_webfont_family">'.__('Webfont family:').'</label> '. 
    558 form::field('alternate_webfont_family',25,255,$ductile_user['alternate_webfont_family']).'</p>'. 
    559 '<p class="field"><label for="alternate_webfont_url">'.__('Webfont URL:').'</label> '. 
    560 form::field('alternate_webfont_url',50,255,$ductile_user['alternate_webfont_url']).'</p>'. 
    561 '<p class="field"><label for="alternate_webfont_api">'.__('Webfont API:').' '. 
    562 form::combo('alternate_webfont_api',$webfont_apis,$ductile_user['alternate_webfont_api']).'</label>'.'</p>'; 
    563 echo '</div>'; 
    564 echo '</div>'; 
    565 echo '</fieldset>'; 
     519'</fieldset>'; 
    566520 
    567521echo '<div class="two-cols">'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map