fixing glm associate template
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 26 Feb 2018 14:31:29 +0000 (09:31 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 26 Feb 2018 14:31:29 +0000 (09:31 -0500)
adding the glm associate template for interior pages and search page

glm-associate-template.php
sections/interior-page.php

index 5cba0a6..868c0aa 100644 (file)
@@ -2,33 +2,4 @@
 /*
 Template Name: GLM Associate Template
 */
-?>
-<?php get_header(); ?>
-<main class="page-inside">
-    <div class="feature-img">
-        <?php echo glm_get_header(); ?>
-    </div>
-    <div id="content-wrapper">
-        <div class="row">
-            <div id="main-content" class="small-12 columns">
-            <?php // get_template_part('parts/bread-crumbs'); ?>
-                <?php get_template_part('parts/content-section'); ?>
-            </div>
-        </div>
-        
-        <div class="row collapse">
-            <div class="small-12 medium-4 columns small-text-center action-item">
-                <a href="<?php echo get_permalink(3323); ?> "><img src="<?php bloginfo('template_url'); ?>/assets/request-guides.jpg"></a>
-            </div>
-            <div class="small-12 medium-4 columns small-text-center action-item">
-                <a href="<?php echo get_permalink(3309); ?> "><img src="<?php bloginfo('template_url'); ?>/assets/269-cool-things.jpg"></a>
-            </div>
-            <div class="small-12 medium-4 columns small-text-center action-item">
-                <a href="<?php echo get_permalink(3327); ?> "><img src="<?php bloginfo('template_url'); ?>/assets/email-signup.jpg"></a>
-            </div>
-            <div class="large-11 columns small-center text-center">
-                <a id="big-lens"><h1>#DiscoverKZoo</h1></a>
-            </div>
-        </div>
-    </div>
-<?php get_footer(); ?>
\ No newline at end of file
+get_template_part('index');
\ No newline at end of file
index 34367bb..61519b6 100644 (file)
                     <div class="row">
                         <?php echo the_field('member_db_shortcode',$post->ID); ?>
                     </div>
-                    
+                <?php break;
+
+                // GLM Associate Template
+                case "glm-associate-template.php": ?>
+                    <div class="row">
+                        <?php get_template_part('parts/main-content'); ?>
+                    </div>
                 <?php break;
 
                 // any default templates
                 default: ?>
                     <div class="row fullWidth">
                         <?php if( !is_page($member_db_pages) ) { ?>
-                            <?php if( has_children() ){
-                                get_sidebar();  
-                            } ?>
+                                <?php if( has_children() ){
+                                    get_sidebar();  
+                                } ?>
                         <?php } ;?>
                         <?php echo the_field('blocks_shortcode',$post->ID); ?>
                     </div>