<?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
 */

crum_header();

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

?>

<?php $options = get_option('second-touch');

if ($options['stan_header']) {
    echo '<div id="stuning-header" style="';
    if
    ($options['stan_header_color']
    ) {
        echo ' background-color: ' . $options['stan_header_color'] . '; ';
    }

    if
    ($options['stan_header_image']
    ) {
        echo 'background-image: url(' . $options['stan_header_image'] . ');  background-position: center;';
    }

    echo '">';
} ?>


    <div class="row">
        <div class="twelve columns">
            <div id="page-title">
                <a href="javascript:history.back()" class="back"></a>

                <div class="page-title-inner">
                    <h1 class="page-title"><?php woocommerce_page_title(); ?></h1>

                    <div class="breadcrumbs">
                        <?php woocommerce_breadcrumb() ?>
                    </div>
                </div>
            </div>
        </div>
    </div>

<section id="layout">
    <?php if ($options['stan_header']) {
        echo '</div>';
    } ?>
    <div class="row">
        <div class="nine columns">

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

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

            <?php endwhile; // end of the loop. ?>

        </div>


        <div class="three columns">
            <?php dynamic_sidebar('shop-sidebar'); ?>
        </div>


    </div>
</section>
<?php crum_footer();?>