Dotclear

Changeset 970:047d7b4a6ffd for inc/core


Ignore:
Timestamp:
11/06/12 17:21:21 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Children:
971:a891f8b86552, 980:308abbb4125b
Message:

Notes' title can be now enclosed in h4 (default), h3 or p HTML tag. Fixes #1246

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.blog.php

    r836 r970  
    15981598               $this->core->initWikiPost(); 
    15991599               $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>'); 
    16001615               if (strpos($lang,'fr') === 0) { 
    16011616                    $this->core->wiki2xhtml->setOpt('active_fr_syntax',1); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map