HEX
Server: Apache
System: Linux sg2plmcpnl492417.prod.sin2.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: nyiet8349bzl (9207396)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/nyiet8349bzl/www/oldwebsite.sbsc.in/wp-content/plugins/eikra-core/vc-modules/gallery.php
<?php
/**
 * @author  RadiusTheme
 * @since   1.0
 * @version 1.0
 */

if ( !class_exists( 'RDTheme_VC_Gallery' ) ) {
	
	class RDTheme_VC_Gallery extends RDTheme_VC_Modules {

		public function __construct(){
			$this->name = __( "Eikra: Gallery", 'eikra-core' );
			$this->base = 'eikra-vc-gallery';
			$this->translate = array(
				'all'   => __( "All", 'eikra-core' ),
			);
			parent::__construct();
		}

		public function load_scripts(){
			wp_enqueue_style( 'magnific-popup' );
			wp_enqueue_script( 'magnific-popup' );
			wp_enqueue_script( 'isotope-pkgd' );
		}

		public function fields(){
			$fields = array(
				array(
					"type" => "textfield",
					"holder" => "div",
					"class" => "",
					"heading" => __( "All items name", 'eikra-core' ),
					"param_name" => "all",
					'value' => $this->translate['all'],
				),
			);
			
			return $fields;
		}

		public function shortcode( $atts, $content = '' ){
			extract( shortcode_atts( array(
				'all' => $this->translate['all'],
				), $atts ) );
			
			$this->load_scripts();
			$template = 'gallery';

			return $this->template( $template, get_defined_vars() );
		}
	}
}

new RDTheme_VC_Gallery;