PluginProbe
Voice Search / 1.3.0
Voice Search v1.3.0
trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2
voice-search / voice-search.php

voice-search.php in Voice Search 1.3.0, at voice-search.php

65 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Main plugin file.
4 *
5 * @package VoiceSearch
6 *
7 * Plugin Name: Voice Search
8 * Plugin URI: https://github.com/swissspidy/voice-search
9 * Description: Allows visitors using Google Chrome to search the site using their voice.
10 * Version: 1.3.0
11 * Author: Pascal Birchler
12 * Author URI: https://pascalbirchler.com
13 * License: GPLv2+
14 * Text Domain: voice-search
15 * Requires at least: 5.0
16 * Requires PHP: 5.6
17 */
18
19 /**
20 * Copyright (c) 2018 Pascal Birchler (swissspidy@chat.wordpress.org)
21 *
22 * This program is free software; you can redistribute it and/or modify
23 * it under the terms of the GNU General Public License, version 2 or, at
24 * your discretion, any later version, as published by the Free
25 * Software Foundation.
26 *
27 * This program is distributed in the hope that it will be useful,
28 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 * GNU General Public License for more details.
31 *
32 * You should have received a copy of the GNU General Public License
33 * along with this program; if not, write to the Free Software
34 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
35 */
36
37 defined( 'WPINC' ) or die;
38
39 if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
40 require dirname( __FILE__ ) . '/vendor/autoload.php';
41 }
42
43 $voice_search_requirements_check = new WP_Requirements_Check(
44 array(
45 'title' => __( 'Voice Search', 'voice-search' ),
46 'php' => '5.6',
47 'wp' => '5.0',
48 'file' => __FILE__,
49 'i18n' => array(
50 /* translators: 1: plugin name. 2: minimum PHP version. */
51 'php' => __( '&#8220;%1$s&#8221; requires PHP %2$s or higher. Please upgrade.', 'voice-search' ),
52 /* translators: 1: plugin name. 2: minimum WordPress version. */
53 'wp' => __( '&#8220;%1$s&#8221; requires WordPress %2$s or higher. Please upgrade.', 'voice-search' ),
54 ),
55 )
56 );
57
58 if ( $voice_search_requirements_check->passes() ) {
59 require_once dirname( __FILE__ ) . '/inc/namespace.php';
60
61 VoiceSearch\bootstrap();
62 }
63
64 unset( $voice_search_requirements_check );
65