內容簡介
WordPress 的 Climate Tagger 插件是一種簡單、免費且易於使用的方法,
可將著名的 Climate Tagger API 整合到您的 WordPress 站點中。
Climate Tagger API 自 2011 年以來一直幫助知識驅動的 Web 站點更好地對其資料進行分類、分類、上下文化和與更廣泛的氣候知識社區的資料進行連接。Climate Tagger 支持由多個領域的專家開發的廣泛氣候兼容發展主題詞彙表,並持續更新以保持當前。
Climate Tagger 建議的標籤以詞雲的形式顯示,相關性最大的標籤會顯示得更大。
該插件基於Thoth's Suggested
Tags。更多有關 Climate Tagger 的信息,請訪問
http://www.climatetagger.net
在 Github 上關注這個項目
開發
此插件使用wp-cli和PHPUnit進行測試。
測試需要runkit進行功能模擬。
從 GitHub 獲取最新的源代碼:
$ git clone [email protected]:aptivate/climate-tagger.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-tagger
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
外掛標籤
開發者團隊
原文外掛簡介
The Climate Tagger Plugin for WordPress is a simple, FREE and easy-to-use way to
integrate the well-known Climate Tagger API into your WordPress site. The
Climate Tagger 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. The Climate Tagger
is backed by an expansive Climate Compatible Development Thesaurus, developed by
experts in multiple fields and continuously updated to remain current.
The tags suggested by the Climate Tagger are displayed in a word cloud, with the
most relevant tags appearing larger.
The plugin is based on Thoth’s Suggested
Tags. More information
about the Climate Tagger is available at
http://www.climatetagger.net
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-tagger.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-tagger
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
