figuring out blocks
authorIan Weller <ian@gaslightmedia.com>
Wed, 3 Aug 2016 17:34:53 +0000 (13:34 -0400)
committerIan Weller <ian@gaslightmedia.com>
Wed, 3 Aug 2016 17:34:53 +0000 (13:34 -0400)
parts/glm-blocks.php

index 0c2fd20..15da124 100644 (file)
@@ -1,23 +1,9 @@
 <?php if(function_exists('fetch_all_glm_blocks')):?>
 <?php 
 $page_template = get_page_template_slug($post->ID);
-switch ($page_template) {
-case 'front-page.php':
-    $defaultBlockGroup = DEFAULT_BLOCKS;
-    break;
-case 'chamber-template.php':
-    $defaultBlockGroup = CHAMBER_BLOCKS;
-    break;
-case 'blocks-demo-template.php':
-    $defaultBlockGroup = DEFAULT_BLOCKS;
-    break;
-default:
-    $defaultBlockGroup = DEFAULT_BLOCKS;
-    break;
-        
-}
+
 ?>
-<?php $blocks = fetch_all_glm_blocks($defaultBlockGroup);?>
+<?php $blocks = fetch_all_glm_blocks();?>
 <?php $count = 1; ?>
 <div class="blocks">
     <?php foreach ($blocks as $block):?>