Server-Side Google Search

Created by: Aptivate

Rating:
Downloaded: 1k times

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]
(https://wordpress.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 clone git@github.com:aptivate/server-side-google-search.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 server-side-google-search
    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

Screenshots

    Categories

    Get New Themes & Resources