Members only and associate template added
authorLaury GvR <laury@gaslightmedia.com>
Tue, 24 May 2016 21:04:52 +0000 (17:04 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 24 May 2016 21:04:52 +0000 (17:04 -0400)
glm-associate-template.php [new file with mode: 0644]
glm-members-only-template.php [new file with mode: 0644]

diff --git a/glm-associate-template.php b/glm-associate-template.php
new file mode 100644 (file)
index 0000000..8afef40
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+/*
+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 if(have_posts()) : while(have_posts()): the_post();?>
+            <?php the_content();?>
+            <?php endwhile; else:?>
+            <p><?php _e('Sorry, no results found.');?></p>
+            <?php endif;?>
+            </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(); ?>
diff --git a/glm-members-only-template.php b/glm-members-only-template.php
new file mode 100644 (file)
index 0000000..78ed818
--- /dev/null
@@ -0,0 +1,73 @@
+<?php
+/*
+Template Name: GLM Members Only Template
+*/
+?>
+<?php get_header(); ?>
+<main class="page-inside members-only-template">
+    <div class="feature-img">
+        <?php echo glm_get_header(); ?>
+    </div>
+    <div id="content-wrapper">
+        <div class="row">
+        <?php if(is_page(3714)){ ?>
+            <div class="small-12 large-12 columns right">
+        <?php } else { ?>
+            <div class="small-12 large-8 columns right">
+        <?php } ?>
+                <div class="row">
+                    <div id="main-content" class="small-12 columns">         
+                    <?php if (current_user_can("glm_members_login")) { ?>
+                        <div id="glm-member-front-header" class="small-12 columns">
+                            <div class='glm-member-greeting'>Hello,     <?php $current_user = wp_get_current_user();echo $current_user->user_login ?>.</div>
+                            <a class='button glm-button' href="<?php echo wp_logout_url( home_url() ); ?>">Logout</a>
+                            <?php if (current_user_can("glm_members_member")) { ?>
+                                <a class='button glm-button' href='<?php echo get_admin_url() ?>admin.php?page=glm-members-admin-menu-member'>Enter Member Admin Area</a>                        
+                            <?php } ?>
+                        </div>
+                        <?php if (is_in_tree(get_option("glm_member_db_option_member_detail_id"))) {}?>
+                        <?php get_template_part('parts/bread-crumbs'); ?>
+                        <?php if(have_posts()) : while(have_posts()): the_post();?>
+                            <?php the_content();?>
+                        <?php endwhile; else:?>
+                            <p><?php _e('Sorry, no results found.');?></p>
+                        <?php endif;?>
+                    <?php } else { ?>
+                        <div class="wp_login_error">
+                            <p id="glm-member-login-notification">
+                            <?php if( isset( $_GET['login'] ) && $_GET['login'] == 'failed' ) { ?>
+                                The password you entered is incorrect, Please try again.
+                            <?php } 
+                            else if( isset( $_GET['login'] ) && $_GET['login'] == 'empty' ) { ?>
+                                Please enter both username and password.
+                            <?php } else { ?>
+                                Please log in to gain access to this page
+                            <?php } ?>
+                            </p>
+                        </div> 
+                        <div id='glm-member-login-form'>
+                            <?php 
+                                update_option('glm_member_db_frontend_login_request', true);
+                                wp_login_form(1, get_permalink()); 
+                                update_option('glm_member_db_frontend_login_request', false);
+                                ?>
+                        </div>
+                    <?php } ?>
+                    </div>
+                </div>
+            </div>
+            <?php if(! (is_page(3714))){ ?>
+                <?php get_sidebar(); ?>
+            <?php } ?>
+            <div class="small-12 columns small-center text-center">
+                <a id="big-lens"><h1>#DiscoverKZoo</h1></a>
+            </div>
+        </div>
+        <?php if ((get_post_type( $post ) != "ai1ec_event") && ($post != get_post(3198))  && ($post != get_post(1140))) { ?>
+        <div id="bottom-lens">
+            <script id="cr__init-b054762a" src="https://embed.crowdriff.com/js/init?hash=b054762a"></script>
+        </div>
+        <?php } ?>
+    </div>
+
+<?php get_footer(); ?>