這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

U.S. Debt Clock Widget

描述

This plugin creates a widget displaying the most recently available amount of the U.S. National Debt. Data is retrieved from treasurydirect.gov and a source link can optionally be displayed.

Want to help make this plugin better? Pull requests are welcome.

螢幕截圖

  • The widget front-end display
  • The widget options configuration display

安裝

  1. Upload the us-debt-clock-widget folder to the /wp-content/plugins/ directory
  2. Activate the U.S. Debt Clock Widget plugin through the Plugins menu in the WordPress dashboard
  3. Add the widget to an available widget area and configure the display options

評價

閱讀全部2個評價

貢獻者及開發者

“U.S. Debt Clock Widget” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 U.S. Debt Clock Widget 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.6

  • Fix: use newer Treasury debt feed and info URLs, as they did not redirect the old ones.

1.5

  • Fix: catch undefined variable scenario
  • Improvement: additional code standards and formatting updates

1.4

  • Fix: change data source from treasury.io to treasurydirect.gov
  • Improvement: code style and formatting

1.3

  • Fix: unfortunate math error that had debt displaying as billions, not trillions, h/t Scott Cooper

1.2

  • Fix: error in get_debt logic that was preventing successful data from being returned
  • Fix: update widget registration to work with recent versions of WordPress
  • Improvement: Update code formatting and escaping to better adhere to WordPress coding standards
  • Improvement: Delete transient when plugin is deactivated

1.1

  • Improvement: Handle invalid data from treasury.io more gracefully

1.0

  • Initial release