Dotclear


Ignore:
Timestamp:
12/11/12 17:51:54 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Widget may now be displayed without inclusive div, fixes #1242

Location:
plugins/tags
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/tags/_public.php

    r945 r1063  
    256256           
    257257          $res = 
    258           '<div class="tags'.($w->class ? ' '.html::escapeHTML($w->class) : '').'">'. 
     258          ($w->content_only ? '' : '<div class="tags'.($w->class ? ' '.html::escapeHTML($w->class) : '').'">'). 
    259259          ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 
    260260          '<ul>'; 
     
    277277          } 
    278278           
    279           $res .= '</div>'; 
     279          $res .= ($w->content_only ? '' : '</div>'); 
    280280           
    281281          return $res; 
  • plugins/tags/_widgets.php

    r954 r1063  
    3636                    ) 
    3737          ); 
     38          $w->tags->setting('content_only',__('Content only'),0,'check'); 
    3839          $w->tags->setting('class',__('CSS class:'),''); 
    3940     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map