adding includes for the woocommerce.php file
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 9 May 2018 14:44:01 +0000 (10:44 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 9 May 2018 14:44:01 +0000 (10:44 -0400)
need to include sections for the header and footer in the woocommerce.php file

woocommerce.php

index f10ea88..1483daf 100644 (file)
         <div class="off-canvas-wrap" data-offcanvas>
             <div class="inner-wrap">
                 <div id="page-wrapper">
-
-    <div id="content-wrapper" class='side-shadow row woocommerce-wrapper'>
-        <div class="row content">
-            <div class="small-12 columns">
-            <?php get_template_part('parts/bread-crumbs');?>
-            </div>
-            
-                <?php get_sidebar(); ?>
-            
-            <?php //get_template_part('parts/shop-quick-display');?>
-                <div id="woo-quick-display" class="small-12 medium-9 columns">
-                    
-                    <div id="woo-quick-cart-icon" class="small-5 medium-6 columns left">
-                        
-                        <div class="woo-quick-cart-image">
-                            
-                            <a href="<?php echo esc_url(get_permalink(760));?>">
-                                <img src="<?php echo get_template_directory_uri(); ?>/assets/shopping-cart.png">
-                            </a>
-                            <a href="<?php echo esc_url(get_permalink(760));?>"><h3>view cart</h3></a>
-                        </div>
-                        <div class="woo-quick-cart-totals">
-                            
-                            <p><?php echo $woocommerce->cart->get_cart_total(); ?>
-                                for
-                                <?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 
-                                        'woothemes'), $woocommerce->cart->cart_contents_count);?>
-                            </p>
-                        </div>
-                    </div>
-                    <div id="woo-quick-checkout" class="small-5 medium-6 columns right">
-                        <?php
-                            if (is_user_logged_in()) { 
-                                echo '<a href="'. esc_url(get_permalink(762)) . '?customer-logout=true" class="button login_toggle">log out</a>';
-                            }
-                            elseif (!is_user_logged_in()) {
-                                echo '<a href="'. esc_url(get_permalink(762)) . '" class="button login_toggle">log in</a>';
-                            }
-                        ?>
-                        <a href="<?php echo esc_url(get_permalink(761)); ?>" class="button">checkout</a>
-                    </div>
-                    
-                </div>
-            <?php if (is_shop()) { ?>
-                <div class="small-12 medium-9 columns main woo-tags">
-  
-                <?php
-                        /**
-                         * woocommerce_before_main_content hook
-                         *
-                         * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
-                         * @hooked woocommerce_breadcrumb - 20
-                         */
-                        do_action( 'woocommerce_before_main_content' );
-                ?>
-
-               <?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
-
-                       <h1 class="page-title"><?php woocommerce_page_title(); ?></h1>
-
-               <?php endif; ?>
-
-               <?php do_action( 'woocommerce_archive_description' ); ?>
-
-                <?php
-                        /**
-                         * woocommerce_after_main_content hook
-                         *
-                         * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
-                         */
-                        do_action( 'woocommerce_after_main_content' );
-                ?>
-                </div>
-            <?php } else if (is_product_tag() || is_product_category()) { ?>
-                <div class="small-12 medium-9 columns main woo-tags">
-  
-                <?php
-                        /**
-                         * woocommerce_before_main_content hook
-                         *
-                         * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
-                         * @hooked woocommerce_breadcrumb - 20
-                         */
-                        do_action( 'woocommerce_before_main_content' );
-                ?>
-
-               <?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
-
-                       <h1 class="page-title"><?php woocommerce_page_title(); ?></h1>
-
-               <?php endif; ?>
-
-               <?php do_action( 'woocommerce_archive_description' ); ?>
-
-               <?php if ( have_posts() ) : ?>
-
-                       <?php
-                               /**
-                                * woocommerce_before_shop_loop hook
-                                *
-                                * @hooked woocommerce_result_count - 20
-                                * @hooked woocommerce_catalog_ordering - 30
-                                */
-                               do_action( 'woocommerce_before_shop_loop' );
-                       ?>
-
-                       <?php woocommerce_product_loop_start(); ?>
-
-                               <?php woocommerce_product_subcategories(); ?>
-
-                               <?php while ( have_posts() ) : the_post(); ?>
-
-                                       <?php wc_get_template_part( 'content', 'product' ); ?>
-
-                               <?php endwhile; // end of the loop. ?>
-
-                       <?php woocommerce_product_loop_end(); ?>
-
-                       <?php
-                               /**
-                                * woocommerce_after_shop_loop hook
-                                *
-                                * @hooked woocommerce_pagination - 10
-                                */
-                               do_action( 'woocommerce_after_shop_loop' );
-                       ?>
-
-               <?php elseif ( ! woocommerce_product_subcategories( array( 'before' => woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?>
-
-                       <?php wc_get_template( 'loop/no-products-found.php' ); ?>
-
-               <?php endif; ?>
-
-                <?php
-                        /**
-                         * woocommerce_after_main_content hook
-                         *
-                         * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
-                         */
-                        do_action( 'woocommerce_after_main_content' );
-                ?>
-                </div>
-            <?php } else if (is_product()) { ?>
-                <div class="small-12 medium-9 columns main woo-single-product">
                     <?php
-                            /**
-                             * woocommerce_before_main_content hook
-                             *
-                             * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
-                             * @hooked woocommerce_breadcrumb - 20
-                             */
-                            do_action( 'woocommerce_before_main_content' );
+                    include "sections/header.php";
+                    include "sections/top-bar.php";
+                    include "sections/off-canvas.php";
                     ?>
-
-                            <?php while ( have_posts() ) : the_post(); ?>
-
-                                    <?php wc_get_template_part( 'content', 'single-product' ); ?>
-
-                            <?php endwhile; // end of the loop. ?>
-
-                    <?php
-                            /**
-                             * woocommerce_after_main_content hook
-                             *
-                             * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
-                             */
-                            do_action( 'woocommerce_after_main_content' );
-                    ?>
-                </div>
-            <?php } ?>
-        </div>
-    </div>
-              
+                        <div id="content-wrapper" class='side-shadow row woocommerce-wrapper'>
+                            <div class="row content">
+                                <div class="small-12 columns">
+                                <?php get_template_part('parts/bread-crumbs');?>
+                                </div>
+                                    bopp
+                                    <?php get_sidebar(); ?>
+                                
+                                <?php //get_template_part('parts/shop-quick-display');?>
+                                    <div id="woo-quick-display" class="small-12 medium-9 columns">
+                                        
+                                        <div id="woo-quick-cart-icon" class="small-5 medium-6 columns left">
+                                            
+                                            <div class="woo-quick-cart-image">
+                                                
+                                                <a href="<?php echo esc_url(get_permalink(760));?>">
+                                                    <img src="<?php echo get_template_directory_uri(); ?>/assets/shopping-cart.png">
+                                                </a>
+                                                <a href="<?php echo esc_url(get_permalink(760));?>"><h3>view cart</h3></a>
+                                            </div>
+                                            <div class="woo-quick-cart-totals">
+                                                
+                                                <p><?php echo $woocommerce->cart->get_cart_total(); ?>
+                                                    for
+                                                    <?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 
+                                                            'woothemes'), $woocommerce->cart->cart_contents_count);?>
+                                                </p>
+                                            </div>
+                                        </div>
+                                        <div id="woo-quick-checkout" class="small-5 medium-6 columns right">
+                                            <?php
+                                                if (is_user_logged_in()) { 
+                                                    echo '<a href="'. esc_url(get_permalink(762)) . '?customer-logout=true" class="button login_toggle">log out</a>';
+                                                }
+                                                elseif (!is_user_logged_in()) {
+                                                    echo '<a href="'. esc_url(get_permalink(762)) . '" class="button login_toggle">log in</a>';
+                                                }
+                                            ?>
+                                            <a href="<?php echo esc_url(get_permalink(761)); ?>" class="button">checkout</a>
+                                        </div>
+                                        
+                                    </div>
+                                <?php if (is_shop()) { ?>
+                                    <div class="small-12 medium-9 columns main woo-tags">
+                                    
+                                    <?php
+                                            /**
+                                             * woocommerce_before_main_content hook
+                                             *
+                                             * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
+                                             * @hooked woocommerce_breadcrumb - 20
+                                             */
+                                            do_action( 'woocommerce_before_main_content' );
+                                    ?>
+
+                            <?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
+
+                                <h1 class="page-title"><?php //woocommerce_page_title(); ?></h1>
+
+                            <?php endif; ?>
+
+                            <?php do_action( 'woocommerce_archive_description' ); ?>
+
+                                    <?php
+                                            /**
+                                             * woocommerce_after_main_content hook
+                                             *
+                                             * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
+                                             */
+                                            do_action( 'woocommerce_after_main_content' );
+                                    ?>
+                                    </div>
+                                <?php } else if (is_product_tag() || is_product_category()) { ?>
+                                    <div class="small-12 medium-9 columns main woo-tags">
+                    
+                                    <?php
+                                            /**
+                                             * woocommerce_before_main_content hook
+                                             *
+                                             * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
+                                             * @hooked woocommerce_breadcrumb - 20
+                                             */
+                                            do_action( 'woocommerce_before_main_content' );
+                                    ?>
+
+                            <?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
+
+                                <h1 class="page-title"><?php woocommerce_page_title(); ?></h1>
+
+                            <?php endif; ?>
+
+                            <?php do_action( 'woocommerce_archive_description' ); ?>
+
+                            <?php if ( have_posts() ) : ?>
+
+                                <?php
+                                    /**
+                                     * woocommerce_before_shop_loop hook
+                                     *
+                                     * @hooked woocommerce_result_count - 20
+                                     * @hooked woocommerce_catalog_ordering - 30
+                                     */
+                                    do_action( 'woocommerce_before_shop_loop' );
+                                ?>
+
+                                <?php woocommerce_product_loop_start(); ?>
+
+                                    <?php woocommerce_product_subcategories(); ?>
+
+                                    <?php while ( have_posts() ) : the_post(); ?>
+
+                                        <?php wc_get_template_part( 'content', 'product' ); ?>
+
+                                    <?php endwhile; // end of the loop. ?>
+
+                                <?php woocommerce_product_loop_end(); ?>
+
+                                <?php
+                                    /**
+                                     * woocommerce_after_shop_loop hook
+                                     *
+                                     * @hooked woocommerce_pagination - 10
+                                     */
+                                    do_action( 'woocommerce_after_shop_loop' );
+                                ?>
+
+                            <?php elseif ( ! woocommerce_product_subcategories( array( 'before' => woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?>
+
+                                <?php wc_get_template( 'loop/no-products-found.php' ); ?>
+
+                            <?php endif; ?>
+
+                                    <?php
+                                            /**
+                                             * woocommerce_after_main_content hook
+                                             *
+                                             * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
+                                             */
+                                            do_action( 'woocommerce_after_main_content' );
+                                    ?>
+                                    </div>
+                                <?php } else if (is_product()) { ?>
+                                    <div class="small-12 medium-9 columns main woo-single-product">
+                                        <?php
+                                                /**
+                                                 * woocommerce_before_main_content hook
+                                                 *
+                                                 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
+                                                 * @hooked woocommerce_breadcrumb - 20
+                                                 */
+                                                do_action( 'woocommerce_before_main_content' );
+                                        ?>
+
+                                                <?php while ( have_posts() ) : the_post(); ?>
+
+                                                        <?php wc_get_template_part( 'content', 'single-product' ); ?>
+
+                                                <?php endwhile; // end of the loop. ?>
+
+                                        <?php
+                                                /**
+                                                 * woocommerce_after_main_content hook
+                                                 *
+                                                 * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
+                                                 */
+                                                do_action( 'woocommerce_after_main_content' );
+                                        ?>
+                                    </div>
+                                <?php } ?>
+                            </div>
+                        </div>
+                        <?php include "sections/footer.php"; ?>
                     </div><!--/#page-wrapper-->
             <a class="exit-off-canvas"></a>
             </div><!--End of inner-wrap-->