forked from ankurk91/wp-prism-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
executable file
·32 lines (25 loc) · 791 Bytes
/
plugin.php
File metadata and controls
executable file
·32 lines (25 loc) · 791 Bytes
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
<?php
namespace Ankur\Plugins\Prism_For_WP;
/**
* Plugin Name: Prism For WP
* Plugin URI: https://github.com/ankurk91/wp-prism-js
* Description: Control and Use the Prism syntax highlighter in your WordPress site.
* Version: 3.0.0
* Author: Ankur Kumar
* Author URI: http://ankurk91.github.io/
* License: MIT
* License URI: https://opensource.org/licenses/MIT
*/
// No direct access
if (!defined('ABSPATH')) exit;
define('APFW_PLUGIN_VERSION', '3.0.0');
define('APFW_BASE_FILE', __FILE__);
define('APFW_OPTION_NAME', 'ank_prism_for_wp');
require __DIR__ . "/inc/class-util.php";
require __DIR__ . "/inc/class-frontend.php";
require __DIR__ . "/inc/class-admin.php";
if (is_admin() && (!defined('DOING_AJAX') || !DOING_AJAX)) {
new Admin();
} else {
new FrontEnd();
}