Permalink
Browse files

adding in the fixes to the plugin

  • Loading branch information...
1 parent b09e3fb commit 71927e38f4ffc8dfab7c58a15efebba48e56dd18 @DaveHewy committed Mar 13, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 extreme-contact.php
View
11 extreme-contact.php
@@ -439,7 +439,7 @@ function xtrcon_store_submission(){
if(!function_exists('xtrcon_shortcode')):
function xtrcon_shortcode($args){
-
+
$supporting_text = $args['supporting_text'];
$xtrcon_sent_from = get_option('xtrcon_sent_from');
@@ -469,7 +469,7 @@ function xtrcon_shortcode($args){
$success = false;
$supporting_message = '<p>'.$supporting_text.'</p>';
-
+
if(isset($_POST['xtrcon_submit'])):
$xtrcon_sub_name = xtrcon_checkdata($_POST['xtrcon_name'],4);
@@ -643,11 +643,14 @@ function xtrcon_shortcode($args){
$retmessage .= '</div>';
elseif($message && $errors<=0):
-
+
$retmessage = $message;
else:
- $retmessage = '';
+ if($supporting_message)
+ $retmessage = $supporting_message;
+ else
+ $retmessage = '';
endif;
$output = $retmessage;

0 comments on commit 71927e3

Please sign in to comment.