[WordPress] 外掛分享: Climate Content Pool

首頁外掛目錄 › Climate Content Pool
10+
安裝啟用
尚無評分
3103 天前
最後更新
問題解決
WordPress 3.7+ v1.0.2 上架:2015-06-03

內容簡介

WordPress 的 Climate Tagger Content Pool 外掛是一個簡單、免費和易於使用的工具,可讓您將文章上傳到著名的 Climate Tagger API 的「內容池」中。自2011年以來,API 已經幫助以知識為驅動的網站更好地對數據進行分類、標註、上下文化以及與更廣泛的氣候知識社區的數據進行聯繫。通過其「內容池」,Climate Tagger 允許組織輕鬆地將其數據和信息資源與其他 Climate Tagger 用戶進行連接。將文章上傳到 Climate Tagger 的「內容池」中,將使您的內容對正在尋找與氣候相關信息的大量用戶可用。

安裝後,在新增或編輯文章時,螢幕上將出現一個打勾框,允許您將文章內容發送到內容池。

在 Github 上關注此專案

開發

此外掛使用 wp-cli 和 PHPUnit 進行測試。
測試需要 runkit 進行函數模擬。

從 Github 中獲取最新的源代碼:

$ git clone [email protected]:aptivate/climate-content-pool.git

安裝 wp-cli

安裝 PHPUnit

設置 runkit:

$ git clone https://github.com/zenovich/runkit.git
$ cd runkit
$ phpize
$ ./configure
$ sudo make install

將以下行添加到 /etc/php5/cli/php.ini:

extension=runkit.so
runkit.internal_override=1

安裝測試 WordPress 環境:

cd climate-content-pool
bash bin/install-wp-tests.sh test_db_name db_user ‘db_password’ db_host version

其中:

test_db_name 是您的**臨時**測試 WordPress 數據庫的名稱
db_user 是數據庫用戶名稱
db_password 是密碼
db_host 是數據庫主機(例如 `localhost`)
version 是 WordPress 的版本(例如 `4.2.2` 或 `latest`)

運行測試
phpunit

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Climate Content Pool」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The Climate Tagger Content Pool Plugin for WordPress is a simple, FREE and
easy-to-use way to upload your posts to the “Content Pool” of the well-known
Climate Tagger API. The API has been
helping knowledge-driven web sites better catalogue, categorize, contextualize
and connect their data with that from the broader climate knowledge community
since 2011. Through its “Content Pool” Climate Tagger allows organizations to
easily connect their data and information resources with other Climate Tagger
users. By uploading your posts to the “Content Pool” of the Climate Tagger, you
will make your content available to a large audience of users looking for
climate-related information.
After installation, a tick-box will appear on the screen where you add or edit
your posts, which will allow you to send the post content to the Content Pool.
Follow this project on Github
Development
This plugin uses wp-cli and PHPUnit for testing.
The tests require runkit for mocking functions.

Grab the latest source from github:
$ git clone [email protected]:aptivate/climate-content-pool.git

Install wp-cli

Install PHPUnit

Set up runkit:
$ git clone https://github.com/zenovich/runkit.git
$ cd runkit
$ phpize
$ ./configure
$ sudo make install

Add the following lines to /etc/php5/cli/php.ini:
extension=runkit.so
runkit.internal_override=1

Install the test WordPress environment:
cd climate-content-pool
bash bin/install-wp-tests.sh test_db_name db_user ‘db_password’ db_host version

where:
test_db_name is the name for your **temporary** test WordPress database
db_user is the database user name
db_password is the password
db_host is the database host (eg `localhost`)
version is the version of WordPress (eg `4.2.2` or `latest`)

Run the tests
phpunit

文章
Filter
Apply Filters
Mastodon