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;
+ }
+ }
+}
+
?>
<?php get_template_part('parts/main-content');?>
<div class="small-12 large-6 large-offset-1 columns text-center">
- <div class="blackboard">
- <img src="<?php bloginfo('template_url'); ?>/assets/chalk-board.png">
- </div>
- <div class="custom-text">
- <h1>Today’s Lunch Special</h1>
- <p>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</p>
- </div>
+ <?php if (function_exists( 'glm_get_simplemessageboard_option' ) ) {?>
+ <?php if ( glm_get_simplemessageboard_option( 'active' ) ) { ?>
+ <div class="blackboard">
+ <img src="<?php bloginfo('template_url'); ?>/assets/chalk-board.png">
+ </div>
+ <div class="custom-text">
+ <h1> <?php echo glm_get_simplemessageboard_option( 'title' );?></h1>
+ <?php if ( glm_get_simplemessageboard_option( 'message' ) ) {?>
+ <p><?php echo glm_get_simplemessageboard_option( 'message' );?></p>
+ <?php } ?>
+ </div>
+ <?php } ?>
+ <?php } ?>
</div>
</div>
</div>