PluginProbe
Depicter — Popup & Slider Builder / 2.0.5
Depicter — Popup & Slider Builder v2.0.5
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / depicter.php

depicter.php in Depicter — Popup & Slider Builder 2.0.5, at depicter.php

75 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Depicter
4 * Plugin URI: https://depicter.com
5 * Description: Make animated and interactive image slider, video slider, post slider and carousel which work smoothly across devices.
6 * Version: 2.0.5
7 * Requires at least: 4.9
8 * Requires PHP: 7.2.5
9 * Author: Averta
10 * Author URI: http://averta.net
11 * License: GPL-2.0-only
12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
13 * Text Domain: depicter
14 * Domain Path: /languages
15 *
16 *
17 * @package Depicter
18 */
19
20 const DEPICTER_VERSION = '2.0.5 ';
21
22 if ( ! defined( 'ABSPATH' ) ) {
23 exit;
24 }
25
26 $name = trim( get_file_data( __FILE__, [ 'Plugin Name' ] )[0] );
27
28
29 // Make sure requirements are met
30 require_once __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'requirement.php';
31
32 if( ! depicter_requirements_satisfied( $name, '7.2.5' ) ){
33 // requirements are not met, stop further execution.
34 // depicter_requirements_satisfied() will automatically add an admin notice.
35 return;
36 }
37
38
39 // Make sure we can load a compatible version of WP Emerge.
40 require_once __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'version.php';
41
42 if ( ! depicter_should_load_framework( $name, '0.16.0', '2.0.0' )) {
43 // An incompatible WP Emerge version is already loaded - stop further execution.
44 // depicter_should_load_framework() will automatically add an admin notice.
45 return;
46 }
47
48 // CONSTANTS -------
49
50 const DEPICTER_PLUGIN_ID = 'depicter';
51 const DEPICTER_PLUGIN_FILE = __FILE__;
52 const DEPICTER_PLUGIN_PATH = __DIR__;
53 define( 'DEPICTER_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
54 define( 'DEPICTER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
55
56 // -----------------
57
58 // Load composer dependencies.
59 if ( file_exists( __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php' ) ) {
60 require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
61 }
62
63 depicter_declare_loaded_framework( $name, 'plugin', __FILE__ );
64
65 // Load helpers.
66 require_once __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'App.php';
67 require_once __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'helpers.php';
68 require_once __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'functions.php';
69
70 // Bootstrap plugin after all dependencies and helpers are loaded.
71 \Depicter::make()->bootstrap( require __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'config.php' );
72
73 // Register hooks.
74 require_once __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'hooks.php';
75