From: Steve Sutton Date: Tue, 1 Nov 2016 21:25:21 +0000 (-0400) Subject: Update the blocks for theme X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=ceae2e1a80ee1d5c6ef41051d1a179ce02427154;p=WP-Themes%2Fglmthemes%2Funiversitycenter-theme.git Update the blocks for theme Updating the block section so it can be used to call as a function. --- diff --git a/functions.php b/functions.php index 5b98ff4..9e27dc5 100644 --- a/functions.php +++ b/functions.php @@ -1,6 +1,7 @@ ID); -switch ($post_id) { -case 'partners': - $defaultBlockGroup = PARTNERS_BLOCKS; - break; -default: - $defaultBlockGroup = DEFAULT_BLOCKS; - break; +if ( !function_exists( 'glm_blocks_per_section' ) ) { + function glm_blocks_per_section( $section ) { + if ( function_exists( 'fetch_all_glm_blocks' ) ) { + $blocks = fetch_all_glm_blocks( $section ); + ?> +
+ + + +
+ - -
- - - -
- - diff --git a/sections/footer.php b/sections/footer.php index 9607795..1594e78 100644 --- a/sections/footer.php +++ b/sections/footer.php @@ -1,9 +1,7 @@

Discover The Possibilities

- +
@@ -75,7 +73,7 @@
- +
- + - \ No newline at end of file + diff --git a/sections/front-page.php b/sections/front-page.php index 5edadc3..dd48432 100644 --- a/sections/front-page.php +++ b/sections/front-page.php @@ -3,9 +3,7 @@
- +
@@ -17,4 +15,4 @@
- \ No newline at end of file +