plugin-icon

Server-Side Google Search

Adds a lightweight Google Custom Search to your website, without the need for JavaScript.
평가
최근 업데이트일
August 17, 2015
버전
1.0.3
활성화된 설치 항목
10

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
무료Creator 요금제에서
활성화된 설치 항목
10
테스트된 버전
4.3.34
이 플러그인은 다운로드 가능하며 워드프레스 독립 호스트 설치에 사용할 수 있습니다.