Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Bump to version 1.4.3
Browse files Browse the repository at this point in the history
1. Add ability to override contact phone number shown for programs
  • Loading branch information
Aaron Huisinga committed Dec 7, 2016
1 parent 926ce96 commit 1215953
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 7 deletions.
9 changes: 9 additions & 0 deletions classes/class-program-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,15 @@ public function get_custom_fields_settings($meta_box)
'section' => 'info'
];

$fields['phone_number'] = [
'name' => __('Phone Number', $this->token),
'description' => __('The phone number for the program (leave blank to use user phone number).', $this->token),
'placeholder' => '',
'type' => 'text',
'default' => '',
'section' => 'info'
];

$fields['legal_broker'] = [
'name' => __('Your Legal Broker', $this->token),
'description' => __('This will be displayed on the bottom of the page.', $this->token),
Expand Down
4 changes: 2 additions & 2 deletions program-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/*
* Plugin Name: Program Page
* Version: 1.4.2
* Version: 1.4.3
* Plugin URI: http://www.coldturkeygroup.com/
* Description: Custom info pages for Platform ad campaigns
* Author: Cold Turkey Group
Expand All @@ -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.2' );
define( 'PROGRAM_PAGE_PLUGIN_VERSION', '1.4.3' );

require_once( 'classes/class-program-page.php' );

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.2
Stable tag: 1.4.3

Custom info pages for Platform ad campaigns (currently supports the HIP, Patriot, PATH, and First Responder Programs).

Expand Down
6 changes: 5 additions & 1 deletion templates/first-responders-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
$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);
$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);
$test_1_job = get_post_meta($id, 'test_1_job', true);
Expand All @@ -34,7 +35,6 @@
$retargeting = get_post_meta($id, 'retargeting', true);
$city = get_option('platform_user_city', 'Minneapolis');
$state = get_option('platform_user_state', 'Minnesota');
$phone = get_option('platform_user_phone', '');
$testimonials_col_md = 'col-md-6';

if($test_1_name !== '' && $test_2_name != '' && $test_3_name != '') {
Expand All @@ -54,6 +54,10 @@
$program_area = $county . ' County';
}

if ($phone == '') {
$phone = get_option('platform_user_phone', '');
}

// Get the page colors
$primary_color = '#2eb9ff';
$hover_color = '#2eb9ff';
Expand Down
6 changes: 5 additions & 1 deletion templates/hip-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
$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);
$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);
$test_1_job = get_post_meta($id, 'test_1_job', true);
Expand All @@ -34,7 +35,6 @@
$retargeting = get_post_meta($id, 'retargeting', true);
$city = get_option('platform_user_city', 'Minneapolis');
$state = get_option('platform_user_state', 'Minnesota');
$phone = get_option('platform_user_phone', '');
$testimonials_col_md = 'col-md-6';

if($test_1_name !== '' && $test_2_name != '' && $test_3_name != '') {
Expand All @@ -54,6 +54,10 @@
$program_area = $county . ' County';
}

if ($phone == '') {
$phone = get_option('platform_user_phone', '');
}

// Get the page colors
$primary_color = '#2eb9ff';
$hover_color = '#2eb9ff';
Expand Down
6 changes: 5 additions & 1 deletion templates/path-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
$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);
$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);
$test_1_job = get_post_meta($id, 'test_1_job', true);
Expand All @@ -34,7 +35,6 @@
$retargeting = get_post_meta($id, 'retargeting', true);
$city = get_option('platform_user_city', 'Minneapolis');
$state = get_option('platform_user_state', 'Minnesota');
$phone = get_option('platform_user_phone', '');
$testimonials_col_md = 'col-md-6';

if($test_1_name !== '' && $test_2_name != '' && $test_3_name != '') {
Expand All @@ -54,6 +54,10 @@
$program_area = $county . ' County';
}

if ($phone == '') {
$phone = get_option('platform_user_phone', '');
}

// Get the page colors
$primary_color = '#2eb9ff';
$hover_color = '#2eb9ff';
Expand Down
6 changes: 5 additions & 1 deletion templates/patriot-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
$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);
$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);
$test_1_job = get_post_meta($id, 'test_1_job', true);
Expand All @@ -34,7 +35,6 @@
$retargeting = get_post_meta($id, 'retargeting', true);
$city = get_option('platform_user_city', 'Minneapolis');
$state = get_option('platform_user_state', 'Minnesota');
$phone = get_option('platform_user_phone', '');
$testimonials_col_md = 'col-md-6';

if($test_1_name !== '' && $test_2_name != '' && $test_3_name != '') {
Expand All @@ -54,6 +54,10 @@
$program_area = $county . ' County';
}

if ($phone == '') {
$phone = get_option('platform_user_phone', '');
}

// Get the page colors
$primary_color = '#2eb9ff';
$hover_color = '#2eb9ff';
Expand Down

0 comments on commit 1215953

Please sign in to comment.