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