| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
Plugin Name: Widget Content Blocks |
| 5 |
Plugin URI: https://dannyvankooten.com/wordpress-plugins/wysiwyg-widgets/ |
| 6 |
Description: Adds a WYSIWYG Widget with a rich text editor and media upload functions. |
| 7 |
Version: 2.3.13 |
| 8 |
Author: Danny van Kooten |
| 9 |
Author URI: https://www.dannyvankooten.com/ |
| 10 |
Text Domain: wysiwyg-widgets |
| 11 |
Domain Path: /languages/ |
| 12 |
License: GPL v3 or later |
| 13 |
|
| 14 |
WYSIWYG Widgets plugin |
| 15 |
|
| 16 |
Copyright (C) 2013-2026, Danny van Kooten, hi@dannyvankooten.com |
| 17 |
|
| 18 |
This program is free software: you can redistribute it and/or modify |
| 19 |
it under the terms of the GNU General Public License as published by |
| 20 |
the Free Software Foundation, either version 3 of the License, or |
| 21 |
(at your option) any later version. |
| 22 |
|
| 23 |
This program is distributed in the hope that it will be useful, |
| 24 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 25 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 26 |
GNU General Public License for more details. |
| 27 |
|
| 28 |
You should have received a copy of the GNU General Public License |
| 29 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 30 |
*/ |
| 31 |
|
| 32 |
defined('ABSPATH') or exit; |
| 33 |
|
| 34 |
define('WYWI_PLUGIN_DIR', __DIR__ . '/'); |
| 35 |
|
| 36 |
require __DIR__ . '/includes/plugin.php'; |
| 37 |
|
| 38 |
// only load admin class for non-ajax requests to the admin section |
| 39 |
if (is_admin() && ! wp_doing_ajax()) { |
| 40 |
require __DIR__ . '/includes/class-admin.php'; |
| 41 |
new WYSIWYG_Widgets_Admin(); |
| 42 |
} |
| 43 |
|