From 08de2aecfc87eb3870643f7a9841fb3d7e5343c2 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 3 Jun 2015 11:58:12 -0400 Subject: [PATCH] Update the footor and off-canvas areas Bring in the data from the glm-client-info plugin --- footer.php | 22 ++++++++++++---------- functions.php | 17 ++++++++++++++++- parts/off-canvas-menu.php | 19 ++++++++++++++----- 3 files changed, 42 insertions(+), 16 deletions(-) diff --git a/footer.php b/footer.php index 747f582..e1d28c8 100644 --- a/footer.php +++ b/footer.php @@ -12,9 +12,9 @@
+
-

Market: 231-347-1571

-
-
-

Party Store: 231-347-9631

-
-
-

Fax: 231-347-3542

+ + +

:

+
+
diff --git a/functions.php b/functions.php index 9765bde..b7827df 100644 --- a/functions.php +++ b/functions.php @@ -6,6 +6,21 @@ $includePages = array(); $frontPageId = get_option('page_on_front'); add_action('widgets_init', 'glm_quicksite_widget_init'); +if (!function_exists('glm_get_clientinfo_option')) { + function glm_get_clientinfo_option($name) + { + $settings = get_option('glmclientinfo_settings'); + $states = get_option('glmclientinfo_states'); + if ($name == 'stateFull' && $settings['state']) { + return $states[$settings['state']]; + } + if ($name == 'state2Full' && $settings['state2']) { + return $states[$settings['state2']]; + } + return ($settings && $settings[$name]) ? $settings[$name]: null; + } +} + if (!function_exists('glm_quicksite_widget_init')) { function glm_quicksite_widget_init() @@ -173,7 +188,7 @@ function glm_side_menu() { } else { $ID = $parent->ID; } - echo '

'.get_the_title($ID).'

'; + echo '

'.get_the_title($ID).'

'; echo ''."\n"; diff --git a/parts/off-canvas-menu.php b/parts/off-canvas-menu.php index 0f34861..caa5233 100644 --- a/parts/off-canvas-menu.php +++ b/parts/off-canvas-menu.php @@ -5,11 +5,20 @@
  • Contact