MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //home/cafsindia/www/wp-content/plugins/content-aware-sidebars/content-aware-sidebars.php
<?php
/**
 * @package Content Aware Sidebars
 * @author Joachim Jensen <joachim@dev.institute>
 * @license GPLv3
 * @copyright 2022 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.18.1
 * Author:            Joachim Jensen - DEV Institute
 * Author URI:        https://dev.institute
 * Requires at least: 5.0
 * Requires PHP:      5.6
 * 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/>.
 *
 */

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_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);
    }
}