Dotclear


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/_config.php

    r1011 r1096  
    4444} 
    4545 
    46  
    47  
    4846$contexts = array( 
    4947     'default' => __('Home (first page)'), 
     
    6765     __('Impact') => 'Impact', 
    6866     __('Monospace') => 'Monospace' 
     67); 
     68 
     69$webfont_apis = array( 
     70     __('none') => '', 
     71     __('javascript (Adobe)') => 'js', 
     72     __('stylesheet (Google)') => 'css' 
    6973); 
    7074 
     
    225229     'subtitle_hidden' => null, 
    226230     'logo_src' => null, 
     231     'preview_not_mandatory' => null, 
    227232     // CSS 
    228233     'body_font' => null, 
     234     'body_webfont_family' => null, 
     235     'body_webfont_url' => null, 
     236     'body_webfont_api' => null, 
    229237     'alternate_font' => null, 
     238     'alternate_webfont_family' => null, 
     239     'alternate_webfont_url' => null, 
     240     'alternate_webfont_api' => null, 
    230241     'blog_title_w' => null, 
    231242     'blog_title_s' => null, 
     
    327338               $ductile_user['subtitle_hidden'] = (integer) !empty($_POST['subtitle_hidden']); 
    328339               $ductile_user['logo_src'] = $_POST['logo_src']; 
     340               $ductile_user['preview_not_mandatory'] = (integer) !empty($_POST['preview_not_mandatory']); 
    329341 
    330342               $ductile_stickers = array(); 
     
    368380          if ($conf_tab == 'css') { 
    369381               $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 
    370386               $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']; 
    371390 
    372391               $ductile_user['blog_title_w'] = (integer) !empty($_POST['blog_title_w']); 
     
    493512echo '</fieldset>'; 
    494513 
     514echo '<fieldset><legend>'.__('Miscellaneous options').'</legend>'; 
     515echo '<p class="field"><label for="preview_not_mandatory">'.__('Comment preview is not mandatory:').' '. 
     516form::checkbox('preview_not_mandatory',1,$ductile_user['preview_not_mandatory']).'</label>'.'</p>'; 
     517echo '</fieldset>'; 
     518 
    495519echo '<input type="hidden" name="conf_tab" value="html">'; 
    496520echo '<p class="clear">'.form::hidden('ds_order','').'<input type="submit" value="'.__('Save').'" />'.$core->formNonce().'</p>'; 
     
    507531echo '<h3>'.__('General settings').'</h3>'; 
    508532 
    509 echo '<fieldset><legend>'.__('Fonts').'</legend>'. 
     533echo '<fieldset><legend>'.__('Fonts').'</legend>'; 
     534 
     535echo '<div class="two-cols">'; 
     536echo '<div class="col">'; 
     537echo 
    510538'<p class="field"><label for="body_font">'.__('Main:').' '. 
    511539form::combo('body_font',$fonts,$ductile_user['body_font']).'</label>'. 
    512540(!empty($ductile_user['body_font']) ? ' '.fontDef($ductile_user['body_font']) : ''). 
    513541'</p>'. 
    514  
     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> '. 
     544form::field('body_webfont_family',25,255,$ductile_user['body_webfont_family']).'</p>'. 
     545'<p class="field"><label for="body_webfont_url">'.__('Webfont URL:').'</label> '. 
     546form::field('body_webfont_url',50,255,$ductile_user['body_webfont_url']).'</p>'. 
     547'<p class="field"><label for="body_webfont_url">'.__('Webfont API:').' '. 
     548form::combo('body_webfont_api',$webfont_apis,$ductile_user['body_webfont_api']).'</label>'.'</p>'; 
     549echo '</div>'; 
     550echo '<div class="col">'; 
     551echo 
    515552'<p class="field"><label for="alternate_font">'.__('Secondary:').' '. 
    516553form::combo('alternate_font',$fonts,$ductile_user['alternate_font']).'</label>'. 
    517554(!empty($ductile_user['alternate_font']) ? ' '.fontDef($ductile_user['alternate_font']) : ''). 
    518555'</p>'. 
    519 '</fieldset>'; 
     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> '. 
     558form::field('alternate_webfont_family',25,255,$ductile_user['alternate_webfont_family']).'</p>'. 
     559'<p class="field"><label for="alternate_webfont_url">'.__('Webfont URL:').'</label> '. 
     560form::field('alternate_webfont_url',50,255,$ductile_user['alternate_webfont_url']).'</p>'. 
     561'<p class="field"><label for="alternate_webfont_api">'.__('Webfont API:').' '. 
     562form::combo('alternate_webfont_api',$webfont_apis,$ductile_user['alternate_webfont_api']).'</label>'.'</p>'; 
     563echo '</div>'; 
     564echo '</div>'; 
     565echo '</fieldset>'; 
    520566 
    521567echo '<div class="two-cols">'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map