From 740a0ecfc308ee1c879aaf60c6eff96d80a22887 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Mon, 27 Feb 2017 10:57:55 -0500 Subject: [PATCH] Implementing the Glm Simple Messageboard plugin --- functions.php | 14 ++++++++++++++ sections/front-page.php | 20 +++++++++++++------- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/functions.php b/functions.php index 8ee2c65..c30e5a7 100644 --- a/functions.php +++ b/functions.php @@ -157,4 +157,18 @@ add_action( 'after_setup_theme', 'woocommerce_support' ); function woocommerce_support() { add_theme_support( 'woocommerce' ); } + +// The GLM Simple Messageboard needs this function to display its data +if ( !function_exists( 'glm_get_simplemessageboard_option' ) ) { + function glm_get_simplemessageboard_option( $option_name ) + { + $settings = get_option( 'glmsimplemessageboard_settings' ); + if ($settings && array_key_exists( $option_name, $settings ) ) { + return $settings[ $option_name ]; + } else { + return null; + } + } +} + ?> diff --git a/sections/front-page.php b/sections/front-page.php index 001f6ba..e836de6 100644 --- a/sections/front-page.php +++ b/sections/front-page.php @@ -13,13 +13,19 @@
-
- -
-
-

Today’s Lunch Special

-

I'm friends with the monster that's under my bed. Get along with the voices inside fo my head. You trying to save me, stop holding your breath. And you think I'm crazy, yeah, you think I'm crazy

-
+ + +
+ +
+
+

+ +

+ +
+ +
-- 2.17.1