Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
FalkoJoseph committed Apr 28, 2021
1 parent e22dd18 commit 3e9b75b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified admin/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions admin/pages/class-wp-sweepbright-contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public function emit_event($event)
public function parse_template($template, $form)
{
$output = str_replace('[title]', $form['title'], $template);
$output = str_replace('[address]', $form['address'], $template);
$output = str_replace('[url]', $form['url'], $output);
$output = str_replace('[first_name]', $form['first_name'], $output);
$output = str_replace('[last_name]', $form['last_name'], $output);
Expand Down Expand Up @@ -149,6 +150,7 @@ public function submit_estate_form()
$form = [
'title' => get_the_title(),
'url' => '<a href="' . get_the_permalink() . '">View property</a>',
'address' => get_field('location')['formatted_agency'],
'first_name' => $this->validate_input($_POST['first_name']),
'last_name' => $this->validate_input($_POST['last_name']),
'email' => $this->validate_input($_POST['email']),
Expand Down
4 changes: 2 additions & 2 deletions admin/partials/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</th>
<td>
<p>
Available tags: <kbd>[title]</kbd>, <kbd>[url]</kbd>, <kbd>[first_name]</kbd>, <kbd>[last_name]</kbd>, <kbd>[email]</kbd>, <kbd>[phone]</kbd>, <kbd>[message]</kbd>.<br>
Available tags: <kbd>[title]</kbd>, <kbd>[address]</kbd>, <kbd>[url]</kbd>, <kbd>[first_name]</kbd>, <kbd>[last_name]</kbd>, <kbd>[email]</kbd>, <kbd>[phone]</kbd>, <kbd>[message]</kbd>.<br>
<kbd>[title]</kbd>, <kbd>[url]</kbd> are only available for estate contact requests.
</p>
<br>
Expand All @@ -84,7 +84,7 @@
</th>
<td>
<p>
Available tags: <kbd>[title]</kbd>, <kbd>[url]</kbd>, <kbd>[first_name]</kbd>, <kbd>[last_name]</kbd>, <kbd>[email]</kbd>, <kbd>[phone]</kbd>, <kbd>[message]</kbd>.<br>
Available tags: <kbd>[title]</kbd>, <kbd>[address]</kbd>, <kbd>[url]</kbd>, <kbd>[first_name]</kbd>, <kbd>[last_name]</kbd>, <kbd>[email]</kbd>, <kbd>[phone]</kbd>, <kbd>[message]</kbd>.<br>
<kbd>[title]</kbd>, <kbd>[url]</kbd> are only available for estate contact requests.
</p>
<br>
Expand Down
4 changes: 2 additions & 2 deletions wp-sweepbright.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Author: Compagnon Agency
* Author URI: https://compagnon.agency/
* Text Domain: wp-sweepbright
* Version: 1.7.6
* Version: 1.7.7
*/

// If this file is called directly, abort.
Expand All @@ -23,7 +23,7 @@
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define('WP_SWEEPBRIGHT_VERSION', '1.7.6');
define('WP_SWEEPBRIGHT_VERSION', '1.7.7');

/**
* The code that runs during plugin activation.
Expand Down

0 comments on commit 3e9b75b

Please sign in to comment.