Dotclear

Changeset 3310


Ignore:
Timestamp:
12/14/14 23:58:18 (9 years ago)
Author:
brol
Message:

v1.5 : cf changelog

Location:
plugins/shortArchives
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • plugins/shortArchives/_admin.php

    r3222 r3310  
    1414 
    1515require dirname(__FILE__).'/_widgets.php'; 
    16 ?> 
  • plugins/shortArchives/_define.php

    r3222 r3310  
    1717     /* Description*/         "Display complete archives of your blog displayed in an accordion", 
    1818     /* Author */             "annso, Pierre Van Glabeke", 
    19      /* Version */            '1.4', 
    20      /* Permissions */        'usage,contentadmin' 
     19     /* Version */            "1.5", 
     20     /* Properties */ 
     21     array( 
     22          'permissions' => 'usage,contentadmin', 
     23          'type' => 'plugin', 
     24          'dc_min' => '2.7', 
     25          'support' => 'http://forum.dotclear.org/viewtopic.php?pid=321044#p321044', 
     26          'details' => 'http://plugins.dotaddict.org/dc2/details/shortArchives' 
     27          ) 
    2128); 
    22 ?> 
  • plugins/shortArchives/_public.php

    r3222 r3310  
    3535          global $core; 
    3636 
     37          if ($w->offline) 
     38               return; 
     39 
    3740          if (($w->homeonly == 1 && $core->url->type != 'default') || 
    3841               ($w->homeonly == 2 && $core->url->type == 'default')) { 
     
    5558        } 
    5659 
    57               $res = ($w->content_only ? '' : '<div class="shortArchives'.($w->class ? ' '.html::escapeHTML($w->class) : '').'">'). 
    58             ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 
    59             '<ul>'; 
     60          $res = 
     61          ($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : ''). 
     62          '<ul>'; 
     63           
    6064          foreach($posts as $annee=>$post) { 
    6165               $res .= '<li><span>'.$annee.'</span><ul>'; 
     
    6872               $res .= '</ul></li>'; 
    6973          } 
    70         $res .= '</ul>'. 
    71           ($w->content_only ? '' : '</div>'); 
    72            
    73         return $res; 
     74        $res .= '</ul>'; 
     75 
     76          return $w->renderDiv($w->content_only,'shortArchives '.$w->class,'',$res); 
    7477     } 
    7578      
    7679} 
    77 ?> 
  • plugins/shortArchives/_widgets.php

    r3222 r3310  
    3030    $w->shortArchives->setting('content_only',__('Content only'),0,'check'); 
    3131    $w->shortArchives->setting('class',__('CSS class:'),''); 
     32          $w->shortArchives->setting('offline',__('Offline'),0,'check'); 
    3233     } 
    3334} 
    34 ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map