FormGet Contact Form - Version 1.4

Version Description

Download this release

Release Info

Developer PankajAgarwal
Plugin Icon 128x128 FormGet Contact Form
Version 1.4
Comparing to
See all releases

Code changes from version 1.3 to 1.4

Files changed (3) hide show
  1. css/style.css +13 -4
  2. index.php +24 -5
  3. readme.txt +6 -2
css/style.css CHANGED
@@ -350,13 +350,22 @@ width: 60px;
350
  background-color: #fffbcc;
351
  border: 1px solid #e6db55;
352
  color: #555;
353
- height: 30px;
354
  font-size: 12px;
355
  text-align: left;
356
- margin: 5px;
357
- margin-top:15px;
358
  padding-left:8px;
359
- padding-bottom:3px;
360
  border-width: 1px;
361
  border-style: solid;
 
 
 
 
 
 
 
 
 
 
 
362
  }
350
  background-color: #fffbcc;
351
  border: 1px solid #e6db55;
352
  color: #555;
353
+ height: 27px;
354
  font-size: 12px;
355
  text-align: left;
356
+ margin-top: 25px ;
 
357
  padding-left:8px;
 
358
  border-width: 1px;
359
  border-style: solid;
360
+ padding-bottom: 13px !important;
361
+ margin-right: 13px !important;
362
+ -webkit-margin-before: 1.5em;
363
+ -webkit-margin-after: 1em;
364
+ -webkit-margin-start: 0px;
365
+ -webkit-margin-end: 0px;
366
+ border-radius: 4px;
367
+ }
368
+ .fg_hide_notice{
369
+ float: right;
370
+ margin-right: 10px;
371
  }
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: FormGet Contact Form
4
  Plugin URI: http://www.formget.com
5
  Description: FormGet Contact Form is an eassy and effective form builder tool which enable you to bulid and embed form on your website in few steps. With FormGet Contact Form manage all your contact forms and your entire client communication at one single place.
6
- Version: 1.3
7
  Author: FormGet
8
  Author URI: http://www.formget.com
9
  */
@@ -12,16 +12,35 @@ function my_admin_notice() {
12
  $string = "sideBar";
13
  $pos = strpos($fg_iframe_form, $string);
14
  if ($pos == false) {
 
 
 
 
15
  ?>
16
  <div class="trial-notify">
17
  <p>
18
- <a href='<?php echo admin_url('admin.php?page=cf_page'); ?>'>Click to Create your own Advance Contact Form.</a> You can add your built form to any Page, Post, Sidebar or as a Tabbed Content.</p>
19
  </div>
20
  <?php
21
- }}
22
-
23
  add_action( 'admin_notices', 'my_admin_notice' );
24
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
  function cf_add_style() {
27
  wp_enqueue_style('form1_style1_sheet1', plugins_url('css/style.css', __FILE__));
3
  Plugin Name: FormGet Contact Form
4
  Plugin URI: http://www.formget.com
5
  Description: FormGet Contact Form is an eassy and effective form builder tool which enable you to bulid and embed form on your website in few steps. With FormGet Contact Form manage all your contact forms and your entire client communication at one single place.
6
+ Version: 1.4
7
  Author: FormGet
8
  Author URI: http://www.formget.com
9
  */
12
  $string = "sideBar";
13
  $pos = strpos($fg_iframe_form, $string);
14
  if ($pos == false) {
15
+ global $current_user ;
16
+ $user_id = $current_user->ID;
17
+ /* Check that the user hasn't already clicked to ignore the message */
18
+ if ( ! get_user_meta($user_id, 'admin_ignore_notice') ){
19
  ?>
20
  <div class="trial-notify">
21
  <p>
22
+ <a href='<?php echo admin_url('admin.php?page=cf_page'); ?>'>Click to Create your own Advance Contact Form.</a> You can add your built form to any Page, Post, Sidebar or as a Tabbed Content.<?php printf(__('<a class="fg_hide_notice", href="%1$s">Hide Notice</a>'), '?admin_nag_ignore=0'); ?></p>
23
  </div>
24
  <?php
25
+ }}}
 
26
  add_action( 'admin_notices', 'my_admin_notice' );
27
+
28
+ function admin_nag_ignore() {
29
+ global $current_user;
30
+ $user_id = $current_user->ID;
31
+ /* If user clicks to ignore the notice, add that to their user meta */
32
+ if ( isset($_GET['admin_nag_ignore']) && '0' == $_GET['admin_nag_ignore'] ) {
33
+ add_user_meta($user_id, 'admin_ignore_notice', 'true', true);
34
+ }
35
+ }
36
+ add_action('admin_init', 'admin_nag_ignore');
37
+
38
+ function delete_user_entry(){
39
+ global $current_user;
40
+ $user_id = $current_user->ID;
41
+ delete_user_meta( $user_id, 'admin_ignore_notice', 'true', true );
42
+ }
43
+ register_deactivation_hook(__FILE__, 'delete_user_entry');
44
 
45
  function cf_add_style() {
46
  wp_enqueue_style('form1_style1_sheet1', plugins_url('css/style.css', __FILE__));
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: PankajAgarwal
3
  Tags: contact form, contact, form, forms, contact form plugin, contact form builder, contact form with recaptcha, feedback form, contact us, request form, contact button, drag and drop contact form, file upload contact form, contact form to email, contact form payments, contact for paypal, form solution, form builder, feedback, easy contact form, helpdesk
4
  Requires at least: 3.5.0
5
  Tested up to: 3.5.1
6
- Stable tag: 1.3
7
 
8
  FormGet Contact Form manage all your contact forms using single dashboard. Just a click on fields and your contact form is ready for use.
9
 
@@ -145,9 +145,13 @@ When you create account in FormGet you automatically get support desk. All the e
145
 
146
  == Changelog ==
147
 
 
 
 
 
148
  = Version 1.3 =
149
  * Support tab added to handle query related to plugin
150
- * Admin-notice bar added to show notice until form is created
151
 
152
  = Version 1.2 =
153
  * Minor improvement on help section
3
  Tags: contact form, contact, form, forms, contact form plugin, contact form builder, contact form with recaptcha, feedback form, contact us, request form, contact button, drag and drop contact form, file upload contact form, contact form to email, contact form payments, contact for paypal, form solution, form builder, feedback, easy contact form, helpdesk
4
  Requires at least: 3.5.0
5
  Tested up to: 3.5.1
6
+ Stable tag: 1.4
7
 
8
  FormGet Contact Form manage all your contact forms using single dashboard. Just a click on fields and your contact form is ready for use.
9
 
145
 
146
  == Changelog ==
147
 
148
+ = Version 1.4 =
149
+ * Admin notice will only be appear on when FormGet contact form installed or reactivated. Once user activate the dismiss admin notice, Notice disappear permanently.
150
+ * Admin notice bar bug fixed.
151
+
152
  = Version 1.3 =
153
  * Support tab added to handle query related to plugin
154
+ * Admin notice bar added to show notice until form is created
155
 
156
  = Version 1.2 =
157
  * Minor improvement on help section