Title: Countdown Timer
Author: zaus
Published: <strong>2012 年 2 月 22 日</strong>
Last modified: 2012 年 2 月 22 日

---

搜索插件

![](https://ps.w.org/countdown-timer-abt/assets/banner-772x250.jpg?rev=508839)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/countdown-timer-abt_908292.svg)

# Countdown Timer

 作者：[zaus](https://profiles.wordpress.org/zaus/)

[下载](https://downloads.wordpress.org/plugin/countdown-timer-abt.zip)

 * [详情](https://cn.wordpress.org/plugins/countdown-timer-abt/#description)
 * [评价](https://cn.wordpress.org/plugins/countdown-timer-abt/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/countdown-timer-abt/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/countdown-timer-abt/#developers)

 [支持](https://wordpress.org/support/plugin/countdown-timer-abt/)

## 屏幕截图

 * [[
 * Admin options page with templates, placeholders
 * [[
 * Usage example – note that “explicit” options use single-quotes to allow double-
   quotes in HTML
 * [[
 * Output example – with Firebug showing HTML

## 安装

 1. Unzip, upload plugin folder to your plugins directory (`/wp-content/plugins/`)
 2. Activate plugin
 3. Add countdown shortcode anywhere you need it.

Check out the included admin help page for complete explanation within WordPress!

## 常见问题

  What’s the shortcode?

In full glory:

    ```
    [countdown_timer
        target_time="2012-05-05 14:03:00"
        complete_text="It's Done!"
        format= {CUSTOM HTML FORMAT - SEE BELOW}
        date_separator='<span class="d-sep">/</span>'
        time_separator='<span class="t-sep">:</span>'
        label_format="<em>%s</em>"
        timezone="America/New_York"
    ]
    ```

  Developer Hooks

The following filters are provided to adjust both the attributes (before rendering)
and the format (after rendering).

You would use them like:

    ```
    add_filter( 'abt_countdown_timer__pre_render', 'my_countdown_prerender' );
    function my_countdown_prerender($attributes) { ... }

    add_filter( 'abt_countdown_timer__post_render', 'my_countdown_postrender' );
    function my_countdown_postrender($output, $attributes) { ... }
    ```

This is how they’re used in the plugin:

    ```
    // hook - adjust attributes used to render the countdown
    $attributes = apply_filters( 'abt_countdown_timer__pre_render', $attributes );

    // hook - add "before", "after"; alter rendered output
    $formatted_time = apply_filters( 'abt_countdown_timer__post_render', $formatted_time, $attributes );
    ```

  Other Options

 * _Title and Link_ – tooltip text when hovering over timer; optional link from 
   clicking timer
 * _Timezones_ – specify a timezone for calculations (if different than WP timezone)
 * _Output format_ – HTML wrapper for result fields; uses special placeholder formats
   for label, separators, and time values (see `[strftime][]`)
 * _Date Separator_ – text between date values, if used in _Output Format_
 * _Time Separator_ – text between time values, if used in _Output Format_
 * _Interval Label_ – wrapper for laber for “Year”, “Month”, etc

## 评价

此插件暂无评价。

## 贡献者及开发者

「Countdown Timer」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ zaus ](https://profiles.wordpress.org/zaus/)
 *   [ Atlantic BT ](https://profiles.wordpress.org/atlanticbt/)

[帮助将「Countdown Timer」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/countdown-timer-abt)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/countdown-timer-abt/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/countdown-timer-abt/)，或通过[RSS](https://plugins.trac.wordpress.org/log/countdown-timer-abt/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/countdown-timer-abt/)。

## 更新日志

#### 0.7

 * bugfixes, singleton, hooks
 * submitted to WP

#### 0.6

 * refactored for public consumption

#### 0.5

 * split plugin from custom code

## 额外信息

 *  版本 **0.7**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.3.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/countdown-timer-abt/)
 * 标签
 * [countdown](https://cn.wordpress.org/plugins/tags/countdown/)[countdown timer](https://cn.wordpress.org/plugins/tags/countdown-timer/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)[timer](https://cn.wordpress.org/plugins/tags/timer/)
   [widgets](https://cn.wordpress.org/plugins/tags/widgets/)
 *  [高级视图](https://cn.wordpress.org/plugins/countdown-timer-abt/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/countdown-timer-abt/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/countdown-timer-abt/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/countdown-timer-abt/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/countdown-timer-abt/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/countdown-timer-abt/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/countdown-timer-abt/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/countdown-timer-abt/reviews/)

## 贡献者

 *   [ zaus ](https://profiles.wordpress.org/zaus/)
 *   [ Atlantic BT ](https://profiles.wordpress.org/atlanticbt/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/countdown-timer-abt/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://atlanticbt.com/)