<?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(); ?>
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 {
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;
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;
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; }
#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; }
</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&profile_id=119">
</video>
<div class="row">
<?php
- get_template_part('parts/glm-blocks');
+ get_template_part('parts/glm-blocks-front');
?>
</div>
}
+// 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
*
'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
'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
?>
</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'); ?>
<?php } ?>
</div>
</div>
- <?php get_template_part('parts/interior-footer'); ?>
</div>
<?php get_footer(); ?>
<?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>
-<!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 © <?php echo date('Y');?> </span>
- <span class="bullet"> • </span>
- <span> Produced by <a target="_blank" href="http://www.gaslightmedia.com">Gaslight Media</a></span>
- <span class="bullet"> • </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(); ?>
<?php get_template_part('parts/content-section'); ?>
</div>
</div>
- <?php //get_template_part('parts/interior-footer'); ?>
</div>
<?php get_footer(); ?>
--- /dev/null
+ <?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
--- /dev/null
+ <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
<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>
--- /dev/null
+<?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;?>
--- /dev/null
+<?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;?>
+++ /dev/null
-<?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;?>
<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
+++ /dev/null
-<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>
-
<?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
}
}
}
+.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;
}
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;
}
}
.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;
#side-links h2 {
color: $white;
}
+ #side-links li {
+ line-height: 1;
+ margin-bottom: 10px;
+ }
#side-links li a {
color: $white;
text-decoration: none;
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
<?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">
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( )) {
</div>
</div>
</div>
-
-
+
+
</div>
<?php endwhile; ?>
<?php else: ?>