-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.php
32 lines (28 loc) · 1.08 KB
/
plugin.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
<?php
/**
* @wordpress-plugin
* Plugin Name: Agreable Case Study Plugin
* Plugin URI: http://shortlistmedia.co.uk
* Description: Created custom case studies.
* Version: 0.1.0
* Author: Shortlist Media
* Author URI: http://shortlistmedia.co.uk
* License: MIT
*/
if ( ! class_exists( 'Jigsaw' ) ) {
add_action( 'admin_notices', function() {
echo '<div class="error"><p>Jigsaw not activated. Make sure you activate the plugin in <a href="' . esc_url( admin_url( 'plugins.php#timber' ) ) . '">' . esc_url( admin_url
( 'plugins.php' ) ) . '</a></p></div>';
} );
return;
}
if(file_exists(__DIR__ . '/../../../../vendor/getherbert/')){
require_once __DIR__ . '/../../../../vendor/autoload.php';
} else {
require_once __DIR__ . '/vendor/autoload.php';
}
if(file_exists(__DIR__ . '/../../../../vendor/getherbert/framework/bootstrap/autoload.php')){
require_once __DIR__ . '/../../../../vendor/getherbert/framework/bootstrap/autoload.php';
} else {
require_once __DIR__ . '/vendor/getherbert/framework/bootstrap/autoload.php';
}