Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/walla3t.corals.io/wp-content/plugins/apper-core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/walla3t.corals.io/wp-content/plugins/apper-core/apper-core.php
<?php
/*
Plugin Name: Apper Core
Plugin URI: https://acmeedesign.com
Description: Apper core plugin for adding theme core functions.
Version: 2.0.5
Author: AcmeeDesign
Author URI: https://acmeedesign.com
 *
 *
 */

defined('ABSPATH') || die;


/*
**   Plugin version
*/
define( 'ACMBASE_VERSION' , '2.0.5' );

/*
**   Path Constant
*/
define( 'ACMBASE_PATH' , dirname(__FILE__) );

/*
**   Includes Path Constant
*/
define( 'ACMBASE_INC_PATH' , dirname(__FILE__) . '/includes' );

/*
**   URI Constant
*/
define( 'ACMBASE_DIR_URI' , plugin_dir_url(__FILE__) );

/*
** Javascript and CSS Paths
*/
define( 'ACMBASE_VEN_DIR_URI', ACMBASE_DIR_URI .'assets/vendors/' );
define( 'ACMBASE_JS_DIR_URI', ACMBASE_DIR_URI .'assets/js/' );
define( 'ACMBASE_CSS_DIR_URI', ACMBASE_DIR_URI .'assets/css/' );
define( 'ACMBASE_SCSS_DIR_URI', ACMBASE_DIR_URI .'assets/scss/' );
define( 'ACMBASE_IMG_DIR_URI', ACMBASE_DIR_URI .'assets/images/' );

/*
**  Theme name constant using this plugin
*/
if( ! defined( 'ACMTHEMES_THEME_NAME' ) )
	define( 'ACMTHEMES_THEME_NAME' , 'Apper' );

/*
**  Theme slug constant
*/
if( ! defined( 'ACMTHEMES_THEME_SLUG' ) )
	define( 'ACMTHEMES_THEME_SLUG' , 'apper' );

//load plugin text domain
function apper_core_load_textdomain()
{
   load_plugin_textdomain('acmthemes', false, dirname( plugin_basename( __FILE__ ) )  . '/languages' );
}
add_action('plugins_loaded', 'apper_core_load_textdomain');

if ( !class_exists( 'ACM_Themes_Base' ) ) {

    class ACM_Themes_Base {

        function __construct() {
            $this->load_files();
            // Load plugin assets
      			add_action( 'wp_enqueue_scripts', array( $this, 'register_assets' ) );
				add_action( 'admin_enqueue_scripts', array( $this, 'register_admin_assets' ) );
				add_action( 'plugins_loaded', array( $this, 'inc_classes' ), 1 );
				add_action( 'after_setup_theme', array( $this, 'include_theme_functions' ), 1 );
        }

        function load_files() {

          $dir = ACMBASE_INC_PATH;

			//load demo importer
			require_once $dir . '/demo/one-click-demo-import/one-click-demo-import.php';

			//load demo importer config
			require_once $dir . '/demo/importer.php';

			//load helper functions
			require_once $dir . '/helper-functions.php';

			//load elementor widgets for the theme
			require_once $dir .  '/dynamic-sidebars.php';

			//load elementor widgets for the theme
			require_once $dir .  '/elementor-widgets.php';

			//load custom icons for elementor
			require_once $dir .  '/custom-icons.php';

			//load social icons widget
			require_once $dir .  '/wp-social-widget/social-widget.php';

			//load address widget
			require_once $dir .'/address-widget.php';

			//load help widget
			require_once $dir .'/acm-help.php';

			//load Redux framework if it is not installed as a plugin
			if ( !class_exists( 'ReduxFramework' ) ) {
				require_once ( $dir . '/framework/redux-core/framework.php' );
			}
			if ( file_exists( $dir . '/framework/framework.php' ) ) {
				require_once( $dir . '/framework/framework.php' );
			}
				//update notifier
				require_once( 'update-notifier.php' );

			}

				function inc_classes() {

					$dir = ACMBASE_INC_PATH;

					//include Metabox addons
					if ( class_exists( 'RW_Meta_Box' ) ) {
						require_once( $dir . '/metabox/mb-settings-page/mb-settings-page.php' );
						require_once( $dir . '/metabox/mb-custom-post-type/mb-custom-post-type.php' );
						require_once( $dir . '/metabox/mb-custom-taxonomy/mb-custom-taxonomy.php' );
						require_once( $dir . '/metabox/mb-term-meta/mb-term-meta.php' );
						require_once( $dir . '/metabox/mb-user-meta/mb-user-meta.php' );
						require_once( $dir . '/metabox/meta-box-tabs/meta-box-tabs.php' );
						require_once( $dir . '/metabox/meta-box-conditional-logic/meta-box-conditional-logic.php' );
          			}

				}

        //load plugin assets
        function register_assets() {
          wp_enqueue_style( 'acmtheme-styles', ACMBASE_CSS_DIR_URI .'acmtheme-styles.css', false, ACMBASE_VERSION );
					// Remove font awesome style from plugins
					wp_deregister_style( 'font-awesome' );
					wp_deregister_style( 'fontawesome' );
					//wp_deregister_style( 'yith-wcwl-font-awesome' );

					//Load font awesome icons
					wp_enqueue_style( 'fontawesome5', ACMBASE_VEN_DIR_URI . 'fontawesome5/css/fontawesome.min.css', false, '5.x.x' );

					//Load simple line icons
					wp_enqueue_style( 'simple-lineicons', ACMBASE_CSS_DIR_URI . 'simple-line-icons.min.css' );

					wp_enqueue_style( 'carousel-style', ACMBASE_CSS_DIR_URI .'owl.carousel.min.css', false, ACMBASE_VERSION );
					wp_enqueue_script( 'owl-carousel', ACMBASE_JS_DIR_URI .'owl.carousel.min.js', '', '', true );
					wp_enqueue_script( 'acm-scripts', ACMBASE_JS_DIR_URI .'acm-scripts.js', '', '', true );
					$isrtl = ( is_rtl() ) ? 'yes' : 'no';
					wp_localize_script( 'acm-scripts', 'acm', array(
						'is_rtl'		=>	$isrtl,
					) );
        }

				//load admin assets
				function register_admin_assets() {
					wp_enqueue_style( 'fontawesome5', ACMBASE_VEN_DIR_URI . 'fontawesome5/css/fontawesome.min.css' );
					wp_enqueue_style( 'simple-lineicons', ACMBASE_CSS_DIR_URI . 'simple-line-icons.min.css' );
					wp_enqueue_style( 'icon-pickercss', ACMBASE_VEN_DIR_URI . 'icon-picker/css/icon-picker.css', '', '');
					wp_enqueue_script( 'icon-picker', ACMBASE_VEN_DIR_URI . 'icon-picker/js/icon-picker.js', array( 'jquery' ), '', true );
					wp_enqueue_style( 'adminstyles', ACMBASE_CSS_DIR_URI . 'adminstyles.css' );

					//admin scripts
					wp_enqueue_script( 'acm-adminscripts', ACMBASE_JS_DIR_URI .'adminscripts.js', '', '', true );
				}

				//load custom css styles
				function include_theme_functions() {
					$dir = ACMBASE_INC_PATH;
					require_once ( $dir .'/custom-css.php' );
				}

    }

    new ACM_Themes_Base();

}

//update elementor settings to disable inline SVG icon
function acm_set_elementor_inline_font_icon_inactive() {
	// Update the Elementor settings
	update_option('elementor_experiment-e_font_icon_svg', 'inactive');
	update_option('elementor_experiment-container', 'inactive');
}
register_activation_hook( __FILE__, 'acm_set_elementor_inline_font_icon_inactive' );

Spamworldpro Mini