Changeset 3065
- Timestamp:
- 08/02/11 00:19:10 (12 years ago)
- Location:
- plugins/lastpostsExtend
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/lastpostsExtend/_admin.php
r2143 r3065 3 3 # This file is part of lastpostsExtend, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # -
plugins/lastpostsExtend/_define.php
r2562 r3065 3 3 # This file is part of lastpostsExtend, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # … … 17 17 /* Description*/ "Widget like lastposts with extended options", 18 18 /* Author */ "JC Denis", 19 /* Version */ ' 0.10',19 /* Version */ '2011.08.01', 20 20 /* Permissions */ 'admin' 21 21 ); 22 /* date */ #2010081923 22 ?> -
plugins/lastpostsExtend/_public.php
r2143 r3065 3 3 # This file is part of lastpostsExtend, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # -
plugins/lastpostsExtend/_widgets.php
r2562 r3065 3 3 # This file is part of lastpostsExtend, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # … … 35 35 ); 36 36 # type 37 $posttypes = array( 38 __('Post') => 'post', 39 __('Page') => 'page', 40 __('Gallery') => 'galitem' 41 ); 42 # plugin muppet types 43 if ($core->plugins->moduleExists('muppet')) { 44 $muppet_types = muppet::getPostTypes(); 45 if(is_array($muppet_types) && !empty($muppet_types)) { 46 47 foreach($muppet_types as $k => $v) { 48 $posttypes[$v['name']] = $k; 49 } 50 } 51 } 37 52 $w->lastpostsextend->setting( 38 53 'posttype', … … 40 55 'post', 41 56 'combo', 42 array( 43 __('Post') => 'post', 44 __('Page') => 'page', 45 __('Gallery') => 'galitem' 46 ) 57 $posttypes 47 58 ); 48 59 # Category (post and page have same category) … … 233 244 { 234 245 $params['sql'] .= 246 "AND post_creadt < post_upddt ". 247 "AND post_dt < post_upddt "; 248 /* 249 $params['sql'] .= 235 250 "AND TIMESTAMP(post_creadt ,'DD-MM-YYYY HH24:MI:SS') < TIMESTAMP(post_upddt ,'DD-MM-YYYY HH24:MI:SS') ". 236 251 "AND TIMESTAMP(post_dt ,'DD-MM-YYYY HH24:MI:SS') < TIMESTAMP(post_upddt ,'DD-MM-YYYY HH24:MI:SS') "; 237 252 */ 238 253 $params['order'] = $w->sortby == 'date' ? 'post_upddt ' : $w->sortby.' '; 239 254 } -
plugins/lastpostsExtend/release.txt
r2562 r3065 1 2011.08.01 2 * Added support of plugin muppet (post types) 3 * Try to fix date compare on sql request 4 1 5 0.10 20100819 2 6 * Sort by comments (annso)
Note: See TracChangeset
for help on using the changeset viewer.