From 99bf9a74012540627f1bfe7511823f8c3fc70258 Mon Sep 17 00:00:00 2001 From: Aaron Huisinga Date: Thu, 8 Dec 2016 17:40:48 -0600 Subject: [PATCH] Bump to v1.4.5 1. Apply area updates to all templates --- program-page.php | 4 +- readme.txt | 2 +- templates/first-responders-page.php | 541 ++++++++++++++-------------- templates/hip-page.php | 536 +++++++++++++-------------- templates/patriot-page.php | 526 ++++++++++++++------------- 5 files changed, 821 insertions(+), 788 deletions(-) diff --git a/program-page.php b/program-page.php index 13f4a95..f21c13d 100755 --- a/program-page.php +++ b/program-page.php @@ -4,7 +4,7 @@ /* * Plugin Name: Program Page - * Version: 1.4.4 + * Version: 1.4.5 * Plugin URI: http://www.coldturkeygroup.com/ * Description: Custom info pages for Platform ad campaigns * Author: Cold Turkey Group @@ -23,7 +23,7 @@ define( 'PROGRAM_PAGE_PLUGIN_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) ); if ( ! defined( 'PROGRAM_PAGE_PLUGIN_VERSION' ) ) - define( 'PROGRAM_PAGE_PLUGIN_VERSION', '1.4.4' ); + define( 'PROGRAM_PAGE_PLUGIN_VERSION', '1.4.5' ); require_once( 'classes/class-program-page.php' ); diff --git a/readme.txt b/readme.txt index 9f8221e..dbcbe2b 100755 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: Aaron Huisinga Tags: real estate, platform, days on market Requires at least: 3.5 Tested up to: 4.6 -Stable tag: 1.4.4 +Stable tag: 1.4.5 Custom info pages for Platform ad campaigns (currently supports the HIP, Patriot, PATH, and First Responder Programs). diff --git a/templates/first-responders-page.php b/templates/first-responders-page.php index 2127003..823e600 100644 --- a/templates/first-responders-page.php +++ b/templates/first-responders-page.php @@ -17,7 +17,10 @@ $cta_url = get_post_meta($id, 'cta_url', true); $video_url = get_post_meta($id, 'video_url', true); $expected_savings = get_post_meta($id, 'expected_savings', true); -$program_area = get_post_meta($id, 'program_area', true); +$program_area = [ + 'city' => get_post_meta($id, 'program_area', true), + 'county' => get_post_meta($id, 'program_area', true) +]; $phone = get_post_meta($id, 'phone_number', true); $broker = get_post_meta($id, 'legal_broker', true); $test_1_name = get_post_meta($id, 'test_1_name', true); @@ -33,12 +36,11 @@ $test_3_text = get_post_meta($id, 'test_3_text', true); $test_3_photo = get_post_meta($id, 'test_3_photo', true); $retargeting = get_post_meta($id, 'retargeting', true); -$city = get_option('platform_user_city', 'Minneapolis'); $state = get_option('platform_user_state', 'Minnesota'); $testimonials_col_md = 'col-md-6'; -if($test_1_name !== '' && $test_2_name != '' && $test_3_name != '') { - $testimonials_col_md = 'col-md-4'; +if ($test_1_name !== '' && $test_2_name != '' && $test_3_name != '') { + $testimonials_col_md = 'col-md-4'; } if (!$title || $title == '') { @@ -50,8 +52,12 @@ } if ($program_area == '') { + $city = get_option('platform_user_city', 'Minneapolis'); $county = get_option('platform_user_county', 'Hennepin'); - $program_area = $county . ' County'; + $program_area = [ + 'county' => $county . ' County', + 'city' => 'the ' . $city . ' area' + ]; } if ($phone == '') { @@ -77,306 +83,311 @@ > - - <?= $title ?> - + + <?= $title ?> + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + >