Current File : /home/kelaby89/babyl0n.restaurant/wp-content/plugins/restar-core/restar-core.php
<?php
/**
 * 
 * Plugin Name: Restar Core
 * Description: This is a helper plugin of restar theme
 * Version:     1.0
 * Author:      Themeholy
 * Author URI:  https://themeforest.net/user/themeholy 
 * License:     GPL2
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Domain Path: /languages
 * Text Domain: restar
 * 
 */

// Blocking direct access

if( ! defined( 'ABSPATH' ) ) {

    exit();

}

// Define Constant

define( 'RESTAR_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );

define( 'RESTAR_PLUGIN_INC_PATH', plugin_dir_path( __FILE__ ) . 'inc/' );
define( 'RESTAR_PLUGIN_CMB2EXT_PATH', plugin_dir_path( __FILE__ ) . 'cmb2-ext/' );

define( 'RESTAR_PLUGIN_WIDGET_PATH', plugin_dir_path( __FILE__ ) . 'inc/widgets/' );

define( 'RESTAR_PLUGDIRURI', plugin_dir_url( __FILE__ ) );

define( 'RESTAR_ADDONS', plugin_dir_path( __FILE__ ) .'addons/' );

define( 'RESTAR_ELEMENTOR_OPTIONS', plugin_dir_url( __FILE__ ) .'addons/elementor-options/' );

define( 'RESTAR_ASSETS', plugin_dir_url( __FILE__ ) .'assets/' );

define( 'RESTAR_CORE_PLUGIN_TEMP', plugin_dir_path( __FILE__ ) .'restar-template/' );

// load textdomain

load_plugin_textdomain( 'restar', false, basename( dirname( __FILE__ ) ) . '/languages' ); 

//include file.

require_once RESTAR_PLUGIN_INC_PATH .'restarcore-functions.php';
require_once RESTAR_PLUGIN_INC_PATH .'builder/builder.php';
require_once RESTAR_PLUGIN_INC_PATH . 'MCAPI.class.php';
require_once RESTAR_PLUGIN_INC_PATH .'restarajax.php';

require_once RESTAR_PLUGIN_CMB2EXT_PATH . 'cmb2ext-init.php';

//Widget

require_once RESTAR_PLUGIN_WIDGET_PATH . 'recent-post-widget.php';
require_once RESTAR_PLUGIN_WIDGET_PATH . 'search-form.php';
require_once RESTAR_PLUGIN_WIDGET_PATH . 'categories-lists.php';
require_once RESTAR_PLUGIN_WIDGET_PATH . 'about-us-widget.php';
// require_once RESTAR_PLUGIN_WIDGET_PATH . 'author-widget.php';
require_once RESTAR_PLUGIN_WIDGET_PATH . 'offer-banner.php';

//addons

require_once RESTAR_ADDONS . 'addons.php';
require_once RESTAR_ADDONS . 'addons-style-functions.php';
require_once RESTAR_ADDONS . 'addons-field-functions.php';

// Register widget styles
add_action( 'elementor/editor/after_enqueue_scripts', 'widget_styles' );

function widget_styles() {

    wp_register_style( 'editor-style-1', plugins_url( 'assets/css/editor.css', __FILE__ ) );
    wp_enqueue_style( 'editor-style-1' );

}


Page not found – Hello World !