Custom Contact Forms - Version 4.0.6

Version Description

  • modules/widgets/custom-contact-forms-widget.php - Form title added via widget
Download this release

Release Info

Developer tlovett1
Plugin Icon 128x128 Custom Contact Forms
Version 4.0.6
Comparing to
See all releases

Code changes from version 4.0.5 to 4.0.6

custom-contact-forms-front.php CHANGED
@@ -141,7 +141,7 @@ if (!class_exists('CustomContactFormsFront')) {
141
  $action = (!empty($form->form_action)) ? $form->form_action : $_SERVER['REQUEST_URI'];
142
  $out .= '<form id="'.$form_id.'" method="'.strtolower($form->form_method).'" action="'.$action.'" class="'.$style_class.'">' . "\n";
143
  $out .= CustomContactFormsStatic::decodeOption($form->custom_code, 1, 1) . "\n";
144
- if (!empty($form_title)) $out .= '<h4 id="h4-' . $form->id . '-' . $form_key . '">' . $form_title . '</h4>' . "\n";
145
  $fields = parent::getAttachedFieldsArray($fid);
146
  $hiddens = '';
147
  $code_type = ($admin_options['code_type'] == 'XHTML') ? ' /' : '';
141
  $action = (!empty($form->form_action)) ? $form->form_action : $_SERVER['REQUEST_URI'];
142
  $out .= '<form id="'.$form_id.'" method="'.strtolower($form->form_method).'" action="'.$action.'" class="'.$style_class.'">' . "\n";
143
  $out .= CustomContactFormsStatic::decodeOption($form->custom_code, 1, 1) . "\n";
144
+ if (!empty($form_title) && !$is_sidebar) $out .= '<h4 id="h4-' . $form->id . '-' . $form_key . '">' . $form_title . '</h4>' . "\n";
145
  $fields = parent::getAttachedFieldsArray($fid);
146
  $hiddens = '';
147
  $code_type = ($admin_options['code_type'] == 'XHTML') ? ' /' : '';
custom-contact-forms.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, form submissions saved to database, captchas, tooltip popovers, unlimited fields/forms/form styles, import/export, use a custom thank you page or built-in popover with a custom success message set for each form.
6
- Version: 4.0.5
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
@@ -27,7 +27,8 @@
27
  You should have received a copy of the GNU General Public License
28
  along with this program. If not, see <http://www.gnu.org/licenses/>.
29
  */
30
- error_reporting(E_ALL ^ E_NOTICE);
 
31
  require_once('custom-contact-forms-static.php');
32
  CustomContactFormsStatic::definePluginConstants();
33
  require_once('modules/db/custom-contact-forms-db.php');
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, form submissions saved to database, captchas, tooltip popovers, unlimited fields/forms/form styles, import/export, use a custom thank you page or built-in popover with a custom success message set for each form.
6
+ Version: 4.0.6
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
27
  You should have received a copy of the GNU General Public License
28
  along with this program. If not, see <http://www.gnu.org/licenses/>.
29
  */
30
+ $old_error_settings = error_reporting();
31
+ error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED);
32
  require_once('custom-contact-forms-static.php');
33
  CustomContactFormsStatic::definePluginConstants();
34
  require_once('modules/db/custom-contact-forms-db.php');
modules/widget/custom-contact-forms-widget.php CHANGED
@@ -22,7 +22,8 @@ if (!class_exists('CustomContactFormsWidget')) {
22
  return false;
23
  if (empty($form_id) or $form_id < 1) return false;
24
  extract($args);
25
- echo $before_widget . $before_form_id . $title . $after_title;
 
26
  echo $custom_contact_front->getFormCode($form_id, true);
27
  echo $after_widget;
28
  }
22
  return false;
23
  if (empty($form_id) or $form_id < 1) return false;
24
  extract($args);
25
+ $form_object = $custom_contact_front->selectForm($form_id);
26
+ echo $before_widget . $before_title . $form_object->form_title . $after_title;
27
  echo $custom_contact_front->getFormCode($form_id, true);
28
  echo $after_widget;
29
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.taylorlovett.com
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
5
  Requires at least: 2.8.1
6
  Tested up to: 3.0.1
7
- Stable tag: 4.0.5
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
@@ -101,8 +101,11 @@ Visit http://www.taylorlovett.com/wordpress-plugins for screenshots. Right now a
101
 
102
  == Changelog ==
103
 
 
 
 
104
  = 4.0.5 =
105
- * widgets/db/custom-contact-forms-db.php - Form email cutoff bug fixed
106
 
107
  = 4.0.4 =
108
  * custom-contact-forms-admin.php - Bug reporting mail error fixed
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
5
  Requires at least: 2.8.1
6
  Tested up to: 3.0.1
7
+ Stable tag: 4.0.6
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
101
 
102
  == Changelog ==
103
 
104
+ = 4.0.6 =
105
+ * modules/widgets/custom-contact-forms-widget.php - Form title added via widget
106
+
107
  = 4.0.5 =
108
+ * modules/db/custom-contact-forms-db.php - Form email cutoff bug fixed
109
 
110
  = 4.0.4 =
111
  * custom-contact-forms-admin.php - Bug reporting mail error fixed