PATH:
home
/
ediuae
/
public_html
/
wp-content
/
plugins
/
cruv-core
<?php /* Plugin Name: Cruv Core Plugin URI: https://themeforest.net/user/themewolfs/portfolio Description: Plugin to contain short codes and custom post types of the Cruv theme. Author: themewolfs Author URI: https://themewolfs.com/ Version: 1.0.0 Text Domain: cruv-core */ /** * If this file is called directly, abort. * @package cruv * @since 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Plugin directory path * @package cruv * @since 1.0.0 */ define( 'CRUV_CORE_ROOT_PATH', plugin_dir_path( __FILE__ ) ); define( 'CRUV_CORE_ROOT_URL', plugin_dir_url( __FILE__ ) ); define( 'CRUV_CORE_SELF_PATH', 'cruv-core/cruv-core.php' ); define( 'CRUV_CORE_VERSION', '2.0.1' ); define( 'CRUV_CORE_INC', CRUV_CORE_ROOT_PATH .'/inc'); define( 'CRUV_CORE_LIB', CRUV_CORE_ROOT_PATH .'/lib'); define( 'CRUV_CORE_ELEMENTOR', CRUV_CORE_ROOT_PATH .'/elementor'); define( 'CRUV_CORE_DEMO_IMPORT', CRUV_CORE_ROOT_PATH .'/demo-import'); define( 'CRUV_CORE_ADMIN', CRUV_CORE_ROOT_PATH .'/admin'); define( 'CRUV_CORE_ADMIN_ASSETS', CRUV_CORE_ROOT_URL .'admin/assets'); define( 'CRUV_CORE_WP_WIDGETS', CRUV_CORE_ROOT_PATH .'/wp-widgets'); define( 'CRUV_CORE_ASSETS', CRUV_CORE_ROOT_URL .'assets/'); define( 'CRUV_CORE_CSS', CRUV_CORE_ASSETS .'css'); define( 'CRUV_CORE_JS', CRUV_CORE_ASSETS .'js'); define( 'CRUV_CORE_IMG', CRUV_CORE_ASSETS .'img'); /** * Load additional helpers functions * @package cruv * @since 1.0.0 */ if (!function_exists('cruv_core')){ require_once CRUV_CORE_INC .'/theme-core-helper-functions.php'; if (!function_exists('cruv_core')){ function cruv_core(){ return class_exists('Cruv_Core_Helper_Functions') ? new Cruv_Core_Helper_Functions() : false; } } } //ob flash remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 ); /** * Load Codestar Framework Functions * @package cruv * @since 1.0.0 */ if ( !cruv_core()->is_cruv_active()) { if ( file_exists( CRUV_CORE_ROOT_PATH . '/inc/csf-functions.php' ) ) { require_once CRUV_CORE_ROOT_PATH . '/inc/csf-functions.php'; } } /** * Core Plugin Init * @package cruv * @since 1.0.0 */ if ( file_exists( CRUV_CORE_ROOT_PATH . '/inc/theme-core-init.php' ) ) { require_once CRUV_CORE_ROOT_PATH . '/inc/theme-core-init.php'; } /** * Theme builder */ if ( file_exists( CRUV_CORE_ROOT_PATH . '/theme-builder/hugebinary-header-footer.php' ) ) { require_once CRUV_CORE_ROOT_PATH . '/theme-builder/hugebinary-header-footer.php'; } function load_font_awesome_6() { wp_enqueue_style( 'font-awesome-6', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css', [], '6.5.2' ); } add_action('wp_enqueue_scripts', 'load_font_awesome_6'); // functions.php function payone_elementor_editor_page() { // AOS CSS wp_enqueue_style( 'aos-css', 'https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.css', [], '2.3.4' ); // AOS JS wp_enqueue_script( 'aos-js', 'https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.js', ['jquery'], '2.3.4', true ); // Init script wp_add_inline_script( 'aos-js', 'jQuery(document).ready(function($){ AOS.init({ once: false }); });' ); } add_action('wp_enqueue_scripts', 'payone_elementor_editor_page'); add_action('elementor/editor/after_enqueue_scripts', 'payone_elementor_editor_page');
[+]
..
[+]
wp-widgets
[+]
admin
[+]
assets
[+]
languages
[-] cruv-core.php
[edit]
[+]
demo-import
[+]
inc
[+]
theme-builder
[+]
elementor
[+]
lib