generated from helsingborg-stad/Wordpress-Plugin-Boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
algolia-index-js-searchpage.php
36 lines (29 loc) · 1.22 KB
/
algolia-index-js-searchpage.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Plugin Name: Algolia Index Js Search Page
* Plugin URI: (#plugin_url#)
* Description: Replaces search page with a js (instant search) page.
* Version: 3.2.3
* Author: Sebastian Thulin
* Author URI: (#plugin_author_url#)
* License: MIT
* License URI: https://opensource.org/licenses/MIT
* Text Domain: algolia-index-js-searchpage
* Domain Path: /languages
*/
// Protect agains direct file access
if (! defined('WPINC')) {
die;
}
define('ALGOLIAINDEXJSSEARCHPAGE_PATH', plugin_dir_path(__FILE__));
define('ALGOLIAINDEXJSSEARCHPAGE_URL', plugins_url('', __FILE__));
define('ALGOLIAINDEXJSSEARCHPAGE_TEMPLATE_PATH', ALGOLIAINDEXJSSEARCHPAGE_PATH . 'templates/');
define('ALGOLIAINDEXJSSEARCHPAGE_VIEW_PATH', ALGOLIAINDEXJSSEARCHPAGE_PATH . 'views/');
load_plugin_textdomain('algolia-index-js-searchpage', false, plugin_basename(dirname(__FILE__)) . '/languages');
// Autoload from plugin
if (file_exists(ALGOLIAINDEXJSSEARCHPAGE_PATH . 'vendor/autoload.php')) {
require_once ALGOLIAINDEXJSSEARCHPAGE_PATH . 'vendor/autoload.php';
}
require_once ALGOLIAINDEXJSSEARCHPAGE_PATH . 'Public.php';
// Start application
new AlgoliaIndexJsSearchpage\App();