Added a template for GLM Blocks
authorLaury GvR <laury@gaslightmedia.com>
Fri, 12 May 2017 14:50:02 +0000 (10:50 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 12 May 2017 14:50:02 +0000 (10:50 -0400)
blocks-template.php [new file with mode: 0644]
parts/glm-blocks.php

diff --git a/blocks-template.php b/blocks-template.php
new file mode 100644 (file)
index 0000000..b9ec13a
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+/**
+ * Template Name: Blocks Template
+ */
+get_header(); ?>
+<main class="page-inside">
+    <div id="header-image" class="page-header">
+        <?php echo glm_get_header();?>
+    </div>
+        <div id="content-wrapper">
+            <div class="row">
+                <div id="main-content" class="small-12 medium-8 columns">
+                    <?php if(have_posts()) : while(have_posts()): the_post();?>
+                    <?php the_content();?>
+                    <?php endwhile; else:?>
+                    <p><?php _e('Sorry, no results found.');?></p>
+                    <?php endif;?>
+                </div>
+                <div id="glm-blocks" class="small-12 medium-4 columns">
+                    <?php
+                        get_template_part('parts/glm-blocks');
+                    ?>
+                </div>
+            </div>
+        </div>
+<?php get_footer(); ?>
index 16eedfd..ef3d4cb 100644 (file)
@@ -2,7 +2,7 @@
 <?php $blocks = fetch_all_glm_blocks();?>
 <div class="blocks">
     <?php foreach ($blocks as $block):?>
-    <div class="text-center small-12 medium-4 columns large-text-left blocks">
+    <div class="text-center small-12 columns large-text-left blocks">
             <?php if($block->url):?>
             <a href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?>>
             <?php endif;?>