Updates to the theme
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 16 Jan 2015 21:07:09 +0000 (16:07 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 16 Jan 2015 21:07:09 +0000 (16:07 -0500)
Add target _blank to gaslight link and facebook link
Add no-repeat to header images
Use php date function for hard coded dates

footer.php
front-page.php
functions.php
header.php

index bd93613..42e3ab6 100755 (executable)
                 </div>
                 <div class="row">
                     <div class="small-12 text-center columns sub-foot">
-                        <p>&copy; 2014 Emmet County, Michigan &#8226; All Rights Reserved</p>
+                        <p>&copy; <?php echo date('Y');?> Emmet County, Michigan &#8226; All Rights Reserved</p>
                     </div>
                 </div>
                 <div class="row">
                     <div class="small-12 text-center columns" id="gas">
-                        <p>Produced by <a href="http://www.gaslightmedia.com">Gaslight Media</a></p>
+                        <p>Produced by <a href="http://www.gaslightmedia.com" target="_blank">Gaslight Media</a></p>
                     </div>
                 </div>
                 <a class="exit-off-canvas"></a>
             </div><!--/inner-wrap-->
         </div><!--/off-canvas-->
-        
+
     </body>
     <?php wp_footer();?>
 </html>
\ No newline at end of file
index 91e62d4..8d96f26 100755 (executable)
@@ -2,9 +2,9 @@
 <div class="row">
     <div class="small-12 columns side_space">
         <div>
-            <?php 
-                echo do_shortcode("[metaslider id=24]"); 
-                echo do_shortcode("[metaslider id=28]"); 
+            <?php
+                echo do_shortcode("[metaslider id=24]");
+                echo do_shortcode("[metaslider id=28]");
             ?>
         </div>
             <?php
                                     $lastposts = get_posts( $args );
                                     foreach($lastposts as $post) : setup_postdata($post); ?>
                                         <div>
-                                            
+
                                             <div class="row">
                                                 <div class="small-8 small-centered medium-4 medium-uncentered columns">
                                                     <?php echo get_the_post_thumbnail($post->ID, array(190, 190), array('class' => 'blog-excerpt-img-wrap')); ?>
                                                 </div>
                                                 <div class="small-12 medium-8 columns">
                                                     <h3 class="title-posts" href="<?php the_permalink(); ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
-                                                
+
                                                     <p id="date" class="italic"><?php echo get_the_date('D, F j, Y g:iA', $post->ID); ?></p>
-                                                    
+
                                                     <div><?php echo the_advanced_excerpt('length=75&length_type=words&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,p,strong'); ?></div>
                                                 </div>
                                             </div>
                                         </div>
                                     <?php endforeach; ?>
                                 </div>
-                                
+
                                     <div class="cycle-pager small-12 medium-8 right">
                                         <a id="button-a" href="#" onclick="$('.cycle-slideshow').cycle('prev');return false;"><div class="left cycle-button">Previous</div></a>
                                         <a id="button-b" href="#" onclick="$('.cycle-slideshow').cycle('next');return false;"><div class="right cycle-button">Next</div></a>
                 <!--events-->
                 <div class="row">
                     <div id="h2_2" class="small-10 text-centered columns">
-                        <h2 class="small-push-1">2014 Holiday Schedule</h2>
+                        <h2 class="small-push-1"><?php echo date('Y');?> Holiday Schedule</h2>
                     </div>
                 </div>
                 <div class="row event">
                     <div class="medium-11 medium-push-1 columns side_space">
-                        <div class="img small-7 small-centered medium-5 columns">                            
+                        <div class="img small-7 small-centered medium-5 columns">
                             <div
                             <?php
                                 if ( has_post_thumbnail($homepage_ID) ) {
index 314954d..5d227f3 100755 (executable)
@@ -4,7 +4,7 @@
 if( ! function_exists( 'has_post_thumbnail' ) )
 {
     function has_post_thumbnail( $pid )
-    {       
+    {
         return get_post_meta( $pid, '_thumbnail_id', true );
     }
 }
@@ -96,7 +96,7 @@ function glm_site_scripts()
             true
         );
     }
-    
+
     if(is_page('videos')) {
         wp_enqueue_script('glm_ngg_video_gallery', get_template_directory_uri() . '/js/custom/glm-ngg-video-gallery.js','jquery','1.0.0', true );
     }
@@ -107,10 +107,10 @@ add_action('wp_enqueue_scripts', 'glm_site_scripts');
 /* Header for posts*/
 function GLM_get_header() {
     echo '<header';
-    
+
     if (has_post_thumbnail()) {
             $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
-            echo ' style="background: url('.$image_data[0].');min-height: '.$image_data[2].'px;';
+            echo ' style="background: url('.$image_data[0].');min-height: '.$image_data[2].'px; repeat: no-repeat;';
     } else {
             echo ' style="display: none"';
     }
index 9f7fcff..bb9f3b8 100755 (executable)
@@ -33,7 +33,7 @@
                                                 <a id="contact" href="<?php echo esc_url( get_permalink( get_page_by_title( 'Contact Us' ) ) ); ?>">
                                                     <img src="<?php bloginfo('template_url'); ?>/assets/mail.jpg">
                                                 </a>
-                                                <a id="face" href="http://www.Facebook.com/EmmetCountyRecycling">
+                                                <a id="face" href="http://www.Facebook.com/EmmetCountyRecycling" target="_blank">
                                                     <img src="<?php bloginfo('template_url'); ?>/assets/facebook.jpg">
                                                 </a>
 <!--                                                <a id="tweet" href="#"><img src="<?php bloginfo('template_url'); ?>/assets/twit.jpg"></a>
@@ -50,7 +50,7 @@
                                                     </div>
                                                     <div id="top_angle" class="large-1 show-for-large-up columns"></div>
                                                 </div>
-                                                
+
                                                 <div class="row">
                                                     <div class="small-12 medium-6 right columns">
 <!--                                                        <div class="qbutton"></div><a id="qbutton" value="" name="s" id="lar-search">Is it recyclable?<div></div></a>-->