Simplify frontpage masonry code
authorLaury GvR <laury@gaslightmedia.com>
Thu, 22 Aug 2019 16:35:58 +0000 (12:35 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 22 Aug 2019 16:35:58 +0000 (12:35 -0400)
parts/frontpage-masonry.php
parts/header-meta.php
sections/front-page.php
style.css

index c2df9a7..974b094 100644 (file)
@@ -1,14 +1,10 @@
 <div id="glm-photo-grid" class="row">
-    <div class="small-12 columns" id="season-tabs">
+    <div class="small-12 columns" id="frontpage-masonry">
         <?php      
             $out = '';
-            extract(shortcode_atts(
-                array('category' => '-1'), $atts, 'glm-blocks')
-            );
             if(function_exists('fetch_blocks_by_slug')):
-                $category = filter_var($atts['category'], FILTER_SANITIZE_STRING);
-                fetch_blocks_by_slug($category);
-                $blocks = fetch_blocks_by_slug($category);
+                
+                $blocks = fetch_blocks_by_slug('frontpage-masonry');
                 $out .= '<div class="glm-blocks-container">';
                 $count = 0;
                 foreach ($blocks as $block):
@@ -20,8 +16,6 @@
                         $out .= '<a href="'.$block->url.'"'.(($block->externalUrl)? ' target="_blank"':'').'>';
                     endif;
                     $out .= '<div class="land-page-block-image" style="background: url('.$thumbnail.') no-repeat center center;"> <h5 class="glm-block-title">'.$block->post_title.'</h5></div>';
-                    // $out .= '<div class="glm-block-frame"><div class="land-page-block-image" style="background: url('.$thumbnail.') no-repeat center center;"> <h5 class="glm-block-title">'.$block->post_title.'</h5></div></div>';
-
                     if($block->url):
                         $out .= '</a>';
                     endif;
index d23daf2..e04d4c7 100644 (file)
@@ -2,7 +2,7 @@
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title><?php wp_title(); ?></title>
-    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.35.0">
+    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.36.0">
     <link href='//fonts.googleapis.com/css?family=Open+Sans:400,400italic,700' rel='stylesheet' type='text/css'>
     <link rel="shortcut icon" href="<?php echo bloginfo('template_url')?>/favicon.ico">
     <?php wp_head(); ?>
index eef19d7..8075952 100644 (file)
                                 </div>
                                 <div class="map-border"></div>
                             </div>
-                            <div id="glm-blocks-wrapper" data-equalizer data-options="equalize_on_stack: false">
-                                <?php
-                                //get_template_part('parts/glm-blocks');
-                                ?>
-                            </div>
 
                             <?php get_template_part('parts/frontpage-masonry'); ?>
 
index 1e32148..a5c3504 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: keweenaw2017
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for keweenaw
-Version: 1.0.35
+Version: 1.0.36
 */