<div class="row">
<!-- check for partners page template -->
<?php if (get_page_template_slug( $post->ID ) == "partners-blocks.php") { ?>
-
+
<?php $index_template = false; ?>
<?php echo apply_filters('the_content', $post_content->post_content) ; ?>
<div class="small-12 columns partner-request-button-container">
<a href="<?php echo get_permalink(4870); ?>" class="button partnters-request-button ">Request a Quote</a>
</div>
<?php get_template_part('parts/glm-blocks'); ?>
-
+
<!-- check for members only template -->
<?php } else if (get_page_template_slug( $post->ID ) == "members-only.php") { ?>
-
+
<?php $index_template = false; ?>
<div class="medium-3 columns members-only-menu show-for-large">
<?php glm_side_menu(); ?>
<?php if ( is_user_logged_in() ) { ?>
<li class="logout-link"><a href="<?php echo wp_logout_url( home_url() ); ?>">Logout</a></li>
<?php } ?>
-
+
</div>
<div class="small-12 medium-9 columns">
- <?php echo apply_filters('the_content', $post_content->post_content) ; ?>
+ <?php get_template_part('parts/main-content');?>
</div>
<!-- check for full width template -->
<?php } else if (get_page_template_slug( $post->ID ) == "full-width.php") { ?>
<?php get_template_part('parts/capstone-team'); ?>
<?php echo apply_filters('the_content', $post_content->post_content) ; ?>
</div>
- <?php } else if (is_account_page() || is_cart() || is_checkout()) {
-
+ <?php } else if (is_account_page() || is_cart() || is_checkout()) {
+
?>
-
+
<div class="medium-3 columns show-for-medium-up shop-sidebar-wrapper">
<?php get_template_part("parts/shop-sidebar");?>
</div>
<div id="woo-quick-cart-totals" class="small-5 columns">
<p><?php echo $woocommerce->cart->get_cart_total(); ?>
for
- <?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count,
+ <?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count,
'woothemes'), $woocommerce->cart->cart_contents_count);?>
</p>
</div>
<div id="woo-quick-checkout" class="small-4 columns right">
<?php
- if (is_user_logged_in()) {
+ if (is_user_logged_in()) {
echo '<a href="'. get_permalink(101) . '?customer-logout=true" class="button login_toggle">log out</a>';
}
elseif (!is_user_logged_in()) {
</div><!-- .main .woo-tags -->
<?php } else { ?>
-
+
<?php if(!is_front_page()) {
echo "<div class=\"small-12 medium-7 columns\">";
get_template_part('parts/main-content');
<?php } ?>
</div>
</div>
-</main>
\ No newline at end of file
+</main>