Dotclear

Changeset 3158


Ignore:
Timestamp:
08/04/13 17:29:04 (10 years ago)
Author:
brol
Message:

version 1.4 : modif widget

Location:
plugins/shortArchives
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/shortArchives/_define.php

    r3150 r3158  
    1717     /* Description*/         "Display complete archives of your blog displayed in an accordion", 
    1818     /* Author */             "annso, Pierre Van Glabeke", 
    19      /* Version */            '1.3', 
     19     /* Version */            '1.4', 
    2020     /* Permissions */        'usage,contentadmin' 
    2121); 
  • plugins/shortArchives/_public.php

    r3150 r3158  
    5656                           'nbpost' => $rs->nb_post); 
    5757        } 
    58                    
    59         $res = 
    60             '<div class="shortArchives">'. 
     58 
     59              $res = ($w->content_only ? '' : '<div class="shortArchives'.($w->class ? ' '.html::escapeHTML($w->class) : '').'">'). 
    6160            ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 
    6261            '<ul>'; 
     
    7170               $res .= '</ul></li>'; 
    7271          } 
    73         $res .= '</ul></div>'; 
     72        $res .= '</ul>'. 
     73          ($w->content_only ? '' : '</div>'); 
    7474           
    7575        return $res; 
  • plugins/shortArchives/_widgets.php

    r3150 r3158  
    2828                    ) 
    2929          ); 
     30    $w->shortArchives->setting('content_only',__('Content only'),0,'check'); 
     31    $w->shortArchives->setting('class',__('CSS class:'),''); 
    3032     } 
    3133} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map