HEX
Server: Apache/2.4.65 (Debian)
System: Linux web6 5.10.0-36-amd64 #1 SMP Debian 5.10.244-1 (2025-09-29) x86_64
User: innocamp (1028)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/buildfft/public_html/wp-content/plugins/masterslider/includes/msp-hooks.php
<?php
/**
 * Before Single Products Summary Div
 *
 * @see woocommerce_show_product_images()
 * @see woocommerce_show_product_thumbnails()
 */

function msp_show_product_images(){
	include ( MSWP_AVERTA_INC_DIR . '/templates/woo-product/product-images.php' );
}



function msp_on_plugins_loaded(){
	if( 'on' !== msp_get_setting( 'enable_single_product_slider' , 'msp_woocommerce' ) )
		return;

	remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );
	remove_action( 'woocommerce_product_thumbnails', 'woocommerce_show_product_thumbnails', 20 );

	add_action( 'woocommerce_before_single_product_summary', 'msp_show_product_images', 20 );
}

add_action( 'plugins_loaded', 'msp_on_plugins_loaded' );



function msp_body_class( $classes ) {
	// add master slider spesific class to $classes array
	$classes[]      = '_masterslider';
	$classes['msv'] = '_msp_version_' . MSWP_AVERTA_VERSION;
	
	return $classes;
}

add_filter( 'body_class', 'msp_body_class' );