From 12c6450e005d1b953f213eb81b2a6a8be2f7be73 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 8 Aug 2016 08:57:26 -0400 Subject: [PATCH] centered topbar nav, added blocks for landing page grid --- css/app.css | 4 ++-- functions.php | 30 ++++++++++++++++++++++++++ header.php | 4 ++-- landing-page.php | 38 +++++++++++++++++++++++++++++++++ parts/glm-blocks.php | 2 +- parts/reservation-form-main.php | 2 +- scss/_main.scss | 4 ++-- 7 files changed, 76 insertions(+), 8 deletions(-) create mode 100644 landing-page.php 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 @@
-