Changeset 3310
- Timestamp:
- 12/14/14 23:58:18 (9 years ago)
- Location:
- plugins/shortArchives
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/shortArchives/_admin.php
r3222 r3310 14 14 15 15 require dirname(__FILE__).'/_widgets.php'; 16 ?> -
plugins/shortArchives/_define.php
r3222 r3310 17 17 /* Description*/ "Display complete archives of your blog displayed in an accordion", 18 18 /* 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 ) 21 28 ); 22 ?> -
plugins/shortArchives/_public.php
r3222 r3310 35 35 global $core; 36 36 37 if ($w->offline) 38 return; 39 37 40 if (($w->homeonly == 1 && $core->url->type != 'default') || 38 41 ($w->homeonly == 2 && $core->url->type == 'default')) { … … 55 58 } 56 59 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 60 64 foreach($posts as $annee=>$post) { 61 65 $res .= '<li><span>'.$annee.'</span><ul>'; … … 68 72 $res .= '</ul></li>'; 69 73 } 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); 74 77 } 75 78 76 79 } 77 ?> -
plugins/shortArchives/_widgets.php
r3222 r3310 30 30 $w->shortArchives->setting('content_only',__('Content only'),0,'check'); 31 31 $w->shortArchives->setting('class',__('CSS class:'),''); 32 $w->shortArchives->setting('offline',__('Offline'),0,'check'); 32 33 } 33 34 } 34 ?>
Note: See TracChangeset
for help on using the changeset viewer.