- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
themes/ductile/_config.php
r1096 r1011 44 44 } 45 45 46 47 46 48 $contexts = array( 47 49 'default' => __('Home (first page)'), … … 65 67 __('Impact') => 'Impact', 66 68 __('Monospace') => 'Monospace' 67 );68 69 $webfont_apis = array(70 __('none') => '',71 __('javascript (Adobe)') => 'js',72 __('stylesheet (Google)') => 'css'73 69 ); 74 70 … … 229 225 'subtitle_hidden' => null, 230 226 'logo_src' => null, 231 'preview_not_mandatory' => null,232 227 // CSS 233 228 'body_font' => null, 234 'body_webfont_family' => null,235 'body_webfont_url' => null,236 'body_webfont_api' => null,237 229 'alternate_font' => null, 238 'alternate_webfont_family' => null,239 'alternate_webfont_url' => null,240 'alternate_webfont_api' => null,241 230 'blog_title_w' => null, 242 231 'blog_title_s' => null, … … 338 327 $ductile_user['subtitle_hidden'] = (integer) !empty($_POST['subtitle_hidden']); 339 328 $ductile_user['logo_src'] = $_POST['logo_src']; 340 $ductile_user['preview_not_mandatory'] = (integer) !empty($_POST['preview_not_mandatory']);341 329 342 330 $ductile_stickers = array(); … … 380 368 if ($conf_tab == 'css') { 381 369 $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 386 370 $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'];390 371 391 372 $ductile_user['blog_title_w'] = (integer) !empty($_POST['blog_title_w']); … … 512 493 echo '</fieldset>'; 513 494 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 519 495 echo '<input type="hidden" name="conf_tab" value="html">'; 520 496 echo '<p class="clear">'.form::hidden('ds_order','').'<input type="submit" value="'.__('Save').'" />'.$core->formNonce().'</p>'; … … 531 507 echo '<h3>'.__('General settings').'</h3>'; 532 508 533 echo '<fieldset><legend>'.__('Fonts').'</legend>'; 534 535 echo '<div class="two-cols">'; 536 echo '<div class="col">'; 537 echo 509 echo '<fieldset><legend>'.__('Fonts').'</legend>'. 538 510 '<p class="field"><label for="body_font">'.__('Main:').' '. 539 511 form::combo('body_font',$fonts,$ductile_user['body_font']).'</label>'. 540 512 (!empty($ductile_user['body_font']) ? ' '.fontDef($ductile_user['body_font']) : ''). 541 513 '</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 552 515 '<p class="field"><label for="alternate_font">'.__('Secondary:').' '. 553 516 form::combo('alternate_font',$fonts,$ductile_user['alternate_font']).'</label>'. 554 517 (!empty($ductile_user['alternate_font']) ? ' '.fontDef($ductile_user['alternate_font']) : ''). 555 518 '</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>'; 566 520 567 521 echo '<div class="two-cols">';
Note: See TracChangeset
for help on using the changeset viewer.