-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcontent-aware-sidebars.php
78 lines (72 loc) · 2.69 KB
/
content-aware-sidebars.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* @package Content Aware Sidebars
* @author Joachim Jensen <joachim@dev.institute>
* @license GPLv3
* @copyright 2024 by Joachim Jensen
*
* Plugin Name: Content Aware Sidebars
* Plugin URI: https://dev.institute/wordpress-sidebars/
* Description: Unlimited custom sidebars and widget areas for any post, page, category etc.
* Version: 3.21
* Author: DEV Institute
* Author URI: https://dev.institute
* Requires at least: 5.5
* Requires PHP: 7.1
* Text Domain: content-aware-sidebars
* Domain Path: /lang/
* License: GPLv3
*
* 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/>.
*
* @fs_premium_only /lib/content-aware-premium/
*/
defined('ABSPATH') || exit;
if (function_exists('cas_fs')) {
cas_fs()->set_basename(true, __FILE__);
return;
}
if (!class_exists('CAS_App')) {
// Load dependencies
$cas_dir_path = plugin_dir_path(__FILE__);
require $cas_dir_path . 'lib/wp-content-aware-engine/bootstrap.php';
require $cas_dir_path . 'lib/wp-db-updater/wp-db-updater.php';
require $cas_dir_path . 'app.php';
require $cas_dir_path . 'lib/wp-pointer-tour/wp-pointer-tour.php';
require $cas_dir_path . 'admin/admin.php';
require $cas_dir_path . 'admin/admin_bar.php';
require $cas_dir_path . 'admin/quick_select.php';
require $cas_dir_path . 'admin/sidebar-list-table.php';
require $cas_dir_path . 'admin/sidebar-overview.php';
require $cas_dir_path . 'admin/sidebar-edit.php';
require $cas_dir_path . 'admin/screen_account.php';
require $cas_dir_path . 'admin/screen_widgets.php';
require $cas_dir_path . 'admin/settings.php';
require $cas_dir_path . 'sidebar.php';
require $cas_dir_path . 'freemius.php';
require $cas_dir_path . 'admin/db-updates.php';
// Launch plugin
CAS_App::instance();
/**
* Template wrapper to display content aware sidebars
*
* @since 3.0
* @param array|string $args
* @return void
*/
function ca_display_sidebar($args = [])
{
CAS_App::instance()->manager()->manual_sidebar($args);
}
}