HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/globfdxw/diasporameetsafrica.com/wp-content/plugins/lavelo-core/lavelo-core.php
<?php
/*
Plugin Name: Lavelo Core
Plugin URI: http://themeforest.net/user/wpoceans
Description: Plugin to contain shortcodes and custom post types of the lavelo theme.
Author: wpoceans
Author URI: http://themeforest.net/user/wpoceans/portfolio
Version: 2.0.5
Text Domain: lavelo-core
*/

if (!function_exists('lavelo_block_direct_access')) {
  function lavelo_block_direct_access()
  {
    if (!defined('ABSPATH')) {
      exit('Forbidden');
    }
  }
}

// Plugin URL
define('LAVELO_PLUGIN_URL', plugins_url('/', __FILE__));

// Plugin PATH
define('LAVELO_PLUGIN_PATH', plugin_dir_path(__FILE__));
define('LAVELO_PLUGIN_ASTS', LAVELO_PLUGIN_URL . 'assets');
define('LAVELO_PLUGIN_IMGS', LAVELO_PLUGIN_ASTS . '/images');
define('LAVELO_PLUGIN_INC', LAVELO_PLUGIN_PATH . 'include');

// DIRECTORY SEPARATOR
define('DS', DIRECTORY_SEPARATOR);

// Lavelo Elementor Shortcode Path
define('LAVELO_EM_SHORTCODE_BASE_PATH', LAVELO_PLUGIN_PATH . 'elementor/');
define('LAVELO_EM_SHORTCODE_PATH', LAVELO_EM_SHORTCODE_BASE_PATH . 'widgets/');

/**
 * Check if Codestar Framework is Active or Not!
 */
function lavelo_framework_active()
{
  return (defined('CS_VERSION')) ? true : false;
}

/* LAVELO_THEME_NAME_PLUGIN */
define('LAVELO_THEME_NAME_PLUGIN', 'Lavelo');

// Initial File
include_once(ABSPATH . 'wp-admin/includes/plugin.php');
if (is_plugin_active('lavelo-core/lavelo-core.php')) {

  // Custom Post Type
  require_once(LAVELO_PLUGIN_INC . '/custom-post-type.php');

  if (is_plugin_active('kingcomposer/kingcomposer.php')) {

    define('LAVELO_KC_SHORTCODE_BASE_PATH', LAVELO_PLUGIN_PATH . 'kc/');
    define('LAVELO_KC_SHORTCODE_PATH', LAVELO_KC_SHORTCODE_BASE_PATH . 'shortcodes/');
    // Shortcodes
    require_once(LAVELO_KC_SHORTCODE_BASE_PATH . '/kc-setup.php');
    require_once(LAVELO_KC_SHORTCODE_BASE_PATH . '/library.php');
  }

  // Theme Custom Shortcode
  require_once(LAVELO_PLUGIN_INC . '/custom-shortcodes/theme-shortcodes.php');
  require_once(LAVELO_PLUGIN_INC . '/custom-shortcodes/custom-shortcodes.php');

  // Importer
  require_once(LAVELO_PLUGIN_INC . '/demo/importer.php');

  if (class_exists('WP_Widget') && function_exists('cs_framework_init')) {
    // Widgets
    require_once(LAVELO_PLUGIN_INC . '/widgets/nav-widget.php');
    require_once(LAVELO_PLUGIN_INC . '/widgets/recent-posts.php');
    require_once(LAVELO_PLUGIN_INC . '/widgets/footer-posts.php');
    require_once(LAVELO_PLUGIN_INC . '/widgets/text-widget.php');
    require_once(LAVELO_PLUGIN_INC . '/widgets/widget-extra-fields.php');

    // Elementor
    if (file_exists(LAVELO_EM_SHORTCODE_BASE_PATH . '/em-setup.php')) {
      require_once(LAVELO_EM_SHORTCODE_BASE_PATH . '/em-setup.php');
      require_once(LAVELO_EM_SHORTCODE_BASE_PATH . 'lib/fields/icons.php');
      require_once(LAVELO_EM_SHORTCODE_BASE_PATH . 'lib/icons-manager/icons-manager.php');
    }
  }

  add_action('wp_enqueue_scripts', 'regulation_plugin_enqueue_scripts');
  function regulation_plugin_enqueue_scripts()
  {
    wp_enqueue_script('plugin-scripts', LAVELO_PLUGIN_ASTS . '/plugin-scripts.js', array('jquery'), '', true);
  }
}

// Extra functions
require_once(LAVELO_PLUGIN_INC . '/theme-functions.php');