From: Anthony Talarico Date: Mon, 8 Aug 2016 12:57:26 +0000 (-0400) Subject: centered topbar nav, added blocks for landing page grid X-Git-Tag: v1.0.0^2~174 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=12c6450e005d1b953f213eb81b2a6a8be2f7be73;p=WP-Themes%2Fpetoskeyarea.git centered topbar nav, added blocks for landing page grid --- diff --git a/css/app.css b/css/app.css index f60a36b..38f6aad 100644 --- a/css/app.css +++ b/css/app.css @@ -6482,13 +6482,13 @@ main.page-front #main-content { padding-bottom: 0; } } main.page-inside #page-title { background: #73bf45; - height: 115px; } + height: 80px; } main.page-inside #page-title h1 { font-size: 2.5rem; text-transform: uppercase; font-weight: bold; color: #FFFFFF; - margin-top: 30px; } + margin-top: 10px; } main.page-inside #main-content { padding-top: 77px; } diff --git a/functions.php b/functions.php index 000db66..915ff4f 100644 --- a/functions.php +++ b/functions.php @@ -33,6 +33,36 @@ if (!function_exists('glm_hubspot_widget_init')) { } +// add shortcode for the landing page blocks +function landing_page_blocks( $atts ) +{ + $out = ''; + extract(shortcode_atts( + array('category' => '-1'), $atts, 'glm-blocks') + ); + if(function_exists('fetch_all_glm_blocks')): + $category = filter_var($atts['category'], FILTER_VALIDATE_INT); + $blocks = fetch_all_glm_blocks($category); + $out .= ''; + endif; + return $out; +} +add_shortcode('glm-blocks', 'landing_page_blocks'); /** * Return the client info option for the given key diff --git a/header.php b/header.php index 5e29941..68cbfe1 100644 --- a/header.php +++ b/header.php @@ -35,11 +35,11 @@
-