Changeset 970:047d7b4a6ffd
- Timestamp:
- 11/06/12 17:21:21 (13 years ago)
- Branch:
- default
- Children:
- 971:a891f8b86552, 980:308abbb4125b
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_pref.php
r953 r970 89 89 $post_url_combo[html::escapeHTML($blog_settings->system->post_url_format)] = html::escapeHTML($blog_settings->system->post_url_format); 90 90 } 91 92 # Note title tag combo 93 $note_title_tag_combo = array( 94 __('H4') => 0, 95 __('H3') => 1, 96 __('P') => 2 97 ); 91 98 92 99 # Image title combo … … 209 216 $blog_settings->system->put('wiki_comments',!empty($_POST['wiki_comments'])); 210 217 $blog_settings->system->put('enable_xmlrpc',!empty($_POST['enable_xmlrpc'])); 218 $blog_settings->system->put('note_title_tag',$_POST['note_title_tag']); 211 219 212 220 $blog_settings->system->put('nb_post_per_page',$nb_post_per_page); … … 331 339 form::combo('blog_timezone',dt::getZones(true,true),html::escapeHTML($blog_settings->system->blog_timezone)). 332 340 '</label></p>'. 333 '</div>'. 334 335 '<div class="col">'. 341 336 342 '<p><label for="copyright_notice">'.__('Copyright notice:'). 337 343 form::field('copyright_notice',30,255,html::escapeHTML($blog_settings->system->copyright_notice)). 338 344 '</label></p>'. 339 345 '</div>'. 346 347 '<div class="col">'. 340 348 '<p><label for="post_url_format">'.__('New post URL format:'). 341 349 form::combo('post_url_format',$post_url_combo,html::escapeHTML($blog_settings->system->post_url_format)). 342 350 '</label></p>'. 343 351 352 '<p><label for="note_title_tag">'.__('Note title HTML tag:'). 353 form::combo('note_title_tag',$note_title_tag_combo,$blog_settings->system->note_title_tag). 354 '</label></p>'. 355 344 356 '<p><label for="enable_xmlrpc" class="classic">'. 345 357 form::checkbox('enable_xmlrpc','1',$blog_settings->system->enable_xmlrpc). -
inc/core/class.dc.blog.php
r836 r970 1598 1598 $this->core->initWikiPost(); 1599 1599 $this->core->wiki2xhtml->setOpt('note_prefix','pnote-'.$post_id); 1600 switch ($this->settings->system->note_title_tag) { 1601 case 1: 1602 $tag = 'h3'; 1603 break; 1604 case 2: 1605 $tag = 'p'; 1606 break; 1607 default: 1608 $tag = 'h4'; 1609 break; 1610 } 1611 $this->core->wiki2xhtml->setOpt('note_str','<div class="footnotes"><'.$tag.' class="footnotes-title">'. 1612 __('Notes').'</'.$tag.'>%s</div>'); 1613 $this->core->wiki2xhtml->setOpt('note_str_single','<div class="footnotes"><'.$tag.' class="footnotes-title">'. 1614 __('Note').'</'.$tag.'>%s</div>'); 1600 1615 if (strpos($lang,'fr') === 0) { 1601 1616 $this->core->wiki2xhtml->setOpt('active_fr_syntax',1); -
locales/fr/main.po
r968 r970 272 272 msgstr "Format d'URL des nouveaux billets :" 273 273 274 msgid "Note title HTML tag:" 275 msgstr "Balise HTML pour le titre des notes :" 276 277 msgid "Note" 278 msgstr "Note" 279 280 msgid "Notes" 281 msgstr "Notes" 282 274 283 msgid "Enable XML/RPC interface" 275 284 msgstr "Activer l'interface XML/RPC"
Note: See TracChangeset
for help on using the changeset viewer.