From: Laury GvR Date: Thu, 22 Aug 2019 16:35:58 +0000 (-0400) Subject: Simplify frontpage masonry code X-Git-Tag: v1.0.36^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=6ee4543ea83adbe6ff9240e39e068aa382b41dbb;p=WP-Themes%2Fkeweenaw2017.git Simplify frontpage masonry code --- diff --git a/parts/frontpage-masonry.php b/parts/frontpage-masonry.php index c2df9a7..974b094 100644 --- a/parts/frontpage-masonry.php +++ b/parts/frontpage-masonry.php @@ -1,14 +1,10 @@
-
+
'-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 .= '
'; $count = 0; foreach ($blocks as $block): @@ -20,8 +16,6 @@ $out .= 'externalUrl)? ' target="_blank"':'').'>'; endif; $out .= '
'.$block->post_title.'
'; - // $out .= '
'.$block->post_title.'
'; - if($block->url): $out .= '
'; endif; diff --git a/parts/header-meta.php b/parts/header-meta.php index d23daf2..e04d4c7 100644 --- a/parts/header-meta.php +++ b/parts/header-meta.php @@ -2,7 +2,7 @@ <?php wp_title(); ?> - + diff --git a/sections/front-page.php b/sections/front-page.php index eef19d7..8075952 100644 --- a/sections/front-page.php +++ b/sections/front-page.php @@ -15,11 +15,6 @@
-
- -
diff --git a/style.css b/style.css index 1e32148..a5c3504 100644 --- 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 */