Changeset 2776:75004db1c37c
- Timestamp:
- 11/10/14 16:31:35 (11 years ago)
- Branch:
- default
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_pref.php
r2720 r2776 231 231 $blog_settings->system->put('comments_nofollow',!empty($_POST['comments_nofollow'])); 232 232 $blog_settings->system->put('wiki_comments',!empty($_POST['wiki_comments'])); 233 $blog_settings->system->put('comment_preview_optional',!empty($_POST['comment_preview_optional'])); 233 234 $blog_settings->system->put('enable_xmlrpc',!empty($_POST['enable_xmlrpc'])); 234 235 $blog_settings->system->put('note_title_tag',$_POST['note_title_tag']); … … 473 474 form::checkbox('wiki_comments','1',$blog_settings->system->wiki_comments). 474 475 __('Wiki syntax for comments').'</label></p>'. 476 '<p><label for="comment_preview_optional" class="classic">'. 477 form::checkbox('comment_preview_optional','1',$blog_settings->system->comment_preview_optional). 478 __('Preview of comment before submit is not mandatory').'</label></p>'. 475 479 '</div>'. 476 480 -
inc/public/class.dc.template.php
r2774 r2776 118 118 # Comment preview 119 119 $this->addBlock('IfCommentPreview',array($this,'IfCommentPreview')); 120 $this->addBlock('IfCommentPreviewOptional',array($this,'IfCommentPreviewOptional')); 120 121 $this->addValue('CommentPreviewName',array($this,'CommentPreviewName')); 121 122 $this->addValue('CommentPreviewEmail',array($this,'CommentPreviewEmail')); … … 2409 2410 /* Comment preview -------------------------------- */ 2410 2411 /*dtd 2412 <!ELEMENT tpl:IfCommentPreviewOptional - - -- Container displayed if comment preview is optional or currently previewed --> 2413 */ 2414 public function IfCommentPreviewOptional($attr,$content) 2415 { 2416 return 2417 '<?php if ($core->blog->settings->system->comment_preview_optional || ($_ctx->comment_preview !== null && $_ctx->comment_preview["preview"])) : ?>'. 2418 $content. 2419 '<?php endif; ?>'; 2420 } 2421 2422 /*dtd 2411 2423 <!ELEMENT tpl:IfCommentPreview - - -- Container displayed if comment is being previewed --> 2412 2424 */ -
inc/public/default-templates/currywurst/_simple-entry.html
r2641 r2776 164 164 <p class="buttons"> 165 165 <button type="submit" class="preview" name="preview" value="{{tpl:lang Preview}}">{{tpl:lang Preview}}</button> 166 <tpl:IfCommentPreview >166 <tpl:IfCommentPreviewOptional> 167 167 <button type="submit" class="submit" value="{{tpl:lang Send}}">{{tpl:lang Send}}</button> 168 </tpl:IfCommentPreview >168 </tpl:IfCommentPreviewOptional> 169 169 </p> 170 170 </form> -
locales/fr/main.po
r2736 r2776 364 364 msgstr "Syntaxe wiki pour les commentaires" 365 365 366 msgid "Preview of comment before submit is not mandatory" 367 msgstr "La prévisualisation des commentaires est optionnelle avant leur envoi" 368 366 369 msgid "Accept trackbacks" 367 370 msgstr "Accepter les rétroliens"
Note: See TracChangeset
for help on using the changeset viewer.