Separate members only news from regular news posts
authorLaury GvR <laury@gaslightmedia.com>
Thu, 13 Jul 2017 21:08:55 +0000 (17:08 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 13 Jul 2017 21:08:55 +0000 (17:08 -0400)
22 files changed:
archive.php
assets/default-header.jpg [new file with mode: 0644]
css/app.css
front-page.php
functions.php
glm-members-only-template.php
home.php
index.php
page.php
parts/blog-archive-content.php [new file with mode: 0644]
parts/blog-sidebar-members-only.php [new file with mode: 0644]
parts/blog-sidebar-r.php
parts/glm-blocks-front.php [new file with mode: 0644]
parts/glm-blocks-members-only.php [new file with mode: 0644]
parts/glm-blocks.php [deleted file]
parts/glm-members-only-top-bar.php
parts/interior-footer.php [deleted file]
parts/members-sidebar.php
scss/_blog.scss
scss/_main.scss
scss/plugins/_glm-member-db.scss
single.php

index 0f34704..19aea22 100644 (file)
@@ -1,49 +1,34 @@
 <?php get_header(); ?>
 <main class="blog-archive">
     <div id="head-img">
-        <div class="featured-image" style="background: url('<?php echo get_template_directory_uri();?>/assets/default.jpg') no-repeat scroll 0px bottom / cover;"></div>
+        <div class="featured-image" style="background: url('<?php echo get_template_directory_uri();?>/assets/default-header.jpg') no-repeat scroll 0px bottom / cover;"></div>
     </div>
     <div class="row">
-        <div id="blog-posts-over" class="small-12 medium-8 columns">
-            <?php if(have_posts()) : while(have_posts()): the_post();?>
-            <div class="row content blog-posts-container">
-                <div class="small-11 small-centered columns">
-                    <article id="<?php the_ID()?>" <?php post_class()?>>
-                        <header class="entry-header">
-                            <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
-                            <span class="meta date"><?php the_time('F jS, Y') ?></span>
-                        </header>
-                        <?php echo (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt(): the_excerpt(); ?>
-<!--                        <footer class="entry-meta small-12 medium-6 medium-push-3 center">
-                            <?php
-//                            $post_categories = wp_get_post_categories( get_the_ID() );
-//                            $cats = array();
-//                            echo 'This entry was posted ';
-//                            if (has_category()) {
-//                                echo 'in';
-//                                foreach($post_categories as $c){
-//                                    $cat = get_category( $c );
-//                                    $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-//                                    echo ', <a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>';
-//                                }
-//                                echo '.';
-//                            }
-                            ?>
-                        </footer>-->
-                    </article>
+
+        <?php $category = null;
+            if ( get_query_var( 'cat' ) ) {
+                $category = get_category( get_query_var( 'cat' ) );
+            } ?>
+
+            <?php if ( $category && $category->slug == 'members-only' ) { ?>
+                <?php if (current_user_can("glm_members_member")) { ?>
+                    <!-- If user is logged in as a member, display top bar, bread crumbs, & content -->
+                    <div id="blog-posts-over" class="small-12 medium-8 columns">
+                        <?php get_template_part('parts/glm-members-only-top-bar'); ?>
+                        <?php get_template_part('parts/blog-archive-content'); ?>
+                    </div>
+                    <?php get_template_part('parts/blog-sidebar-members-only'); ?>
+                    <?php //get_template_part('parts/interior-footer'); ?>
+                <?php } else { ?>
+                    <!-- Otherwise, display main members only page content & form -->
+                    <?php get_template_part('parts/glm-members-only-login-form'); ?>
+                <?php } ?>
+            <?php } else {?> <!-- not members-only category -->
+                <div id="blog-posts-over" class="small-12 medium-8 columns">
+                    <?php get_template_part('parts/blog-archive-content'); ?>
                 </div>
-            </div>
-            <?php endwhile; ?>
-            <div class="navigation">
-                <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
-            </div><!-- /.navigation -->
-            <?php else: ?>
-            <div id="post-404" class="noposts">
-                <p><?php _e('Sorry, no results were found.');?></p>
-            </div><!-- /#post-404 -->
-            <?php endif;?>
+                <?php get_template_part('parts/blog-sidebar-r'); ?>
+            <?php }?>
         </div>
-        <?php get_template_part('parts/blog-sidebar-r'); ?>
-        <?php //get_template_part('parts/interior-footer'); ?>
     </div>
     <?php get_footer(); ?>
diff --git a/assets/default-header.jpg b/assets/default-header.jpg
new file mode 100644 (file)
index 0000000..ee890fb
Binary files /dev/null and b/assets/default-header.jpg differ
index 555a7a9..e8a3cad 100644 (file)
@@ -7016,59 +7016,59 @@ main .wp-caption p.wp-caption-text {
   text-align: left; }
 main p a {
   font-weight: bold; }
+main .blocks .block-thumb-wrap {
+  text-align: center;
+  max-height: 230px;
+  overflow: hidden; }
+  @media (max-width: 1024px) {
+    main .blocks .block-thumb-wrap {
+      max-height: 170px; } }
+main .blocks .block {
+  margin-bottom: 80px;
+  transition: all 0.2s ease in out; }
+  main .blocks .block img {
+    border: none;
+    padding: 0; }
+  main .blocks .block h1 {
+    font-family: "ingram-wide-2";
+    color: #000000; }
+  main .blocks .block h3 {
+    color: #000000;
+    font-family: "ingram-wide-2";
+    text-align: center;
+    font-size: 22px;
+    margin-top: 0;
+    margin-left: 15px;
+    margin-right: 15px;
+    text-transform: uppercase;
+    padding-top: 8px; }
+  main .blocks .block p {
+    color: #888888;
+    text-align: center;
+    font-size: 18px; }
+  main .blocks .block .block-text a {
+    color: #b32024; }
+  main .blocks .block .block-readmore {
+    text-align: center;
+    font-size: 0.9375rem;
+    display: block;
+    padding-bottom: 10px;
+    margin: 0 15px;
+    color: #b32024;
+    text-transform: uppercase;
+    /*position: absolute;*/
+    /*bottom: 0;*/ }
+  main .blocks .block .block-more-arrow-right:before {
+    content: '\2192'; }
+  main .blocks .block a:hover span {
+    padding: 0 0 0 20px; }
+  main .blocks .block a span {
+    transition: all 0.2s ease-in-out; }
 main.page-front {
   margin-top: -25px; }
   @media (max-width: 1024px) {
     main.page-front {
       margin: 0 auto; } }
-  main.page-front .blocks .block-thumb-wrap {
-    text-align: center;
-    max-height: 230px;
-    overflow: hidden; }
-    @media (max-width: 1024px) {
-      main.page-front .blocks .block-thumb-wrap {
-        max-height: 170px; } }
-  main.page-front .blocks .block {
-    margin-bottom: 80px;
-    transition: all 0.2s ease in out; }
-    main.page-front .blocks .block img {
-      border: none;
-      padding: 0; }
-    main.page-front .blocks .block h1 {
-      font-family: "ingram-wide-2";
-      color: #000000; }
-    main.page-front .blocks .block h3 {
-      color: #000000;
-      font-family: "ingram-wide-2";
-      text-align: center;
-      font-size: 22px;
-      margin-top: 0;
-      margin-left: 15px;
-      margin-right: 15px;
-      text-transform: uppercase;
-      padding-top: 8px; }
-    main.page-front .blocks .block p {
-      color: #888888;
-      text-align: center;
-      font-size: 18px; }
-    main.page-front .blocks .block .block-text a {
-      color: #b32024; }
-    main.page-front .blocks .block .block-readmore {
-      text-align: center;
-      font-size: 0.9375rem;
-      display: block;
-      padding-bottom: 10px;
-      margin: 0 15px;
-      color: #b32024;
-      text-transform: uppercase;
-      /*position: absolute;*/
-      /*bottom: 0;*/ }
-    main.page-front .blocks .block .block-more-arrow-right:before {
-      content: '\2192'; }
-    main.page-front .blocks .block a:hover span {
-      padding: 0 0 0 20px; }
-    main.page-front .blocks .block a span {
-      transition: all 0.2s ease-in-out; }
   main.page-front #main-content {
     margin-top: 25px; }
     main.page-front #main-content h1 {
@@ -7679,6 +7679,12 @@ body #glm-member-detail-container #glm-package-detail-member-name h3 {
 body #glm-member-detail-container #glm-package-detail-member-name a:hover {
   color: white;
   text-decoration: underline; }
+body .members-only-template #menu-side h2 a {
+  color: white;
+  font-size: 1.875rem;
+  font-family: "ingram-wide-2"; }
+  body .members-only-template #menu-side h2 a:hover {
+    border-bottom: 1px solid white; }
 body .members-only-template #side-links {
   background-color: #b32024;
   border: 1px solid #ffc742;
@@ -7690,6 +7696,9 @@ body .members-only-template #menu-members-only-menu {
   list-style: outside none none; }
 body .members-only-template #side-links h2 {
   color: #FFFFFF; }
+body .members-only-template #side-links li {
+  line-height: 1;
+  margin-bottom: 10px; }
 body .members-only-template #side-links li a {
   color: #FFFFFF;
   text-decoration: none;
@@ -7697,8 +7706,19 @@ body .members-only-template #side-links li a {
 body .members-only-template #side-links li a:hover {
   color: #ffc742;
   border-bottom: 1px solid #ffc742; }
+body #glm-member-front-header {
+  border-bottom: 1px solid lightgrey;
+  margin: 5px 10px 10px;
+  padding: 10px; }
 body #glm-member-front-header .glm-button.button {
   background-color: #b32024; }
+body #glm-member-front-header .glm-member-greeting {
+  float: left;
+  padding: 6px; }
+body #glm-member-front-header .button.glm-button {
+  float: right;
+  padding: 0.4em 0.8em;
+  border-radius: 4px; }
 
 #front {
   padding: 20px; }
@@ -7767,12 +7787,18 @@ body #glm-member-front-header .glm-button.button {
         #front .row.collapse #video img {
           margin: 0; } }
 
+.blog-posts-container {
+  clear: both; }
+
 #blog-posts-over .commentlist .comment {
   border: 1px solid lightgrey;
   border-radius: 5px;
   margin: 20px 0;
   padding: 10px; }
 
+#blog-posts-over .glm-button {
+  margin: 4px; }
+
 #blog-posts-over .vcard {
   border: 0; }
 
index 1e22264..a7189ee 100644 (file)
@@ -5,7 +5,7 @@
 </div>
 <main class="page-front">
     <div id="content-wrapper">
-        
+
         <video autoplay="" loop="" muted="">
             <source src="https://player.vimeo.com/external/161515994.hd.mp4?s=245eda096e14793a197182ab6af9c73afefbd5d7&amp;profile_id=119">
         </video>
@@ -18,7 +18,7 @@
 
         <div class="row">
             <?php
-            get_template_part('parts/glm-blocks');
+                get_template_part('parts/glm-blocks-front');
             ?>
         </div>
 
index 5ea2316..7f6fa3b 100644 (file)
@@ -29,6 +29,23 @@ if (!function_exists('glm_quicksite_widget_init')) {
 
 }
 
+// Usage:
+// get_id_by_slug('any-page-slug');
+if ( ! function_exists( 'get_block_id_by_slug' ) ) {
+    function get_block_id_by_slug($post_slug) {
+
+        $the_block = get_page_by_path( $post_slug, OBJECT, 'glm_blocks' );
+        if ($the_block) {
+            return $the_block->ID;
+        } else {
+            return null;
+        }
+
+    }
+}
+DEFINE("MEMBERS_ONLY_GROUP", get_block_id_by_slug('members-only-group'));
+DEFINE("FRONT_PAGE_GROUP",get_block_id_by_slug('front-page-group'));
+
 /**
  * get_menu_options
  *
@@ -60,7 +77,7 @@ if ( ! function_exists( 'truenorthgolf_top_bar_left' ) ) {
           'container_class' => '',                        // class of container
           'menu' => '',                                   // menu name
           'menu_class' => '',                             // adding custom nav class
-          'theme_location' => 'top-bar-left',                  // where it's located in the theme
+          'theme_location' => 'top-bar-left',             // where it's located in the theme
           'before' => '',                                 // before each link <a>
           'after' => '',                                  // after each link </a>
           'link_before' => '',                            // before each link text
@@ -78,7 +95,7 @@ if ( ! function_exists( 'truenorthgolf_top_bar_right' ) ) {
           'container_class' => '',                        // class of container
           'menu' => '',                                   // menu name
           'menu_class' => '',                             // adding custom nav class
-          'theme_location' => 'top-bar-right',                  // where it's located in the theme
+          'theme_location' => 'top-bar-right',            // where it's located in the theme
           'before' => '',                                 // before each link <a>
           'after' => '',                                  // after each link </a>
           'link_before' => '',                            // before each link text
index 1896ac2..cd06209 100644 (file)
@@ -19,14 +19,22 @@ Template Name: GLM Members Only Template
             ?>
         </div>-->
         <div class="row">
-            <div id="side-links" class="show-for-large-up left medium-4 columns">
+            <div id="side-links" class="show-for-medium-up left medium-4 columns">
                 <?php get_template_part('parts/members-sidebar');?>
             </div>
-            <div id="main-content" class="small-8 columns">
+            <div id="main-content" class="small-12 medium-8 columns">
+
                 <?php if (current_user_can("glm_members_member")) { ?>
                     <!-- If user is logged in as a member, display top bar, bread crumbs, & content -->
                     <?php get_template_part('parts/glm-members-only-top-bar'); ?>
                     <?php get_template_part('parts/content-section'); ?>
+                    <?php if (get_the_ID() == get_option("glm_members_database_option_members_only_id")) {?>
+                        <?php if(function_exists('fetch_all_glm_blocks')) { ?>
+                            <div class="row">
+                                <?php get_template_part('parts/glm-blocks-members-only'); ?>
+                            </div>
+                        <?php } ?>
+                    <?php } ?>
                 <?php } else if (get_the_ID() == get_option("glm_members_database_option_members_only_id")) {?>
                     <!-- Otherwise, if it's the main members only page, display content & form -->
                     <?php get_template_part('parts/content-section'); ?>
@@ -38,6 +46,5 @@ Template Name: GLM Members Only Template
                 <?php } ?>
             </div>
         </div>
-        <?php get_template_part('parts/interior-footer'); ?>
     </div>
 <?php get_footer(); ?>
index ec75faf..248e8d5 100644 (file)
--- a/home.php
+++ b/home.php
@@ -1,11 +1,8 @@
 <?php get_header(); ?>
 <main class="blog-home">
     <div id="head-img">
-        <div class="featured-image" style="background: url('<?php echo get_template_directory_uri();?>/assets/default.jpg') no-repeat scroll 0px bottom / cover;"></div>
+        <div class="featured-image" style="background: url('<?php echo get_template_directory_uri();?>/assets/default-header.jpg') no-repeat scroll 0px bottom / cover;"></div>
     </div>
-<!--    <article <?php // post_class() ?> id="interior-featured">
-        <?php // GLM_get_header(); ?>
-    </article> -->
     <div class="row">
         <div id="blog-posts-over" class="small-12 medium-8 columns">
             <?php if(have_posts()) : while(have_posts()): the_post();?>
                             <span class="meta date"><?php the_time('F jS, Y') ?></span>
                         </header>
                         <?php echo (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt(): the_excerpt(); ?>
-                        <!--the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;');-->
-                        <!-- This could be wrapped in php tags and be functional,
-                                but it is easier to change this in admin side-->
-<!--                        <footer class="entry-meta small-12 medium-6 medium-push-3 center">
-                            <?php // $post_categories = wp_get_post_categories( get_the_ID() );
-//                            $cats = array();
-//                            echo 'This entry was posted ';
-//                            if (has_category()) {
-//                                echo 'in';
-//                                foreach($post_categories as $c){
-//                                    $cat = get_category( $c );
-//                                    $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-//                                    echo ', <a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>';
-//                                }
-//                                echo '.';
-//                            }
-//                            ?>
-                        </footer>-->
                     </article>
                 </div>
             </div>
index 07b7d72..74299bb 100644 (file)
--- a/index.php
+++ b/index.php
-<!doctype html>
-<html class="no-js" lang="en">
-  <head>
-    <meta charset="utf-8" />
-    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <title><?php wp_title(); ?></title>
-    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css">
-    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700' rel='stylesheet' type='text/css'>
-    <link href='http://fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
-    <link href='http://fonts.googleapis.com/css?family=Euphoria+Script' rel='stylesheet' type='text/css'>
-    <?php wp_head(); ?>
-  </head>
-  <body>
-      <div class="off-canvas-wrap" data-offcanvas>
-        <div class="inner-wrap">
-            <div id="page-wrapper">
-                <header>
-                    <div class="row">
-                        <div class="large-4 columns show-for-large-up social">
-                            <a href="https://www.facebook.com/pages/Mount-Pleasant-Area-Convention-and-Visitors-Bureau/55686552727"><img src="<?php bloginfo('template_url'); ?>/assets/facebook-icon.png"></a>
-                            <a href="https://twitter.com/MtPleasantCVB"><img src="<?php bloginfo('template_url'); ?>/assets/twitter-icon.png"></a>
-                            <a href="http://www.youtube.com/user/mountpleasantwow"><img src="<?php bloginfo('template_url'); ?>/assets/youtube-icon.png"></a>
-                            <a href="https://instagram.com/mtpleasantcvb"><img src="<?php bloginfo('template_url'); ?>/assets/instagram.png"></a>
-                            <a href="http://blog.mountpleasantwow.com/"><img src="<?php bloginfo('template_url'); ?>/assets/blog-icon.png"></a>
-                        </div>
-                        <div class="large-4 columns show-for-large-up">
-                            <a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/assets/mt-pleasant-pure-mi-logo.png"></a>
-                        </div>
-                        <div class="search-top large-4 columns show-for-medium-up">
-                            <?php get_template_part('parts/search');?>
-                            <ul id="sec-nav" class="right">
-                                <li><a href="<?php bloginfo('url'); ?>">Home</a></li>
-                                <li><a href="<?php bloginfo('url'); ?>/contact-us">Contact</a></li>
-                            </ul>
-                        </div>
-                    </div>
-                    <nav class="top-bar text-center show-for-large-up" data-topbar role="navigation">
-                        <section class="top-bar-section">
-                            <?php truenorthgolf_top_bar(); ?>
-                        </section>
-                    </nav>
-                    <nav class="tab-bar show-for-medium-down">
-                        <section class="left-small">
-                            <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
-                        </section>
-                    </nav>
-                    <aside class="left-off-canvas-menu hide-for-large-up">
-                        <?php glm_offcanvas_menu(); ?>
-                        <?php if (function_exists('glm_get_clientinfo_option')) :?>
-                        <ul>
-                            <li><?php echo glm_get_clientinfo_option('businessName');?></li>
-                            <?php if (glm_get_clientinfo_option('address')):?>
-                                <li><?php echo glm_get_clientinfo_option('address');?></li>
-                                <li><?php echo glm_get_clientinfo_option('city');?>, <?php echo glm_get_clientinfo_option('state');?>
-                                    <?php echo glm_get_clientinfo_option('zip');?></li>
-                            <?php endif;?>
-                            <?php if (glm_get_clientinfo_option('address2')):?>
-                                <li><?php echo glm_get_clientinfo_option('address2');?></li>
-                                <li><?php echo glm_get_clientinfo_option('city2');?>, <?php echo glm_get_clientinfo_option('state2');?>
-                                    <?php echo glm_get_clientinfo_option('zip2');?></li>
-                            <?php endif;?>
-                            <?php if (glm_get_clientinfo_option('phone')) :?>
-                                <li><?php echo glm_get_clientinfo_option('phone');?></li>
-                            <?php endif;?>
-                            <?php if (glm_get_clientinfo_option('fax')) :?>
-                                <li><?php echo glm_get_clientinfo_option('fax');?></li>
-                            <?php endif;?>
-                            <?php if (glm_get_clientinfo_option('extra')) :?>
-                                <li><?php echo glm_get_clientinfo_option('extra');?></li>
-                            <?php endif;?>
-                        </ul>
-                        <?php endif;?>
-                    </aside>
-                </header>
-                <div class="row">
-                    <img class="orb-shadow" src="<?php bloginfo('template_url'); ?>/assets/shadow-lrg.jpg">
-                </div>
-                <main class="page-front">
-                    <div id="content-wrapper">
-                        <div class="row" data-equalizer>
-                            <?php
-                            get_template_part('parts/glm-blocks');
-                            ?>
-                        </div>
-                        <div id="mid">
-                            <div class="row">
-                                <div class="small-12 medium-6 large-5 columns">
-                                    <a href="<?php bloginfo('url'); ?>#"><img src="<?php bloginfo('template_url'); ?>/assets/central-swing-logo.jpg"></a>
-                                    <div id="golf">
-                                        <h2>MICHIGAN’S ANSWER TO GREAT GOLF</h2>
-                                        <p>Whether you’re looking for classic layouts, championship challenges, or a weekend oasis of golf, Michigan’s Central Swing has it all. With 11 amazing courses and 11 relaxing retreats, Michigan’s Central Swing is the destination every golfer is looking for.</p>
-                                        <a href="<?php bloginfo('url'); ?>#">more info...</a>
-                                    </div>
-                                </div>
-                            </div>
-                        </div>
-                        <div class="row">
-                            <div id="main-content" class="small-12 medium-6 large-8 columns">
-                                <h1>Our Blog</h1>
-                                <?php
-                                get_template_part('parts/blog-feed-front');
-                                ?>
-                            </div>
-                            <div class="small-12 medium-6 large-4 columns small-text-center medium-text-left">
-                                <?php get_sidebar(); ?>
-                            </div>
-                        </div>
-                    </div>
-                    <footer id="main">
-                        <div class="row">
-                            <div class="small-12 large-9 small-text-center large-text-left columns">
-                                <ul id="menu-footer">
-                                    <li>
-                                        <div id="weather-widget">
-                                            <?php echo do_shortcode('[awesome-weather location=MountPleasant,MI inline_style="width: 200px;"]'); ?>
-                                        </div>
-                                        <a href="http://openweathermap.org/city/5002714" target="_blank" id="activate-weather">Weather</a>
-                                    </li>
-                                    <li><a class="nf-modal-link" rel="nf-modal:open" href="#ninja-forms-modal-5">Sign Up</a></li>
-                                    <li><a href="<?php bloginfo('url'); ?>/visitor-guide">Visitors Guide</a></li>
-                                    <li><a href="<?php bloginfo('url'); ?>/media">Media</a></li>
-                                </ul>
-                            </div>
-                            <div class="large-3 columns show-for-large-up social">
-                                <a href="http://blog.mountpleasantwow.com/"><img src="<?php bloginfo('template_url'); ?>/assets/blog-icon.png"></a>
-                                <a href="https://instagram.com/mtpleasantcvb"><img src="<?php bloginfo('template_url'); ?>/assets/instagram.png"></a>
-                                <a href="http://www.youtube.com/user/mountpleasantwow"><img src="<?php bloginfo('template_url'); ?>/assets/youtube-icon.png"></a>
-                                <a href="https://twitter.com/MtPleasantCVB"><img src="<?php bloginfo('template_url'); ?>/assets/twitter-icon.png"></a>
-                                <a href="https://www.facebook.com/pages/Mount-Pleasant-Area-Convention-and-Visitors-Bureau/55686552727"><img src="<?php bloginfo('template_url'); ?>/assets/facebook-icon.png"></a>
-                            </div>
-                        </div>
-                        <?php if (is_active_sidebar('sidebar-f')) :?>
-                            <?php dynamic_sidebar('sidebar-f');?>
-                        <?php endif;?>
-                    </footer>
-                    <div class="row">
-                        <img class="orb-shadow" src="<?php bloginfo('template_url'); ?>/assets/shadow-lrg.jpg">
-                        <?php get_template_part('parts/client-info-footer');?>
-                    </div>
-                </main><!--End of main-->
-                <div id="copyright" class="small-12 text-center row columns">
-                    <span>Copyright &copy; <?php echo date('Y');?> </span>
-                    <span class="bullet"> &#8226; </span>
-                    <span> Produced by <a target="_blank" href="http://www.gaslightmedia.com">Gaslight Media</a></span>
-                    <span class="bullet"> &#8226; </span>
-                    <span> All Rights Reserved.</span>
-                </div>
-            </div><!--End of page-wrap-->
-        <a class="exit-off-canvas"></a>
-        </div><!--End of inner-wrap-->
-      </div><!--End of off-canvas-->
-    <div id="modal-placeholder">
-        <?php $modal_link = do_shortcode('[ninja_forms_modal_form id=5 text_link="eNews Signup"]'); // Must stay above wp_footer() as it adds actions to it ?>
+<?php get_header(); ?>
+<main class="page-inside">
+    <div id="head-img">
+        <?php echo glm_get_background(); ?>
     </div>
-  </body>
-  <?php wp_footer();?>
-</html>
+    <?php //get_template_part('parts/reservation-form');?>
+    <div class="row show-for-medium-up">
+        <img class="orb-shadow" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/shadow-lrg.jpg">
+    </div>
+    <div id="content-wrapper">
+        <div class="row">
+            <?php
+                get_template_part('parts/bread-crumbs');
+            ?>
+        </div>
+        <div class="row">
+            <div id="main-content" class="small-12 columns">
+                <?php get_template_part('parts/content-section'); ?>
+            </div>
+        </div>
+    </div>
+
+<?php get_footer(); ?>
index c602e73..74299bb 100644 (file)
--- a/page.php
+++ b/page.php
@@ -18,7 +18,6 @@
                 <?php get_template_part('parts/content-section'); ?>
             </div>
         </div>
-        <?php //get_template_part('parts/interior-footer'); ?>
     </div>
 
 <?php get_footer(); ?>
diff --git a/parts/blog-archive-content.php b/parts/blog-archive-content.php
new file mode 100644 (file)
index 0000000..60b693f
--- /dev/null
@@ -0,0 +1,21 @@
+                    <?php if(have_posts()) : while(have_posts()): the_post();?>
+                    <div class="row content blog-posts-container">
+                        <div class="small-11 small-centered columns">
+                            <article id="<?php the_ID()?>" <?php post_class()?>>
+                                <header class="entry-header">
+                                    <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
+                                    <span class="meta date"><?php the_time('F jS, Y') ?></span>
+                                </header>
+                                <?php echo (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt(): the_excerpt(); ?>
+                            </article>
+                        </div>
+                    </div>
+                    <?php endwhile; ?>
+                    <div class="navigation">
+                        <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
+                    </div><!-- /.navigation -->
+                    <?php else: ?>
+                    <div id="post-404" class="noposts">
+                        <p><?php _e('Sorry, no results were found.');?></p>
+                    </div><!-- /#post-404 -->
+                    <?php endif;?>
\ No newline at end of file
diff --git a/parts/blog-sidebar-members-only.php b/parts/blog-sidebar-members-only.php
new file mode 100644 (file)
index 0000000..690970d
--- /dev/null
@@ -0,0 +1,41 @@
+        <div id="blog-side-info-wrapper" class="small-11 small-only-text-center medium-4 columns">
+            <div id="blog-side-info">
+                <form id="searchform" action="<?php echo esc_url( home_url() ); ?>" method="get">
+                    <div><input id="s" class="text" type="text" name="s" value="" />
+                    <input class="submit blogbutton" type="submit" name="submit" value="Search" />
+                    <input type="hidden" name="searchType" value="blog" /> </div>
+                </form>
+                <h3>Recent Posts</h3>
+                <ul>
+                <?php
+                    $category = get_term_by('slug', 'members-only', 'category');
+                    $args = array( 'numberposts' => '5', 'post_status' => 'publish', 'category_name' => 'members-only' );
+                    $recent_posts = wp_get_recent_posts( $args );
+                    foreach( $recent_posts as $recent ){
+                        echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .   $recent["post_title"].'</a> </li> ';
+                    }
+                ?>
+                </ul>
+                <h3>Categories</h3>
+                <ul>
+                    <?php
+                    $args = array(
+                    'orderby' => 'name',
+                    'order' => 'ASC',
+                    'category_name' => 'members-only'
+                    );
+                  $categories = get_categories($args);
+                    foreach($categories as $category) {
+                        if ( $category->slug == "members-only") {
+                            echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';
+
+                        }
+                    }
+                    ?>
+                </ul>
+                <h3>Archive</h3>
+                <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
+
+            </div>
+
+        </div>
\ No newline at end of file
index f822cd6..540692e 100644 (file)
@@ -8,11 +8,12 @@
                 <h3>Recent Posts</h3>
                 <ul>
                 <?php
-                        $args = array( 'numberposts' => '5', 'post_status' => 'publish' );
-                        $recent_posts = wp_get_recent_posts( $args );
-                        foreach( $recent_posts as $recent ){
-                                echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .   $recent["post_title"].'</a> </li> ';
-                        }
+                    $members_only_category = get_term_by('slug', 'members-only', 'category');
+                    $args = array( 'numberposts' => '5', 'post_status' => 'publish', 'category__not_in' => $members_only_category->term_id );
+                    $recent_posts = wp_get_recent_posts( $args );
+                    foreach( $recent_posts as $recent ){
+                            echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .   $recent["post_title"].'</a> </li> ';
+                    }
                 ?>
                 </ul>
                 <h3>Categories</h3>
                     );
                   $categories = get_categories($args);
                     foreach($categories as $category) {
-                      echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';  }
+                        if ($category->term_id !== $members_only_category->term_id ) {
+                            echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';
+                        }
+                    }
                     ?>
                 </ul>
                 <h3>Archive</h3>
diff --git a/parts/glm-blocks-front.php b/parts/glm-blocks-front.php
new file mode 100644 (file)
index 0000000..19f8637
--- /dev/null
@@ -0,0 +1,31 @@
+<?php if(function_exists('fetch_all_glm_blocks')):?>
+
+<?php $blocks = fetch_all_glm_blocks(FRONT_PAGE_GROUP);?>
+<div class="blocks" data-equalizer="">
+    <?php foreach ($blocks as $block):?>
+    <div class="text-center small-10 small-centered medium-uncentered medium-4 columns large-text-left block">
+            <?php if($block->url):?>
+            <a href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?> >
+            <?php endif;?>
+            <div class="block-thumb-wrap">
+                <?php $thumb = get_the_post_thumbnail($block->ID, 'glm-blocks'); echo $thumb; ?>
+            </div>
+            <?php if($block->url):?>
+            </a>
+            <?php endif;?>
+        <div class="block-text" data-equalizer-watch="">
+            <?php if($block->url):?>
+            <a class="title-posts" href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?>>
+            <?php endif;?>
+                <h3><?php echo $block->post_title;?></h3>
+            <?php if($block->url):?>
+            </a>
+             <?php endif;?>
+            <p><?php echo $block->post_content . $block->post_excerpt;?></p>
+            <a class="block-readmore" href="<?php echo $block->url;?>">Learn More <span class="block-more-arrow-right"></span></a>
+        </div>
+
+    </div>
+    <?php endforeach;?>
+</div>
+<?php endif;?>
diff --git a/parts/glm-blocks-members-only.php b/parts/glm-blocks-members-only.php
new file mode 100644 (file)
index 0000000..2d3674c
--- /dev/null
@@ -0,0 +1,31 @@
+<?php if(function_exists('fetch_all_glm_blocks')):?>
+
+<?php $blocks = fetch_all_glm_blocks(MEMBERS_ONLY_GROUP);?>
+<div class="blocks" data-equalizer="">
+    <?php foreach ($blocks as $block):?>
+    <div class="text-center small-10 small-centered medium-uncentered medium-6 columns large-text-left block">
+            <?php if($block->url):?>
+            <a href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?> >
+            <?php endif;?>
+            <div class="block-thumb-wrap">
+                <?php $thumb = get_the_post_thumbnail($block->ID, 'glm-blocks'); echo $thumb; ?>
+            </div>
+            <?php if($block->url):?>
+            </a>
+            <?php endif;?>
+        <div class="block-text" data-equalizer-watch="">
+            <?php if($block->url):?>
+            <a class="title-posts" href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?>>
+            <?php endif;?>
+                <h3><?php echo $block->post_title;?></h3>
+            <?php if($block->url):?>
+            </a>
+             <?php endif;?>
+            <p><?php echo $block->post_content . $block->post_excerpt;?></p>
+            <a class="block-readmore" href="<?php echo $block->url;?>">Learn More <span class="block-more-arrow-right"></span></a>
+        </div>
+
+    </div>
+    <?php endforeach;?>
+</div>
+<?php endif;?>
diff --git a/parts/glm-blocks.php b/parts/glm-blocks.php
deleted file mode 100644 (file)
index a4be62a..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php if(function_exists('fetch_all_glm_blocks')):?>
-<?php $blocks = fetch_all_glm_blocks();?>
-<div class="blocks" data-equalizer="">
-    <?php foreach ($blocks as $block):?>
-    <div class="text-center small-10 small-centered medium-uncentered medium-4 columns large-text-left block">
-            <?php if($block->url):?>
-            <a href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?> >
-            <?php endif;?>
-            <div class="block-thumb-wrap">
-                <?php $thumb = get_the_post_thumbnail($block->ID, 'glm-blocks'); echo $thumb; ?>
-            </div>
-            <?php if($block->url):?>
-            </a>
-            <?php endif;?>
-        <div class="block-text" data-equalizer-watch="">
-            <?php if($block->url):?>
-            <a class="title-posts" href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?>>
-            <?php endif;?>
-                <h3><?php echo $block->post_title;?></h3>
-            <?php if($block->url):?>
-            </a>
-             <?php endif;?>
-            <p><?php echo $block->post_content . $block->post_excerpt;?></p>
-            <a class="block-readmore" href="<?php echo $block->url;?>">Learn More <span class="block-more-arrow-right"></span></a>
-        </div>
-
-    </div>
-    <?php endforeach;?>
-</div>
-<?php endif;?>
index bb67f35..3c49979 100644 (file)
@@ -2,7 +2,8 @@
     <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")) { ?>
-        <?php apply_filters('glm_associate_terms', $glmAssociateTerms);?>
-        <a class='button glm-button' href='<?php echo get_admin_url() ?>admin.php?page=glm-members-admin-menu-member'>Enter <?php echo $glmAssociateTerms['term_member_cap']; ?> Admin Area</a>                        
+        <?php $glmAssociateTerms = apply_filters('glm_associate_terms', '');?>
+        <a class='button glm-button' href='<?php echo get_admin_url() ?>admin.php?page=glm-members-admin-menu-member'>Enter <?php echo $glmAssociateTerms['term_member_cap']; ?> Admin Area</a>
+        <a class='button glm-button' href="<?php echo get_permalink(get_option("glm_members_database_option_members_only_id")); ?>">Members Home</a>
     <?php } ?>
 </div>
\ No newline at end of file
diff --git a/parts/interior-footer.php b/parts/interior-footer.php
deleted file mode 100644 (file)
index 7823eaa..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<div id="mid">
-    <img class="mid-img-large" src="<?php bloginfo('template_url'); ?>/assets/central-swing-interior-pg-image.jpg">
-    <div id="golf">
-        <div class="row">
-            <div id="request" class="small-12 small-text-center medium-text-left medium-4 large-3 columns">
-                <?php $golfPage = get_page_by_path('michigans-central-swing-golf-package/');?>
-                <?php if($golfPage):?>
-                <a href="<?php echo get_page_link($golfPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/swing-interior.jpg"></a>
-                <?php endif;?>
-            </div>
-            <div class="small-12 medium-8 large-9 columns">
-                <h2>MICHIGAN’S ANSWER TO GREAT GOLF</h2>
-                <p>Whether you’re looking for classic layouts, championship challenges, or a weekend oasis of golf, Michigan’s Central Swing has it all. With 11 amazing courses and 11 relaxing retreats, Michigan’s Central Swing is the destination every golfer is looking for.</p>
-                <?php $golfPage = get_page_by_path('michigans-central-swing-golf-package/');?>
-                <?php if($golfPage):?>
-                <a href="<?php echo get_page_link($golfPage->ID);?>">more info...</a>
-                <?php endif;?>
-            </div>
-        </div>
-    </div>
-</div>
-
index da2e5a7..a73e598 100644 (file)
@@ -6,4 +6,6 @@
             <?php glm_members_only_menu(); ?>
         <?php } ?>
     <?php } ?>
+    <?php $category = get_term_by('slug', 'members-only', 'category'); ?>
+    <h2><a href="<?php echo get_term_link($category); ?>">True North News</a></h2>
 </div>
\ No newline at end of file
index 2eccacf..4dcaacd 100644 (file)
         }
     }
 }
+.blog-posts-container {
+    clear: both;
+}
 #blog-posts-over .commentlist .comment {
     border: 1px solid lightgrey;
     border-radius: 5px;
     margin: 20px 0;
     padding: 10px;
 }
+#blog-posts-over .glm-button {
+    margin: 4px;
+}
 #blog-posts-over .vcard {
     border: 0;
 }
index f7bf74c..f1880da 100644 (file)
@@ -43,77 +43,76 @@ main {
     p a {
         font-weight: bold;
     }
-    &.page-front {
-
-        margin-top: -25px;
-        @media (max-width: 1024px) {
-            margin: 0 auto;
+    .blocks {
+        .block-thumb-wrap {
+            text-align: center;
+            max-height: 230px;
+            @media (max-width: 1024px) {
+                max-height: 170px;
+            }
+            overflow: hidden;
         }
-        .blocks {
-
-            .block-thumb-wrap {
-                text-align: center;
-                max-height: 230px;
-                @media (max-width: 1024px) {
-                    max-height: 170px;
+        .block {
+            margin-bottom: 80px;
+            transition: all .2s ease in out;
+            img {
+                border: none;
+                padding: 0;
+                @media (min-width: 640px) {
+                    /*width:99%;*/
                 }
-                overflow: hidden;
             }
-            .block {
-                margin-bottom: 80px;
-                transition: all .2s ease in out;
-                img {
-                    border: none;
-                    padding: 0;
-                    @media (min-width: 640px) {
-                        /*width:99%;*/
-                    }
-                }
-                h1 {
-                    font-family: "ingram-wide-2";
-                    color: $black;
-                }
-                h3 {
-                    color: $black;
-                    font-family: "ingram-wide-2";
-                    text-align: center;
-                    font-size: 22px;
-                    margin-top: 0;
-                    margin-left: 15px;
-                    margin-right: 15px;
-                    text-transform: uppercase;
-                    padding-top: 8px;
-                }
-                p {
-                    color: $dark-grey;
-                    text-align: center;
-                    font-size: 18px;
-                }
-                .block-text a {
-                    color: $red;
-                }
-                .block-readmore {
-                    text-align: center;
-                    font-size: rem-calc(15);
-                    display: block;
-                    padding-bottom: 10px;
-                    margin: 0 15px;
-                    color: $red;
-                    text-transform: uppercase;
-                    /*position: absolute;*/
-                    /*bottom: 0;*/
-                }
-                .block-more-arrow-right:before {
-                    content: '\2192'; // right arrow
-                }
-                a:hover span {
-                    padding: 0 0 0 20px;
+            h1 {
+                font-family: "ingram-wide-2";
+                color: $black;
+            }
+            h3 {
+                color: $black;
+                font-family: "ingram-wide-2";
+                text-align: center;
+                font-size: 22px;
+                margin-top: 0;
+                margin-left: 15px;
+                margin-right: 15px;
+                text-transform: uppercase;
+                padding-top: 8px;
+            }
+            p {
+                color: $dark-grey;
+                text-align: center;
+                font-size: 18px;
+            }
+            .block-text a {
+                color: $red;
+            }
+            .block-readmore {
+                text-align: center;
+                font-size: rem-calc(15);
+                display: block;
+                padding-bottom: 10px;
+                margin: 0 15px;
+                color: $red;
+                text-transform: uppercase;
+                /*position: absolute;*/
+                /*bottom: 0;*/
+            }
+            .block-more-arrow-right:before {
+                content: '\2192'; // right arrow
+            }
+            a:hover span {
+                padding: 0 0 0 20px;
 
-                }
-                a span {
-                    transition: all .2s ease-in-out;
-                }
             }
+            a span {
+                transition: all .2s ease-in-out;
+            }
+        }
+    }
+    &.page-front {
+
+        margin-top: -25px;
+        @media (max-width: 1024px) {
+            margin: 0 auto;
         }
         #main-content {
             margin-top: 25px;
index 672111f..3b96b24 100644 (file)
@@ -176,6 +176,14 @@ body {
     }
 }
 .members-only-template {
+    #menu-side h2 a {
+        color: white;
+        font-size: 1.875rem;
+        font-family: "ingram-wide-2";
+        &:hover {
+            border-bottom: 1px solid white;
+        }
+    }
     #side-links {
         background-color: $red;
         border: 1px solid $gold;
@@ -190,6 +198,10 @@ body {
     #side-links h2 {
         color: $white;
     }
+    #side-links li {
+        line-height: 1;
+        margin-bottom: 10px;
+    }
     #side-links li a {
         color: $white;
         text-decoration: none;
@@ -200,7 +212,21 @@ body {
         border-bottom: 1px solid $gold;
     }
 }
+#glm-member-front-header {
+    border-bottom: 1px solid lightgrey;
+    margin: 5px 10px 10px;
+    padding: 10px;
+}
 #glm-member-front-header .glm-button.button {
     background-color: $red;
 }
+#glm-member-front-header .glm-member-greeting {
+    float: left;
+    padding: 6px;
+}
+#glm-member-front-header .button.glm-button {
+    float: right;
+    padding: .4em .8em;
+    border-radius: 4px;
+}
 } // End of global body tag to overwrite existing member db styles
\ No newline at end of file
index a01e9a8..d25a41e 100644 (file)
@@ -1,7 +1,7 @@
 <?php get_header(); ?>
     <main class="blog-single">
         <div id="head-img">
-            <div class="featured-image" style="background: url('<?php echo get_template_directory_uri();?>/assets/default.jpg') no-repeat scroll 0px bottom / cover;"></div>
+            <div class="featured-image" style="background: url('<?php echo get_template_directory_uri();?>/assets/default-header.jpg') no-repeat scroll 0px bottom / cover;"></div>
         </div>
     <?php //get_template_part('parts/reservation-form');?>
         <div class="row">
@@ -11,7 +11,7 @@
                 echo '<div id="blog-posts-over" class="small-12 medium-11 medium-centered columns ai1ec-post">';
             } else {
                 echo '<div id="blog-posts-over" class="small-12 medium-8 columns">';
-                
+
             }
             ?>
             <div id="addthis_wrapper">
                                     <?php echo the_content(); ?>
                                     <?php //comments_template(); ?>
 <!--                                    <footer class="entry-meta small-12 medium-6 medium-push-3 center">-->
-                                        <?php //$post_categories = wp_get_post_categories( get_the_ID() );
-//                                        $cats = array();
+                                        <?php $post_categories = wp_get_post_categories( get_the_ID() );
+                                        $cats = array();
 //                                        echo 'This entry was posted ';
-//                                        if (has_category()) {
+                                        if (has_category()) {
 //                                            echo 'in ';
-//                                            foreach($post_categories as $c){
-//                                                $cat = get_category( $c );
-//                                                $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-//                                                echo '<a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>, ';
-//                                            }
-//                                        }
+                                            foreach($post_categories as $c){
+                                                $cat = get_category( $c );
+                                                $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
+                                                echo '<a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>, ';
+                                            }
+                                        }
 //                                        $post_tags = wp_get_post_tags( get_the_ID() );
 //                                        $tags = array();
 //                                        if (has_tag( )) {
@@ -66,8 +66,8 @@
                             </div>
                         </div>
                     </div>
-                                   
-                    
+
+
                 </div>
                 <?php endwhile; ?>
                 <?php else: ?>