Dotclear


Ignore:
Timestamp:
01/19/13 12:20:15 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Preview of comment may not be mandatory before posting for Ductile theme (new option in config)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/_config.php

    r1081 r1096  
    229229     'subtitle_hidden' => null, 
    230230     'logo_src' => null, 
     231     'preview_not_mandatory' => null, 
    231232     // CSS 
    232233     'body_font' => null, 
     
    337338               $ductile_user['subtitle_hidden'] = (integer) !empty($_POST['subtitle_hidden']); 
    338339               $ductile_user['logo_src'] = $_POST['logo_src']; 
     340               $ductile_user['preview_not_mandatory'] = (integer) !empty($_POST['preview_not_mandatory']); 
    339341 
    340342               $ductile_stickers = array(); 
     
    510512echo '</fieldset>'; 
    511513 
     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 
    512519echo '<input type="hidden" name="conf_tab" value="html">'; 
    513520echo '<p class="clear">'.form::hidden('ds_order','').'<input type="submit" value="'.__('Save').'" />'.$core->formNonce().'</p>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map