Update template for members only
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 12 Jun 2017 20:43:06 +0000 (16:43 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 12 Jun 2017 20:43:06 +0000 (16:43 -0400)
for private pages

sections/interior-page.php
style.css

index 7ab1f9b..42d44e0 100644 (file)
         <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>
index 56f4db5..54f86e6 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: Capstone
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for Capstone
-Version: 1.0.20
+Version: 1.0.21
 */