| Server IP : 91.220.113.119 / Your IP : 216.73.217.69 Web Server : LiteSpeed System : Linux milad313-ded-e10.tidadns.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : maralloab ( 1965) PHP Version : 8.1.34 Disable Function : mail, show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/maralloab/public_html/wp-content/themes/betheme/ |
Upload File : |
<?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="product">';
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>';
}else{
echo '<div class="section section_product_before_tabs">';
echo '<div class="section_wrapper clearfix">';
woocommerce_content();
echo '</div>';
echo '</div>';
}
?>