Linux 软件免费装

Plugin Name

开发者 levani01
更新时间 2009年8月21日 17:49
PHP版本: 2.7.x 及以上
WordPress版本: 2.8.4

标签

posts comments time date relative date relativedate

下载

1.0 1.1

详情介绍:

Easy Relative Date is a simple plugin to add relative date supports on wordpress powered websites, like 'Today', 'Yesterday', '2 Days Ago', '2 Weeks Ago', '2 'Seconds Ago', '2 Minutes Ago', '2 Hours Ago'. The main advantage of the plugin is that it doesn't override standard wordpress the_date() and the_time() functions, so you can use these functions if you need as well.

安装:

  1. Upload Easy Relative Date folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Place <?php if(!function_exists('easy_relative_date')){the_time('F jS, Y'); } else { echo easy_relative_date(get_the_time('U')); } ?> in your templates for entries and <?php if(!function_exists('easy_relative_date')){comment_date() . ' at ' . comment_time(); } else { echo easy_relative_date(get_comment_time('U')); } ?> for comments.

更新日志:

1.1 1.0