Update for thank you section
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Dec 2015 18:20:35 +0000 (13:20 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Dec 2015 18:20:35 +0000 (13:20 -0500)
Need to pull the thank you section out of the setting now and use nl2br
to format the text.
Also bump version number for the plugin.

controllers/front.php
glm-employment.php
views/front/thankYou.php

index 68cbea8..fabd4d1 100644 (file)
@@ -207,6 +207,7 @@ class staffords_employment_front
                     // next form part
                     ++$formPart;
                     if ($formPart == self::FINAL_FORM) {
+                        $plugin_options = get_option(STAFFORDS_EMP_SETTING_NAME);
                         include $this->frontViewDir . '/' . self::SUCCESS_TEMPLATE;
                         unset($_SESSION['glmJobsApplication'], $_SESSION['glmJobsAppForm']);
                         $this->email_owner();
index 6a526f7..b0b4912 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * Plugin Name: Staffords Employment
  * Description: Online Employment Application for Staffords
- * Version: 0.3.0
+ * Version: 0.3.1
  * Author: Steve Sutton
  * Author URI: http://www.gaslightmedia.com
  * License: All right reserved
index 25d2f63..bd15ad9 100644 (file)
@@ -1,3 +1,3 @@
 <div class="alert-box success">
-    Thank you for completing this application form and for your interest in Staffords.
+<?php echo nl2br($plugin_options['thank_you_text']); ?>
 </div>