Optin Forms - Version 1.1.6

Version Description

  • Restricted pledge box to admins only.
Download this release

Release Info

Developer brs
Plugin Icon 128x128 Optin Forms
Version 1.1.6
Comparing to
See all releases

Code changes from version 1.1.5 to 1.1.6

Files changed (5) hide show
  1. images/logo.png +0 -0
  2. includes/functions.php +1 -1
  3. js/pwyw.js +0 -54
  4. optin-forms.php +1 -1
  5. readme.txt +7 -1
images/logo.png ADDED
Binary file
includes/functions.php CHANGED
@@ -380,7 +380,7 @@ function optinforms_supportbox_notice_115() {
380
 
381
  global $current_user;
382
  $userid = $current_user->ID;
383
- if ( !get_user_meta( $userid, 'optinforms_dismiss_supportbox_115' ) ) {
384
  ?>
385
  <div class="updated" style="background:#02C2A8;border-color:#109785;margin:20px 0 40px;">
386
  <div class="optinforms-supportbox-left">
380
 
381
  global $current_user;
382
  $userid = $current_user->ID;
383
+ if ( current_user_can('manage_options') && !get_user_meta( $userid, 'optinforms_dismiss_supportbox_115' ) ) {
384
  ?>
385
  <div class="updated" style="background:#02C2A8;border-color:#109785;margin:20px 0 40px;">
386
  <div class="optinforms-supportbox-left">
js/pwyw.js DELETED
@@ -1,54 +0,0 @@
1
- jQuery(document).ready(function() {
2
- jQuery("#slider").slider({
3
- animate: true,
4
- value:1,
5
- min: 0,
6
- max: 1000,
7
- step: 10,
8
- slide: function(event, ui) {
9
- update(1,ui.value); //changed
10
- }
11
- });
12
-
13
- jQuery("#slider2").slider({
14
- animate: true,
15
- value:0,
16
- min: 0,
17
- max: 500,
18
- step: 1,
19
- slide: function(event, ui) {
20
- update(2,ui.value); //changed
21
- }
22
- });
23
-
24
- //Added, set initial value.
25
- $("#amount").val(0);
26
- $("#duration").val(0);
27
- $("#amount-label").text(0);
28
- $("#duration-label").text(0);
29
-
30
- update();
31
- });
32
-
33
- //changed. now with parameter
34
- function update(slider,val) {
35
- //changed. Now, directly take value from ui.value. if not set (initial, will use current value.)
36
- var $amount = slider == 1?val:$("#amount").val();
37
- var $duration = slider == 2?val:$("#duration").val();
38
-
39
- /* commented
40
- $amount = $( "#slider" ).slider( "value" );
41
- $duration = $( "#slider2" ).slider( "value" );
42
- */
43
-
44
- $total = "$" + ($amount * $duration);
45
- $( "#amount" ).val($amount);
46
- $( "#amount-label" ).text($amount);
47
- $( "#duration" ).val($duration);
48
- $( "#duration-label" ).text($duration);
49
- $( "#total" ).val($total);
50
- $( "#total-label" ).text($total);
51
-
52
- $('#slider a').html('<label><span class="glyphicon glyphicon-chevron-left"></span> '+$amount+' <span class="glyphicon glyphicon-chevron-right"></span></label>');
53
- $('#slider2 a').html('<label><span class="glyphicon glyphicon-chevron-left"></span> '+$duration+' <span class="glyphicon glyphicon-chevron-right"></span></label>');
54
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
optin-forms.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Optin Forms
4
  Plugin URI: http://www.codeleon.com/wordpress/plugins/optin-forms
5
  Description: Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.
6
  Author: Boris Beo
7
- Version: 1.1.5
8
  Author URI: http://www.codeleon.com
9
  Text Domain: optinforms
10
  Domain Path: /languages/
4
  Plugin URI: http://www.codeleon.com/wordpress/plugins/optin-forms
5
  Description: Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.
6
  Author: Boris Beo
7
+ Version: 1.1.6
8
  Author URI: http://www.codeleon.com
9
  Text Domain: optinforms
10
  Domain Path: /languages/
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: brs
3
  Tags: optin, form, forms, aweber, icontact, mailchimp, getresponse, mad mimi, interspire, email marketer, email marketing, email, e-mail, list, list building, opt-in, newsletter, autoresponder, popup, pop-up, mailing, mailing list, mail, webform, newsletter plugin, optin plugin, opt-in plugin, conversion, design
4
  Requires at least: 3.2
5
  Tested up to: 4.1.1
6
- Stable tag: 1.1.5
7
 
8
  Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.
9
 
@@ -55,6 +55,9 @@ Having trouble with the plugin? Simply post your question to the [support forum]
55
 
56
  == Changelog ==
57
 
 
 
 
58
  = 1.1.5 =
59
  * Added MailChimp Form Action URL check.
60
  * Fixed SSL issue.
@@ -91,6 +94,9 @@ Having trouble with the plugin? Simply post your question to the [support forum]
91
 
92
  == Upgrade Notice ==
93
 
 
 
 
94
  = 1.1.5 =
95
  Updated MailChimp Form Action URL check, fixed SSL issues and Google Fonts error issue.
96
 
3
  Tags: optin, form, forms, aweber, icontact, mailchimp, getresponse, mad mimi, interspire, email marketer, email marketing, email, e-mail, list, list building, opt-in, newsletter, autoresponder, popup, pop-up, mailing, mailing list, mail, webform, newsletter plugin, optin plugin, opt-in plugin, conversion, design
4
  Requires at least: 3.2
5
  Tested up to: 4.1.1
6
+ Stable tag: 1.1.6
7
 
8
  Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.
9
 
55
 
56
  == Changelog ==
57
 
58
+ = 1.1.6 =
59
+ * Restricted pledge box to admins only.
60
+
61
  = 1.1.5 =
62
  * Added MailChimp Form Action URL check.
63
  * Fixed SSL issue.
94
 
95
  == Upgrade Notice ==
96
 
97
+ = 1.1.6 =
98
+ Restricted pledge box to admin users only.
99
+
100
  = 1.1.5 =
101
  Updated MailChimp Form Action URL check, fixed SSL issues and Google Fonts error issue.
102