The Climate Tagger Content Pool Plugin for WordPress is a simple, FREE and
用于WordPress的Climate Tagger内容池插件是一个简单,免费且
easy-to-use way to upload your posts to the “Content Pool” of the well-known
易于使用的方式将您的帖子上传到知名的“内容池”
Climate Tagger API.
气候Tagger API 。
The API has been
该API已被
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
自2011年以来。通过其“内容库”,Climate Tagger使组织能够
easily connect their data and information resources with other Climate Tagger
轻松地将其数据和信息资源与其他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.
与气候有关的信息。 p>
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.
您的帖子,这将使您可以将帖子内容发送到内容池。 p>
Follow this project on Github
在Github上关注此项目 p>
Development
发展 h3>
This plugin uses wp-cli and
此插件使用 wp-cli 和
rel="nofollow">PHPUnit for testing.
rel =“ nofollow”> PHPUnit 进行测试。
The tests require runkit for mocking functions.
测试需要 runkit 来模拟功能。 p>
Grab the latest source from github:
获取来自github的最新资源: p>
$ git clone git@github.com:aptivate/climate-content-pool.git
$ git clone git@github.com:aptivate / climate-content-pool.git p>
li>
Install wp-cli
安装 wp-cli p>
li>
- Install PHPUnit
- 安装 PHPUnit li>
Set up runkit:
设置Runkit: p>
$ git clone https://github.com/zenovichunkit.git
$ git clone https://github.com/zenovichunkit.git
$ cd runkit
$ cd runkit
$ phpize
$ phpize
$ ./configure
$ ./configure
$ sudo make install
$ sudo make install p>
li>
ul>
Add the following lines to /etc/php5/cli/php.ini
:
将以下行添加到 /etc/php5/cli/php.ini code>: p>extension=runkit.so extension = runkit.sorunkit.internal_override=1
runkit.internal_override = 1
code> pre>
Install the test WordPress environment:
安装测试WordPress环境: p>
cd climate-content-pool
cd气候内容池
bash bin/install-wp-tests.sh test_db_name db_user ‘db_password’ db_host version
bash bin / install-wp-tests.sh test_db_name db_user“ db_password” db_host版本 p>
li>
ul>
where:
其中: p>
test_db_name is the name for your **temporary** test WordPress database test_db_name是您的**临时**测试WordPress数据库的名称 db_user is the database user name
db_user是数据库用户名
db_password is the password
db_password是密码
db_host is the database host (eg `localhost`)
db_host是数据库主机(例如`localhost`)
version is the version of WordPress (eg `4.2.2` or `latest`)
版本是WordPress的版本(例如“ 4.2.2”或“最新”)
code> pre>
- Run the tests
- 运行测试
phpunit
phpunit li>
ul>