About this plugin
This plugin adds Google Custom Search to your website, but unlike other plugins
operates on the server side, thus eliminating the need for JavaScript and
keeping the page size small.
The admin interface is based on that used by the [WP Google Search plugin]
org/plugins/wp-google-search/)
The interface with the Google API is based on Digital Collection Search by Jason Clark for Montana
State University.
Available languages
- English
- Spanish (incomplete)
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
-
Install wp-cli
- Install PHPUnit
-
Set up runkit:
git
$ cd runkit
$ phpize
/configure
$ sudo make install
ini:
internal_override=1
-
Install the test WordPress environment:
cd server-side-google-search
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 )
2 or latest )
- Run the tests
phpunit