From 9aabf6d9479e6a50fe7abd88bf0d26eafbbf9fff Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 13 Feb 2019 17:15:50 -0500 Subject: [PATCH] adding new county page template for the county landing pages --- county-child-page-template.php | 5 ++ county-landing-page-template.php | 5 ++ county-page-template.php | 5 -- css/app.css | 7 ++ css/app.css.map | 3 +- functions.php | 4 +- ...palte.php => glm-members-only-template.php | 0 scss/_countyLanding.scss | 9 +++ scss/app.scss | 3 +- sections/county-landing-page.php | 79 +++++++++++++++++++ sections/interior-page.php | 15 +++- 11 files changed, 121 insertions(+), 14 deletions(-) create mode 100644 county-child-page-template.php create mode 100644 county-landing-page-template.php rename glm-members-only-tempalte.php => glm-members-only-template.php (100%) create mode 100644 scss/_countyLanding.scss create mode 100644 sections/county-landing-page.php diff --git a/county-child-page-template.php b/county-child-page-template.php new file mode 100644 index 0000000..41cefe7 --- /dev/null +++ b/county-child-page-template.php @@ -0,0 +1,5 @@ + Either there are no posts with type "' . $type . '", or none of them have custom templates set (and have the Default template). '; } - wp_reset_postdata(); echo $output; -} +} \ No newline at end of file diff --git a/glm-members-only-tempalte.php b/glm-members-only-template.php similarity index 100% rename from glm-members-only-tempalte.php rename to glm-members-only-template.php diff --git a/scss/_countyLanding.scss b/scss/_countyLanding.scss new file mode 100644 index 0000000..3d605ff --- /dev/null +++ b/scss/_countyLanding.scss @@ -0,0 +1,9 @@ +.county-landing-button{ + .image-strip{ + display: inline-block; + margin: 0 5px; + } +} +.county-landing-events{ + margin-top: 50px; +} \ No newline at end of file diff --git a/scss/app.scss b/scss/app.scss index 3fff570..b643d19 100644 --- a/scss/app.scss +++ b/scss/app.scss @@ -14,4 +14,5 @@ @import "page.footer"; @import "structure"; @import "off-canvas"; -@import "stickyHeader"; \ No newline at end of file +@import "stickyHeader"; +@import "countyLanding"; \ No newline at end of file diff --git a/sections/county-landing-page.php b/sections/county-landing-page.php new file mode 100644 index 0000000..f4d2fd8 --- /dev/null +++ b/sections/county-landing-page.php @@ -0,0 +1,79 @@ +
+ +
+
+
+ + +
+ ID); ?> +
+
Show More
+ + +
+
+ + + + + +
+
+ + +
+ + +
+ +
\ No newline at end of file diff --git a/sections/interior-page.php b/sections/interior-page.php index d539ed8..e5066ef 100644 --- a/sections/interior-page.php +++ b/sections/interior-page.php @@ -1,7 +1,6 @@ ID), 'Water') !== false ){ - // $debugMsg[] = "I'm a waterfall page"; $memberCategory = '25'; // L: 3, dev70: 25 } else if(strpos(get_the_title($post->ID), 'Light') !== false ){ - // $debugMsg[] = "I'm a lighthouse page"; $memberCategory = '21'; // L: 4, ddev70: 21 } else { - // $debugMsg[] = "I'm neither waterfall nor a light house"; } } ?> @@ -151,7 +147,18 @@ + + + + +
+
+ +
+
+ +
-- 2.17.1