more generic updates
authorIan Weller <ian@gaslightmedia.com>
Fri, 9 Jun 2017 16:49:34 +0000 (12:49 -0400)
committerIan Weller <ian@gaslightmedia.com>
Fri, 9 Jun 2017 16:49:34 +0000 (12:49 -0400)
I made more updates to make the theme more useful for Where People Count
site.

sections/front-page.php
sections/header.php

index bbf624f..c0bc38e 100644 (file)
@@ -1,48 +1,22 @@
                     <main class="page-front">
                         <?php get_template_part('parts/slide-show');?>
                         <div id="content-wrapper">
-                            <div id="blocks-row">
-                                <div class="row">
-                                    <?php $blocks = fetch_all_glm_blocks( ); ?>
-                                    <div class="blocks">
-                                        <?php foreach ($blocks as $block):?>
-                                        <div class="text-center small-12 medium-4 columns block">
-                                                <?php if($block->url):?>
-                                                <a href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?>>
-                                                <?php endif;?>
-                                                <?php echo get_the_post_thumbnail($block->ID, 'glm-block-image');?>
-                                                <?php if($block->url):?>
-                                                </a>
-                                                <?php endif;?>
-                                                <?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 apply_filters('the_content', $block->post_content) . $block->post_excerpt;?></p>
-                                            <?php if($block->url):?>
-                                            <a class="blocks-readmore" href="<?php echo $block->url;?>"></a>
-                                            <?php endif;?>
-                                        </div>
-                                        <?php endforeach;?>
-                                    </div>
-                                </div>
-                            </div>
+                            
                             <div class="row">
                                 <div id="front-content" class="small-centered small-12 medium-7 columns">
                                     <div class="row">
                                         <?php get_template_part('parts/main-content');?>
-                                        <div id="special-button" class="text-center small-12 columns">
-<!--                                            <a class="reserve" href="<?php //echo get_permalink(371); ?>">Reserve Your Space</a>-->
-                                        </div>
+<!--                                         <div id="special-button" class="text-center small-12 columns">
+                                           <a class="reserve" href="<?php //echo get_permalink(371); ?>">Reserve Your Space</a>
+                                        </div> 
+-->
                                     </div>
                                 </div>                                
                                 
 <!--                                <div class="small-12 medium-6 large-4 columns small-text-center medium-text-left">
                                     <?php //get_sidebar(); ?>
-                                </div>-->
+                                </div>
+-->
 
                             </div>
                         </div>
index 58085f5..e032b97 100644 (file)
 -->
 <header class="main opensearchserver.ignore">
     <div class="row">
-        <a class="logo left show-for-large-up" href="<?php bloginfo('url'); ?>">Logo Here</a>
-        <div class="small-12 columns text-center show-for-medium-down">
-            <a class="logo" href="<?php bloginfo('url'); ?>">Logo Here</a>
-        </div>
-        <?php get_template_part('sections/top-bar');?>
+        <?php get_custom_logo($blog_id = 0 );?>
+        <?php the_custom_logo($blog_id = 0 );?>
+        <?php
+            if ( is_front_page() && is_home() ) : ?>
+                <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
+            <?php else : ?>
+                <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
+            <?php endif;
+
+            $description = get_bloginfo( 'description', 'display' );
+            if ( $description || is_customize_preview() ) : ?>
+                <p class="site-description"><?php echo $description; ?></p>
+            <?php endif;
+        ?>
     </div>
+    <?php get_template_part('sections/top-bar');?>
 </header>
\ No newline at end of file