Changeset 2275
- Timestamp:
- 05/28/10 11:45:47 (14 years ago)
- Location:
- plugins/postExpired
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/postExpired/_define.php
r2187 r2275 17 17 /* Description*/ "Change entries options at a given date", 18 18 /* Author */ "JC Denis", 19 /* Version */ '0.2 ',19 /* Version */ '0.2.1', 20 20 /* Permissions */ 'contentadmin' 21 21 ); 22 /* date */ #20100 41322 /* date */ #20100528 23 23 ?> -
plugins/postExpired/_public.php
r2187 r2275 194 194 $res = sprintf($f,"dt::dt2str('".$format."',\$_ctx->posts->postExpiredDate())"); 195 195 else 196 $res = sprintf($f,"dt::dt2str(( !version_compare(DC_VERSION,'2.1.6','<=') ? \$core->blog->settings->system->date_format : \$core->blog->settings->date_format),\$_ctx->posts->postExpiredDate())");196 $res = sprintf($f,"dt::dt2str((version_compare(DC_VERSION,'2.2-alpha','>=') ? \$core->blog->settings->system->date_format : \$core->blog->settings->date_format),\$_ctx->posts->postExpiredDate())"); 197 197 198 198 return '<?php if (null !== $_ctx->posts->postExpiredDate()) { echo '.$res.'; } ?>'; … … 201 201 public static function EntryExpiredTime($attr) 202 202 { 203 return '<?php if (null !== $_ctx->posts->postExpiredDate()) { echo '.sprintf($GLOBALS['core']->tpl->getFilters($attr),"dt::dt2str(".(!empty($attr['format']) ? "'".addslashes($attr['format'])."'" : "( !version_compare(DC_VERSION,'2.1.6','<=') ? \$core->blog->settings->system->time_format : \$core->blog->settings->time_format)").",\$_ctx->posts->postExpiredDate())").'; } ?>';203 return '<?php if (null !== $_ctx->posts->postExpiredDate()) { echo '.sprintf($GLOBALS['core']->tpl->getFilters($attr),"dt::dt2str(".(!empty($attr['format']) ? "'".addslashes($attr['format'])."'" : "(version_compare(DC_VERSION,'2.2-alpha','>=') ? \$core->blog->settings->system->time_format : \$core->blog->settings->time_format)").",\$_ctx->posts->postExpiredDate())").'; } ?>'; 204 204 } 205 205 -
plugins/postExpired/release.txt
r2187 r2275 1 0.2.1 20100528 2 * Fixed DC 2.1.7 settings bugs 3 1 4 0.2 20100414 2 5 * Added actions choice (status,category,selected)
Note: See TracChangeset
for help on using the changeset viewer.