From: Steve Sutton Date: Fri, 14 Jul 2017 19:24:19 +0000 (-0400) Subject: Adding single page for troutcreek packages. X-Git-Tag: v1.0.0^2~19 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=097a9d858cf1967e8d8831f0a2c51f58c2d5891f;p=WP-Themes%2Ftroutcreek.git Adding single page for troutcreek packages. Setting up a partial just for the post type of the trout creek packages. --- diff --git a/index.php b/index.php index 0effd20..400f5d2 100644 --- a/index.php +++ b/index.php @@ -19,7 +19,12 @@ include "sections/blog-archive.php"; } if (is_single()) { - include "sections/blog-single.php"; + $postType = get_post_type(); + if ( $postType == 'troutcreek_package' ) { + include "sections/troutcreek-packages-single.php"; + } else { + include "sections/blog-single.php"; + } } if (is_search()) { include "sections/search.php"; diff --git a/lib/troutcreek-packages.php b/lib/troutcreek-packages.php index f4f29e6..f82c664 100644 --- a/lib/troutcreek-packages.php +++ b/lib/troutcreek-packages.php @@ -187,7 +187,7 @@ function troutcreekPackagesShortcode( $atts )

>>View Details - Book Now + Book Now diff --git a/sections/troutcreek-packages-single.php b/sections/troutcreek-packages-single.php new file mode 100644 index 0000000..231f9cc --- /dev/null +++ b/sections/troutcreek-packages-single.php @@ -0,0 +1,53 @@ +
+ + +
+
+ "; + bcn_display(); + echo "
"; + } + ?> +
+
+
+ 'pDetailImg' ) ); + // Get the meta data + $custom = get_post_custom(); + $bookUrl = $custom['_package_reservation'][0]; + $savings = $custom['_package_savings'][0]; + $dateRange = $custom['_package_dates'][0]; + ?> +
+
+
+

+ +
+
+
+
+
+
+
+
+ +
+
+ + Book Now + +
+
+
+ +

+ +
+
+ +