<?php 
if ($show_body_title) {
    woocommerce_template_single_title();
}
woocommerce_template_single_rating();
woocommerce_template_single_price();
woocommerce_template_single_excerpt();
woocommerce_template_single_add_to_cart();
woocommerce_template_single_meta();
woocommerce_template_single_sharing();
?>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<?php 
ob_start();
woocommerce_output_product_data_tabs();
woocommerce_upsell_display();
$the_content = ob_get_clean();
echo uncode_get_row_template($the_content, '', '', '', ' product', false, false, false);
ob_start();
woocommerce_output_related_products();
$the_content = ob_get_clean();
echo uncode_get_row_template($the_content, '', $limit_content_width, '', ' row-related', false, true, false);
<?php

/**
 * The coming soon template file.
 *
 * @package uncode
 */
get_header();
/** Get general datas **/
$style = ot_get_option('_uncode_general_style');
$redirect_page = ot_get_option('_uncode_redirect_page');
$the_content = get_post_field('post_content', $redirect_page);
if (has_shortcode($the_content, 'vc_row')) {
    $the_content = '<div class="post-content">' . $the_content . '</div>';
} else {
    $the_content = apply_filters('the_content', $the_content);
    $the_content = '<div class="post-content">' . uncode_get_row_template($the_content, '', '', $style, '', 'double', true, 'double') . '</div>';
}
/** Display post html **/
echo '<article id="post-' . get_the_ID() . '" class="' . implode(' ', get_post_class('page-body style-' . $style . '-bg')) . '">
				<div class="post-wrapper">
					<div class="post-body">' . do_shortcode($the_content) . '</div>
				</div>
			</article>';
get_footer();
            }
            if ($media_content !== '') {
                $media_content = uncode_get_row_template($media_content, '', $limit_content_width, $style, '', 'double', true, 'double');
            }
            $the_content = $media_content . $the_content;
        }
        $the_content = '<div class="post-content">' . $the_content . '</div>';
    }
    /** Build and display navigation html **/
    $navigation_option = ot_get_option('_uncode_' . $post_type . '_navigation_activate');
    if ($navigation_option !== 'off') {
        $navigation_index = ot_get_option('_uncode_' . $post_type . '_navigation_index');
        if ($navigation_index !== '') {
            $navigation_index_label = ot_get_option('_uncode_' . $post_type . '_navigation_index_label');
            $navigation_index_link = get_permalink($navigation_index);
            $navigation_index_btn = '<a class="btn btn-link text-default-color" href="' . esc_url($navigation_index_link) . '">' . ($navigation_index_label === '' ? esc_html__('Back', 'uncode') : esc_html($navigation_index_label)) . '</a>';
        } else {
            $navigation_index_btn = '';
        }
        $navigation = uncode_post_navigation($navigation_index_btn);
        if (!empty($navigation) && $navigation !== '') {
            $navigation_content = uncode_get_row_template($navigation, '', $limit_content_width, $style, ' row-navigation row-navigation-' . $style, true, true, true);
        }
    }
    echo '<div class="page-body' . $bg_color . '">
					<div class="portfolio-wrapper"' . $page_custom_width . '>
						<div class="portfolio-body">' . do_shortcode($the_content) . '</div>' . $navigation_content . '</div>
				</div>';
}
// end of the loop.
get_footer();
									</div>
								</div>
							</div>
						</div>
						' . ($layout === 'sidebar_left' ? $main_content : '') . '
					</div>
				</div>
			</div>';
    } else {
        /** Create html without sidebar **/
        if ($with_builder) {
            $the_content = '<div class="post-content">' . $the_content . '</div>';
        } else {
            $the_content = '<div class="post-content"' . $page_custom_width . '>' . uncode_get_row_template($the_content, $limit_width, $limit_content_width, $style, '', 'double', true, 'double') . '</div>';
        }
        if ($footer_content !== '') {
            $the_content .= '<div class="post-footer post-footer-' . $style . ' row-container">' . uncode_get_row_template($footer_content, $limit_width, $limit_content_width, $style, '', true, true, 'double', $page_custom_width) . '</div>';
        }
    }
    /** Display post html **/
    echo '<article id="post-' . get_the_ID() . '" class="' . implode(' ', get_post_class('page-body' . $bg_color)) . '">
						<div class="post-wrapper">
							<div class="post-body">' . do_shortcode($the_content) . '</div>
						</div>
					</article>';
}
// end of the loop.
?>

<?php 
get_footer();
}
if (($footer_text_content !== '' || $footer_icons !== '') && !$no_footer) {
    switch ($footer_position) {
        case 'left':
            $footer_text_content = $footer_text_content . $footer_icons;
            break;
        case 'center':
            $footer_last_bg .= ' footer-center';
            $footer_text_content = $footer_icons . $footer_text_content;
            break;
        case 'right':
            $footer_text_content = $footer_icons . $footer_text_content;
            break;
    }
    $footer_last_bg .= ' footer-last';
    $footer_content .= uncode_get_row_template($footer_text_content, $limit_width, $limit_content_width, $footer_last_style, $footer_last_bg, false, false, false);
}
?>
							</div><!-- sections container -->
						</div><!-- page wrapper -->
					<?php 
if ($is_redirect !== true) {
    ?>
					<footer id="colophon" class="site-footer">
						<?php 
    echo do_shortcode(shortcode_unautop($footer_content));
    ?>
					</footer>
					<?php 
}
?>
Example #6
0
    }
    $partial_content = '<div class="row-inner">
				<div class="pos-middle pos-center align_center column_parent col-lg-12 single-internal-gutter">
					<div class="uncol">
						<div class="uncoltable">
							<div class="uncell">
								<div class="uncont">
									' . $page_title . '
									<h2>' . esc_html__('Opps! Something went wrong…', 'uncode') . '</h2>
									<p>' . esc_html__('Page not found. Please continue to our', 'uncode') . ' <a href="' . esc_url(get_home_url('/')) . '">' . esc_html__('home page', 'uncode') . '</a></p>
									<hr class="separator-break separator-accent separator-double-padding">
									' . get_search_form(false) . '
								</div>
							</div>
						</div>
					</div>
				</div>
			</div><!-- .row-inner -->';
    $the_content = uncode_get_row_template($partial_content, $limit_width, $limit_content_width, $style, '', true, true, 'double');
    $page_class = ' standard-404';
} else {
    $uncodeblock_id = ot_get_option('_uncode_404_body_block');
    $the_content = get_post_field('post_content', $uncodeblock_id);
}
/** Display post html **/
echo '<div class="page-body' . $bg_color . $page_class . '">
          <div class="post-wrapper">
          	<div class="post-body">' . do_shortcode($the_content) . '</div>
          </div>
        </div>';
get_footer();
            $the_content = '<div class="post-content">' . $the_content . '</div>';
        } else {
            $the_content = '<div class="post-content"' . $page_custom_width . '>' . uncode_get_row_template($the_content, $limit_width, $limit_content_width, $style, '', 'double', true, 'double') . '</div>';
        }
        $the_content .= '<div class="post-footer post-footer-' . $style . ' row-container">' . uncode_get_row_template($footer_content, $limit_width, $limit_content_width, $style, '', false, true, 'double', $page_custom_width) . '</div>';
    }
    /** Build and display navigation html **/
    $navigation_option = ot_get_option('_uncode_' . $post_type . '_navigation_activate');
    if ($navigation_option !== 'off') {
        $navigation_index = ot_get_option('_uncode_' . $post_type . '_navigation_index');
        if ($navigation_index !== '') {
            $navigation_index_label = ot_get_option('_uncode_' . $post_type . '_navigation_index_label');
            $navigation_index_link = get_permalink($navigation_index);
            $navigation_index_btn = '<a class="btn btn-link text-default-color" href="' . esc_url($navigation_index_link) . '">' . ($navigation_index_label === '' ? esc_html__('Back', 'uncode') : esc_html($navigation_index_label)) . '</a>';
        } else {
            $navigation_index_btn = '';
        }
        $navigation = uncode_post_navigation($navigation_index_btn);
        if (!empty($navigation) && $navigation !== '') {
            $navigation_content = uncode_get_row_template($navigation, '', $page_custom_width !== '' ? ' limit-width' : $limit_content_width, $style, ' row-navigation row-navigation-' . $style, true, true, true);
        }
    }
    /** Display post html **/
    echo '<article id="post-' . get_the_ID() . '" class="' . implode(' ', get_post_class('page-body' . $bg_color)) . '">
          <div class="post-wrapper">
          	<div class="post-body">' . do_shortcode($the_content) . '</div>' . $navigation_content . '
          </div>
        </article>';
}
// end of the loop.
get_footer();