adjusting footer mail and phone icon space.
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 19 Feb 2016 19:43:06 +0000 (14:43 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 19 Feb 2016 19:43:06 +0000 (14:43 -0500)
footer.php
functions.php
landing-page.php
parts/client-info-footer.php

index 2b425ca..3a83df0 100644 (file)
@@ -4,7 +4,7 @@
                                 <?php dynamic_sidebar('sidebar-f');?>
                             <?php endif;?>
                             <div class="row">
-                                <div class="small-centered small-11 medium-uncentered medium-6 columns text-center">
+                                <div class="small-centered small-11 medium-uncentered medium-5 columns text-center">
                                     <a href="<?php bloginfo('url');?>"><img src="<?php bloginfo('template_url'); ?>/assets/kalamazoo-logo-footer.jpg"></a> 
                                 </div>
                                 <?php get_template_part('parts/client-info-footer');?>
index 703c5de..96b0206 100644 (file)
@@ -56,6 +56,7 @@ function wpse_setup_theme() {
     add_image_size('glm_block1', 590, 590,true);
     add_image_size('glm_block2_3', 285, 285, false);
     add_image_size('glm_block4', 590, 285, true);
+    add_image_size('landing_page', 386, 285, true);
 }
 
 add_action( 'after_setup_theme', 'wpse_setup_theme' );
index a7538f4..d9316fc 100644 (file)
@@ -22,22 +22,22 @@ Template Name: Landing Page
             <ul id="quick-sub_pages" class="small-block-grid-1 medium-block-grid-3">
               <?php global $dyanmic_featured_image; ?>
                <?php global $post;
-                $image = get_the_post_thumbnail($post->ID);
-                echo $image;
+//                $image = get_the_post_thumbnail($post->ID);
+//                echo $image;
                 $args = array( 'post_parent' =>$post->ID, 'post_type'   => 'page', 'numberposts' => -1, 'post_status' => 'any');
                 $children = get_children($args);
                 foreach($children as $child){ ?>
                   <?php $images =  $dynamic_featured_image->get_featured_images($child->ID); ?>
                  <?php foreach($images as $image){
                     $imageSrc =  $image['full'];
-                }?>
+                  }?>
                   
                    <?php $imageID = get_post_thumbnail_id($child->ID); 
                   //  $imageSrc = wp_get_attachment_image_src($imageID, 'full'); ?>
-                    <?php $image = wp_get_attachment_image_src( $child->ID, 'full' ); ?>
+                    <?php $image = wp_get_attachment_image_src( $child->ID, 'landing_page', false ); ?>
                     
                      <li class="small-text-center medium-text-left landing-item"><a href="<?php echo get_permalink($child->ID); ?>"><img src="<?php echo $imageSrc; ?>"><h5><?php echo $child->post_title ?></h5></a></li>
-                     
+                     <?php $imageSrc = null; ?>
                <?php } ?>
 <!--
                 <li class="small-text-center medium-text-left landing-item"><a><img src="<?php bloginfo('template_url');?>/assets/landing-img/Arts-and-Entertainment.jpg"><h5>Arts & Entertainment</h5></a></li>
index 1851e0e..86c15a4 100644 (file)
@@ -1,11 +1,11 @@
-<div id="footer_address" class="small-centered small-11 medium-uncentered medium-5 large-3 columns">
+<div id="footer_address" class="small-centered small-11 medium-uncentered medium-5 large-4 columns">
     <p>Get in Touch</p>
     <?php if (function_exists('glm_get_clientinfo_option')) :?>
     <div class="mail_address row collapse">
         <div class="small-1 column">
             <img src="<?php echo get_template_directory_uri(); ?>/assets/mailing-address-icon.jpg">
         </div>
-        <div class="small-11 foot_content columns">
+        <div class="small-11 foot_content columns ">
             <?php if (glm_get_clientinfo_option('address')):?>
                 <span><?php echo glm_get_clientinfo_option('address');?></span><br>
 
@@ -25,7 +25,7 @@
         <div class="small-1 column">
             <img src="<?php echo get_template_directory_uri(); ?>/assets/phone-number-icon.jpg">
         </div>
-        <div class="small-11 foot_content columns">
+        <div class="small-11 foot_content columns ">
             <?php if (glm_get_clientinfo_option('phone')) :?>
                 <span><?php echo glm_get_clientinfo_option('phone');?></span>
             <?php endif;?>