clientinfo check for off-canvas. Remove recipe code on page.php
authorLaury GvR <laury@gaslightmedia.com>
Mon, 8 Jun 2015 15:17:02 +0000 (11:17 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 8 Jun 2015 15:20:18 +0000 (11:20 -0400)
page.php
parts/off-canvas-menu.php

index 09fdccc..378a929 100644 (file)
--- a/page.php
+++ b/page.php
@@ -8,33 +8,11 @@
         </div> 
         <div class="row">
             <div class="small-12 columns">
-                
-                    <?php if (is_page('recipes')) {
-                        $customPostTaxonomies = get_object_taxonomies('recipe');
-
-                        if(count($customPostTaxonomies) > 0)
-                        {
-                             foreach($customPostTaxonomies as $tax)
-                             {
-                                     $args = array(
-                                          'orderby' => 'name',
-                                          'show_count' => 0,
-                                          'pad_counts' => 0,
-                                          'hierarchical' => 1,
-                                          'taxonomy' => $tax,
-                                          'title_li' => ''
-                                        );
-
-                                     wp_list_categories( $args );
-                             }
-                        }
-                     } else { ?>
-                        <?php if(have_posts()) : while(have_posts()): the_post();?>
-                        <?php the_content();?>
-                        <?php endwhile; else:?>
-                        <p><?php _e('Sorry, no posts yet');?></p>
-                        <?php endif;?>
-                    <?php } ?>
+                <?php if(have_posts()) : while(have_posts()): the_post();?>
+                <?php the_content();?>
+                <?php endwhile; else:?>
+                <p><?php _e('Sorry, no posts yet');?></p>
+                <?php endif;?>
             </div>
         </div>
     </div>
index 61737f0..2d0131a 100644 (file)
@@ -1,11 +1,13 @@
 <aside class="left-off-canvas-menu hide-for-large-up">
     <?php glm_offcanvas_menu(); ?>
     <ul>
-        <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>
-        <li><strong>Market:</strong> <?php echo glm_get_clientinfo_option('market');?></li>
-        <li><strong>Party Store:</strong> <?php echo glm_get_clientinfo_option('party_store');?></li>
-        <li><strong>Fax:</strong> <?php echo glm_get_clientinfo_option('fax');?></li>
+        <?php if (function_exists(glm_get_clientinfo_option)) { ?>
+            <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>
+            <li><strong>Market:</strong> <?php echo glm_get_clientinfo_option('market');?></li>
+            <li><strong>Party Store:</strong> <?php echo glm_get_clientinfo_option('party_store');?></li>
+            <li><strong>Fax:</strong> <?php echo glm_get_clientinfo_option('fax');?></li>
+        <?php }?>
     </ul>
     <ul class="offcavas-social-list">
         <li><a href="https://www.facebook.com/pages/Toski-Sands-Market-Wine-Shop/149657178496827"><img src="<?php echo get_template_directory_uri(); ?>/assets/facebook-icon.png"></a></li>