HEX
Server: Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
System: Linux server.mediaphic.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: bakeerca (1316)
PHP: 7.3.33
Disabled: exec,passthru,shell_exec,system,show_source,mail,sendmail,popen,symlink,phpinfo
Upload Files
File: /home/bakeerca/public_html/wp-content/themes/betheme/template-single-product.php
<?php

// 1. from product
// 2. by conditions (cat, tag)
// 3. from theme options by default

if( function_exists( 'mfn_ID' ) ){
	$tmp_id = mfn_ID();
}

if( ( empty($_GET['visual']) || !empty($_GET['mfn-template-id']) ) && isset( $tmp_id ) && is_numeric( $tmp_id ) && get_post_type( $tmp_id ) == 'template' ){

	echo '<div class="'. implode(' ', wc_get_product_class( 'mfn-single-product-tmpl-wrapper', get_the_ID() )) .'">';

		echo '<div class="section_wrapper clearfix">';
			do_action( 'woocommerce_before_single_product' );
		echo '</div>';

		$mfn_builder = new Mfn_Builder_Front( $tmp_id );
		$mfn_builder->show();

		echo '<div class="section_wrapper clearfix">';
			do_action('woocommerce_after_single_product');
		echo '</div>';

	echo '</div>';

}else{

	echo '<div class="section section_product_before_tabs">';
		echo '<div class="section_wrapper clearfix">';
			woocommerce_content();
		echo '</div>';
	echo '</div>';

}

?>