HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
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: /var/www/html/wpprm/wp-content/themes/ronneby/woocommerce/single-product.php
<?php
/**
 * The Template for displaying all single products.
 *
 * Override this template by copying it to yourtheme/woocommerce/single-my-product.php
 *
 * @author        WooThemes
 * @package    WooCommerce/Templates
 * @version     1.6.4
 */

if (!defined('ABSPATH')) exit; // Exit if accessed directly

global $dfd_ronneby;

if(!isset($dfd_ronneby['woo_single_stun_header']) || $dfd_ronneby['woo_single_stun_header'] == 'on') {
	get_template_part('templates/header/top', 'woocommerce');
}

$inside_width = (isset($dfd_ronneby['woo_single_layout']) || !empty($dfd_ronneby['woo_single_layout'])) ? $dfd_ronneby['woo_single_layout']  : '';

$woo_single_enable_pagination = (isset($dfd_ronneby['woo_single_enable_pagination']) || !empty($dfd_ronneby['woo_single_enable_pagination'])) ? $dfd_ronneby['woo_single_enable_pagination']  : 'on';

$blog_sidebars = (isset($dfd_ronneby['woo_single_sidebars']) || !empty($dfd_ronneby['woo_single_sidebars'])) ? $dfd_ronneby['woo_single_sidebars']  : '';
?>

<?php
if(isset($dfd_ronneby['woo_single_enable_pagination']) && $dfd_ronneby['woo_single_enable_pagination'] == 'on') {
	$woo_single_pagination_style = (isset($dfd_ronneby['woo_single_pagination_style']) && !empty($dfd_ronneby['woo_single_pagination_style']));

	if($woo_single_pagination_style) { ?>
		<div class="row <?php echo esc_attr($inside_width); ?>">
			<div class="twelve columns">
				<?php get_template_part('templates/pagination', 'links'); ?>
				<?php get_template_part('templates/entry-meta/woo-top-link'); ?>
			</div>
		</div>
	<?php } else {
		get_template_part('templates/inside-pagination');
	}
}
?>
<section id="layout">
    <div class="row <?php echo esc_attr($inside_width); ?>">
		<?php
		if(!empty($blog_sidebars) && $blog_sidebars) {
			switch($blog_sidebars) {
				case '3c-l-fixed':
					$dfd_layout = 'sidebar-left2';
					$dfd_width = 'six dfd-eq-height';
					break;
				case '3c-r-fixed':
					$dfd_layout = 'sidebar-right2';
					$dfd_width = 'six dfd-eq-height';
					break;
				case '2c-l-fixed':
					$dfd_layout = 'sidebar-left';
					$dfd_width = 'nine dfd-eq-height';
					break;
				case '2c-r-fixed':
					$dfd_layout = 'sidebar-right';
					$dfd_width = 'nine dfd-eq-height';
					break;
				case '3c-fixed':
					$dfd_layout = 'sidebar-both';
					$dfd_width = 'six dfd-eq-height';
					break;
				case '1col-fixed':
				default:
					$dfd_layout = '';
					$dfd_width = 'twelve';
			}
			echo '<div class="blog-section ' . esc_attr($dfd_layout) . '">';
			echo '<section id="main-content" role="main" class="' . esc_attr($dfd_width) . ' columns">';
		} else {
			set_layout('single', true);
		}
		?>

            <?php while (have_posts()) : the_post(); ?>

                <?php wc_get_template_part('content', 'single-product'); ?>

            <?php endwhile; ?>
		<?php
		if(!empty($blog_sidebars) && $blog_sidebars) {
			echo ' </section>';

			if (($blog_sidebars == "2c-l-fixed") || ($blog_sidebars == "3c-fixed")) {
				get_template_part('templates/sidebar', 'left');
				echo ' </div>';
			}
			if (($blog_sidebars == "3c-l-fixed")){
				get_template_part('templates/sidebar', 'right');
				echo ' </div>';
				get_template_part('templates/sidebar', 'left');
			}
			if ($blog_sidebars == "3c-r-fixed"){
				get_template_part('templates/sidebar', 'left');
				echo ' </div>';
			}
			if (($blog_sidebars == "2c-r-fixed") || ($blog_sidebars == "3c-fixed") || ($blog_sidebars == "3c-r-fixed") ) {
				get_template_part('templates/sidebar', 'right');
			}
			echo '</div>';
        } else {
			set_layout('single', false);
		}
		?>
    </div>
	
	<?php
		/**
		 * dfd_woocommerce_single_product_footer hook
		 *
		 * @hooked dfd_woocommerce_single_product_footer - 10
		 */
		//do_action( 'dfd_woocommerce_single_product_footer' );
	?>
</section>