Custom Contact Forms - Version 6.9.3

Version Description

Ad removal

Download this release

Release Info

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

Code changes from version 6.9.2 to 6.9.3

build/css/admin.css CHANGED
@@ -16,15 +16,4 @@
16
  cursor: pointer;
17
  -webkit-font-smoothing: antialiased; }
18
 
19
- .ccf-hosting-offer:after {
20
- display: block;
21
- content: ' '; }
22
-
23
- .ccf-hosting-offer ul {
24
- list-style-type: disc;
25
- margin-left: 30px; }
26
-
27
- .ccf-hosting-offer input[type="text"] {
28
- margin-right: 20px; }
29
-
30
  /*# sourceMappingURL=admin.css.map */
16
  cursor: pointer;
17
  -webkit-font-smoothing: antialiased; }
18
 
 
 
 
 
 
 
 
 
 
 
 
19
  /*# sourceMappingURL=admin.css.map */
build/css/admin.css.map CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "version": 3,
3
- "mappings": ";AAAA,UASC;EARA,WAAW,EAAE,MAAM;EACnB,GAAG,EAAC,2BAA2B;EAC/B,GAAG,EAAC,mNAA8D;EAIlE,WAAW,EAAE,MAAM;EACnB,UAAU,EAAE,MAAM;AAIlB,0CAAsB;EACrB,WAAW,EAAE,MAAM;EACnB,OAAO,EAAE,GAAG;EACZ,KAAK,EAAE,IAAI;EACX,WAAW,EAAE,MAAM;EACnB,YAAY,EAAE,MAAM;EACpB,cAAc,EAAE,IAAI;EACpB,WAAW,EAAE,CAAC;EACd,MAAM,EAAE,OAAO;EACf,sBAAsB,EAAE,WAAW;;AAIrC,wBAAyB;EACxB,OAAO,EAAE,KAAK;EACd,OAAO,EAAE,GAAG;;AAGb,qBAAsB;EACrB,eAAe,EAAE,IAAI;EACrB,WAAW,EAAE,IAAI;;AAGlB,qCAAsC;EACrC,YAAY,EAAE,IAAI",
4
  "sources": ["../../scss/admin.scss"],
5
  "names": [],
6
  "file": "admin.css"
1
  {
2
  "version": 3,
3
+ "mappings": ";AAAA,UASC;EARA,WAAW,EAAE,MAAM;EACnB,GAAG,EAAC,2BAA2B;EAC/B,GAAG,EAAC,mNAA8D;EAIlE,WAAW,EAAE,MAAM;EACnB,UAAU,EAAE,MAAM;AAIlB,0CAAsB;EACrB,WAAW,EAAE,MAAM;EACnB,OAAO,EAAE,GAAG;EACZ,KAAK,EAAE,IAAI;EACX,WAAW,EAAE,MAAM;EACnB,YAAY,EAAE,MAAM;EACpB,cAAc,EAAE,IAAI;EACpB,WAAW,EAAE,CAAC;EACd,MAAM,EAAE,OAAO;EACf,sBAAsB,EAAE,WAAW",
4
  "sources": ["../../scss/admin.scss"],
5
  "names": [],
6
  "file": "admin.css"
build/css/admin.min.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";@font-face{font-family:menu;src:url(../../fonts/menu.eot);src:url(../../fonts/menu.eot?#iefix) format("embedded-opentype"),url(../../fonts/menu.woff) format("woff"),url(../../fonts/menu.ttf) format("truetype"),url(../../fonts/menu.svg#form-manager) format("svg");font-weight:400;font-style:normal}#menu-posts-ccf_form .wp-menu-image:before{font-family:menu;content:"";speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;cursor:pointer;-webkit-font-smoothing:antialiased}.ccf-hosting-offer:after{display:block;content:' '}.ccf-hosting-offer ul{list-style-type:disc;margin-left:30px}.ccf-hosting-offer input[type=text]{margin-right:20px}
1
+ @charset "UTF-8";@font-face{font-family:menu;src:url(../../fonts/menu.eot);src:url(../../fonts/menu.eot?#iefix) format("embedded-opentype"),url(../../fonts/menu.woff) format("woff"),url(../../fonts/menu.ttf) format("truetype"),url(../../fonts/menu.svg#form-manager) format("svg");font-weight:400;font-style:normal}#menu-posts-ccf_form .wp-menu-image:before{font-family:menu;content:"";speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;cursor:pointer;-webkit-font-smoothing:antialiased}
classes/class-ccf-ads.php DELETED
@@ -1,79 +0,0 @@
1
- <?php
2
-
3
- class CCF_Ads {
4
-
5
- /**
6
- * Setup ads
7
- *
8
- * @since 6.9.1
9
- */
10
- public function setup() {
11
- add_action( 'admin_notices', array( $this, 'ad_nag' ) );
12
- add_action( 'init', array( $this, 'hide_ads' ) );
13
- }
14
-
15
- public function hide_ads() {
16
- if ( ! empty( $_POST['ccf_hide_ads'] ) ) {
17
- update_option( 'ccf_hide_ads', true );
18
- } elseif ( ! empty( $_POST['ccf_hosting_signup'] ) && ! empty( $_POST['email'] ) ) {
19
-
20
- $headers = 'From: CCF User <' . $_POST['email'] . '>' . "\r\n";
21
- wp_mail( 'tlovett88@gmail.com', 'I Want WordPress Hosting on http://' . $_SERVER['HTTP_HOST'], 'Hey! I\'d love some info on WordPress hosting. My email is ' . $_POST['email'] . ' and my website is http://' . $_SERVER['HTTP_HOST'] . '.', $headers );
22
-
23
- update_option( 'ccf_hide_ads', true );
24
- }
25
- }
26
-
27
- /**
28
- * Show ads
29
- *
30
- * @since 6.9.1
31
- */
32
- public function ad_nag() {
33
- $hide_ads = get_option( 'ccf_hide_ads', false);
34
-
35
- if ( $hide_ads ) {
36
- return;
37
- }
38
- ?>
39
-
40
- <form method="post" action="" class="update-nag ccf-hosting-offer">
41
-
42
- <h3>Is Your WordPress Site Running Slowly</h3>
43
-
44
- <p>Sign up for affordable no hassle, managed WordPress hosting including:</p>
45
-
46
- <ul>
47
- <li>Daily backups taken automatically.</li>
48
- <li>High speed caching.</li>
49
- <li>Dedicated hosting. You won't share space with any other websites.</li>
50
- <li>Optimized server settings for WordPress.</li>
51
- <li>Free support 9-5pm EDT Monday - Friday. Emergency support 24/7.</li>
52
- <li>100% uptime.</li>
53
- <li>Latest versions of PHP, MySQL, and WordPress.
54
- <li>Free migration to new platform.</li>
55
- </ul>
56
-
57
- <p><input name="email" type="text" placeholder="Email address" /> <input name="ccf_hosting_signup" class="button button-primary" type="submit" value="Get more info" /> <input name="ccf_hide_ads" class="button" type="submit" value="No thanks" /></p>
58
- </form>
59
-
60
- <?php
61
- }
62
-
63
- /**
64
- * Return singleton instance of class
65
- *
66
- * @since 6.1
67
- * @return object
68
- */
69
- public static function factory() {
70
- static $instance;
71
-
72
- if ( ! $instance ) {
73
- $instance = new self();
74
- $instance->setup();
75
- }
76
-
77
- return $instance;
78
- }
79
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
custom-contact-forms.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://www.taylorlovett.com
5
  * Description: Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
6
  * Author: Taylor Lovett
7
- * Version: 6.9.2
8
  * Author URI: http://www.taylorlovett.com
9
  */
10
 
@@ -26,7 +26,6 @@ require_once( dirname( __FILE__ ) . '/classes/class-ccf-form-handler.php' );
26
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-upgrader.php' );
27
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-widget.php' );
28
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-export.php' );
29
- require_once( dirname( __FILE__ ) . '/classes/class-ccf-ads.php' );
30
 
31
  CCF_Custom_Contact_Forms::factory();
32
  CCF_Constants::factory();
@@ -40,7 +39,6 @@ CCF_Field_Renderer::factory();
40
  CCF_Form_Handler::factory();
41
  CCF_Upgrader::factory();
42
  CCF_Export::factory();
43
- CCF_Ads::factory();
44
 
45
  /**
46
  * Setup the widget
4
  * Plugin URI: http://www.taylorlovett.com
5
  * Description: Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
6
  * Author: Taylor Lovett
7
+ * Version: 6.9.3
8
  * Author URI: http://www.taylorlovett.com
9
  */
10
 
26
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-upgrader.php' );
27
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-widget.php' );
28
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-export.php' );
 
29
 
30
  CCF_Custom_Contact_Forms::factory();
31
  CCF_Constants::factory();
39
  CCF_Form_Handler::factory();
40
  CCF_Upgrader::factory();
41
  CCF_Export::factory();
 
42
 
43
  /**
44
  * Setup the widget
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers, forms
5
  Requires at least: 3.9
6
  Tested up to: 4.4
7
- Stable tag: 6.9.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -37,11 +37,8 @@ For questions, feature requests, and support concerning the Custom Contact Forms
37
 
38
  == Changelog ==
39
 
40
- = 6.9.2 =
41
- * Tweak ad display
42
-
43
- = 6.9.1 =
44
- * Ads
45
 
46
  = 6.9.0 =
47
  * Add Danish translation. Props [KasperLK](https://github.com/KasperLK)
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers, forms
5
  Requires at least: 3.9
6
  Tested up to: 4.4
7
+ Stable tag: 6.9.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
37
 
38
  == Changelog ==
39
 
40
+ = 6.9.3 =
41
+ Ad removal
 
 
 
42
 
43
  = 6.9.0 =
44
  * Add Danish translation. Props [KasperLK](https://github.com/KasperLK)