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.2.1
Browse files Browse the repository at this point in the history
1. Add support for video testimonials instead of only photos
2. Give testimonials more space if there are only 1 or 2 instead of all
3
  • Loading branch information
Aaron Huisinga committed Nov 16, 2016
1 parent afa93a4 commit 137e4dc
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 25 deletions.
9 changes: 6 additions & 3 deletions program-page.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?php namespace ColdTurkey\ProgramPage;
<?php

namespace ColdTurkey\ProgramPage;

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

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.2
Stable tag: 1.2.1

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

Expand Down
43 changes: 36 additions & 7 deletions templates/first-responders-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
$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 != '') {
$testimonials_col_md = 'col-md-4';
}

if (!$title || $title == '') {
$title = 'First Responders Program';
Expand Down Expand Up @@ -191,7 +196,7 @@
</div>
</div>

<?php if ($test_1_name != '' && $test_1_text != '') { ?>
<?php if ($test_1_name != '') { ?>
<div id="testimonials" class="wrapper wrapper-center-block profiles role-element leadstyle-container">
<div class="container text-center">
<div class="row">
Expand All @@ -202,9 +207,16 @@
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-4 center-block center-block-inline role-element leadstyle-container">
<?php if ($test_1_name != '') { ?>
<div class="col-xs-12 <?= $testimonials_col_md ?> center-block center-block-inline role-element leadstyle-container">
<div class="fill">
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_1_photo ?>" style="max-width: 353px;">
<?php if(strpos($test_1_photo, 'cdn.platform.marketing') !== false) { ?>
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_1_photo ?>" style="max-width: 353px;">
<?php } else { ?>
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="<?= $test_1_photo ?>"></iframe>
</div>
<?php } ?>
<div class="inner">
<h3 class="role-element leadstyle-text"><?= $test_1_name ?></h3>
<div class="line profiles-line role-element leadstyle-container"></div>
Expand All @@ -217,9 +229,17 @@
</div>
</div>
</div>
<div class="col-xs-12 col-md-4 center-block center-block-inline role-element leadstyle-container">
<?php } ?>
<?php if ($test_2_name != '') { ?>
<div class="col-xs-12 <?= $testimonials_col_md ?> center-block center-block-inline role-element leadstyle-container">
<div class="fill">
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_2_photo ?>" style="max-width: 353px;">
<?php if(strpos($test_2_photo, 'cdn.platform.marketing') !== false) { ?>
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_2_photo ?>" style="max-width: 353px;">
<?php } else { ?>
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="<?= $test_2_photo ?>"></iframe>
</div>
<?php } ?>
<div class="inner">
<h3 class="role-element leadstyle-text"><?= $test_2_name ?></h3>
<div class="line profiles-line role-element leadstyle-container"></div>
Expand All @@ -232,9 +252,17 @@
</div>
</div>
</div>
<div class="col-xs-12 col-md-4 center-block center-block-inline role-element leadstyle-container">
<?php } ?>
<?php if ($test_3_name != '') { ?>
<div class="col-xs-12 <?= $testimonials_col_md ?> center-block center-block-inline role-element leadstyle-container">
<div class="fill">
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_3_photo ?>" style="max-width: 353px;">
<?php if(strpos($test_3_photo, 'cdn.platform.marketing') !== false) { ?>
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_3_photo ?>" style="max-width: 353px;">
<?php } else { ?>
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="<?= $test_3_photo ?>"></iframe>
</div>
<?php } ?>
<div class="inner">
<h3 class="role-element leadstyle-text"><?= $test_3_name ?></h3>
<div class="line profiles-line role-element leadstyle-container"></div>
Expand All @@ -247,6 +275,7 @@
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
Expand Down
43 changes: 36 additions & 7 deletions templates/hip-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
$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 != '') {
$testimonials_col_md = 'col-md-4';
}

if (!$title || $title == '') {
$title = 'HIP Program';
Expand Down Expand Up @@ -191,7 +196,7 @@
</div>
</div>

<?php if ($test_1_name != '' && $test_1_text != '') { ?>
<?php if ($test_1_name != '') { ?>
<div id="testimonials" class="wrapper wrapper-center-block profiles role-element leadstyle-container">
<div class="container text-center">
<div class="row">
Expand All @@ -202,9 +207,16 @@
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-4 center-block center-block-inline role-element leadstyle-container">
<?php if ($test_1_name != '') { ?>
<div class="col-xs-12 <?= $testimonials_col_md ?> center-block center-block-inline role-element leadstyle-container">
<div class="fill">
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_1_photo ?>" style="max-width: 353px;">
<?php if(strpos($test_1_photo, 'cdn.platform.marketing') !== false) { ?>
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_1_photo ?>" style="max-width: 353px;">
<?php } else { ?>
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="<?= $test_1_photo ?>"></iframe>
</div>
<?php } ?>
<div class="inner">
<h3 class="role-element leadstyle-text"><?= $test_1_name ?></h3>
<div class="line profiles-line role-element leadstyle-container"></div>
Expand All @@ -217,9 +229,17 @@
</div>
</div>
</div>
<div class="col-xs-12 col-md-4 center-block center-block-inline role-element leadstyle-container">
<?php } ?>
<?php if ($test_2_name != '') { ?>
<div class="col-xs-12 <?= $testimonials_col_md ?> center-block center-block-inline role-element leadstyle-container">
<div class="fill">
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_2_photo ?>" style="max-width: 353px;">
<?php if(strpos($test_2_photo, 'cdn.platform.marketing') !== false) { ?>
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_2_photo ?>" style="max-width: 353px;">
<?php } else { ?>
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="<?= $test_2_photo ?>"></iframe>
</div>
<?php } ?>
<div class="inner">
<h3 class="role-element leadstyle-text"><?= $test_2_name ?></h3>
<div class="line profiles-line role-element leadstyle-container"></div>
Expand All @@ -232,9 +252,17 @@
</div>
</div>
</div>
<div class="col-xs-12 col-md-4 center-block center-block-inline role-element leadstyle-container">
<?php } ?>
<?php if ($test_3_name != '') { ?>
<div class="col-xs-12 <?= $testimonials_col_md ?> center-block center-block-inline role-element leadstyle-container">
<div class="fill">
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_3_photo ?>" style="max-width: 353px;">
<?php if(strpos($test_3_photo, 'cdn.platform.marketing') !== false) { ?>
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_3_photo ?>" style="max-width: 353px;">
<?php } else { ?>
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="<?= $test_3_photo ?>"></iframe>
</div>
<?php } ?>
<div class="inner">
<h3 class="role-element leadstyle-text"><?= $test_3_name ?></h3>
<div class="line profiles-line role-element leadstyle-container"></div>
Expand All @@ -247,6 +275,7 @@
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
Expand Down
43 changes: 36 additions & 7 deletions templates/patriot-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
$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 != '') {
$testimonials_col_md = 'col-md-4';
}

if (!$title || $title == '') {
$title = 'Patriot Program';
Expand Down Expand Up @@ -182,7 +187,7 @@
</div>
</div>

<?php if ($test_1_name != '' && $test_1_text != '') { ?>
<?php if ($test_1_name != '') { ?>
<div id="testimonials" class="wrapper wrapper-center-block profiles role-element leadstyle-container">
<div class="container text-center">
<div class="row">
Expand All @@ -193,9 +198,16 @@
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-4 center-block center-block-inline role-element leadstyle-container">
<?php if ($test_1_name != '') { ?>
<div class="col-xs-12 <?= $testimonials_col_md ?> center-block center-block-inline role-element leadstyle-container">
<div class="fill">
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_1_photo ?>" style="max-width: 353px;">
<?php if(strpos($test_1_photo, 'cdn.platform.marketing') !== false) { ?>
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_1_photo ?>" style="max-width: 353px;">
<?php } else { ?>
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="<?= $test_1_photo ?>"></iframe>
</div>
<?php } ?>
<div class="inner">
<h3 class="role-element leadstyle-text"><?= $test_1_name ?></h3>
<div class="line profiles-line role-element leadstyle-container"></div>
Expand All @@ -208,9 +220,17 @@
</div>
</div>
</div>
<div class="col-xs-12 col-md-4 center-block center-block-inline role-element leadstyle-container">
<?php } ?>
<?php if ($test_2_name != '') { ?>
<div class="col-xs-12 <?= $testimonials_col_md ?> center-block center-block-inline role-element leadstyle-container">
<div class="fill">
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_2_photo ?>" style="max-width: 353px;">
<?php if(strpos($test_2_photo, 'cdn.platform.marketing') !== false) { ?>
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_2_photo ?>" style="max-width: 353px;">
<?php } else { ?>
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="<?= $test_2_photo ?>"></iframe>
</div>
<?php } ?>
<div class="inner">
<h3 class="role-element leadstyle-text"><?= $test_2_name ?></h3>
<div class="line profiles-line role-element leadstyle-container"></div>
Expand All @@ -223,9 +243,17 @@
</div>
</div>
</div>
<div class="col-xs-12 col-md-4 center-block center-block-inline role-element leadstyle-container">
<?php } ?>
<?php if ($test_3_name != '') { ?>
<div class="col-xs-12 <?= $testimonials_col_md ?> center-block center-block-inline role-element leadstyle-container">
<div class="fill">
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_3_photo ?>" style="max-width: 353px;">
<?php if(strpos($test_3_photo, 'cdn.platform.marketing') !== false) { ?>
<img class="img-responsive img-inline role-element leadstyle-image" src="<?= $test_3_photo ?>" style="max-width: 353px;">
<?php } else { ?>
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="<?= $test_3_photo ?>"></iframe>
</div>
<?php } ?>
<div class="inner">
<h3 class="role-element leadstyle-text"><?= $test_3_name ?></h3>
<div class="line profiles-line role-element leadstyle-container"></div>
Expand All @@ -238,6 +266,7 @@
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
Expand Down

0 comments on commit 137e4dc

Please sign in to comment.