forked from AceIDE/editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAceIDE.php
30 lines (24 loc) · 899 Bytes
/
AceIDE.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
<?php
/**
* Plugin Name: AceIDE
* Plugin URI: https://github.com/AceIDE/AceIDE
* Description: WordPress code editor with auto completion of both WordPress and PHP functions with reference, syntax highlighting, line numbers, tabbed editing, automatic backup.
* Version: 2.6.1
* Author: AceIDE
* License: GPL3
**/
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
if ( !file_exists( __DIR__ . '/vendor/' ) ) {
trigger_error( 'Composer "vendor/" directory missing.', E_USER_ERROR );
}
require_once __DIR__ . '/vendor/autoload.php';
$fileops = new AceIDE\Editor\Modules\FileOps;
$ide = new AceIDE\Editor\IDE;
$ide->extend($fileops);
// As long as the GitOps module is under development, let's only make it
// available to WordPress users with WP_DEBUG enabled.
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
$gitops = new AceIDE\Editor\Modules\GitOps;
$ide->extend($gitops);
}