-
Notifications
You must be signed in to change notification settings - Fork 0
/
wysiwyg-widgets.php
42 lines (33 loc) · 1.44 KB
/
wysiwyg-widgets.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
37
38
39
40
41
42
<?php
/*
Plugin Name: Widget Content Blocks
Plugin URI: https://dannyvankooten.com/wordpress-plugins/wysiwyg-widgets/
Description: Adds a WYSIWYG Widget with a rich text editor and media upload functions.
Version: 2.3.6
Author: Danny van Kooten
Author URI: http://dvk.co/
Text Domain: wysiwyg-widgets
Domain Path: /languages/
License: GPL v3 or later
WYSIWYG Widgets plugin
Copyright (C) 2013-2016, Danny van Kooten, [email protected]
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
if ( ! defined( 'ABSPATH' ) ) exit;
define( 'WYWI_VERSION_NUMBER', "2.3.6" );
define( 'WYWI_PLUGIN_DIR', dirname( __FILE__ ) .'/' );
require_once WYWI_PLUGIN_DIR . 'includes/plugin.php';
// only load admin class for non-ajax requests to the admin section
if( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
require_once WYWI_PLUGIN_DIR . 'includes/class-admin.php';
new WYSIWYG_Widgets_Admin();
}