Version Description
- Removed leftover testing code.
Download this release
Release Info
Developer | FancyThemes |
Plugin | Optin Forms |
Version | 1.2.7 |
Comparing to | |
See all releases |
Code changes from version 1.2.6 to 1.2.7
- js/custom.js +0 -1
- optin-forms.php +1 -1
- readme.txt +4 -1
- trunk/css/optinforms-admin-slider.css +0 -64
- trunk/css/optinforms-admin.css +0 -304
- trunk/css/optinforms.css +0 -126
- trunk/images/bullet-toggle.png +0 -0
- trunk/images/close.png +0 -0
- trunk/images/form3-border-top.gif +0 -0
- trunk/images/icon-check.png +0 -0
- trunk/images/icon-email-01.png +0 -0
- trunk/images/icon-user-01.png +0 -0
- trunk/images/icon.png +0 -0
- trunk/images/logo.png +0 -0
- trunk/images/slider-next.png +0 -0
- trunk/images/slider-previous.png +0 -0
- trunk/images/support-aweber-001.png +0 -0
- trunk/images/support-aweber-002.png +0 -0
- trunk/images/support-aweber-003.png +0 -0
- trunk/images/support-aweber-004.png +0 -0
- trunk/images/support-convertkit-001.png +0 -0
- trunk/images/support-convertkit-002.png +0 -0
- trunk/images/support-convertkit-003.png +0 -0
- trunk/images/support-convertkit-004.png +0 -0
- trunk/images/support-convertkit-005.png +0 -0
- trunk/images/support-getresponse-001.png +0 -0
- trunk/images/support-getresponse-002.png +0 -0
- trunk/images/support-getresponse-003.png +0 -0
- trunk/images/support-icontact-001.png +0 -0
- trunk/images/support-icontact-002.png +0 -0
- trunk/images/support-icontact-003.png +0 -0
- trunk/images/support-icontact-004.png +0 -0
- trunk/images/support-icontact-005.png +0 -0
- trunk/images/support-icontact-006.png +0 -0
- trunk/images/support-icontact-007.png +0 -0
- trunk/images/support-icontact-008.png +0 -0
- trunk/images/support-icontact-009.png +0 -0
- trunk/images/support-interspire-001.png +0 -0
- trunk/images/support-interspire-002.png +0 -0
- trunk/images/support-interspire-003.png +0 -0
- trunk/images/support-interspire-004.png +0 -0
- trunk/images/support-interspire-005.png +0 -0
- trunk/images/support-interspire-006.png +0 -0
- trunk/images/support-interspire-007.png +0 -0
- trunk/images/support-interspire-008.png +0 -0
- trunk/images/support-interspire-009.png +0 -0
- trunk/images/support-interspire-010.png +0 -0
- trunk/images/support-interspire-011.png +0 -0
- trunk/images/support-madmimi-001.png +0 -0
- trunk/images/support-madmimi-002.png +0 -0
- trunk/images/support-madmimi-003.png +0 -0
- trunk/images/support-madmimi-004.png +0 -0
- trunk/images/support-madmimi-005.png +0 -0
- trunk/images/support-madmimi-006.png +0 -0
- trunk/images/support-madmimi-007.png +0 -0
- trunk/images/support-mailchimp-001.png +0 -0
- trunk/images/support-mailchimp-002.png +0 -0
- trunk/images/support-mailchimp-003.png +0 -0
- trunk/images/support-mailchimp-004.png +0 -0
- trunk/images/support-mailchimp-005.png +0 -0
- trunk/images/support-mailchimp-006.png +0 -0
- trunk/includes/functions-form-1.php +0 -498
- trunk/includes/functions-form-2.php +0 -397
- trunk/includes/functions-form-3.php +0 -416
- trunk/includes/functions-form-4.php +0 -473
- trunk/includes/functions-form-5.php +0 -497
- trunk/includes/functions-forms.php +0 -267
- trunk/includes/functions.php +0 -624
- trunk/includes/options-email-solution.php +0 -493
- trunk/includes/options-form-1.php +0 -701
- trunk/includes/options-form-2.php +0 -534
- trunk/includes/options-form-3.php +0 -578
- trunk/includes/options-form-4.php +0 -652
- trunk/includes/options-form-5.php +0 -693
- trunk/includes/options-form-functionality.php +0 -26
- trunk/includes/options-form-placement.php +0 -156
- trunk/includes/preview-form-1.php +0 -22
- trunk/includes/preview-form-2.php +0 -21
- trunk/includes/preview-form-3.php +0 -20
- trunk/includes/preview-form-4.php +0 -13
- trunk/includes/preview-form-5.php +0 -19
- trunk/includes/register-settings.php +0 -203
- trunk/includes/sidebar.php +0 -19
- trunk/js/custom.js +0 -78
- trunk/js/optinforms-color.js +0 -3
- trunk/js/placeholder.js +0 -103
- trunk/js/slider-control.js +0 -10
- trunk/js/tabcontent.js +0 -159
- trunk/js/tinybox.js +0 -134
- trunk/languages/optinforms-es_ES.mo +0 -0
- trunk/languages/optinforms-sr_RS.mo +0 -0
- trunk/languages/optinforms-tr_TR.mo +0 -0
- trunk/optin-forms.php +0 -394
- trunk/readme.txt +0 -158
js/custom.js
CHANGED
@@ -15,7 +15,6 @@ jQuery(document).ready(function($) {
|
|
15 |
|
16 |
// Runs when form design select list changes.
|
17 |
$("#optinforms_form_design").change(function() {
|
18 |
-
alert('text');
|
19 |
|
20 |
// Hides all design specific options.
|
21 |
$('#optinforms-design-backend-wrap > div').css('display', 'none');
|
15 |
|
16 |
// Runs when form design select list changes.
|
17 |
$("#optinforms_form_design").change(function() {
|
|
|
18 |
|
19 |
// Hides all design specific options.
|
20 |
$('#optinforms-design-backend-wrap > div').css('display', 'none');
|
optin-forms.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Optin Forms
|
|
4 |
Plugin URI: http://fancythemes.com/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: FancyThemes
|
7 |
-
Version: 1.2.
|
8 |
Author URI: http://www.fancythemes.com
|
9 |
Text Domain: optin-forms
|
10 |
Domain Path: /languages/
|
4 |
Plugin URI: http://fancythemes.com/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: FancyThemes
|
7 |
+
Version: 1.2.7
|
8 |
Author URI: http://www.fancythemes.com
|
9 |
Text Domain: optin-forms
|
10 |
Domain Path: /languages/
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: brs, FancyThemes
|
|
3 |
Tags: optin, form, forms, aweber, email subscriber, icontact, mailchimp, getresponse, mad mimi, newsletter, mailchimp forms, mailchimp integrations, mailchimp plugin, getresponse forms, subscribe, aweber forms, after post optin form, after post optin form plugin, lead generation, mobile optin forms, mobile optins, sidebar form, sidebar optin form, wordpress after post optin form, wordpress lead generation, wordpress popups, optin locker, social locker, enter email to download, interspire, email marketer, email marketing, email, e-mail, list, list building, opt-in, newsletter, email list, autoresponder, popup, pop-up, mailing, mailing list, mail, webform, newsletter plugin, optin plugin, opt-in plugin, conversion, design, convertkit, convert, kit
|
4 |
Requires at least: 3.2
|
5 |
Tested up to: 4.5.2
|
6 |
-
Stable tag: 1.2.
|
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 |
|
@@ -54,6 +54,9 @@ Having trouble with the plugin? Simply post your question to the [support forum]
|
|
54 |
3. Add your form to your website with a simple mouse-click.
|
55 |
|
56 |
== Changelog ==
|
|
|
|
|
|
|
57 |
= 1.2.6 =
|
58 |
* Updated to account for iContact changes.
|
59 |
|
3 |
Tags: optin, form, forms, aweber, email subscriber, icontact, mailchimp, getresponse, mad mimi, newsletter, mailchimp forms, mailchimp integrations, mailchimp plugin, getresponse forms, subscribe, aweber forms, after post optin form, after post optin form plugin, lead generation, mobile optin forms, mobile optins, sidebar form, sidebar optin form, wordpress after post optin form, wordpress lead generation, wordpress popups, optin locker, social locker, enter email to download, interspire, email marketer, email marketing, email, e-mail, list, list building, opt-in, newsletter, email list, autoresponder, popup, pop-up, mailing, mailing list, mail, webform, newsletter plugin, optin plugin, opt-in plugin, conversion, design, convertkit, convert, kit
|
4 |
Requires at least: 3.2
|
5 |
Tested up to: 4.5.2
|
6 |
+
Stable tag: 1.2.7
|
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 |
|
54 |
3. Add your form to your website with a simple mouse-click.
|
55 |
|
56 |
== Changelog ==
|
57 |
+
= 1.2.7 =
|
58 |
+
* Removed leftover testing code.
|
59 |
+
|
60 |
= 1.2.6 =
|
61 |
* Updated to account for iContact changes.
|
62 |
|
trunk/css/optinforms-admin-slider.css
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
/*--------------------------------------------------
|
2 |
-
SUPPORT BOX
|
3 |
-
---------------------------------------------------*/
|
4 |
-
|
5 |
-
.optinforms-supportbox-left{display:inline;float:left;width:44%;margin-right:2%;padding:40px 2%;}
|
6 |
-
.optinforms-supportbox-left h3{color:#fff;font-size:1.7em;font-weight:600;}
|
7 |
-
.optinforms-supportbox-left p{color:#08473f;font-size:1.2em;line-height:1.9em;}
|
8 |
-
.optinforms-supportbox-left a{color:#fff;text-decoration:none;font-size:1.2em;}
|
9 |
-
.optinforms-supportbox-left a:hover{color:#109785;text-decoration:none;}
|
10 |
-
.optinforms-supportbox-left a:focus{box-shadow:none;}
|
11 |
-
.optinforms-supportbox-right{display:inline;float:left;width:46%;padding:40px 2%;}
|
12 |
-
.optinforms-supportbox-right h3{color:#fff;font-size:1.7em;font-weight:600;}
|
13 |
-
.optinforms-supportbox-right p{font-size:1.2em;line-height:1.9em;}
|
14 |
-
|
15 |
-
.ui-slider { position: relative; text-align: left; }
|
16 |
-
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
|
17 |
-
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; background: #0dab96; border-radius:4px; cursor:pointer;}
|
18 |
-
|
19 |
-
.ui-slider-horizontal { height: .8em; background: #0dab96; border-radius:4px; cursor:pointer; margin-top: 30px;}
|
20 |
-
.ui-slider-horizontal .ui-slider-handle { top: -.2em; margin-left: -.6em; background:#109785; border-radius:3px; cursor:pointer; }
|
21 |
-
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
|
22 |
-
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
|
23 |
-
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
|
24 |
-
|
25 |
-
.optinforms-support-amount{border:0!important;background:#02C2A8!important;box-shadow:none!important;color:#fff!important;font-size:4em!important;font-weight:600!important;max-width:90px!important;}
|
26 |
-
.optinforms-support-label{color:#fff!important;font-size:3em!important;font-weight:600!important;cursor:text!important;position:relative;top:-9px;}
|
27 |
-
|
28 |
-
.optinforms-supportbox-price-container{display:inline;float:left;margin:10px 0 0;}
|
29 |
-
.optinforms-supportbox-buttons-container{display:inline;float:left;margin:10px 0 0;padding:26px 0 0;}
|
30 |
-
|
31 |
-
.optinforms-supportbox-button-support{background:#109785;color:#fff;border:0;border-radius:4px;font-size:1.2em;font-weight:600;letter-spacing:1px;padding:6px 20px;text-transform:uppercase;cursor:pointer;}
|
32 |
-
.optinforms-supportbox-button-support:hover{background:#0a6a5d;color:#fff;}
|
33 |
-
.optinforms-supportbox-button-no-support{color:#109785;border:0;font-size:1em;margin-left:40px;cursor:pointer;}
|
34 |
-
.optinforms-supportbox-button-no-support:hover{color:#0a6a5d;}
|
35 |
-
.optinforms-supportbox-button-no-support:focus{box-shadow:none;}
|
36 |
-
|
37 |
-
#optinforms-supportbox-close,#optinforms-supportbox-pledged{display:none;}
|
38 |
-
#optinforms-supportbox-close p,#optinforms-supportbox-pledged p{color:#0a6a5d;font-size:1em;line-height:1.4em;}
|
39 |
-
#optinforms-supportbox-close p a,#optinforms-supportbox-pledged p a{color:#0a6a5d;text-decoration:none;}
|
40 |
-
#optinforms-supportbox-close p a:hover,#optinforms-supportbox-pledged p a:hover{color:#074d44;text-decoration:none;}
|
41 |
-
|
42 |
-
#optinforms-supportbox-woohoo-one,#optinforms-supportbox-woohoo-two,#optinforms-supportbox-woohoo-three,#optinforms-supportbox-woohoo-four,#optinforms-supportbox-woohoo-five,#optinforms-supportbox-woohoo-six{display:none;margin:20px 0 0;}
|
43 |
-
#optinforms-supportbox-woohoo{display:block;margin:20px 0 0;}
|
44 |
-
.optinforms-supportbox-woohoo p{color:#109785;font-size:1.2em;line-height:1.4em;font-weight:600;}
|
45 |
-
|
46 |
-
/*--------------------------------------------------
|
47 |
-
MEDIA
|
48 |
-
---------------------------------------------------*/
|
49 |
-
@media only screen and (min-width: 1240px) and (max-width: 1539px) {
|
50 |
-
.optinforms-supportbox-button-no-support{display:block;margin:20px 0;}
|
51 |
-
}
|
52 |
-
@media only screen and (min-width: 768px) and (max-width: 1239px) {
|
53 |
-
.optinforms-supportbox-button-no-support{display:block;margin:20px 0;}
|
54 |
-
}
|
55 |
-
@media only screen and (min-width: 480px) and (max-width: 767px) {
|
56 |
-
.optinforms-supportbox-left{display:block!important;float:none!important;width:100%!important;box-sizing:border-box!important;margin-right:0!important;padding:40px 2%!important;}
|
57 |
-
.optinforms-supportbox-right{display:block!important;float:none!important;width:100%!important;box-sizing:border-box!important;padding:40px 2%!important;}
|
58 |
-
.optinforms-supportbox-button-no-support{display:block;margin:20px 0;}
|
59 |
-
}
|
60 |
-
@media only screen and (min-width: 100px) and (max-width: 479px) {
|
61 |
-
.optinforms-supportbox-left{display:block!important;float:none!important;width:100%!important;box-sizing:border-box!important;margin-right:0!important;padding:40px 2%!important;}
|
62 |
-
.optinforms-supportbox-right{display:block!important;float:none!important;width:100%!important;box-sizing:border-box!important;padding:40px 2%!important;}
|
63 |
-
.optinforms-supportbox-button-no-support{display:block;margin:20px 0;}
|
64 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/css/optinforms-admin.css
DELETED
@@ -1,304 +0,0 @@
|
|
1 |
-
/*--------------------------------------------------
|
2 |
-
MAIN
|
3 |
-
---------------------------------------------------*/
|
4 |
-
|
5 |
-
#optinforms {margin: 15px 15px 0 0;}
|
6 |
-
#optinforms a:link,#optinforms a:visited {color: #21759b; text-decoration: none;}
|
7 |
-
#optinforms a:hover {color: #d54e21;}
|
8 |
-
|
9 |
-
#icon-optinforms {background: url(../images/icon-32.png) no-repeat scroll 0 0 transparent; width: 200px;}
|
10 |
-
.video-item {display: inline; float: left; background: none repeat scroll 0 0 #FFFFFF; box-shadow: 0 0 3px rgba(0, 0, 0, 0.3); padding-bottom: 12px; position: relative; width: 215px; margin: 0 20px 20px 0; text-align: center;}
|
11 |
-
.video-item p {margin: 5px 0;}
|
12 |
-
.video-item a, .how-to-name {cursor:pointer;}
|
13 |
-
.video-item-hidden {display: none;}
|
14 |
-
.clear {clear: both;}
|
15 |
-
|
16 |
-
.optinforms-container-left {display: inline; float: left; width: 60%;}
|
17 |
-
.optinforms-container-right {display: inline; float: left; width: 38%; margin: 0 0 0 2%;}
|
18 |
-
.optinforms-container-left .optionleft {display: inline; float: left; width: 36%; margin: 0 3% 10px 1%; text-align: left;}
|
19 |
-
.optinforms-container-left .optionmiddle {display: inline; float: left; width: 57%; margin:0 3% 10px 0; text-align: left;}
|
20 |
-
.optinforms-container-left h4 {padding-bottom: 0!important; margin: 0 0 15px;}
|
21 |
-
|
22 |
-
.button-primary {margin: 30px 0!important;}
|
23 |
-
|
24 |
-
#emailbox {background-color: #F8F8F8; box-shadow: 0 0 1px rgba(0, 0, 0, 0.17); color: #222; display: block; padding:20px 35px; margin: 25px 15px 0 0;}
|
25 |
-
#emailbox h3 {margin: 0 0 15px; padding: 0; font-weight: 700; line-height: 30px; font-size: 16px;}
|
26 |
-
#emailbox input[type="submit"] {color: #fff!important; background: #2EA2CC; padding: 3px 15px; border: 0; border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
27 |
-
#emailbox input[type="submit"]:hover {color: #fff!important; background: #0074A2;}
|
28 |
-
#emailbox input[type="text"] {margin: 0 15px; color: #666; width: 240px;}
|
29 |
-
|
30 |
-
.optinforms-ad {display: block; /*background: #ffffe0;*/ width: 100%; padding: 0 4%; margin: 0 0 20px; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
31 |
-
.optinforms-ad h3, .optinforms-ad-product h3 {font-size: 14px; font-weight: bold; line-height: 20px; padding-bottom: 15px; border-bottom: 1px solid #e5e5e5; margin: 0 0 15px 0;}
|
32 |
-
.optinforms-offer-left {display: inline; float: left; width: 68%; margin: 0 1% 15px 1%;}
|
33 |
-
.optinforms-offer-right {display: inline; float: left; width: 28%; margin: 0 1% 15px 1%;}
|
34 |
-
.optinforms-offer-left h4 {font-size: 14px; margin: 0 0 4px; padding: 0;}
|
35 |
-
.optinforms-offer-left p {font-size: 12px; margin: 0; padding: 0; color: #666;}
|
36 |
-
.optinforms-offer-right-button {margin: 2px 0 0; color: #fff; background: #21759B; padding: 9px; border: 0; border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer; width:100%; text-align: center; text-transform: uppercase; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
37 |
-
.optinforms-offer-right-button:hover {background: #D54E21;}
|
38 |
-
.optinforms-ad-product {display: block; width: 92%; padding: 0 0 25px; margin: 20px 4%; border-bottom: 1px solid #e5e5e5; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
39 |
-
.optinforms-ad-product h4 {font-size: 20px; margin: 0 0 4px; padding: 0;}
|
40 |
-
.optinforms-ad-product p {font-size: 14px!important; line-height: 1.8em;}
|
41 |
-
.optinforms-ad-product ul {list-style:inside;}
|
42 |
-
.optinforms-ad-product ul li{font-size:14px;line-height:1.8em;}
|
43 |
-
|
44 |
-
.optinforms-ad-product-button {padding: 15px 0;}
|
45 |
-
.optinforms-ad-product-button a {color: #fff!important; background: #FD5A22; padding: 9px 20px; border: 0; border-radius: 4px; font-size: 16px; font-weight: 700; cursor: pointer; width: 220px; text-align: center; text-transform: uppercase; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;letter-spacing:1px;}
|
46 |
-
.optinforms-ad-product-button a:hover {background: #505050; color:#fff!important;}
|
47 |
-
|
48 |
-
#optinforms_email_solution_option1, #optinforms_email_solution_option2, #optinforms_email_solution_option3, #optinforms_email_solution_option4, #optinforms_email_solution_option5, #optinforms_email_solution_option6, #optinforms_email_solution_option7, #optinforms_form_design_option1, #optinforms_form_design_option2, #optinforms_form_design_option3, #optinforms_form_design_option4, #optinforms_form_design_option5, #optinforms_form_design_option6 {display:none;}
|
49 |
-
|
50 |
-
#optinforms-slider-wrapper {margin: 0; width: 764px;}
|
51 |
-
#optinforms-slider {position: relative; width: 680px; height: 175px; margin: 0; padding: 0; overflow: hidden; list-style:none; text-align:center;}
|
52 |
-
.slider-controls {position: relative; width: 764px;}
|
53 |
-
.slider-controls a {height:32px; width:32px; display:inline-block; text-indent:-9000px; outline:0;}
|
54 |
-
.slider-controls a:hover, .slider-controls a:active, .slider-controls a:focus {outline:0;}
|
55 |
-
#prev {background: url(../images/slider-next.png) no-repeat scroll; float: right; margin-right: 0; margin: 60px 0 0 10px;}
|
56 |
-
#next {background: url(../images/slider-previous.png) no-repeat scroll; float:left; margin-left:0; margin: 60px 10px 0 0;}
|
57 |
-
|
58 |
-
.trigger a{display:block;text-decoration:none;font-weight:700;color:#222;box-shadow:0 0 1px rgba(0,0,0,0.17);-moz-box-shadow:0 0 1px rgba(0,0,0,0.17);-webkit-box-shadow:0 0 1px rgba(0,0,0,0.17);-webkit-transition-duration:0;-moz-transition-duration:0;-o-transition-duration:0;background:url(../images/bullet-toggle.png) no-repeat right 15px #f8f8f8;padding:10px 10px 10px 15px;font-size:14px;text-align:left;margin-bottom:5px;}.toggle-container{overflow:hidden;padding:15px;}.trigger-button{float:left;width:100%;margin-bottom:6px;text-decoration:none;font-weight:700;box-shadow:0 0 1px rgba(0,0,0,0.17);-moz-box-shadow:0 0 1px rgba(0,0,0,0.17);-webkit-box-shadow:0 0 1px rgba(0,0,0,0.17);background:url(../images/bullet-toggle.png) no-repeat right 15px #f8f8f8;cursor:pointer;padding:10px 0;}.trigger-button span{padding-left:15px;}.trigger a:active, .trigger{cursor:pointer;}.trigger.active a,.trigger-button.active{background: url(../images/bullet-toggle.png) no-repeat scroll right -20px #F8F8F8;}
|
59 |
-
|
60 |
-
.error a {text-decoration:none!important;}
|
61 |
-
.hidden-warning {color:#eb432c!important;}
|
62 |
-
|
63 |
-
/*--------------------------------------------------
|
64 |
-
FORMS
|
65 |
-
---------------------------------------------------*/
|
66 |
-
|
67 |
-
#optinforms-form1-container {width: 98%; margin: 10px 0; max-width: 750px;}
|
68 |
-
#optinforms-form1 {display: block; float: left; width: 94%; background:#efefef; padding: 15px 3%; text-align: center; margin: 0 0 25px; border-radius: 8px; border: 2px solid #e0e0e0;}
|
69 |
-
/* on admin pages */
|
70 |
-
#optinforms-form1-title {display: block; text-align: center; color: #eb432c; margin: 0 0 15px; font-family: Damion, sans-serif;}
|
71 |
-
#optinforms-form1-subtitle {font-size: 16px; color: #333; margin: 20px 0;}
|
72 |
-
#optinforms-form1-name-field-container, #optinforms-form1-email-field-container {display: inline; float: left; width: 38%; margin: 0 2% 0 0;}
|
73 |
-
#optinforms-form1-button-container {display: inline; float: left; width: 20%; margin: 0;}
|
74 |
-
#optinforms-form1-name-field {color: #666; padding: 8px 8px 8px 33px; background: url(../images/icon-user-01.png) no-repeat left center #fff; width:100%; border:1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out;}
|
75 |
-
#optinforms-form1-email-field {color: #666; padding: 8px 8px 8px 33px; background: url(../images/icon-email-01.png) no-repeat left center #fff; width:100%; border:1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out;}
|
76 |
-
#optinforms-form1-button {margin: 2px 0 0; color: #fff; background: #20a64c; padding: 6px; border: 0; border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer; width:100%;}
|
77 |
-
#optinforms-form1-disclaimer {font-size: 11px; color: #666; margin:10px 0;}
|
78 |
-
|
79 |
-
#optinforms-form2-container {width: 98%; margin: 10px 0; max-width: 750px;}
|
80 |
-
#optinforms-form2 {display: block; float: left; width: 94%; background: #266d7c; padding: 15px 3%; text-align: center; margin: 0 0 25px; border-radius: 8px;}
|
81 |
-
#optinforms-form2-title-container {display: inline; float: left; width: 30%; text-align: left; margin: 0 2% 0 0;}
|
82 |
-
#optinforms-form2-title {color: #fff; font-family: Pacifico, sans-serif; font-size: 30px; line-height: 30px;}
|
83 |
-
#optinforms-form2-email-field-container {display: inline; float: left; width: 30%; text-align: left;}
|
84 |
-
#optinforms-form2-email-field {color: #000; padding: 8px 8px 8px 33px; background: url(../images/icon-email-01.png) no-repeat left center #fff; width:100%; border:1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out;}
|
85 |
-
#optinforms-form2-button-container {display: inline; float: left; width: 18%; text-align: left; margin: 0 0 0 2%;}
|
86 |
-
#optinforms-form2-button {margin: 2px 0 0; color: #fff; background: #49A3FE; padding: 6px; border: 0; border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer; width:100%;}
|
87 |
-
#optinforms-form2-disclaimer-container {display: inline; float: left; width: 16%; text-align: left; margin: 0 0 0 2%;}
|
88 |
-
#optinforms-form2-disclaimer {font-size: 11px; color: #fff; margin: 12px 0;}
|
89 |
-
|
90 |
-
#optinforms-form3-container {width: 98%; margin: 10px 0; max-width: 750px;}
|
91 |
-
#optinforms-form3 {display: block; float: left; width: 100%; background: url(../images/form3-border-top.gif) repeat-x #fff; padding: 0; text-align: center; margin: 0 0 25px;}
|
92 |
-
#optinforms-form3-inside {display: block; width: 94%; padding: 15px 3%; background: #f0f0f0; margin: 12px 0 0;}
|
93 |
-
#optinforms-form3-container-left {display: inline; float: left; width: 58%; margin: 10px 1% 0 0; text-align: left;}
|
94 |
-
#optinforms-form3-container-right {display: inline; float: left; width: 38%; margin: 10px 0 0 1%; text-align: left;}
|
95 |
-
#optinforms-form3-title {color: #505050; font-family: Droid Serif, serif; font-size: 30px; line-height: 30px;}
|
96 |
-
#optinforms-form3-subtitle {font-size: 16px; color: #505050; margin: 20px 10px 20px 0; line-height: 28px;}
|
97 |
-
#optinforms-form3-name-field {color: #666; padding: 8px 8px 8px 33px; margin: 0 0 5px 0; background: url(../images/icon-user-01.png) no-repeat left center #fff; width:100%; border:1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
98 |
-
#optinforms-form3-email-field {color: #666; padding: 8px 8px 8px 33px; margin: 0 0 5px 0; background: url(../images/icon-email-01.png) no-repeat left center #fff; width:100%; border:1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
99 |
-
#optinforms-form3-button {margin: 0; color: #fff; background: #49A3FE; padding: 6px; border: 0; border-radius: 4px; font-size: 18px; font-weight: 700; cursor: pointer; width:100%;}
|
100 |
-
|
101 |
-
#optinforms-form4-container {width: 98%; margin: 10px 0; max-width: 750px;}
|
102 |
-
#optinforms-form4 {display: block; float: left; width: 94%; background: #FCFCFC; padding: 15px 3%; text-align: center; margin: 0 0 25px; border: 2px solid #ECEAED;}
|
103 |
-
#optinforms-form4-title {color: #505050; font-family: Arial, sans-serif; font-size: 24px; line-height: 24px; margin: 10px 0;}
|
104 |
-
#optinforms-form4-subtitle {font-size: 16px; color: #505050; margin: 15px 0; line-height: 28px;}
|
105 |
-
#optinforms-form4-email-field {color: #666; padding: 8px; margin: 0 0 5px 0; background: #fff; width:100%; text-align: center; font-size: 16px; border:1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
106 |
-
#optinforms-form4-button {margin: 0; color: #1d629b; background: #faff5b; padding: 6px; border: 0; border-radius: 4px; font-size: 20px; font-weight: 700; cursor: pointer; width:100%;}
|
107 |
-
#optinforms-form4-disclaimer {font-size: 12px; color: #999; margin:10px 0;}
|
108 |
-
|
109 |
-
#optinforms-form5-container {width: 98%; margin: 10px 0; max-width: 750px;}
|
110 |
-
#optinforms-form5 {display: block; float: left; width: 94%; background: #333333; padding: 15px 3%; text-align: center; margin: 0 0 25px;}
|
111 |
-
#optinforms-form5-container-left {display: inline; float: left; width: 39%; margin: 10px 1% 10px 0; text-align: left;}
|
112 |
-
#optinforms-form5-container-right {display: inline; float: left; width: 59%; margin: 10px 0 10px 1%; text-align: left;}
|
113 |
-
#optinforms-form5-title {color: #fb6a13; font-family: "News Cycle", sans-serif; font-size: 28px; line-height: 28px; margin: 0 0 20px 0;}
|
114 |
-
#optinforms-form5-subtitle {font-size: 16px; line-height: 26px; font-family: Georgia, "Times New Roman", Times, serif; color: #ccc; margin: 0 20px;}
|
115 |
-
#optinforms-form5-name-field {color: #000; padding: 8px 8px 8px 33px; margin: 0 0 10px 0; background: url(../images/icon-user-01.png) no-repeat left center #fff; width:100%; border: 1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
116 |
-
#optinforms-form5-email-field {color: #000; padding: 8px 8px 8px 33px; margin: 0 0 10px 0; background: url(../images/icon-email-01.png) no-repeat left center #fff; width:100%; border: 1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
117 |
-
#optinforms-form5-button {margin: 0; color: #fff; background: #fb6a13; padding: 6px; border: 0; border-radius: 4px; font-size: 16px; font-weight: 700; cursor: pointer; width:100%;}
|
118 |
-
#optinforms-form5-disclaimer {font-size: 14px; line-height: 26px; font-family: Georgia, "Times New Roman", Times, serif; color: #727272; margin: 20px 20px 0 20px;}
|
119 |
-
|
120 |
-
#optinforms-slider .optiongroup {text-align: left; margin: 25px 0 0;}
|
121 |
-
|
122 |
-
.sticky-placeholder-wrapper > label {
|
123 |
-
opacity:.5; /* to prevent initial dimming in FF, set to the same value as placeholderOpacity (default: .5) */
|
124 |
-
-webkit-transition: opacity .2s ease-out;
|
125 |
-
-moz-transition: opacity .2s ease-out;
|
126 |
-
-ms-transition: opacity .2s ease-out;
|
127 |
-
transition: opacity .2s ease-out;
|
128 |
-
}
|
129 |
-
.choose-width {display: inline; float: left; width: 100px!important;}
|
130 |
-
.fixed-width {display: inline; float: left; width: 50px!important;}
|
131 |
-
.fixed-width-px {display: inline; float: left; width: 30px; margin: 0 0 0 10px; padding: 6px 0 0;}
|
132 |
-
|
133 |
-
.optinforms-step {display: block; padding: 20px; margin: 10px 0; background: #f7f7f7; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius:5px;}
|
134 |
-
.optinforms-step p {margin: 0 0 4px;}
|
135 |
-
.step-image { margin: 10px 0; padding: 10px; background: #fff; border: 1px solid #f8f8f8; box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);}
|
136 |
-
.follow {margin: 15px 0!important;}
|
137 |
-
|
138 |
-
.optinforms-help {display: block; padding: 15px; margin: 10px 0 20px; background: #f7f7f7; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius:5px;}
|
139 |
-
.optinforms-help p {margin: 0; padding: 0;}
|
140 |
-
.optinforms-help .highlight {font-family: "Courier New", Courier, monospace; background-color: #ececec; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius:5px; color: #666; font-weight: normal; padding: 2px 8px; margin: 0 2px;}
|
141 |
-
|
142 |
-
.optinforms-integration {margin: 10px 0 20px 1%; padding: 0; color: #21759B!important; font-weight: 700;}
|
143 |
-
|
144 |
-
.optiongroup {color: #222; display: block; padding: 0; margin: 0 0 5px; cursor:default;}
|
145 |
-
.optionleft {display: inline; float: left; width: 20%; margin: 0 3% 10px 1%; text-align: left;}
|
146 |
-
.optionmiddle {display: inline; float: left; width: 33%; margin:0 3% 10px 0; text-align: left;}
|
147 |
-
.optionlast {display: inline; float: left; width: 40%; text-align: left;}
|
148 |
-
.optionlast p {color: #676767; font-size:11px; margin-top: 6px;}
|
149 |
-
.optionfirst, .optionsecond {display: inline; float: left; width: 31%; margin-right: 2%; text-align: left;}
|
150 |
-
.optionthird {display: inline; float: left; width: 32%; margin-right: 2%; text-align: left;}
|
151 |
-
.thumb1, .thumb2, .thumb3, .thumb4, .thumb5 {display: inline; float: left; width: 19%; margin-right: 1%; text-align: center;}
|
152 |
-
.custom-thumb-left {display: inline; float: left; width: 1%; margin-right: 2%;}
|
153 |
-
.custom-thumb-middle {display: inline; float: left; width: 30%; margin: 4px 0 2%;}
|
154 |
-
.custom-thumb-right {display: inline; float: left; width: 63%; margin-right: 2%;}
|
155 |
-
.custom-thumb-right p, #how-to-name-images {margin: 0 0 15px 0;}
|
156 |
-
.custom-thumb-middle label {padding-top: 0!important;}
|
157 |
-
#how-to-name-images-left, #how-to-name-images-right {display:inline; float: left; width: 49%; padding: 0 1% 0 0;}
|
158 |
-
.custom-video-left {display: inline; float: left; width: 49%; margin-right: 1%;}
|
159 |
-
.custom-video-right {display: inline; float: left; width: 49%; margin-left: 1%;}
|
160 |
-
.custom-video-left p, .custom-video-right p {display: inline; float: left; width: 18%; margin: 7px 0 0 0; padding-right: 1%; color: #222;}
|
161 |
-
.custom-video-left input, .custom-video-right input {width: 80%!important;}
|
162 |
-
.optiongroup h3 {font-size: 14px; font-weight: bold; line-height: 20px; padding-bottom: 15px; border-bottom: 1px solid #e5e5e5; margin: 0 0 15px 0;}
|
163 |
-
.no-border {border-bottom: 0!important;}
|
164 |
-
.optiongroup h4 {font-size: 14px; font-weight: bold; line-height: 20px; padding-bottom: 10px;}
|
165 |
-
.optiongroup label {padding-top: 10px;}
|
166 |
-
.iconlabel {display: inline; float: left; width: 87%; text-align: left; padding-top: 1px!important;}
|
167 |
-
.preview-icon {display: inline; float: left; width: 11%; margin: 6px 2% 0 0; opacity:0.6; filter:alpha(opacity=60);/* For IE8 and earlier */}
|
168 |
-
.nopointer {cursor: default;}
|
169 |
-
.optiongroup p, .optionfirst label, .optionsecond label, .optionthird label, #how-to-name-images ul li {color: #666;}
|
170 |
-
.thumb1 p, .thumb2 p, .thumb3 p, .thumb4 p, .thumb5 p {font-size: 11px; color: #676767; padding: 0 10px;}
|
171 |
-
.optiongroup input {width: 100%; padding: 5px;}
|
172 |
-
.optiongroup input[type=text]:disabled, .optiongroup textarea:disabled {background-color: #f8f8f8;}
|
173 |
-
.optiongroup input[type="checkbox"] {width: 10px!important; margin: 8px 10px 0 3px;}
|
174 |
-
.optiongroup input[type="radio"] {text-align: left; margin: 5px 10px 0;}
|
175 |
-
.optiongroup select {padding: 5px; height: 34px; min-width: 250px;}
|
176 |
-
.radiobutton {width: 10px!important; margin: 0 0 0 15px;}
|
177 |
-
.radiobutton-label {margin: 0 15px 0 0;}
|
178 |
-
/*.optiongroup input[type="radio"] {width: 100%!important; text-align: left;}*/
|
179 |
-
/* *USED FOR THUMBNAILS */
|
180 |
-
.optionfirst input[type="checkbox"], .optionsecond input[type="checkbox"], .optionthird input[type="checkbox"] {display: inline; float: left; width: 10px!important; margin: 8px 15px 0 3px;}
|
181 |
-
.optiongroup textarea {width: 100%; height: 140px; padding: 5px;}
|
182 |
-
.radiocontainer {width: 10px; margin: 0 0 10px 44%;}
|
183 |
-
.radiocontainer-custom {display: inline; float: left; width: 10px; margin: 0 25px 10px 0;}
|
184 |
-
.highlight {font-family: "Courier New", Courier, monospace; background-color: #e4e4e4; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius:5px; color: #676767; font-weight: normal; padding: 2px 8px; margin: 0 2px;}
|
185 |
-
.required {font-family: "Courier New", Courier, monospace; color: #fd5a22; font-weight: 700;}
|
186 |
-
.step {font-family: "Courier New", Courier, monospace; background-color: #fd5a22; border-radius: 12px; -moz-border-radius: 12px; -webkit-border-radius: 12px; color: #fff; font-weight: 700; padding: 2px 6px; margin: 0 10px 0 2px;}
|
187 |
-
.explain {font-family: "Courier New", Courier, monospace; background-color: #fff; border-radius: 12px; -moz-border-radius: 12px; -webkit-border-radius:12px; color: #999; font-weight: 700; padding: 4px 8px; margin: 0 2px; cursor: pointer;}
|
188 |
-
|
189 |
-
#introduction h3, .video-cat {font-size: 14px; font-weight: bold; line-height: 20px;}
|
190 |
-
|
191 |
-
#add-custom-button {text-align: right;}
|
192 |
-
.add-custom-videos {width: 150px!important; background-color: #e4e4e4; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius:5px; color: #676767; font-weight: normal; padding: 2px 8px; margin: 10px 2px; border: 0; cursor: pointer;}
|
193 |
-
.highlight-custom {font-family: "Courier New", Courier, monospace; background-color: #e4e4e4; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius:5px; color: #676767; font-weight: normal; padding: 2px 4px; margin: 0 2px;}
|
194 |
-
|
195 |
-
.wp-picker-input-wrap input {margin-left: 6px;}
|
196 |
-
.wp-picker-container .button {margin-left: 0!important;}
|
197 |
-
.wp-picker-container input.wp-color-picker[type="text"] {width: none!important;}
|
198 |
-
|
199 |
-
/*--------------------------------------------------
|
200 |
-
TABBED CONTENT
|
201 |
-
---------------------------------------------------*/
|
202 |
-
#tabcontainer {margin: 20px 0; padding: 4% 2% 2% 2%;}
|
203 |
-
.shadetabs {padding: 3px 0; margin: 0 0 15px 0; list-style-type: none; text-align: left; /*set to left, center, or right to align the menu as desired*/}
|
204 |
-
.shadetabs li {display: inline; float: left; margin: 2px 3px;}
|
205 |
-
.shadetabs li a {background: none repeat scroll 0 0 #f7f7f7; border-radius: 4px; padding-top: 4px; position: relative; padding: 5px 10px; z-index: 1; font-size: 16px; color: #AAA!important; text-decoration: none; outline: 0; display: table-cell; font-weight:400!important; line-height: 29px;}
|
206 |
-
.shadetabs li a:visited, .shadetabs li a:hover {color: #2d2b2b;}
|
207 |
-
.shadetabs li a.selected {/*selected main tab style */background: none repeat scroll 0 0 #FFF; border:0; color: #111111!important; position: relative;}
|
208 |
-
.shadetabs li a.selected:hover {/*selected main tab style */ text-decoration: none;}
|
209 |
-
.tabcontent {display: none;}
|
210 |
-
.tabcontent-hidden {display: none;}
|
211 |
-
|
212 |
-
/*--------------------------------------------------
|
213 |
-
MEDIA
|
214 |
-
---------------------------------------------------*/
|
215 |
-
@media only screen and (min-width: 768px) and (max-width: 1239px) {
|
216 |
-
#optinforms {max-width: none; min-width: 1px;}
|
217 |
-
#introduction {max-width: none;}
|
218 |
-
#options-container {max-width: none; margin: 25px 20px 0 0;}
|
219 |
-
.optinforms-container-left {display:block!important; width:100%!important;}
|
220 |
-
.optinforms-container-right {display:block!important; width:100%!important; margin:25px 0 0; padding: 0;}
|
221 |
-
.optinforms-ad-product {width: 100%; padding: 20px 0; margin: 20px 0;}
|
222 |
-
.optinforms-ad {padding: 0;}
|
223 |
-
#optinforms-form1-container, #optinforms-form2-container, #optinforms-form3-container, #optinforms-form4-container, #optinforms-form5-container {max-width: none;}
|
224 |
-
#emailbox {margin: 0;}
|
225 |
-
#emailbox span {display: block; width:100%; margin: 5px 0!important; padding: 5px 0;}
|
226 |
-
#emailbox input[type="text"] {display: block; width:100%; margin: 5px 0!important; padding: 5px;}
|
227 |
-
#upper-container-left, #upper-container-right {display: block; width:100%; margin:0;}
|
228 |
-
#supportbox {margin-left: 0!important;}
|
229 |
-
.optionleft {display: block; width: 100%; margin: 0 0 6px;}
|
230 |
-
.optionmiddle, .optionlast {display: block; width: 100%;}
|
231 |
-
.optionmiddle input, .optionmiddle textarea {}
|
232 |
-
.optionlast p {margin: 0 0 15px;}
|
233 |
-
.preview-icon {width:3%;}
|
234 |
-
.iconlabel {width:95%!important;}
|
235 |
-
.optionfirst, .optionsecond, .optionthird {display: block; width: 100%; margin: 0 0 15px;}
|
236 |
-
.thumb1 img, .thumb2 img, .thumb3 img, .thumb4 img, .thumb5 img {max-width:90px;}
|
237 |
-
.radiocontainer {margin: 0 0 10px 45px!important;}
|
238 |
-
.custom-video-left, .custom-video-right {display: block; width: 100%; margin-left: 0;}
|
239 |
-
.custom-thumb-left {width: 3%;}
|
240 |
-
.custom-thumb-right {width: 100%;}
|
241 |
-
#how-to-name-images-left, #how-to-name-images-right {display: block; width: 100%;}
|
242 |
-
}
|
243 |
-
@media only screen and (min-width: 480px) and (max-width: 767px) {
|
244 |
-
#optinforms {max-width: none; min-width: 1px;}
|
245 |
-
#introduction {max-width: none;}
|
246 |
-
#options-container {max-width: none; margin: 25px 20px 0 0;}
|
247 |
-
.optinforms-container-left {display:block!important; width:100%!important;}
|
248 |
-
.optinforms-container-right {display:block!important; width:100%!important; margin:25px 0 0; padding: 0;}
|
249 |
-
.optinforms-ad-product {width: 100%; padding: 20px 0; margin: 20px 0;}
|
250 |
-
.optinforms-ad {padding: 0;}
|
251 |
-
#optinforms-form1-container, #optinforms-form2-container, #optinforms-form3-container, #optinforms-form4-container, #optinforms-form5-container {max-width: none;}
|
252 |
-
#emailbox {margin: 0;}
|
253 |
-
#emailbox span {display: block; width:100%; margin: 5px 0!important; padding: 5px 0;}
|
254 |
-
#emailbox input[type="text"] {display: block; width:100%; margin: 5px 0!important; padding: 5px;}
|
255 |
-
#upper-container-left, #upper-container-right {display: block; width:100%; margin:0;}
|
256 |
-
#upper-container-left, #upper-container-right {display: block; width:100%; margin:0;}
|
257 |
-
#supportbox {margin-left: 0!important;}
|
258 |
-
.optionleft {display: block; width: 100%; margin: 0 0 6px;}
|
259 |
-
.optionmiddle, .optionlast {display: block; width: 100%;}
|
260 |
-
.optionmiddle input, .optionmiddle textarea {}
|
261 |
-
.optionlast p {margin: 0 0 15px;}
|
262 |
-
.preview-icon {width:3%;}
|
263 |
-
.iconlabel {width:95%!important;}
|
264 |
-
.optionfirst, .optionsecond, .optionthird {display: block; width: 100%; margin: 0 0 15px;}
|
265 |
-
.thumb1 img, .thumb2 img, .thumb3 img, .thumb4 img, .thumb5 img {max-width:90px;}
|
266 |
-
.radiocontainer {margin: 0 0 10px 45px!important;}
|
267 |
-
.custom-video-left, .custom-video-right {display: block; width: 100%; margin-left: 0;}
|
268 |
-
.custom-thumb-left {width: 3%;}
|
269 |
-
.custom-thumb-right {width: 100%;}
|
270 |
-
#how-to-name-images-left, #how-to-name-images-right {display: block; width: 100%;}
|
271 |
-
}
|
272 |
-
@media only screen and (min-width: 320px) and (max-width: 479px) {
|
273 |
-
#optinforms {max-width: none; min-width: 1px;}
|
274 |
-
#introduction {max-width: none;}
|
275 |
-
#options-container {max-width: none; margin: 25px 20px 0 0;}
|
276 |
-
.optinforms-container-left {display:block!important; width:100%!important;}
|
277 |
-
.optinforms-container-right {display:block!important; width:100%!important; margin:25px 0 0; padding: 0;}
|
278 |
-
.optinforms-ad-product {width: 100%; padding: 20px 0; margin: 20px 0;}
|
279 |
-
.optinforms-ad {padding: 0;}
|
280 |
-
#optinforms-form1-container, #optinforms-form2-container, #optinforms-form3-container, #optinforms-form4-container, #optinforms-form5-container {max-width: none;}
|
281 |
-
#emailbox {margin: 0;}
|
282 |
-
#emailbox span {display: block; width:100%; margin: 5px 0!important; padding: 5px 0;}
|
283 |
-
#emailbox input[type="text"] {display: block; width:100%; margin: 5px 0!important; padding: 5px;}
|
284 |
-
#upper-container-left, #upper-container-right {display: block; width:100%; margin:0;}
|
285 |
-
#supportbox {margin-left: 0!important;}
|
286 |
-
.optionleft {display: block; width: 100%; margin: 0 0 6px;}
|
287 |
-
.optionmiddle, .optionlast {display: block; width: 100%;}
|
288 |
-
.optionmiddle input, .optionmiddle textarea {}
|
289 |
-
.optionlast p {margin: 0 0 15px;}
|
290 |
-
.preview-icon {width:4%;}
|
291 |
-
.iconlabel {width:94%!important;}
|
292 |
-
.optionfirst, .optionsecond, .optionthird {display: block; width: 100%; margin: 0 0 15px;}
|
293 |
-
.thumb1 img, .thumb2 img, .thumb3 img, .thumb4 img, .thumb5 img {max-width:70px;}
|
294 |
-
.radiocontainer {margin: 0 0 10px 30px!important;}
|
295 |
-
.custom-thumb-left {width:4%;}
|
296 |
-
.custom-thumb-middle {width:92%;}
|
297 |
-
.custom-thumb-right {display:block; width:100%; margin-top: 6px;}
|
298 |
-
.custom-video-left, .custom-video-right {display: block; width: 100%; margin-left: 0;}
|
299 |
-
.custom-thumb-left {width: 3%;}
|
300 |
-
.custom-thumb-right {width: 100%;}
|
301 |
-
#how-to-name-images-left, #how-to-name-images-right {display: block; width: 100%;}
|
302 |
-
}
|
303 |
-
|
304 |
-
@media print {.tabcontent {display:block !important;} .tabcontent-hidden {display:none;} }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/css/optinforms.css
DELETED
@@ -1,126 +0,0 @@
|
|
1 |
-
/*--------------------------------------------------
|
2 |
-
MAIN
|
3 |
-
---------------------------------------------------*/
|
4 |
-
.clear {clear:both;}
|
5 |
-
/*--------------------------------------------------
|
6 |
-
FORMS
|
7 |
-
---------------------------------------------------*/
|
8 |
-
#optinforms-form1-container {width: 100%; margin: 10px auto 20px auto;}
|
9 |
-
#optinforms-form1 {display: block; float: left; width: 100%; background:#efefef; padding: 15px 3%; text-align: center; margin: 0 0 5px; border-radius: 8px; border: 2px solid #e0e0e0; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
10 |
-
/* on admin pages */
|
11 |
-
#optinforms-form1-title {display: block; text-align: center; color: #eb432c; margin: 0 0 15px; font-family: Damion, sans-serif;}
|
12 |
-
#optinforms-form1-subtitle {font-size: 16px; color: #333; margin: 20px 0;}
|
13 |
-
#optinforms-form1-name-field-container, #optinforms-form1-email-field-container {display: inline; float: left; width: 38%; margin: 0 2% 0 0;}
|
14 |
-
#optinforms-form1-button-container {display: inline; float: left; width: 20%; margin: 0;}
|
15 |
-
#optinforms-form1-name-field {color: #666; padding: 8px 8px 8px 33px!important; background: url(../images/icon-user-01.png) no-repeat left center #fff; width: 100%; border:1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out; box-shadow: none; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
16 |
-
#optinforms-form1-email-field {color: #666; padding: 8px 8px 8px 33px!important; background: url(../images/icon-email-01.png) no-repeat left center #fff; width: 100%; border:1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out; box-shadow: none; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
17 |
-
#optinforms-form1-button {margin: 2px 0 0; color: #fff; background: #20a64c; padding: 6px; border: 0; border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer; width:100%; text-shadow: none;}
|
18 |
-
#optinforms-form1-disclaimer {font-size: 11px; color: #666; margin:10px 0;}
|
19 |
-
|
20 |
-
#optinforms-form2-container {width: 100%; margin: 10px auto 20px auto;}
|
21 |
-
#optinforms-form2 {display: block; float: left; width: 100%; background: #266d7c; padding: 15px 3%; text-align: center; margin: 0 0 5px; border-radius: 8px; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
22 |
-
#optinforms-form2-title-container {display: inline; float: left; width: 30%; text-align: left; margin: 0 2% 0 0;}
|
23 |
-
#optinforms-form2-title {color: #fff; font-family: Pacifico, sans-serif; font-size: 30px; line-height: 30px;}
|
24 |
-
#optinforms-form2-email-field-container {display: inline; float: left; width: 30%; text-align: left;}
|
25 |
-
#optinforms-form2-email-field {color: #000; padding: 8px 8px 8px 33px; background: url(../images/icon-email-01.png) no-repeat left center #fff; width:100%; border:1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out; box-shadow: none; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
26 |
-
#optinforms-form2-button-container {display: inline; float: left; width: 18%; text-align: left; margin: 0 0 0 2%;}
|
27 |
-
#optinforms-form2-button {margin: 2px 0 0; color: #fff; background: #49A3FE; padding: 6px; border: 0; border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer; width:100%; text-shadow: none;}
|
28 |
-
#optinforms-form2-disclaimer-container {display: inline; float: left; width: 16%; text-align: left; margin: 0 0 0 2%;}
|
29 |
-
#optinforms-form2-disclaimer {font-size: 11px; color: #fff; margin: 12px 0;}
|
30 |
-
|
31 |
-
#optinforms-form3-container {width: 100%; margin: 10px auto 20px auto;}
|
32 |
-
#optinforms-form3 {display: block; float: left; width: 100%; background: url(../images/form3-border-top.gif) repeat-x #fff; padding: 0; text-align: center; margin: 0 0 5px; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
33 |
-
#optinforms-form3-inside {display: block; width: 100%; padding: 15px 3%; background: #f0f0f0; margin: 12px 0 0; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
34 |
-
#optinforms-form3-container-left {display: inline; float: left; width: 58%; margin: 10px 1% 0 0; text-align: left;}
|
35 |
-
#optinforms-form3-container-right {display: inline; float: left; width: 38%; margin: 10px 0 0 1%; text-align: left;}
|
36 |
-
#optinforms-form3-title {color: #505050; font-family: Droid Serif, sans-serif; font-size: 30px; line-height: 30px;}
|
37 |
-
#optinforms-form3-subtitle {font-size: 16px; color: #505050; margin: 20px 10px 20px 0; line-height: 28px;}
|
38 |
-
#optinforms-form3-name-field {color: #666; padding: 8px 8px 8px 33px; margin: 0 0 5px 0; background: url(../images/icon-user-01.png) no-repeat left center #fff; width:100%; border:1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
39 |
-
#optinforms-form3-email-field {color: #666; padding: 8px 8px 8px 33px; margin: 0 0 5px 0; background: url(../images/icon-email-01.png) no-repeat left center #fff; width:100%; border:1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
40 |
-
#optinforms-form3-button {margin: 0; color: #fff; background: #49A3FE; padding: 6px; border: 0; border-radius: 4px; font-size: 18px; font-weight: 700; cursor: pointer; width:100%; text-shadow: none;}
|
41 |
-
|
42 |
-
#optinforms-form4-container {width: 100%; margin: 10px auto 20px auto;}
|
43 |
-
#optinforms-form4 {display: block; float: left; width: 100%; background: #FCFCFC; padding: 15px 3%; text-align: center; margin: 0 0 5px; border: 2px solid #ECEAED; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
44 |
-
#optinforms-form4-title {color: #505050; font-family: Arial, sans-serif; font-size: 24px; line-height: 24px; margin: 10px 0;}
|
45 |
-
#optinforms-form4-subtitle {font-size: 16px; color: #505050; margin: 15px 0; line-height: 28px;}
|
46 |
-
#optinforms-form4-email-field {color: #666; padding: 8px; margin: 0 0 5px 0; background: #fff; width:100%; text-align: center; font-size: 16px; border:1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
47 |
-
#optinforms-form4-button {margin: 0; color: #1d629b; background: #faff5b; padding: 6px; border: 0; border-radius: 4px; font-size: 20px; font-weight: 700; cursor: pointer; width:100%; text-shadow: none;}
|
48 |
-
#optinforms-form4-disclaimer {font-size: 12px; color: #999; margin:10px 0;}
|
49 |
-
|
50 |
-
#optinforms-form5-container {width: 100%; margin: 10px auto 20px auto;}
|
51 |
-
#optinforms-form5 {display: block; float: left; width: 100%; background: #333333; padding: 15px 3%; text-align: center; margin: 0 0 5px; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
52 |
-
#optinforms-form5-container-left {display: inline; float: left; width: 39%; margin: 10px 1% 10px 0; text-align: left;}
|
53 |
-
#optinforms-form5-container-right {display: inline; float: left; width: 59%; margin: 10px 0 10px 1%; text-align: left;}
|
54 |
-
#optinforms-form5-title {color: #fb6a13; font-family: "News Cycle", sans-serif; font-size: 28px; line-height: 28px; margin: 0 0 20px 0;}
|
55 |
-
#optinforms-form5-subtitle {font-size: 16px; line-height: 26px; font-family: Georgia, "Times New Roman", Times, serif; color: #ccc; margin: 0 20px;}
|
56 |
-
#optinforms-form5-name-field {color: #000; padding: 8px 8px 8px 33px; margin: 0 0 10px 0; background: url(../images/icon-user-01.png) no-repeat left center #fff; width:100%; border: 1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
57 |
-
#optinforms-form5-email-field {color: #000; padding: 8px 8px 8px 33px; margin: 0 0 10px 0; background: url(../images/icon-email-01.png) no-repeat left center #fff; width:100%; border: 1px solid #DFDFDF; border-radius: 4px; -webkit-transition: all .2s ease-out; -moz-transition: all .2s ease-out; -ms-transition: all .2s ease-out;transition: all .2s ease-out; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box;}
|
58 |
-
#optinforms-form5-button {margin: 0; color: #fff; background: #fb6a13; padding: 6px; border: 0; border-radius: 4px; font-size: 16px; font-weight: 700; cursor: pointer; width:100%;}
|
59 |
-
#optinforms-form5-disclaimer {font-size: 14px; line-height: 26px; font-family: Georgia, "Times New Roman", Times, serif; color: #727272; margin: 20px 20px 0 20px;}
|
60 |
-
|
61 |
-
#optinforms-powered-by {width: 99%; text-align: right; font-size: 11px; color: #666; margin: 10px 1% 0 0;}
|
62 |
-
.sticky-placeholder-wrapper > label {opacity:.5; -webkit-transition: opacity .2s ease-out; -moz-transition: opacity .2s ease-out; -ms-transition: opacity .2s ease-out; transition: opacity .2s ease-out;}
|
63 |
-
|
64 |
-
/*--------------------------------------------------
|
65 |
-
MEDIA
|
66 |
-
---------------------------------------------------*/
|
67 |
-
@media only screen and (min-width: 768px) and (max-width: 959px) {
|
68 |
-
#optinforms-form1-name-field-container, #optinforms-form1-email-field-container{display:block;float:none;width:100%;margin:0 0 5px;}
|
69 |
-
#optinforms-form1-name-field,#optinforms-form1-email-field{background:#fff;text-align:center;padding:8px!important;}
|
70 |
-
#optinforms-form1-button-container{display:block;float:none;width:100%;}
|
71 |
-
|
72 |
-
#optinforms-form2-title-container {display:block;width:100%;margin:0 0 10px;}
|
73 |
-
#optinforms-form2-title{text-align:center;}
|
74 |
-
#optinforms-form2-email-field-container {display:block;width:100%!important;}
|
75 |
-
#optinforms-form2-email-field{background:#fff;text-align:center;}
|
76 |
-
#optinforms-form2-button-container {display:block;width:100%;margin:0;}
|
77 |
-
#optinforms-form2-disclaimer-container {width:100%;margin:0;}
|
78 |
-
#optinforms-form2-disclaimer{margin:10px 0 0;text-align:center;}
|
79 |
-
|
80 |
-
#optinforms-form3-container-left,#optinforms-form3-container-right{display:block;width:100%;}
|
81 |
-
|
82 |
-
#optinforms-form5-container-left,#optinforms-form5-container-right{display:block;width:100%;}
|
83 |
-
#optinforms-form5-title{text-align:center;}
|
84 |
-
#optinforms-form5-name-field,#optinforms-form5-email-field{background:#fff;text-align:center;padding:8px!important;}
|
85 |
-
#optinforms-form5-subtitle, #optinforms-form5-disclaimer{text-align:center;}
|
86 |
-
}
|
87 |
-
@media only screen and (min-width: 480px) and (max-width: 767px) {
|
88 |
-
#optinforms-form1-name-field-container, #optinforms-form1-email-field-container{display:block;float:none;width:100%;margin:0 0 5px;}
|
89 |
-
#optinforms-form1-name-field,#optinforms-form1-email-field{background:#fff;text-align:center;padding:8px!important;}
|
90 |
-
#optinforms-form1-button-container{display:block;float:none;width:100%;}
|
91 |
-
|
92 |
-
#optinforms-form2-title-container {display:block;width:100%;margin:0 0 10px;}
|
93 |
-
#optinforms-form2-title{text-align:center;}
|
94 |
-
#optinforms-form2-email-field-container {display:block;width:100%!important;}
|
95 |
-
#optinforms-form2-email-field{background:#fff;text-align:center;}
|
96 |
-
#optinforms-form2-button-container {display:block;width:100%;margin:0;}
|
97 |
-
#optinforms-form2-disclaimer-container {width:100%;margin:0;}
|
98 |
-
#optinforms-form2-disclaimer{margin:10px 0 0;text-align:center;}
|
99 |
-
|
100 |
-
#optinforms-form3-container-left,#optinforms-form3-container-right{display:block;width:100%;}
|
101 |
-
|
102 |
-
#optinforms-form5-container-left,#optinforms-form5-container-right{display:block;width:100%;}
|
103 |
-
#optinforms-form5-title{text-align:center;}
|
104 |
-
#optinforms-form5-name-field,#optinforms-form5-email-field{background:#fff;text-align:center;padding:8px!important;}
|
105 |
-
#optinforms-form5-subtitle, #optinforms-form5-disclaimer{text-align:center;}
|
106 |
-
}
|
107 |
-
@media only screen and (min-width: 320px) and (max-width: 479px) {
|
108 |
-
#optinforms-form1-name-field-container, #optinforms-form1-email-field-container{display:block;float:none;width:100%;margin:0 0 5px;}
|
109 |
-
#optinforms-form1-name-field,#optinforms-form1-email-field{background:#fff;text-align:center;padding:8px!important;}
|
110 |
-
#optinforms-form1-button-container{display:block;float:none;width:100%;}
|
111 |
-
|
112 |
-
#optinforms-form2-title-container {display:block;width:100%;margin:0 0 10px;}
|
113 |
-
#optinforms-form2-title{text-align:center;}
|
114 |
-
#optinforms-form2-email-field-container {display:block;width:100%!important;}
|
115 |
-
#optinforms-form2-email-field{background:#fff;text-align:center;}
|
116 |
-
#optinforms-form2-button-container {display:block;width:100%;margin:0;}
|
117 |
-
#optinforms-form2-disclaimer-container {width:100%;margin:0;}
|
118 |
-
#optinforms-form2-disclaimer{margin:10px 0 0;text-align:center;}
|
119 |
-
|
120 |
-
#optinforms-form3-container-left,#optinforms-form3-container-right{display:block;width:100%;}
|
121 |
-
|
122 |
-
#optinforms-form5-container-left,#optinforms-form5-container-right{display:block;width:100%;}
|
123 |
-
#optinforms-form5-title{text-align:center;}
|
124 |
-
#optinforms-form5-name-field,#optinforms-form5-email-field{background:#fff;text-align:center;padding:8px!important;}
|
125 |
-
#optinforms-form5-subtitle, #optinforms-form5-disclaimer{text-align:center;}
|
126 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/images/bullet-toggle.png
DELETED
Binary file
|
trunk/images/close.png
DELETED
Binary file
|
trunk/images/form3-border-top.gif
DELETED
Binary file
|
trunk/images/icon-check.png
DELETED
Binary file
|
trunk/images/icon-email-01.png
DELETED
Binary file
|
trunk/images/icon-user-01.png
DELETED
Binary file
|
trunk/images/icon.png
DELETED
Binary file
|
trunk/images/logo.png
DELETED
Binary file
|
trunk/images/slider-next.png
DELETED
Binary file
|
trunk/images/slider-previous.png
DELETED
Binary file
|
trunk/images/support-aweber-001.png
DELETED
Binary file
|
trunk/images/support-aweber-002.png
DELETED
Binary file
|
trunk/images/support-aweber-003.png
DELETED
Binary file
|
trunk/images/support-aweber-004.png
DELETED
Binary file
|
trunk/images/support-convertkit-001.png
DELETED
Binary file
|
trunk/images/support-convertkit-002.png
DELETED
Binary file
|
trunk/images/support-convertkit-003.png
DELETED
Binary file
|
trunk/images/support-convertkit-004.png
DELETED
Binary file
|
trunk/images/support-convertkit-005.png
DELETED
Binary file
|
trunk/images/support-getresponse-001.png
DELETED
Binary file
|
trunk/images/support-getresponse-002.png
DELETED
Binary file
|
trunk/images/support-getresponse-003.png
DELETED
Binary file
|
trunk/images/support-icontact-001.png
DELETED
Binary file
|
trunk/images/support-icontact-002.png
DELETED
Binary file
|
trunk/images/support-icontact-003.png
DELETED
Binary file
|
trunk/images/support-icontact-004.png
DELETED
Binary file
|
trunk/images/support-icontact-005.png
DELETED
Binary file
|
trunk/images/support-icontact-006.png
DELETED
Binary file
|
trunk/images/support-icontact-007.png
DELETED
Binary file
|
trunk/images/support-icontact-008.png
DELETED
Binary file
|
trunk/images/support-icontact-009.png
DELETED
Binary file
|
trunk/images/support-interspire-001.png
DELETED
Binary file
|
trunk/images/support-interspire-002.png
DELETED
Binary file
|
trunk/images/support-interspire-003.png
DELETED
Binary file
|
trunk/images/support-interspire-004.png
DELETED
Binary file
|
trunk/images/support-interspire-005.png
DELETED
Binary file
|
trunk/images/support-interspire-006.png
DELETED
Binary file
|
trunk/images/support-interspire-007.png
DELETED
Binary file
|
trunk/images/support-interspire-008.png
DELETED
Binary file
|
trunk/images/support-interspire-009.png
DELETED
Binary file
|
trunk/images/support-interspire-010.png
DELETED
Binary file
|
trunk/images/support-interspire-011.png
DELETED
Binary file
|
trunk/images/support-madmimi-001.png
DELETED
Binary file
|
trunk/images/support-madmimi-002.png
DELETED
Binary file
|
trunk/images/support-madmimi-003.png
DELETED
Binary file
|
trunk/images/support-madmimi-004.png
DELETED
Binary file
|
trunk/images/support-madmimi-005.png
DELETED
Binary file
|
trunk/images/support-madmimi-006.png
DELETED
Binary file
|
trunk/images/support-madmimi-007.png
DELETED
Binary file
|
trunk/images/support-mailchimp-001.png
DELETED
Binary file
|
trunk/images/support-mailchimp-002.png
DELETED
Binary file
|
trunk/images/support-mailchimp-003.png
DELETED
Binary file
|
trunk/images/support-mailchimp-004.png
DELETED
Binary file
|
trunk/images/support-mailchimp-005.png
DELETED
Binary file
|
trunk/images/support-mailchimp-006.png
DELETED
Binary file
|
trunk/includes/functions-form-1.php
DELETED
@@ -1,498 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// Set global variables
|
4 |
-
$optinforms_form1_background = get_option('optinforms_form1_background');
|
5 |
-
$optinforms_form1_border = get_option('optinforms_form1_border');
|
6 |
-
$optinforms_form1_title = get_option('optinforms_form1_title');
|
7 |
-
$optinforms_form1_title_font = get_option('optinforms_form1_title_font');
|
8 |
-
$optinforms_form1_title_size = get_option('optinforms_form1_title_size');
|
9 |
-
$optinforms_form1_title_color = get_option('optinforms_form1_title_color');
|
10 |
-
$optinforms_form1_subtitle = get_option('optinforms_form1_subtitle');
|
11 |
-
$optinforms_form1_subtitle_font = get_option('optinforms_form1_subtitle_font');
|
12 |
-
$optinforms_form1_subtitle_size = get_option('optinforms_form1_subtitle_size');
|
13 |
-
$optinforms_form1_subtitle_color = get_option('optinforms_form1_subtitle_color');
|
14 |
-
$optinforms_form1_name_field = get_option('optinforms_form1_name_field');
|
15 |
-
$optinforms_form1_email_field = get_option('optinforms_form1_email_field');
|
16 |
-
$optinforms_form1_fields_font = get_option('optinforms_form1_fields_font');
|
17 |
-
$optinforms_form1_fields_size = get_option('optinforms_form1_fields_size');
|
18 |
-
$optinforms_form1_fields_color = get_option('optinforms_form1_fields_color');
|
19 |
-
$optinforms_form1_button_text = get_option('optinforms_form1_button_text');
|
20 |
-
$optinforms_form1_button_text_font = get_option('optinforms_form1_button_text_font');
|
21 |
-
$optinforms_form1_button_text_size = get_option('optinforms_form1_button_text_size');
|
22 |
-
$optinforms_form1_button_text_color = get_option('optinforms_form1_button_text_color');
|
23 |
-
$optinforms_form1_button_background = get_option('optinforms_form1_button_background');
|
24 |
-
$optinforms_form1_disclaimer = get_option('optinforms_form1_disclaimer');
|
25 |
-
$optinforms_form1_disclaimer_font = get_option('optinforms_form1_disclaimer_font');
|
26 |
-
$optinforms_form1_disclaimer_size = get_option('optinforms_form1_disclaimer_size');
|
27 |
-
$optinforms_form1_disclaimer_color = get_option('optinforms_form1_disclaimer_color');
|
28 |
-
$optinforms_form1_width = get_option('optinforms_form1_width');
|
29 |
-
$optinforms_form1_width_pixels = get_option('optinforms_form1_width_pixels');
|
30 |
-
$optinforms_form1_hide_title = get_option('optinforms_form1_hide_title');
|
31 |
-
$optinforms_form1_hide_subtitle = get_option('optinforms_form1_hide_subtitle');
|
32 |
-
$optinforms_form1_hide_name_field = get_option('optinforms_form1_hide_name_field');
|
33 |
-
$optinforms_form1_hide_disclaimer = get_option('optinforms_form1_hide_disclaimer');
|
34 |
-
$optinforms_form1_css = get_option('optinforms_form1_css');
|
35 |
-
|
36 |
-
|
37 |
-
// FORM1: default background color
|
38 |
-
function optinforms_form1_default_background() {
|
39 |
-
global $optinforms_form1_background;
|
40 |
-
if(empty($optinforms_form1_background)) {
|
41 |
-
$optinforms_form1_background = "#FFFFFF";
|
42 |
-
}
|
43 |
-
return $optinforms_form1_background;
|
44 |
-
}
|
45 |
-
|
46 |
-
// FORM1: default border color
|
47 |
-
function optinforms_form1_default_border() {
|
48 |
-
global $optinforms_form1_border;
|
49 |
-
if(empty($optinforms_form1_border)) {
|
50 |
-
$optinforms_form1_border = "#E0E0E0";
|
51 |
-
}
|
52 |
-
return $optinforms_form1_border;
|
53 |
-
}
|
54 |
-
|
55 |
-
// FORM1: default title
|
56 |
-
function optinforms_form1_default_title() {
|
57 |
-
global $optinforms_form1_title;
|
58 |
-
if(empty($optinforms_form1_title)) {
|
59 |
-
$optinforms_form1_title = __('Get Free Email Updates!', 'optin-forms');
|
60 |
-
}
|
61 |
-
return $optinforms_form1_title;
|
62 |
-
}
|
63 |
-
|
64 |
-
// FORM1: default title font
|
65 |
-
function optinforms_form1_default_title_font() {
|
66 |
-
global $optinforms_form1_title_font;
|
67 |
-
if(empty($optinforms_form1_title_font)) {
|
68 |
-
$optinforms_form1_title_font = "Damion";
|
69 |
-
}
|
70 |
-
return $optinforms_form1_title_font;
|
71 |
-
}
|
72 |
-
|
73 |
-
// FORM1: title font options
|
74 |
-
function optinforms_get_form1_title_font_options() {
|
75 |
-
global $optinforms_form1_title_font;
|
76 |
-
global $optinforms_included_fonts;
|
77 |
-
foreach ($optinforms_included_fonts as $key) {
|
78 |
-
echo "<option value=\"" . $key . "\"";
|
79 |
-
if($optinforms_form1_title_font == $key){
|
80 |
-
echo "selected=selected";
|
81 |
-
}
|
82 |
-
echo ">" . $key . "</option>";
|
83 |
-
}
|
84 |
-
}
|
85 |
-
|
86 |
-
// FORM1: default title font size
|
87 |
-
function optinforms_form1_default_title_size() {
|
88 |
-
global $optinforms_form1_title_size;
|
89 |
-
if(empty($optinforms_form1_title_size)) {
|
90 |
-
$optinforms_form1_title_size = "36px";
|
91 |
-
}
|
92 |
-
return $optinforms_form1_title_size;
|
93 |
-
}
|
94 |
-
|
95 |
-
// FORM1: title font size options
|
96 |
-
function optinforms_get_form1_title_size_options() {
|
97 |
-
global $optinforms_form1_title_size;
|
98 |
-
foreach (range(10, 72) as $number) {
|
99 |
-
echo "<option value=\"" . $number . "px\"";
|
100 |
-
if($optinforms_form1_title_size == $number . "px") {
|
101 |
-
echo "selected=selected";
|
102 |
-
}
|
103 |
-
echo">" . $number . "px</option>";
|
104 |
-
}
|
105 |
-
}
|
106 |
-
|
107 |
-
// FORM1: default title color
|
108 |
-
function optinforms_form1_default_title_color() {
|
109 |
-
global $optinforms_form1_title_color;
|
110 |
-
if(empty($optinforms_form1_title_color)) {
|
111 |
-
$optinforms_form1_title_color = "#eb432c";
|
112 |
-
}
|
113 |
-
return $optinforms_form1_title_color;
|
114 |
-
}
|
115 |
-
|
116 |
-
// FORM1: default subtitle
|
117 |
-
function optinforms_form1_default_subtitle() {
|
118 |
-
global $optinforms_form1_subtitle;
|
119 |
-
if(empty($optinforms_form1_subtitle)) {
|
120 |
-
$optinforms_form1_subtitle = __('Signup now and receive an email once I publish new content.', 'optin-forms');
|
121 |
-
}
|
122 |
-
return $optinforms_form1_subtitle;
|
123 |
-
}
|
124 |
-
|
125 |
-
// FORM1: default subtitle font
|
126 |
-
function optinforms_form1_default_subtitle_font() {
|
127 |
-
global $optinforms_form1_subtitle_font;
|
128 |
-
if(empty($optinforms_form1_subtitle_font)) {
|
129 |
-
$optinforms_form1_subtitle_font = "Arial";
|
130 |
-
}
|
131 |
-
return $optinforms_form1_subtitle_font;
|
132 |
-
}
|
133 |
-
|
134 |
-
// FORM1: subtitle font options
|
135 |
-
function optinforms_get_form1_subtitle_font_options() {
|
136 |
-
global $optinforms_form1_subtitle_font;
|
137 |
-
global $optinforms_included_fonts;
|
138 |
-
foreach ($optinforms_included_fonts as $key) {
|
139 |
-
echo "<option value=\"" . $key . "\"";
|
140 |
-
if($optinforms_form1_subtitle_font == $key){
|
141 |
-
echo "selected=selected";
|
142 |
-
}
|
143 |
-
echo ">" . $key . "</option>";
|
144 |
-
}
|
145 |
-
}
|
146 |
-
|
147 |
-
// FORM1: default subtitle font size
|
148 |
-
function optinforms_form1_default_subtitle_size() {
|
149 |
-
global $optinforms_form1_subtitle_size;
|
150 |
-
if(empty($optinforms_form1_subtitle_size)) {
|
151 |
-
$optinforms_form1_subtitle_size = "16px";
|
152 |
-
}
|
153 |
-
return $optinforms_form1_subtitle_size;
|
154 |
-
}
|
155 |
-
|
156 |
-
// FORM1: subtitle font size options
|
157 |
-
function optinforms_get_form1_subtitle_size_options() {
|
158 |
-
global $optinforms_form1_subtitle_size;
|
159 |
-
foreach (range(10, 72) as $number) {
|
160 |
-
echo "<option value=\"" . $number . "px\"";
|
161 |
-
if($optinforms_form1_subtitle_size == $number . "px") {
|
162 |
-
echo "selected=selected";
|
163 |
-
}
|
164 |
-
echo">" . $number . "px</option>";
|
165 |
-
}
|
166 |
-
}
|
167 |
-
|
168 |
-
// FORM1: default subtitle color
|
169 |
-
function optinforms_form1_default_subtitle_color() {
|
170 |
-
global $optinforms_form1_subtitle_color;
|
171 |
-
if(empty($optinforms_form1_subtitle_color)) {
|
172 |
-
$optinforms_form1_subtitle_color = "#000000";
|
173 |
-
}
|
174 |
-
return $optinforms_form1_subtitle_color;
|
175 |
-
}
|
176 |
-
|
177 |
-
// FORM1: default name field
|
178 |
-
function optinforms_form1_default_name_field() {
|
179 |
-
global $optinforms_form1_name_field;
|
180 |
-
if(empty($optinforms_form1_name_field)) {
|
181 |
-
$optinforms_form1_name_field = __('Enter Your Name', 'optin-forms');
|
182 |
-
}
|
183 |
-
return $optinforms_form1_name_field;
|
184 |
-
}
|
185 |
-
|
186 |
-
// FORM1: default email field
|
187 |
-
function optinforms_form1_default_email_field() {
|
188 |
-
global $optinforms_form1_email_field;
|
189 |
-
if(empty($optinforms_form1_email_field)) {
|
190 |
-
$optinforms_form1_email_field = __('Enter Your Email Address', 'optin-forms');
|
191 |
-
}
|
192 |
-
return $optinforms_form1_email_field;
|
193 |
-
}
|
194 |
-
|
195 |
-
// FORM1: default email fields font
|
196 |
-
function optinforms_form1_default_fields_font() {
|
197 |
-
global $optinforms_form1_fields_font;
|
198 |
-
if(empty($optinforms_form1_fields_font)) {
|
199 |
-
$optinforms_form1_fields_font = "Arial, Helvetica, sans-serif";
|
200 |
-
}
|
201 |
-
return $optinforms_form1_fields_font;
|
202 |
-
}
|
203 |
-
|
204 |
-
// FORM1: email fields font options
|
205 |
-
function optinforms_get_form1_fields_font_options() {
|
206 |
-
global $optinforms_form1_fields_font;
|
207 |
-
global $optinforms_included_fonts_simple;
|
208 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
209 |
-
echo "<option value=\"" . $key . "\"";
|
210 |
-
if($optinforms_form1_fields_font == $key){
|
211 |
-
echo "selected=selected";
|
212 |
-
}
|
213 |
-
echo ">" . $key . "</option>";
|
214 |
-
}
|
215 |
-
}
|
216 |
-
|
217 |
-
// FORM1: email fields font size
|
218 |
-
function optinforms_form1_default_fields_size() {
|
219 |
-
global $optinforms_form1_fields_size;
|
220 |
-
if(empty($optinforms_form1_fields_size)) {
|
221 |
-
$optinforms_form1_fields_size = "12px";
|
222 |
-
}
|
223 |
-
return $optinforms_form1_fields_size;
|
224 |
-
}
|
225 |
-
|
226 |
-
// FORM1: email fields font size options
|
227 |
-
function optinforms_get_form1_fields_size_options() {
|
228 |
-
global $optinforms_form1_fields_size;
|
229 |
-
foreach (range(10, 20) as $number) {
|
230 |
-
echo "<option value=\"" . $number . "px\"";
|
231 |
-
if($optinforms_form1_fields_size == $number . "px") {
|
232 |
-
echo "selected=selected";
|
233 |
-
}
|
234 |
-
echo">" . $number . "px</option>";
|
235 |
-
}
|
236 |
-
}
|
237 |
-
|
238 |
-
// FORM1: default fields color
|
239 |
-
function optinforms_form1_default_fields_color() {
|
240 |
-
global $optinforms_form1_fields_color;
|
241 |
-
if(empty($optinforms_form1_fields_color)) {
|
242 |
-
$optinforms_form1_fields_color = "#666666";
|
243 |
-
}
|
244 |
-
return $optinforms_form1_fields_color;
|
245 |
-
}
|
246 |
-
|
247 |
-
// FORM1: default button text
|
248 |
-
function optinforms_form1_default_button_text() {
|
249 |
-
global $optinforms_form1_button_text;
|
250 |
-
if(empty($optinforms_form1_button_text)) {
|
251 |
-
$optinforms_form1_button_text = __('SIGN UP', 'optin-forms');
|
252 |
-
}
|
253 |
-
return $optinforms_form1_button_text;
|
254 |
-
}
|
255 |
-
|
256 |
-
// FORM1: default button text font
|
257 |
-
function optinforms_form1_default_button_text_font() {
|
258 |
-
global $optinforms_form1_button_text_font;
|
259 |
-
if(empty($optinforms_form1_button_text_font)) {
|
260 |
-
$optinforms_form1_button_text_font = "Arial, Helvetica, sans-serif";
|
261 |
-
}
|
262 |
-
return $optinforms_form1_button_text_font;
|
263 |
-
}
|
264 |
-
|
265 |
-
// FORM1: button text font options
|
266 |
-
function optinforms_get_form1_button_text_font_options() {
|
267 |
-
global $optinforms_form1_button_text_font;
|
268 |
-
global $optinforms_included_fonts_simple;
|
269 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
270 |
-
echo "<option value=\"" . $key . "\"";
|
271 |
-
if($optinforms_form1_button_text_font == $key){
|
272 |
-
echo "selected=selected";
|
273 |
-
}
|
274 |
-
echo ">" . $key . "</option>";
|
275 |
-
}
|
276 |
-
}
|
277 |
-
|
278 |
-
// FORM1: button text font size
|
279 |
-
function optinforms_form1_default_button_text_size() {
|
280 |
-
global $optinforms_form1_button_text_size;
|
281 |
-
if(empty($optinforms_form1_button_text_size)) {
|
282 |
-
$optinforms_form1_button_text_size = "14px";
|
283 |
-
}
|
284 |
-
return $optinforms_form1_button_text_size;
|
285 |
-
}
|
286 |
-
|
287 |
-
// FORM1: button text font size options
|
288 |
-
function optinforms_get_form1_button_text_size_options() {
|
289 |
-
global $optinforms_form1_button_text_size;
|
290 |
-
foreach (range(10, 20) as $number) {
|
291 |
-
echo "<option value=\"" . $number . "px\"";
|
292 |
-
if($optinforms_form1_button_text_size == $number . "px") {
|
293 |
-
echo "selected=selected";
|
294 |
-
}
|
295 |
-
echo">" . $number . "px</option>";
|
296 |
-
}
|
297 |
-
}
|
298 |
-
|
299 |
-
// FORM1: default button text color
|
300 |
-
function optinforms_form1_default_button_text_color() {
|
301 |
-
global $optinforms_form1_button_text_color;
|
302 |
-
if(empty($optinforms_form1_button_text_color)) {
|
303 |
-
$optinforms_form1_button_text_color = "#FFFFFF";
|
304 |
-
}
|
305 |
-
return $optinforms_form1_button_text_color;
|
306 |
-
}
|
307 |
-
|
308 |
-
// FORM1: default button background color
|
309 |
-
function optinforms_form1_default_button_background() {
|
310 |
-
global $optinforms_form1_button_background;
|
311 |
-
if(empty($optinforms_form1_button_background)) {
|
312 |
-
$optinforms_form1_button_background = "#20A64C";
|
313 |
-
}
|
314 |
-
return $optinforms_form1_button_background;
|
315 |
-
}
|
316 |
-
|
317 |
-
// FORM1: default disclaimer
|
318 |
-
function optinforms_form1_default_disclaimer() {
|
319 |
-
global $optinforms_form1_disclaimer;
|
320 |
-
if(empty($optinforms_form1_disclaimer)) {
|
321 |
-
$optinforms_form1_disclaimer = __('I will never give away, trade or sell your email address. You can unsubscribe at any time.', 'optin-forms');
|
322 |
-
}
|
323 |
-
return $optinforms_form1_disclaimer;
|
324 |
-
}
|
325 |
-
|
326 |
-
// FORM1: default disclaimer font
|
327 |
-
function optinforms_form1_default_disclaimer_font() {
|
328 |
-
global $optinforms_form1_disclaimer_font;
|
329 |
-
if(empty($optinforms_form1_disclaimer_font)) {
|
330 |
-
$optinforms_form1_disclaimer_font = "Arial, Helvetica, sans-serif";
|
331 |
-
}
|
332 |
-
return $optinforms_form1_disclaimer_font;
|
333 |
-
}
|
334 |
-
|
335 |
-
// FORM1: disclaimer font options
|
336 |
-
function optinforms_get_form1_disclaimer_font_options() {
|
337 |
-
global $optinforms_form1_disclaimer_font;
|
338 |
-
global $optinforms_included_fonts_simple;
|
339 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
340 |
-
echo "<option value=\"" . $key . "\"";
|
341 |
-
if($optinforms_form1_disclaimer_font == $key){
|
342 |
-
echo "selected=selected";
|
343 |
-
}
|
344 |
-
echo ">" . $key . "</option>";
|
345 |
-
}
|
346 |
-
}
|
347 |
-
|
348 |
-
// FORM1: disclaimer font size
|
349 |
-
function optinforms_form1_default_disclaimer_size() {
|
350 |
-
global $optinforms_form1_disclaimer_size;
|
351 |
-
if(empty($optinforms_form1_disclaimer_size)) {
|
352 |
-
$optinforms_form1_disclaimer_size = "12px";
|
353 |
-
}
|
354 |
-
return $optinforms_form1_disclaimer_size;
|
355 |
-
}
|
356 |
-
|
357 |
-
// FORM1: disclaimer font size options
|
358 |
-
function optinforms_get_form1_disclaimer_size_options() {
|
359 |
-
global $optinforms_form1_disclaimer_size;
|
360 |
-
foreach (range(10, 20) as $number) {
|
361 |
-
echo "<option value=\"" . $number . "px\"";
|
362 |
-
if($optinforms_form1_disclaimer_size == $number . "px") {
|
363 |
-
echo "selected=selected";
|
364 |
-
}
|
365 |
-
echo">" . $number . "px</option>";
|
366 |
-
}
|
367 |
-
}
|
368 |
-
|
369 |
-
// FORM1: default disclaimer color
|
370 |
-
function optinforms_form1_default_disclaimer_color() {
|
371 |
-
global $optinforms_form1_disclaimer_color;
|
372 |
-
if(empty($optinforms_form1_disclaimer_color)) {
|
373 |
-
$optinforms_form1_disclaimer_color = "#666666";
|
374 |
-
}
|
375 |
-
return $optinforms_form1_disclaimer_color;
|
376 |
-
}
|
377 |
-
|
378 |
-
// FORM1: default width
|
379 |
-
function optinforms_form1_default_width() {
|
380 |
-
global $optinforms_form1_width;
|
381 |
-
if(empty($optinforms_form1_width)) {
|
382 |
-
$optinforms_form1_width = 0;
|
383 |
-
}
|
384 |
-
}
|
385 |
-
|
386 |
-
// FORM1: 100% width checked
|
387 |
-
function optinforms_form1_checked_width_100() {
|
388 |
-
global $optinforms_form1_width;
|
389 |
-
if($optinforms_form1_width == 0) {
|
390 |
-
echo "checked=\"checked\"";
|
391 |
-
}
|
392 |
-
}
|
393 |
-
|
394 |
-
// FORM1: fixed width checked
|
395 |
-
function optinforms_form1_checked_width_fixed() {
|
396 |
-
global $optinforms_form1_width;
|
397 |
-
if($optinforms_form1_width == 1) {
|
398 |
-
echo "checked=\"checked\"";
|
399 |
-
}
|
400 |
-
}
|
401 |
-
|
402 |
-
// FORM1: fixed width disabled if width is 100%
|
403 |
-
function optinforms_form1_disabled_width_pixels() {
|
404 |
-
global $optinforms_form1_width;
|
405 |
-
if($optinforms_form1_width == 0) {
|
406 |
-
echo "disabled=\"disabled\"";
|
407 |
-
}
|
408 |
-
}
|
409 |
-
|
410 |
-
// FORM1: default width fixed
|
411 |
-
function optinforms_form1_default_width_pixels() {
|
412 |
-
global $optinforms_form1_width_pixels;
|
413 |
-
if(empty($optinforms_form1_width_pixels)) {
|
414 |
-
$optinforms_form1_width_pixels = "700";
|
415 |
-
}
|
416 |
-
return $optinforms_form1_width_pixels;
|
417 |
-
}
|
418 |
-
|
419 |
-
// FORM1: default width fixed
|
420 |
-
function optinforms_form1_get_width() {
|
421 |
-
global $optinforms_form1_width;
|
422 |
-
if($optinforms_form1_width == 0) {
|
423 |
-
// do nothing
|
424 |
-
}
|
425 |
-
elseif($optinforms_form1_width == 1) {
|
426 |
-
return "style=\"width:" . optinforms_form1_default_width_pixels() . "px\"";
|
427 |
-
}
|
428 |
-
}
|
429 |
-
|
430 |
-
// FORM1: hide the title
|
431 |
-
function optinforms_form1_hide_title() {
|
432 |
-
global $optinforms_form1_hide_title;
|
433 |
-
return $optinforms_form1_hide_title;
|
434 |
-
}
|
435 |
-
|
436 |
-
// FORM1: hide the title - convert to CSS
|
437 |
-
function optinforms_form1_hide_title_css() {
|
438 |
-
global $optinforms_form1_hide_title;
|
439 |
-
if($optinforms_form1_hide_title == 1) {
|
440 |
-
return "#optinforms-form1-title{display:none;}";
|
441 |
-
}
|
442 |
-
}
|
443 |
-
|
444 |
-
// FORM1: hide the subtitle
|
445 |
-
function optinforms_form1_hide_subtitle() {
|
446 |
-
global $optinforms_form1_hide_subtitle;
|
447 |
-
return $optinforms_form1_hide_subtitle;
|
448 |
-
}
|
449 |
-
|
450 |
-
// FORM1: hide the subtitle - convert to CSS
|
451 |
-
function optinforms_form1_hide_subtitle_css() {
|
452 |
-
global $optinforms_form1_hide_subtitle;
|
453 |
-
if($optinforms_form1_hide_subtitle == 1) {
|
454 |
-
return "#optinforms-form1-subtitle{display:none;}";
|
455 |
-
}
|
456 |
-
}
|
457 |
-
|
458 |
-
// FORM1: hide the name field
|
459 |
-
function optinforms_form1_hide_name_field() {
|
460 |
-
global $optinforms_form1_hide_name_field;
|
461 |
-
return $optinforms_form1_hide_name_field;
|
462 |
-
}
|
463 |
-
|
464 |
-
// FORM1: hide the name field - convert to CSS
|
465 |
-
function optinforms_form1_hide_name_field_css() {
|
466 |
-
global $optinforms_form1_hide_name_field;
|
467 |
-
if($optinforms_form1_hide_name_field == 1) {
|
468 |
-
return "#optinforms-form1-name-field-container{display:none;}#optinforms-form1-email-field-container{width:78%;}";
|
469 |
-
}
|
470 |
-
}
|
471 |
-
|
472 |
-
// FORM1: hide the disclaimer
|
473 |
-
function optinforms_form1_hide_disclaimer() {
|
474 |
-
global $optinforms_form1_hide_disclaimer;
|
475 |
-
return $optinforms_form1_hide_disclaimer;
|
476 |
-
}
|
477 |
-
|
478 |
-
// FORM1: hide the disclaimer - convert to CSS
|
479 |
-
function optinforms_form1_hide_disclaimer_css() {
|
480 |
-
global $optinforms_form1_hide_disclaimer;
|
481 |
-
if($optinforms_form1_hide_disclaimer == 1) {
|
482 |
-
return "#optinforms-form1-disclaimer{display:none;}";
|
483 |
-
}
|
484 |
-
}
|
485 |
-
|
486 |
-
// FORM1: get our custom CSS
|
487 |
-
function optinforms_form1_css() {
|
488 |
-
global $optinforms_form1_css;
|
489 |
-
return $optinforms_form1_css;
|
490 |
-
}
|
491 |
-
|
492 |
-
// FORM1: advanced styling options
|
493 |
-
function optinforms_form1_add_custom_css() {
|
494 |
-
global $optinforms_form1_css;
|
495 |
-
return "<style type='text/css'>" . optinforms_form1_hide_title_css() . optinforms_form1_hide_subtitle_css() . optinforms_form1_hide_name_field_css() . optinforms_form1_hide_disclaimer_css() . $optinforms_form1_css . "</style>";
|
496 |
-
}
|
497 |
-
|
498 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/functions-form-2.php
DELETED
@@ -1,397 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// Set global variables
|
4 |
-
$optinforms_form2_background = get_option('optinforms_form2_background');
|
5 |
-
$optinforms_form2_title = get_option('optinforms_form2_title');
|
6 |
-
$optinforms_form2_title_font = get_option('optinforms_form2_title_font');
|
7 |
-
$optinforms_form2_title_size = get_option('optinforms_form2_title_size');
|
8 |
-
$optinforms_form2_title_color = get_option('optinforms_form2_title_color');
|
9 |
-
$optinforms_form2_email_field = get_option('optinforms_form2_email_field');
|
10 |
-
$optinforms_form2_fields_font = get_option('optinforms_form2_fields_font');
|
11 |
-
$optinforms_form2_fields_size = get_option('optinforms_form2_fields_size');
|
12 |
-
$optinforms_form2_fields_color = get_option('optinforms_form2_fields_color');
|
13 |
-
$optinforms_form2_button_text = get_option('optinforms_form2_button_text');
|
14 |
-
$optinforms_form2_button_text_font = get_option('optinforms_form2_button_text_font');
|
15 |
-
$optinforms_form2_button_text_size = get_option('optinforms_form2_button_text_size');
|
16 |
-
$optinforms_form2_button_text_color = get_option('optinforms_form2_button_text_color');
|
17 |
-
$optinforms_form2_button_background = get_option('optinforms_form2_button_background');
|
18 |
-
$optinforms_form2_disclaimer = get_option('optinforms_form2_disclaimer');
|
19 |
-
$optinforms_form2_disclaimer_font = get_option('optinforms_form2_disclaimer_font');
|
20 |
-
$optinforms_form2_disclaimer_size = get_option('optinforms_form2_disclaimer_size');
|
21 |
-
$optinforms_form2_disclaimer_color = get_option('optinforms_form2_disclaimer_color');
|
22 |
-
$optinforms_form2_width = get_option('optinforms_form2_width');
|
23 |
-
$optinforms_form2_width_pixels = get_option('optinforms_form2_width_pixels');
|
24 |
-
$optinforms_form2_hide_title = get_option('optinforms_form2_hide_title');
|
25 |
-
$optinforms_form2_hide_disclaimer = get_option('optinforms_form2_hide_disclaimer');
|
26 |
-
$optinforms_form2_css = get_option('optinforms_form2_css');
|
27 |
-
|
28 |
-
|
29 |
-
// FORM2: default background color
|
30 |
-
function optinforms_form2_default_background() {
|
31 |
-
global $optinforms_form2_background;
|
32 |
-
if(empty($optinforms_form2_background)) {
|
33 |
-
$optinforms_form2_background = "#266d7c";
|
34 |
-
}
|
35 |
-
return $optinforms_form2_background;
|
36 |
-
}
|
37 |
-
|
38 |
-
// FORM2: default title
|
39 |
-
function optinforms_form2_default_title() {
|
40 |
-
global $optinforms_form2_title;
|
41 |
-
if(empty($optinforms_form2_title)) {
|
42 |
-
$optinforms_form2_title = __('Receive Updates', 'optin-forms');
|
43 |
-
}
|
44 |
-
return $optinforms_form2_title;
|
45 |
-
}
|
46 |
-
|
47 |
-
// FORM2: default title font
|
48 |
-
function optinforms_form2_default_title_font() {
|
49 |
-
global $optinforms_form2_title_font;
|
50 |
-
if(empty($optinforms_form2_title_font)) {
|
51 |
-
$optinforms_form2_title_font = "Pacifico";
|
52 |
-
}
|
53 |
-
return $optinforms_form2_title_font;
|
54 |
-
}
|
55 |
-
|
56 |
-
// FORM2: title font options
|
57 |
-
function optinforms_get_form2_title_font_options() {
|
58 |
-
global $optinforms_form2_title_font;
|
59 |
-
global $optinforms_included_fonts;
|
60 |
-
foreach ($optinforms_included_fonts as $key) {
|
61 |
-
echo "<option value=\"" . $key . "\"";
|
62 |
-
if($optinforms_form2_title_font == $key){
|
63 |
-
echo "selected=selected";
|
64 |
-
}
|
65 |
-
echo ">" . $key . "</option>";
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
// FORM2: default title font size
|
70 |
-
function optinforms_form2_default_title_size() {
|
71 |
-
global $optinforms_form2_title_size;
|
72 |
-
if(empty($optinforms_form2_title_size)) {
|
73 |
-
$optinforms_form2_title_size = "28px";
|
74 |
-
}
|
75 |
-
return $optinforms_form2_title_size;
|
76 |
-
}
|
77 |
-
|
78 |
-
// FORM2: title font size options
|
79 |
-
function optinforms_get_form2_title_size_options() {
|
80 |
-
global $optinforms_form2_title_size;
|
81 |
-
foreach (range(10, 72) as $number) {
|
82 |
-
echo "<option value=\"" . $number . "px\"";
|
83 |
-
if($optinforms_form2_title_size == $number . "px") {
|
84 |
-
echo "selected=selected";
|
85 |
-
}
|
86 |
-
echo">" . $number . "px</option>";
|
87 |
-
}
|
88 |
-
}
|
89 |
-
|
90 |
-
// FORM2: default title color
|
91 |
-
function optinforms_form2_default_title_color() {
|
92 |
-
global $optinforms_form2_title_color;
|
93 |
-
if(empty($optinforms_form2_title_color)) {
|
94 |
-
$optinforms_form2_title_color = "#ffffff";
|
95 |
-
}
|
96 |
-
return $optinforms_form2_title_color;
|
97 |
-
}
|
98 |
-
|
99 |
-
// FORM2: default email field
|
100 |
-
function optinforms_form2_default_email_field() {
|
101 |
-
global $optinforms_form2_email_field;
|
102 |
-
if(empty($optinforms_form2_email_field)) {
|
103 |
-
$optinforms_form2_email_field = __('Enter Your Email Address', 'optin-forms');
|
104 |
-
}
|
105 |
-
return $optinforms_form2_email_field;
|
106 |
-
}
|
107 |
-
|
108 |
-
// FORM2: default email fields font
|
109 |
-
function optinforms_form2_default_fields_font() {
|
110 |
-
global $optinforms_form2_fields_font;
|
111 |
-
if(empty($optinforms_form2_fields_font)) {
|
112 |
-
$optinforms_form2_fields_font = "Arial, Helvetica, sans-serif";
|
113 |
-
}
|
114 |
-
return $optinforms_form2_fields_font;
|
115 |
-
}
|
116 |
-
|
117 |
-
// FORM2: email fields font options
|
118 |
-
function optinforms_get_form2_fields_font_options() {
|
119 |
-
global $optinforms_form2_fields_font;
|
120 |
-
global $optinforms_included_fonts_simple;
|
121 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
122 |
-
echo "<option value=\"" . $key . "\"";
|
123 |
-
if($optinforms_form2_fields_font == $key){
|
124 |
-
echo "selected=selected";
|
125 |
-
}
|
126 |
-
echo ">" . $key . "</option>";
|
127 |
-
}
|
128 |
-
}
|
129 |
-
|
130 |
-
// FORM2: email fields font size
|
131 |
-
function optinforms_form2_default_fields_size() {
|
132 |
-
global $optinforms_form2_fields_size;
|
133 |
-
if(empty($optinforms_form2_fields_size)) {
|
134 |
-
$optinforms_form2_fields_size = "12px";
|
135 |
-
}
|
136 |
-
return $optinforms_form2_fields_size;
|
137 |
-
}
|
138 |
-
|
139 |
-
// FORM2: email fields font size options
|
140 |
-
function optinforms_get_form2_fields_size_options() {
|
141 |
-
global $optinforms_form2_fields_size;
|
142 |
-
foreach (range(10, 20) as $number) {
|
143 |
-
echo "<option value=\"" . $number . "px\"";
|
144 |
-
if($optinforms_form2_fields_size == $number . "px") {
|
145 |
-
echo "selected=selected";
|
146 |
-
}
|
147 |
-
echo">" . $number . "px</option>";
|
148 |
-
}
|
149 |
-
}
|
150 |
-
|
151 |
-
// FORM2: email fields color
|
152 |
-
function optinforms_form2_default_fields_color() {
|
153 |
-
global $optinforms_form2_fields_color;
|
154 |
-
if(empty($optinforms_form2_fields_color)) {
|
155 |
-
$optinforms_form2_fields_color = "#000000";
|
156 |
-
}
|
157 |
-
return $optinforms_form2_fields_color;
|
158 |
-
}
|
159 |
-
|
160 |
-
// FORM2: default button text
|
161 |
-
function optinforms_form2_default_button_text() {
|
162 |
-
global $optinforms_form2_button_text;
|
163 |
-
if(empty($optinforms_form2_button_text)) {
|
164 |
-
$optinforms_form2_button_text = __('Sign Up', 'optin-forms');
|
165 |
-
}
|
166 |
-
return $optinforms_form2_button_text;
|
167 |
-
}
|
168 |
-
|
169 |
-
// FORM2: default button text font
|
170 |
-
function optinforms_form2_default_button_text_font() {
|
171 |
-
global $optinforms_form2_button_text_font;
|
172 |
-
if(empty($optinforms_form2_button_text_font)) {
|
173 |
-
$optinforms_form2_button_text_font = "Arial, Helvetica, sans-serif";
|
174 |
-
}
|
175 |
-
return $optinforms_form2_button_text_font;
|
176 |
-
}
|
177 |
-
|
178 |
-
// FORM2: button text font options
|
179 |
-
function optinforms_get_form2_button_text_font_options() {
|
180 |
-
global $optinforms_form2_button_text_font;
|
181 |
-
global $optinforms_included_fonts_simple;
|
182 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
183 |
-
echo "<option value=\"" . $key . "\"";
|
184 |
-
if($optinforms_form2_button_text_font == $key){
|
185 |
-
echo "selected=selected";
|
186 |
-
}
|
187 |
-
echo ">" . $key . "</option>";
|
188 |
-
}
|
189 |
-
}
|
190 |
-
|
191 |
-
// FORM2: button text font size
|
192 |
-
function optinforms_form2_default_button_text_size() {
|
193 |
-
global $optinforms_form2_button_text_size;
|
194 |
-
if(empty($optinforms_form2_button_text_size)) {
|
195 |
-
$optinforms_form2_button_text_size = "14px";
|
196 |
-
}
|
197 |
-
return $optinforms_form2_button_text_size;
|
198 |
-
}
|
199 |
-
|
200 |
-
// FORM2: button text font size options
|
201 |
-
function optinforms_get_form2_button_text_size_options() {
|
202 |
-
global $optinforms_form2_button_text_size;
|
203 |
-
foreach (range(10, 20) as $number) {
|
204 |
-
echo "<option value=\"" . $number . "px\"";
|
205 |
-
if($optinforms_form2_button_text_size == $number . "px") {
|
206 |
-
echo "selected=selected";
|
207 |
-
}
|
208 |
-
echo">" . $number . "px</option>";
|
209 |
-
}
|
210 |
-
}
|
211 |
-
|
212 |
-
// FORM2: default button text color
|
213 |
-
function optinforms_form2_default_button_text_color() {
|
214 |
-
global $optinforms_form2_button_text_color;
|
215 |
-
if(empty($optinforms_form2_button_text_color)) {
|
216 |
-
$optinforms_form2_button_text_color = "#FFFFFF";
|
217 |
-
}
|
218 |
-
return $optinforms_form2_button_text_color;
|
219 |
-
}
|
220 |
-
|
221 |
-
// FORM2: default button background color
|
222 |
-
function optinforms_form2_default_button_background() {
|
223 |
-
global $optinforms_form2_button_background;
|
224 |
-
if(empty($optinforms_form2_button_background)) {
|
225 |
-
$optinforms_form2_button_background = "#49A3FE";
|
226 |
-
}
|
227 |
-
return $optinforms_form2_button_background;
|
228 |
-
}
|
229 |
-
|
230 |
-
// FORM2: default disclaimer
|
231 |
-
function optinforms_form2_default_disclaimer() {
|
232 |
-
global $optinforms_form2_disclaimer;
|
233 |
-
if(empty($optinforms_form2_disclaimer)) {
|
234 |
-
$optinforms_form2_disclaimer = __('No spam guarantee.', 'optin-forms');
|
235 |
-
}
|
236 |
-
return $optinforms_form2_disclaimer;
|
237 |
-
}
|
238 |
-
|
239 |
-
// FORM2: default disclaimer font
|
240 |
-
function optinforms_form2_default_disclaimer_font() {
|
241 |
-
global $optinforms_form2_disclaimer_font;
|
242 |
-
if(empty($optinforms_form2_disclaimer_font)) {
|
243 |
-
$optinforms_form2_disclaimer_font = "Arial, Helvetica, sans-serif";
|
244 |
-
}
|
245 |
-
return $optinforms_form2_disclaimer_font;
|
246 |
-
}
|
247 |
-
|
248 |
-
// FORM2: disclaimer font options
|
249 |
-
function optinforms_get_form2_disclaimer_font_options() {
|
250 |
-
global $optinforms_form2_disclaimer_font;
|
251 |
-
global $optinforms_included_fonts_simple;
|
252 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
253 |
-
echo "<option value=\"" . $key . "\"";
|
254 |
-
if($optinforms_form2_disclaimer_font == $key){
|
255 |
-
echo "selected=selected";
|
256 |
-
}
|
257 |
-
echo ">" . $key . "</option>";
|
258 |
-
}
|
259 |
-
}
|
260 |
-
|
261 |
-
// FORM2: disclaimer font size
|
262 |
-
function optinforms_form2_default_disclaimer_size() {
|
263 |
-
global $optinforms_form2_disclaimer_size;
|
264 |
-
if(empty($optinforms_form2_disclaimer_size)) {
|
265 |
-
$optinforms_form2_disclaimer_size = "11px";
|
266 |
-
}
|
267 |
-
return $optinforms_form2_disclaimer_size;
|
268 |
-
}
|
269 |
-
|
270 |
-
// FORM2: disclaimer font size options
|
271 |
-
function optinforms_get_form2_disclaimer_size_options() {
|
272 |
-
global $optinforms_form2_disclaimer_size;
|
273 |
-
foreach (range(10, 20) as $number) {
|
274 |
-
echo "<option value=\"" . $number . "px\"";
|
275 |
-
if($optinforms_form2_disclaimer_size == $number . "px") {
|
276 |
-
echo "selected=selected";
|
277 |
-
}
|
278 |
-
echo">" . $number . "px</option>";
|
279 |
-
}
|
280 |
-
}
|
281 |
-
|
282 |
-
// FORM2: default disclaimer color
|
283 |
-
function optinforms_form2_default_disclaimer_color() {
|
284 |
-
global $optinforms_form2_disclaimer_color;
|
285 |
-
if(empty($optinforms_form2_disclaimer_color)) {
|
286 |
-
$optinforms_form2_disclaimer_color = "#ffffff";
|
287 |
-
}
|
288 |
-
return $optinforms_form2_disclaimer_color;
|
289 |
-
}
|
290 |
-
|
291 |
-
// FORM2: default width
|
292 |
-
function optinforms_form2_default_width() {
|
293 |
-
global $optinforms_form2_width;
|
294 |
-
if(empty($optinforms_form2_width)) {
|
295 |
-
$optinforms_form2_width = 0;
|
296 |
-
}
|
297 |
-
}
|
298 |
-
|
299 |
-
// FORM2: 100% width checked
|
300 |
-
function optinforms_form2_checked_width_100() {
|
301 |
-
global $optinforms_form2_width;
|
302 |
-
if($optinforms_form2_width == 0) {
|
303 |
-
echo "checked=\"checked\"";
|
304 |
-
}
|
305 |
-
}
|
306 |
-
|
307 |
-
// FORM2: fixed width checked
|
308 |
-
function optinforms_form2_checked_width_fixed() {
|
309 |
-
global $optinforms_form2_width;
|
310 |
-
if($optinforms_form2_width == 1) {
|
311 |
-
echo "checked=\"checked\"";
|
312 |
-
}
|
313 |
-
}
|
314 |
-
|
315 |
-
// FORM2: fixed width disabled if width is 100%
|
316 |
-
function optinforms_form2_disabled_width_pixels() {
|
317 |
-
global $optinforms_form2_width;
|
318 |
-
if($optinforms_form2_width == 0) {
|
319 |
-
echo "disabled=\"disabled\"";
|
320 |
-
}
|
321 |
-
}
|
322 |
-
|
323 |
-
// FORM2: default width fixed
|
324 |
-
function optinforms_form2_default_width_pixels() {
|
325 |
-
global $optinforms_form2_width_pixels;
|
326 |
-
if(empty($optinforms_form2_width_pixels)) {
|
327 |
-
$optinforms_form2_width_pixels = "700";
|
328 |
-
}
|
329 |
-
return $optinforms_form2_width_pixels;
|
330 |
-
}
|
331 |
-
|
332 |
-
// FORM2: default width fixed
|
333 |
-
function optinforms_form2_get_width() {
|
334 |
-
global $optinforms_form2_width;
|
335 |
-
if($optinforms_form2_width == 0) {
|
336 |
-
// do nothing
|
337 |
-
}
|
338 |
-
elseif($optinforms_form2_width == 1) {
|
339 |
-
return "style=\"width:" . optinforms_form2_default_width_pixels() . "px\"";
|
340 |
-
}
|
341 |
-
}
|
342 |
-
|
343 |
-
// FORM2: hide the title
|
344 |
-
function optinforms_form2_hide_title() {
|
345 |
-
global $optinforms_form2_hide_title;
|
346 |
-
return $optinforms_form2_hide_title;
|
347 |
-
}
|
348 |
-
|
349 |
-
// FORM2: hide the title - convert to CSS
|
350 |
-
function optinforms_form2_hide_title_css() {
|
351 |
-
global $optinforms_form2_hide_title;
|
352 |
-
if($optinforms_form2_hide_title == 1) {
|
353 |
-
return "#optinforms-form2-title-container{display:none;}";
|
354 |
-
}
|
355 |
-
}
|
356 |
-
|
357 |
-
// FORM2: hide the disclaimer
|
358 |
-
function optinforms_form2_hide_disclaimer() {
|
359 |
-
global $optinforms_form2_hide_disclaimer;
|
360 |
-
return $optinforms_form2_hide_disclaimer;
|
361 |
-
}
|
362 |
-
|
363 |
-
// FORM2: hide the disclaimer - convert to CSS
|
364 |
-
function optinforms_form2_hide_disclaimer_css() {
|
365 |
-
global $optinforms_form2_hide_disclaimer;
|
366 |
-
if($optinforms_form2_hide_disclaimer == 1) {
|
367 |
-
return "#optinforms-form2-disclaimer-container{display:none;}";
|
368 |
-
}
|
369 |
-
}
|
370 |
-
|
371 |
-
// FORM2: if both title and disclaimer are hidden, make our email field wider
|
372 |
-
function optinforms_form2_hide_title_disclaimer_css() {
|
373 |
-
global $optinforms_form2_hide_title, $optinforms_form2_hide_disclaimer;
|
374 |
-
if(($optinforms_form2_hide_title == 1) && ($optinforms_form2_hide_disclaimer == 1)) {
|
375 |
-
return "#optinforms-form2-email-field-container{width:80%;}";
|
376 |
-
}
|
377 |
-
else if(($optinforms_form2_hide_title == 1)) {
|
378 |
-
return "#optinforms-form2-email-field-container{width:62%;}";
|
379 |
-
}
|
380 |
-
else if(($optinforms_form2_hide_disclaimer == 1)) {
|
381 |
-
return "#optinforms-form2-email-field-container{width:48%;}";
|
382 |
-
}
|
383 |
-
}
|
384 |
-
|
385 |
-
// FORM2: get our custom CSS
|
386 |
-
function optinforms_form2_css() {
|
387 |
-
global $optinforms_form2_css;
|
388 |
-
return $optinforms_form2_css;
|
389 |
-
}
|
390 |
-
|
391 |
-
// FORM2: advanced styling options
|
392 |
-
function optinforms_form2_add_custom_css() {
|
393 |
-
global $optinforms_form2_css;
|
394 |
-
return "<style type='text/css'>" . optinforms_form2_hide_title_css() . optinforms_form2_hide_disclaimer_css() . optinforms_form2_hide_title_disclaimer_css() . $optinforms_form2_css . "</style>";
|
395 |
-
}
|
396 |
-
|
397 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/functions-form-3.php
DELETED
@@ -1,416 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// Set global variables
|
4 |
-
$optinforms_form3_background = get_option('optinforms_form3_background');
|
5 |
-
$optinforms_form3_title = get_option('optinforms_form3_title');
|
6 |
-
$optinforms_form3_title_font = get_option('optinforms_form3_title_font');
|
7 |
-
$optinforms_form3_title_size = get_option('optinforms_form3_title_size');
|
8 |
-
$optinforms_form3_title_color = get_option('optinforms_form3_title_color');
|
9 |
-
$optinforms_form3_subtitle = get_option('optinforms_form3_subtitle');
|
10 |
-
$optinforms_form3_subtitle_font = get_option('optinforms_form3_subtitle_font');
|
11 |
-
$optinforms_form3_subtitle_size = get_option('optinforms_form3_subtitle_size');
|
12 |
-
$optinforms_form3_subtitle_color = get_option('optinforms_form3_subtitle_color');
|
13 |
-
$optinforms_form3_name_field = get_option('optinforms_form3_name_field');
|
14 |
-
$optinforms_form3_email_field = get_option('optinforms_form3_email_field');
|
15 |
-
$optinforms_form3_fields_font = get_option('optinforms_form3_fields_font');
|
16 |
-
$optinforms_form3_fields_size = get_option('optinforms_form3_fields_size');
|
17 |
-
$optinforms_form3_fields_color = get_option('optinforms_form3_fields_color');
|
18 |
-
$optinforms_form3_button_text = get_option('optinforms_form3_button_text');
|
19 |
-
$optinforms_form3_button_text_font = get_option('optinforms_form3_button_text_font');
|
20 |
-
$optinforms_form3_button_text_size = get_option('optinforms_form3_button_text_size');
|
21 |
-
$optinforms_form3_button_text_color = get_option('optinforms_form3_button_text_color');
|
22 |
-
$optinforms_form3_button_background = get_option('optinforms_form3_button_background');
|
23 |
-
$optinforms_form3_width = get_option('optinforms_form3_width');
|
24 |
-
$optinforms_form3_width_pixels = get_option('optinforms_form3_width_pixels');
|
25 |
-
$optinforms_form3_hide_title = get_option('optinforms_form3_hide_title');
|
26 |
-
$optinforms_form3_hide_subtitle = get_option('optinforms_form3_hide_subtitle');
|
27 |
-
$optinforms_form3_hide_name_field = get_option('optinforms_form3_hide_name_field');
|
28 |
-
$optinforms_form3_css = get_option('optinforms_form3_css');
|
29 |
-
|
30 |
-
|
31 |
-
// FORM3: default background color
|
32 |
-
function optinforms_form3_default_background() {
|
33 |
-
global $optinforms_form3_background;
|
34 |
-
if(empty($optinforms_form3_background)) {
|
35 |
-
$optinforms_form3_background = "#FFFFFF";
|
36 |
-
}
|
37 |
-
return $optinforms_form3_background;
|
38 |
-
}
|
39 |
-
|
40 |
-
// FORM3: default title
|
41 |
-
function optinforms_form3_default_title() {
|
42 |
-
global $optinforms_form3_title;
|
43 |
-
if(empty($optinforms_form3_title)) {
|
44 |
-
$optinforms_form3_title = __('Did you enjoy this article?', 'optin-forms');
|
45 |
-
}
|
46 |
-
return $optinforms_form3_title;
|
47 |
-
}
|
48 |
-
|
49 |
-
// FORM3: default title font
|
50 |
-
function optinforms_form3_default_title_font() {
|
51 |
-
global $optinforms_form3_title_font;
|
52 |
-
if(empty($optinforms_form3_title_font)) {
|
53 |
-
$optinforms_form3_title_font = "Droid Serif";
|
54 |
-
}
|
55 |
-
return $optinforms_form3_title_font;
|
56 |
-
}
|
57 |
-
|
58 |
-
// FORM3: title font options
|
59 |
-
function optinforms_get_form3_title_font_options() {
|
60 |
-
global $optinforms_form3_title_font;
|
61 |
-
global $optinforms_included_fonts;
|
62 |
-
foreach ($optinforms_included_fonts as $key) {
|
63 |
-
echo "<option value=\"" . $key . "\"";
|
64 |
-
if($optinforms_form3_title_font == $key){
|
65 |
-
echo "selected=selected";
|
66 |
-
}
|
67 |
-
echo ">" . $key . "</option>";
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
// FORM3: default title font size
|
72 |
-
function optinforms_form3_default_title_size() {
|
73 |
-
global $optinforms_form3_title_size;
|
74 |
-
if(empty($optinforms_form3_title_size)) {
|
75 |
-
$optinforms_form3_title_size = "28px";
|
76 |
-
}
|
77 |
-
return $optinforms_form3_title_size;
|
78 |
-
}
|
79 |
-
|
80 |
-
// FORM3: title font size options
|
81 |
-
function optinforms_get_form3_title_size_options() {
|
82 |
-
global $optinforms_form3_title_size;
|
83 |
-
foreach (range(10, 72) as $number) {
|
84 |
-
echo "<option value=\"" . $number . "px\"";
|
85 |
-
if($optinforms_form3_title_size == $number . "px") {
|
86 |
-
echo "selected=selected";
|
87 |
-
}
|
88 |
-
echo">" . $number . "px</option>";
|
89 |
-
}
|
90 |
-
}
|
91 |
-
|
92 |
-
// FORM3: default title color
|
93 |
-
function optinforms_form3_default_title_color() {
|
94 |
-
global $optinforms_form3_title_color;
|
95 |
-
if(empty($optinforms_form3_title_color)) {
|
96 |
-
$optinforms_form3_title_color = "#505050";
|
97 |
-
}
|
98 |
-
return $optinforms_form3_title_color;
|
99 |
-
}
|
100 |
-
|
101 |
-
// FORM3: default subtitle
|
102 |
-
function optinforms_form3_default_subtitle() {
|
103 |
-
global $optinforms_form3_subtitle;
|
104 |
-
if(empty($optinforms_form3_subtitle)) {
|
105 |
-
$optinforms_form3_subtitle = __('Signup today and receive free updates straight in your inbox. We will never share or sell your email address.', 'optin-forms');
|
106 |
-
}
|
107 |
-
return $optinforms_form3_subtitle;
|
108 |
-
}
|
109 |
-
|
110 |
-
// FORM3: default subtitle font
|
111 |
-
function optinforms_form3_default_subtitle_font() {
|
112 |
-
global $optinforms_form3_subtitle_font;
|
113 |
-
if(empty($optinforms_form3_subtitle_font)) {
|
114 |
-
$optinforms_form3_subtitle_font = "Arial";
|
115 |
-
}
|
116 |
-
return $optinforms_form3_subtitle_font;
|
117 |
-
}
|
118 |
-
|
119 |
-
// FORM3: subtitle font options
|
120 |
-
function optinforms_get_form3_subtitle_font_options() {
|
121 |
-
global $optinforms_form3_subtitle_font;
|
122 |
-
global $optinforms_included_fonts;
|
123 |
-
foreach ($optinforms_included_fonts as $key) {
|
124 |
-
echo "<option value=\"" . $key . "\"";
|
125 |
-
if($optinforms_form3_subtitle_font == $key){
|
126 |
-
echo "selected=selected";
|
127 |
-
}
|
128 |
-
echo ">" . $key . "</option>";
|
129 |
-
}
|
130 |
-
}
|
131 |
-
|
132 |
-
// FORM3: default subtitle font size
|
133 |
-
function optinforms_form3_default_subtitle_size() {
|
134 |
-
global $optinforms_form3_subtitle_size;
|
135 |
-
if(empty($optinforms_form3_subtitle_size)) {
|
136 |
-
$optinforms_form3_subtitle_size = "16px";
|
137 |
-
}
|
138 |
-
return $optinforms_form3_subtitle_size;
|
139 |
-
}
|
140 |
-
|
141 |
-
// FORM3: subtitle font size options
|
142 |
-
function optinforms_get_form3_subtitle_size_options() {
|
143 |
-
global $optinforms_form3_subtitle_size;
|
144 |
-
foreach (range(10, 24) as $number) {
|
145 |
-
echo "<option value=\"" . $number . "px\"";
|
146 |
-
if($optinforms_form3_subtitle_size == $number . "px") {
|
147 |
-
echo "selected=selected";
|
148 |
-
}
|
149 |
-
echo">" . $number . "px</option>";
|
150 |
-
}
|
151 |
-
}
|
152 |
-
|
153 |
-
// FORM3: default subtitle color
|
154 |
-
function optinforms_form3_default_subtitle_color() {
|
155 |
-
global $optinforms_form3_subtitle_color;
|
156 |
-
if(empty($optinforms_form3_subtitle_color)) {
|
157 |
-
$optinforms_form3_subtitle_color = "#000000";
|
158 |
-
}
|
159 |
-
return $optinforms_form3_subtitle_color;
|
160 |
-
}
|
161 |
-
|
162 |
-
// FORM3: default name field
|
163 |
-
function optinforms_form3_default_name_field() {
|
164 |
-
global $optinforms_form3_name_field;
|
165 |
-
if(empty($optinforms_form3_name_field)) {
|
166 |
-
$optinforms_form3_name_field = __('Your Name', 'optin-forms');
|
167 |
-
}
|
168 |
-
return $optinforms_form3_name_field;
|
169 |
-
}
|
170 |
-
|
171 |
-
// FORM3: default email field
|
172 |
-
function optinforms_form3_default_email_field() {
|
173 |
-
global $optinforms_form3_email_field;
|
174 |
-
if(empty($optinforms_form3_email_field)) {
|
175 |
-
$optinforms_form3_email_field = __('Your Email Address', 'optin-forms');
|
176 |
-
}
|
177 |
-
return $optinforms_form3_email_field;
|
178 |
-
}
|
179 |
-
|
180 |
-
// FORM3: default email fields font
|
181 |
-
function optinforms_form3_default_fields_font() {
|
182 |
-
global $optinforms_form3_fields_font;
|
183 |
-
if(empty($optinforms_form3_fields_font)) {
|
184 |
-
$optinforms_form3_fields_font = "Arial, Helvetica, sans-serif";
|
185 |
-
}
|
186 |
-
return $optinforms_form3_fields_font;
|
187 |
-
}
|
188 |
-
|
189 |
-
// FORM3: email fields font options
|
190 |
-
function optinforms_get_form3_fields_font_options() {
|
191 |
-
global $optinforms_form3_fields_font;
|
192 |
-
global $optinforms_included_fonts_simple;
|
193 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
194 |
-
echo "<option value=\"" . $key . "\"";
|
195 |
-
if($optinforms_form3_fields_font == $key){
|
196 |
-
echo "selected=selected";
|
197 |
-
}
|
198 |
-
echo ">" . $key . "</option>";
|
199 |
-
}
|
200 |
-
}
|
201 |
-
|
202 |
-
// FORM3: email fields font size
|
203 |
-
function optinforms_form3_default_fields_size() {
|
204 |
-
global $optinforms_form3_fields_size;
|
205 |
-
if(empty($optinforms_form3_fields_size)) {
|
206 |
-
$optinforms_form3_fields_size = "12px";
|
207 |
-
}
|
208 |
-
return $optinforms_form3_fields_size;
|
209 |
-
}
|
210 |
-
|
211 |
-
// FORM3: email fields font size options
|
212 |
-
function optinforms_get_form3_fields_size_options() {
|
213 |
-
global $optinforms_form3_fields_size;
|
214 |
-
foreach (range(10, 20) as $number) {
|
215 |
-
echo "<option value=\"" . $number . "px\"";
|
216 |
-
if($optinforms_form3_fields_size == $number . "px") {
|
217 |
-
echo "selected=selected";
|
218 |
-
}
|
219 |
-
echo">" . $number . "px</option>";
|
220 |
-
}
|
221 |
-
}
|
222 |
-
|
223 |
-
// FORM3: default fields color
|
224 |
-
function optinforms_form3_default_fields_color() {
|
225 |
-
global $optinforms_form3_fields_color;
|
226 |
-
if(empty($optinforms_form3_fields_color)) {
|
227 |
-
$optinforms_form3_fields_color = "#666666";
|
228 |
-
}
|
229 |
-
return $optinforms_form3_fields_color;
|
230 |
-
}
|
231 |
-
|
232 |
-
// FORM3: default button text
|
233 |
-
function optinforms_form3_default_button_text() {
|
234 |
-
global $optinforms_form3_button_text;
|
235 |
-
if(empty($optinforms_form3_button_text)) {
|
236 |
-
$optinforms_form3_button_text = __('Sign Up Today!', 'optin-forms');
|
237 |
-
}
|
238 |
-
return $optinforms_form3_button_text;
|
239 |
-
}
|
240 |
-
|
241 |
-
// FORM3: default button text font
|
242 |
-
function optinforms_form3_default_button_text_font() {
|
243 |
-
global $optinforms_form3_button_text_font;
|
244 |
-
if(empty($optinforms_form3_button_text_font)) {
|
245 |
-
$optinforms_form3_button_text_font = "Arial, Helvetica, sans-serif";
|
246 |
-
}
|
247 |
-
return $optinforms_form3_button_text_font;
|
248 |
-
}
|
249 |
-
|
250 |
-
// FORM3: button text font options
|
251 |
-
function optinforms_get_form3_button_text_font_options() {
|
252 |
-
global $optinforms_form3_button_text_font;
|
253 |
-
global $optinforms_included_fonts_simple;
|
254 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
255 |
-
echo "<option value=\"" . $key . "\"";
|
256 |
-
if($optinforms_form3_button_text_font == $key){
|
257 |
-
echo "selected=selected";
|
258 |
-
}
|
259 |
-
echo ">" . $key . "</option>";
|
260 |
-
}
|
261 |
-
}
|
262 |
-
|
263 |
-
// FORM3: button text font size
|
264 |
-
function optinforms_form3_default_button_text_size() {
|
265 |
-
global $optinforms_form3_button_text_size;
|
266 |
-
if(empty($optinforms_form3_button_text_size)) {
|
267 |
-
$optinforms_form3_button_text_size = "18px";
|
268 |
-
}
|
269 |
-
return $optinforms_form3_button_text_size;
|
270 |
-
}
|
271 |
-
|
272 |
-
// FORM3: button text font size options
|
273 |
-
function optinforms_get_form3_button_text_size_options() {
|
274 |
-
global $optinforms_form3_button_text_size;
|
275 |
-
foreach (range(10, 20) as $number) {
|
276 |
-
echo "<option value=\"" . $number . "px\"";
|
277 |
-
if($optinforms_form3_button_text_size == $number . "px") {
|
278 |
-
echo "selected=selected";
|
279 |
-
}
|
280 |
-
echo">" . $number . "px</option>";
|
281 |
-
}
|
282 |
-
}
|
283 |
-
|
284 |
-
// FORM3: default button text color
|
285 |
-
function optinforms_form3_default_button_text_color() {
|
286 |
-
global $optinforms_form3_button_text_color;
|
287 |
-
if(empty($optinforms_form3_button_text_color)) {
|
288 |
-
$optinforms_form3_button_text_color = "#FFFFFF";
|
289 |
-
}
|
290 |
-
return $optinforms_form3_button_text_color;
|
291 |
-
}
|
292 |
-
|
293 |
-
// FORM3: default button background color
|
294 |
-
function optinforms_form3_default_button_background() {
|
295 |
-
global $optinforms_form3_button_background;
|
296 |
-
if(empty($optinforms_form3_button_background)) {
|
297 |
-
$optinforms_form3_button_background = "#49A3FE";
|
298 |
-
}
|
299 |
-
return $optinforms_form3_button_background;
|
300 |
-
}
|
301 |
-
|
302 |
-
// FORM3: default width
|
303 |
-
function optinforms_form3_default_width() {
|
304 |
-
global $optinforms_form3_width;
|
305 |
-
if(empty($optinforms_form3_width)) {
|
306 |
-
$optinforms_form3_width = 0;
|
307 |
-
}
|
308 |
-
}
|
309 |
-
|
310 |
-
// FORM3: 100% width checked
|
311 |
-
function optinforms_form3_checked_width_100() {
|
312 |
-
global $optinforms_form3_width;
|
313 |
-
if($optinforms_form3_width == 0) {
|
314 |
-
echo "checked=\"checked\"";
|
315 |
-
}
|
316 |
-
}
|
317 |
-
|
318 |
-
// FORM3: fixed width checked
|
319 |
-
function optinforms_form3_checked_width_fixed() {
|
320 |
-
global $optinforms_form3_width;
|
321 |
-
if($optinforms_form3_width == 1) {
|
322 |
-
echo "checked=\"checked\"";
|
323 |
-
}
|
324 |
-
}
|
325 |
-
|
326 |
-
// FORM3: fixed width disabled if width is 100%
|
327 |
-
function optinforms_form3_disabled_width_pixels() {
|
328 |
-
global $optinforms_form3_width;
|
329 |
-
if($optinforms_form3_width == 0) {
|
330 |
-
echo "disabled=\"disabled\"";
|
331 |
-
}
|
332 |
-
}
|
333 |
-
|
334 |
-
// FORM3: default width fixed
|
335 |
-
function optinforms_form3_default_width_pixels() {
|
336 |
-
global $optinforms_form3_width_pixels;
|
337 |
-
if(empty($optinforms_form3_width_pixels)) {
|
338 |
-
$optinforms_form3_width_pixels = "700";
|
339 |
-
}
|
340 |
-
return $optinforms_form3_width_pixels;
|
341 |
-
}
|
342 |
-
|
343 |
-
// FORM3: default width fixed
|
344 |
-
function optinforms_form3_get_width() {
|
345 |
-
global $optinforms_form3_width;
|
346 |
-
if($optinforms_form3_width == 0) {
|
347 |
-
// do nothing
|
348 |
-
}
|
349 |
-
elseif($optinforms_form3_width == 1) {
|
350 |
-
return "style=\"width:" . optinforms_form3_default_width_pixels() . "px\"";
|
351 |
-
}
|
352 |
-
}
|
353 |
-
|
354 |
-
// FORM3: hide the title
|
355 |
-
function optinforms_form3_hide_title() {
|
356 |
-
global $optinforms_form3_hide_title;
|
357 |
-
return $optinforms_form3_hide_title;
|
358 |
-
}
|
359 |
-
|
360 |
-
// FORM1: hide the title - convert to CSS
|
361 |
-
function optinforms_form3_hide_title_css() {
|
362 |
-
global $optinforms_form3_hide_title;
|
363 |
-
if($optinforms_form3_hide_title == 1) {
|
364 |
-
return "#optinforms-form3-title{display:none;}";
|
365 |
-
}
|
366 |
-
}
|
367 |
-
|
368 |
-
// FORM3: hide the subtitle
|
369 |
-
function optinforms_form3_hide_subtitle() {
|
370 |
-
global $optinforms_form3_hide_subtitle;
|
371 |
-
return $optinforms_form3_hide_subtitle;
|
372 |
-
}
|
373 |
-
|
374 |
-
// FORM3: hide the subtitle - convert to CSS
|
375 |
-
function optinforms_form3_hide_subtitle_css() {
|
376 |
-
global $optinforms_form3_hide_subtitle;
|
377 |
-
if($optinforms_form3_hide_subtitle == 1) {
|
378 |
-
return "#optinforms-form3-subtitle{display:none;}";
|
379 |
-
}
|
380 |
-
}
|
381 |
-
|
382 |
-
// FORM3: if both title and subtitle are hidden, hide the left container
|
383 |
-
function optinforms_form3_hide_title_subtitle_css() {
|
384 |
-
global $optinforms_form3_hide_title, $optinforms_form3_hide_subtitle;
|
385 |
-
if(($optinforms_form3_hide_title == 1) && ($optinforms_form3_hide_subtitle == 1)) {
|
386 |
-
return "#optinforms-form3-container-left{display:none;}#optinforms-form3-container-right{margin:10px 0 0 0;width:100%;}";
|
387 |
-
}
|
388 |
-
}
|
389 |
-
|
390 |
-
// FORM3: hide the name field
|
391 |
-
function optinforms_form3_hide_name_field() {
|
392 |
-
global $optinforms_form3_hide_name_field;
|
393 |
-
return $optinforms_form3_hide_name_field;
|
394 |
-
}
|
395 |
-
|
396 |
-
// FORM3: hide the name field - convert to CSS
|
397 |
-
function optinforms_form3_hide_name_field_css() {
|
398 |
-
global $optinforms_form3_hide_name_field;
|
399 |
-
if($optinforms_form3_hide_name_field == 1) {
|
400 |
-
return "#optinforms-form3-name-field{display:none;}";
|
401 |
-
}
|
402 |
-
}
|
403 |
-
|
404 |
-
// FORM3: get our custom CSS
|
405 |
-
function optinforms_form3_css() {
|
406 |
-
global $optinforms_form3_css;
|
407 |
-
return $optinforms_form3_css;
|
408 |
-
}
|
409 |
-
|
410 |
-
// FORM3: advanced styling options
|
411 |
-
function optinforms_form3_add_custom_css() {
|
412 |
-
global $optinforms_form3_css;
|
413 |
-
return "<style type='text/css'>" . optinforms_form3_hide_title_css() . optinforms_form3_hide_subtitle_css() . optinforms_form3_hide_title_subtitle_css() . optinforms_form3_hide_name_field_css() . $optinforms_form3_css . "</style>";
|
414 |
-
}
|
415 |
-
|
416 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/functions-form-4.php
DELETED
@@ -1,473 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// Set global variables
|
4 |
-
$optinforms_form4_background = get_option('optinforms_form4_background');
|
5 |
-
$optinforms_form4_border = get_option('optinforms_form4_border');
|
6 |
-
$optinforms_form4_title = get_option('optinforms_form4_title');
|
7 |
-
$optinforms_form4_title_font = get_option('optinforms_form4_title_font');
|
8 |
-
$optinforms_form4_title_size = get_option('optinforms_form4_title_size');
|
9 |
-
$optinforms_form4_title_color = get_option('optinforms_form4_title_color');
|
10 |
-
$optinforms_form4_subtitle = get_option('optinforms_form4_subtitle');
|
11 |
-
$optinforms_form4_subtitle_font = get_option('optinforms_form4_subtitle_font');
|
12 |
-
$optinforms_form4_subtitle_size = get_option('optinforms_form4_subtitle_size');
|
13 |
-
$optinforms_form4_subtitle_color = get_option('optinforms_form4_subtitle_color');
|
14 |
-
$optinforms_form4_email_field = get_option('optinforms_form4_email_field');
|
15 |
-
$optinforms_form4_fields_font = get_option('optinforms_form4_fields_font');
|
16 |
-
$optinforms_form4_fields_size = get_option('optinforms_form4_fields_size');
|
17 |
-
$optinforms_form4_fields_color = get_option('optinforms_form4_fields_color');
|
18 |
-
$optinforms_form4_button_text = get_option('optinforms_form4_button_text');
|
19 |
-
$optinforms_form4_button_text_font = get_option('optinforms_form4_button_text_font');
|
20 |
-
$optinforms_form4_button_text_size = get_option('optinforms_form4_button_text_size');
|
21 |
-
$optinforms_form4_button_text_color = get_option('optinforms_form4_button_text_color');
|
22 |
-
$optinforms_form4_button_background = get_option('optinforms_form4_button_background');
|
23 |
-
$optinforms_form4_disclaimer = get_option('optinforms_form4_disclaimer');
|
24 |
-
$optinforms_form4_disclaimer_font = get_option('optinforms_form4_disclaimer_font');
|
25 |
-
$optinforms_form4_disclaimer_size = get_option('optinforms_form4_disclaimer_size');
|
26 |
-
$optinforms_form4_disclaimer_color = get_option('optinforms_form4_disclaimer_color');
|
27 |
-
$optinforms_form4_width = get_option('optinforms_form4_width');
|
28 |
-
$optinforms_form4_width_pixels = get_option('optinforms_form4_width_pixels');
|
29 |
-
$optinforms_form4_hide_title = get_option('optinforms_form4_hide_title');
|
30 |
-
$optinforms_form4_hide_subtitle = get_option('optinforms_form4_hide_subtitle');
|
31 |
-
$optinforms_form4_hide_disclaimer = get_option('optinforms_form4_hide_disclaimer');
|
32 |
-
$optinforms_form4_css = get_option('optinforms_form4_css');
|
33 |
-
|
34 |
-
|
35 |
-
// FORM4: default background color
|
36 |
-
function optinforms_form4_default_background() {
|
37 |
-
global $optinforms_form4_background;
|
38 |
-
if(empty($optinforms_form4_background)) {
|
39 |
-
$optinforms_form4_background = "#FCFCFC";
|
40 |
-
}
|
41 |
-
return $optinforms_form4_background;
|
42 |
-
}
|
43 |
-
|
44 |
-
// FORM4: default border color
|
45 |
-
function optinforms_form4_default_border() {
|
46 |
-
global $optinforms_form4_border;
|
47 |
-
if(empty($optinforms_form4_border)) {
|
48 |
-
$optinforms_form4_border = "#ECEAED";
|
49 |
-
}
|
50 |
-
return $optinforms_form4_border;
|
51 |
-
}
|
52 |
-
|
53 |
-
// FORM4: default title
|
54 |
-
function optinforms_form4_default_title() {
|
55 |
-
global $optinforms_form4_title;
|
56 |
-
if(empty($optinforms_form4_title)) {
|
57 |
-
$optinforms_form4_title = __('Get the FREE eBook...', 'optin-forms');
|
58 |
-
}
|
59 |
-
return $optinforms_form4_title;
|
60 |
-
}
|
61 |
-
|
62 |
-
// FORM4: default title font
|
63 |
-
function optinforms_form4_default_title_font() {
|
64 |
-
global $optinforms_form4_title_font;
|
65 |
-
if(empty($optinforms_form4_title_font)) {
|
66 |
-
$optinforms_form4_title_font = "Arial";
|
67 |
-
}
|
68 |
-
return $optinforms_form4_title_font;
|
69 |
-
}
|
70 |
-
|
71 |
-
// FORM4: title font options
|
72 |
-
function optinforms_get_form4_title_font_options() {
|
73 |
-
global $optinforms_form4_title_font;
|
74 |
-
global $optinforms_included_fonts;
|
75 |
-
foreach ($optinforms_included_fonts as $key) {
|
76 |
-
echo "<option value=\"" . $key . "\"";
|
77 |
-
if($optinforms_form4_title_font == $key){
|
78 |
-
echo "selected=selected";
|
79 |
-
}
|
80 |
-
echo ">" . $key . "</option>";
|
81 |
-
}
|
82 |
-
}
|
83 |
-
|
84 |
-
// FORM4: default title font size
|
85 |
-
function optinforms_form4_default_title_size() {
|
86 |
-
global $optinforms_form4_title_size;
|
87 |
-
if(empty($optinforms_form4_title_size)) {
|
88 |
-
$optinforms_form4_title_size = "24px";
|
89 |
-
}
|
90 |
-
return $optinforms_form4_title_size;
|
91 |
-
}
|
92 |
-
|
93 |
-
// FORM4: title font size options
|
94 |
-
function optinforms_get_form4_title_size_options() {
|
95 |
-
global $optinforms_form4_title_size;
|
96 |
-
foreach (range(10, 72) as $number) {
|
97 |
-
echo "<option value=\"" . $number . "px\"";
|
98 |
-
if($optinforms_form4_title_size == $number . "px") {
|
99 |
-
echo "selected=selected";
|
100 |
-
}
|
101 |
-
echo">" . $number . "px</option>";
|
102 |
-
}
|
103 |
-
}
|
104 |
-
|
105 |
-
// FORM4: default title color
|
106 |
-
function optinforms_form4_default_title_color() {
|
107 |
-
global $optinforms_form4_title_color;
|
108 |
-
if(empty($optinforms_form4_title_color)) {
|
109 |
-
$optinforms_form4_title_color = "#505050";
|
110 |
-
}
|
111 |
-
return $optinforms_form4_title_color;
|
112 |
-
}
|
113 |
-
|
114 |
-
// FORM4: default subtitle
|
115 |
-
function optinforms_form4_default_subtitle() {
|
116 |
-
global $optinforms_form4_subtitle;
|
117 |
-
if(empty($optinforms_form4_subtitle)) {
|
118 |
-
$optinforms_form4_subtitle = __('Enter your email address and click on the Get Instant Access button.', 'optin-forms');
|
119 |
-
}
|
120 |
-
return $optinforms_form4_subtitle;
|
121 |
-
}
|
122 |
-
|
123 |
-
// FORM4: default subtitle font
|
124 |
-
function optinforms_form4_default_subtitle_font() {
|
125 |
-
global $optinforms_form4_subtitle_font;
|
126 |
-
if(empty($optinforms_form4_subtitle_font)) {
|
127 |
-
$optinforms_form4_subtitle_font = "Arial";
|
128 |
-
}
|
129 |
-
return $optinforms_form4_subtitle_font;
|
130 |
-
}
|
131 |
-
|
132 |
-
// FORM4: subtitle font options
|
133 |
-
function optinforms_get_form4_subtitle_font_options() {
|
134 |
-
global $optinforms_form4_subtitle_font;
|
135 |
-
global $optinforms_included_fonts;
|
136 |
-
foreach ($optinforms_included_fonts as $key) {
|
137 |
-
echo "<option value=\"" . $key . "\"";
|
138 |
-
if($optinforms_form4_subtitle_font == $key){
|
139 |
-
echo "selected=selected";
|
140 |
-
}
|
141 |
-
echo ">" . $key . "</option>";
|
142 |
-
}
|
143 |
-
}
|
144 |
-
|
145 |
-
// FORM4: default subtitle font size
|
146 |
-
function optinforms_form4_default_subtitle_size() {
|
147 |
-
global $optinforms_form4_subtitle_size;
|
148 |
-
if(empty($optinforms_form4_subtitle_size)) {
|
149 |
-
$optinforms_form4_subtitle_size = "16px";
|
150 |
-
}
|
151 |
-
return $optinforms_form4_subtitle_size;
|
152 |
-
}
|
153 |
-
|
154 |
-
// FORM4: subtitle font size options
|
155 |
-
function optinforms_get_form4_subtitle_size_options() {
|
156 |
-
global $optinforms_form4_subtitle_size;
|
157 |
-
foreach (range(10, 72) as $number) {
|
158 |
-
echo "<option value=\"" . $number . "px\"";
|
159 |
-
if($optinforms_form4_subtitle_size == $number . "px") {
|
160 |
-
echo "selected=selected";
|
161 |
-
}
|
162 |
-
echo">" . $number . "px</option>";
|
163 |
-
}
|
164 |
-
}
|
165 |
-
|
166 |
-
// FORM4: default subtitle color
|
167 |
-
function optinforms_form4_default_subtitle_color() {
|
168 |
-
global $optinforms_form4_subtitle_color;
|
169 |
-
if(empty($optinforms_form4_subtitle_color)) {
|
170 |
-
$optinforms_form4_subtitle_color = "#505050";
|
171 |
-
}
|
172 |
-
return $optinforms_form4_subtitle_color;
|
173 |
-
}
|
174 |
-
|
175 |
-
// FORM4: default email field
|
176 |
-
function optinforms_form4_default_email_field() {
|
177 |
-
global $optinforms_form4_email_field;
|
178 |
-
if(empty($optinforms_form4_email_field)) {
|
179 |
-
$optinforms_form4_email_field = __('Email Address', 'optin-forms');
|
180 |
-
}
|
181 |
-
return $optinforms_form4_email_field;
|
182 |
-
}
|
183 |
-
|
184 |
-
// FORM4: default email fields font
|
185 |
-
function optinforms_form4_default_fields_font() {
|
186 |
-
global $optinforms_form4_fields_font;
|
187 |
-
if(empty($optinforms_form4_fields_font)) {
|
188 |
-
$optinforms_form4_fields_font = "Arial, Helvetica, sans-serif";
|
189 |
-
}
|
190 |
-
return $optinforms_form4_fields_font;
|
191 |
-
}
|
192 |
-
|
193 |
-
// FORM4: email fields font options
|
194 |
-
function optinforms_get_form4_fields_font_options() {
|
195 |
-
global $optinforms_form4_fields_font;
|
196 |
-
global $optinforms_included_fonts_simple;
|
197 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
198 |
-
echo "<option value=\"" . $key . "\"";
|
199 |
-
if($optinforms_form4_fields_font == $key){
|
200 |
-
echo "selected=selected";
|
201 |
-
}
|
202 |
-
echo ">" . $key . "</option>";
|
203 |
-
}
|
204 |
-
}
|
205 |
-
|
206 |
-
// FORM4: email fields font size
|
207 |
-
function optinforms_form4_default_fields_size() {
|
208 |
-
global $optinforms_form4_fields_size;
|
209 |
-
if(empty($optinforms_form4_fields_size)) {
|
210 |
-
$optinforms_form4_fields_size = "16px";
|
211 |
-
}
|
212 |
-
return $optinforms_form4_fields_size;
|
213 |
-
}
|
214 |
-
|
215 |
-
// FORM4: email fields font size options
|
216 |
-
function optinforms_get_form4_fields_size_options() {
|
217 |
-
global $optinforms_form4_fields_size;
|
218 |
-
foreach (range(10, 20) as $number) {
|
219 |
-
echo "<option value=\"" . $number . "px\"";
|
220 |
-
if($optinforms_form4_fields_size == $number . "px") {
|
221 |
-
echo "selected=selected";
|
222 |
-
}
|
223 |
-
echo">" . $number . "px</option>";
|
224 |
-
}
|
225 |
-
}
|
226 |
-
|
227 |
-
// FORM4: default fields color
|
228 |
-
function optinforms_form4_default_fields_color() {
|
229 |
-
global $optinforms_form4_fields_color;
|
230 |
-
if(empty($optinforms_form4_fields_color)) {
|
231 |
-
$optinforms_form4_fields_color = "#666666";
|
232 |
-
}
|
233 |
-
return $optinforms_form4_fields_color;
|
234 |
-
}
|
235 |
-
|
236 |
-
// FORM4: default button text
|
237 |
-
function optinforms_form4_default_button_text() {
|
238 |
-
global $optinforms_form4_button_text;
|
239 |
-
if(empty($optinforms_form4_button_text)) {
|
240 |
-
$optinforms_form4_button_text = __('Get Instant Access', 'optin-forms');
|
241 |
-
}
|
242 |
-
return $optinforms_form4_button_text;
|
243 |
-
}
|
244 |
-
|
245 |
-
// FORM4: default button text font
|
246 |
-
function optinforms_form4_default_button_text_font() {
|
247 |
-
global $optinforms_form4_button_text_font;
|
248 |
-
if(empty($optinforms_form4_button_text_font)) {
|
249 |
-
$optinforms_form4_button_text_font = "Arial, Helvetica, sans-serif";
|
250 |
-
}
|
251 |
-
return $optinforms_form4_button_text_font;
|
252 |
-
}
|
253 |
-
|
254 |
-
// FORM4: button text font options
|
255 |
-
function optinforms_get_form4_button_text_font_options() {
|
256 |
-
global $optinforms_form4_button_text_font;
|
257 |
-
global $optinforms_included_fonts_simple;
|
258 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
259 |
-
echo "<option value=\"" . $key . "\"";
|
260 |
-
if($optinforms_form4_button_text_font == $key){
|
261 |
-
echo "selected=selected";
|
262 |
-
}
|
263 |
-
echo ">" . $key . "</option>";
|
264 |
-
}
|
265 |
-
}
|
266 |
-
|
267 |
-
// FORM4: button text font size
|
268 |
-
function optinforms_form4_default_button_text_size() {
|
269 |
-
global $optinforms_form4_button_text_size;
|
270 |
-
if(empty($optinforms_form4_button_text_size)) {
|
271 |
-
$optinforms_form4_button_text_size = "20px";
|
272 |
-
}
|
273 |
-
return $optinforms_form4_button_text_size;
|
274 |
-
}
|
275 |
-
|
276 |
-
// FORM4: button text font size options
|
277 |
-
function optinforms_get_form4_button_text_size_options() {
|
278 |
-
global $optinforms_form4_button_text_size;
|
279 |
-
foreach (range(10, 30) as $number) {
|
280 |
-
echo "<option value=\"" . $number . "px\"";
|
281 |
-
if($optinforms_form4_button_text_size == $number . "px") {
|
282 |
-
echo "selected=selected";
|
283 |
-
}
|
284 |
-
echo">" . $number . "px</option>";
|
285 |
-
}
|
286 |
-
}
|
287 |
-
|
288 |
-
// FORM4: default button text color
|
289 |
-
function optinforms_form4_default_button_text_color() {
|
290 |
-
global $optinforms_form4_button_text_color;
|
291 |
-
if(empty($optinforms_form4_button_text_color)) {
|
292 |
-
$optinforms_form4_button_text_color = "#1d629b";
|
293 |
-
}
|
294 |
-
return $optinforms_form4_button_text_color;
|
295 |
-
}
|
296 |
-
|
297 |
-
// FORM4: default button background color
|
298 |
-
function optinforms_form4_default_button_background() {
|
299 |
-
global $optinforms_form4_button_background;
|
300 |
-
if(empty($optinforms_form4_button_background)) {
|
301 |
-
$optinforms_form4_button_background = "#faff5b";
|
302 |
-
}
|
303 |
-
return $optinforms_form4_button_background;
|
304 |
-
}
|
305 |
-
|
306 |
-
// FORM4: default disclaimer
|
307 |
-
function optinforms_form4_default_disclaimer() {
|
308 |
-
global $optinforms_form4_disclaimer;
|
309 |
-
if(empty($optinforms_form4_disclaimer)) {
|
310 |
-
$optinforms_form4_disclaimer = __('We respect your privacy', 'optin-forms');
|
311 |
-
}
|
312 |
-
return $optinforms_form4_disclaimer;
|
313 |
-
}
|
314 |
-
|
315 |
-
// FORM4: default disclaimer font
|
316 |
-
function optinforms_form4_default_disclaimer_font() {
|
317 |
-
global $optinforms_form4_disclaimer_font;
|
318 |
-
if(empty($optinforms_form4_disclaimer_font)) {
|
319 |
-
$optinforms_form4_disclaimer_font = "Arial, Helvetica, sans-serif";
|
320 |
-
}
|
321 |
-
return $optinforms_form4_disclaimer_font;
|
322 |
-
}
|
323 |
-
|
324 |
-
// FORM4: disclaimer font options
|
325 |
-
function optinforms_get_form4_disclaimer_font_options() {
|
326 |
-
global $optinforms_form4_disclaimer_font;
|
327 |
-
global $optinforms_included_fonts_simple;
|
328 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
329 |
-
echo "<option value=\"" . $key . "\"";
|
330 |
-
if($optinforms_form4_disclaimer_font == $key){
|
331 |
-
echo "selected=selected";
|
332 |
-
}
|
333 |
-
echo ">" . $key . "</option>";
|
334 |
-
}
|
335 |
-
}
|
336 |
-
|
337 |
-
// FORM4: disclaimer font size
|
338 |
-
function optinforms_form4_default_disclaimer_size() {
|
339 |
-
global $optinforms_form4_disclaimer_size;
|
340 |
-
if(empty($optinforms_form4_disclaimer_size)) {
|
341 |
-
$optinforms_form4_disclaimer_size = "12px";
|
342 |
-
}
|
343 |
-
return $optinforms_form4_disclaimer_size;
|
344 |
-
}
|
345 |
-
|
346 |
-
// FORM4: disclaimer font size options
|
347 |
-
function optinforms_get_form4_disclaimer_size_options() {
|
348 |
-
global $optinforms_form4_disclaimer_size;
|
349 |
-
foreach (range(10, 20) as $number) {
|
350 |
-
echo "<option value=\"" . $number . "px\"";
|
351 |
-
if($optinforms_form4_disclaimer_size == $number . "px") {
|
352 |
-
echo "selected=selected";
|
353 |
-
}
|
354 |
-
echo">" . $number . "px</option>";
|
355 |
-
}
|
356 |
-
}
|
357 |
-
|
358 |
-
// FORM4: default disclaimer color
|
359 |
-
function optinforms_form4_default_disclaimer_color() {
|
360 |
-
global $optinforms_form4_disclaimer_color;
|
361 |
-
if(empty($optinforms_form4_disclaimer_color)) {
|
362 |
-
$optinforms_form4_disclaimer_color = "#999999";
|
363 |
-
}
|
364 |
-
return $optinforms_form4_disclaimer_color;
|
365 |
-
}
|
366 |
-
|
367 |
-
// FORM4: default width
|
368 |
-
function optinforms_form4_default_width() {
|
369 |
-
global $optinforms_form4_width;
|
370 |
-
if(empty($optinforms_form4_width)) {
|
371 |
-
$optinforms_form4_width = 0;
|
372 |
-
}
|
373 |
-
}
|
374 |
-
|
375 |
-
// FORM4: 100% width checked
|
376 |
-
function optinforms_form4_checked_width_100() {
|
377 |
-
global $optinforms_form4_width;
|
378 |
-
if($optinforms_form4_width == 0) {
|
379 |
-
echo "checked=\"checked\"";
|
380 |
-
}
|
381 |
-
}
|
382 |
-
|
383 |
-
// FORM4: fixed width checked
|
384 |
-
function optinforms_form4_checked_width_fixed() {
|
385 |
-
global $optinforms_form4_width;
|
386 |
-
if($optinforms_form4_width == 1) {
|
387 |
-
echo "checked=\"checked\"";
|
388 |
-
}
|
389 |
-
}
|
390 |
-
|
391 |
-
// FORM4: fixed width disabled if width is 100%
|
392 |
-
function optinforms_form4_disabled_width_pixels() {
|
393 |
-
global $optinforms_form4_width;
|
394 |
-
if($optinforms_form4_width == 0) {
|
395 |
-
echo "disabled=\"disabled\"";
|
396 |
-
}
|
397 |
-
}
|
398 |
-
|
399 |
-
// FORM4: default width fixed
|
400 |
-
function optinforms_form4_default_width_pixels() {
|
401 |
-
global $optinforms_form4_width_pixels;
|
402 |
-
if(empty($optinforms_form4_width_pixels)) {
|
403 |
-
$optinforms_form4_width_pixels = "700";
|
404 |
-
}
|
405 |
-
return $optinforms_form4_width_pixels;
|
406 |
-
}
|
407 |
-
|
408 |
-
// FORM4: default width fixed
|
409 |
-
function optinforms_form4_get_width() {
|
410 |
-
global $optinforms_form4_width;
|
411 |
-
if($optinforms_form4_width == 0) {
|
412 |
-
// do nothing
|
413 |
-
}
|
414 |
-
elseif($optinforms_form4_width == 1) {
|
415 |
-
return "style=\"width:" . optinforms_form4_default_width_pixels() . "px\"";
|
416 |
-
}
|
417 |
-
}
|
418 |
-
|
419 |
-
// FORM4: hide the title
|
420 |
-
function optinforms_form4_hide_title() {
|
421 |
-
global $optinforms_form4_hide_title;
|
422 |
-
return $optinforms_form4_hide_title;
|
423 |
-
}
|
424 |
-
|
425 |
-
// FORM4: hide the title - convert to CSS
|
426 |
-
function optinforms_form4_hide_title_css() {
|
427 |
-
global $optinforms_form4_hide_title;
|
428 |
-
if($optinforms_form4_hide_title == 1) {
|
429 |
-
return "#optinforms-form4-title{display:none;}";
|
430 |
-
}
|
431 |
-
}
|
432 |
-
|
433 |
-
// FORM4: hide the subtitle
|
434 |
-
function optinforms_form4_hide_subtitle() {
|
435 |
-
global $optinforms_form4_hide_subtitle;
|
436 |
-
return $optinforms_form4_hide_subtitle;
|
437 |
-
}
|
438 |
-
|
439 |
-
// FORM4: hide the subtitle - convert to CSS
|
440 |
-
function optinforms_form4_hide_subtitle_css() {
|
441 |
-
global $optinforms_form4_hide_subtitle;
|
442 |
-
if($optinforms_form4_hide_subtitle == 1) {
|
443 |
-
return "#optinforms-form4-subtitle{display:none;}";
|
444 |
-
}
|
445 |
-
}
|
446 |
-
|
447 |
-
// FORM3: hide the disclaimer
|
448 |
-
function optinforms_form4_hide_disclaimer() {
|
449 |
-
global $optinforms_form3_hide_disclaimer;
|
450 |
-
return $optinforms_form3_hide_disclaimer;
|
451 |
-
}
|
452 |
-
|
453 |
-
// FORM4: hide the name field - convert to CSS
|
454 |
-
function optinforms_form4_hide_disclaimer_css() {
|
455 |
-
global $optinforms_form4_hide_disclaimer;
|
456 |
-
if($optinforms_form4_hide_disclaimer == 1) {
|
457 |
-
return "#optinforms-form4-disclaimer{display:none;}";
|
458 |
-
}
|
459 |
-
}
|
460 |
-
|
461 |
-
// FORM4: get our custom CSS
|
462 |
-
function optinforms_form4_css() {
|
463 |
-
global $optinforms_form4_css;
|
464 |
-
return $optinforms_form4_css;
|
465 |
-
}
|
466 |
-
|
467 |
-
// FORM4: advanced styling options
|
468 |
-
function optinforms_form4_add_custom_css() {
|
469 |
-
global $optinforms_form4_css;
|
470 |
-
return "<style type='text/css'>" . optinforms_form4_hide_title_css() . optinforms_form4_hide_subtitle_css() . optinforms_form4_hide_disclaimer_css() . $optinforms_form4_css . "</style>";
|
471 |
-
}
|
472 |
-
|
473 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/functions-form-5.php
DELETED
@@ -1,497 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// Set global variables
|
4 |
-
$optinforms_form5_background = get_option('optinforms_form5_background');
|
5 |
-
$optinforms_form5_title = get_option('optinforms_form5_title');
|
6 |
-
$optinforms_form5_title_font = get_option('optinforms_form5_title_font');
|
7 |
-
$optinforms_form5_title_size = get_option('optinforms_form5_title_size');
|
8 |
-
$optinforms_form5_title_color = get_option('optinforms_form5_title_color');
|
9 |
-
$optinforms_form5_subtitle = get_option('optinforms_form5_subtitle');
|
10 |
-
$optinforms_form5_subtitle_font = get_option('optinforms_form5_subtitle_font');
|
11 |
-
$optinforms_form5_subtitle_size = get_option('optinforms_form5_subtitle_size');
|
12 |
-
$optinforms_form5_subtitle_color = get_option('optinforms_form5_subtitle_color');
|
13 |
-
$optinforms_form5_name_field = get_option('optinforms_form5_name_field');
|
14 |
-
$optinforms_form5_email_field = get_option('optinforms_form5_email_field');
|
15 |
-
$optinforms_form5_fields_font = get_option('optinforms_form5_fields_font');
|
16 |
-
$optinforms_form5_fields_size = get_option('optinforms_form5_fields_size');
|
17 |
-
$optinforms_form5_fields_color = get_option('optinforms_form5_fields_color');
|
18 |
-
$optinforms_form5_button_text = get_option('optinforms_form5_button_text');
|
19 |
-
$optinforms_form5_button_text_font = get_option('optinforms_form5_button_text_font');
|
20 |
-
$optinforms_form5_button_text_size = get_option('optinforms_form5_button_text_size');
|
21 |
-
$optinforms_form5_button_text_color = get_option('optinforms_form5_button_text_color');
|
22 |
-
$optinforms_form5_button_background = get_option('optinforms_form5_button_background');
|
23 |
-
$optinforms_form5_disclaimer = get_option('optinforms_form5_disclaimer');
|
24 |
-
$optinforms_form5_disclaimer_font = get_option('optinforms_form5_disclaimer_font');
|
25 |
-
$optinforms_form5_disclaimer_size = get_option('optinforms_form5_disclaimer_size');
|
26 |
-
$optinforms_form5_disclaimer_color = get_option('optinforms_form5_disclaimer_color');
|
27 |
-
$optinforms_form5_width = get_option('optinforms_form5_width');
|
28 |
-
$optinforms_form5_width_pixels = get_option('optinforms_form5_width_pixels');
|
29 |
-
$optinforms_form5_hide_title = get_option('optinforms_form5_hide_title');
|
30 |
-
$optinforms_form5_hide_subtitle = get_option('optinforms_form5_hide_subtitle');
|
31 |
-
$optinforms_form5_hide_name_field = get_option('optinforms_form5_hide_name_field');
|
32 |
-
$optinforms_form5_hide_disclaimer = get_option('optinforms_form5_hide_disclaimer');
|
33 |
-
$optinforms_form5_css = get_option('optinforms_form5_css');
|
34 |
-
|
35 |
-
|
36 |
-
// FORM5: default background color
|
37 |
-
function optinforms_form5_default_background() {
|
38 |
-
global $optinforms_form5_background;
|
39 |
-
if(empty($optinforms_form5_background)) {
|
40 |
-
$optinforms_form5_background = "#333333";
|
41 |
-
}
|
42 |
-
return $optinforms_form5_background;
|
43 |
-
}
|
44 |
-
|
45 |
-
// FORM5: default title
|
46 |
-
function optinforms_form5_default_title() {
|
47 |
-
global $optinforms_form5_title;
|
48 |
-
if(empty($optinforms_form5_title)) {
|
49 |
-
$optinforms_form5_title = __('JOIN OUR NEWSLETTER', 'optin-forms');
|
50 |
-
}
|
51 |
-
return $optinforms_form5_title;
|
52 |
-
}
|
53 |
-
|
54 |
-
// FORM5: default title font
|
55 |
-
function optinforms_form5_default_title_font() {
|
56 |
-
global $optinforms_form5_title_font;
|
57 |
-
if(empty($optinforms_form5_title_font)) {
|
58 |
-
$optinforms_form5_title_font = "News Cycle";
|
59 |
-
}
|
60 |
-
return $optinforms_form5_title_font;
|
61 |
-
}
|
62 |
-
|
63 |
-
// FORM5: title font options
|
64 |
-
function optinforms_get_form5_title_font_options() {
|
65 |
-
global $optinforms_form5_title_font;
|
66 |
-
global $optinforms_included_fonts;
|
67 |
-
foreach ($optinforms_included_fonts as $key) {
|
68 |
-
echo "<option value=\"" . $key . "\"";
|
69 |
-
if($optinforms_form5_title_font == $key){
|
70 |
-
echo "selected=selected";
|
71 |
-
}
|
72 |
-
echo ">" . $key . "</option>";
|
73 |
-
}
|
74 |
-
}
|
75 |
-
|
76 |
-
// FORM5: default title font size
|
77 |
-
function optinforms_form5_default_title_size() {
|
78 |
-
global $optinforms_form5_title_size;
|
79 |
-
if(empty($optinforms_form5_title_size)) {
|
80 |
-
$optinforms_form5_title_size = "24px";
|
81 |
-
}
|
82 |
-
return $optinforms_form5_title_size;
|
83 |
-
}
|
84 |
-
|
85 |
-
// FORM5: title font size options
|
86 |
-
function optinforms_get_form5_title_size_options() {
|
87 |
-
global $optinforms_form5_title_size;
|
88 |
-
foreach (range(10, 72) as $number) {
|
89 |
-
echo "<option value=\"" . $number . "px\"";
|
90 |
-
if($optinforms_form5_title_size == $number . "px") {
|
91 |
-
echo "selected=selected";
|
92 |
-
}
|
93 |
-
echo">" . $number . "px</option>";
|
94 |
-
}
|
95 |
-
}
|
96 |
-
|
97 |
-
// FORM5: default title color
|
98 |
-
function optinforms_form5_default_title_color() {
|
99 |
-
global $optinforms_form5_title_color;
|
100 |
-
if(empty($optinforms_form5_title_color)) {
|
101 |
-
$optinforms_form5_title_color = "#fb6a13";
|
102 |
-
}
|
103 |
-
return $optinforms_form5_title_color;
|
104 |
-
}
|
105 |
-
|
106 |
-
// FORM5: default subtitle
|
107 |
-
function optinforms_form5_default_subtitle() {
|
108 |
-
global $optinforms_form5_subtitle;
|
109 |
-
if(empty($optinforms_form5_subtitle)) {
|
110 |
-
$optinforms_form5_subtitle = __('Join over 3.000 visitors who are receiving our newsletter and learn how to optimize your blog for search engines, find free traffic, and monetize your website.', 'optin-forms');
|
111 |
-
}
|
112 |
-
return $optinforms_form5_subtitle;
|
113 |
-
}
|
114 |
-
|
115 |
-
// FORM5: default subtitle font
|
116 |
-
function optinforms_form5_default_subtitle_font() {
|
117 |
-
global $optinforms_form5_subtitle_font;
|
118 |
-
if(empty($optinforms_form5_subtitle_font)) {
|
119 |
-
$optinforms_form5_subtitle_font = "Georgia";
|
120 |
-
}
|
121 |
-
return $optinforms_form5_subtitle_font;
|
122 |
-
}
|
123 |
-
|
124 |
-
// FORM5: subtitle font options
|
125 |
-
function optinforms_get_form5_subtitle_font_options() {
|
126 |
-
global $optinforms_form5_subtitle_font;
|
127 |
-
global $optinforms_included_fonts;
|
128 |
-
foreach ($optinforms_included_fonts as $key) {
|
129 |
-
echo "<option value=\"" . $key . "\"";
|
130 |
-
if($optinforms_form5_subtitle_font == $key){
|
131 |
-
echo "selected=selected";
|
132 |
-
}
|
133 |
-
echo ">" . $key . "</option>";
|
134 |
-
}
|
135 |
-
}
|
136 |
-
|
137 |
-
// FORM5: default subtitle font size
|
138 |
-
function optinforms_form5_default_subtitle_size() {
|
139 |
-
global $optinforms_form5_subtitle_size;
|
140 |
-
if(empty($optinforms_form5_subtitle_size)) {
|
141 |
-
$optinforms_form5_subtitle_size = "16px";
|
142 |
-
}
|
143 |
-
return $optinforms_form5_subtitle_size;
|
144 |
-
}
|
145 |
-
|
146 |
-
// FORM5: subtitle font size options
|
147 |
-
function optinforms_get_form5_subtitle_size_options() {
|
148 |
-
global $optinforms_form5_subtitle_size;
|
149 |
-
foreach (range(10, 20) as $number) {
|
150 |
-
echo "<option value=\"" . $number . "px\"";
|
151 |
-
if($optinforms_form5_subtitle_size == $number . "px") {
|
152 |
-
echo "selected=selected";
|
153 |
-
}
|
154 |
-
echo">" . $number . "px</option>";
|
155 |
-
}
|
156 |
-
}
|
157 |
-
|
158 |
-
// FORM5: default subtitle color
|
159 |
-
function optinforms_form5_default_subtitle_color() {
|
160 |
-
global $optinforms_form5_subtitle_color;
|
161 |
-
if(empty($optinforms_form5_subtitle_color)) {
|
162 |
-
$optinforms_form5_subtitle_color = "#cccccc";
|
163 |
-
}
|
164 |
-
return $optinforms_form5_subtitle_color;
|
165 |
-
}
|
166 |
-
|
167 |
-
// FORM5: default name field
|
168 |
-
function optinforms_form5_default_name_field() {
|
169 |
-
|
170 |
-
global $optinforms_form5_name_field;
|
171 |
-
if(empty($optinforms_form5_name_field)) {
|
172 |
-
$optinforms_form5_name_field = __('Enter Your Name', 'optin-forms');
|
173 |
-
}
|
174 |
-
return $optinforms_form5_name_field;
|
175 |
-
}
|
176 |
-
|
177 |
-
// FORM5: default email field
|
178 |
-
function optinforms_form5_default_email_field() {
|
179 |
-
global $optinforms_form5_email_field;
|
180 |
-
if(empty($optinforms_form5_email_field)) {
|
181 |
-
$optinforms_form5_email_field = __('Enter Your Email', 'optin-forms');
|
182 |
-
}
|
183 |
-
return $optinforms_form5_email_field;
|
184 |
-
}
|
185 |
-
|
186 |
-
// FORM5: default email fields font
|
187 |
-
function optinforms_form5_default_fields_font() {
|
188 |
-
global $optinforms_form5_fields_font;
|
189 |
-
if(empty($optinforms_form5_fields_font)) {
|
190 |
-
$optinforms_form5_fields_font = "Arial, Helvetica, sans-serif";
|
191 |
-
}
|
192 |
-
return $optinforms_form5_fields_font;
|
193 |
-
}
|
194 |
-
|
195 |
-
// FORM5: email fields font options
|
196 |
-
function optinforms_get_form5_fields_font_options() {
|
197 |
-
global $optinforms_form5_fields_font;
|
198 |
-
global $optinforms_included_fonts_simple;
|
199 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
200 |
-
echo "<option value=\"" . $key . "\"";
|
201 |
-
if($optinforms_form5_fields_font == $key){
|
202 |
-
echo "selected=selected";
|
203 |
-
}
|
204 |
-
echo ">" . $key . "</option>";
|
205 |
-
}
|
206 |
-
}
|
207 |
-
|
208 |
-
// FORM5: email fields font size
|
209 |
-
function optinforms_form5_default_fields_size() {
|
210 |
-
global $optinforms_form5_fields_size;
|
211 |
-
if(empty($optinforms_form5_fields_size)) {
|
212 |
-
$optinforms_form5_fields_size = "12px";
|
213 |
-
}
|
214 |
-
return $optinforms_form5_fields_size;
|
215 |
-
}
|
216 |
-
|
217 |
-
// FORM5: email fields font size options
|
218 |
-
function optinforms_get_form5_fields_size_options() {
|
219 |
-
global $optinforms_form5_fields_size;
|
220 |
-
foreach (range(10, 20) as $number) {
|
221 |
-
echo "<option value=\"" . $number . "px\"";
|
222 |
-
if($optinforms_form5_fields_size == $number . "px") {
|
223 |
-
echo "selected=selected";
|
224 |
-
}
|
225 |
-
echo">" . $number . "px</option>";
|
226 |
-
}
|
227 |
-
}
|
228 |
-
|
229 |
-
// FORM5: default fields color
|
230 |
-
function optinforms_form5_default_fields_color() {
|
231 |
-
global $optinforms_form5_fields_color;
|
232 |
-
if(empty($optinforms_form5_fields_color)) {
|
233 |
-
$optinforms_form5_fields_color = "#000000";
|
234 |
-
}
|
235 |
-
return $optinforms_form5_fields_color;
|
236 |
-
}
|
237 |
-
|
238 |
-
// FORM5: default button text
|
239 |
-
function optinforms_form5_default_button_text() {
|
240 |
-
global $optinforms_form5_button_text;
|
241 |
-
if(empty($optinforms_form5_button_text)) {
|
242 |
-
$optinforms_form5_button_text = __('SUBSCRIBE FOR FREE', 'optin-forms');
|
243 |
-
}
|
244 |
-
return $optinforms_form5_button_text;
|
245 |
-
}
|
246 |
-
|
247 |
-
// FORM5: default button text font
|
248 |
-
function optinforms_form5_default_button_text_font() {
|
249 |
-
global $optinforms_form5_button_text_font;
|
250 |
-
if(empty($optinforms_form5_button_text_font)) {
|
251 |
-
$optinforms_form5_button_text_font = "Arial, Helvetica, sans-serif";
|
252 |
-
}
|
253 |
-
return $optinforms_form5_button_text_font;
|
254 |
-
}
|
255 |
-
|
256 |
-
// FORM5: button text font options
|
257 |
-
function optinforms_get_form5_button_text_font_options() {
|
258 |
-
global $optinforms_form5_button_text_font;
|
259 |
-
global $optinforms_included_fonts_simple;
|
260 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
261 |
-
echo "<option value=\"" . $key . "\"";
|
262 |
-
if($optinforms_form5_button_text_font == $key){
|
263 |
-
echo "selected=selected";
|
264 |
-
}
|
265 |
-
echo ">" . $key . "</option>";
|
266 |
-
}
|
267 |
-
}
|
268 |
-
|
269 |
-
// FORM5: button text font size
|
270 |
-
function optinforms_form5_default_button_text_size() {
|
271 |
-
global $optinforms_form5_button_text_size;
|
272 |
-
if(empty($optinforms_form5_button_text_size)) {
|
273 |
-
$optinforms_form5_button_text_size = "16px";
|
274 |
-
}
|
275 |
-
return $optinforms_form5_button_text_size;
|
276 |
-
}
|
277 |
-
|
278 |
-
// FORM5: button text font size options
|
279 |
-
function optinforms_get_form5_button_text_size_options() {
|
280 |
-
global $optinforms_form5_button_text_size;
|
281 |
-
foreach (range(10, 20) as $number) {
|
282 |
-
echo "<option value=\"" . $number . "px\"";
|
283 |
-
if($optinforms_form5_button_text_size == $number . "px") {
|
284 |
-
echo "selected=selected";
|
285 |
-
}
|
286 |
-
echo">" . $number . "px</option>";
|
287 |
-
}
|
288 |
-
}
|
289 |
-
|
290 |
-
// FORM5: default button text color
|
291 |
-
function optinforms_form5_default_button_text_color() {
|
292 |
-
global $optinforms_form5_button_text_color;
|
293 |
-
if(empty($optinforms_form5_button_text_color)) {
|
294 |
-
$optinforms_form5_button_text_color = "#FFFFFF";
|
295 |
-
}
|
296 |
-
return $optinforms_form5_button_text_color;
|
297 |
-
}
|
298 |
-
|
299 |
-
// FORM5: default button background color
|
300 |
-
function optinforms_form5_default_button_background() {
|
301 |
-
global $optinforms_form5_button_background;
|
302 |
-
if(empty($optinforms_form5_button_background)) {
|
303 |
-
$optinforms_form5_button_background = "#fb6a13";
|
304 |
-
}
|
305 |
-
return $optinforms_form5_button_background;
|
306 |
-
}
|
307 |
-
|
308 |
-
// FORM5: default disclaimer
|
309 |
-
function optinforms_form5_default_disclaimer() {
|
310 |
-
global $optinforms_form5_disclaimer;
|
311 |
-
if(empty($optinforms_form5_disclaimer)) {
|
312 |
-
$optinforms_form5_disclaimer = __('We hate spam. Your email address will not be sold or shared with anyone else.', 'optin-forms');
|
313 |
-
}
|
314 |
-
return $optinforms_form5_disclaimer;
|
315 |
-
}
|
316 |
-
|
317 |
-
// FORM5: default disclaimer font
|
318 |
-
function optinforms_form5_default_disclaimer_font() {
|
319 |
-
global $optinforms_form5_disclaimer_font;
|
320 |
-
if(empty($optinforms_form5_disclaimer_font)) {
|
321 |
-
$optinforms_form5_disclaimer_font = "Georgia, Times New Roman, Times, serif";
|
322 |
-
}
|
323 |
-
return $optinforms_form5_disclaimer_font;
|
324 |
-
}
|
325 |
-
|
326 |
-
// FORM5: disclaimer font options
|
327 |
-
function optinforms_get_form5_disclaimer_font_options() {
|
328 |
-
global $optinforms_form5_disclaimer_font;
|
329 |
-
global $optinforms_included_fonts_simple;
|
330 |
-
foreach ($optinforms_included_fonts_simple as $key) {
|
331 |
-
echo "<option value=\"" . $key . "\"";
|
332 |
-
if($optinforms_form5_disclaimer_font == $key){
|
333 |
-
echo "selected=selected";
|
334 |
-
}
|
335 |
-
echo ">" . $key . "</option>";
|
336 |
-
}
|
337 |
-
}
|
338 |
-
|
339 |
-
// FORM5: disclaimer font size
|
340 |
-
function optinforms_form5_default_disclaimer_size() {
|
341 |
-
global $optinforms_form5_disclaimer_size;
|
342 |
-
if(empty($optinforms_form5_disclaimer_size)) {
|
343 |
-
$optinforms_form5_disclaimer_size = "14px";
|
344 |
-
}
|
345 |
-
return $optinforms_form5_disclaimer_size;
|
346 |
-
}
|
347 |
-
|
348 |
-
// FORM5: disclaimer font size options
|
349 |
-
function optinforms_get_form5_disclaimer_size_options() {
|
350 |
-
global $optinforms_form5_disclaimer_size;
|
351 |
-
foreach (range(10, 20) as $number) {
|
352 |
-
echo "<option value=\"" . $number . "px\"";
|
353 |
-
if($optinforms_form5_disclaimer_size == $number . "px") {
|
354 |
-
echo "selected=selected";
|
355 |
-
}
|
356 |
-
echo">" . $number . "px</option>";
|
357 |
-
}
|
358 |
-
}
|
359 |
-
|
360 |
-
// FORM5: default disclaimer color
|
361 |
-
function optinforms_form5_default_disclaimer_color() {
|
362 |
-
global $optinforms_form5_disclaimer_color;
|
363 |
-
if(empty($optinforms_form5_disclaimer_color)) {
|
364 |
-
$optinforms_form5_disclaimer_color = "#727272";
|
365 |
-
}
|
366 |
-
return $optinforms_form5_disclaimer_color;
|
367 |
-
}
|
368 |
-
|
369 |
-
// FORM5: default width
|
370 |
-
function optinforms_form5_default_width() {
|
371 |
-
global $optinforms_form5_width;
|
372 |
-
if(empty($optinforms_form5_width)) {
|
373 |
-
$optinforms_form5_width = 0;
|
374 |
-
}
|
375 |
-
}
|
376 |
-
|
377 |
-
// FORM5: 100% width checked
|
378 |
-
function optinforms_form5_checked_width_100() {
|
379 |
-
global $optinforms_form5_width;
|
380 |
-
if($optinforms_form5_width == 0) {
|
381 |
-
echo "checked=\"checked\"";
|
382 |
-
}
|
383 |
-
}
|
384 |
-
|
385 |
-
// FORM5: fixed width checked
|
386 |
-
function optinforms_form5_checked_width_fixed() {
|
387 |
-
global $optinforms_form5_width;
|
388 |
-
if($optinforms_form5_width == 1) {
|
389 |
-
echo "checked=\"checked\"";
|
390 |
-
}
|
391 |
-
}
|
392 |
-
|
393 |
-
// FORM5: fixed width disabled if width is 100%
|
394 |
-
function optinforms_form5_disabled_width_pixels() {
|
395 |
-
global $optinforms_form5_width;
|
396 |
-
if($optinforms_form5_width == 0) {
|
397 |
-
echo "disabled=\"disabled\"";
|
398 |
-
}
|
399 |
-
}
|
400 |
-
|
401 |
-
// FORM5: default width fixed
|
402 |
-
function optinforms_form5_default_width_pixels() {
|
403 |
-
global $optinforms_form5_width_pixels;
|
404 |
-
if(empty($optinforms_form5_width_pixels)) {
|
405 |
-
$optinforms_form5_width_pixels = "700";
|
406 |
-
}
|
407 |
-
return $optinforms_form5_width_pixels;
|
408 |
-
}
|
409 |
-
|
410 |
-
// FORM5: default width fixed
|
411 |
-
function optinforms_form5_get_width() {
|
412 |
-
global $optinforms_form5_width;
|
413 |
-
if($optinforms_form5_width == 0) {
|
414 |
-
// do nothing
|
415 |
-
}
|
416 |
-
elseif($optinforms_form5_width == 1) {
|
417 |
-
return "style=\"width:" . optinforms_form5_default_width_pixels() . "px\"";
|
418 |
-
}
|
419 |
-
}
|
420 |
-
|
421 |
-
// FORM5: hide the title
|
422 |
-
function optinforms_form5_hide_title() {
|
423 |
-
global $optinforms_form5_hide_title;
|
424 |
-
return $optinforms_form5_hide_title;
|
425 |
-
}
|
426 |
-
|
427 |
-
// FORM5: hide the title - convert to CSS
|
428 |
-
function optinforms_form5_hide_title_css() {
|
429 |
-
global $optinforms_form5_hide_title;
|
430 |
-
if($optinforms_form5_hide_title == 1) {
|
431 |
-
return "#optinforms-form5-title{display:none;}";
|
432 |
-
}
|
433 |
-
}
|
434 |
-
|
435 |
-
// FORM5: hide the subtitle
|
436 |
-
function optinforms_form5_hide_subtitle() {
|
437 |
-
global $optinforms_form5_hide_subtitle;
|
438 |
-
return $optinforms_form5_hide_subtitle;
|
439 |
-
}
|
440 |
-
|
441 |
-
// FORM5: hide the subtitle - convert to CSS
|
442 |
-
function optinforms_form5_hide_subtitle_css() {
|
443 |
-
global $optinforms_form5_hide_subtitle;
|
444 |
-
if($optinforms_form5_hide_subtitle == 1) {
|
445 |
-
return "#optinforms-form5-subtitle{display:none;}#optinforms-form5-disclaimer{margin:0 20px;}";
|
446 |
-
}
|
447 |
-
}
|
448 |
-
|
449 |
-
// FORM5: hide the name field
|
450 |
-
function optinforms_form5_hide_name_field() {
|
451 |
-
global $optinforms_form5_hide_name_field;
|
452 |
-
return $optinforms_form5_hide_name_field;
|
453 |
-
}
|
454 |
-
|
455 |
-
// FORM5: hide the name field - convert to CSS
|
456 |
-
function optinforms_form5_hide_name_field_css() {
|
457 |
-
global $optinforms_form5_hide_name_field;
|
458 |
-
if($optinforms_form5_hide_name_field == 1) {
|
459 |
-
return "#optinforms-form5-name-field{display:none;}";
|
460 |
-
}
|
461 |
-
}
|
462 |
-
|
463 |
-
// FORM5: hide the disclaimer
|
464 |
-
function optinforms_form5_hide_disclaimer() {
|
465 |
-
global $optinforms_form5_hide_disclaimer;
|
466 |
-
return $optinforms_form5_hide_disclaimer;
|
467 |
-
}
|
468 |
-
|
469 |
-
// FORM5: hide the disclaimer - convert to CSS
|
470 |
-
function optinforms_form5_hide_disclaimer_css() {
|
471 |
-
global $optinforms_form5_hide_disclaimer;
|
472 |
-
if($optinforms_form5_hide_disclaimer == 1) {
|
473 |
-
return "#optinforms-form5-disclaimer{display:none;}";
|
474 |
-
}
|
475 |
-
}
|
476 |
-
|
477 |
-
// FORM5: if both subtitle and disclaimer are hidden, hide the right container
|
478 |
-
function optinforms_form5_hide_subtitle_disclaimer_css() {
|
479 |
-
global $optinforms_form5_hide_subtitle, $optinforms_form5_hide_disclaimer;
|
480 |
-
if(($optinforms_form5_hide_subtitle == 1) && ($optinforms_form5_hide_disclaimer == 1)) {
|
481 |
-
return "#optinforms-form5-container-right{display:none;}#optinforms-form5-container-left{margin:10px 0;width:100%;}";
|
482 |
-
}
|
483 |
-
}
|
484 |
-
|
485 |
-
// FORM5: get our custom CSS
|
486 |
-
function optinforms_form5_css() {
|
487 |
-
global $optinforms_form5_css;
|
488 |
-
return $optinforms_form5_css;
|
489 |
-
}
|
490 |
-
|
491 |
-
// FORM5: advanced styling options
|
492 |
-
function optinforms_form5_add_custom_css() {
|
493 |
-
global $optinforms_form5_css;
|
494 |
-
return "<style type='text/css'>" . optinforms_form5_hide_title_css() . optinforms_form5_hide_subtitle_css() . optinforms_form5_hide_name_field_css() . optinforms_form5_hide_disclaimer_css() . optinforms_form5_hide_subtitle_disclaimer_css() . $optinforms_form5_css . "</style>";
|
495 |
-
}
|
496 |
-
|
497 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/functions-forms.php
DELETED
@@ -1,267 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// Get excluded posts and create an array
|
4 |
-
function optinforms_get_excluded_posts() {
|
5 |
-
global $optinforms_form_exclude_posts;
|
6 |
-
if(empty($optinforms_form_exclude_posts)) {
|
7 |
-
$optinforms_get_excluded_posts = '0';
|
8 |
-
}
|
9 |
-
if(!is_string($optinforms_form_exclude_posts)) {
|
10 |
-
$optinforms_get_excluded_posts = '0';
|
11 |
-
}
|
12 |
-
else {
|
13 |
-
$optinforms_get_excluded_posts = explode(',', $optinforms_form_exclude_posts);
|
14 |
-
}
|
15 |
-
return $optinforms_get_excluded_posts;
|
16 |
-
}
|
17 |
-
|
18 |
-
// Get excluded pages and create an array
|
19 |
-
function optinforms_get_excluded_pages() {
|
20 |
-
global $optinforms_form_exclude_pages;
|
21 |
-
if(empty($optinforms_form_exclude_pages)) {
|
22 |
-
$optinforms_get_excluded_pages = '0';
|
23 |
-
}
|
24 |
-
if(!is_string($optinforms_form_exclude_pages)) {
|
25 |
-
$optinforms_get_excluded_pages = '0';
|
26 |
-
}
|
27 |
-
else {
|
28 |
-
$optinforms_get_excluded_pages = explode(',', $optinforms_form_exclude_pages);
|
29 |
-
}
|
30 |
-
return $optinforms_get_excluded_pages;
|
31 |
-
}
|
32 |
-
|
33 |
-
// Insert form on post, after first paragraph
|
34 |
-
add_filter( "the_content", "optinform_insert_form_first_paragraph_post" );
|
35 |
-
|
36 |
-
function optinform_insert_form_first_paragraph_post($content) {
|
37 |
-
global $optinforms_form_placement_post, $optinforms_form_exclude_posts;
|
38 |
-
$optinforms_get_excluded_posts = optinforms_get_excluded_posts(); // THIS ONE IS NEW !!!
|
39 |
-
if($optinforms_form_placement_post == '1'){
|
40 |
-
$ad_code = optinforms_create_form();
|
41 |
-
if(empty($optinforms_form_exclude_posts) && is_single()) {
|
42 |
-
return optinform_insert_form_after_paragraph($ad_code, 1, $content);
|
43 |
-
}
|
44 |
-
elseif (!empty($optinforms_form_exclude_posts) && is_single()) {
|
45 |
-
if(is_single($optinforms_get_excluded_posts)) {
|
46 |
-
// do nothing
|
47 |
-
}
|
48 |
-
else {
|
49 |
-
return optinform_insert_form_after_paragraph($ad_code, 1, $content);
|
50 |
-
}
|
51 |
-
}
|
52 |
-
}
|
53 |
-
else {
|
54 |
-
// do nothing
|
55 |
-
}
|
56 |
-
return $content;
|
57 |
-
}
|
58 |
-
|
59 |
-
// Insert form on page, after first paragraph
|
60 |
-
add_filter( "the_content", "optinform_insert_form_first_paragraph_page" );
|
61 |
-
|
62 |
-
function optinform_insert_form_first_paragraph_page($content) {
|
63 |
-
global $optinforms_form_placement_page;
|
64 |
-
$optinforms_get_excluded_pages = optinforms_get_excluded_pages(); // THIS ONE IS NEW !!!
|
65 |
-
if($optinforms_form_placement_page == '1'){
|
66 |
-
$ad_code = optinforms_create_form();
|
67 |
-
if(is_page()) {
|
68 |
-
if(is_page($optinforms_get_excluded_pages)) {
|
69 |
-
// do nothing
|
70 |
-
}
|
71 |
-
else {
|
72 |
-
return optinform_insert_form_after_paragraph($ad_code, 1, $content);
|
73 |
-
}
|
74 |
-
}
|
75 |
-
}
|
76 |
-
else {
|
77 |
-
// do nothing
|
78 |
-
}
|
79 |
-
return $content;
|
80 |
-
}
|
81 |
-
|
82 |
-
// Insert form on post, after second paragraph
|
83 |
-
add_filter( "the_content", "optinform_insert_form_second_paragraph_post" );
|
84 |
-
|
85 |
-
function optinform_insert_form_second_paragraph_post($content) {
|
86 |
-
global $optinforms_form_placement_post;
|
87 |
-
$optinforms_get_excluded_posts = optinforms_get_excluded_posts(); // THIS ONE IS NEW !!!
|
88 |
-
if($optinforms_form_placement_post == '2'){
|
89 |
-
$ad_code = optinforms_create_form();
|
90 |
-
if(is_single()) {
|
91 |
-
if(is_single($optinforms_get_excluded_posts)) {
|
92 |
-
// do nothing
|
93 |
-
}
|
94 |
-
else {
|
95 |
-
return optinform_insert_form_after_paragraph($ad_code, 2, $content);
|
96 |
-
}
|
97 |
-
}
|
98 |
-
}
|
99 |
-
else {
|
100 |
-
// do nothing
|
101 |
-
}
|
102 |
-
return $content;
|
103 |
-
}
|
104 |
-
|
105 |
-
// Insert form on page, after second paragraph
|
106 |
-
add_filter( "the_content", "optinform_insert_form_second_paragraph_page" );
|
107 |
-
|
108 |
-
function optinform_insert_form_second_paragraph_page($content) {
|
109 |
-
global $optinforms_form_placement_page;
|
110 |
-
$optinforms_get_excluded_pages = optinforms_get_excluded_pages(); // THIS ONE IS NEW !!!
|
111 |
-
if($optinforms_form_placement_page == '2'){
|
112 |
-
$ad_code = optinforms_create_form();
|
113 |
-
if(is_page()) {
|
114 |
-
if(is_page($optinforms_get_excluded_pages)) {
|
115 |
-
// do nothing
|
116 |
-
}
|
117 |
-
else {
|
118 |
-
return optinform_insert_form_after_paragraph($ad_code, 2, $content);
|
119 |
-
}
|
120 |
-
}
|
121 |
-
}
|
122 |
-
else {
|
123 |
-
// do nothing
|
124 |
-
}
|
125 |
-
return $content;
|
126 |
-
}
|
127 |
-
|
128 |
-
// Help us insert form in between paragraphs
|
129 |
-
function optinform_insert_form_after_paragraph($insertion, $paragraph_id, $content) {
|
130 |
-
$closing_p = '</p>';
|
131 |
-
$paragraphs = explode($closing_p, $content);
|
132 |
-
foreach ($paragraphs as $index => $paragraph) {
|
133 |
-
if (trim($paragraph)) {
|
134 |
-
$paragraphs[$index] .= $closing_p;
|
135 |
-
}
|
136 |
-
if ($paragraph_id == $index + 1) {
|
137 |
-
$paragraphs[$index] .= $insertion;
|
138 |
-
}
|
139 |
-
}
|
140 |
-
return implode('', $paragraphs);
|
141 |
-
}
|
142 |
-
|
143 |
-
// Insert form after post content
|
144 |
-
add_filter( "the_content", "optinforms_insert_form_after_post" );
|
145 |
-
|
146 |
-
function optinforms_insert_form_after_post($content) {
|
147 |
-
global $optinforms_form_placement_post, $optinforms_form_exclude_posts;
|
148 |
-
$optinforms_get_excluded_posts = optinforms_get_excluded_posts(); // THIS ONE IS NEW !!!
|
149 |
-
if($optinforms_form_placement_post == '3' || empty($optinforms_form_placement_post)) {
|
150 |
-
|
151 |
-
if(empty($optinforms_form_exclude_posts) && is_single()) {
|
152 |
-
$content .= optinforms_create_form();
|
153 |
-
}
|
154 |
-
elseif (!empty($optinforms_form_exclude_posts) && is_single()) {
|
155 |
-
if(is_single($optinforms_get_excluded_posts)) {
|
156 |
-
// do nothing
|
157 |
-
}
|
158 |
-
else {
|
159 |
-
$content .= optinforms_create_form();
|
160 |
-
}
|
161 |
-
}
|
162 |
-
|
163 |
-
}
|
164 |
-
return $content;
|
165 |
-
}
|
166 |
-
|
167 |
-
// Insert form after page content
|
168 |
-
add_filter( "the_content", "optinforms_insert_form_after_page" );
|
169 |
-
|
170 |
-
function optinforms_insert_form_after_page($content) {
|
171 |
-
global $optinforms_form_placement_page, $optinforms_form_exclude_pages;
|
172 |
-
$optinforms_get_excluded_pages = optinforms_get_excluded_pages(); // THIS ONE IS NEW !!!
|
173 |
-
if($optinforms_form_placement_page == '3' || empty($optinforms_form_placement_page)) {
|
174 |
-
if(is_page()) {
|
175 |
-
if(is_page($optinforms_get_excluded_pages)) {
|
176 |
-
// do nothing
|
177 |
-
}
|
178 |
-
else {
|
179 |
-
$content .= optinforms_create_form();
|
180 |
-
}
|
181 |
-
}
|
182 |
-
}
|
183 |
-
return $content;
|
184 |
-
}
|
185 |
-
|
186 |
-
// Create our shortcode for inclusion in sidebar
|
187 |
-
add_shortcode( 'optinform', 'optinforms_create_form' );
|
188 |
-
|
189 |
-
// Make sure our shortcode will work in widgets
|
190 |
-
add_filter('widget_text', 'do_shortcode');
|
191 |
-
|
192 |
-
// Code comment beginning
|
193 |
-
function optinforms_code_comment(){
|
194 |
-
return "\n\n<!-- Form created by Optin Forms plugin by Codeleon: create beautiful optin forms with ease! -->\n<!-- http://codeleon.com/products/optin-forms/ -->\n";
|
195 |
-
}
|
196 |
-
|
197 |
-
// Code comment end
|
198 |
-
function optinforms_code_comment_end(){
|
199 |
-
return "\n<!-- / Optin Forms -->\n\n";
|
200 |
-
}
|
201 |
-
|
202 |
-
// Form 1
|
203 |
-
function optinforms_create_form() {
|
204 |
-
global $optinforms_form_design;
|
205 |
-
// echo $optinforms_form_design;
|
206 |
-
if($optinforms_form_design == 'optinforms_form_design_option1') {
|
207 |
-
return "" . optinforms_code_comment() . "<div id=\"optinforms-form1-container\" " . optinforms_form1_get_width() . ">" . optinforms_before_form() . "<form method=\"post\" " . optinforms_form_target_blank() . " action=\"" . optinforms_get_form_action() . "\" " . optinforms_form_action_appendix() . ">" . optinforms_get_form_identifiers() . "<div id=\"optinforms-form1\" style=\"background:" . optinforms_form1_default_background() . "; border-color:" . optinforms_form1_default_border() . "\"><p id=\"optinforms-form1-title\" style=\"font-family:" . optinforms_form1_default_title_font() . "; font-size:" . optinforms_form1_default_title_size() . "; line-height:" . optinforms_form1_default_title_size() . "; color:" . optinforms_form1_default_title_color() . "\">" . optinforms_form1_default_title() ."</p><p id=\"optinforms-form1-subtitle\" style=\"font-family:" . optinforms_form1_default_subtitle_font() . "; font-size:" . optinforms_form1_default_subtitle_size() . "; line-height:" . optinforms_form1_default_subtitle_size() . "; color:" . optinforms_form1_default_subtitle_color() . "\">" . optinforms_form1_default_subtitle() . "</p><div id=\"optinforms-form1-name-field-container\"> <input type=\"text\" id=\"optinforms-form1-name-field\" name=\"" . optinforms_get_name_field() . "\" placeholder=\"" . optinforms_form1_default_name_field() . "\" style=\"font-family:" . optinforms_form1_default_fields_font() . "; font-size:" . optinforms_form1_default_fields_size() . "; color:" . optinforms_form1_default_fields_color() . "\" /></div><!--optinforms-form1-name-field-container--><div id=\"optinforms-form1-email-field-container\"><input type=\"text\" id=\"optinforms-form1-email-field\" name=\"" . optinforms_get_email_field() . "\" placeholder=\"" . optinforms_form1_default_email_field() . "\" style=\"font-family:" . optinforms_form1_default_fields_font() . "; font-size:" . optinforms_form1_default_fields_size() . "; color:" . optinforms_form1_default_fields_color() . "\" /></div><!--optinforms-form1-email-field-container--><div id=\"optinforms-form1-button-container\"><input type=\"submit\" name=\"submit\" id=\"optinforms-form1-button\" value=\"" . optinforms_form1_default_button_text() . "\" style=\"font-family:" . optinforms_form1_default_button_text_font() . "; font-size:" . optinforms_form1_default_button_text_size() . "; color:" . optinforms_form1_default_button_text_color() . "; background-color:" . optinforms_form1_default_button_background() . "\" /></div><!--optinforms-form1-button-container--><div class=\"clear\"></div><p id=\"optinforms-form1-disclaimer\" style=\"font-family:" . optinforms_form1_default_disclaimer_font() . "; font-size:" . optinforms_form1_default_disclaimer_size() . "; line-height:" . optinforms_form1_default_disclaimer_size() . "; color:" . optinforms_form1_default_disclaimer_color() . "\">" . optinforms_form1_default_disclaimer() . "</p></div><!--optinforms-form1--><div class=\"clear\"></div>" . optinforms_powered_by() . "</form></div><!--optinforms-form1-container--><div class=\"clear\"></div>" . optinforms_code_comment_end() . optinforms_form1_add_custom_css() . "";
|
208 |
-
}
|
209 |
-
elseif($optinforms_form_design == 'optinforms_form_design_option2') {
|
210 |
-
return "" . optinforms_code_comment() . "<div id=\"optinforms-form2-container\" " . optinforms_form2_get_width() . ">" . optinforms_before_form() . "<form method=\"post\" " . optinforms_form_target_blank() . " action=\"" . optinforms_get_form_action() . "\" " . optinforms_form_action_appendix() . ">" . optinforms_get_form_identifiers() . "<div id=\"optinforms-form2\" style=\"background:" . optinforms_form2_default_background() . "\"><div id=\"optinforms-form2-title-container\"><div id=\"optinforms-form2-title\" style=\"font-family:" . optinforms_form2_default_title_font() . "; font-size:" . optinforms_form2_default_title_size() . "; line-height:" . optinforms_form2_default_title_size() . "; color:" . optinforms_form2_default_title_color() . "\">" . optinforms_form2_default_title() ."</div><!--optinforms-form2-title--></div><!--optinforms-form2-title-container--><div id=\"optinforms-form2-email-field-container\"><input type=\"text\" id=\"optinforms-form2-email-field\" name=\"" . optinforms_get_email_field() . "\" placeholder=\"" . optinforms_form2_default_email_field() . "\" style=\"font-family:" . optinforms_form2_default_fields_font() . "; font-size:" . optinforms_form2_default_fields_size() . "; color:" . optinforms_form2_default_fields_color() . "\" /></div><!--optinforms-form2-email-field-container--><div id=\"optinforms-form2-button-container\"><input type=\"submit\" name=\"submit\" id=\"optinforms-form2-button\" value=\"" . optinforms_form2_default_button_text() . "\" style=\"font-family:" . optinforms_form2_default_button_text_font() . "; font-size:" . optinforms_form2_default_button_text_size() . "; color:" . optinforms_form2_default_button_text_color() . "; background-color:" . optinforms_form2_default_button_background() . "\" /></div><!--optinforms-form2-button-container--><div id=\"optinforms-form2-disclaimer-container\"><p id=\"optinforms-form2-disclaimer\" style=\"font-family:" . optinforms_form2_default_disclaimer_font() . "; font-size:" . optinforms_form2_default_disclaimer_size() . "; line-height:" . optinforms_form2_default_disclaimer_size() . "; color:" . optinforms_form2_default_disclaimer_color() . "\">" . optinforms_form2_default_disclaimer() . "</p></div><!--optinforms-form2-disclaimer-container--><div class=\"clear\"></div></div><!--optinforms-form2--><div class=\"clear\"></div>" . optinforms_powered_by() . "</form></div><!--optinforms-form2-container--><div class=\"clear\"></div>" . optinforms_code_comment_end() . optinforms_form2_add_custom_css() . "";
|
211 |
-
}
|
212 |
-
elseif($optinforms_form_design == 'optinforms_form_design_option3') {
|
213 |
-
return "" . optinforms_code_comment() . "<div id=\"optinforms-form3-container\" " . optinforms_form3_get_width() . ">" . optinforms_before_form() . "<form method=\"post\" " . optinforms_form_target_blank() . " action=\"" . optinforms_get_form_action() . "\" " . optinforms_form_action_appendix() . ">" . optinforms_get_form_identifiers() . "<div id=\"optinforms-form3\"><div id=\"optinforms-form3-inside\" style=\"background:" . optinforms_form3_default_background() . "\"><div id=\"optinforms-form3-container-left\"><div id=\"optinforms-form3-title\" style=\"font-family:" . optinforms_form3_default_title_font() . "; font-size:" . optinforms_form3_default_title_size() . "; line-height:" . optinforms_form3_default_title_size() . "; color:" . optinforms_form3_default_title_color() . "\">" . optinforms_form3_default_title() ."</div><!--optinforms-form3-title--><div id=\"optinforms-form3-subtitle\" style=\"font-family:" . optinforms_form3_default_subtitle_font() . "; font-size:" . optinforms_form3_default_subtitle_size() . "; color:" . optinforms_form3_default_subtitle_color() . "\">" . optinforms_form3_default_subtitle() . "</div><!--optinforms-form3-subtitle--></div><!--optinforms-form3-container-left--><div id=\"optinforms-form3-container-right\"><input type=\"text\" id=\"optinforms-form3-name-field\" name=\"" . optinforms_get_name_field() . "\" placeholder=\"" . optinforms_form3_default_name_field() . "\" style=\"font-family:" . optinforms_form3_default_fields_font() . "; font-size:" . optinforms_form3_default_fields_size() . "; color:" . optinforms_form3_default_fields_color() . "\" /><input type=\"text\" id=\"optinforms-form3-email-field\" name=\"" . optinforms_get_email_field() . "\" placeholder=\"" . optinforms_form3_default_email_field() . "\" style=\"font-family:" . optinforms_form3_default_fields_font() . "; font-size:" . optinforms_form3_default_fields_size() . "; color:" . optinforms_form3_default_fields_color() . "\" /><input type=\"submit\" name=\"submit\" id=\"optinforms-form3-button\" value=\"" . optinforms_form3_default_button_text() . "\" style=\"font-family:" . optinforms_form3_default_button_text_font() . "; font-size:" . optinforms_form3_default_button_text_size() . "; color:" . optinforms_form3_default_button_text_color() . "; background-color:" . optinforms_form3_default_button_background() . "\" /></div><!--optinforms-form3-container-right--><div class=\"clear\"></div></div><!--optinforms-form3-inside--></div><!--optinforms-form3--><div class=\"clear\"></div>" . optinforms_powered_by() . "</form></div><!--optinforms-form3-container--><div class=\"clear\"></div>" . optinforms_code_comment_end() . optinforms_form3_add_custom_css() . "";
|
214 |
-
}
|
215 |
-
elseif($optinforms_form_design == 'optinforms_form_design_option4') {
|
216 |
-
return "" . optinforms_code_comment() . "<div id=\"optinforms-form4-container\" " . optinforms_form4_get_width() . ">" . optinforms_before_form() . "<form method=\"post\" " . optinforms_form_target_blank() . " action=\"" . optinforms_get_form_action() . "\" " . optinforms_form_action_appendix() . ">" . optinforms_get_form_identifiers() . "<div id=\"optinforms-form4\" style=\"background:" . optinforms_form4_default_background() . "; border-color:" . optinforms_form4_default_border() . "\"><div id=\"optinforms-form4-title\" style=\"font-family:" . optinforms_form4_default_title_font() . "; font-size:" . optinforms_form4_default_title_size() . "; line-height:" . optinforms_form4_default_title_size() . "; color:" . optinforms_form4_default_title_color() . "\">" . optinforms_form4_default_title() ."</div><!--optinforms-form4-title--><div id=\"optinforms-form4-subtitle\" style=\"font-family:" . optinforms_form4_default_subtitle_font() . "; font-size:" . optinforms_form4_default_subtitle_size() . "; line-height:" . optinforms_form4_default_subtitle_size() . "; color:" . optinforms_form4_default_subtitle_color() . "\">" . optinforms_form4_default_subtitle() . "</div><!--optinforms-form4-subtitle--><input type=\"text\" id=\"optinforms-form4-email-field\" name=\"" . optinforms_get_email_field() . "\" placeholder=\"" . optinforms_form4_default_email_field() . "\" style=\"font-family:" . optinforms_form4_default_fields_font() . "; font-size:" . optinforms_form4_default_fields_size() . "; color:" . optinforms_form4_default_fields_color() . "\" /><input type=\"submit\" name=\"submit\" id=\"optinforms-form4-button\" value=\"" . optinforms_form4_default_button_text() . "\" style=\"font-family:" . optinforms_form4_default_button_text_font() . "; font-size:" . optinforms_form4_default_button_text_size() . "; color:" . optinforms_form4_default_button_text_color() . "; background-color:" . optinforms_form4_default_button_background() . "\" /><div id=\"optinforms-form4-disclaimer\" style=\"font-family:" . optinforms_form4_default_disclaimer_font() . "; font-size:" . optinforms_form4_default_disclaimer_size() . "; line-height:" . optinforms_form4_default_disclaimer_size() . "; color:" . optinforms_form4_default_disclaimer_color() . "\">" . optinforms_form4_default_disclaimer() . "</div><!--optinforms-form4-disclaimer--><div class=\"clear\"></div></div><!--optinforms-form4--><div class=\"clear\"></div>" . optinforms_powered_by() . "</form></div><!--optinforms-form4-container--><div class=\"clear\"></div>" . optinforms_code_comment_end() . optinforms_form4_add_custom_css() . "";
|
217 |
-
}
|
218 |
-
elseif($optinforms_form_design == 'optinforms_form_design_option5') {
|
219 |
-
return "" . optinforms_code_comment() . "<div id=\"optinforms-form5-container\" " . optinforms_form5_get_width() . ">" . optinforms_before_form() . "<form method=\"post\" " . optinforms_form_target_blank() . " action=\"" . optinforms_get_form_action() . "\" " . optinforms_form_action_appendix() . ">" . optinforms_get_form_identifiers() . "<div id=\"optinforms-form5\" style=\"background:" . optinforms_form5_default_background() . ";\"><div id=\"optinforms-form5-container-left\"><div id=\"optinforms-form5-title\" style=\"font-family:" . optinforms_form5_default_title_font() . "; font-size:" . optinforms_form5_default_title_size() . "; line-height:" . optinforms_form5_default_title_size() . "; color:" . optinforms_form5_default_title_color() . "\">" . optinforms_form5_default_title() ."</div><!--optinforms-form5-title--><input type=\"text\" id=\"optinforms-form5-name-field\" name=\"" . optinforms_get_name_field() . "\" placeholder=\"" . optinforms_form5_default_name_field() . "\" style=\"font-family:" . optinforms_form5_default_fields_font() . "; font-size:" . optinforms_form5_default_fields_size() . "; color:" . optinforms_form5_default_fields_color() . "\" /><input type=\"text\" id=\"optinforms-form5-email-field\" name=\"" . optinforms_get_email_field() . "\" placeholder=\"" . optinforms_form5_default_email_field() . "\" style=\"font-family:" . optinforms_form5_default_fields_font() . "; font-size:" . optinforms_form5_default_fields_size() . "; color:" . optinforms_form5_default_fields_color() . "\" /><input type=\"submit\" name=\"submit\" id=\"optinforms-form5-button\" value=\"" . optinforms_form5_default_button_text() . "\" style=\"font-family:" . optinforms_form5_default_button_text_font() . "; font-size:" . optinforms_form5_default_button_text_size() . "; color:" . optinforms_form5_default_button_text_color() . "; background-color:" . optinforms_form5_default_button_background() . "\" /></div><!--optinforms-form5-container-left--><div id=\"optinforms-form5-container-right\"><div id=\"optinforms-form5-subtitle\" style=\"font-family:" . optinforms_form5_default_subtitle_font() . "; font-size:" . optinforms_form5_default_subtitle_size() . "; color:" . optinforms_form5_default_subtitle_color() . "\">" . optinforms_form5_default_subtitle() . "</div><!--optinforms-form5-subtitle--><div id=\"optinforms-form5-disclaimer\" style=\"font-family:" . optinforms_form5_default_disclaimer_font() . "; font-size:" . optinforms_form5_default_disclaimer_size() . "; color:" . optinforms_form5_default_disclaimer_color() . "\">" . optinforms_form5_default_disclaimer() . "</div><!--optinforms-form5-disclaimer--></div><!--optinforms-form5-container-right--><div class=\"clear\"></div></div><!--optinforms-form5--><div class=\"clear\"></div>" . optinforms_powered_by() . "</form></div><!--optinforms-form5-container--><div class=\"clear\"></div>" . optinforms_code_comment_end() . optinforms_form5_add_custom_css() . "";
|
220 |
-
}
|
221 |
-
else {
|
222 |
-
global $optinforms_forms;
|
223 |
-
|
224 |
-
// Have any custom form designs been registered?
|
225 |
-
if ( is_array( $optinforms_forms ) ) {
|
226 |
-
|
227 |
-
// Loops through registered form designs
|
228 |
-
foreach ( $optinforms_forms as $id => $design ) {
|
229 |
-
|
230 |
-
// Does the current form ID match the saved form ID?
|
231 |
-
if ( $optinforms_form_design == $design->optinform['id'] ) {
|
232 |
-
|
233 |
-
// Does the method exist to output the form?
|
234 |
-
if ( method_exists( $design, 'get_optin_form' ) ) {
|
235 |
-
return optinforms_code_comment() . optinforms_before_form() . '<form method="post" ' . optinforms_form_target_blank() . ' action="' . optinforms_get_form_action() . '" ' . optinforms_form_action_appendix() . '>' . optinforms_get_form_identifiers() . $design->get_optin_form() . '</form><div class="clear">';
|
236 |
-
}
|
237 |
-
}
|
238 |
-
}
|
239 |
-
}
|
240 |
-
}
|
241 |
-
}
|
242 |
-
|
243 |
-
/**
|
244 |
-
* Removes filters from excerpts.
|
245 |
-
*
|
246 |
-
* This was intended to prevent the optin form from being disaplyed during or
|
247 |
-
* after excerpts. However, users were reporting that it was having a broader
|
248 |
-
* impact than intended, so I (@alexmansfield) disabled it. Examples of user
|
249 |
-
* struggles are listed below:
|
250 |
-
*
|
251 |
-
* @see https://wordpress.org/support/topic/forms-not-showing-upvia-form-placement-option?replies=1
|
252 |
-
* @see https://wordpress.org/support/topic/cant-get-the-form-back-after-the-plugin-was-desabled?replies=1
|
253 |
-
*
|
254 |
-
* @param string $excerpt The post excerpt
|
255 |
-
* @return string $excerpt The post excerpt
|
256 |
-
*/
|
257 |
-
function optinforms_remove_from_excerpt( $excerpt ) {
|
258 |
-
remove_filter( "the_content", "optinform_insert_form_first_paragraph_post" );
|
259 |
-
remove_filter( "the_content", "optinform_insert_form_first_paragraph_page" );
|
260 |
-
remove_filter( "the_content", "optinform_insert_form_second_paragraph_post" );
|
261 |
-
remove_filter( "the_content", "optinform_insert_form_second_paragraph_page" );
|
262 |
-
remove_filter( "the_content", "optinforms_insert_form_after_post" );
|
263 |
-
remove_filter( "the_content", "optinforms_insert_form_after_page" );
|
264 |
-
|
265 |
-
return $excerpt;
|
266 |
-
}
|
267 |
-
// add_filter( 'get_the_excerpt', 'optinforms_remove_from_excerpt', 1 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/functions.php
DELETED
@@ -1,624 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// Set global variables
|
4 |
-
$optinforms_email_solution = get_option('optinforms_email_solution');
|
5 |
-
|
6 |
-
$optinforms_form_action_mailchimp = get_option('optinforms_form_action_mailchimp');
|
7 |
-
$optinforms_form_action_madmimi = get_option('optinforms_form_action_madmimi');
|
8 |
-
$optinforms_form_action_interspire = get_option('optinforms_form_action_interspire');
|
9 |
-
|
10 |
-
$optinforms_form_list_name_aweber = get_option('optinforms_form_list_name_aweber');
|
11 |
-
$optinforms_form_redirect_aweber = get_option('optinforms_form_redirect_aweber');
|
12 |
-
$optinforms_form_listid_icontact = get_option('optinforms_form_listid_icontact');
|
13 |
-
$optinforms_form_specialid_icontact = get_option('optinforms_form_specialid_icontact');
|
14 |
-
$optinforms_form_clientid_icontact = get_option('optinforms_form_clientid_icontact');
|
15 |
-
$optinforms_form_redirect_icontact = get_option('optinforms_form_redirect_icontact');
|
16 |
-
$optinforms_form_error_icontact = get_option('optinforms_form_error_icontact');
|
17 |
-
$optinforms_form_webformid_getresponse = get_option('optinforms_form_webformid_getresponse');
|
18 |
-
$optinforms_form_name_field_interspire = get_option('optinforms_form_name_field_interspire');
|
19 |
-
$optinforms_form_id_convertkit = get_option('optinforms_form_id_convertkit');
|
20 |
-
$optinforms_form_success_convertkit = get_option('optinforms_form_success_convertkit');
|
21 |
-
$optinforms_form_error_convertkit = get_option('optinforms_form_error_convertkit');
|
22 |
-
|
23 |
-
$optinforms_included_fonts = array ("Arial", "Baumans", "Belgrano", "Chewy", "Cinzel Decorative", "Coming Soon", "Contrail One", "Damion", "Dancing Script", "Droid Sans", "Droid Serif", "Englebert", "Fenix", "Flavors", "Fredoka One", "Georgia", "Gloria Hallelujah", "Gochi Hand", "Grand Hotel", "Helvetica", "Lobster", "Luckiest Guy", "Marcellus SC", "News Cycle", "Nixie One", "Oleo Script", "Open Sans", "Oswald", "Overlock SC", "Pacifico", "Parisienne", "Quicksand", "Racing Sans One", "Roboto Condensed", "Russo One", "Sanchez", "Shadows Into Light", "Share Tech", "Signika Negative", "Tahoma", "Times New Roman", "Titan One", "Unkempt", "Verdana", "Viga");
|
24 |
-
$optinforms_included_fonts_simple = array ("Arial, Helvetica, sans-serif", "Times New Roman, Times, serif", "Tahoma, Geneva, sans-serif", "Courier New, Courier, monospace", "Georgia, Times New Roman, Times, serif", "Trebuchet MS, Arial, sans-serif", "Verdana, Geneva, sans-serif", "Palatino Linotype, Book Antiqua, serif");
|
25 |
-
|
26 |
-
$optinforms_form_design = get_option('optinforms_form_design');
|
27 |
-
$optinforms_form_placement_post = get_option('optinforms_form_placement_post');
|
28 |
-
$optinforms_form_placement_page = get_option('optinforms_form_placement_page');
|
29 |
-
$optinforms_form_placement_popup = get_option('optinforms_form_placement_popup');
|
30 |
-
$optinforms_form_placement_box = get_option('optinforms_form_placement_box');
|
31 |
-
$optinforms_form_placement_bar = get_option('optinforms_form_placement_bar');
|
32 |
-
$optinforms_form_exclude_posts = get_option('optinforms_form_exclude_posts');
|
33 |
-
$optinforms_form_exclude_pages = get_option('optinforms_form_exclude_pages');
|
34 |
-
$optinforms_powered_by = get_option('optinforms_powered_by');
|
35 |
-
$optinforms_form_target = get_option('optinforms_form_target');
|
36 |
-
|
37 |
-
|
38 |
-
// Add tabs for main page
|
39 |
-
function optinforms_menu_tabs() {
|
40 |
-
echo "<ul id=\"optinforms-menu-tabs\" class=\"shadetabs\">
|
41 |
-
<li><a href=\"#\" rel=\"optinforms-email-solution-tab\" class=\"selected\">" . __('Email Solution', 'optin-forms') . "</a></li>
|
42 |
-
<li><a href=\"#\" rel=\"optinforms-posts-tab\">" . __('Form', 'optin-forms') . "</a></li>
|
43 |
-
</ul>
|
44 |
-
<div class=\"clear\"></div>";
|
45 |
-
}
|
46 |
-
|
47 |
-
// Define an email solution
|
48 |
-
function optinforms_get_email_solution() {
|
49 |
-
global $optinforms_email_solution;
|
50 |
-
if(empty($optinforms_email_solution)) {
|
51 |
-
$optinforms_email_solution = "optinforms_email_solution_option1";
|
52 |
-
}
|
53 |
-
return $optinforms_email_solution;
|
54 |
-
}
|
55 |
-
|
56 |
-
// Anything we need to display before the <form> tag
|
57 |
-
function optinforms_before_form() {
|
58 |
-
global $optinforms_email_solution;
|
59 |
-
if(empty($optinforms_email_solution)) {
|
60 |
-
// do nothing
|
61 |
-
}
|
62 |
-
// add Aweber form action
|
63 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option1') {
|
64 |
-
// do nothing
|
65 |
-
}
|
66 |
-
// add iContact form action
|
67 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option2') {
|
68 |
-
// do nothing
|
69 |
-
}
|
70 |
-
// add Mailchimp form action
|
71 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option3') {
|
72 |
-
// do nothing
|
73 |
-
}
|
74 |
-
// add GetResponse form action
|
75 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option4') {
|
76 |
-
// do nothing
|
77 |
-
}
|
78 |
-
// add Mad Mimi form action
|
79 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option5') {
|
80 |
-
// do nothing
|
81 |
-
}
|
82 |
-
// add Interspire form action
|
83 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option6') {
|
84 |
-
// do nothing
|
85 |
-
}
|
86 |
-
// add Convertkit action
|
87 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
|
88 |
-
return "<div id=\"ck_success_msg\" style=\"display:none;\"><p>" . optinforms_form_get_success_convertkit() . "</p></div>";
|
89 |
-
}
|
90 |
-
}
|
91 |
-
|
92 |
-
// Add our form action
|
93 |
-
function optinforms_get_form_action() {
|
94 |
-
global $optinforms_email_solution;
|
95 |
-
if(empty($optinforms_email_solution)) {
|
96 |
-
// do nothing
|
97 |
-
}
|
98 |
-
// add Aweber form action
|
99 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option1') {
|
100 |
-
return "https://www.aweber.com/scripts/addlead.pl";
|
101 |
-
}
|
102 |
-
// add iContact form action
|
103 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option2') {
|
104 |
-
return optinforms_form_action_icontact();
|
105 |
-
}
|
106 |
-
// add Mailchimp form action
|
107 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option3') {
|
108 |
-
return optinforms_form_action_mailchimp();
|
109 |
-
}
|
110 |
-
// add GetResponse form action
|
111 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option4') {
|
112 |
-
return "https://app.getresponse.com/add_subscriber.html";
|
113 |
-
}
|
114 |
-
// add Mad Mimi form action
|
115 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option5') {
|
116 |
-
return optinforms_form_action_madmimi();
|
117 |
-
}
|
118 |
-
// add Interspire form action
|
119 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option6') {
|
120 |
-
return optinforms_form_action_interspire();
|
121 |
-
}
|
122 |
-
// add Convertkit action
|
123 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
|
124 |
-
return optinforms_form_action_convertkit();
|
125 |
-
}
|
126 |
-
}
|
127 |
-
|
128 |
-
// Add our form action
|
129 |
-
function optinforms_form_action_appendix() {
|
130 |
-
global $optinforms_email_solution;
|
131 |
-
if(empty($optinforms_email_solution)) {
|
132 |
-
// do nothing
|
133 |
-
}
|
134 |
-
// add Aweber form action
|
135 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option1') {
|
136 |
-
// do nothing
|
137 |
-
}
|
138 |
-
// add iContact form action
|
139 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option2') {
|
140 |
-
// do nothing
|
141 |
-
}
|
142 |
-
// add Mailchimp form action
|
143 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option3') {
|
144 |
-
// do nothing
|
145 |
-
}
|
146 |
-
// add GetResponse form action
|
147 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option4') {
|
148 |
-
// do nothing
|
149 |
-
}
|
150 |
-
// add Mad Mimi form action
|
151 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option5') {
|
152 |
-
// do nothing
|
153 |
-
}
|
154 |
-
// add Interspire form action
|
155 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option6') {
|
156 |
-
// do nothing
|
157 |
-
}
|
158 |
-
// add Convertkit action
|
159 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
|
160 |
-
return "id=\"ck_subscribe_form\" data-remote=\"true\"";
|
161 |
-
}
|
162 |
-
}
|
163 |
-
|
164 |
-
// MailChimp form action
|
165 |
-
function optinforms_form_action_mailchimp() {
|
166 |
-
global $optinforms_form_action_mailchimp;
|
167 |
-
if(empty($optinforms_form_action_mailchimp)) {
|
168 |
-
$optinforms_form_action_mailchimp = "";
|
169 |
-
} else {
|
170 |
-
// Let's check whether user has entered entire MailChimp HTML code
|
171 |
-
if (strpos($optinforms_form_action_mailchimp, 'Begin MailChimp Signup Form') !== false) {
|
172 |
-
// if yes, strip it to get just the URL
|
173 |
-
preg_match('|form action="([^"]*?)" method="post" id="mc-embedded-subscribe-form"|i', $optinforms_form_action_mailchimp, $matches);
|
174 |
-
$optinforms_mailchimp_html_code = $matches[1];
|
175 |
-
// Output our link and replace & with & to keep it HTML5
|
176 |
-
$optinforms_form_action_mailchimp = str_replace("&", "&", $optinforms_mailchimp_html_code);
|
177 |
-
} else {
|
178 |
-
// do nothing
|
179 |
-
}
|
180 |
-
}
|
181 |
-
return $optinforms_form_action_mailchimp;
|
182 |
-
}
|
183 |
-
|
184 |
-
// MailChimp form action
|
185 |
-
function optinforms_form_action_icontact() {
|
186 |
-
$special_id = optinforms_form_specialid_icontact();
|
187 |
-
$list_id = optinforms_form_listid_icontact();
|
188 |
-
$client_id = optinforms_form_clientid_icontact();
|
189 |
-
return 'https://app.icontact.com/icp/core/mycontacts/signup/designer/form/?id=' . $special_id . '&cid=' . $client_id . '&lid=' . $list_id;
|
190 |
-
}
|
191 |
-
|
192 |
-
// Convertkit form action
|
193 |
-
function optinforms_form_action_convertkit() {
|
194 |
-
return "https://app.convertkit.com/landing_pages/" . optinforms_form_id_convertkit() . "/subscribe";
|
195 |
-
}
|
196 |
-
|
197 |
-
// Convertkit success message
|
198 |
-
function optinforms_form_get_success_convertkit() {
|
199 |
-
global $optinforms_form_success_convertkit;
|
200 |
-
if(empty($optinforms_form_success_convertkit)) {
|
201 |
-
$optinforms_form_success_convertkit = "Success! Now check your email to confirm your subscription.";
|
202 |
-
}
|
203 |
-
return $optinforms_form_success_convertkit;
|
204 |
-
}
|
205 |
-
|
206 |
-
// Convertkit error message
|
207 |
-
function optinforms_form_get_error_convertkit() {
|
208 |
-
global $optinforms_form_error_convertkit;
|
209 |
-
if(empty($optinforms_form_error_convertkit)) {
|
210 |
-
$optinforms_form_error_convertkit = "There was an error submitting your subscription. Please try again.";
|
211 |
-
}
|
212 |
-
return $optinforms_form_error_convertkit;
|
213 |
-
}
|
214 |
-
|
215 |
-
// Mad Mimi form action
|
216 |
-
function optinforms_form_action_madmimi() {
|
217 |
-
global $optinforms_form_action_madmimi;
|
218 |
-
if(empty($optinforms_form_action_madmimi)) {
|
219 |
-
$optinforms_form_action_madmimi = "";
|
220 |
-
}
|
221 |
-
return $optinforms_form_action_madmimi;
|
222 |
-
}
|
223 |
-
|
224 |
-
// Interspire form action
|
225 |
-
function optinforms_form_action_interspire() {
|
226 |
-
global $optinforms_form_action_interspire;
|
227 |
-
if(empty($optinforms_form_action_interspire)) {
|
228 |
-
$optinforms_form_action_interspire = "";
|
229 |
-
}
|
230 |
-
return $optinforms_form_action_interspire;
|
231 |
-
}
|
232 |
-
|
233 |
-
// Aweber list name
|
234 |
-
function optinforms_form_list_name_aweber() {
|
235 |
-
global $optinforms_form_list_name_aweber;
|
236 |
-
if(empty($optinforms_form_list_name_aweber)) {
|
237 |
-
$optinforms_form_list_name_aweber = "";
|
238 |
-
}
|
239 |
-
return $optinforms_form_list_name_aweber;
|
240 |
-
}
|
241 |
-
|
242 |
-
// Aweber redirect URL
|
243 |
-
function optinforms_form_redirect_aweber() {
|
244 |
-
global $optinforms_form_redirect_aweber;
|
245 |
-
if(empty($optinforms_form_redirect_aweber)) {
|
246 |
-
$optinforms_form_redirect_aweber = "";
|
247 |
-
}
|
248 |
-
return $optinforms_form_redirect_aweber;
|
249 |
-
}
|
250 |
-
|
251 |
-
// iContact list ID
|
252 |
-
function optinforms_form_listid_icontact() {
|
253 |
-
global $optinforms_form_listid_icontact;
|
254 |
-
if(empty($optinforms_form_listid_icontact)) {
|
255 |
-
$optinforms_form_listid_icontact = "";
|
256 |
-
}
|
257 |
-
return $optinforms_form_listid_icontact;
|
258 |
-
}
|
259 |
-
|
260 |
-
// iContact special ID
|
261 |
-
function optinforms_form_specialid_icontact() {
|
262 |
-
global $optinforms_form_specialid_icontact;
|
263 |
-
if(empty($optinforms_form_specialid_icontact)) {
|
264 |
-
$optinforms_form_specialid_icontact = "";
|
265 |
-
}
|
266 |
-
return $optinforms_form_specialid_icontact;
|
267 |
-
}
|
268 |
-
|
269 |
-
// iContact client ID
|
270 |
-
function optinforms_form_clientid_icontact() {
|
271 |
-
global $optinforms_form_clientid_icontact;
|
272 |
-
if(empty($optinforms_form_clientid_icontact)) {
|
273 |
-
$optinforms_form_clientid_icontact = "";
|
274 |
-
}
|
275 |
-
return $optinforms_form_clientid_icontact;
|
276 |
-
}
|
277 |
-
|
278 |
-
// iContact redirect URL
|
279 |
-
function optinforms_form_redirect_icontact() {
|
280 |
-
global $optinforms_form_redirect_icontact;
|
281 |
-
if(empty($optinforms_form_redirect_icontact)) {
|
282 |
-
$optinforms_form_redirect_icontact = "";
|
283 |
-
}
|
284 |
-
return $optinforms_form_redirect_icontact;
|
285 |
-
}
|
286 |
-
|
287 |
-
// iContact error URL
|
288 |
-
function optinforms_form_error_icontact() {
|
289 |
-
global $optinforms_form_error_icontact;
|
290 |
-
if(empty($optinforms_form_error_icontact)) {
|
291 |
-
$optinforms_form_error_icontact = "";
|
292 |
-
}
|
293 |
-
return $optinforms_form_error_icontact;
|
294 |
-
}
|
295 |
-
|
296 |
-
// GetResponse webform ID
|
297 |
-
function optinforms_form_webformid_getresponse() {
|
298 |
-
global $optinforms_form_webformid_getresponse;
|
299 |
-
if(empty($optinforms_form_webformid_getresponse)) {
|
300 |
-
$optinforms_form_webformid_getresponse = "";
|
301 |
-
}
|
302 |
-
return $optinforms_form_webformid_getresponse;
|
303 |
-
}
|
304 |
-
|
305 |
-
// Interspire name ID
|
306 |
-
function optinforms_form_name_field_interspire() {
|
307 |
-
global $optinforms_form_name_field_interspire;
|
308 |
-
if(empty($optinforms_form_name_field_interspire)) {
|
309 |
-
$optinforms_form_name_field_interspire = "";
|
310 |
-
}
|
311 |
-
return $optinforms_form_name_field_interspire;
|
312 |
-
}
|
313 |
-
|
314 |
-
// Convertkit form ID
|
315 |
-
function optinforms_form_id_convertkit() {
|
316 |
-
global $optinforms_form_id_convertkit;
|
317 |
-
if(empty($optinforms_form_id_convertkit)) {
|
318 |
-
$optinforms_form_id_convertkit = "";
|
319 |
-
}
|
320 |
-
return $optinforms_form_id_convertkit;
|
321 |
-
}
|
322 |
-
|
323 |
-
// Open our form in a new window?
|
324 |
-
function optinforms_form_target_blank() {
|
325 |
-
global $optinforms_form_target;
|
326 |
-
if($optinforms_form_target == 1) {
|
327 |
-
return "target=\"_blank\"";
|
328 |
-
} else {
|
329 |
-
//do nothing
|
330 |
-
}
|
331 |
-
}
|
332 |
-
|
333 |
-
// Add our identifiers to the form
|
334 |
-
function optinforms_get_form_identifiers() {
|
335 |
-
global $optinforms_email_solution;
|
336 |
-
if(empty($optinforms_email_solution)) {
|
337 |
-
// do nothing
|
338 |
-
}
|
339 |
-
// add Aweber identifiers
|
340 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option1') {
|
341 |
-
return "<input type=\"hidden\" name=\"listname\" value=\"" . optinforms_form_list_name_aweber() . "\" /><input type=\"hidden\" name=\"redirect\" value=\"" . optinforms_form_redirect_aweber() . "\" /><input type=\"hidden\" name=\"meta_message\" value=\"1\" />";
|
342 |
-
}
|
343 |
-
// add iContact identifiers
|
344 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option2') {
|
345 |
-
return "<input type=\"hidden\" name=\"listid\" value=\"" . optinforms_form_listid_icontact() . "\"><input type=\"hidden\" name=\"specialid:" . optinforms_form_listid_icontact() . "\" value=\"" . optinforms_form_specialid_icontact() . "\"><input type=\"hidden\" name=\"clientid\" value=\"" . optinforms_form_clientid_icontact() . "\"><input type=\"hidden\" name=\"redirect\" value=\"" . optinforms_form_redirect_icontact() . "\"><input type=\"hidden\" name=\"errorredirect\" value=\"" . optinforms_form_error_icontact() . "\">";
|
346 |
-
}
|
347 |
-
// add Mailchimp identifiers
|
348 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option3') {
|
349 |
-
// do nothing
|
350 |
-
}
|
351 |
-
// add GetResponse identifiers
|
352 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option4') {
|
353 |
-
return "<input type=\"hidden\" name=\"campaign_token\" value=\"" . optinforms_form_webformid_getresponse() . "\" /><input type=\"hidden\" name=\"start_day\" value=\"0\" />";
|
354 |
-
}
|
355 |
-
// add Mad Mimi identifiers
|
356 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option5') {
|
357 |
-
// do nothing
|
358 |
-
}
|
359 |
-
// add Interspire identifiers
|
360 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option6') {
|
361 |
-
// do nothing
|
362 |
-
}
|
363 |
-
// add Convertkit identifiers
|
364 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
|
365 |
-
return "<script src=\"https://app.convertkit.com/assets/CKJS4.js?v=21\"></script><input type=\"hidden\" name=\"id\" value=\"" . optinforms_form_id_convertkit() . "\" id=\"landing_page_id\" />
|
366 |
-
<div class=\"ck_errorArea\"><div id=\"ck_error_msg\" style=\"display:none\"><p>" . optinforms_form_get_error_convertkit() . "</p></div></div>
|
367 |
-
";
|
368 |
-
}
|
369 |
-
}
|
370 |
-
|
371 |
-
// Define our name field
|
372 |
-
function optinforms_get_name_field() {
|
373 |
-
global $optinforms_email_solution;
|
374 |
-
if(empty($optinforms_email_solution)) {
|
375 |
-
return "name";
|
376 |
-
}
|
377 |
-
// define Aweber name field
|
378 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option1') {
|
379 |
-
return "name";
|
380 |
-
}
|
381 |
-
// define iContact name field
|
382 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option2') {
|
383 |
-
return "data[fname]";
|
384 |
-
}
|
385 |
-
// define Mailchimp name field
|
386 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option3') {
|
387 |
-
return "FNAME";
|
388 |
-
}
|
389 |
-
// define GetResponse name field
|
390 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option4') {
|
391 |
-
return "name";
|
392 |
-
}
|
393 |
-
// define Mad Mimi name field
|
394 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option5') {
|
395 |
-
return "signup[name]";
|
396 |
-
}
|
397 |
-
// define Interspire name field
|
398 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option6') {
|
399 |
-
return "CustomFields[" . optinforms_form_name_field_interspire() . "]";
|
400 |
-
}
|
401 |
-
// define Convertkit name field
|
402 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
|
403 |
-
return "first_name";
|
404 |
-
}
|
405 |
-
}
|
406 |
-
|
407 |
-
// Define our email field
|
408 |
-
function optinforms_get_email_field() {
|
409 |
-
global $optinforms_email_solution;
|
410 |
-
if(empty($optinforms_email_solution)) {
|
411 |
-
return "email";
|
412 |
-
}
|
413 |
-
// define Aweber email field
|
414 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option1') {
|
415 |
-
return "email";
|
416 |
-
}
|
417 |
-
// define iContact email field
|
418 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option2') {
|
419 |
-
return "data[email]";
|
420 |
-
}
|
421 |
-
// define Mailchimp email field
|
422 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option3') {
|
423 |
-
return "EMAIL";
|
424 |
-
}
|
425 |
-
// define GetResponse email field
|
426 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option4') {
|
427 |
-
return "email";
|
428 |
-
}
|
429 |
-
// define Mad Mimi email field
|
430 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option5') {
|
431 |
-
return "signup[email]";
|
432 |
-
}
|
433 |
-
// define Interspire email field
|
434 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option6') {
|
435 |
-
return "email";
|
436 |
-
}
|
437 |
-
// define Convertkit email field
|
438 |
-
elseif($optinforms_email_solution == 'optinforms_email_solution_option7') {
|
439 |
-
return "email";
|
440 |
-
}
|
441 |
-
}
|
442 |
-
|
443 |
-
// Define a form design
|
444 |
-
function optinforms_get_form_design() {
|
445 |
-
global $optinforms_form_design;
|
446 |
-
if(empty($optinforms_form_design)) {
|
447 |
-
$optinforms_form_design = 01;
|
448 |
-
}
|
449 |
-
return $optinforms_form_design;
|
450 |
-
}
|
451 |
-
|
452 |
-
// Get excluded posts for In Content forms
|
453 |
-
function optinforms_form_exclude_posts() {
|
454 |
-
global $optinforms_form_exclude_posts;
|
455 |
-
return $optinforms_form_exclude_posts;
|
456 |
-
}
|
457 |
-
|
458 |
-
// Get excluded pages for In Content forms
|
459 |
-
function optinforms_form_exclude_pages() {
|
460 |
-
global $optinforms_form_exclude_pages;
|
461 |
-
return $optinforms_form_exclude_pages;
|
462 |
-
}
|
463 |
-
|
464 |
-
// Decide when our admin notices are loaded
|
465 |
-
function optinforms_configuration() {
|
466 |
-
global $optinforms_email_solution, $optinforms_form_list_name_aweber, $optinforms_form_listid_icontact, $optinforms_form_specialid_icontact, $optinforms_form_clientid_icontact, $optinforms_form_action_mailchimp, $optinforms_form_webformid_getresponse, $optinforms_form_action_madmimi, $optinforms_form_action_interspire, $optinforms_form_id_convertkit;
|
467 |
-
if(($optinforms_email_solution == 'optinforms_email_solution_option1') && (empty($optinforms_form_list_name_aweber))) {
|
468 |
-
echo optinforms_configuration_message();
|
469 |
-
}
|
470 |
-
elseif(($optinforms_email_solution == 'optinforms_email_solution_option2') && (empty($optinforms_form_listid_icontact) || empty($optinforms_form_specialid_icontact) || empty($optinforms_form_clientid_icontact))) {
|
471 |
-
echo optinforms_configuration_message();
|
472 |
-
}
|
473 |
-
elseif (($optinforms_email_solution == 'optinforms_email_solution_option3') && (empty($optinforms_form_action_mailchimp))) {
|
474 |
-
echo optinforms_configuration_message();
|
475 |
-
}
|
476 |
-
elseif (($optinforms_email_solution == 'optinforms_email_solution_option4') && (empty($optinforms_form_webformid_getresponse))) {
|
477 |
-
echo optinforms_configuration_message();
|
478 |
-
}
|
479 |
-
elseif (($optinforms_email_solution == 'optinforms_email_solution_option5') && (empty($optinforms_form_action_madmimi))) {
|
480 |
-
echo optinforms_configuration_message();
|
481 |
-
}
|
482 |
-
elseif (($optinforms_email_solution == 'optinforms_email_solution_option6') && (empty($optinforms_form_action_interspire))) {
|
483 |
-
echo optinforms_configuration_message();
|
484 |
-
}
|
485 |
-
elseif (($optinforms_email_solution == 'optinforms_email_solution_option7') && (empty($optinforms_form_id_convertkit))) {
|
486 |
-
echo optinforms_configuration_message();
|
487 |
-
}
|
488 |
-
}
|
489 |
-
|
490 |
-
// Create our admin notice - user needs to configure the plugin
|
491 |
-
function optinforms_configuration_message() {
|
492 |
-
global $current_user;
|
493 |
-
$userid = $current_user->ID;
|
494 |
-
if ( !get_user_meta( $userid, 'optinforms_dismiss_email_configuration' ) ) {
|
495 |
-
echo "<div id=\"message\" class=\"error\">
|
496 |
-
<p>" . __('Your email solution is not configured yet. Your form will not work properly until you configure the settings.', 'optin-forms') . " <a href=\"?page=optinforms&optinforms_dismiss_ec=yes\">" . __('I know, don\'t bug me', 'optin-forms') . "</a></p>
|
497 |
-
</div>";
|
498 |
-
}
|
499 |
-
}
|
500 |
-
|
501 |
-
// Add user meta value when dismiss link is clicked
|
502 |
-
function optinforms_dismiss_admin_notice() {
|
503 |
-
global $current_user;
|
504 |
-
$userid = $current_user->ID;
|
505 |
-
|
506 |
-
// If "Dismiss" link has been clicked, user meta field is added
|
507 |
-
if ( isset( $_GET['optinforms_dismiss_ec'] ) && 'yes' == $_GET['optinforms_dismiss_ec'] ) {
|
508 |
-
add_user_meta( $userid, 'optinforms_dismiss_email_configuration', 'yes', true );
|
509 |
-
}
|
510 |
-
}
|
511 |
-
add_action( 'admin_init', 'optinforms_dismiss_admin_notice' );
|
512 |
-
|
513 |
-
// Show us some love :)
|
514 |
-
function optinforms_powered_by() {
|
515 |
-
global $optinforms_powered_by;
|
516 |
-
if($optinforms_powered_by == 0) {
|
517 |
-
// do nothing
|
518 |
-
}
|
519 |
-
elseif($optinforms_powered_by == 1) {
|
520 |
-
return "<div id=\"optinforms-powered-by\">Powered by <a href=\"http://www.codeleon.com/products/optin-forms\" target=\"_blank\">Optin Forms</a></div><!--optinforms-powered-by-->";
|
521 |
-
}
|
522 |
-
}
|
523 |
-
|
524 |
-
// Check radiobutton show Powered By link
|
525 |
-
function optinforms_powered_by_show() {
|
526 |
-
global $optinforms_powered_by;
|
527 |
-
if($optinforms_powered_by == 1) {
|
528 |
-
echo "checked=\"checked\"";
|
529 |
-
}
|
530 |
-
}
|
531 |
-
|
532 |
-
// Check radiobutton hide Powered By link
|
533 |
-
function optinforms_powered_by_hide() {
|
534 |
-
global $optinforms_powered_by;
|
535 |
-
if($optinforms_powered_by == 0) {
|
536 |
-
echo "checked=\"checked\"";
|
537 |
-
}
|
538 |
-
}
|
539 |
-
|
540 |
-
// Get the fonts which are used on the selected form
|
541 |
-
function optinforms_get_used_fonts() {
|
542 |
-
global $optinforms_form_design;
|
543 |
-
$optinforms_unsupported_fonts = array("Arial", "Georgia", "Helvetica", "Tahoma", "Times New Roman", "Verdana");
|
544 |
-
if($optinforms_form_design == 'optinforms_form_design_option1' || empty($optinforms_form_design)) {
|
545 |
-
global $optinforms_form1_title_font, $optinforms_form1_subtitle_font;
|
546 |
-
|
547 |
-
// Strip unsupported fonts to prevent 'Forbidden' output
|
548 |
-
$optinforms_first_used_font = str_replace($optinforms_unsupported_fonts, "", optinforms_form1_default_title_font());
|
549 |
-
$optinforms_second_used_font = str_replace($optinforms_unsupported_fonts, "", optinforms_form1_default_subtitle_font());
|
550 |
-
|
551 |
-
// Decide whether we need a delimiter
|
552 |
-
if($optinforms_first_used_font == "" || $optinforms_second_used_font == ""){
|
553 |
-
$optinforms_font_delimiter = "";
|
554 |
-
} else {
|
555 |
-
$optinforms_font_delimiter = "%7C";
|
556 |
-
}
|
557 |
-
|
558 |
-
return $optinforms_first_used_font . $optinforms_font_delimiter . $optinforms_second_used_font;
|
559 |
-
}
|
560 |
-
elseif($optinforms_form_design == 'optinforms_form_design_option2') {
|
561 |
-
global $optinforms_form2_title_font;
|
562 |
-
|
563 |
-
// Strip unsupported fonts to prevent 'Forbidden' output
|
564 |
-
$optinforms_first_used_font = str_replace($optinforms_unsupported_fonts, "", optinforms_form2_default_title_font());
|
565 |
-
return $optinforms_first_used_font;
|
566 |
-
}
|
567 |
-
elseif($optinforms_form_design == 'optinforms_form_design_option3') {
|
568 |
-
global $optinforms_form3_title_font, $optinforms_form3_subtitle_font;
|
569 |
-
|
570 |
-
// Strip unsupported fonts to prevent 'Forbidden' output
|
571 |
-
$optinforms_first_used_font = str_replace($optinforms_unsupported_fonts, "", optinforms_form3_default_title_font());
|
572 |
-
$optinforms_second_used_font = str_replace($optinforms_unsupported_fonts, "", optinforms_form3_default_subtitle_font());
|
573 |
-
|
574 |
-
// Decide whether we need a delimiter
|
575 |
-
if($optinforms_first_used_font == "" || $optinforms_second_used_font == ""){
|
576 |
-
$optinforms_font_delimiter = "";
|
577 |
-
} else {
|
578 |
-
$optinforms_font_delimiter = "%7C";
|
579 |
-
}
|
580 |
-
|
581 |
-
return $optinforms_first_used_font . $optinforms_font_delimiter . $optinforms_second_used_font;
|
582 |
-
}
|
583 |
-
elseif($optinforms_form_design == 'optinforms_form_design_option4') {
|
584 |
-
global $optinforms_form4_title_font, $optinforms_form4_subtitle_font;
|
585 |
-
|
586 |
-
// Strip unsupported fonts to prevent 'Forbidden' output
|
587 |
-
$optinforms_first_used_font = str_replace($optinforms_unsupported_fonts, "", optinforms_form4_default_title_font());
|
588 |
-
$optinforms_second_used_font = str_replace($optinforms_unsupported_fonts, "", optinforms_form4_default_subtitle_font());
|
589 |
-
|
590 |
-
// Decide whether we need a delimiter
|
591 |
-
if($optinforms_first_used_font == "" || $optinforms_second_used_font == ""){
|
592 |
-
$optinforms_font_delimiter = "";
|
593 |
-
} else {
|
594 |
-
$optinforms_font_delimiter = "%7C";
|
595 |
-
}
|
596 |
-
|
597 |
-
return $optinforms_first_used_font . $optinforms_font_delimiter . $optinforms_second_used_font;
|
598 |
-
}
|
599 |
-
elseif($optinforms_form_design == 'optinforms_form_design_option5') {
|
600 |
-
global $optinforms_form5_title_font, $optinforms_form5_subtitle_font;
|
601 |
-
|
602 |
-
// Strip unsupported fonts to prevent 'Forbidden' output
|
603 |
-
$optinforms_first_used_font = str_replace($optinforms_unsupported_fonts, "", optinforms_form5_default_title_font());
|
604 |
-
$optinforms_second_used_font = str_replace($optinforms_unsupported_fonts, "", optinforms_form5_default_subtitle_font());
|
605 |
-
|
606 |
-
// Decide whether we need a delimiter
|
607 |
-
if($optinforms_first_used_font == "" || $optinforms_second_used_font == ""){
|
608 |
-
$optinforms_font_delimiter = "";
|
609 |
-
} else {
|
610 |
-
$optinforms_font_delimiter = "%7C";
|
611 |
-
}
|
612 |
-
|
613 |
-
return $optinforms_first_used_font . $optinforms_font_delimiter . $optinforms_second_used_font;
|
614 |
-
}
|
615 |
-
}
|
616 |
-
|
617 |
-
// Now include only these fonts to optimize load time
|
618 |
-
function optinforms_used_fonts() {
|
619 |
-
$optinforms_google_url = "//fonts.googleapis.com/css?family=";
|
620 |
-
return $optinforms_google_url.optinforms_get_used_fonts();
|
621 |
-
|
622 |
-
}
|
623 |
-
|
624 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/options-email-solution.php
DELETED
@@ -1,493 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
<div class="optiongroup">
|
3 |
-
<p><?php echo __('Select your email solution and configure the required fields.', 'optin-forms'); ?></p>
|
4 |
-
<div class="optionleft">
|
5 |
-
<label for="optinforms_email_solution" class="nopointer"><?php echo __('My email solution is', 'optin-forms'); ?></label>
|
6 |
-
</div><!--optionleft-->
|
7 |
-
<div class="optionmiddle">
|
8 |
-
<select name="optinforms_email_solution" id="optinforms_email_solution">
|
9 |
-
<option value="optinforms_email_solution_option1" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option1') { echo 'selected="selected"'; } ?>>AWeber</option>
|
10 |
-
<option value="optinforms_email_solution_option2" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option2') { echo 'selected="selected"'; } ?>>iContact</option>
|
11 |
-
<option value="optinforms_email_solution_option3" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option3') { echo 'selected="selected"'; } ?>>MailChimp</option>
|
12 |
-
<option value="optinforms_email_solution_option4" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option4') { echo 'selected="selected"'; } ?>>GetResponse</option>
|
13 |
-
<option value="optinforms_email_solution_option5" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option5') { echo 'selected="selected"'; } ?>>Mad Mimi</option>
|
14 |
-
<option value="optinforms_email_solution_option6" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option6') { echo 'selected="selected"'; } ?>>Interspire Email Marketer</option>
|
15 |
-
<option value="optinforms_email_solution_option7" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option7') { echo 'selected="selected"'; } ?>>ConvertKit</option>
|
16 |
-
</select>
|
17 |
-
<script type="text/javascript">
|
18 |
-
document.getElementById('optinforms_email_solution').onchange = function() {
|
19 |
-
var i = 1;
|
20 |
-
var myDiv = document.getElementById("optinforms_email_solution_option" + i);
|
21 |
-
while(myDiv) {
|
22 |
-
myDiv.style.display = 'none';
|
23 |
-
myDiv = document.getElementById("optinforms_email_solution_option" + ++i);
|
24 |
-
}
|
25 |
-
document.getElementById(this.value).style.display = 'block';
|
26 |
-
};
|
27 |
-
</script>
|
28 |
-
</div><!--optionmiddle-->
|
29 |
-
<div class="clear"></div>
|
30 |
-
|
31 |
-
</div><!--optiongroup-->
|
32 |
-
|
33 |
-
<div class="optiongroup">
|
34 |
-
<div id="optinforms_email_solution_option1" <?php if (get_option('optinforms_email_solution')== '' || get_option('optinforms_email_solution')== 'optinforms_email_solution_option1') { echo 'style="display:block;"'; } ?>>
|
35 |
-
<!--<p class="optinforms-integration"><a href="#"></?php echo __('Learn how to integrate aWeber: watch the short video', 'optin-forms'); ?></a></p>-->
|
36 |
-
<div class="optiongroup">
|
37 |
-
<div class="optionleft">
|
38 |
-
<label><a onclick="optinforms_explain_aweber()"><span class="explain">?</span></a></label> <label for="optinforms_form_list_name_aweber" class="nopointer"><?php echo __('List ID', 'optin-forms'); ?> <span class="required">*</span></label>
|
39 |
-
</div><!--optionleft-->
|
40 |
-
<div class="optionmiddle">
|
41 |
-
<input type="text" id="optinforms_form_list_name_aweber" name="optinforms_form_list_name_aweber" value="<?php echo optinforms_form_list_name_aweber(); ?>" />
|
42 |
-
</div><!--optionmiddle-->
|
43 |
-
<div class="clear"></div>
|
44 |
-
</div><!--optiongroup-->
|
45 |
-
|
46 |
-
<script type="text/javascript">
|
47 |
-
function optinforms_explain_aweber() {
|
48 |
-
// Get the DOM reference
|
49 |
-
var contentId = document.getElementById("optinforms-explain-aweber");
|
50 |
-
// Toggle
|
51 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
52 |
-
contentId.style.display = "block";
|
53 |
-
}
|
54 |
-
</script>
|
55 |
-
<div id="optinforms-explain-aweber" style="display:none;">
|
56 |
-
<div class="optinforms-step">
|
57 |
-
<h4><?php echo __('How to find your list ID', 'optin-forms'); ?></h4>
|
58 |
-
<p><span class="step">1</span> <?php echo __('Log in to your AWeber account', 'optin-forms'); ?></p>
|
59 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-aweber-001.png" class="step-image" />
|
60 |
-
<p><span class="step">2</span> <?php echo __('Click on List Options in the navigation menu', 'optin-forms'); ?></p>
|
61 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-aweber-002.png" class="step-image" />
|
62 |
-
<p><span class="step">3</span> <?php echo __('Click on List Settings from the submenu options', 'optin-forms'); ?></p>
|
63 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-aweber-003.png" class="step-image" />
|
64 |
-
<p><span class="step">4</span> <?php echo __('You will find your list ID below the List Name field', 'optin-forms'); ?></p>
|
65 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-aweber-004.png" class="step-image" />
|
66 |
-
</div><!--optinforms-step-->
|
67 |
-
</div><!--optinforms-explain-aweber-->
|
68 |
-
|
69 |
-
<div class="optiongroup">
|
70 |
-
<div class="optionleft">
|
71 |
-
<label><a onclick="optinforms_explain_redirect_aweber()"><span class="explain">?</span></a></label> <label for="optinforms_form_redirect_aweber" class="nopointer"><?php echo __('Redirect URL', 'optin-forms'); ?></label>
|
72 |
-
</div><!--optionleft-->
|
73 |
-
<div class="optionmiddle">
|
74 |
-
<input type="text" id="optinforms_form_redirect_aweber" name="optinforms_form_redirect_aweber" value="<?php echo optinforms_form_redirect_aweber(); ?>" />
|
75 |
-
</div><!--optionmiddle-->
|
76 |
-
<div class="clear"></div>
|
77 |
-
</div><!--optiongroup-->
|
78 |
-
|
79 |
-
<script type="text/javascript">
|
80 |
-
function optinforms_explain_redirect_aweber() {
|
81 |
-
// Get the DOM reference
|
82 |
-
var contentId = document.getElementById("optinforms-explain-redirect-aweber");
|
83 |
-
// Toggle
|
84 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
85 |
-
contentId.style.display = "block";
|
86 |
-
}
|
87 |
-
</script>
|
88 |
-
<div id="optinforms-explain-redirect-aweber" style="display:none;">
|
89 |
-
<div class="optinforms-help">
|
90 |
-
<p><?php echo __('Enter the URL of the page where your visitors will be taken to, once they successfully subscribe.', 'optin-forms'); ?> <?php echo __('If you leave this field blank, the default AWeber message will be used.', 'optin-forms'); ?></p>
|
91 |
-
</div><!--optinforms-help-->
|
92 |
-
</div><!--optinforms-explain-redirect-aweber-->
|
93 |
-
|
94 |
-
|
95 |
-
</div><!--optinforms_email_solution_option1-->
|
96 |
-
<div id="optinforms_email_solution_option2" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option2') { echo 'style="display:block;"'; } ?>>
|
97 |
-
<!--<p class="optinforms-integration"></?php echo __('Learn how to integrate iContact: watch the short video', 'optin-forms'); ?></p>-->
|
98 |
-
<div class="optiongroup">
|
99 |
-
<div class="optionleft">
|
100 |
-
<label><a onclick="optinforms_explain_icontact()"><span class="explain">?</span></a></label> <label for="optinforms_form_listid_icontact" class="nopointer"><?php echo __('List ID', 'optin-forms'); ?> <span class="required">*</span></label>
|
101 |
-
</div><!--optionleft-->
|
102 |
-
<div class="optionmiddle">
|
103 |
-
<input type="text" id="optinforms_form_listid_icontact" name="optinforms_form_listid_icontact" value="<?php echo optinforms_form_listid_icontact(); ?>" />
|
104 |
-
</div><!--optionmiddle-->
|
105 |
-
<div class="clear"></div>
|
106 |
-
</div><!--optiongroup-->
|
107 |
-
|
108 |
-
<div class="optiongroup">
|
109 |
-
<div class="optionleft">
|
110 |
-
<label><a onclick="optinforms_explain_icontact()"><span class="explain">?</span></a></label> <label for="optinforms_form_specialid_icontact" class="nopointer"><?php echo __('Special ID', 'optin-forms'); ?> <span class="required">*</span></label>
|
111 |
-
</div><!--optionleft-->
|
112 |
-
<div class="optionmiddle">
|
113 |
-
<input type="text" id="optinforms_form_specialid_icontact" name="optinforms_form_specialid_icontact" value="<?php echo optinforms_form_specialid_icontact(); ?>" />
|
114 |
-
</div><!--optionmiddle-->
|
115 |
-
<div class="clear"></div>
|
116 |
-
</div><!--optiongroup-->
|
117 |
-
|
118 |
-
<div class="optiongroup">
|
119 |
-
<div class="optionleft">
|
120 |
-
<label><a onclick="optinforms_explain_icontact()"><span class="explain">?</span></a></label> <label for="optinforms_form_clientid_icontact" class="nopointer"><?php echo __('Client ID', 'optin-forms'); ?> <span class="required">*</span></label>
|
121 |
-
</div><!--optionleft-->
|
122 |
-
<div class="optionmiddle">
|
123 |
-
<input type="text" id="optinforms_form_clientid_icontact" name="optinforms_form_clientid_icontact" value="<?php echo optinforms_form_clientid_icontact(); ?>" />
|
124 |
-
</div><!--optionmiddle-->
|
125 |
-
<div class="clear"></div>
|
126 |
-
</div><!--optiongroup-->
|
127 |
-
|
128 |
-
<script type="text/javascript">
|
129 |
-
function optinforms_explain_icontact() {
|
130 |
-
// Get the DOM reference
|
131 |
-
var contentId = document.getElementById("optinforms-explain-icontact");
|
132 |
-
// Toggle
|
133 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
134 |
-
contentId.style.display = "block";
|
135 |
-
}
|
136 |
-
</script>
|
137 |
-
<div id="optinforms-explain-icontact" style="display:none;">
|
138 |
-
<div class="optinforms-step">
|
139 |
-
<h4><?php echo __('How to find your list ID, special ID and client ID values', 'optin-forms'); ?></h4>
|
140 |
-
<p><span class="step">1</span> <?php echo __('Log in to your iContact account', 'optin-forms'); ?></p>
|
141 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-001.png" class="step-image" />
|
142 |
-
<p><span class="step">2</span> <?php echo __('Click on Contacts in the navigation menu', 'optin-forms'); ?></p>
|
143 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-002.png" class="step-image" />
|
144 |
-
<p><span class="step">3</span> <?php echo __('Click on Sign-up Forms in the submenu', 'optin-forms'); ?></p>
|
145 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-003.png" class="step-image" />
|
146 |
-
<p><span class="step">4</span> <?php echo __('Click on the Create HTML Form button', 'optin-forms'); ?></p>
|
147 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-004.png" class="step-image" />
|
148 |
-
<p><span class="step">5</span> <?php echo __('Click on Next', 'optin-forms'); ?></p>
|
149 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-005.png" class="step-image" />
|
150 |
-
<p><span class="step">6</span> <?php echo __('Name your form, assign it to a list and include the First Name field', 'optin-forms'); ?></p>
|
151 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-006.png" class="step-image" />
|
152 |
-
<p><span class="step">7</span> <?php echo __('Click on Save', 'optin-forms'); ?></p>
|
153 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-007.png" class="step-image" />
|
154 |
-
<p><span class="step">8</span> <?php echo __('Click on the View HTML link', 'optin-forms'); ?></p>
|
155 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-008.png" class="step-image" />
|
156 |
-
<p><span class="step">9</span> <?php echo __('Scroll down to the Manual Sign-up Form and copy the values of listid, specialid and clientid fields', 'optin-forms'); ?></p>
|
157 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-009.png" class="step-image" />
|
158 |
-
</div><!--optinforms-step-->
|
159 |
-
</div><!--optinforms-explain-icontact-->
|
160 |
-
<div class="optiongroup">
|
161 |
-
<div class="optionleft">
|
162 |
-
<label><a onclick="optinforms_explain_redirect_icontact()"><span class="explain">?</span></a></label> <label for="optinforms_form_redirect_icontact" class="nopointer"><?php echo __('Redirect page URL', 'optin-forms'); ?></label>
|
163 |
-
</div><!--optionleft-->
|
164 |
-
<div class="optionmiddle">
|
165 |
-
<input type="text" id="optinforms_form_redirect_icontact" name="optinforms_form_redirect_icontact" value="<?php echo optinforms_form_redirect_icontact(); ?>" />
|
166 |
-
</div><!--optionmiddle-->
|
167 |
-
<div class="clear"></div>
|
168 |
-
</div><!--optiongroup-->
|
169 |
-
|
170 |
-
<script type="text/javascript">
|
171 |
-
function optinforms_explain_redirect_icontact() {
|
172 |
-
// Get the DOM reference
|
173 |
-
var contentId = document.getElementById("optinforms-explain-redirect-icontact");
|
174 |
-
// Toggle
|
175 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
176 |
-
contentId.style.display = "block";
|
177 |
-
}
|
178 |
-
</script>
|
179 |
-
<div id="optinforms-explain-redirect-icontact" style="display:none;">
|
180 |
-
<div class="optinforms-help">
|
181 |
-
<p><?php echo __('Enter the URL of the page where your visitors will be taken to, once they successfully subscribe.', 'optin-forms'); ?> <?php echo __('If you leave this field blank, the default iContact message will be used.', 'optin-forms'); ?></p>
|
182 |
-
</div><!--optinforms-help-->
|
183 |
-
</div><!--optinforms-explain-redirect-icontact-->
|
184 |
-
|
185 |
-
<div class="optiongroup">
|
186 |
-
<div class="optionleft">
|
187 |
-
<label><a onclick="optinforms_explain_error_icontact()"><span class="explain">?</span></a></label> <label for="optinforms_form_error_icontact" class="nopointer"><?php echo __('Error page URL', 'optin-forms'); ?></label>
|
188 |
-
</div><!--optionleft-->
|
189 |
-
<div class="optionmiddle">
|
190 |
-
<input type="text" id="optinforms_form_error_icontact" name="optinforms_form_error_icontact" value="<?php echo optinforms_form_error_icontact(); ?>" />
|
191 |
-
</div><!--optionmiddle-->
|
192 |
-
<div class="clear"></div>
|
193 |
-
</div><!--optiongroup-->
|
194 |
-
|
195 |
-
<script type="text/javascript">
|
196 |
-
function optinforms_explain_error_icontact() {
|
197 |
-
// Get the DOM reference
|
198 |
-
var contentId = document.getElementById("optinforms-explain-error-icontact");
|
199 |
-
// Toggle
|
200 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
201 |
-
contentId.style.display = "block";
|
202 |
-
}
|
203 |
-
</script>
|
204 |
-
<div id="optinforms-explain-error-icontact" style="display:none;">
|
205 |
-
<div class="optinforms-help">
|
206 |
-
<p><?php echo __('Enter the URL of the page where your visitors will be taken to, if there are any errors.', 'optin-forms'); ?> <?php echo __('If you leave this field blank, the default iContact error message will be used.', 'optin-forms'); ?></p>
|
207 |
-
</div><!--optinforms-help-->
|
208 |
-
</div><!--optinforms-explain-error-icontact-->
|
209 |
-
|
210 |
-
</div><!--optinforms_email_solution_option2-->
|
211 |
-
<div id="optinforms_email_solution_option3" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option3') { echo 'style="display:block;"'; } ?>>
|
212 |
-
<!--<p class="optinforms-integration"></?php echo __('Learn how to integrate MailChimp: watch the short video', 'optin-forms'); ?></p>-->
|
213 |
-
<div class="optiongroup">
|
214 |
-
<div class="optionleft">
|
215 |
-
<label><a onclick="optinforms_explain_mailchimp()"><span class="explain">?</span></a></label> <label for="optinforms_form_action_mailchimp" class="nopointer"><?php echo __('Form action URL', 'optin-forms'); ?> <span class="required">*</span></label>
|
216 |
-
</div><!--optionleft-->
|
217 |
-
<div class="optionmiddle">
|
218 |
-
<input type="text" id="optinforms_form_action_mailchimp" name="optinforms_form_action_mailchimp" value="<?php echo optinforms_form_action_mailchimp(); ?>" />
|
219 |
-
</div><!--optionmiddle-->
|
220 |
-
<div class="clear"></div>
|
221 |
-
</div><!--optiongroup-->
|
222 |
-
|
223 |
-
<script type="text/javascript">
|
224 |
-
function optinforms_explain_mailchimp() {
|
225 |
-
// Get the DOM reference
|
226 |
-
var contentId = document.getElementById("optinforms-explain-mailchimp");
|
227 |
-
// Toggle
|
228 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
229 |
-
contentId.style.display = "block";
|
230 |
-
}
|
231 |
-
</script>
|
232 |
-
<div id="optinforms-explain-mailchimp" style="display:none;">
|
233 |
-
<div class="optinforms-step">
|
234 |
-
<h4><?php echo __('How to find your form action URL', 'optin-forms'); ?></h4>
|
235 |
-
<p><span class="step">1</span> <?php echo __('Log in to your MailChimp account', 'optin-forms'); ?></p>
|
236 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-mailchimp-001.png" class="step-image" />
|
237 |
-
<p><span class="step">2</span> <?php echo __('Click on Lists in the navigation menu', 'optin-forms'); ?></p>
|
238 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-mailchimp-002.png" class="step-image" />
|
239 |
-
<p><span class="step">3</span> <?php echo __('Click on the arrow next to the list you wish to use and click on Signup forms', 'optin-forms'); ?></p>
|
240 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-mailchimp-003.png" class="step-image" />
|
241 |
-
<p><span class="step">4</span> <?php echo __('Select Embedded forms', 'optin-forms'); ?></p>
|
242 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-mailchimp-004.png" class="step-image" />
|
243 |
-
<p><span class="step">5</span> <?php echo __('Select the Naked form', 'optin-forms'); ?></p>
|
244 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-mailchimp-005.png" class="step-image" />
|
245 |
-
<p><span class="step">6</span> <?php echo __('You will find the form action URL in the HTML box', 'optin-forms'); ?></p>
|
246 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-mailchimp-006.png" class="step-image" />
|
247 |
-
</div><!--optinforms-step-->
|
248 |
-
</div><!--optinforms-explain-mailchimp-->
|
249 |
-
</div><!--optinforms_email_solution_option3-->
|
250 |
-
<div id="optinforms_email_solution_option4" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option4') { echo 'style="display:block;"'; } ?>>
|
251 |
-
<!--<p class="optinforms-integration"></?php echo __('Learn how to integrate GetResponse: watch the short video', 'optin-forms'); ?></p>-->
|
252 |
-
<div class="optiongroup">
|
253 |
-
<div class="optionleft">
|
254 |
-
<label><a onclick="optinforms_explain_getresponse()"><span class="explain">?</span></a></label> <label for="optinforms_form_webformid_getresponse" class="nopointer"><?php echo __('Campaign token', 'optin-forms'); ?> <span class="required">*</span></label>
|
255 |
-
</div><!--optionleft-->
|
256 |
-
<div class="optionmiddle">
|
257 |
-
<input type="text" id="optinforms_form_webformid_getresponse" name="optinforms_form_webformid_getresponse" value="<?php echo optinforms_form_webformid_getresponse(); ?>" />
|
258 |
-
</div><!--optionmiddle-->
|
259 |
-
<div class="clear"></div>
|
260 |
-
</div><!--optiongroup-->
|
261 |
-
|
262 |
-
<script type="text/javascript">
|
263 |
-
function optinforms_explain_getresponse() {
|
264 |
-
// Get the DOM reference
|
265 |
-
var contentId = document.getElementById("optinforms-explain-getresponse");
|
266 |
-
// Toggle
|
267 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
268 |
-
contentId.style.display = "block";
|
269 |
-
}
|
270 |
-
</script>
|
271 |
-
<div id="optinforms-explain-getresponse" style="display:none;">
|
272 |
-
<div class="optinforms-step">
|
273 |
-
<h4><?php echo __('How to find your campaign token', 'optin-forms'); ?></h4>
|
274 |
-
<p><span class="step">1</span> <?php echo __('Log in to your GetResponse account', 'optin-forms'); ?></p>
|
275 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-getresponse-001.png" class="step-image" />
|
276 |
-
<p><span class="step">2</span> <?php echo __('Click on your current campaign and click on Campaign List', 'optin-forms'); ?></p>
|
277 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-getresponse-002.png" class="step-image" />
|
278 |
-
<p><span class="step">3</span> <?php echo __('Copy your campaign token', 'optin-forms'); ?></p>
|
279 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-getresponse-003.png" class="step-image" />
|
280 |
-
</div><!--optinforms-step-->
|
281 |
-
</div><!--optinforms-explain-getresponse-->
|
282 |
-
|
283 |
-
</div><!--optinforms_email_solution_option4-->
|
284 |
-
<div id="optinforms_email_solution_option5" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option5') { echo 'style="display:block;"'; } ?>>
|
285 |
-
<!--<p class="optinforms-integration"></?php echo __('Learn how to integrate Mad Mimi: watch the short video', 'optin-forms'); ?></p>-->
|
286 |
-
<div class="optiongroup">
|
287 |
-
<div class="optionleft">
|
288 |
-
<label><a onclick="optinforms_explain_madmimi()"><span class="explain">?</span></a></label> <label for="optinforms_form_action_madmimi" class="nopointer"><?php echo __('Form action URL', 'optin-forms'); ?> <span class="required">*</span></label>
|
289 |
-
</div><!--optionleft-->
|
290 |
-
<div class="optionmiddle">
|
291 |
-
<input type="text" id="optinforms_form_action_madmimi" name="optinforms_form_action_madmimi" value="<?php echo optinforms_form_action_madmimi(); ?>" />
|
292 |
-
</div><!--optionmiddle-->
|
293 |
-
<div class="clear"></div>
|
294 |
-
</div><!--optiongroup-->
|
295 |
-
|
296 |
-
<script type="text/javascript">
|
297 |
-
function optinforms_explain_madmimi() {
|
298 |
-
// Get the DOM reference
|
299 |
-
var contentId = document.getElementById("optinforms-explain-madmimi");
|
300 |
-
// Toggle
|
301 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
302 |
-
contentId.style.display = "block";
|
303 |
-
}
|
304 |
-
</script>
|
305 |
-
<div id="optinforms-explain-madmimi" style="display:none;">
|
306 |
-
<div class="optinforms-step">
|
307 |
-
<h4><?php echo __('How to find your form action URL', 'optin-forms'); ?></h4>
|
308 |
-
<p><span class="step">1</span> <?php echo __('Log in to your Mad Mimi account', 'optin-forms'); ?></p>
|
309 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-001.png" class="step-image" />
|
310 |
-
<p><span class="step">2</span> <?php echo __('Click on Webform', 'optin-forms'); ?></p>
|
311 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-002.png" class="step-image" />
|
312 |
-
<p><span class="step">3</span> <?php echo __('Click on the Add a Webform button', 'optin-forms'); ?></p>
|
313 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-003.png" class="step-image" />
|
314 |
-
<p><span class="step">4</span> <?php echo __('Name your form, assign it to a list and include the Name field', 'optin-forms'); ?></p>
|
315 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-004.png" class="step-image" />
|
316 |
-
<p><span class="step">5</span> <?php echo __('Click on the Embed button', 'optin-forms'); ?></p>
|
317 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-005.png" class="step-image" />
|
318 |
-
<p><span class="step">6</span> <?php echo __('Click on the Plain Embed tab', 'optin-forms'); ?></p>
|
319 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-006.png" class="step-image" />
|
320 |
-
<p><span class="step">7</span> <?php echo __('You will find the form action URL in the HTML box', 'optin-forms'); ?></p>
|
321 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-007.png" class="step-image" />
|
322 |
-
</div><!--optinforms-step-->
|
323 |
-
</div><!--optinforms-explain-madmimi-->
|
324 |
-
</div><!--optinforms_email_solution_option5-->
|
325 |
-
<div id="optinforms_email_solution_option6" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option6') { echo 'style="display:block;"'; } ?>>
|
326 |
-
<!--<p class="optinforms-integration"></?php echo __('Learn how to integrate Interspire Email Marketer: watch the short video', 'optin-forms'); ?></p>-->
|
327 |
-
<div class="optiongroup">
|
328 |
-
<div class="optionleft">
|
329 |
-
<label><a onclick="optinforms_explain_interspire()"><span class="explain">?</span></a></label> <label for="optinforms_form_action_interspire" class="nopointer"><?php echo __('Form action URL', 'optin-forms'); ?> <span class="required">*</span></label>
|
330 |
-
</div><!--optionleft-->
|
331 |
-
<div class="optionmiddle">
|
332 |
-
<input type="text" id="optinforms_form_action_interspire" name="optinforms_form_action_interspire" value="<?php echo optinforms_form_action_interspire(); ?>" />
|
333 |
-
</div><!--optionmiddle-->
|
334 |
-
<div class="clear"></div>
|
335 |
-
</div><!--optiongroup-->
|
336 |
-
|
337 |
-
<script type="text/javascript">
|
338 |
-
function optinforms_explain_interspire() {
|
339 |
-
// Get the DOM reference
|
340 |
-
var contentId = document.getElementById("optinforms-explain-interspire");
|
341 |
-
// Toggle
|
342 |
-
|
343 |
-
|
344 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
345 |
-
contentId.style.display = "block";
|
346 |
-
}
|
347 |
-
</script>
|
348 |
-
<div id="optinforms-explain-interspire" style="display:none;">
|
349 |
-
<div class="optinforms-step">
|
350 |
-
<h4><?php echo __('How to find your form action URL', 'optin-forms'); ?></h4>
|
351 |
-
<p><span class="step">1</span> <?php echo __('Log in to your Interspire Email Marketer administration panel', 'optin-forms'); ?></p>
|
352 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-001.png" class="step-image" />
|
353 |
-
<p><span class="step">2</span> <?php echo __('Click on Forms in the navigation menu', 'optin-forms'); ?></p>
|
354 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-002.png" class="step-image" />
|
355 |
-
<p><span class="step">3</span> <?php echo __('Click on Create a Website Form from the submenu options', 'optin-forms'); ?></p>
|
356 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-003.png" class="step-image" />
|
357 |
-
<p><span class="step">4</span> <?php echo __('Make sure to uncheck CAPTCHA form security', 'optin-forms'); ?></p>
|
358 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-004.png" class="step-image" />
|
359 |
-
<p><span class="step">5</span> <?php echo __('Name your form, assign it to a list and include the Name field', 'optin-forms'); ?></p>
|
360 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-005.png" class="step-image" />
|
361 |
-
<p><span class="step">6</span> <?php echo __('Complete all the steps and click on Save', 'optin-forms'); ?></p>
|
362 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-006.png" class="step-image" />
|
363 |
-
<p><span class="step">7</span> <?php echo __('You will find the form action URL in the HTML box', 'optin-forms'); ?></p>
|
364 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-007.png" class="step-image" />
|
365 |
-
</div><!--optinforms-step-->
|
366 |
-
</div><!--optinforms-explain-interspire-->
|
367 |
-
|
368 |
-
<div class="optiongroup">
|
369 |
-
<div class="optionleft">
|
370 |
-
<label><a onclick="optinforms_explain_interspire_name()"><span class="explain">?</span></a></label> <label for="optinforms_form_name_field_interspire" class="nopointer"><?php echo __('Name field ID', 'optin-forms'); ?> <span class="required">*</span></label>
|
371 |
-
</div><!--optionleft-->
|
372 |
-
<div class="optionmiddle">
|
373 |
-
<input type="text" id="optinforms_form_name_field_interspire" name="optinforms_form_name_field_interspire" value="<?php echo optinforms_form_name_field_interspire(); ?>" />
|
374 |
-
</div><!--optionmiddle-->
|
375 |
-
<div class="clear"></div>
|
376 |
-
</div><!--optiongroup-->
|
377 |
-
|
378 |
-
<script type="text/javascript">
|
379 |
-
function optinforms_explain_interspire_name() {
|
380 |
-
// Get the DOM reference
|
381 |
-
var contentId = document.getElementById("optinforms-explain-interspire-name");
|
382 |
-
// Toggle
|
383 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
384 |
-
contentId.style.display = "block";
|
385 |
-
}
|
386 |
-
</script>
|
387 |
-
<div id="optinforms-explain-interspire-name" style="display:none;">
|
388 |
-
<div class="optinforms-step">
|
389 |
-
<h4><?php echo __('How to find your name field ID', 'optin-forms'); ?></h4>
|
390 |
-
<p><span class="step">1</span> <?php echo __('Log in to your Interspire Email Marketer administration panel', 'optin-forms'); ?></p>
|
391 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-001.png" class="step-image" />
|
392 |
-
<p><span class="step">2</span> <?php echo __('Click on Contact Lists in the navigation menu', 'optin-forms'); ?></p>
|
393 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-008.png" class="step-image" />
|
394 |
-
<p><span class="step">3</span> <?php echo __('Click on View Custom Fields from the submenu options', 'optin-forms'); ?></p>
|
395 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-009.png" class="step-image" />
|
396 |
-
<p><span class="step">4</span> <?php echo __('Find the name field and click on Edit', 'optin-forms'); ?></p>
|
397 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-010.png" class="step-image" />
|
398 |
-
<p><span class="step">5</span> <?php echo __('You will find the name field ID in the address bar', 'optin-forms'); ?></p>
|
399 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-011.png" class="step-image" />
|
400 |
-
</div><!--optinforms-step-->
|
401 |
-
</div><!--optinforms-explain-interspire-->
|
402 |
-
|
403 |
-
</div><!--optinforms_email_solution_option6-->
|
404 |
-
<div id="optinforms_email_solution_option7" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option7') { echo 'style="display:block;"'; } ?>>
|
405 |
-
<!--<p class="optinforms-integration"></?php echo __('Learn how to integrate ConvertKit: watch the short video', 'optin-forms'); ?></p>-->
|
406 |
-
<div class="optiongroup">
|
407 |
-
<div class="optionleft">
|
408 |
-
<label><a onclick="optinforms_explain_convertkit()"><span class="explain">?</span></a></label> <label for="optinforms_form_id_convertkit" class="nopointer"><?php echo __('Form ID', 'optin-forms'); ?> <span class="required">*</span></label>
|
409 |
-
</div><!--optionleft-->
|
410 |
-
<div class="optionmiddle">
|
411 |
-
<input type="text" id="optinforms_form_id_convertkit" name="optinforms_form_id_convertkit" value="<?php echo optinforms_form_id_convertkit(); ?>" />
|
412 |
-
</div><!--optionmiddle-->
|
413 |
-
<div class="clear"></div>
|
414 |
-
</div><!--optiongroup-->
|
415 |
-
|
416 |
-
<script type="text/javascript">
|
417 |
-
function optinforms_explain_convertkit() {
|
418 |
-
// Get the DOM reference
|
419 |
-
var contentId = document.getElementById("optinforms-explain-convertkit");
|
420 |
-
// Toggle
|
421 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
422 |
-
contentId.style.display = "block";
|
423 |
-
}
|
424 |
-
</script>
|
425 |
-
<div id="optinforms-explain-convertkit" style="display:none;">
|
426 |
-
<div class="optinforms-step">
|
427 |
-
<h4><?php echo __('How to find your form ID', 'optin-forms'); ?></h4>
|
428 |
-
<p><span class="step">1</span> <?php echo __('Log in to your ConvertKit account', 'optin-forms'); ?></p>
|
429 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-001.png" class="step-image" />
|
430 |
-
<p><span class="step">2</span> <?php echo __('Click on the name of your form', 'optin-forms'); ?></p>
|
431 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-002.png" class="step-image" />
|
432 |
-
<p><span class="step">3</span> <?php echo __('Click on Settings', 'optin-forms'); ?></p>
|
433 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-003.png" class="step-image" />
|
434 |
-
<p><span class="step">4</span> <?php echo __('Click on Embed', 'optin-forms'); ?></p>
|
435 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-004.png" class="step-image" />
|
436 |
-
<p><span class="step">5</span> <?php echo __('You will see your form ID in the ID attribute', 'optin-forms'); ?></p>
|
437 |
-
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-convertkit-005.png" class="step-image" />
|
438 |
-
</div><!--optinforms-step-->
|
439 |
-
</div><!--optinforms-explain-convertkit-->
|
440 |
-
|
441 |
-
<div class="optiongroup">
|
442 |
-
<div class="optionleft">
|
443 |
-
<label><a onclick="optinforms_explain_convertkit_success()"><span class="explain">?</span></a></label> <label for="optinforms_form_success_convertkit" class="nopointer"><?php echo __('Success message', 'optin-forms'); ?></label>
|
444 |
-
</div><!--optionleft-->
|
445 |
-
<div class="optionmiddle">
|
446 |
-
<input type="text" id="optinforms_form_success_convertkit" name="optinforms_form_success_convertkit" value="<?php echo optinforms_form_get_success_convertkit(); ?>" />
|
447 |
-
</div><!--optionmiddle-->
|
448 |
-
<div class="clear"></div>
|
449 |
-
</div><!--optiongroup-->
|
450 |
-
|
451 |
-
<script type="text/javascript">
|
452 |
-
function optinforms_explain_convertkit_success() {
|
453 |
-
// Get the DOM reference
|
454 |
-
var contentId = document.getElementById("optinforms-explain-success-convertkit");
|
455 |
-
// Toggle
|
456 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
457 |
-
contentId.style.display = "block";
|
458 |
-
}
|
459 |
-
</script>
|
460 |
-
<div id="optinforms-explain-success-convertkit" style="display:none;">
|
461 |
-
<div class="optinforms-help">
|
462 |
-
<p><?php echo __('Enter the success message your visitors will see once they subscribe to your mailing list.', 'optin-forms'); ?></p>
|
463 |
-
</div><!--optinforms-help-->
|
464 |
-
</div><!--optinforms-explain-success-convertkit-->
|
465 |
-
|
466 |
-
<div class="optiongroup">
|
467 |
-
<div class="optionleft">
|
468 |
-
<label><a onclick="optinforms_explain_convertkit_error()"><span class="explain">?</span></a></label> <label for="optinforms_form_error_convertkit" class="nopointer"><?php echo __('Error message', 'optin-forms'); ?></label>
|
469 |
-
</div><!--optionleft-->
|
470 |
-
<div class="optionmiddle">
|
471 |
-
<input type="text" id="optinforms_form_error_convertkit" name="optinforms_form_error_convertkit" value="<?php echo optinforms_form_get_error_convertkit(); ?>" />
|
472 |
-
</div><!--optionmiddle-->
|
473 |
-
<div class="clear"></div>
|
474 |
-
</div><!--optiongroup-->
|
475 |
-
|
476 |
-
<script type="text/javascript">
|
477 |
-
function optinforms_explain_convertkit_error() {
|
478 |
-
// Get the DOM reference
|
479 |
-
var contentId = document.getElementById("optinforms-explain-error-convertkit");
|
480 |
-
// Toggle
|
481 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
482 |
-
contentId.style.display = "block";
|
483 |
-
}
|
484 |
-
</script>
|
485 |
-
<div id="optinforms-explain-error-convertkit" style="display:none;">
|
486 |
-
<div class="optinforms-help">
|
487 |
-
<p><?php echo __('Enter the error message your visitors will once when the form submission has been unsuccessful.', 'optin-forms'); ?></p>
|
488 |
-
</div><!--optinforms-help-->
|
489 |
-
</div><!--optinforms-explain-error-convertkit-->
|
490 |
-
|
491 |
-
</div><!--optinforms_email_solution_option7-->
|
492 |
-
</div><!--optiongroup-->
|
493 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/options-form-1.php
DELETED
@@ -1,701 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
|
3 |
-
<div class="toggle-wrap">
|
4 |
-
<span class="trigger">
|
5 |
-
<a><?php echo __('Style Your Form', 'optin-forms'); ?></a>
|
6 |
-
</span>
|
7 |
-
|
8 |
-
<div class="toggle-container" style="display: none;">
|
9 |
-
<div class="optiongroup">
|
10 |
-
<div class="optionleft">
|
11 |
-
<label for="optinforms_form1_background" class="nopointer"><?php echo __('Form background color', 'optin-forms'); ?></label>
|
12 |
-
</div><!--optionleft-->
|
13 |
-
<div class="optionmiddle">
|
14 |
-
<input type="text" id="optinforms_form1_background" name="optinforms_form1_background" class="optinforms-color" value="<?php echo optinforms_form1_default_background(); ?>" data-default-color="#FFFFFF" />
|
15 |
-
<script>
|
16 |
-
jQuery(document).ready(function($){
|
17 |
-
$('#optinforms_form1_background').wpColorPicker({
|
18 |
-
color: true,
|
19 |
-
hide: true,
|
20 |
-
palettes: true,
|
21 |
-
change: function(event, ui) {
|
22 |
-
$("#optinforms-form1").css( 'background-color', ui.color.toString());
|
23 |
-
}
|
24 |
-
});
|
25 |
-
});
|
26 |
-
</script>
|
27 |
-
</div><!--optionmiddle-->
|
28 |
-
<div class="optionlast">
|
29 |
-
|
30 |
-
</div><!--optionlast-->
|
31 |
-
<div class="clear"></div>
|
32 |
-
</div><!--optiongroup-->
|
33 |
-
|
34 |
-
<div class="optiongroup">
|
35 |
-
<div class="optionleft">
|
36 |
-
<label for="optinforms_form1_border" class="nopointer"><?php echo __('Form border color', 'optin-forms'); ?></label>
|
37 |
-
</div><!--optionleft-->
|
38 |
-
<div class="optionmiddle">
|
39 |
-
<input type="text" id="optinforms_form1_border" name="optinforms_form1_border" class="optinforms-color" value="<?php echo optinforms_form1_default_border(); ?>" data-default-color="#E0E0E0" />
|
40 |
-
<script>
|
41 |
-
jQuery(document).ready(function($){
|
42 |
-
$('#optinforms_form1_border').wpColorPicker({
|
43 |
-
color: true,
|
44 |
-
hide: true,
|
45 |
-
palettes: true,
|
46 |
-
change: function(event, ui) {
|
47 |
-
$("#optinforms-form1").css( 'border-color', ui.color.toString());
|
48 |
-
}
|
49 |
-
});
|
50 |
-
});
|
51 |
-
</script>
|
52 |
-
</div><!--optionmiddle-->
|
53 |
-
<div class="optionlast">
|
54 |
-
|
55 |
-
</div><!--optionlast-->
|
56 |
-
<div class="clear"></div>
|
57 |
-
</div><!--optiongroup-->
|
58 |
-
|
59 |
-
<?php if (get_option('optinforms_form1_hide_title')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your title in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
60 |
-
|
61 |
-
<div class="optiongroup">
|
62 |
-
<div class="optionleft">
|
63 |
-
<label for="optinforms_form1_title" class="nopointer"><?php echo __('Title', 'optin-forms'); ?></label>
|
64 |
-
</div><!--optionleft-->
|
65 |
-
<div class="optionmiddle">
|
66 |
-
<input type="text" id="optinforms_form1_title" name="optinforms_form1_title" value="<?php echo optinforms_form1_default_title(); ?>" onchange='optinforms_change_form1_title()' <?php if (get_option('optinforms_form1_hide_title')== '1') { echo 'disabled="disabled"'; } ?> />
|
67 |
-
<script type="text/javascript">
|
68 |
-
function optinforms_change_form1_title() {
|
69 |
-
document.getElementById('optinforms-form1-title').innerHTML = document.getElementById('optinforms_form1_title').value;
|
70 |
-
}
|
71 |
-
</script>
|
72 |
-
</div><!--optionmiddle-->
|
73 |
-
<div class="optionlast">
|
74 |
-
|
75 |
-
</div><!--optionlast-->
|
76 |
-
<div class="clear"></div>
|
77 |
-
</div><!--optiongroup-->
|
78 |
-
|
79 |
-
<div class="optiongroup">
|
80 |
-
<div class="optionleft">
|
81 |
-
<label for="optinforms_form1_title_font" class="nopointer"><?php echo __('Title font', 'optin-forms'); ?></label>
|
82 |
-
</div><!--optionleft-->
|
83 |
-
<div class="optionmiddle">
|
84 |
-
<select name="optinforms_form1_title_font" id="optinforms_form1_title_font" onchange='optinforms_change_form1_title_font()' <?php if (get_option('optinforms_form1_hide_title')== '1') { echo 'disabled="disabled"'; } ?>>
|
85 |
-
<?php echo optinforms_get_form1_title_font_options(); ?>
|
86 |
-
</select>
|
87 |
-
<script type="text/javascript">
|
88 |
-
function optinforms_change_form1_title_font() {
|
89 |
-
document.getElementById("optinforms-form1-title").style.fontFamily = document.getElementById('optinforms_form1_title_font').value;
|
90 |
-
}
|
91 |
-
</script>
|
92 |
-
</div><!--optionmiddle-->
|
93 |
-
<div class="optionlast">
|
94 |
-
|
95 |
-
</div><!--optionlast-->
|
96 |
-
<div class="clear"></div>
|
97 |
-
</div><!--optiongroup-->
|
98 |
-
|
99 |
-
<div class="optiongroup">
|
100 |
-
<div class="optionleft">
|
101 |
-
<label for="optinforms_form1_title_size" class="nopointer"><?php echo __('Title size', 'optin-forms'); ?></label>
|
102 |
-
</div><!--optionleft-->
|
103 |
-
<div class="optionmiddle">
|
104 |
-
<select name="optinforms_form1_title_size" id="optinforms_form1_title_size" onchange='optinforms_change_form1_title_size()' <?php if (get_option('optinforms_form1_hide_title')== '1') { echo 'disabled="disabled"'; } ?>>
|
105 |
-
<?php echo optinforms_get_form1_title_size_options(); ?>
|
106 |
-
</select>
|
107 |
-
<script type="text/javascript">
|
108 |
-
function optinforms_change_form1_title_size() {
|
109 |
-
document.getElementById("optinforms-form1-title").style.fontSize = document.getElementById('optinforms_form1_title_size').value;
|
110 |
-
document.getElementById("optinforms-form1-title").style.lineHeight = document.getElementById('optinforms_form1_title_size').value;
|
111 |
-
}
|
112 |
-
</script>
|
113 |
-
</div><!--optionmiddle-->
|
114 |
-
<div class="optionlast">
|
115 |
-
|
116 |
-
</div><!--optionlast-->
|
117 |
-
<div class="clear"></div>
|
118 |
-
</div><!--optiongroup-->
|
119 |
-
|
120 |
-
<div class="optiongroup">
|
121 |
-
<div class="optionleft">
|
122 |
-
<label for="optinforms_form1_title_color" class="nopointer"><?php echo __('Title color', 'optin-forms'); ?></label>
|
123 |
-
</div><!--optionleft-->
|
124 |
-
<div class="optionmiddle">
|
125 |
-
<input type="text" id="optinforms_form1_title_color" name="optinforms_form1_title_color" class="optinforms-color" value="<?php echo optinforms_form1_default_title_color(); ?>" data-default-color="#eb432c" <?php if (get_option('optinforms_form1_hide_title')== '1') { echo 'disabled'; } ?> />
|
126 |
-
<script>
|
127 |
-
jQuery(document).ready(function($){
|
128 |
-
$('#optinforms_form1_title_color').wpColorPicker({
|
129 |
-
color: true,
|
130 |
-
hide: true,
|
131 |
-
palettes: true,
|
132 |
-
change: function(event, ui) {
|
133 |
-
$("#optinforms-form1-title").css( 'color', ui.color.toString());
|
134 |
-
}
|
135 |
-
});
|
136 |
-
});
|
137 |
-
</script>
|
138 |
-
</div><!--optionmiddle-->
|
139 |
-
<div class="optionlast">
|
140 |
-
|
141 |
-
</div><!--optionlast-->
|
142 |
-
<div class="clear"></div>
|
143 |
-
</div><!--optiongroup-->
|
144 |
-
|
145 |
-
<?php if (get_option('optinforms_form1_hide_subtitle')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your subtitle in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
146 |
-
|
147 |
-
<div class="optiongroup">
|
148 |
-
<div class="optionleft">
|
149 |
-
<label for="optinforms_form1_subtitle" class="nopointer"><?php echo __('Subtitle', 'optin-forms'); ?></label>
|
150 |
-
</div><!--optionleft-->
|
151 |
-
<div class="optionmiddle">
|
152 |
-
<input type="text" id="optinforms_form1_subtitle" name="optinforms_form1_subtitle" value="<?php echo optinforms_form1_default_subtitle(); ?>" onchange='optinforms_change_form1_subtitle()' <?php if (get_option('optinforms_form1_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?> />
|
153 |
-
<script type="text/javascript">
|
154 |
-
function optinforms_change_form1_subtitle() {
|
155 |
-
document.getElementById('optinforms-form1-subtitle').innerHTML = document.getElementById('optinforms_form1_subtitle').value;
|
156 |
-
}
|
157 |
-
</script>
|
158 |
-
</div><!--optionmiddle-->
|
159 |
-
<div class="optionlast">
|
160 |
-
|
161 |
-
</div><!--optionlast-->
|
162 |
-
<div class="clear"></div>
|
163 |
-
</div><!--optiongroup-->
|
164 |
-
|
165 |
-
<div class="optiongroup">
|
166 |
-
<div class="optionleft">
|
167 |
-
<label for="optinforms_form1_subtitle_font" class="nopointer"><?php echo __('Subtitle font', 'optin-forms'); ?></label>
|
168 |
-
</div><!--optionleft-->
|
169 |
-
<div class="optionmiddle">
|
170 |
-
<select name="optinforms_form1_subtitle_font" id="optinforms_form1_subtitle_font" onchange='optinforms_change_form1_subtitle_font()' <?php if (get_option('optinforms_form1_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?>>
|
171 |
-
<?php echo optinforms_get_form1_subtitle_font_options(); ?>
|
172 |
-
</select>
|
173 |
-
<script type="text/javascript">
|
174 |
-
function optinforms_change_form1_subtitle_font() {
|
175 |
-
document.getElementById("optinforms-form1-subtitle").style.fontFamily = document.getElementById('optinforms_form1_subtitle_font').value;
|
176 |
-
}
|
177 |
-
</script>
|
178 |
-
</div><!--optionmiddle-->
|
179 |
-
<div class="optionlast">
|
180 |
-
|
181 |
-
</div><!--optionlast-->
|
182 |
-
<div class="clear"></div>
|
183 |
-
</div><!--optiongroup-->
|
184 |
-
|
185 |
-
<div class="optiongroup">
|
186 |
-
<div class="optionleft">
|
187 |
-
<label for="optinforms_form1_subtitle_size" class="nopointer"><?php echo __('Subtitle size', 'optin-forms'); ?></label>
|
188 |
-
</div><!--optionleft-->
|
189 |
-
<div class="optionmiddle">
|
190 |
-
<select name="optinforms_form1_subtitle_size" id="optinforms_form1_subtitle_size" onchange='optinforms_change_form1_subtitle_size()' <?php if (get_option('optinforms_form1_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?>>
|
191 |
-
<?php echo optinforms_get_form1_subtitle_size_options(); ?>
|
192 |
-
</select>
|
193 |
-
<script type="text/javascript">
|
194 |
-
function optinforms_change_form1_subtitle_size() {
|
195 |
-
document.getElementById("optinforms-form1-subtitle").style.fontSize = document.getElementById('optinforms_form1_subtitle_size').value;
|
196 |
-
document.getElementById("optinforms-form1-subtitle").style.lineHeight = document.getElementById('optinforms_form1_subtitle_size').value;
|
197 |
-
}
|
198 |
-
</script>
|
199 |
-
</div><!--optionmiddle-->
|
200 |
-
<div class="optionlast">
|
201 |
-
|
202 |
-
</div><!--optionlast-->
|
203 |
-
<div class="clear"></div>
|
204 |
-
</div><!--optiongroup-->
|
205 |
-
|
206 |
-
<div class="optiongroup">
|
207 |
-
<div class="optionleft">
|
208 |
-
<label for="optinforms_form1_subtitle_color" class="nopointer"><?php echo __('Subtitle color', 'optin-forms'); ?></label>
|
209 |
-
</div><!--optionleft-->
|
210 |
-
<div class="optionmiddle">
|
211 |
-
<input type="text" id="optinforms_form1_subtitle_color" name="optinforms_form1_subtitle_color" class="optinforms-color" value="<?php echo optinforms_form1_default_subtitle_color(); ?>" data-default-color="#000000" <?php if (get_option('optinforms_form1_hide_subtitle')== '1') { echo 'disabled'; } ?> />
|
212 |
-
<script>
|
213 |
-
jQuery(document).ready(function($){
|
214 |
-
$('#optinforms_form1_subtitle_color').wpColorPicker({
|
215 |
-
color: true,
|
216 |
-
hide: true,
|
217 |
-
palettes: true,
|
218 |
-
change: function(event, ui) {
|
219 |
-
$("#optinforms-form1-subtitle").css( 'color', ui.color.toString());
|
220 |
-
}
|
221 |
-
});
|
222 |
-
});
|
223 |
-
</script>
|
224 |
-
</div><!--optionmiddle-->
|
225 |
-
<div class="optionlast">
|
226 |
-
|
227 |
-
</div><!--optionlast-->
|
228 |
-
<div class="clear"></div>
|
229 |
-
</div><!--optiongroup-->
|
230 |
-
|
231 |
-
<?php if (get_option('optinforms_form1_hide_name_field')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your name field in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
232 |
-
|
233 |
-
<div class="optiongroup">
|
234 |
-
<div class="optionleft">
|
235 |
-
<label for="optinforms_form1_name_field" class="nopointer"><?php echo __('Input field: name', 'optin-forms'); ?></label>
|
236 |
-
</div><!--optionleft-->
|
237 |
-
<div class="optionmiddle">
|
238 |
-
<input type="text" id="optinforms_form1_name_field" name="optinforms_form1_name_field" value="<?php echo optinforms_form1_default_name_field(); ?>" onchange='optinforms_change_form1_name_field()' <?php if (get_option('optinforms_form1_hide_name_field')== '1') { echo 'disabled'; } ?> />
|
239 |
-
<script type="text/javascript">
|
240 |
-
function optinforms_change_form1_name_field() {
|
241 |
-
document.getElementById('optinforms-form1-name-field').value = document.getElementById('optinforms_form1_name_field').value;
|
242 |
-
}
|
243 |
-
</script>
|
244 |
-
</div><!--optionmiddle-->
|
245 |
-
<div class="optionlast">
|
246 |
-
|
247 |
-
</div><!--optionlast-->
|
248 |
-
<div class="clear"></div>
|
249 |
-
</div><!--optiongroup-->
|
250 |
-
|
251 |
-
<div class="optiongroup">
|
252 |
-
<div class="optionleft">
|
253 |
-
<label for="optinforms_form1_email_field" class="nopointer"><?php echo __('Input field: email', 'optin-forms'); ?></label>
|
254 |
-
</div><!--optionleft-->
|
255 |
-
<div class="optionmiddle">
|
256 |
-
<input type="text" id="optinforms_form1_email_field" name="optinforms_form1_email_field" value="<?php echo optinforms_form1_default_email_field(); ?>" onchange='optinforms_change_form1_email_field()' />
|
257 |
-
<script type="text/javascript">
|
258 |
-
function optinforms_change_form1_email_field() {
|
259 |
-
document.getElementById('optinforms-form1-email-field').value = document.getElementById('optinforms_form1_email_field').value;
|
260 |
-
}
|
261 |
-
</script>
|
262 |
-
</div><!--optionmiddle-->
|
263 |
-
<div class="optionlast">
|
264 |
-
|
265 |
-
</div><!--optionlast-->
|
266 |
-
<div class="clear"></div>
|
267 |
-
</div><!--optiongroup-->
|
268 |
-
|
269 |
-
<div class="optiongroup">
|
270 |
-
<div class="optionleft">
|
271 |
-
<label for="optinforms_form1_fields_font" class="nopointer"><?php echo __('Input fields font', 'optin-forms'); ?></label>
|
272 |
-
</div><!--optionleft-->
|
273 |
-
<div class="optionmiddle">
|
274 |
-
<select name="optinforms_form1_fields_font" id="optinforms_form1_fields_font" onchange='optinforms_change_form1_fields_font()'>
|
275 |
-
<?php echo optinforms_get_form1_fields_font_options(); ?>
|
276 |
-
</select>
|
277 |
-
<script type="text/javascript">
|
278 |
-
function optinforms_change_form1_fields_font() {
|
279 |
-
document.getElementById("optinforms-form1-name-field").style.fontFamily = document.getElementById('optinforms_form1_fields_font').value;
|
280 |
-
document.getElementById("optinforms-form1-email-field").style.fontFamily = document.getElementById('optinforms_form1_fields_font').value;
|
281 |
-
}
|
282 |
-
</script>
|
283 |
-
</div><!--optionmiddle-->
|
284 |
-
<div class="optionlast">
|
285 |
-
|
286 |
-
</div><!--optionlast-->
|
287 |
-
<div class="clear"></div>
|
288 |
-
</div><!--optiongroup-->
|
289 |
-
|
290 |
-
<div class="optiongroup">
|
291 |
-
<div class="optionleft">
|
292 |
-
<label for="optinforms_form1_fields_size" class="nopointer"><?php echo __('Input fields size', 'optin-forms'); ?></label>
|
293 |
-
</div><!--optionleft-->
|
294 |
-
<div class="optionmiddle">
|
295 |
-
<select name="optinforms_form1_fields_size" id="optinforms_form1_fields_size" onchange='optinforms_change_form1_fields_size()'>
|
296 |
-
<?php echo optinforms_get_form1_fields_size_options(); ?>
|
297 |
-
</select>
|
298 |
-
<script type="text/javascript">
|
299 |
-
function optinforms_change_form1_fields_size() {
|
300 |
-
document.getElementById("optinforms-form1-name-field").style.fontSize = document.getElementById('optinforms_form1_fields_size').value;
|
301 |
-
document.getElementById("optinforms-form1-email-field").style.fontSize = document.getElementById('optinforms_form1_fields_size').value;
|
302 |
-
}
|
303 |
-
</script>
|
304 |
-
</div><!--optionmiddle-->
|
305 |
-
<div class="optionlast">
|
306 |
-
|
307 |
-
</div><!--optionlast-->
|
308 |
-
<div class="clear"></div>
|
309 |
-
</div><!--optiongroup-->
|
310 |
-
|
311 |
-
<div class="optiongroup">
|
312 |
-
<div class="optionleft">
|
313 |
-
<label for="optinforms_form1_fields_color" class="nopointer"><?php echo __('Input fields color', 'optin-forms'); ?></label>
|
314 |
-
</div><!--optionleft-->
|
315 |
-
<div class="optionmiddle">
|
316 |
-
<input type="text" id="optinforms_form1_fields_color" name="optinforms_form1_fields_color" class="optinforms-color" value="<?php echo optinforms_form1_default_fields_color(); ?>" data-default-color="#666666" />
|
317 |
-
<script>
|
318 |
-
jQuery(document).ready(function($){
|
319 |
-
$('#optinforms_form1_fields_color').wpColorPicker({
|
320 |
-
color: true,
|
321 |
-
hide: true,
|
322 |
-
palettes: true,
|
323 |
-
change: function(event, ui) {
|
324 |
-
$("#optinforms-form1-name-field").css( 'color', ui.color.toString());
|
325 |
-
$("#optinforms-form1-email-field").css( 'color', ui.color.toString());
|
326 |
-
}
|
327 |
-
});
|
328 |
-
});
|
329 |
-
</script>
|
330 |
-
</div><!--optionmiddle-->
|
331 |
-
<div class="optionlast">
|
332 |
-
|
333 |
-
</div><!--optionlast-->
|
334 |
-
<div class="clear"></div>
|
335 |
-
</div><!--optiongroup-->
|
336 |
-
|
337 |
-
<div class="optiongroup">
|
338 |
-
<div class="optionleft">
|
339 |
-
<label for="optinforms_form1_button_text" class="nopointer"><?php echo __('Button text', 'optin-forms'); ?></label>
|
340 |
-
</div><!--optionleft-->
|
341 |
-
<div class="optionmiddle">
|
342 |
-
<input type="text" id="optinforms_form1_button_text" name="optinforms_form1_button_text" value="<?php echo optinforms_form1_default_button_text(); ?>" onchange='optinforms_change_form1_button_text()' />
|
343 |
-
<script type="text/javascript">
|
344 |
-
function optinforms_change_form1_button_text() {
|
345 |
-
document.getElementById('optinforms-form1-button').value = document.getElementById('optinforms_form1_button_text').value;
|
346 |
-
}
|
347 |
-
</script>
|
348 |
-
</div><!--optionmiddle-->
|
349 |
-
<div class="optionlast">
|
350 |
-
|
351 |
-
</div><!--optionlast-->
|
352 |
-
<div class="clear"></div>
|
353 |
-
</div><!--optiongroup-->
|
354 |
-
|
355 |
-
<div class="optiongroup">
|
356 |
-
<div class="optionleft">
|
357 |
-
<label for="optinforms_form1_button_text_font" class="nopointer"><?php echo __('Button text font', 'optin-forms'); ?></label>
|
358 |
-
</div><!--optionleft-->
|
359 |
-
<div class="optionmiddle">
|
360 |
-
<select name="optinforms_form1_button_text_font" id="optinforms_form1_button_text_font" onchange='optinforms_change_form1_button_text_font()'>
|
361 |
-
<?php echo optinforms_get_form1_button_text_font_options(); ?>
|
362 |
-
</select>
|
363 |
-
<script type="text/javascript">
|
364 |
-
function optinforms_change_form1_button_text_font() {
|
365 |
-
document.getElementById("optinforms-form1-button").style.fontFamily = document.getElementById('optinforms_form1_button_text_font').value;
|
366 |
-
}
|
367 |
-
</script>
|
368 |
-
</div><!--optionmiddle-->
|
369 |
-
<div class="optionlast">
|
370 |
-
|
371 |
-
</div><!--optionlast-->
|
372 |
-
<div class="clear"></div>
|
373 |
-
</div><!--optiongroup-->
|
374 |
-
|
375 |
-
<div class="optiongroup">
|
376 |
-
<div class="optionleft">
|
377 |
-
<label for="optinforms_form1_button_text_size" class="nopointer"><?php echo __('Button text size', 'optin-forms'); ?></label>
|
378 |
-
</div><!--optionleft-->
|
379 |
-
<div class="optionmiddle">
|
380 |
-
<select name="optinforms_form1_button_text_size" id="optinforms_form1_button_text_size" onchange='optinforms_change_form1_button_text_size()'>
|
381 |
-
<?php echo optinforms_get_form1_button_text_size_options(); ?>
|
382 |
-
</select>
|
383 |
-
<script type="text/javascript">
|
384 |
-
function optinforms_change_form1_button_text_size() {
|
385 |
-
document.getElementById("optinforms-form1-button").style.fontSize = document.getElementById('optinforms_form1_button_text_size').value;
|
386 |
-
}
|
387 |
-
</script>
|
388 |
-
</div><!--optionmiddle-->
|
389 |
-
<div class="optionlast">
|
390 |
-
|
391 |
-
</div><!--optionlast-->
|
392 |
-
<div class="clear"></div>
|
393 |
-
</div><!--optiongroup-->
|
394 |
-
|
395 |
-
<div class="optiongroup">
|
396 |
-
<div class="optionleft">
|
397 |
-
<label for="optinforms_form1_button_text_color" class="nopointer"><?php echo __('Button text color', 'optin-forms'); ?></label>
|
398 |
-
</div><!--optionleft-->
|
399 |
-
<div class="optionmiddle">
|
400 |
-
<input type="text" id="optinforms_form1_button_text_color" name="optinforms_form1_button_text_color" class="optinforms-color" value="<?php echo optinforms_form1_default_button_text_color(); ?>" data-default-color="#FFFFFF" />
|
401 |
-
<script>
|
402 |
-
jQuery(document).ready(function($){
|
403 |
-
$('#optinforms_form1_button_text_color').wpColorPicker({
|
404 |
-
color: true,
|
405 |
-
hide: true,
|
406 |
-
palettes: true,
|
407 |
-
change: function(event, ui) {
|
408 |
-
$("#optinforms-form1-button").css( 'color', ui.color.toString());
|
409 |
-
}
|
410 |
-
});
|
411 |
-
});
|
412 |
-
</script>
|
413 |
-
</div><!--optionmiddle-->
|
414 |
-
<div class="optionlast">
|
415 |
-
|
416 |
-
</div><!--optionlast-->
|
417 |
-
<div class="clear"></div>
|
418 |
-
</div><!--optiongroup-->
|
419 |
-
|
420 |
-
<div class="optiongroup">
|
421 |
-
<div class="optionleft">
|
422 |
-
<label for="optinforms_form1_button_background" class="nopointer"><?php echo __('Button background color', 'optin-forms'); ?></label>
|
423 |
-
</div><!--optionleft-->
|
424 |
-
<div class="optionmiddle">
|
425 |
-
<input type="text" id="optinforms_form1_button_background" name="optinforms_form1_button_background" class="optinforms-color" value="<?php echo optinforms_form1_default_button_background(); ?>" data-default-color="#20A64C" />
|
426 |
-
<script>
|
427 |
-
jQuery(document).ready(function($){
|
428 |
-
$('#optinforms_form1_button_background').wpColorPicker({
|
429 |
-
color: true,
|
430 |
-
hide: true,
|
431 |
-
palettes: true,
|
432 |
-
change: function(event, ui) {
|
433 |
-
$("#optinforms-form1-button").css( 'background-color', ui.color.toString());
|
434 |
-
}
|
435 |
-
});
|
436 |
-
});
|
437 |
-
</script>
|
438 |
-
</div><!--optionmiddle-->
|
439 |
-
<div class="optionlast">
|
440 |
-
|
441 |
-
</div><!--optionlast-->
|
442 |
-
<div class="clear"></div>
|
443 |
-
</div><!--optiongroup-->
|
444 |
-
|
445 |
-
<?php if (get_option('optinforms_form1_hide_disclaimer')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your disclaimer in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
446 |
-
|
447 |
-
<div class="optiongroup">
|
448 |
-
<div class="optionleft">
|
449 |
-
<label for="optinforms_form1_disclaimer" class="nopointer"><?php echo __('Disclaimer text', 'optin-forms'); ?></label>
|
450 |
-
</div><!--optionleft-->
|
451 |
-
<div class="optionmiddle">
|
452 |
-
<input type="text" id="optinforms_form1_disclaimer" name="optinforms_form1_disclaimer" value="<?php echo optinforms_form1_default_disclaimer(); ?>" onchange='optinforms_change_form1_disclaimer()' <?php if (get_option('optinforms_form1_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?> />
|
453 |
-
<script type="text/javascript">
|
454 |
-
function optinforms_change_form1_disclaimer() {
|
455 |
-
document.getElementById('optinforms-form1-disclaimer').innerHTML = document.getElementById('optinforms_form1_disclaimer').value;
|
456 |
-
}
|
457 |
-
</script>
|
458 |
-
</div><!--optionmiddle-->
|
459 |
-
<div class="optionlast">
|
460 |
-
|
461 |
-
</div><!--optionlast-->
|
462 |
-
<div class="clear"></div>
|
463 |
-
</div><!--optiongroup-->
|
464 |
-
|
465 |
-
<div class="optiongroup">
|
466 |
-
<div class="optionleft">
|
467 |
-
<label for="optinforms_form1_disclaimer_font" class="nopointer"><?php echo __('Disclaimer font', 'optin-forms'); ?></label>
|
468 |
-
</div><!--optionleft-->
|
469 |
-
<div class="optionmiddle">
|
470 |
-
<select name="optinforms_form1_disclaimer_font" id="optinforms_form1_disclaimer_font" onchange='optinforms_change_form1_disclaimer_font()' <?php if (get_option('optinforms_form1_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?>>
|
471 |
-
<?php echo optinforms_get_form1_disclaimer_font_options(); ?>
|
472 |
-
</select>
|
473 |
-
<script type="text/javascript">
|
474 |
-
function optinforms_change_form1_disclaimer_font() {
|
475 |
-
document.getElementById("optinforms-form1-disclaimer").style.fontFamily = document.getElementById('optinforms_form1_disclaimer_font').value;
|
476 |
-
}
|
477 |
-
</script>
|
478 |
-
</div><!--optionmiddle-->
|
479 |
-
<div class="optionlast">
|
480 |
-
|
481 |
-
</div><!--optionlast-->
|
482 |
-
<div class="clear"></div>
|
483 |
-
</div><!--optiongroup-->
|
484 |
-
|
485 |
-
<div class="optiongroup">
|
486 |
-
<div class="optionleft">
|
487 |
-
<label for="optinforms_form1_disclaimer_size" class="nopointer"><?php echo __('Disclaimer size', 'optin-forms'); ?></label>
|
488 |
-
</div><!--optionleft-->
|
489 |
-
<div class="optionmiddle">
|
490 |
-
<select name="optinforms_form1_disclaimer_size" id="optinforms_form1_disclaimer_size" onchange='optinforms_change_form1_disclaimer_size()' <?php if (get_option('optinforms_form1_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?>>
|
491 |
-
<?php echo optinforms_get_form1_disclaimer_size_options(); ?>
|
492 |
-
</select>
|
493 |
-
<script type="text/javascript">
|
494 |
-
function optinforms_change_form1_disclaimer_size() {
|
495 |
-
document.getElementById("optinforms-form1-disclaimer").style.fontSize = document.getElementById('optinforms_form1_disclaimer_size').value;
|
496 |
-
}
|
497 |
-
</script>
|
498 |
-
</div><!--optionmiddle-->
|
499 |
-
<div class="optionlast">
|
500 |
-
|
501 |
-
</div><!--optionlast-->
|
502 |
-
<div class="clear"></div>
|
503 |
-
</div><!--optiongroup-->
|
504 |
-
|
505 |
-
<div class="optiongroup">
|
506 |
-
<div class="optionleft">
|
507 |
-
<label for="optinforms_form1_disclaimer_color" class="nopointer"><?php echo __('Disclaimer color', 'optin-forms'); ?></label>
|
508 |
-
</div><!--optionleft-->
|
509 |
-
<div class="optionmiddle">
|
510 |
-
<input type="text" id="optinforms_form1_disclaimer_color" name="optinforms_form1_disclaimer_color" class="optinforms-color" value="<?php echo optinforms_form1_default_disclaimer_color(); ?>" data-default-color="#666666" <?php if (get_option('optinforms_form1_hide_disclaimer')== '1') { echo 'disabled'; } ?> />
|
511 |
-
<script>
|
512 |
-
jQuery(document).ready(function($){
|
513 |
-
$('#optinforms_form1_disclaimer_color').wpColorPicker({
|
514 |
-
color: true,
|
515 |
-
hide: true,
|
516 |
-
palettes: true,
|
517 |
-
change: function(event, ui) {
|
518 |
-
$("#optinforms-form1-disclaimer").css( 'color', ui.color.toString());
|
519 |
-
}
|
520 |
-
});
|
521 |
-
});
|
522 |
-
</script>
|
523 |
-
</div><!--optionmiddle-->
|
524 |
-
<div class="optionlast">
|
525 |
-
|
526 |
-
</div><!--optionlast-->
|
527 |
-
<div class="clear"></div>
|
528 |
-
</div><!--optiongroup-->
|
529 |
-
|
530 |
-
<div class="optiongroup">
|
531 |
-
<div class="optionleft">
|
532 |
-
<label for="optinforms_form1_width" class="nopointer"><?php echo __('Form width', 'optin-forms'); ?></label> <label><a onclick="optinforms_explain_width_1()"><span class="explain">?</span></a></label>
|
533 |
-
</div><!--optionleft-->
|
534 |
-
<div class="optionmiddle">
|
535 |
-
<div class="choose-width">
|
536 |
-
<input name="optinforms_form1_width" id="optinforms_form1_width_100" type="radio" value="0" class="radiobutton" <?php echo optinforms_form1_checked_width_100(); ?> onclick="document.getElementById('optinforms_form1_width_pixels').disabled=true;" /> <label for="optinforms_form1_width_100" class="radiobutton-label"><?php echo __('100%', 'optin-forms'); ?></label>
|
537 |
-
</div><!--choose-width-->
|
538 |
-
<div class="choose-width">
|
539 |
-
<input name="optinforms_form1_width" id="optinforms_form1_width_fixed" type="radio" value="1" class="radiobutton" <?php echo optinforms_form1_checked_width_fixed(); ?> onclick="document.getElementById('optinforms_form1_width_pixels').disabled=false;" /> <label for="optinforms_form1_width_fixed" class="radiobutton-label"><?php echo __('Fixed:', 'optin-forms'); ?></label>
|
540 |
-
</div><!--choose-width-->
|
541 |
-
<input type="text" id="optinforms_form1_width_pixels" name="optinforms_form1_width_pixels" value="<?php echo optinforms_form1_default_width_pixels(); ?>" class="fixed-width" <?php echo optinforms_form1_disabled_width_pixels(); ?> /> <p class="fixed-width-px"><?php echo __('px', 'optin-forms'); ?></p>
|
542 |
-
<div class="clear"></div>
|
543 |
-
</div><!--optionmiddle-->
|
544 |
-
<div class="optionlast">
|
545 |
-
|
546 |
-
</div><!--optionlast-->
|
547 |
-
<div class="clear"></div>
|
548 |
-
|
549 |
-
</div><!--optiongroup-->
|
550 |
-
|
551 |
-
<script type="text/javascript">
|
552 |
-
function optinforms_explain_width_1() {
|
553 |
-
// Get the DOM reference
|
554 |
-
var contentId = document.getElementById("optinforms-explain-width-1");
|
555 |
-
// Toggle
|
556 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
557 |
-
contentId.style.display = "block";
|
558 |
-
}
|
559 |
-
</script>
|
560 |
-
<div id="optinforms-explain-width-1" style="display:none;">
|
561 |
-
<div class="optinforms-help">
|
562 |
-
<p><?php echo __('In most cases, you can leave the form width at 100%. This will ensure your form will align perfectly with any WordPress theme and act responsive when scaled on different devices. Please note that the form preview displayed in your WordPress administration panel will not be affected by changing this value.', 'optin-forms'); ?></p>
|
563 |
-
</div><!--optinforms-help-->
|
564 |
-
</div><!--optinforms-explain-width-1-->
|
565 |
-
|
566 |
-
</div><!--toggle-container-->
|
567 |
-
<div class="clear"></div>
|
568 |
-
</div><!--toggle-wrap-->
|
569 |
-
|
570 |
-
<div class="toggle-wrap">
|
571 |
-
<span class="trigger">
|
572 |
-
<a><?php echo __('Form Options', 'optin-forms'); ?></a>
|
573 |
-
</span>
|
574 |
-
|
575 |
-
<div class="toggle-container" style="display: none;">
|
576 |
-
|
577 |
-
<div class="optiongroup">
|
578 |
-
<div class="optionleft">
|
579 |
-
|
580 |
-
</div><!--optionleft-->
|
581 |
-
<div class="optionmiddle">
|
582 |
-
<input type="checkbox" name="optinforms_form1_hide_title" value="1" id="optinforms_form1_hide_title" <?php if (get_option('optinforms_form1_hide_title')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form1_title_visibility(this.checked);" /> <label for="optinforms_form1_hide_title" class="nopointer"><?php echo __('Hide the title', 'optin-forms'); ?></label>
|
583 |
-
<script type="text/javascript">
|
584 |
-
function optinforms_form1_title_visibility(optinchecked) {
|
585 |
-
if(optinchecked) {
|
586 |
-
document.getElementById("optinforms-form1-title").style.display = "none";
|
587 |
-
}
|
588 |
-
else {
|
589 |
-
document.getElementById("optinforms-form1-title").style.display = "";
|
590 |
-
}
|
591 |
-
}
|
592 |
-
</script>
|
593 |
-
</div><!--optionmiddle-->
|
594 |
-
<div class="optionlast">
|
595 |
-
|
596 |
-
</div><!--optionlast-->
|
597 |
-
<div class="clear"></div>
|
598 |
-
</div><!--optiongroup-->
|
599 |
-
|
600 |
-
<div class="optiongroup">
|
601 |
-
<div class="optionleft">
|
602 |
-
|
603 |
-
</div><!--optionleft-->
|
604 |
-
<div class="optionmiddle">
|
605 |
-
<input type="checkbox" name="optinforms_form1_hide_subtitle" value="1" id="optinforms_form1_hide_subtitle" <?php if (get_option('optinforms_form1_hide_subtitle')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form1_subtitle_visibility(this.checked);" /> <label for="optinforms_form1_hide_subtitle" class="nopointer"><?php echo __('Hide the subtitle', 'optin-forms'); ?></label>
|
606 |
-
<script type="text/javascript">
|
607 |
-
function optinforms_form1_subtitle_visibility(optinchecked) {
|
608 |
-
if(optinchecked) {
|
609 |
-
document.getElementById("optinforms-form1-subtitle").style.display = "none";
|
610 |
-
}
|
611 |
-
else {
|
612 |
-
document.getElementById("optinforms-form1-subtitle").style.display = "";
|
613 |
-
}
|
614 |
-
}
|
615 |
-
</script>
|
616 |
-
</div><!--optionmiddle-->
|
617 |
-
<div class="optionlast">
|
618 |
-
|
619 |
-
</div><!--optionlast-->
|
620 |
-
<div class="clear"></div>
|
621 |
-
</div><!--optiongroup-->
|
622 |
-
|
623 |
-
<div class="optiongroup">
|
624 |
-
<div class="optionleft">
|
625 |
-
|
626 |
-
</div><!--optionleft-->
|
627 |
-
<div class="optionmiddle">
|
628 |
-
<input type="checkbox" name="optinforms_form1_hide_name_field" value="1" id="optinforms_form1_hide_name_field" <?php if (get_option('optinforms_form1_hide_name_field')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form1_name_field_visibility(this.checked);" /> <label for="optinforms_form1_hide_name_field" class="nopointer"><?php echo __('Hide the name field', 'optin-forms'); ?></label>
|
629 |
-
<script type="text/javascript">
|
630 |
-
function optinforms_form1_name_field_visibility(optinchecked) {
|
631 |
-
if(optinchecked) {
|
632 |
-
document.getElementById("optinforms-form1-name-field-container").style.display = "none";
|
633 |
-
document.getElementById("optinforms-form1-email-field-container").style.width = "78%";
|
634 |
-
}
|
635 |
-
else {
|
636 |
-
document.getElementById("optinforms-form1-name-field-container").style.display = "";
|
637 |
-
document.getElementById("optinforms-form1-email-field-container").style.width = "38%";
|
638 |
-
}
|
639 |
-
}
|
640 |
-
</script>
|
641 |
-
</div><!--optionmiddle-->
|
642 |
-
<div class="optionlast">
|
643 |
-
|
644 |
-
</div><!--optionlast-->
|
645 |
-
<div class="clear"></div>
|
646 |
-
</div><!--optiongroup-->
|
647 |
-
|
648 |
-
<div class="optiongroup">
|
649 |
-
<div class="optionleft">
|
650 |
-
|
651 |
-
</div><!--optionleft-->
|
652 |
-
<div class="optionmiddle">
|
653 |
-
<input type="checkbox" name="optinforms_form1_hide_disclaimer" value="1" id="optinforms_form1_hide_disclaimer" <?php if (get_option('optinforms_form1_hide_disclaimer')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form1_disclaimer_visibility(this.checked);" /> <label for="optinforms_form1_hide_disclaimer" class="nopointer"><?php echo __('Hide the disclaimer', 'optin-forms'); ?></label>
|
654 |
-
<script type="text/javascript">
|
655 |
-
function optinforms_form1_disclaimer_visibility(optinchecked) {
|
656 |
-
if(optinchecked) {
|
657 |
-
document.getElementById("optinforms-form1-disclaimer").style.display = "none";
|
658 |
-
}
|
659 |
-
else {
|
660 |
-
document.getElementById("optinforms-form1-disclaimer").style.display = "";
|
661 |
-
}
|
662 |
-
}
|
663 |
-
</script>
|
664 |
-
</div><!--optionmiddle-->
|
665 |
-
<div class="optionlast">
|
666 |
-
|
667 |
-
</div><!--optionlast-->
|
668 |
-
<div class="clear"></div>
|
669 |
-
</div><!--optiongroup-->
|
670 |
-
|
671 |
-
<div class="optiongroup">
|
672 |
-
<div class="optionleft">
|
673 |
-
<label for="optinforms_form1_css" class="nopointer"><?php echo __('Custom CSS', 'optin-forms'); ?></label> <label><a onclick="optinforms_explain_css_1()"><span class="explain">?</span></a></label>
|
674 |
-
</div><!--optionleft-->
|
675 |
-
<div class="optionmiddle">
|
676 |
-
<textarea id="optinforms_form1_css" name="optinforms_form1_css"><?php echo optinforms_form1_css(); ?></textarea>
|
677 |
-
</div><!--optionmiddle-->
|
678 |
-
<div class="optionlast">
|
679 |
-
|
680 |
-
</div><!--optionlast-->
|
681 |
-
<div class="clear"></div>
|
682 |
-
</div><!--optiongroup-->
|
683 |
-
|
684 |
-
<script type="text/javascript">
|
685 |
-
function optinforms_explain_css_1() {
|
686 |
-
// Get the DOM reference
|
687 |
-
var contentId = document.getElementById("optinforms-explain-css-1");
|
688 |
-
// Toggle
|
689 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
690 |
-
contentId.style.display = "block";
|
691 |
-
}
|
692 |
-
</script>
|
693 |
-
<div id="optinforms-explain-css-1" style="display:none;">
|
694 |
-
<div class="optinforms-help">
|
695 |
-
<p><?php echo __('Override the plugin\'s CSS values by entering your own custom CSS.', 'optin-forms'); ?></p>
|
696 |
-
</div><!--optinforms-help-->
|
697 |
-
</div><!--optinforms-explain-css-1-->
|
698 |
-
|
699 |
-
</div><!--toggle-container-->
|
700 |
-
<div class="clear"></div>
|
701 |
-
</div><!--toggle-wrap-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/options-form-2.php
DELETED
@@ -1,534 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
|
3 |
-
<span class="trigger">
|
4 |
-
<a><?php echo __('Style Your Form', 'optin-forms'); ?></a>
|
5 |
-
</span>
|
6 |
-
|
7 |
-
<div class="toggle-container" style="display: none;">
|
8 |
-
<div class="optiongroup">
|
9 |
-
<div class="optionleft">
|
10 |
-
<label for="optinforms_form2_background" class="nopointer"><?php echo __('Form background color', 'optin-forms'); ?></label>
|
11 |
-
</div><!--optionleft-->
|
12 |
-
<div class="optionmiddle">
|
13 |
-
<input type="text" id="optinforms_form2_background" name="optinforms_form2_background" class="optinforms-color" value="<?php echo optinforms_form2_default_background(); ?>" data-default-color="#266d7c" />
|
14 |
-
<script>
|
15 |
-
jQuery(document).ready(function($){
|
16 |
-
$('#optinforms_form2_background').wpColorPicker({
|
17 |
-
color: true,
|
18 |
-
hide: true,
|
19 |
-
palettes: true,
|
20 |
-
change: function(event, ui) {
|
21 |
-
$("#optinforms-form2").css( 'background-color', ui.color.toString());
|
22 |
-
}
|
23 |
-
});
|
24 |
-
});
|
25 |
-
</script>
|
26 |
-
</div><!--optionmiddle-->
|
27 |
-
<div class="optionlast">
|
28 |
-
|
29 |
-
</div><!--optionlast-->
|
30 |
-
<div class="clear"></div>
|
31 |
-
</div><!--optiongroup-->
|
32 |
-
|
33 |
-
<?php if (get_option('optinforms_form2_hide_title')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your title in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
34 |
-
|
35 |
-
<div class="optiongroup">
|
36 |
-
<div class="optionleft">
|
37 |
-
<label for="optinforms_form2_title" class="nopointer"><?php echo __('Title', 'optin-forms'); ?></label>
|
38 |
-
</div><!--optionleft-->
|
39 |
-
<div class="optionmiddle">
|
40 |
-
<input type="text" id="optinforms_form2_title" name="optinforms_form2_title" value="<?php echo optinforms_form2_default_title(); ?>" onchange='optinforms_change_form2_title()' <?php if (get_option('optinforms_form2_hide_title')== '1') { echo 'disabled="disabled"'; } ?> />
|
41 |
-
<script type="text/javascript">
|
42 |
-
function optinforms_change_form2_title() {
|
43 |
-
document.getElementById('optinforms-form2-title').innerHTML = document.getElementById('optinforms_form2_title').value;
|
44 |
-
}
|
45 |
-
</script>
|
46 |
-
</div><!--optionmiddle-->
|
47 |
-
<div class="optionlast">
|
48 |
-
|
49 |
-
</div><!--optionlast-->
|
50 |
-
<div class="clear"></div>
|
51 |
-
</div><!--optiongroup-->
|
52 |
-
|
53 |
-
<div class="optiongroup">
|
54 |
-
<div class="optionleft">
|
55 |
-
<label for="optinforms_form2_title_font" class="nopointer"><?php echo __('Title font', 'optin-forms'); ?></label>
|
56 |
-
</div><!--optionleft-->
|
57 |
-
<div class="optionmiddle">
|
58 |
-
<select name="optinforms_form2_title_font" id="optinforms_form2_title_font" onchange='optinforms_change_form2_title_font()' <?php if (get_option('optinforms_form2_hide_title')== '1') { echo 'disabled="disabled"'; } ?>>
|
59 |
-
<?php echo optinforms_get_form2_title_font_options(); ?>
|
60 |
-
</select>
|
61 |
-
<script type="text/javascript">
|
62 |
-
function optinforms_change_form2_title_font() {
|
63 |
-
document.getElementById("optinforms-form2-title").style.fontFamily = document.getElementById('optinforms_form2_title_font').value;
|
64 |
-
}
|
65 |
-
</script>
|
66 |
-
</div><!--optionmiddle-->
|
67 |
-
<div class="optionlast">
|
68 |
-
|
69 |
-
</div><!--optionlast-->
|
70 |
-
<div class="clear"></div>
|
71 |
-
</div><!--optiongroup-->
|
72 |
-
|
73 |
-
<div class="optiongroup">
|
74 |
-
<div class="optionleft">
|
75 |
-
<label for="optinforms_form2_title_size" class="nopointer"><?php echo __('Title size', 'optin-forms'); ?></label>
|
76 |
-
</div><!--optionleft-->
|
77 |
-
<div class="optionmiddle">
|
78 |
-
<select name="optinforms_form2_title_size" id="optinforms_form2_title_size" onchange='optinforms_change_form2_title_size()' <?php if (get_option('optinforms_form2_hide_title')== '1') { echo 'disabled="disabled"'; } ?>>
|
79 |
-
<?php echo optinforms_get_form2_title_size_options(); ?>
|
80 |
-
</select>
|
81 |
-
<script type="text/javascript">
|
82 |
-
function optinforms_change_form2_title_size() {
|
83 |
-
document.getElementById("optinforms-form2-title").style.fontSize = document.getElementById('optinforms_form2_title_size').value;
|
84 |
-
document.getElementById("optinforms-form2-title").style.lineHeight = document.getElementById('optinforms_form2_title_size').value;
|
85 |
-
}
|
86 |
-
</script>
|
87 |
-
</div><!--optionmiddle-->
|
88 |
-
<div class="optionlast">
|
89 |
-
|
90 |
-
</div><!--optionlast-->
|
91 |
-
<div class="clear"></div>
|
92 |
-
</div><!--optiongroup-->
|
93 |
-
|
94 |
-
<div class="optiongroup">
|
95 |
-
<div class="optionleft">
|
96 |
-
<label for="optinforms_form2_title_color" class="nopointer"><?php echo __('Title color', 'optin-forms'); ?></label>
|
97 |
-
</div><!--optionleft-->
|
98 |
-
<div class="optionmiddle">
|
99 |
-
<input type="text" id="optinforms_form2_title_color" name="optinforms_form2_title_color" class="optinforms-color" value="<?php echo optinforms_form2_default_title_color(); ?>" data-default-color="#ffffff" <?php if (get_option('optinforms_form2_hide_title')== '1') { echo 'disabled="disabled"'; } ?> />
|
100 |
-
<script>
|
101 |
-
jQuery(document).ready(function($){
|
102 |
-
$('#optinforms_form2_title_color').wpColorPicker({
|
103 |
-
color: true,
|
104 |
-
hide: true,
|
105 |
-
palettes: true,
|
106 |
-
change: function(event, ui) {
|
107 |
-
$("#optinforms-form2-title").css( 'color', ui.color.toString());
|
108 |
-
}
|
109 |
-
});
|
110 |
-
});
|
111 |
-
</script>
|
112 |
-
</div><!--optionmiddle-->
|
113 |
-
<div class="optionlast">
|
114 |
-
|
115 |
-
</div><!--optionlast-->
|
116 |
-
<div class="clear"></div>
|
117 |
-
</div><!--optiongroup-->
|
118 |
-
|
119 |
-
<div class="optiongroup">
|
120 |
-
<div class="optionleft">
|
121 |
-
<label for="optinforms_form2_email_field" class="nopointer"><?php echo __('Email field', 'optin-forms'); ?></label>
|
122 |
-
</div><!--optionleft-->
|
123 |
-
<div class="optionmiddle">
|
124 |
-
<input type="text" id="optinforms_form2_email_field" name="optinforms_form2_email_field" value="<?php echo optinforms_form2_default_email_field(); ?>" onchange='optinforms_change_form2_email_field()' />
|
125 |
-
<script type="text/javascript">
|
126 |
-
function optinforms_change_form2_email_field() {
|
127 |
-
document.getElementById('optinforms-form2-email-field').value = document.getElementById('optinforms_form2_email_field').value;
|
128 |
-
}
|
129 |
-
</script>
|
130 |
-
</div><!--optionmiddle-->
|
131 |
-
<div class="optionlast">
|
132 |
-
|
133 |
-
</div><!--optionlast-->
|
134 |
-
<div class="clear"></div>
|
135 |
-
</div><!--optiongroup-->
|
136 |
-
|
137 |
-
<div class="optiongroup">
|
138 |
-
<div class="optionleft">
|
139 |
-
<label for="optinforms_form2_fields_font" class="nopointer"><?php echo __('Email field font', 'optin-forms'); ?></label>
|
140 |
-
</div><!--optionleft-->
|
141 |
-
<div class="optionmiddle">
|
142 |
-
<select name="optinforms_form2_fields_font" id="optinforms_form2_fields_font" onchange='optinforms_change_form2_fields_font()'>
|
143 |
-
<?php echo optinforms_get_form2_fields_font_options(); ?>
|
144 |
-
</select>
|
145 |
-
<script type="text/javascript">
|
146 |
-
function optinforms_change_form2_fields_font() {
|
147 |
-
document.getElementById("optinforms-form2-email-field").style.fontFamily = document.getElementById('optinforms_form2_fields_font').value;
|
148 |
-
}
|
149 |
-
</script>
|
150 |
-
</div><!--optionmiddle-->
|
151 |
-
<div class="optionlast">
|
152 |
-
|
153 |
-
</div><!--optionlast-->
|
154 |
-
<div class="clear"></div>
|
155 |
-
</div><!--optiongroup-->
|
156 |
-
|
157 |
-
<div class="optiongroup">
|
158 |
-
<div class="optionleft">
|
159 |
-
<label for="optinforms_form2_fields_size" class="nopointer"><?php echo __('Email field size', 'optin-forms'); ?></label>
|
160 |
-
</div><!--optionleft-->
|
161 |
-
<div class="optionmiddle">
|
162 |
-
<select name="optinforms_form2_fields_size" id="optinforms_form2_fields_size" onchange='optinforms_change_form2_fields_size()'>
|
163 |
-
<?php echo optinforms_get_form2_fields_size_options(); ?>
|
164 |
-
</select>
|
165 |
-
<script type="text/javascript">
|
166 |
-
function optinforms_change_form2_fields_size() {
|
167 |
-
document.getElementById("optinforms-form2-email-field").style.fontSize = document.getElementById('optinforms_form2_fields_size').value;
|
168 |
-
}
|
169 |
-
</script>
|
170 |
-
</div><!--optionmiddle-->
|
171 |
-
<div class="optionlast">
|
172 |
-
|
173 |
-
</div><!--optionlast-->
|
174 |
-
<div class="clear"></div>
|
175 |
-
</div><!--optiongroup-->
|
176 |
-
|
177 |
-
<div class="optiongroup">
|
178 |
-
<div class="optionleft">
|
179 |
-
<label for="optinforms_form2_fields_color" class="nopointer"><?php echo __('Email field color', 'optin-forms'); ?></label>
|
180 |
-
</div><!--optionleft-->
|
181 |
-
<div class="optionmiddle">
|
182 |
-
<input type="text" id="optinforms_form2_fields_color" name="optinforms_form2_fields_color" class="optinforms-color" value="<?php echo optinforms_form2_default_fields_color(); ?>" data-default-color="#000000" />
|
183 |
-
<script>
|
184 |
-
jQuery(document).ready(function($){
|
185 |
-
$('#optinforms_form1_fields_color').wpColorPicker({
|
186 |
-
color: true,
|
187 |
-
hide: true,
|
188 |
-
palettes: true,
|
189 |
-
change: function(event, ui) {
|
190 |
-
$("#optinforms-form2-email-field").css( 'color', ui.color.toString());
|
191 |
-
}
|
192 |
-
});
|
193 |
-
});
|
194 |
-
</script>
|
195 |
-
</div><!--optionmiddle-->
|
196 |
-
<div class="optionlast">
|
197 |
-
|
198 |
-
</div><!--optionlast-->
|
199 |
-
<div class="clear"></div>
|
200 |
-
</div><!--optiongroup-->
|
201 |
-
|
202 |
-
<div class="optiongroup">
|
203 |
-
<div class="optionleft">
|
204 |
-
<label for="optinforms_form2_button_text" class="nopointer"><?php echo __('Button text', 'optin-forms'); ?></label>
|
205 |
-
</div><!--optionleft-->
|
206 |
-
<div class="optionmiddle">
|
207 |
-
<input type="text" id="optinforms_form2_button_text" name="optinforms_form2_button_text" value="<?php echo optinforms_form2_default_button_text(); ?>" onchange='optinforms_change_form2_button_text()' />
|
208 |
-
<script type="text/javascript">
|
209 |
-
function optinforms_change_form2_button_text() {
|
210 |
-
document.getElementById('optinforms-form2-button').value = document.getElementById('optinforms_form2_button_text').value;
|
211 |
-
}
|
212 |
-
</script>
|
213 |
-
</div><!--optionmiddle-->
|
214 |
-
<div class="optionlast">
|
215 |
-
|
216 |
-
</div><!--optionlast-->
|
217 |
-
<div class="clear"></div>
|
218 |
-
</div><!--optiongroup-->
|
219 |
-
|
220 |
-
<div class="optiongroup">
|
221 |
-
<div class="optionleft">
|
222 |
-
<label for="optinforms_form2_button_text_font" class="nopointer"><?php echo __('Button text font', 'optin-forms'); ?></label>
|
223 |
-
</div><!--optionleft-->
|
224 |
-
<div class="optionmiddle">
|
225 |
-
<select name="optinforms_form2_button_text_font" id="optinforms_form2_button_text_font" onchange='optinforms_change_form2_button_text_font()'>
|
226 |
-
<?php echo optinforms_get_form2_button_text_font_options(); ?>
|
227 |
-
</select>
|
228 |
-
<script type="text/javascript">
|
229 |
-
function optinforms_change_form2_button_text_font() {
|
230 |
-
document.getElementById("optinforms-form2-button").style.fontFamily = document.getElementById('optinforms_form2_button_text_font').value;
|
231 |
-
}
|
232 |
-
</script>
|
233 |
-
</div><!--optionmiddle-->
|
234 |
-
<div class="optionlast">
|
235 |
-
|
236 |
-
</div><!--optionlast-->
|
237 |
-
<div class="clear"></div>
|
238 |
-
</div><!--optiongroup-->
|
239 |
-
|
240 |
-
<div class="optiongroup">
|
241 |
-
<div class="optionleft">
|
242 |
-
<label for="optinforms_form2_button_text_size" class="nopointer"><?php echo __('Button text size', 'optin-forms'); ?></label>
|
243 |
-
</div><!--optionleft-->
|
244 |
-
<div class="optionmiddle">
|
245 |
-
<select name="optinforms_form2_button_text_size" id="optinforms_form2_button_text_size" onchange='optinforms_change_form2_button_text_size()'>
|
246 |
-
<?php echo optinforms_get_form2_button_text_size_options(); ?>
|
247 |
-
</select>
|
248 |
-
<script type="text/javascript">
|
249 |
-
function optinforms_change_form2_button_text_size() {
|
250 |
-
document.getElementById("optinforms-form2-button").style.fontSize = document.getElementById('optinforms_form2_button_text_size').value;
|
251 |
-
}
|
252 |
-
</script>
|
253 |
-
</div><!--optionmiddle-->
|
254 |
-
<div class="optionlast">
|
255 |
-
|
256 |
-
</div><!--optionlast-->
|
257 |
-
<div class="clear"></div>
|
258 |
-
</div><!--optiongroup-->
|
259 |
-
|
260 |
-
<div class="optiongroup">
|
261 |
-
<div class="optionleft">
|
262 |
-
<label for="optinforms_form2_button_text_color" class="nopointer"><?php echo __('Button text color', 'optin-forms'); ?></label>
|
263 |
-
</div><!--optionleft-->
|
264 |
-
<div class="optionmiddle">
|
265 |
-
<input type="text" id="optinforms_form2_button_text_color" name="optinforms_form2_button_text_color" class="optinforms-color" value="<?php echo optinforms_form2_default_button_text_color(); ?>" data-default-color="#FFFFFF" />
|
266 |
-
<script>
|
267 |
-
jQuery(document).ready(function($){
|
268 |
-
$('#optinforms_form2_button_text_color').wpColorPicker({
|
269 |
-
color: true,
|
270 |
-
hide: true,
|
271 |
-
palettes: true,
|
272 |
-
change: function(event, ui) {
|
273 |
-
$("#optinforms-form2-button").css( 'color', ui.color.toString());
|
274 |
-
}
|
275 |
-
});
|
276 |
-
});
|
277 |
-
</script>
|
278 |
-
</div><!--optionmiddle-->
|
279 |
-
<div class="optionlast">
|
280 |
-
|
281 |
-
</div><!--optionlast-->
|
282 |
-
<div class="clear"></div>
|
283 |
-
</div><!--optiongroup-->
|
284 |
-
|
285 |
-
<div class="optiongroup">
|
286 |
-
<div class="optionleft">
|
287 |
-
<label for="optinforms_form2_button_background" class="nopointer"><?php echo __('Button background color', 'optin-forms'); ?></label>
|
288 |
-
</div><!--optionleft-->
|
289 |
-
<div class="optionmiddle">
|
290 |
-
<input type="text" id="optinforms_form2_button_background" name="optinforms_form2_button_background" class="optinforms-color" value="<?php echo optinforms_form2_default_button_background(); ?>" data-default-color="#49A3FE" />
|
291 |
-
<script>
|
292 |
-
jQuery(document).ready(function($){
|
293 |
-
$('#optinforms_form2_button_background').wpColorPicker({
|
294 |
-
color: true,
|
295 |
-
hide: true,
|
296 |
-
palettes: true,
|
297 |
-
change: function(event, ui) {
|
298 |
-
$("#optinforms-form2-button").css( 'background-color', ui.color.toString());
|
299 |
-
}
|
300 |
-
});
|
301 |
-
});
|
302 |
-
</script>
|
303 |
-
</div><!--optionmiddle-->
|
304 |
-
<div class="optionlast">
|
305 |
-
|
306 |
-
</div><!--optionlast-->
|
307 |
-
<div class="clear"></div>
|
308 |
-
</div><!--optiongroup-->
|
309 |
-
|
310 |
-
<?php if (get_option('optinforms_form2_hide_disclaimer')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your disclaimer in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
311 |
-
|
312 |
-
<div class="optiongroup">
|
313 |
-
<div class="optionleft">
|
314 |
-
<label for="optinforms_form2_disclaimer" class="nopointer"><?php echo __('Disclaimer text', 'optin-forms'); ?></label>
|
315 |
-
</div><!--optionleft-->
|
316 |
-
<div class="optionmiddle">
|
317 |
-
<input type="text" id="optinforms_form2_disclaimer" name="optinforms_form2_disclaimer" value="<?php echo optinforms_form2_default_disclaimer(); ?>" onchange='optinforms_change_form2_disclaimer()' <?php if (get_option('optinforms_form2_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?> />
|
318 |
-
<script type="text/javascript">
|
319 |
-
function optinforms_change_form2_disclaimer() {
|
320 |
-
document.getElementById('optinforms-form2-disclaimer').innerHTML = document.getElementById('optinforms_form2_disclaimer').value;
|
321 |
-
}
|
322 |
-
</script>
|
323 |
-
</div><!--optionmiddle-->
|
324 |
-
<div class="optionlast">
|
325 |
-
|
326 |
-
</div><!--optionlast-->
|
327 |
-
<div class="clear"></div>
|
328 |
-
</div><!--optiongroup-->
|
329 |
-
|
330 |
-
<div class="optiongroup">
|
331 |
-
<div class="optionleft">
|
332 |
-
<label for="optinforms_form2_disclaimer_font" class="nopointer"><?php echo __('Disclaimer font', 'optin-forms'); ?></label>
|
333 |
-
</div><!--optionleft-->
|
334 |
-
<div class="optionmiddle">
|
335 |
-
<select name="optinforms_form2_disclaimer_font" id="optinforms_form2_disclaimer_font" onchange='optinforms_change_form2_disclaimer_font()' <?php if (get_option('optinforms_form2_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?>>
|
336 |
-
<?php echo optinforms_get_form2_disclaimer_font_options(); ?>
|
337 |
-
</select>
|
338 |
-
<script type="text/javascript">
|
339 |
-
function optinforms_change_form2_disclaimer_font() {
|
340 |
-
document.getElementById("optinforms-form2-disclaimer").style.fontFamily = document.getElementById('optinforms_form2_disclaimer_font').value;
|
341 |
-
}
|
342 |
-
</script>
|
343 |
-
</div><!--optionmiddle-->
|
344 |
-
<div class="optionlast">
|
345 |
-
|
346 |
-
</div><!--optionlast-->
|
347 |
-
<div class="clear"></div>
|
348 |
-
</div><!--optiongroup-->
|
349 |
-
|
350 |
-
<div class="optiongroup">
|
351 |
-
<div class="optionleft">
|
352 |
-
<label for="optinforms_form2_disclaimer_size" class="nopointer"><?php echo __('Disclaimer size', 'optin-forms'); ?></label>
|
353 |
-
</div><!--optionleft-->
|
354 |
-
<div class="optionmiddle">
|
355 |
-
<select name="optinforms_form2_disclaimer_size" id="optinforms_form2_disclaimer_size" onchange='optinforms_change_form2_disclaimer_size()' <?php if (get_option('optinforms_form2_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?>>
|
356 |
-
<?php echo optinforms_get_form2_disclaimer_size_options(); ?>
|
357 |
-
</select>
|
358 |
-
<script type="text/javascript">
|
359 |
-
function optinforms_change_form2_disclaimer_size() {
|
360 |
-
document.getElementById("optinforms-form2-disclaimer").style.fontSize = document.getElementById('optinforms_form2_disclaimer_size').value;
|
361 |
-
}
|
362 |
-
</script>
|
363 |
-
</div><!--optionmiddle-->
|
364 |
-
<div class="optionlast">
|
365 |
-
|
366 |
-
</div><!--optionlast-->
|
367 |
-
<div class="clear"></div>
|
368 |
-
</div><!--optiongroup-->
|
369 |
-
|
370 |
-
<div class="optiongroup">
|
371 |
-
<div class="optionleft">
|
372 |
-
<label for="optinforms_form2_disclaimer_color" class="nopointer"><?php echo __('Disclaimer color', 'optin-forms'); ?></label>
|
373 |
-
</div><!--optionleft-->
|
374 |
-
<div class="optionmiddle">
|
375 |
-
<input type="text" id="optinforms_form2_disclaimer_color" name="optinforms_form2_disclaimer_color" class="optinforms-color" value="<?php echo optinforms_form2_default_disclaimer_color(); ?>" data-default-color="#ffffff" <?php if (get_option('optinforms_form2_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?> />
|
376 |
-
<script>
|
377 |
-
jQuery(document).ready(function($){
|
378 |
-
$('#optinforms_form2_disclaimer_color').wpColorPicker({
|
379 |
-
color: true,
|
380 |
-
hide: true,
|
381 |
-
palettes: true,
|
382 |
-
change: function(event, ui) {
|
383 |
-
$("#optinforms-form2-disclaimer").css( 'color', ui.color.toString());
|
384 |
-
}
|
385 |
-
});
|
386 |
-
});
|
387 |
-
</script>
|
388 |
-
</div><!--optionmiddle-->
|
389 |
-
<div class="optionlast">
|
390 |
-
|
391 |
-
</div><!--optionlast-->
|
392 |
-
<div class="clear"></div>
|
393 |
-
</div><!--optiongroup-->
|
394 |
-
|
395 |
-
<div class="optiongroup">
|
396 |
-
<div class="optionleft">
|
397 |
-
<label for="optinforms_form2_width" class="nopointer"><?php echo __('Form width', 'optin-forms'); ?></label> <label><a onclick="optinforms_explain_width_2()"><span class="explain">?</span></a></label>
|
398 |
-
</div><!--optionleft-->
|
399 |
-
<div class="optionmiddle">
|
400 |
-
<div class="choose-width">
|
401 |
-
<input name="optinforms_form2_width" id="optinforms_form2_width_100" type="radio" value="0" class="radiobutton" <?php echo optinforms_form2_checked_width_100(); ?> onclick="document.getElementById('optinforms_form2_width_pixels').disabled=true;" /> <label for="optinforms_form2_width_100" class="radiobutton-label"><?php echo __('100%', 'optin-forms'); ?></label>
|
402 |
-
</div><!--choose-width-->
|
403 |
-
<div class="choose-width">
|
404 |
-
<input name="optinforms_form2_width" id="optinforms_form2_width_fixed" type="radio" value="1" class="radiobutton" <?php echo optinforms_form2_checked_width_fixed(); ?> onclick="document.getElementById('optinforms_form2_width_pixels').disabled=false;" /> <label for="optinforms_form2_width_fixed" class="radiobutton-label"><?php echo __('Fixed:', 'optin-forms'); ?></label>
|
405 |
-
</div><!--choose-width-->
|
406 |
-
<input type="text" id="optinforms_form2_width_pixels" name="optinforms_form2_width_pixels" value="<?php echo optinforms_form2_default_width_pixels(); ?>" class="fixed-width" <?php echo optinforms_form2_disabled_width_pixels(); ?> /> <p class="fixed-width-px"><?php echo __('px', 'optin-forms'); ?></p>
|
407 |
-
<div class="clear"></div>
|
408 |
-
</div><!--optionmiddle-->
|
409 |
-
<div class="optionlast">
|
410 |
-
|
411 |
-
</div><!--optionlast-->
|
412 |
-
<div class="clear"></div>
|
413 |
-
</div><!--optiongroup-->
|
414 |
-
|
415 |
-
<script type="text/javascript">
|
416 |
-
function optinforms_explain_width_2() {
|
417 |
-
// Get the DOM reference
|
418 |
-
var contentId = document.getElementById("optinforms-explain-width-2");
|
419 |
-
// Toggle
|
420 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
421 |
-
contentId.style.display = "block";
|
422 |
-
}
|
423 |
-
</script>
|
424 |
-
<div id="optinforms-explain-width-2" style="display:none;">
|
425 |
-
<div class="optinforms-help">
|
426 |
-
<p><?php echo __('In most cases, you can leave the form width at 100%. This will ensure your form will align perfectly with any WordPress theme and act responsive when scaled on different devices. Please note that the form preview displayed in your WordPress administration panel will not be affected by changing this value.', 'optin-forms'); ?></p>
|
427 |
-
</div><!--optinforms-help-->
|
428 |
-
</div><!--optinforms-explain-width-2-->
|
429 |
-
|
430 |
-
</div><!--toggle-container-->
|
431 |
-
<div class="clear"></div>
|
432 |
-
|
433 |
-
<div class="toggle-wrap">
|
434 |
-
<span class="trigger">
|
435 |
-
<a><?php echo __('Form Options', 'optin-forms'); ?></a>
|
436 |
-
</span>
|
437 |
-
|
438 |
-
<div class="toggle-container" style="display: none;">
|
439 |
-
|
440 |
-
<div class="optiongroup">
|
441 |
-
<div class="optionleft">
|
442 |
-
|
443 |
-
</div><!--optionleft-->
|
444 |
-
<div class="optionmiddle">
|
445 |
-
<input type="checkbox" name="optinforms_form2_hide_title" value="1" id="optinforms_form2_hide_title" <?php if (get_option('optinforms_form2_hide_title')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form2_title_visibility(this.checked);optinforms_form2_hide_title_disclaimer_visibility();" /> <label for="optinforms_form2_hide_title" class="nopointer"><?php echo __('Hide the title', 'optin-forms'); ?></label>
|
446 |
-
<script type="text/javascript">
|
447 |
-
function optinforms_form2_title_visibility(optinchecked) {
|
448 |
-
if(optinchecked) {
|
449 |
-
document.getElementById("optinforms-form2-title-container").style.display = "none";
|
450 |
-
}
|
451 |
-
else {
|
452 |
-
document.getElementById("optinforms-form2-title-container").style.display = "";
|
453 |
-
}
|
454 |
-
}
|
455 |
-
</script>
|
456 |
-
</div><!--optionmiddle-->
|
457 |
-
<div class="optionlast">
|
458 |
-
|
459 |
-
</div><!--optionlast-->
|
460 |
-
<div class="clear"></div>
|
461 |
-
</div><!--optiongroup-->
|
462 |
-
|
463 |
-
<div class="optiongroup">
|
464 |
-
<div class="optionleft">
|
465 |
-
|
466 |
-
</div><!--optionleft-->
|
467 |
-
<div class="optionmiddle">
|
468 |
-
<input type="checkbox" name="optinforms_form2_hide_disclaimer" value="1" id="optinforms_form2_hide_disclaimer" <?php if (get_option('optinforms_form2_hide_disclaimer')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form2_disclaimer_visibility(this.checked);optinforms_form2_hide_title_disclaimer_visibility();" /> <label for="optinforms_form2_hide_disclaimer" class="nopointer"><?php echo __('Hide the disclaimer', 'optin-forms'); ?></label>
|
469 |
-
<script type="text/javascript">
|
470 |
-
function optinforms_form2_disclaimer_visibility(optinchecked) {
|
471 |
-
if(optinchecked) {
|
472 |
-
document.getElementById("optinforms-form2-disclaimer-container").style.display = "none";
|
473 |
-
}
|
474 |
-
else {
|
475 |
-
document.getElementById("optinforms-form2-disclaimer-container").style.display = "";
|
476 |
-
}
|
477 |
-
}
|
478 |
-
</script>
|
479 |
-
<script type="text/javascript">
|
480 |
-
function optinforms_form2_hide_title_disclaimer_visibility() {
|
481 |
-
if(document.getElementById("optinforms_form2_hide_title").checked && document.getElementById("optinforms_form2_hide_disclaimer").checked) {
|
482 |
-
document.getElementById("optinforms-form2-email-field-container").style.width = "80%";
|
483 |
-
}
|
484 |
-
else if(document.getElementById("optinforms_form2_hide_title").checked) {
|
485 |
-
document.getElementById("optinforms-form2-email-field-container").style.width = "62%";
|
486 |
-
}
|
487 |
-
else if(document.getElementById("optinforms_form2_hide_disclaimer").checked) {
|
488 |
-
document.getElementById("optinforms-form2-email-field-container").style.width = "48%";
|
489 |
-
}
|
490 |
-
else {
|
491 |
-
document.getElementById("optinforms-form2-email-field-container").style.width = "30%";
|
492 |
-
}
|
493 |
-
}
|
494 |
-
</script>
|
495 |
-
</div><!--optionmiddle-->
|
496 |
-
<div class="optionlast">
|
497 |
-
|
498 |
-
</div><!--optionlast-->
|
499 |
-
<div class="clear"></div>
|
500 |
-
</div><!--optiongroup-->
|
501 |
-
|
502 |
-
<div class="optiongroup">
|
503 |
-
<div class="optionleft">
|
504 |
-
<label for="optinforms_form2_css" class="nopointer"><?php echo __('Custom CSS', 'optin-forms'); ?></label> <label><a onclick="optinforms_explain_css_2()"><span class="explain">?</span></a></label>
|
505 |
-
</div><!--optionleft-->
|
506 |
-
<div class="optionmiddle">
|
507 |
-
<textarea id="optinforms_form2_css" name="optinforms_form2_css"><?php echo optinforms_form2_css(); ?></textarea>
|
508 |
-
</div><!--optionmiddle-->
|
509 |
-
<div class="optionlast">
|
510 |
-
|
511 |
-
</div><!--optionlast-->
|
512 |
-
<div class="clear"></div>
|
513 |
-
</div><!--optiongroup-->
|
514 |
-
|
515 |
-
<script type="text/javascript">
|
516 |
-
function optinforms_explain_css_2() {
|
517 |
-
// Get the DOM reference
|
518 |
-
var contentId = document.getElementById("optinforms-explain-css-2");
|
519 |
-
// Toggle
|
520 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
521 |
-
contentId.style.display = "block";
|
522 |
-
}
|
523 |
-
</script>
|
524 |
-
<div id="optinforms-explain-css-2" style="display:none;">
|
525 |
-
<div class="optinforms-help">
|
526 |
-
<p><?php echo __('Override the plugin\'s CSS values by entering your own custom CSS.', 'optin-forms'); ?></p>
|
527 |
-
</div><!--optinforms-help-->
|
528 |
-
</div><!--optinforms-explain-css-2-->
|
529 |
-
|
530 |
-
</div><!--toggle-container-->
|
531 |
-
<div class="clear"></div>
|
532 |
-
</div><!--toggle-wrap-->
|
533 |
-
|
534 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/options-form-3.php
DELETED
@@ -1,578 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
|
3 |
-
<span class="trigger">
|
4 |
-
<a><?php echo __('Style Your Form', 'optin-forms'); ?></a>
|
5 |
-
</span>
|
6 |
-
|
7 |
-
<div class="toggle-container" style="display: none;">
|
8 |
-
<div class="optiongroup">
|
9 |
-
<div class="optionleft">
|
10 |
-
<label for="optinforms_form3_background" class="nopointer"><?php echo __('Form background color', 'optin-forms'); ?></label>
|
11 |
-
</div><!--optionleft-->
|
12 |
-
<div class="optionmiddle">
|
13 |
-
<input type="text" id="optinforms_form3_background" name="optinforms_form3_background" class="optinforms-color" value="<?php echo optinforms_form3_default_background(); ?>" data-default-color="#FFFFFF" />
|
14 |
-
<script>
|
15 |
-
jQuery(document).ready(function($){
|
16 |
-
$('#optinforms_form3_background').wpColorPicker({
|
17 |
-
color: true,
|
18 |
-
hide: true,
|
19 |
-
palettes: true,
|
20 |
-
change: function(event, ui) {
|
21 |
-
$("#optinforms-form3-inside").css( 'background-color', ui.color.toString());
|
22 |
-
}
|
23 |
-
});
|
24 |
-
});
|
25 |
-
</script>
|
26 |
-
</div><!--optionmiddle-->
|
27 |
-
<div class="optionlast">
|
28 |
-
|
29 |
-
</div><!--optionlast-->
|
30 |
-
<div class="clear"></div>
|
31 |
-
</div><!--optiongroup-->
|
32 |
-
|
33 |
-
<?php if (get_option('optinforms_form3_hide_title')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your title in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
34 |
-
|
35 |
-
<div class="optiongroup">
|
36 |
-
<div class="optionleft">
|
37 |
-
<label for="optinforms_form3_title" class="nopointer"><?php echo __('Title', 'optin-forms'); ?></label>
|
38 |
-
</div><!--optionleft-->
|
39 |
-
<div class="optionmiddle">
|
40 |
-
<input type="text" id="optinforms_form3_title" name="optinforms_form3_title" value="<?php echo optinforms_form3_default_title(); ?>" onchange='optinforms_change_form3_title()' <?php if (get_option('optinforms_form3_hide_title')== '1') { echo 'disabled="disabled"'; } ?> />
|
41 |
-
<script type="text/javascript">
|
42 |
-
function optinforms_change_form3_title() {
|
43 |
-
document.getElementById('optinforms-form3-title').innerHTML = document.getElementById('optinforms_form3_title').value;
|
44 |
-
}
|
45 |
-
</script>
|
46 |
-
</div><!--optionmiddle-->
|
47 |
-
<div class="optionlast">
|
48 |
-
|
49 |
-
</div><!--optionlast-->
|
50 |
-
<div class="clear"></div>
|
51 |
-
</div><!--optiongroup-->
|
52 |
-
|
53 |
-
<div class="optiongroup">
|
54 |
-
<div class="optionleft">
|
55 |
-
<label for="optinforms_form3_title_font" class="nopointer"><?php echo __('Title font', 'optin-forms'); ?></label>
|
56 |
-
</div><!--optionleft-->
|
57 |
-
<div class="optionmiddle">
|
58 |
-
<select name="optinforms_form3_title_font" id="optinforms_form3_title_font" onchange='optinforms_change_form3_title_font()' <?php if (get_option('optinforms_form3_hide_title')== '1') { echo 'disabled="disabled"'; } ?>>
|
59 |
-
<?php echo optinforms_get_form3_title_font_options(); ?>
|
60 |
-
</select>
|
61 |
-
<script type="text/javascript">
|
62 |
-
function optinforms_change_form3_title_font() {
|
63 |
-
document.getElementById("optinforms-form3-title").style.fontFamily = document.getElementById('optinforms_form3_title_font').value;
|
64 |
-
}
|
65 |
-
</script>
|
66 |
-
</div><!--optionmiddle-->
|
67 |
-
<div class="optionlast">
|
68 |
-
|
69 |
-
</div><!--optionlast-->
|
70 |
-
<div class="clear"></div>
|
71 |
-
</div><!--optiongroup-->
|
72 |
-
|
73 |
-
<div class="optiongroup">
|
74 |
-
<div class="optionleft">
|
75 |
-
<label for="optinforms_form3_title_size" class="nopointer"><?php echo __('Title size', 'optin-forms'); ?></label>
|
76 |
-
</div><!--optionleft-->
|
77 |
-
<div class="optionmiddle">
|
78 |
-
<select name="optinforms_form3_title_size" id="optinforms_form3_title_size" onchange='optinforms_change_form3_title_size()' <?php if (get_option('optinforms_form3_hide_title')== '1') { echo 'disabled="disabled"'; } ?>>
|
79 |
-
<?php echo optinforms_get_form3_title_size_options(); ?>
|
80 |
-
</select>
|
81 |
-
<script type="text/javascript">
|
82 |
-
function optinforms_change_form3_title_size() {
|
83 |
-
document.getElementById("optinforms-form3-title").style.fontSize = document.getElementById('optinforms_form3_title_size').value;
|
84 |
-
document.getElementById("optinforms-form3-title").style.lineHeight = document.getElementById('optinforms_form3_title_size').value;
|
85 |
-
}
|
86 |
-
</script>
|
87 |
-
</div><!--optionmiddle-->
|
88 |
-
<div class="optionlast">
|
89 |
-
|
90 |
-
</div><!--optionlast-->
|
91 |
-
<div class="clear"></div>
|
92 |
-
</div><!--optiongroup-->
|
93 |
-
|
94 |
-
<div class="optiongroup">
|
95 |
-
<div class="optionleft">
|
96 |
-
<label for="optinforms_form3_title_color" class="nopointer"><?php echo __('Title color', 'optin-forms'); ?></label>
|
97 |
-
</div><!--optionleft-->
|
98 |
-
<div class="optionmiddle">
|
99 |
-
<input type="text" id="optinforms_form3_title_color" name="optinforms_form3_title_color" class="optinforms-color" value="<?php echo optinforms_form3_default_title_color(); ?>" data-default-color="#505050" <?php if (get_option('optinforms_form3_hide_title')== '1') { echo 'disabled="disabled"'; } ?> />
|
100 |
-
<script>
|
101 |
-
jQuery(document).ready(function($){
|
102 |
-
$('#optinforms_form3_title_color').wpColorPicker({
|
103 |
-
color: true,
|
104 |
-
hide: true,
|
105 |
-
palettes: true,
|
106 |
-
change: function(event, ui) {
|
107 |
-
$("#optinforms-form3-title").css( 'color', ui.color.toString());
|
108 |
-
}
|
109 |
-
});
|
110 |
-
});
|
111 |
-
</script>
|
112 |
-
</div><!--optionmiddle-->
|
113 |
-
<div class="optionlast">
|
114 |
-
|
115 |
-
</div><!--optionlast-->
|
116 |
-
<div class="clear"></div>
|
117 |
-
</div><!--optiongroup-->
|
118 |
-
|
119 |
-
<?php if (get_option('optinforms_form3_hide_subtitle')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your subtitle in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
120 |
-
|
121 |
-
<div class="optiongroup">
|
122 |
-
<div class="optionleft">
|
123 |
-
<label for="optinforms_form3_subtitle" class="nopointer"><?php echo __('Subtitle', 'optin-forms'); ?></label>
|
124 |
-
</div><!--optionleft-->
|
125 |
-
<div class="optionmiddle">
|
126 |
-
<input type="text" id="optinforms_form3_subtitle" name="optinforms_form3_subtitle" value="<?php echo optinforms_form3_default_subtitle(); ?>" onchange='optinforms_change_form3_subtitle()' <?php if (get_option('optinforms_form3_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?> />
|
127 |
-
<script type="text/javascript">
|
128 |
-
function optinforms_change_form3_subtitle() {
|
129 |
-
document.getElementById('optinforms-form3-subtitle').innerHTML = document.getElementById('optinforms_form3_subtitle').value;
|
130 |
-
}
|
131 |
-
</script>
|
132 |
-
</div><!--optionmiddle-->
|
133 |
-
<div class="optionlast">
|
134 |
-
|
135 |
-
</div><!--optionlast-->
|
136 |
-
<div class="clear"></div>
|
137 |
-
</div><!--optiongroup-->
|
138 |
-
|
139 |
-
<div class="optiongroup">
|
140 |
-
<div class="optionleft">
|
141 |
-
<label for="optinforms_form3_subtitle_font" class="nopointer"><?php echo __('Subtitle font', 'optin-forms'); ?></label>
|
142 |
-
</div><!--optionleft-->
|
143 |
-
<div class="optionmiddle">
|
144 |
-
<select name="optinforms_form3_subtitle_font" id="optinforms_form3_subtitle_font" onchange='optinforms_change_form3_subtitle_font()' <?php if (get_option('optinforms_form3_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?>>
|
145 |
-
<?php echo optinforms_get_form3_subtitle_font_options(); ?>
|
146 |
-
</select>
|
147 |
-
<script type="text/javascript">
|
148 |
-
function optinforms_change_form3_subtitle_font() {
|
149 |
-
document.getElementById("optinforms-form3-subtitle").style.fontFamily = document.getElementById('optinforms_form3_subtitle_font').value;
|
150 |
-
}
|
151 |
-
</script>
|
152 |
-
</div><!--optionmiddle-->
|
153 |
-
<div class="optionlast">
|
154 |
-
|
155 |
-
</div><!--optionlast-->
|
156 |
-
<div class="clear"></div>
|
157 |
-
</div><!--optiongroup-->
|
158 |
-
|
159 |
-
<div class="optiongroup">
|
160 |
-
<div class="optionleft">
|
161 |
-
<label for="optinforms_form3_subtitle_size" class="nopointer"><?php echo __('Subtitle size', 'optin-forms'); ?></label>
|
162 |
-
</div><!--optionleft-->
|
163 |
-
<div class="optionmiddle">
|
164 |
-
<select name="optinforms_form3_subtitle_size" id="optinforms_form3_subtitle_size" onchange='optinforms_change_form3_subtitle_size()' <?php if (get_option('optinforms_form3_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?>>
|
165 |
-
<?php echo optinforms_get_form3_subtitle_size_options(); ?>
|
166 |
-
</select>
|
167 |
-
<script type="text/javascript">
|
168 |
-
function optinforms_change_form3_subtitle_size() {
|
169 |
-
document.getElementById("optinforms-form3-subtitle").style.fontSize = document.getElementById('optinforms_form3_subtitle_size').value;
|
170 |
-
}
|
171 |
-
</script>
|
172 |
-
</div><!--optionmiddle-->
|
173 |
-
<div class="optionlast">
|
174 |
-
|
175 |
-
</div><!--optionlast-->
|
176 |
-
<div class="clear"></div>
|
177 |
-
</div><!--optiongroup-->
|
178 |
-
|
179 |
-
<div class="optiongroup">
|
180 |
-
<div class="optionleft">
|
181 |
-
<label for="optinforms_form3_subtitle_color" class="nopointer"><?php echo __('Subtitle color', 'optin-forms'); ?></label>
|
182 |
-
</div><!--optionleft-->
|
183 |
-
<div class="optionmiddle">
|
184 |
-
<input type="text" id="optinforms_form3_subtitle_color" name="optinforms_form3_subtitle_color" class="optinforms-color" value="<?php echo optinforms_form3_default_subtitle_color(); ?>" data-default-color="#505050" <?php if (get_option('optinforms_form3_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?> />
|
185 |
-
<script>
|
186 |
-
jQuery(document).ready(function($){
|
187 |
-
$('#optinforms_form3_subtitle_color').wpColorPicker({
|
188 |
-
color: true,
|
189 |
-
hide: true,
|
190 |
-
palettes: true,
|
191 |
-
change: function(event, ui) {
|
192 |
-
$("#optinforms-form3-subtitle").css( 'color', ui.color.toString());
|
193 |
-
}
|
194 |
-
});
|
195 |
-
});
|
196 |
-
</script>
|
197 |
-
</div><!--optionmiddle-->
|
198 |
-
<div class="optionlast">
|
199 |
-
|
200 |
-
</div><!--optionlast-->
|
201 |
-
<div class="clear"></div>
|
202 |
-
</div><!--optiongroup-->
|
203 |
-
|
204 |
-
<?php if (get_option('optinforms_form3_hide_name_field')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your name field in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
205 |
-
|
206 |
-
<div class="optiongroup">
|
207 |
-
<div class="optionleft">
|
208 |
-
<label for="optinforms_form3_name_field" class="nopointer"><?php echo __('Input field: name', 'optin-forms'); ?></label>
|
209 |
-
</div><!--optionleft-->
|
210 |
-
<div class="optionmiddle">
|
211 |
-
<input type="text" id="optinforms_form3_name_field" name="optinforms_form3_name_field" value="<?php echo optinforms_form3_default_name_field(); ?>" onchange='optinforms_change_form3_name_field()' <?php if (get_option('optinforms_form3_hide_name_field')== '1') { echo 'disabled="disabled"'; } ?> />
|
212 |
-
<script type="text/javascript">
|
213 |
-
function optinforms_change_form3_name_field() {
|
214 |
-
document.getElementById('optinforms-form3-name-field').value = document.getElementById('optinforms_form3_name_field').value;
|
215 |
-
}
|
216 |
-
</script>
|
217 |
-
</div><!--optionmiddle-->
|
218 |
-
<div class="optionlast">
|
219 |
-
|
220 |
-
</div><!--optionlast-->
|
221 |
-
<div class="clear"></div>
|
222 |
-
</div><!--optiongroup-->
|
223 |
-
|
224 |
-
<div class="optiongroup">
|
225 |
-
<div class="optionleft">
|
226 |
-
<label for="optinforms_form3_email_field" class="nopointer"><?php echo __('Input field: email', 'optin-forms'); ?></label>
|
227 |
-
</div><!--optionleft-->
|
228 |
-
<div class="optionmiddle">
|
229 |
-
<input type="text" id="optinforms_form3_email_field" name="optinforms_form3_email_field" value="<?php echo optinforms_form3_default_email_field(); ?>" onchange='optinforms_change_form3_email_field()' />
|
230 |
-
<script type="text/javascript">
|
231 |
-
function optinforms_change_form3_email_field() {
|
232 |
-
document.getElementById('optinforms-form3-email-field').value = document.getElementById('optinforms_form3_email_field').value;
|
233 |
-
}
|
234 |
-
</script>
|
235 |
-
</div><!--optionmiddle-->
|
236 |
-
<div class="optionlast">
|
237 |
-
|
238 |
-
</div><!--optionlast-->
|
239 |
-
<div class="clear"></div>
|
240 |
-
</div><!--optiongroup-->
|
241 |
-
|
242 |
-
<div class="optiongroup">
|
243 |
-
<div class="optionleft">
|
244 |
-
<label for="optinforms_form3_fields_font" class="nopointer"><?php echo __('Input fields font', 'optin-forms'); ?></label>
|
245 |
-
</div><!--optionleft-->
|
246 |
-
<div class="optionmiddle">
|
247 |
-
<select name="optinforms_form3_fields_font" id="optinforms_form3_fields_font" onchange='optinforms_change_form3_fields_font()'>
|
248 |
-
<?php echo optinforms_get_form3_fields_font_options(); ?>
|
249 |
-
</select>
|
250 |
-
<script type="text/javascript">
|
251 |
-
function optinforms_change_form3_fields_font() {
|
252 |
-
document.getElementById("optinforms-form3-name-field").style.fontFamily = document.getElementById('optinforms_form3_fields_font').value;
|
253 |
-
document.getElementById("optinforms-form3-email-field").style.fontFamily = document.getElementById('optinforms_form3_fields_font').value;
|
254 |
-
}
|
255 |
-
</script>
|
256 |
-
</div><!--optionmiddle-->
|
257 |
-
<div class="optionlast">
|
258 |
-
|
259 |
-
</div><!--optionlast-->
|
260 |
-
<div class="clear"></div>
|
261 |
-
</div><!--optiongroup-->
|
262 |
-
|
263 |
-
<div class="optiongroup">
|
264 |
-
<div class="optionleft">
|
265 |
-
<label for="optinforms_form3_fields_size" class="nopointer"><?php echo __('Input fields size', 'optin-forms'); ?></label>
|
266 |
-
</div><!--optionleft-->
|
267 |
-
<div class="optionmiddle">
|
268 |
-
<select name="optinforms_form3_fields_size" id="optinforms_form3_fields_size" onchange='optinforms_change_form3_fields_size()'>
|
269 |
-
<?php echo optinforms_get_form3_fields_size_options(); ?>
|
270 |
-
</select>
|
271 |
-
<script type="text/javascript">
|
272 |
-
function optinforms_change_form3_fields_size() {
|
273 |
-
document.getElementById("optinforms-form3-name-field").style.fontSize = document.getElementById('optinforms_form3_fields_size').value;
|
274 |
-
document.getElementById("optinforms-form3-email-field").style.fontSize = document.getElementById('optinforms_form3_fields_size').value;
|
275 |
-
}
|
276 |
-
</script>
|
277 |
-
</div><!--optionmiddle-->
|
278 |
-
<div class="optionlast">
|
279 |
-
|
280 |
-
</div><!--optionlast-->
|
281 |
-
<div class="clear"></div>
|
282 |
-
</div><!--optiongroup-->
|
283 |
-
|
284 |
-
<div class="optiongroup">
|
285 |
-
<div class="optionleft">
|
286 |
-
<label for="optinforms_form3_fields_color" class="nopointer"><?php echo __('Input fields color', 'optin-forms'); ?></label>
|
287 |
-
</div><!--optionleft-->
|
288 |
-
<div class="optionmiddle">
|
289 |
-
<input type="text" id="optinforms_form3_fields_color" name="optinforms_form3_fields_color" class="optinforms-color" value="<?php echo optinforms_form3_default_fields_color(); ?>" data-default-color="#666666" />
|
290 |
-
<script>
|
291 |
-
jQuery(document).ready(function($){
|
292 |
-
$('#optinforms_form3_fields_color').wpColorPicker({
|
293 |
-
color: true,
|
294 |
-
hide: true,
|
295 |
-
palettes: true,
|
296 |
-
change: function(event, ui) {
|
297 |
-
$("#optinforms-form3-name-field").css( 'color', ui.color.toString());
|
298 |
-
$("#optinforms-form3-email-field").css( 'color', ui.color.toString());
|
299 |
-
}
|
300 |
-
});
|
301 |
-
});
|
302 |
-
</script>
|
303 |
-
</div><!--optionmiddle-->
|
304 |
-
<div class="optionlast">
|
305 |
-
|
306 |
-
</div><!--optionlast-->
|
307 |
-
<div class="clear"></div>
|
308 |
-
</div><!--optiongroup-->
|
309 |
-
|
310 |
-
<div class="optiongroup">
|
311 |
-
<div class="optionleft">
|
312 |
-
<label for="optinforms_form3_button_text" class="nopointer"><?php echo __('Button text', 'optin-forms'); ?></label>
|
313 |
-
</div><!--optionleft-->
|
314 |
-
<div class="optionmiddle">
|
315 |
-
<input type="text" id="optinforms_form3_button_text" name="optinforms_form3_button_text" value="<?php echo optinforms_form3_default_button_text(); ?>" onchange='optinforms_change_form3_button_text()' />
|
316 |
-
<script type="text/javascript">
|
317 |
-
function optinforms_change_form3_button_text() {
|
318 |
-
document.getElementById('optinforms-form3-button').value = document.getElementById('optinforms_form3_button_text').value;
|
319 |
-
}
|
320 |
-
</script>
|
321 |
-
</div><!--optionmiddle-->
|
322 |
-
<div class="optionlast">
|
323 |
-
|
324 |
-
</div><!--optionlast-->
|
325 |
-
<div class="clear"></div>
|
326 |
-
</div><!--optiongroup-->
|
327 |
-
|
328 |
-
<div class="optiongroup">
|
329 |
-
<div class="optionleft">
|
330 |
-
<label for="optinforms_form3_button_text_font" class="nopointer"><?php echo __('Button text font', 'optin-forms'); ?></label>
|
331 |
-
</div><!--optionleft-->
|
332 |
-
<div class="optionmiddle">
|
333 |
-
<select name="optinforms_form3_button_text_font" id="optinforms_form3_button_text_font" onchange='optinforms_change_form3_button_text_font()'>
|
334 |
-
<?php echo optinforms_get_form3_button_text_font_options(); ?>
|
335 |
-
</select>
|
336 |
-
<script type="text/javascript">
|
337 |
-
function optinforms_change_form3_button_text_font() {
|
338 |
-
document.getElementById("optinforms-form3-button").style.fontFamily = document.getElementById('optinforms_form3_button_text_font').value;
|
339 |
-
}
|
340 |
-
</script>
|
341 |
-
</div><!--optionmiddle-->
|
342 |
-
<div class="optionlast">
|
343 |
-
|
344 |
-
</div><!--optionlast-->
|
345 |
-
<div class="clear"></div>
|
346 |
-
</div><!--optiongroup-->
|
347 |
-
|
348 |
-
<div class="optiongroup">
|
349 |
-
<div class="optionleft">
|
350 |
-
<label for="optinforms_form3_button_text_size" class="nopointer"><?php echo __('Button text size', 'optin-forms'); ?></label>
|
351 |
-
</div><!--optionleft-->
|
352 |
-
<div class="optionmiddle">
|
353 |
-
<select name="optinforms_form3_button_text_size" id="optinforms_form3_button_text_size" onchange='optinforms_change_form3_button_text_size()'>
|
354 |
-
<?php echo optinforms_get_form3_button_text_size_options(); ?>
|
355 |
-
</select>
|
356 |
-
<script type="text/javascript">
|
357 |
-
function optinforms_change_form3_button_text_size() {
|
358 |
-
document.getElementById("optinforms-form3-button").style.fontSize = document.getElementById('optinforms_form3_button_text_size').value;
|
359 |
-
}
|
360 |
-
</script>
|
361 |
-
</div><!--optionmiddle-->
|
362 |
-
<div class="optionlast">
|
363 |
-
|
364 |
-
</div><!--optionlast-->
|
365 |
-
<div class="clear"></div>
|
366 |
-
</div><!--optiongroup-->
|
367 |
-
|
368 |
-
<div class="optiongroup">
|
369 |
-
<div class="optionleft">
|
370 |
-
<label for="optinforms_form3_button_text_color" class="nopointer"><?php echo __('Button text color', 'optin-forms'); ?></label>
|
371 |
-
</div><!--optionleft-->
|
372 |
-
<div class="optionmiddle">
|
373 |
-
<input type="text" id="optinforms_form3_button_text_color" name="optinforms_form3_button_text_color" class="optinforms-color" value="<?php echo optinforms_form3_default_button_text_color(); ?>" data-default-color="#FFFFFF" />
|
374 |
-
<script>
|
375 |
-
jQuery(document).ready(function($){
|
376 |
-
$('#optinforms_form3_button_text_color').wpColorPicker({
|
377 |
-
color: true,
|
378 |
-
hide: true,
|
379 |
-
palettes: true,
|
380 |
-
change: function(event, ui) {
|
381 |
-
$("#optinforms-form3-button").css( 'color', ui.color.toString());
|
382 |
-
}
|
383 |
-
});
|
384 |
-
});
|
385 |
-
</script>
|
386 |
-
</div><!--optionmiddle-->
|
387 |
-
<div class="optionlast">
|
388 |
-
|
389 |
-
</div><!--optionlast-->
|
390 |
-
<div class="clear"></div>
|
391 |
-
</div><!--optiongroup-->
|
392 |
-
|
393 |
-
<div class="optiongroup">
|
394 |
-
<div class="optionleft">
|
395 |
-
<label for="optinforms_form3_button_background" class="nopointer"><?php echo __('Button background color', 'optin-forms'); ?></label>
|
396 |
-
</div><!--optionleft-->
|
397 |
-
<div class="optionmiddle">
|
398 |
-
<input type="text" id="optinforms_form3_button_background" name="optinforms_form3_button_background" class="optinforms-color" value="<?php echo optinforms_form3_default_button_background(); ?>" data-default-color="#49A3FE" />
|
399 |
-
<script>
|
400 |
-
jQuery(document).ready(function($){
|
401 |
-
$('#optinforms_form3_button_background').wpColorPicker({
|
402 |
-
color: true,
|
403 |
-
hide: true,
|
404 |
-
palettes: true,
|
405 |
-
change: function(event, ui) {
|
406 |
-
$("#optinforms-form3-button").css( 'background-color', ui.color.toString());
|
407 |
-
}
|
408 |
-
});
|
409 |
-
});
|
410 |
-
</script>
|
411 |
-
</div><!--optionmiddle-->
|
412 |
-
<div class="optionlast">
|
413 |
-
|
414 |
-
</div><!--optionlast-->
|
415 |
-
<div class="clear"></div>
|
416 |
-
</div><!--optiongroup-->
|
417 |
-
|
418 |
-
<div class="optiongroup">
|
419 |
-
<div class="optionleft">
|
420 |
-
<label for="optinforms_form3_width" class="nopointer"><?php echo __('Form width', 'optin-forms'); ?></label> <label><a onclick="optinforms_explain_width_3()"><span class="explain">?</span></a></label>
|
421 |
-
</div><!--optionleft-->
|
422 |
-
<div class="optionmiddle">
|
423 |
-
<div class="choose-width">
|
424 |
-
<input name="optinforms_form3_width" id="optinforms_form3_width_100" type="radio" value="0" class="radiobutton" <?php echo optinforms_form3_checked_width_100(); ?> onclick="document.getElementById('optinforms_form3_width_pixels').disabled=true;" /> <label for="optinforms_form3_width_100" class="radiobutton-label"><?php echo __('100%', 'optin-forms'); ?></label>
|
425 |
-
</div><!--choose-width-->
|
426 |
-
<div class="choose-width">
|
427 |
-
<input name="optinforms_form3_width" id="optinforms_form3_width_fixed" type="radio" value="1" class="radiobutton" <?php echo optinforms_form3_checked_width_fixed(); ?> onclick="document.getElementById('optinforms_form3_width_pixels').disabled=false;" /> <label for="optinforms_form3_width_fixed" class="radiobutton-label"><?php echo __('Fixed:', 'optin-forms'); ?></label>
|
428 |
-
</div><!--choose-width-->
|
429 |
-
<input type="text" id="optinforms_form3_width_pixels" name="optinforms_form3_width_pixels" value="<?php echo optinforms_form3_default_width_pixels(); ?>" class="fixed-width" <?php echo optinforms_form3_disabled_width_pixels(); ?> /> <p class="fixed-width-px"><?php echo __('px', 'optin-forms'); ?></p>
|
430 |
-
<div class="clear"></div>
|
431 |
-
</div><!--optionmiddle-->
|
432 |
-
<div class="optionlast">
|
433 |
-
|
434 |
-
</div><!--optionlast-->
|
435 |
-
<div class="clear"></div>
|
436 |
-
</div><!--optiongroup-->
|
437 |
-
|
438 |
-
<script type="text/javascript">
|
439 |
-
function optinforms_explain_width_3() {
|
440 |
-
// Get the DOM reference
|
441 |
-
var contentId = document.getElementById("optinforms-explain-width-3");
|
442 |
-
// Toggle
|
443 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
444 |
-
contentId.style.display = "block";
|
445 |
-
}
|
446 |
-
</script>
|
447 |
-
<div id="optinforms-explain-width-3" style="display:none;">
|
448 |
-
<div class="optinforms-help">
|
449 |
-
<p><?php echo __('In most cases, you can leave the form width at 100%. This will ensure your form will align perfectly with any WordPress theme and act responsive when scaled on different devices. Please note that the form preview displayed in your WordPress administration panel will not be affected by changing this value.', 'optin-forms'); ?></p>
|
450 |
-
</div><!--optinforms-help-->
|
451 |
-
</div><!--optinforms-explain-width-3-->
|
452 |
-
|
453 |
-
</div><!--toggle-container-->
|
454 |
-
<div class="clear"></div>
|
455 |
-
|
456 |
-
<div class="toggle-wrap">
|
457 |
-
<span class="trigger">
|
458 |
-
<a><?php echo __('Form Options', 'optin-forms'); ?></a>
|
459 |
-
</span>
|
460 |
-
|
461 |
-
<div class="toggle-container" style="display: none;">
|
462 |
-
|
463 |
-
<div class="optiongroup">
|
464 |
-
<div class="optionleft">
|
465 |
-
|
466 |
-
</div><!--optionleft-->
|
467 |
-
<div class="optionmiddle">
|
468 |
-
<input type="checkbox" name="optinforms_form3_hide_title" value="1" id="optinforms_form3_hide_title" <?php if (get_option('optinforms_form3_hide_title')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form3_title_visibility(this.checked);optinforms_form3_hide_title_subtitle_visibility();" /> <label for="optinforms_form3_hide_title" class="nopointer"><?php echo __('Hide the title', 'optin-forms'); ?></label>
|
469 |
-
<script type="text/javascript">
|
470 |
-
function optinforms_form3_title_visibility(optinchecked) {
|
471 |
-
if(optinchecked) {
|
472 |
-
document.getElementById("optinforms-form3-title").style.display = "none";
|
473 |
-
}
|
474 |
-
else {
|
475 |
-
document.getElementById("optinforms-form3-title").style.display = "";
|
476 |
-
}
|
477 |
-
}
|
478 |
-
</script>
|
479 |
-
</div><!--optionmiddle-->
|
480 |
-
<div class="optionlast">
|
481 |
-
|
482 |
-
</div><!--optionlast-->
|
483 |
-
<div class="clear"></div>
|
484 |
-
</div><!--optiongroup-->
|
485 |
-
|
486 |
-
<div class="optiongroup">
|
487 |
-
<div class="optionleft">
|
488 |
-
|
489 |
-
</div><!--optionleft-->
|
490 |
-
<div class="optionmiddle">
|
491 |
-
<input type="checkbox" name="optinforms_form3_hide_subtitle" value="1" id="optinforms_form3_hide_subtitle" <?php if (get_option('optinforms_form3_hide_subtitle')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form3_hide_subtitle_visibility(this.checked);optinforms_form3_hide_title_subtitle_visibility();" /> <label for="optinforms_form3_hide_subtitle" class="nopointer"><?php echo __('Hide the subtitle', 'optin-forms'); ?></label>
|
492 |
-
<script type="text/javascript">
|
493 |
-
function optinforms_form3_hide_subtitle_visibility(optinchecked) {
|
494 |
-
if(optinchecked) {
|
495 |
-
document.getElementById("optinforms-form3-subtitle").style.display = "none";
|
496 |
-
}
|
497 |
-
else {
|
498 |
-
document.getElementById("optinforms-form3-subtitle").style.display = "";
|
499 |
-
}
|
500 |
-
}
|
501 |
-
</script>
|
502 |
-
<script type="text/javascript">
|
503 |
-
function optinforms_form3_hide_title_subtitle_visibility() {
|
504 |
-
if(document.getElementById("optinforms_form3_hide_title").checked && document.getElementById("optinforms_form3_hide_subtitle").checked) {
|
505 |
-
document.getElementById("optinforms-form3-container-left").style.display = "none";
|
506 |
-
document.getElementById("optinforms-form3-container-right").style.margin = "10px 0 0 0";
|
507 |
-
document.getElementById("optinforms-form3-container-right").style.width = "100%";
|
508 |
-
}
|
509 |
-
else {
|
510 |
-
document.getElementById("optinforms-form3-container-left").style.display = "inline";
|
511 |
-
document.getElementById("optinforms-form3-container-right").style.margin = "10px 0 0 1%";
|
512 |
-
document.getElementById("optinforms-form3-container-right").style.width = "38%";
|
513 |
-
}
|
514 |
-
}
|
515 |
-
</script>
|
516 |
-
</div><!--optionmiddle-->
|
517 |
-
<div class="optionlast">
|
518 |
-
|
519 |
-
</div><!--optionlast-->
|
520 |
-
<div class="clear"></div>
|
521 |
-
</div><!--optiongroup-->
|
522 |
-
|
523 |
-
<div class="optiongroup">
|
524 |
-
<div class="optionleft">
|
525 |
-
|
526 |
-
</div><!--optionleft-->
|
527 |
-
<div class="optionmiddle">
|
528 |
-
<input type="checkbox" name="optinforms_form3_hide_name_field" value="1" id="optinforms_form3_hide_name_field" <?php if (get_option('optinforms_form3_hide_name_field')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form3_name_field_visibility(this.checked);" /> <label for="optinforms_form3_hide_name_field" class="nopointer"><?php echo __('Hide the name field', 'optin-forms'); ?></label>
|
529 |
-
<script type="text/javascript">
|
530 |
-
function optinforms_form3_name_field_visibility(optinchecked) {
|
531 |
-
if(optinchecked) {
|
532 |
-
document.getElementById("optinforms-form3-name-field").style.display = "none";
|
533 |
-
}
|
534 |
-
else {
|
535 |
-
document.getElementById("optinforms-form3-name-field").style.display = "";
|
536 |
-
}
|
537 |
-
}
|
538 |
-
</script>
|
539 |
-
</div><!--optionmiddle-->
|
540 |
-
<div class="optionlast">
|
541 |
-
|
542 |
-
</div><!--optionlast-->
|
543 |
-
<div class="clear"></div>
|
544 |
-
</div><!--optiongroup-->
|
545 |
-
|
546 |
-
<div class="optiongroup">
|
547 |
-
<div class="optionleft">
|
548 |
-
<label for="optinforms_form3_css" class="nopointer"><?php echo __('Custom CSS', 'optin-forms'); ?></label> <label><a onclick="optinforms_explain_css_3()"><span class="explain">?</span></a></label>
|
549 |
-
</div><!--optionleft-->
|
550 |
-
<div class="optionmiddle">
|
551 |
-
<textarea id="optinforms_form3_css" name="optinforms_form3_css"><?php echo optinforms_form3_css(); ?></textarea>
|
552 |
-
</div><!--optionmiddle-->
|
553 |
-
<div class="optionlast">
|
554 |
-
|
555 |
-
</div><!--optionlast-->
|
556 |
-
<div class="clear"></div>
|
557 |
-
</div><!--optiongroup-->
|
558 |
-
|
559 |
-
<script type="text/javascript">
|
560 |
-
function optinforms_explain_css_3() {
|
561 |
-
// Get the DOM reference
|
562 |
-
var contentId = document.getElementById("optinforms-explain-css-3");
|
563 |
-
// Toggle
|
564 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
565 |
-
contentId.style.display = "block";
|
566 |
-
}
|
567 |
-
</script>
|
568 |
-
<div id="optinforms-explain-css-3" style="display:none;">
|
569 |
-
<div class="optinforms-help">
|
570 |
-
<p><?php echo __('Override the plugin\'s CSS values by entering your own custom CSS.', 'optin-forms'); ?></p>
|
571 |
-
</div><!--optinforms-help-->
|
572 |
-
</div><!--optinforms-explain-css-3-->
|
573 |
-
|
574 |
-
</div><!--toggle-container-->
|
575 |
-
<div class="clear"></div>
|
576 |
-
</div><!--toggle-wrap-->
|
577 |
-
|
578 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/options-form-4.php
DELETED
@@ -1,652 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
|
3 |
-
<span class="trigger">
|
4 |
-
<a><?php echo __('Style Your Form', 'optin-forms'); ?></a>
|
5 |
-
</span>
|
6 |
-
|
7 |
-
<div class="toggle-container" style="display: none;">
|
8 |
-
<div class="optiongroup">
|
9 |
-
<div class="optionleft">
|
10 |
-
<label for="optinforms_form4_background" class="nopointer"><?php echo __('Form background color', 'optin-forms'); ?></label>
|
11 |
-
</div><!--optionleft-->
|
12 |
-
<div class="optionmiddle">
|
13 |
-
<input type="text" id="optinforms_form4_background" name="optinforms_form4_background" class="optinforms-color" value="<?php echo optinforms_form4_default_background(); ?>" data-default-color="#FCFCFC" />
|
14 |
-
<script>
|
15 |
-
jQuery(document).ready(function($){
|
16 |
-
$('#optinforms_form4_background').wpColorPicker({
|
17 |
-
color: true,
|
18 |
-
hide: true,
|
19 |
-
palettes: true,
|
20 |
-
change: function(event, ui) {
|
21 |
-
$("#optinforms-form4").css( 'background-color', ui.color.toString());
|
22 |
-
}
|
23 |
-
});
|
24 |
-
});
|
25 |
-
</script>
|
26 |
-
</div><!--optionmiddle-->
|
27 |
-
<div class="optionlast">
|
28 |
-
|
29 |
-
</div><!--optionlast-->
|
30 |
-
<div class="clear"></div>
|
31 |
-
</div><!--optiongroup-->
|
32 |
-
|
33 |
-
<div class="optiongroup">
|
34 |
-
<div class="optionleft">
|
35 |
-
<label for="optinforms_form4_border" class="nopointer"><?php echo __('Form border color', 'optin-forms'); ?></label>
|
36 |
-
</div><!--optionleft-->
|
37 |
-
<div class="optionmiddle">
|
38 |
-
<input type="text" id="optinforms_form4_border" name="optinforms_form4_border" class="optinforms-color" value="<?php echo optinforms_form4_default_border(); ?>" data-default-color="#ECEAED" />
|
39 |
-
<script>
|
40 |
-
jQuery(document).ready(function($){
|
41 |
-
$('#optinforms_form4_border').wpColorPicker({
|
42 |
-
color: true,
|
43 |
-
hide: true,
|
44 |
-
palettes: true,
|
45 |
-
change: function(event, ui) {
|
46 |
-
$("#optinforms-form4").css( 'border-color', ui.color.toString());
|
47 |
-
}
|
48 |
-
});
|
49 |
-
});
|
50 |
-
</script>
|
51 |
-
</div><!--optionmiddle-->
|
52 |
-
<div class="optionlast">
|
53 |
-
|
54 |
-
</div><!--optionlast-->
|
55 |
-
<div class="clear"></div>
|
56 |
-
</div><!--optiongroup-->
|
57 |
-
|
58 |
-
<?php if (get_option('optinforms_form4_hide_title')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your title in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
59 |
-
|
60 |
-
<div class="optiongroup">
|
61 |
-
<div class="optionleft">
|
62 |
-
<label for="optinforms_form4_title" class="nopointer"><?php echo __('Title', 'optin-forms'); ?></label>
|
63 |
-
</div><!--optionleft-->
|
64 |
-
<div class="optionmiddle">
|
65 |
-
<input type="text" id="optinforms_form4_title" name="optinforms_form4_title" value="<?php echo optinforms_form4_default_title(); ?>" onchange='optinforms_change_form4_title()' <?php if (get_option('optinforms_form4_hide_title')== '1') { echo 'disabled="disabled"'; } ?> />
|
66 |
-
<script type="text/javascript">
|
67 |
-
function optinforms_change_form4_title() {
|
68 |
-
document.getElementById('optinforms-form4-title').innerHTML = document.getElementById('optinforms_form4_title').value;
|
69 |
-
}
|
70 |
-
</script>
|
71 |
-
</div><!--optionmiddle-->
|
72 |
-
<div class="optionlast">
|
73 |
-
|
74 |
-
</div><!--optionlast-->
|
75 |
-
<div class="clear"></div>
|
76 |
-
</div><!--optiongroup-->
|
77 |
-
|
78 |
-
<div class="optiongroup">
|
79 |
-
<div class="optionleft">
|
80 |
-
<label for="optinforms_form4_title_font" class="nopointer"><?php echo __('Title font', 'optin-forms'); ?></label>
|
81 |
-
</div><!--optionleft-->
|
82 |
-
<div class="optionmiddle">
|
83 |
-
<select name="optinforms_form4_title_font" id="optinforms_form4_title_font" onchange='optinforms_change_form4_title_font()' <?php if (get_option('optinforms_form4_hide_title')== '1') { echo 'disabled="disabled"'; } ?>>
|
84 |
-
<?php echo optinforms_get_form4_title_font_options(); ?>
|
85 |
-
</select>
|
86 |
-
<script type="text/javascript">
|
87 |
-
function optinforms_change_form4_title_font() {
|
88 |
-
document.getElementById("optinforms-form4-title").style.fontFamily = document.getElementById('optinforms_form4_title_font').value;
|
89 |
-
}
|
90 |
-
</script>
|
91 |
-
</div><!--optionmiddle-->
|
92 |
-
<div class="optionlast">
|
93 |
-
|
94 |
-
</div><!--optionlast-->
|
95 |
-
<div class="clear"></div>
|
96 |
-
</div><!--optiongroup-->
|
97 |
-
|
98 |
-
<div class="optiongroup">
|
99 |
-
<div class="optionleft">
|
100 |
-
<label for="optinforms_form4_title_size" class="nopointer"><?php echo __('Title size', 'optin-forms'); ?></label>
|
101 |
-
</div><!--optionleft-->
|
102 |
-
<div class="optionmiddle">
|
103 |
-
<select name="optinforms_form4_title_size" id="optinforms_form4_title_size" onchange='optinforms_change_form4_title_size()' <?php if (get_option('optinforms_form4_hide_title')== '1') { echo 'disabled="disabled"'; } ?>>
|
104 |
-
<?php echo optinforms_get_form4_title_size_options(); ?>
|
105 |
-
</select>
|
106 |
-
<script type="text/javascript">
|
107 |
-
function optinforms_change_form4_title_size() {
|
108 |
-
document.getElementById("optinforms-form4-title").style.fontSize = document.getElementById('optinforms_form4_title_size').value;
|
109 |
-
document.getElementById("optinforms-form4-title").style.lineHeight = document.getElementById('optinforms_form4_title_size').value;
|
110 |
-
}
|
111 |
-
</script>
|
112 |
-
</div><!--optionmiddle-->
|
113 |
-
<div class="optionlast">
|
114 |
-
|
115 |
-
</div><!--optionlast-->
|
116 |
-
<div class="clear"></div>
|
117 |
-
</div><!--optiongroup-->
|
118 |
-
|
119 |
-
<div class="optiongroup">
|
120 |
-
<div class="optionleft">
|
121 |
-
<label for="optinforms_form4_title_color" class="nopointer"><?php echo __('Title color', 'optin-forms'); ?></label>
|
122 |
-
</div><!--optionleft-->
|
123 |
-
<div class="optionmiddle">
|
124 |
-
<input type="text" id="optinforms_form4_title_color" name="optinforms_form4_title_color" class="optinforms-color" value="<?php echo optinforms_form4_default_title_color(); ?>" data-default-color="#505050" <?php if (get_option('optinforms_form4_hide_title')== '1') { echo 'disabled="disabled"'; } ?> />
|
125 |
-
<script>
|
126 |
-
jQuery(document).ready(function($){
|
127 |
-
$('#optinforms_form4_title_color').wpColorPicker({
|
128 |
-
color: true,
|
129 |
-
hide: true,
|
130 |
-
palettes: true,
|
131 |
-
change: function(event, ui) {
|
132 |
-
$("#optinforms-form4-title").css( 'color', ui.color.toString());
|
133 |
-
}
|
134 |
-
});
|
135 |
-
});
|
136 |
-
</script>
|
137 |
-
</div><!--optionmiddle-->
|
138 |
-
<div class="optionlast">
|
139 |
-
|
140 |
-
</div><!--optionlast-->
|
141 |
-
<div class="clear"></div>
|
142 |
-
</div><!--optiongroup-->
|
143 |
-
|
144 |
-
<?php if (get_option('optinforms_form4_hide_subtitle')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your subtitle in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
145 |
-
|
146 |
-
<div class="optiongroup">
|
147 |
-
<div class="optionleft">
|
148 |
-
<label for="optinforms_form4_subtitle" class="nopointer"><?php echo __('Subtitle', 'optin-forms'); ?></label>
|
149 |
-
</div><!--optionleft-->
|
150 |
-
<div class="optionmiddle">
|
151 |
-
<input type="text" id="optinforms_form4_subtitle" name="optinforms_form4_subtitle" value="<?php echo optinforms_form4_default_subtitle(); ?>" onchange='optinforms_change_form4_subtitle()' <?php if (get_option('optinforms_form4_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?> />
|
152 |
-
<script type="text/javascript">
|
153 |
-
function optinforms_change_form4_subtitle() {
|
154 |
-
document.getElementById('optinforms-form4-subtitle').innerHTML = document.getElementById('optinforms_form4_subtitle').value;
|
155 |
-
}
|
156 |
-
</script>
|
157 |
-
</div><!--optionmiddle-->
|
158 |
-
<div class="optionlast">
|
159 |
-
|
160 |
-
</div><!--optionlast-->
|
161 |
-
<div class="clear"></div>
|
162 |
-
</div><!--optiongroup-->
|
163 |
-
|
164 |
-
<div class="optiongroup">
|
165 |
-
<div class="optionleft">
|
166 |
-
<label for="optinforms_form4_subtitle_font" class="nopointer"><?php echo __('Subtitle font', 'optin-forms'); ?></label>
|
167 |
-
</div><!--optionleft-->
|
168 |
-
<div class="optionmiddle">
|
169 |
-
<select name="optinforms_form4_subtitle_font" id="optinforms_form4_subtitle_font" onchange='optinforms_change_form4_subtitle_font()' <?php if (get_option('optinforms_form4_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?>>
|
170 |
-
<?php echo optinforms_get_form4_subtitle_font_options(); ?>
|
171 |
-
</select>
|
172 |
-
<script type="text/javascript">
|
173 |
-
function optinforms_change_form4_subtitle_font() {
|
174 |
-
document.getElementById("optinforms-form4-subtitle").style.fontFamily = document.getElementById('optinforms_form4_subtitle_font').value;
|
175 |
-
}
|
176 |
-
</script>
|
177 |
-
</div><!--optionmiddle-->
|
178 |
-
<div class="optionlast">
|
179 |
-
|
180 |
-
</div><!--optionlast-->
|
181 |
-
<div class="clear"></div>
|
182 |
-
</div><!--optiongroup-->
|
183 |
-
|
184 |
-
<div class="optiongroup">
|
185 |
-
<div class="optionleft">
|
186 |
-
<label for="optinforms_form4_subtitle_size" class="nopointer"><?php echo __('Subtitle size', 'optin-forms'); ?></label>
|
187 |
-
</div><!--optionleft-->
|
188 |
-
<div class="optionmiddle">
|
189 |
-
<select name="optinforms_form4_subtitle_size" id="optinforms_form4_subtitle_size" onchange='optinforms_change_form4_subtitle_size()' <?php if (get_option('optinforms_form4_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?>>
|
190 |
-
<?php echo optinforms_get_form4_subtitle_size_options(); ?>
|
191 |
-
</select>
|
192 |
-
<script type="text/javascript">
|
193 |
-
function optinforms_change_form4_subtitle_size() {
|
194 |
-
document.getElementById("optinforms-form4-subtitle").style.fontSize = document.getElementById('optinforms_form4_subtitle_size').value;
|
195 |
-
document.getElementById("optinforms-form4-subtitle").style.lineHeight = document.getElementById('optinforms_form4_subtitle_size').value;
|
196 |
-
}
|
197 |
-
</script>
|
198 |
-
</div><!--optionmiddle-->
|
199 |
-
<div class="optionlast">
|
200 |
-
|
201 |
-
</div><!--optionlast-->
|
202 |
-
<div class="clear"></div>
|
203 |
-
</div><!--optiongroup-->
|
204 |
-
|
205 |
-
<div class="optiongroup">
|
206 |
-
<div class="optionleft">
|
207 |
-
<label for="optinforms_form4_subtitle_color" class="nopointer"><?php echo __('Subtitle color', 'optin-forms'); ?></label>
|
208 |
-
</div><!--optionleft-->
|
209 |
-
<div class="optionmiddle">
|
210 |
-
<input type="text" id="optinforms_form4_subtitle_color" name="optinforms_form4_subtitle_color" class="optinforms-color" value="<?php echo optinforms_form4_default_subtitle_color(); ?>" data-default-color="#505050" <?php if (get_option('optinforms_form4_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?> />
|
211 |
-
<script>
|
212 |
-
jQuery(document).ready(function($){
|
213 |
-
$('#optinforms_form4_subtitle_color').wpColorPicker({
|
214 |
-
color: true,
|
215 |
-
hide: true,
|
216 |
-
palettes: true,
|
217 |
-
change: function(event, ui) {
|
218 |
-
$("#optinforms-form4-subtitle").css( 'color', ui.color.toString());
|
219 |
-
}
|
220 |
-
});
|
221 |
-
});
|
222 |
-
</script>
|
223 |
-
</div><!--optionmiddle-->
|
224 |
-
<div class="optionlast">
|
225 |
-
|
226 |
-
</div><!--optionlast-->
|
227 |
-
<div class="clear"></div>
|
228 |
-
</div><!--optiongroup-->
|
229 |
-
|
230 |
-
<div class="optiongroup">
|
231 |
-
<div class="optionleft">
|
232 |
-
<label for="optinforms_form4_email_field" class="nopointer"><?php echo __('Email field', 'optin-forms'); ?></label>
|
233 |
-
</div><!--optionleft-->
|
234 |
-
<div class="optionmiddle">
|
235 |
-
<input type="text" id="optinforms_form4_email_field" name="optinforms_form4_email_field" value="<?php echo optinforms_form4_default_email_field(); ?>" onchange='optinforms_change_form4_email_field()' />
|
236 |
-
<script type="text/javascript">
|
237 |
-
function optinforms_change_form4_email_field() {
|
238 |
-
document.getElementById('optinforms-form4-email-field').value = document.getElementById('optinforms_form4_email_field').value;
|
239 |
-
}
|
240 |
-
</script>
|
241 |
-
</div><!--optionmiddle-->
|
242 |
-
<div class="optionlast">
|
243 |
-
|
244 |
-
</div><!--optionlast-->
|
245 |
-
<div class="clear"></div>
|
246 |
-
</div><!--optiongroup-->
|
247 |
-
|
248 |
-
<div class="optiongroup">
|
249 |
-
<div class="optionleft">
|
250 |
-
<label for="optinforms_form4_fields_font" class="nopointer"><?php echo __('Email field font', 'optin-forms'); ?></label>
|
251 |
-
</div><!--optionleft-->
|
252 |
-
<div class="optionmiddle">
|
253 |
-
<select name="optinforms_form4_fields_font" id="optinforms_form4_fields_font" onchange='optinforms_change_form4_fields_font()'>
|
254 |
-
<?php echo optinforms_get_form4_fields_font_options(); ?>
|
255 |
-
</select>
|
256 |
-
<script type="text/javascript">
|
257 |
-
function optinforms_change_form4_fields_font() {
|
258 |
-
document.getElementById("optinforms-form4-email-field").style.fontFamily = document.getElementById('optinforms_form4_fields_font').value;
|
259 |
-
}
|
260 |
-
</script>
|
261 |
-
</div><!--optionmiddle-->
|
262 |
-
<div class="optionlast">
|
263 |
-
|
264 |
-
</div><!--optionlast-->
|
265 |
-
<div class="clear"></div>
|
266 |
-
</div><!--optiongroup-->
|
267 |
-
|
268 |
-
<div class="optiongroup">
|
269 |
-
<div class="optionleft">
|
270 |
-
<label for="optinforms_form4_fields_size" class="nopointer"><?php echo __('Email field size', 'optin-forms'); ?></label>
|
271 |
-
</div><!--optionleft-->
|
272 |
-
<div class="optionmiddle">
|
273 |
-
<select name="optinforms_form4_fields_size" id="optinforms_form4_fields_size" onchange='optinforms_change_form4_fields_size()'>
|
274 |
-
<?php echo optinforms_get_form4_fields_size_options(); ?>
|
275 |
-
</select>
|
276 |
-
<script type="text/javascript">
|
277 |
-
function optinforms_change_form4_fields_size() {
|
278 |
-
document.getElementById("optinforms-form4-email-field").style.fontSize = document.getElementById('optinforms_form4_fields_size').value;
|
279 |
-
}
|
280 |
-
</script>
|
281 |
-
</div><!--optionmiddle-->
|
282 |
-
<div class="optionlast">
|
283 |
-
|
284 |
-
</div><!--optionlast-->
|
285 |
-
<div class="clear"></div>
|
286 |
-
</div><!--optiongroup-->
|
287 |
-
|
288 |
-
<div class="optiongroup">
|
289 |
-
<div class="optionleft">
|
290 |
-
<label for="optinforms_form4_fields_color" class="nopointer"><?php echo __('Email field color', 'optin-forms'); ?></label>
|
291 |
-
</div><!--optionleft-->
|
292 |
-
<div class="optionmiddle">
|
293 |
-
<input type="text" id="optinforms_form4_fields_color" name="optinforms_form4_fields_color" class="optinforms-color" value="<?php echo optinforms_form4_default_fields_color(); ?>" data-default-color="#666666" />
|
294 |
-
<script>
|
295 |
-
jQuery(document).ready(function($){
|
296 |
-
$('#optinforms_form4_fields_color').wpColorPicker({
|
297 |
-
color: true,
|
298 |
-
hide: true,
|
299 |
-
palettes: true,
|
300 |
-
change: function(event, ui) {
|
301 |
-
$("#optinforms-form4-email-field").css( 'color', ui.color.toString());
|
302 |
-
}
|
303 |
-
});
|
304 |
-
});
|
305 |
-
</script>
|
306 |
-
</div><!--optionmiddle-->
|
307 |
-
<div class="optionlast">
|
308 |
-
|
309 |
-
</div><!--optionlast-->
|
310 |
-
<div class="clear"></div>
|
311 |
-
</div><!--optiongroup-->
|
312 |
-
|
313 |
-
<div class="optiongroup">
|
314 |
-
<div class="optionleft">
|
315 |
-
<label for="optinforms_form4_button_text" class="nopointer"><?php echo __('Button text', 'optin-forms'); ?></label>
|
316 |
-
</div><!--optionleft-->
|
317 |
-
<div class="optionmiddle">
|
318 |
-
<input type="text" id="optinforms_form4_button_text" name="optinforms_form4_button_text" value="<?php echo optinforms_form4_default_button_text(); ?>" onchange='optinforms_change_form4_button_text()' />
|
319 |
-
<script type="text/javascript">
|
320 |
-
function optinforms_change_form4_button_text() {
|
321 |
-
document.getElementById('optinforms-form4-button').value = document.getElementById('optinforms_form4_button_text').value;
|
322 |
-
}
|
323 |
-
</script>
|
324 |
-
</div><!--optionmiddle-->
|
325 |
-
<div class="optionlast">
|
326 |
-
|
327 |
-
</div><!--optionlast-->
|
328 |
-
<div class="clear"></div>
|
329 |
-
</div><!--optiongroup-->
|
330 |
-
|
331 |
-
<div class="optiongroup">
|
332 |
-
<div class="optionleft">
|
333 |
-
<label for="optinforms_form4_button_text_font" class="nopointer"><?php echo __('Button text font', 'optin-forms'); ?></label>
|
334 |
-
</div><!--optionleft-->
|
335 |
-
<div class="optionmiddle">
|
336 |
-
<select name="optinforms_form4_button_text_font" id="optinforms_form4_button_text_font" onchange='optinforms_change_form4_button_text_font()'>
|
337 |
-
<?php echo optinforms_get_form4_button_text_font_options(); ?>
|
338 |
-
</select>
|
339 |
-
<script type="text/javascript">
|
340 |
-
function optinforms_change_form4_button_text_font() {
|
341 |
-
document.getElementById("optinforms-form4-button").style.fontFamily = document.getElementById('optinforms_form4_button_text_font').value;
|
342 |
-
}
|
343 |
-
</script>
|
344 |
-
</div><!--optionmiddle-->
|
345 |
-
<div class="optionlast">
|
346 |
-
|
347 |
-
</div><!--optionlast-->
|
348 |
-
<div class="clear"></div>
|
349 |
-
</div><!--optiongroup-->
|
350 |
-
|
351 |
-
<div class="optiongroup">
|
352 |
-
<div class="optionleft">
|
353 |
-
<label for="optinforms_form4_button_text_size" class="nopointer"><?php echo __('Button text size', 'optin-forms'); ?></label>
|
354 |
-
</div><!--optionleft-->
|
355 |
-
<div class="optionmiddle">
|
356 |
-
<select name="optinforms_form4_button_text_size" id="optinforms_form4_button_text_size" onchange='optinforms_change_form4_button_text_size()'>
|
357 |
-
<?php echo optinforms_get_form4_button_text_size_options(); ?>
|
358 |
-
</select>
|
359 |
-
<script type="text/javascript">
|
360 |
-
function optinforms_change_form4_button_text_size() {
|
361 |
-
document.getElementById("optinforms-form4-button").style.fontSize = document.getElementById('optinforms_form4_button_text_size').value;
|
362 |
-
}
|
363 |
-
</script>
|
364 |
-
</div><!--optionmiddle-->
|
365 |
-
<div class="optionlast">
|
366 |
-
|
367 |
-
</div><!--optionlast-->
|
368 |
-
<div class="clear"></div>
|
369 |
-
</div><!--optiongroup-->
|
370 |
-
|
371 |
-
<div class="optiongroup">
|
372 |
-
<div class="optionleft">
|
373 |
-
<label for="optinforms_form4_button_text_color" class="nopointer"><?php echo __('Button text color', 'optin-forms'); ?></label>
|
374 |
-
</div><!--optionleft-->
|
375 |
-
<div class="optionmiddle">
|
376 |
-
<input type="text" id="optinforms_form4_button_text_color" name="optinforms_form4_button_text_color" class="optinforms-color" value="<?php echo optinforms_form4_default_button_text_color(); ?>" data-default-color="#1d629b" />
|
377 |
-
<script>
|
378 |
-
jQuery(document).ready(function($){
|
379 |
-
$('#optinforms_form4_button_text_color').wpColorPicker({
|
380 |
-
color: true,
|
381 |
-
hide: true,
|
382 |
-
palettes: true,
|
383 |
-
change: function(event, ui) {
|
384 |
-
$("#optinforms-form4-button").css( 'color', ui.color.toString());
|
385 |
-
}
|
386 |
-
});
|
387 |
-
});
|
388 |
-
</script>
|
389 |
-
</div><!--optionmiddle-->
|
390 |
-
<div class="optionlast">
|
391 |
-
|
392 |
-
</div><!--optionlast-->
|
393 |
-
<div class="clear"></div>
|
394 |
-
</div><!--optiongroup-->
|
395 |
-
|
396 |
-
<div class="optiongroup">
|
397 |
-
<div class="optionleft">
|
398 |
-
<label for="optinforms_form4_button_background" class="nopointer"><?php echo __('Button background color', 'optin-forms'); ?></label>
|
399 |
-
</div><!--optionleft-->
|
400 |
-
<div class="optionmiddle">
|
401 |
-
<input type="text" id="optinforms_form4_button_background" name="optinforms_form4_button_background" class="optinforms-color" value="<?php echo optinforms_form4_default_button_background(); ?>" data-default-color="#faff5b" />
|
402 |
-
<script>
|
403 |
-
jQuery(document).ready(function($){
|
404 |
-
$('#optinforms_form4_button_background').wpColorPicker({
|
405 |
-
color: true,
|
406 |
-
hide: true,
|
407 |
-
palettes: true,
|
408 |
-
change: function(event, ui) {
|
409 |
-
$("#optinforms-form4-button").css( 'background-color', ui.color.toString());
|
410 |
-
}
|
411 |
-
});
|
412 |
-
});
|
413 |
-
</script>
|
414 |
-
</div><!--optionmiddle-->
|
415 |
-
<div class="optionlast">
|
416 |
-
|
417 |
-
</div><!--optionlast-->
|
418 |
-
<div class="clear"></div>
|
419 |
-
</div><!--optiongroup-->
|
420 |
-
|
421 |
-
<?php if (get_option('optinforms_form4_hide_disclaimer')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your disclaimer in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
422 |
-
|
423 |
-
<div class="optiongroup">
|
424 |
-
<div class="optionleft">
|
425 |
-
<label for="optinforms_form4_disclaimer" class="nopointer"><?php echo __('Disclaimer text', 'optin-forms'); ?></label>
|
426 |
-
</div><!--optionleft-->
|
427 |
-
<div class="optionmiddle">
|
428 |
-
<input type="text" id="optinforms_form4_disclaimer" name="optinforms_form4_disclaimer" value="<?php echo optinforms_form4_default_disclaimer(); ?>" onchange='optinforms_change_form4_disclaimer()' <?php if (get_option('optinforms_form4_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?> />
|
429 |
-
<script type="text/javascript">
|
430 |
-
function optinforms_change_form4_disclaimer() {
|
431 |
-
document.getElementById('optinforms-form4-disclaimer').innerHTML = document.getElementById('optinforms_form4_disclaimer').value;
|
432 |
-
}
|
433 |
-
</script>
|
434 |
-
</div><!--optionmiddle-->
|
435 |
-
<div class="optionlast">
|
436 |
-
|
437 |
-
</div><!--optionlast-->
|
438 |
-
<div class="clear"></div>
|
439 |
-
</div><!--optiongroup-->
|
440 |
-
|
441 |
-
<div class="optiongroup">
|
442 |
-
<div class="optionleft">
|
443 |
-
<label for="optinforms_form4_disclaimer_font" class="nopointer"><?php echo __('Disclaimer font', 'optin-forms'); ?></label>
|
444 |
-
</div><!--optionleft-->
|
445 |
-
<div class="optionmiddle">
|
446 |
-
<select name="optinforms_form4_disclaimer_font" id="optinforms_form4_disclaimer_font" onchange='optinforms_change_form4_disclaimer_font()' <?php if (get_option('optinforms_form4_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?>>
|
447 |
-
<?php echo optinforms_get_form4_disclaimer_font_options(); ?>
|
448 |
-
</select>
|
449 |
-
<script type="text/javascript">
|
450 |
-
function optinforms_change_form4_disclaimer_font() {
|
451 |
-
document.getElementById("optinforms-form4-disclaimer").style.fontFamily = document.getElementById('optinforms_form4_disclaimer_font').value;
|
452 |
-
}
|
453 |
-
</script>
|
454 |
-
</div><!--optionmiddle-->
|
455 |
-
<div class="optionlast">
|
456 |
-
|
457 |
-
</div><!--optionlast-->
|
458 |
-
<div class="clear"></div>
|
459 |
-
</div><!--optiongroup-->
|
460 |
-
|
461 |
-
<div class="optiongroup">
|
462 |
-
<div class="optionleft">
|
463 |
-
<label for="optinforms_form4_disclaimer_size" class="nopointer"><?php echo __('Disclaimer size', 'optin-forms'); ?></label>
|
464 |
-
</div><!--optionleft-->
|
465 |
-
<div class="optionmiddle">
|
466 |
-
<select name="optinforms_form4_disclaimer_size" id="optinforms_form4_disclaimer_size" onchange='optinforms_change_form4_disclaimer_size()' <?php if (get_option('optinforms_form4_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?>>
|
467 |
-
<?php echo optinforms_get_form4_disclaimer_size_options(); ?>
|
468 |
-
</select>
|
469 |
-
<script type="text/javascript">
|
470 |
-
function optinforms_change_form4_disclaimer_size() {
|
471 |
-
document.getElementById("optinforms-form4-disclaimer").style.fontSize = document.getElementById('optinforms_form4_disclaimer_size').value;
|
472 |
-
}
|
473 |
-
</script>
|
474 |
-
</div><!--optionmiddle-->
|
475 |
-
<div class="optionlast">
|
476 |
-
|
477 |
-
</div><!--optionlast-->
|
478 |
-
<div class="clear"></div>
|
479 |
-
</div><!--optiongroup-->
|
480 |
-
|
481 |
-
<div class="optiongroup">
|
482 |
-
<div class="optionleft">
|
483 |
-
<label for="optinforms_form4_disclaimer_color" class="nopointer"><?php echo __('Disclaimer color', 'optin-forms'); ?></label>
|
484 |
-
</div><!--optionleft-->
|
485 |
-
<div class="optionmiddle">
|
486 |
-
<input type="text" id="optinforms_form4_disclaimer_color" name="optinforms_form4_disclaimer_color" class="optinforms-color" value="<?php echo optinforms_form4_default_disclaimer_color(); ?>" data-default-color="#999999" <?php if (get_option('optinforms_form4_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?> />
|
487 |
-
<script>
|
488 |
-
jQuery(document).ready(function($){
|
489 |
-
$('#optinforms_form4_disclaimer_color').wpColorPicker({
|
490 |
-
color: true,
|
491 |
-
hide: true,
|
492 |
-
palettes: true,
|
493 |
-
change: function(event, ui) {
|
494 |
-
$("#optinforms-form4-disclaimer").css( 'color', ui.color.toString());
|
495 |
-
}
|
496 |
-
});
|
497 |
-
});
|
498 |
-
</script>
|
499 |
-
</div><!--optionmiddle-->
|
500 |
-
<div class="optionlast">
|
501 |
-
|
502 |
-
</div><!--optionlast-->
|
503 |
-
<div class="clear"></div>
|
504 |
-
</div><!--optiongroup-->
|
505 |
-
|
506 |
-
<div class="optiongroup">
|
507 |
-
<div class="optionleft">
|
508 |
-
<label for="optinforms_form4_width" class="nopointer"><?php echo __('Form width', 'optin-forms'); ?></label> <label><a onclick="optinforms_explain_width_4()"><span class="explain">?</span></a></label>
|
509 |
-
</div><!--optionleft-->
|
510 |
-
<div class="optionmiddle">
|
511 |
-
<div class="choose-width">
|
512 |
-
<input name="optinforms_form4_width" id="optinforms_form4_width_100" type="radio" value="0" class="radiobutton" <?php echo optinforms_form4_checked_width_100(); ?> onclick="document.getElementById('optinforms_form4_width_pixels').disabled=true;" /> <label for="optinforms_form4_width_100" class="radiobutton-label"><?php echo __('100%', 'optin-forms'); ?></label>
|
513 |
-
</div><!--choose-width-->
|
514 |
-
<div class="choose-width">
|
515 |
-
<input name="optinforms_form4_width" id="optinforms_form4_width_fixed" type="radio" value="1" class="radiobutton" <?php echo optinforms_form4_checked_width_fixed(); ?> onclick="document.getElementById('optinforms_form4_width_pixels').disabled=false;" /> <label for="optinforms_form4_width_fixed" class="radiobutton-label"><?php echo __('Fixed:', 'optin-forms'); ?></label>
|
516 |
-
</div><!--choose-width-->
|
517 |
-
<input type="text" id="optinforms_form4_width_pixels" name="optinforms_form4_width_pixels" value="<?php echo optinforms_form4_default_width_pixels(); ?>" class="fixed-width" <?php echo optinforms_form4_disabled_width_pixels(); ?> /> <p class="fixed-width-px"><?php echo __('px', 'optin-forms'); ?></p>
|
518 |
-
<div class="clear"></div>
|
519 |
-
</div><!--optionmiddle-->
|
520 |
-
<div class="optionlast">
|
521 |
-
|
522 |
-
</div><!--optionlast-->
|
523 |
-
<div class="clear"></div>
|
524 |
-
</div><!--optiongroup-->
|
525 |
-
|
526 |
-
<script type="text/javascript">
|
527 |
-
function optinforms_explain_width_4() {
|
528 |
-
// Get the DOM reference
|
529 |
-
var contentId = document.getElementById("optinforms-explain-width-4");
|
530 |
-
// Toggle
|
531 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
532 |
-
contentId.style.display = "block";
|
533 |
-
}
|
534 |
-
</script>
|
535 |
-
<div id="optinforms-explain-width-4" style="display:none;">
|
536 |
-
<div class="optinforms-help">
|
537 |
-
<p><?php echo __('In most cases, you can leave the form width at 100%. This will ensure your form will align perfectly with any WordPress theme and act responsive when scaled on different devices. Please note that the form preview displayed in your WordPress administration panel will not be affected by changing this value.', 'optin-forms'); ?></p>
|
538 |
-
</div><!--optinforms-help-->
|
539 |
-
</div><!--optinforms-explain-width-4-->
|
540 |
-
|
541 |
-
</div><!--toggle-container-->
|
542 |
-
<div class="clear"></div>
|
543 |
-
|
544 |
-
<div class="toggle-wrap">
|
545 |
-
<span class="trigger">
|
546 |
-
<a><?php echo __('Form Options', 'optin-forms'); ?></a>
|
547 |
-
</span>
|
548 |
-
|
549 |
-
<div class="toggle-container" style="display: none;">
|
550 |
-
|
551 |
-
<div class="optiongroup">
|
552 |
-
<div class="optionleft">
|
553 |
-
|
554 |
-
</div><!--optionleft-->
|
555 |
-
<div class="optionmiddle">
|
556 |
-
<input type="checkbox" name="optinforms_form4_hide_title" value="1" id="optinforms_form4_hide_title" <?php if (get_option('optinforms_form4_hide_title')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form4_title_visibility(this.checked);" /> <label for="optinforms_form4_hide_title" class="nopointer"><?php echo __('Hide the title', 'optin-forms'); ?></label>
|
557 |
-
<script type="text/javascript">
|
558 |
-
function optinforms_form4_title_visibility(optinchecked) {
|
559 |
-
if(optinchecked) {
|
560 |
-
document.getElementById("optinforms-form4-title").style.display = "none";
|
561 |
-
}
|
562 |
-
else {
|
563 |
-
document.getElementById("optinforms-form4-title").style.display = "";
|
564 |
-
}
|
565 |
-
}
|
566 |
-
</script>
|
567 |
-
</div><!--optionmiddle-->
|
568 |
-
<div class="optionlast">
|
569 |
-
|
570 |
-
</div><!--optionlast-->
|
571 |
-
<div class="clear"></div>
|
572 |
-
</div><!--optiongroup-->
|
573 |
-
|
574 |
-
<div class="optiongroup">
|
575 |
-
<div class="optionleft">
|
576 |
-
|
577 |
-
</div><!--optionleft-->
|
578 |
-
<div class="optionmiddle">
|
579 |
-
<input type="checkbox" name="optinforms_form4_hide_subtitle" value="1" id="optinforms_form4_hide_subtitle" <?php if (get_option('optinforms_form4_hide_subtitle')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form4_hide_subtitle_visibility(this.checked);" /> <label for="optinforms_form4_hide_subtitle" class="nopointer"><?php echo __('Hide the subtitle', 'optin-forms'); ?></label>
|
580 |
-
<script type="text/javascript">
|
581 |
-
function optinforms_form4_hide_subtitle_visibility(optinchecked) {
|
582 |
-
if(optinchecked) {
|
583 |
-
document.getElementById("optinforms-form4-subtitle").style.display = "none";
|
584 |
-
}
|
585 |
-
else {
|
586 |
-
document.getElementById("optinforms-form4-subtitle").style.display = "";
|
587 |
-
}
|
588 |
-
}
|
589 |
-
</script>
|
590 |
-
</div><!--optionmiddle-->
|
591 |
-
<div class="optionlast">
|
592 |
-
|
593 |
-
</div><!--optionlast-->
|
594 |
-
<div class="clear"></div>
|
595 |
-
</div><!--optiongroup-->
|
596 |
-
|
597 |
-
<div class="optiongroup">
|
598 |
-
<div class="optionleft">
|
599 |
-
|
600 |
-
</div><!--optionleft-->
|
601 |
-
<div class="optionmiddle">
|
602 |
-
<input type="checkbox" name="optinforms_form4_hide_disclaimer" value="1" id="optinforms_form4_hide_disclaimer" <?php if (get_option('optinforms_form4_hide_disclaimer')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form4_hide_disclaimer_visibility(this.checked);" /> <label for="optinforms_form4_hide_disclaimer" class="nopointer"><?php echo __('Hide the disclaimer', 'optin-forms'); ?></label>
|
603 |
-
<script type="text/javascript">
|
604 |
-
function optinforms_form4_hide_disclaimer_visibility(optinchecked) {
|
605 |
-
if(optinchecked) {
|
606 |
-
document.getElementById("optinforms-form4-disclaimer").style.display = "none";
|
607 |
-
}
|
608 |
-
else {
|
609 |
-
document.getElementById("optinforms-form4-disclaimer").style.display = "";
|
610 |
-
}
|
611 |
-
}
|
612 |
-
</script>
|
613 |
-
</div><!--optionmiddle-->
|
614 |
-
<div class="optionlast">
|
615 |
-
|
616 |
-
</div><!--optionlast-->
|
617 |
-
<div class="clear"></div>
|
618 |
-
</div><!--optiongroup-->
|
619 |
-
|
620 |
-
<div class="optiongroup">
|
621 |
-
<div class="optionleft">
|
622 |
-
<label for="optinforms_form4_css" class="nopointer"><?php echo __('Custom CSS', 'optin-forms'); ?></label> <label><a onclick="optinforms_explain_css_4()"><span class="explain">?</span></a></label>
|
623 |
-
</div><!--optionleft-->
|
624 |
-
<div class="optionmiddle">
|
625 |
-
<textarea id="optinforms_form4_css" name="optinforms_form4_css"><?php echo optinforms_form4_css(); ?></textarea>
|
626 |
-
</div><!--optionmiddle-->
|
627 |
-
<div class="optionlast">
|
628 |
-
|
629 |
-
</div><!--optionlast-->
|
630 |
-
<div class="clear"></div>
|
631 |
-
</div><!--optiongroup-->
|
632 |
-
|
633 |
-
<script type="text/javascript">
|
634 |
-
function optinforms_explain_css_4() {
|
635 |
-
// Get the DOM reference
|
636 |
-
var contentId = document.getElementById("optinforms-explain-css-4");
|
637 |
-
// Toggle
|
638 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
639 |
-
contentId.style.display = "block";
|
640 |
-
}
|
641 |
-
</script>
|
642 |
-
<div id="optinforms-explain-css-4" style="display:none;">
|
643 |
-
<div class="optinforms-help">
|
644 |
-
<p><?php echo __('Override the plugin\'s CSS values by entering your own custom CSS.', 'optin-forms'); ?></p>
|
645 |
-
</div><!--optinforms-help-->
|
646 |
-
</div><!--optinforms-explain-css-4-->
|
647 |
-
|
648 |
-
</div><!--toggle-container-->
|
649 |
-
<div class="clear"></div>
|
650 |
-
</div><!--toggle-wrap-->
|
651 |
-
|
652 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/options-form-5.php
DELETED
@@ -1,693 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
|
3 |
-
<span class="trigger">
|
4 |
-
<a><?php echo __('Style Your Form', 'optin-forms'); ?></a>
|
5 |
-
</span>
|
6 |
-
|
7 |
-
<div class="toggle-container" style="display: none;">
|
8 |
-
<div class="optiongroup">
|
9 |
-
<div class="optionleft">
|
10 |
-
<label for="optinforms_form5_background" class="nopointer"><?php echo __('Form background color', 'optin-forms'); ?></label>
|
11 |
-
</div><!--optionleft-->
|
12 |
-
<div class="optionmiddle">
|
13 |
-
<input type="text" id="optinforms_form5_background" name="optinforms_form5_background" class="optinforms-color" value="<?php echo optinforms_form5_default_background(); ?>" data-default-color="#333333" />
|
14 |
-
<script>
|
15 |
-
jQuery(document).ready(function($){
|
16 |
-
$('#optinforms_form5_background').wpColorPicker({
|
17 |
-
color: true,
|
18 |
-
hide: true,
|
19 |
-
palettes: true,
|
20 |
-
change: function(event, ui) {
|
21 |
-
$("#optinforms-form5").css( 'background-color', ui.color.toString());
|
22 |
-
}
|
23 |
-
});
|
24 |
-
});
|
25 |
-
</script>
|
26 |
-
</div><!--optionmiddle-->
|
27 |
-
<div class="optionlast">
|
28 |
-
|
29 |
-
</div><!--optionlast-->
|
30 |
-
<div class="clear"></div>
|
31 |
-
</div><!--optiongroup-->
|
32 |
-
|
33 |
-
<?php if (get_option('optinforms_form5_hide_title')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your title in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
34 |
-
|
35 |
-
<div class="optiongroup">
|
36 |
-
<div class="optionleft">
|
37 |
-
<label for="optinforms_form5_title" class="nopointer"><?php echo __('Title', 'optin-forms'); ?></label>
|
38 |
-
</div><!--optionleft-->
|
39 |
-
<div class="optionmiddle">
|
40 |
-
<input type="text" id="optinforms_form5_title" name="optinforms_form5_title" value="<?php echo optinforms_form5_default_title(); ?>" onchange='optinforms_change_form5_title()' <?php if (get_option('optinforms_form5_hide_title')== '1') { echo 'disabled="disabled"'; } ?> />
|
41 |
-
<script type="text/javascript">
|
42 |
-
function optinforms_change_form5_title() {
|
43 |
-
document.getElementById('optinforms-form5-title').innerHTML = document.getElementById('optinforms_form5_title').value;
|
44 |
-
}
|
45 |
-
</script>
|
46 |
-
</div><!--optionmiddle-->
|
47 |
-
<div class="optionlast">
|
48 |
-
|
49 |
-
</div><!--optionlast-->
|
50 |
-
<div class="clear"></div>
|
51 |
-
</div><!--optiongroup-->
|
52 |
-
|
53 |
-
<div class="optiongroup">
|
54 |
-
<div class="optionleft">
|
55 |
-
<label for="optinforms_form5_title_font" class="nopointer"><?php echo __('Title font', 'optin-forms'); ?></label>
|
56 |
-
</div><!--optionleft-->
|
57 |
-
<div class="optionmiddle">
|
58 |
-
<select name="optinforms_form5_title_font" id="optinforms_form5_title_font" onchange='optinforms_change_form5_title_font()' <?php if (get_option('optinforms_form5_hide_title')== '1') { echo 'disabled="disabled"'; } ?>>
|
59 |
-
<?php echo optinforms_get_form5_title_font_options(); ?>
|
60 |
-
</select>
|
61 |
-
<script type="text/javascript">
|
62 |
-
function optinforms_change_form5_title_font() {
|
63 |
-
document.getElementById("optinforms-form5-title").style.fontFamily = document.getElementById('optinforms_form5_title_font').value;
|
64 |
-
}
|
65 |
-
</script>
|
66 |
-
</div><!--optionmiddle-->
|
67 |
-
<div class="optionlast">
|
68 |
-
|
69 |
-
</div><!--optionlast-->
|
70 |
-
<div class="clear"></div>
|
71 |
-
</div><!--optiongroup-->
|
72 |
-
|
73 |
-
<div class="optiongroup">
|
74 |
-
<div class="optionleft">
|
75 |
-
<label for="optinforms_form5_title_size" class="nopointer"><?php echo __('Title size', 'optin-forms'); ?></label>
|
76 |
-
</div><!--optionleft-->
|
77 |
-
<div class="optionmiddle">
|
78 |
-
<select name="optinforms_form5_title_size" id="optinforms_form5_title_size" onchange='optinforms_change_form5_title_size()' <?php if (get_option('optinforms_form5_hide_title')== '1') { echo 'disabled="disabled"'; } ?>>
|
79 |
-
<?php echo optinforms_get_form5_title_size_options(); ?>
|
80 |
-
</select>
|
81 |
-
<script type="text/javascript">
|
82 |
-
function optinforms_change_form5_title_size() {
|
83 |
-
document.getElementById("optinforms-form5-title").style.fontSize = document.getElementById('optinforms_form5_title_size').value;
|
84 |
-
document.getElementById("optinforms-form5-title").style.lineHeight = document.getElementById('optinforms_form5_title_size').value;
|
85 |
-
}
|
86 |
-
</script>
|
87 |
-
</div><!--optionmiddle-->
|
88 |
-
<div class="optionlast">
|
89 |
-
|
90 |
-
</div><!--optionlast-->
|
91 |
-
<div class="clear"></div>
|
92 |
-
</div><!--optiongroup-->
|
93 |
-
|
94 |
-
<div class="optiongroup">
|
95 |
-
<div class="optionleft">
|
96 |
-
<label for="optinforms_form5_title_color" class="nopointer"><?php echo __('Title color', 'optin-forms'); ?></label>
|
97 |
-
</div><!--optionleft-->
|
98 |
-
<div class="optionmiddle">
|
99 |
-
<input type="text" id="optinforms_form5_title_color" name="optinforms_form5_title_color" class="optinforms-color" value="<?php echo optinforms_form5_default_title_color(); ?>" data-default-color="#fb6a13" <?php if (get_option('optinforms_form5_hide_title')== '1') { echo 'disabled="disabled"'; } ?> />
|
100 |
-
<script>
|
101 |
-
jQuery(document).ready(function($){
|
102 |
-
$('#optinforms_form5_title_color').wpColorPicker({
|
103 |
-
color: true,
|
104 |
-
hide: true,
|
105 |
-
palettes: true,
|
106 |
-
change: function(event, ui) {
|
107 |
-
$("#optinforms-form5-title").css( 'color', ui.color.toString());
|
108 |
-
}
|
109 |
-
});
|
110 |
-
});
|
111 |
-
</script>
|
112 |
-
</div><!--optionmiddle-->
|
113 |
-
<div class="optionlast">
|
114 |
-
|
115 |
-
</div><!--optionlast-->
|
116 |
-
<div class="clear"></div>
|
117 |
-
</div><!--optiongroup-->
|
118 |
-
|
119 |
-
<?php if (get_option('optinforms_form5_hide_subtitle')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your subtitle in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
120 |
-
|
121 |
-
<div class="optiongroup">
|
122 |
-
<div class="optionleft">
|
123 |
-
<label for="optinforms_form5_subtitle" class="nopointer"><?php echo __('Subtitle', 'optin-forms'); ?></label>
|
124 |
-
</div><!--optionleft-->
|
125 |
-
<div class="optionmiddle">
|
126 |
-
<input type="text" id="optinforms_form5_subtitle" name="optinforms_form5_subtitle" value="<?php echo optinforms_form5_default_subtitle(); ?>" onchange='optinforms_change_form5_subtitle()' <?php if (get_option('optinforms_form5_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?> />
|
127 |
-
<script type="text/javascript">
|
128 |
-
function optinforms_change_form5_subtitle() {
|
129 |
-
document.getElementById('optinforms-form5-subtitle').innerHTML = document.getElementById('optinforms_form5_subtitle').value;
|
130 |
-
}
|
131 |
-
</script>
|
132 |
-
</div><!--optionmiddle-->
|
133 |
-
<div class="optionlast">
|
134 |
-
|
135 |
-
</div><!--optionlast-->
|
136 |
-
<div class="clear"></div>
|
137 |
-
</div><!--optiongroup-->
|
138 |
-
|
139 |
-
<div class="optiongroup">
|
140 |
-
<div class="optionleft">
|
141 |
-
<label for="optinforms_form5_subtitle_font" class="nopointer"><?php echo __('Subtitle font', 'optin-forms'); ?></label>
|
142 |
-
</div><!--optionleft-->
|
143 |
-
<div class="optionmiddle">
|
144 |
-
<select name="optinforms_form5_subtitle_font" id="optinforms_form5_subtitle_font" onchange='optinforms_change_form5_subtitle_font()' <?php if (get_option('optinforms_form5_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?>>
|
145 |
-
<?php echo optinforms_get_form5_subtitle_font_options(); ?>
|
146 |
-
</select>
|
147 |
-
<script type="text/javascript">
|
148 |
-
function optinforms_change_form5_subtitle_font() {
|
149 |
-
document.getElementById("optinforms-form5-subtitle").style.fontFamily = document.getElementById('optinforms_form5_subtitle_font').value;
|
150 |
-
}
|
151 |
-
</script>
|
152 |
-
</div><!--optionmiddle-->
|
153 |
-
<div class="optionlast">
|
154 |
-
|
155 |
-
</div><!--optionlast-->
|
156 |
-
<div class="clear"></div>
|
157 |
-
</div><!--optiongroup-->
|
158 |
-
|
159 |
-
<div class="optiongroup">
|
160 |
-
<div class="optionleft">
|
161 |
-
<label for="optinforms_form5_subtitle_size" class="nopointer"><?php echo __('Subtitle size', 'optin-forms'); ?></label>
|
162 |
-
</div><!--optionleft-->
|
163 |
-
<div class="optionmiddle">
|
164 |
-
<select name="optinforms_form5_subtitle_size" id="optinforms_form5_subtitle_size" onchange='optinforms_change_form5_subtitle_size()' <?php if (get_option('optinforms_form5_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?>>
|
165 |
-
<?php echo optinforms_get_form5_subtitle_size_options(); ?>
|
166 |
-
</select>
|
167 |
-
<script type="text/javascript">
|
168 |
-
function optinforms_change_form5_subtitle_size() {
|
169 |
-
document.getElementById("optinforms-form5-subtitle").style.fontSize = document.getElementById('optinforms_form5_subtitle_size').value;
|
170 |
-
}
|
171 |
-
</script>
|
172 |
-
</div><!--optionmiddle-->
|
173 |
-
<div class="optionlast">
|
174 |
-
|
175 |
-
</div><!--optionlast-->
|
176 |
-
<div class="clear"></div>
|
177 |
-
</div><!--optiongroup-->
|
178 |
-
|
179 |
-
<div class="optiongroup">
|
180 |
-
<div class="optionleft">
|
181 |
-
<label for="optinforms_form5_subtitle_color" class="nopointer"><?php echo __('Subtitle color', 'optin-forms'); ?></label>
|
182 |
-
</div><!--optionleft-->
|
183 |
-
<div class="optionmiddle">
|
184 |
-
<input type="text" id="optinforms_form5_subtitle_color" name="optinforms_form5_subtitle_color" class="optinforms-color" value="<?php echo optinforms_form5_default_subtitle_color(); ?>" data-default-color="#CCCCCC" <?php if (get_option('optinforms_form5_hide_subtitle')== '1') { echo 'disabled="disabled"'; } ?> />
|
185 |
-
<script>
|
186 |
-
jQuery(document).ready(function($){
|
187 |
-
$('#optinforms_form5_subtitle_color').wpColorPicker({
|
188 |
-
color: true,
|
189 |
-
hide: true,
|
190 |
-
palettes: true,
|
191 |
-
change: function(event, ui) {
|
192 |
-
$("#optinforms-form5-subtitle").css( 'color', ui.color.toString());
|
193 |
-
}
|
194 |
-
});
|
195 |
-
});
|
196 |
-
</script>
|
197 |
-
</div><!--optionmiddle-->
|
198 |
-
<div class="optionlast">
|
199 |
-
|
200 |
-
</div><!--optionlast-->
|
201 |
-
<div class="clear"></div>
|
202 |
-
</div><!--optiongroup-->
|
203 |
-
|
204 |
-
<?php if (get_option('optinforms_form5_hide_name_field')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your name field in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
205 |
-
|
206 |
-
<div class="optiongroup">
|
207 |
-
<div class="optionleft">
|
208 |
-
<label for="optinforms_form5_name_field" class="nopointer"><?php echo __('Input field: name', 'optin-forms'); ?></label>
|
209 |
-
</div><!--optionleft-->
|
210 |
-
<div class="optionmiddle">
|
211 |
-
<input type="text" id="optinforms_form5_name_field" name="optinforms_form5_name_field" value="<?php echo optinforms_form5_default_name_field(); ?>" onchange='optinforms_change_form5_name_field()' <?php if (get_option('optinforms_form5_hide_name_field')== '1') { echo 'disabled="disabled"'; } ?> />
|
212 |
-
<script type="text/javascript">
|
213 |
-
function optinforms_change_form5_name_field() {
|
214 |
-
document.getElementById('optinforms-form5-name-field').value = document.getElementById('optinforms_form5_name_field').value;
|
215 |
-
}
|
216 |
-
</script>
|
217 |
-
</div><!--optionmiddle-->
|
218 |
-
<div class="optionlast">
|
219 |
-
|
220 |
-
</div><!--optionlast-->
|
221 |
-
<div class="clear"></div>
|
222 |
-
</div><!--optiongroup-->
|
223 |
-
|
224 |
-
<div class="optiongroup">
|
225 |
-
<div class="optionleft">
|
226 |
-
<label for="optinforms_form5_email_field" class="nopointer"><?php echo __('Input field: email', 'optin-forms'); ?></label>
|
227 |
-
</div><!--optionleft-->
|
228 |
-
<div class="optionmiddle">
|
229 |
-
<input type="text" id="optinforms_form5_email_field" name="optinforms_form5_email_field" value="<?php echo optinforms_form5_default_email_field(); ?>" onchange='optinforms_change_form5_email_field()' />
|
230 |
-
<script type="text/javascript">
|
231 |
-
function optinforms_change_form5_email_field() {
|
232 |
-
document.getElementById('optinforms-form5-email-field').value = document.getElementById('optinforms_form5_email_field').value;
|
233 |
-
}
|
234 |
-
</script>
|
235 |
-
</div><!--optionmiddle-->
|
236 |
-
<div class="optionlast">
|
237 |
-
|
238 |
-
</div><!--optionlast-->
|
239 |
-
<div class="clear"></div>
|
240 |
-
</div><!--optiongroup-->
|
241 |
-
|
242 |
-
<div class="optiongroup">
|
243 |
-
<div class="optionleft">
|
244 |
-
<label for="optinforms_form5_fields_font" class="nopointer"><?php echo __('Input fields font', 'optin-forms'); ?></label>
|
245 |
-
</div><!--optionleft-->
|
246 |
-
<div class="optionmiddle">
|
247 |
-
<select name="optinforms_form5_fields_font" id="optinforms_form5_fields_font" onchange='optinforms_change_form5_fields_font()'>
|
248 |
-
<?php echo optinforms_get_form5_fields_font_options(); ?>
|
249 |
-
</select>
|
250 |
-
<script type="text/javascript">
|
251 |
-
function optinforms_change_form5_fields_font() {
|
252 |
-
document.getElementById("optinforms-form5-name-field").style.fontFamily = document.getElementById('optinforms_form5_fields_font').value;
|
253 |
-
document.getElementById("optinforms-form5-email-field").style.fontFamily = document.getElementById('optinforms_form5_fields_font').value;
|
254 |
-
}
|
255 |
-
</script>
|
256 |
-
</div><!--optionmiddle-->
|
257 |
-
<div class="optionlast">
|
258 |
-
|
259 |
-
</div><!--optionlast-->
|
260 |
-
<div class="clear"></div>
|
261 |
-
</div><!--optiongroup-->
|
262 |
-
|
263 |
-
<div class="optiongroup">
|
264 |
-
<div class="optionleft">
|
265 |
-
<label for="optinforms_form5_fields_size" class="nopointer"><?php echo __('Input fields size', 'optin-forms'); ?></label>
|
266 |
-
</div><!--optionleft-->
|
267 |
-
<div class="optionmiddle">
|
268 |
-
<select name="optinforms_form5_fields_size" id="optinforms_form5_fields_size" onchange='optinforms_change_form5_fields_size()'>
|
269 |
-
<?php echo optinforms_get_form5_fields_size_options(); ?>
|
270 |
-
</select>
|
271 |
-
<script type="text/javascript">
|
272 |
-
function optinforms_change_form5_fields_size() {
|
273 |
-
document.getElementById("optinforms-form5-name-field").style.fontSize = document.getElementById('optinforms_form5_fields_size').value;
|
274 |
-
document.getElementById("optinforms-form5-email-field").style.fontSize = document.getElementById('optinforms_form5_fields_size').value;
|
275 |
-
}
|
276 |
-
</script>
|
277 |
-
</div><!--optionmiddle-->
|
278 |
-
<div class="optionlast">
|
279 |
-
|
280 |
-
</div><!--optionlast-->
|
281 |
-
<div class="clear"></div>
|
282 |
-
</div><!--optiongroup-->
|
283 |
-
|
284 |
-
<div class="optiongroup">
|
285 |
-
<div class="optionleft">
|
286 |
-
<label for="optinforms_form5_fields_color" class="nopointer"><?php echo __('Input fields color', 'optin-forms'); ?></label>
|
287 |
-
</div><!--optionleft-->
|
288 |
-
<div class="optionmiddle">
|
289 |
-
<input type="text" id="optinforms_form5_fields_color" name="optinforms_form5_fields_color" class="optinforms-color" value="<?php echo optinforms_form5_default_fields_color(); ?>" data-default-color="#000000" />
|
290 |
-
<script>
|
291 |
-
jQuery(document).ready(function($){
|
292 |
-
$('#optinforms_form5_fields_color').wpColorPicker({
|
293 |
-
color: true,
|
294 |
-
hide: true,
|
295 |
-
palettes: true,
|
296 |
-
change: function(event, ui) {
|
297 |
-
$("#optinforms-form5-name-field").css( 'color', ui.color.toString());
|
298 |
-
$("#optinforms-form5-email-field").css( 'color', ui.color.toString());
|
299 |
-
}
|
300 |
-
});
|
301 |
-
});
|
302 |
-
</script>
|
303 |
-
</div><!--optionmiddle-->
|
304 |
-
<div class="optionlast">
|
305 |
-
|
306 |
-
</div><!--optionlast-->
|
307 |
-
<div class="clear"></div>
|
308 |
-
</div><!--optiongroup-->
|
309 |
-
|
310 |
-
<div class="optiongroup">
|
311 |
-
<div class="optionleft">
|
312 |
-
<label for="optinforms_form5_button_text" class="nopointer"><?php echo __('Button text', 'optin-forms'); ?></label>
|
313 |
-
</div><!--optionleft-->
|
314 |
-
<div class="optionmiddle">
|
315 |
-
<input type="text" id="optinforms_form5_button_text" name="optinforms_form5_button_text" value="<?php echo optinforms_form5_default_button_text(); ?>" onchange='optinforms_change_form5_button_text()' />
|
316 |
-
<script type="text/javascript">
|
317 |
-
function optinforms_change_form5_button_text() {
|
318 |
-
document.getElementById('optinforms-form5-button').value = document.getElementById('optinforms_form5_button_text').value;
|
319 |
-
}
|
320 |
-
</script>
|
321 |
-
</div><!--optionmiddle-->
|
322 |
-
<div class="optionlast">
|
323 |
-
|
324 |
-
</div><!--optionlast-->
|
325 |
-
<div class="clear"></div>
|
326 |
-
</div><!--optiongroup-->
|
327 |
-
|
328 |
-
<div class="optiongroup">
|
329 |
-
<div class="optionleft">
|
330 |
-
<label for="optinforms_form5_button_text_font" class="nopointer"><?php echo __('Button text font', 'optin-forms'); ?></label>
|
331 |
-
</div><!--optionleft-->
|
332 |
-
<div class="optionmiddle">
|
333 |
-
<select name="optinforms_form5_button_text_font" id="optinforms_form5_button_text_font" onchange='optinforms_change_form5_button_text_font()'>
|
334 |
-
<?php echo optinforms_get_form5_button_text_font_options(); ?>
|
335 |
-
</select>
|
336 |
-
<script type="text/javascript">
|
337 |
-
function optinforms_change_form5_button_text_font() {
|
338 |
-
document.getElementById("optinforms-form5-button").style.fontFamily = document.getElementById('optinforms_form5_button_text_font').value;
|
339 |
-
}
|
340 |
-
</script>
|
341 |
-
</div><!--optionmiddle-->
|
342 |
-
<div class="optionlast">
|
343 |
-
|
344 |
-
</div><!--optionlast-->
|
345 |
-
<div class="clear"></div>
|
346 |
-
</div><!--optiongroup-->
|
347 |
-
|
348 |
-
<div class="optiongroup">
|
349 |
-
<div class="optionleft">
|
350 |
-
<label for="optinforms_form5_button_text_size" class="nopointer"><?php echo __('Button text size', 'optin-forms'); ?></label>
|
351 |
-
</div><!--optionleft-->
|
352 |
-
<div class="optionmiddle">
|
353 |
-
<select name="optinforms_form5_button_text_size" id="optinforms_form5_button_text_size" onchange='optinforms_change_form5_button_text_size()'>
|
354 |
-
<?php echo optinforms_get_form5_button_text_size_options(); ?>
|
355 |
-
</select>
|
356 |
-
<script type="text/javascript">
|
357 |
-
function optinforms_change_form5_button_text_size() {
|
358 |
-
document.getElementById("optinforms-form5-button").style.fontSize = document.getElementById('optinforms_form5_button_text_size').value;
|
359 |
-
}
|
360 |
-
</script>
|
361 |
-
</div><!--optionmiddle-->
|
362 |
-
<div class="optionlast">
|
363 |
-
|
364 |
-
</div><!--optionlast-->
|
365 |
-
<div class="clear"></div>
|
366 |
-
</div><!--optiongroup-->
|
367 |
-
|
368 |
-
<div class="optiongroup">
|
369 |
-
<div class="optionleft">
|
370 |
-
<label for="optinforms_form5_button_text_color" class="nopointer"><?php echo __('Button text color', 'optin-forms'); ?></label>
|
371 |
-
</div><!--optionleft-->
|
372 |
-
<div class="optionmiddle">
|
373 |
-
<input type="text" id="optinforms_form5_button_text_color" name="optinforms_form5_button_text_color" class="optinforms-color" value="<?php echo optinforms_form5_default_button_text_color(); ?>" data-default-color="#FFFFFF" />
|
374 |
-
<script>
|
375 |
-
jQuery(document).ready(function($){
|
376 |
-
$('#optinforms_form5_button_text_color').wpColorPicker({
|
377 |
-
color: true,
|
378 |
-
hide: true,
|
379 |
-
palettes: true,
|
380 |
-
change: function(event, ui) {
|
381 |
-
$("#optinforms-form5-button").css( 'color', ui.color.toString());
|
382 |
-
}
|
383 |
-
});
|
384 |
-
});
|
385 |
-
</script>
|
386 |
-
</div><!--optionmiddle-->
|
387 |
-
<div class="optionlast">
|
388 |
-
|
389 |
-
</div><!--optionlast-->
|
390 |
-
<div class="clear"></div>
|
391 |
-
</div><!--optiongroup-->
|
392 |
-
|
393 |
-
<div class="optiongroup">
|
394 |
-
<div class="optionleft">
|
395 |
-
<label for="optinforms_form5_button_background" class="nopointer"><?php echo __('Button background color', 'optin-forms'); ?></label>
|
396 |
-
</div><!--optionleft-->
|
397 |
-
<div class="optionmiddle">
|
398 |
-
<input type="text" id="optinforms_form5_button_background" name="optinforms_form5_button_background" class="optinforms-color" value="<?php echo optinforms_form5_default_button_background(); ?>" data-default-color="#fb6a13" />
|
399 |
-
<script>
|
400 |
-
jQuery(document).ready(function($){
|
401 |
-
$('#optinforms_form5_button_background').wpColorPicker({
|
402 |
-
color: true,
|
403 |
-
hide: true,
|
404 |
-
palettes: true,
|
405 |
-
change: function(event, ui) {
|
406 |
-
$("#optinforms-form5-button").css( 'background-color', ui.color.toString());
|
407 |
-
}
|
408 |
-
});
|
409 |
-
});
|
410 |
-
</script>
|
411 |
-
</div><!--optionmiddle-->
|
412 |
-
<div class="optionlast">
|
413 |
-
|
414 |
-
</div><!--optionlast-->
|
415 |
-
<div class="clear"></div>
|
416 |
-
</div><!--optiongroup-->
|
417 |
-
|
418 |
-
<?php if (get_option('optinforms_form5_hide_disclaimer')== '1') { echo '<div class="optionsgroup"><p class="hidden-warning">' . __('You\'ve hidden your disclaimer in Form Options', 'optin-forms') . '.</p></div>'; } ?>
|
419 |
-
|
420 |
-
<div class="optiongroup">
|
421 |
-
<div class="optionleft">
|
422 |
-
<label for="optinforms_form5_disclaimer" class="nopointer"><?php echo __('Disclaimer text', 'optin-forms'); ?></label>
|
423 |
-
</div><!--optionleft-->
|
424 |
-
<div class="optionmiddle">
|
425 |
-
<input type="text" id="optinforms_form5_disclaimer" name="optinforms_form5_disclaimer" value="<?php echo optinforms_form5_default_disclaimer(); ?>" onchange='optinforms_change_form5_disclaimer()' <?php if (get_option('optinforms_form5_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?> />
|
426 |
-
<script type="text/javascript">
|
427 |
-
function optinforms_change_form5_disclaimer() {
|
428 |
-
document.getElementById('optinforms-form5-disclaimer').innerHTML = document.getElementById('optinforms_form5_disclaimer').value;
|
429 |
-
}
|
430 |
-
</script>
|
431 |
-
</div><!--optionmiddle-->
|
432 |
-
<div class="optionlast">
|
433 |
-
|
434 |
-
</div><!--optionlast-->
|
435 |
-
<div class="clear"></div>
|
436 |
-
</div><!--optiongroup-->
|
437 |
-
|
438 |
-
<div class="optiongroup">
|
439 |
-
<div class="optionleft">
|
440 |
-
<label for="optinforms_form5_disclaimer_font" class="nopointer"><?php echo __('Disclaimer font', 'optin-forms'); ?></label>
|
441 |
-
</div><!--optionleft-->
|
442 |
-
<div class="optionmiddle">
|
443 |
-
<select name="optinforms_form5_disclaimer_font" id="optinforms_form5_disclaimer_font" onchange='optinforms_change_form5_disclaimer_font()' <?php if (get_option('optinforms_form5_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?>>
|
444 |
-
<?php echo optinforms_get_form5_disclaimer_font_options(); ?>
|
445 |
-
</select>
|
446 |
-
<script type="text/javascript">
|
447 |
-
function optinforms_change_form5_disclaimer_font() {
|
448 |
-
document.getElementById("optinforms-form5-disclaimer").style.fontFamily = document.getElementById('optinforms_form5_disclaimer_font').value;
|
449 |
-
}
|
450 |
-
</script>
|
451 |
-
</div><!--optionmiddle-->
|
452 |
-
<div class="optionlast">
|
453 |
-
|
454 |
-
</div><!--optionlast-->
|
455 |
-
<div class="clear"></div>
|
456 |
-
</div><!--optiongroup-->
|
457 |
-
|
458 |
-
<div class="optiongroup">
|
459 |
-
<div class="optionleft">
|
460 |
-
<label for="optinforms_form5_disclaimer_size" class="nopointer"><?php echo __('Disclaimer size', 'optin-forms'); ?></label>
|
461 |
-
</div><!--optionleft-->
|
462 |
-
<div class="optionmiddle">
|
463 |
-
<select name="optinforms_form5_disclaimer_size" id="optinforms_form5_disclaimer_size" onchange='optinforms_change_form5_disclaimer_size()' <?php if (get_option('optinforms_form5_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?>>
|
464 |
-
<?php echo optinforms_get_form5_disclaimer_size_options(); ?>
|
465 |
-
</select>
|
466 |
-
<script type="text/javascript">
|
467 |
-
function optinforms_change_form5_disclaimer_size() {
|
468 |
-
document.getElementById("optinforms-form5-disclaimer").style.fontSize = document.getElementById('optinforms_form5_disclaimer_size').value;
|
469 |
-
}
|
470 |
-
</script>
|
471 |
-
</div><!--optionmiddle-->
|
472 |
-
<div class="optionlast">
|
473 |
-
|
474 |
-
</div><!--optionlast-->
|
475 |
-
<div class="clear"></div>
|
476 |
-
</div><!--optiongroup-->
|
477 |
-
|
478 |
-
<div class="optiongroup">
|
479 |
-
<div class="optionleft">
|
480 |
-
<label for="optinforms_form5_disclaimer_color" class="nopointer"><?php echo __('Disclaimer color', 'optin-forms'); ?></label>
|
481 |
-
</div><!--optionleft-->
|
482 |
-
<div class="optionmiddle">
|
483 |
-
<input type="text" id="optinforms_form5_disclaimer_color" name="optinforms_form5_disclaimer_color" class="optinforms-color" value="<?php echo optinforms_form5_default_disclaimer_color(); ?>" data-default-color="#727272" <?php if (get_option('optinforms_form5_hide_disclaimer')== '1') { echo 'disabled="disabled"'; } ?> />
|
484 |
-
<script>
|
485 |
-
jQuery(document).ready(function($){
|
486 |
-
$('#optinforms_form5_disclaimer_color').wpColorPicker({
|
487 |
-
color: true,
|
488 |
-
hide: true,
|
489 |
-
palettes: true,
|
490 |
-
change: function(event, ui) {
|
491 |
-
$("#optinforms-form5-disclaimer").css( 'color', ui.color.toString());
|
492 |
-
}
|
493 |
-
});
|
494 |
-
});
|
495 |
-
</script>
|
496 |
-
</div><!--optionmiddle-->
|
497 |
-
<div class="optionlast">
|
498 |
-
|
499 |
-
</div><!--optionlast-->
|
500 |
-
<div class="clear"></div>
|
501 |
-
</div><!--optiongroup-->
|
502 |
-
|
503 |
-
<div class="optiongroup">
|
504 |
-
<div class="optionleft">
|
505 |
-
<label for="optinforms_form5_width" class="nopointer"><?php echo __('Form width', 'optin-forms'); ?></label> <label><a onclick="optinforms_explain_width_5()"><span class="explain">?</span></a></label>
|
506 |
-
</div><!--optionleft-->
|
507 |
-
<div class="optionmiddle">
|
508 |
-
<div class="choose-width">
|
509 |
-
<input name="optinforms_form5_width" id="optinforms_form5_width_100" type="radio" value="0" class="radiobutton" <?php echo optinforms_form5_checked_width_100(); ?> onclick="document.getElementById('optinforms_form5_width_pixels').disabled=true;" /> <label for="optinforms_form5_width_100" class="radiobutton-label"><?php echo __('100%', 'optin-forms'); ?></label>
|
510 |
-
</div><!--choose-width-->
|
511 |
-
<div class="choose-width">
|
512 |
-
<input name="optinforms_form5_width" id="optinforms_form5_width_fixed" type="radio" value="1" class="radiobutton" <?php echo optinforms_form5_checked_width_fixed(); ?> onclick="document.getElementById('optinforms_form5_width_pixels').disabled=false;" /> <label for="optinforms_form5_width_fixed" class="radiobutton-label"><?php echo __('Fixed:', 'optin-forms'); ?></label>
|
513 |
-
</div><!--choose-width-->
|
514 |
-
<input type="text" id="optinforms_form5_width_pixels" name="optinforms_form5_width_pixels" value="<?php echo optinforms_form5_default_width_pixels(); ?>" class="fixed-width" <?php echo optinforms_form5_disabled_width_pixels(); ?> /> <p class="fixed-width-px"><?php echo __('px', 'optin-forms'); ?></p>
|
515 |
-
<div class="clear"></div>
|
516 |
-
</div><!--optionmiddle-->
|
517 |
-
<div class="optionlast">
|
518 |
-
|
519 |
-
</div><!--optionlast-->
|
520 |
-
<div class="clear"></div>
|
521 |
-
</div><!--optiongroup-->
|
522 |
-
|
523 |
-
<script type="text/javascript">
|
524 |
-
function optinforms_explain_width_5() {
|
525 |
-
// Get the DOM reference
|
526 |
-
var contentId = document.getElementById("optinforms-explain-width-5");
|
527 |
-
// Toggle
|
528 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
529 |
-
contentId.style.display = "block";
|
530 |
-
}
|
531 |
-
</script>
|
532 |
-
<div id="optinforms-explain-width-5" style="display:none;">
|
533 |
-
<div class="optinforms-help">
|
534 |
-
<p><?php echo __('In most cases, you can leave the form width at 100%. This will ensure your form will align perfectly with any WordPress theme and act responsive when scaled on different devices. Please note that the form preview displayed in your WordPress administration panel will not be affected by changing this value.', 'optin-forms'); ?></p>
|
535 |
-
</div><!--optinforms-help-->
|
536 |
-
</div><!--optinforms-explain-width-5-->
|
537 |
-
|
538 |
-
</div><!--toggle-container-->
|
539 |
-
<div class="clear"></div>
|
540 |
-
|
541 |
-
<div class="toggle-wrap">
|
542 |
-
<span class="trigger">
|
543 |
-
<a><?php echo __('Form Options', 'optin-forms'); ?></a>
|
544 |
-
</span>
|
545 |
-
|
546 |
-
<div class="toggle-container" style="display: none;">
|
547 |
-
|
548 |
-
<div class="optiongroup">
|
549 |
-
<div class="optionleft">
|
550 |
-
|
551 |
-
</div><!--optionleft-->
|
552 |
-
<div class="optionmiddle">
|
553 |
-
<input type="checkbox" name="optinforms_form5_hide_title" value="1" id="optinforms_form5_hide_title" <?php if (get_option('optinforms_form5_hide_title')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form5_title_visibility(this.checked);" /> <label for="optinforms_form5_hide_title" class="nopointer"><?php echo __('Hide the title', 'optin-forms'); ?></label>
|
554 |
-
<script type="text/javascript">
|
555 |
-
function optinforms_form5_title_visibility(optinchecked) {
|
556 |
-
if(optinchecked) {
|
557 |
-
document.getElementById("optinforms-form5-title").style.display = "none";
|
558 |
-
}
|
559 |
-
else {
|
560 |
-
document.getElementById("optinforms-form5-title").style.display = "";
|
561 |
-
}
|
562 |
-
}
|
563 |
-
</script>
|
564 |
-
</div><!--optionmiddle-->
|
565 |
-
<div class="optionlast">
|
566 |
-
|
567 |
-
</div><!--optionlast-->
|
568 |
-
<div class="clear"></div>
|
569 |
-
</div><!--optiongroup-->
|
570 |
-
|
571 |
-
<div class="optiongroup">
|
572 |
-
<div class="optionleft">
|
573 |
-
|
574 |
-
</div><!--optionleft-->
|
575 |
-
<div class="optionmiddle">
|
576 |
-
<input type="checkbox" name="optinforms_form5_hide_subtitle" value="1" id="optinforms_form5_hide_subtitle" <?php if (get_option('optinforms_form5_hide_subtitle')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form5_hide_subtitle_visibility(this.checked);optinforms_form5_hide_subtitle_disclaimer_visibility();" /> <label for="optinforms_form5_hide_subtitle" class="nopointer"><?php echo __('Hide the subtitle', 'optin-forms'); ?></label>
|
577 |
-
<script type="text/javascript">
|
578 |
-
function optinforms_form5_hide_subtitle_visibility(optinchecked) {
|
579 |
-
if(optinchecked) {
|
580 |
-
document.getElementById("optinforms-form5-subtitle").style.display = "none";
|
581 |
-
document.getElementById("optinforms-form5-disclaimer").style.margin = "0 20px";
|
582 |
-
}
|
583 |
-
else {
|
584 |
-
document.getElementById("optinforms-form5-subtitle").style.display = "";
|
585 |
-
document.getElementById("optinforms-form5-disclaimer").style.margin = "20px 20px 0";
|
586 |
-
}
|
587 |
-
}
|
588 |
-
</script>
|
589 |
-
</div><!--optionmiddle-->
|
590 |
-
<div class="optionlast">
|
591 |
-
|
592 |
-
</div><!--optionlast-->
|
593 |
-
<div class="clear"></div>
|
594 |
-
</div><!--optiongroup-->
|
595 |
-
|
596 |
-
<div class="optiongroup">
|
597 |
-
<div class="optionleft">
|
598 |
-
|
599 |
-
</div><!--optionleft-->
|
600 |
-
<div class="optionmiddle">
|
601 |
-
<input type="checkbox" name="optinforms_form5_hide_name_field" value="1" id="optinforms_form5_hide_name_field" <?php if (get_option('optinforms_form5_hide_name_field')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form5_name_field_visibility(this.checked);" /> <label for="optinforms_form5_hide_name_field" class="nopointer"><?php echo __('Hide the name field', 'optin-forms'); ?></label>
|
602 |
-
<script type="text/javascript">
|
603 |
-
function optinforms_form5_name_field_visibility(optinchecked) {
|
604 |
-
if(optinchecked) {
|
605 |
-
document.getElementById("optinforms-form5-name-field").style.display = "none";
|
606 |
-
}
|
607 |
-
else {
|
608 |
-
document.getElementById("optinforms-form5-name-field").style.display = "";
|
609 |
-
}
|
610 |
-
}
|
611 |
-
</script>
|
612 |
-
</div><!--optionmiddle-->
|
613 |
-
<div class="optionlast">
|
614 |
-
|
615 |
-
</div><!--optionlast-->
|
616 |
-
<div class="clear"></div>
|
617 |
-
</div><!--optiongroup-->
|
618 |
-
|
619 |
-
<div class="optiongroup">
|
620 |
-
<div class="optionleft">
|
621 |
-
|
622 |
-
</div><!--optionleft-->
|
623 |
-
<div class="optionmiddle">
|
624 |
-
<input type="checkbox" name="optinforms_form5_hide_disclaimer" value="1" id="optinforms_form5_hide_disclaimer" <?php if (get_option('optinforms_form5_hide_disclaimer')== '1') { echo 'checked="checked"'; } ?> onclick="optinforms_form5_disclaimer_visibility(this.checked);optinforms_form5_hide_subtitle_disclaimer_visibility();" /> <label for="optinforms_form5_hide_disclaimer" class="nopointer"><?php echo __('Hide the disclaimer', 'optin-forms'); ?></label>
|
625 |
-
<script type="text/javascript">
|
626 |
-
function optinforms_form5_disclaimer_visibility(optinchecked) {
|
627 |
-
if(optinchecked) {
|
628 |
-
document.getElementById("optinforms-form5-disclaimer").style.display = "none";
|
629 |
-
}
|
630 |
-
else {
|
631 |
-
document.getElementById("optinforms-form5-disclaimer").style.display = "";
|
632 |
-
}
|
633 |
-
}
|
634 |
-
</script>
|
635 |
-
<script type="text/javascript">
|
636 |
-
function optinforms_form5_hide_subtitle_disclaimer_visibility() {
|
637 |
-
if(document.getElementById("optinforms_form5_hide_subtitle").checked && document.getElementById("optinforms_form5_hide_disclaimer").checked) {
|
638 |
-
document.getElementById("optinforms-form5-container-right").style.display = "none";
|
639 |
-
document.getElementById("optinforms-form5-container-left").style.margin = "10px 0";
|
640 |
-
document.getElementById("optinforms-form5-container-left").style.width = "100%";
|
641 |
-
}
|
642 |
-
else if(document.getElementById("optinforms_form5_hide_subtitle").checked) {
|
643 |
-
document.getElementById("optinforms-form5-container-right").style.display = "inline";
|
644 |
-
document.getElementById("optinforms-form5-container-left").style.margin = "10px 1% 10px 0";
|
645 |
-
document.getElementById("optinforms-form5-container-left").style.width = "39%";
|
646 |
-
}
|
647 |
-
else if(document.getElementById("optinforms_form5_hide_disclaimer").checked) {
|
648 |
-
document.getElementById("optinforms-form5-container-right").style.display = "inline";
|
649 |
-
document.getElementById("optinforms-form5-container-left").style.margin = "10px 1% 10px 0";
|
650 |
-
document.getElementById("optinforms-form5-container-left").style.width = "39%";
|
651 |
-
}
|
652 |
-
}
|
653 |
-
</script>
|
654 |
-
</div><!--optionmiddle-->
|
655 |
-
<div class="optionlast">
|
656 |
-
|
657 |
-
</div><!--optionlast-->
|
658 |
-
<div class="clear"></div>
|
659 |
-
</div><!--optiongroup-->
|
660 |
-
|
661 |
-
<div class="optiongroup">
|
662 |
-
<div class="optionleft">
|
663 |
-
<label for="optinforms_form5_css" class="nopointer"><?php echo __('Custom CSS', 'optin-forms'); ?></label> <label><a onclick="optinforms_explain_css_5()"><span class="explain">?</span></a></label>
|
664 |
-
</div><!--optionleft-->
|
665 |
-
<div class="optionmiddle">
|
666 |
-
<textarea id="optinforms_form5_css" name="optinforms_form5_css"><?php echo optinforms_form5_css(); ?></textarea>
|
667 |
-
</div><!--optionmiddle-->
|
668 |
-
<div class="optionlast">
|
669 |
-
|
670 |
-
</div><!--optionlast-->
|
671 |
-
<div class="clear"></div>
|
672 |
-
</div><!--optiongroup-->
|
673 |
-
|
674 |
-
<script type="text/javascript">
|
675 |
-
function optinforms_explain_css_5() {
|
676 |
-
// Get the DOM reference
|
677 |
-
var contentId = document.getElementById("optinforms-explain-css-5");
|
678 |
-
// Toggle
|
679 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
680 |
-
contentId.style.display = "block";
|
681 |
-
}
|
682 |
-
</script>
|
683 |
-
<div id="optinforms-explain-css-5" style="display:none;">
|
684 |
-
<div class="optinforms-help">
|
685 |
-
<p><?php echo __('Override the plugin\'s CSS values by entering your own custom CSS.', 'optin-forms'); ?></p>
|
686 |
-
</div><!--optinforms-help-->
|
687 |
-
</div><!--optinforms-explain-css-5-->
|
688 |
-
|
689 |
-
</div><!--toggle-container-->
|
690 |
-
<div class="clear"></div>
|
691 |
-
</div><!--toggle-wrap-->
|
692 |
-
|
693 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/options-form-functionality.php
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
<div class="toggle-wrap">
|
3 |
-
<span class="trigger">
|
4 |
-
<a><?php echo __('Form Functionality', 'optin-forms'); ?></a>
|
5 |
-
</span>
|
6 |
-
|
7 |
-
<div class="toggle-container" style="display: none;">
|
8 |
-
|
9 |
-
<div class="optiongroup">
|
10 |
-
<div class="optionleft">
|
11 |
-
|
12 |
-
</div><!--optionleft-->
|
13 |
-
<div class="optionmiddle">
|
14 |
-
<input type="checkbox" name="optinforms_form_target" value="1" id="optinforms_form_target" <?php if (get_option('optinforms_form_target')== '1') { echo 'checked="checked"'; } ?> /> <label for="optinforms_form_target" class="nopointer"><?php echo __('Open form submission in a new window', 'optin-forms'); ?></label>
|
15 |
-
</div><!--optionmiddle-->
|
16 |
-
<div class="optionlast">
|
17 |
-
|
18 |
-
</div><!--optionlast-->
|
19 |
-
<div class="clear"></div>
|
20 |
-
</div><!--optiongroup-->
|
21 |
-
|
22 |
-
</div><!--toggle-container-->
|
23 |
-
|
24 |
-
</div><!--toggle-wrap-->
|
25 |
-
|
26 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/options-form-placement.php
DELETED
@@ -1,156 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
|
3 |
-
<div class="toggle-wrap">
|
4 |
-
<span class="trigger">
|
5 |
-
<a><?php echo __('Form Placement', 'optin-forms'); ?></a>
|
6 |
-
</span>
|
7 |
-
<div class="toggle-container" style="display: none;">
|
8 |
-
<div class="optiongroup">
|
9 |
-
<div class="optionleft">
|
10 |
-
<label for="optinforms_form_placement_post" class="nopointer"><?php echo __('On posts and custom post types', 'optin-forms'); ?></label>
|
11 |
-
</div><!--optionleft-->
|
12 |
-
<div class="optionmiddle">
|
13 |
-
<input name="optinforms_form_placement_post" id="optinforms_form_placement_post_1" type="radio" value="1" class="radiobutton" onclick="document.getElementById('optinforms_form_exclude_posts').disabled=false;" <?php if (get_option('optinforms_form_placement_post')== '1') { echo 'checked="checked"'; } ?> /> <label for="optinforms_form_placement_post_1" class="radiobutton-label"><?php echo __('After the first paragraph', 'optin-forms'); ?></label>
|
14 |
-
<div class="clear"></div>
|
15 |
-
<input name="optinforms_form_placement_post" id="optinforms_form_placement_post_2" type="radio" value="2" class="radiobutton" onclick="document.getElementById('optinforms_form_exclude_posts').disabled=false;" <?php if (get_option('optinforms_form_placement_post')== '2') { echo 'checked="checked"'; } ?> /> <label for="optinforms_form_placement_post_2" class="radiobutton-label"><?php echo __('After the second paragraph', 'optin-forms'); ?></label>
|
16 |
-
<div class="clear"></div>
|
17 |
-
<input name="optinforms_form_placement_post" id="optinforms_form_placement_post_3" type="radio" value="3" class="radiobutton" onclick="document.getElementById('optinforms_form_exclude_posts').disabled=false;" <?php if (get_option('optinforms_form_placement_post')== '') { echo 'checked="checked"'; } if (get_option('optinforms_form_placement_post')== '3') { echo 'checked="checked"'; } ?> /> <label for="optinforms_form_placement_post_3" class="radiobutton-label"><?php echo __('After the post', 'optin-forms'); ?></label>
|
18 |
-
<div class="clear"></div>
|
19 |
-
<input name="optinforms_form_placement_post" id="optinforms_form_placement_post_4" type="radio" value="4" class="radiobutton" onclick="document.getElementById('optinforms_form_exclude_posts').disabled=true;" <?php if (get_option('optinforms_form_placement_post')== '4') { echo 'checked="checked"';} ?> /> <label for="optinforms_form_placement_post_4" class="radiobutton-label"><?php echo __('Don\'t display on posts and custom post types', 'optin-forms'); ?></label>
|
20 |
-
<div class="clear"></div>
|
21 |
-
</div><!--optionmiddle-->
|
22 |
-
<div class="optionlast">
|
23 |
-
|
24 |
-
</div><!--optionlast-->
|
25 |
-
<div class="clear"></div>
|
26 |
-
|
27 |
-
</div><!--optiongroup-->
|
28 |
-
|
29 |
-
<div class="optiongroup">
|
30 |
-
<div class="optionleft">
|
31 |
-
<label for="optinforms_form_exclude_posts" class="nopointer"><?php echo __('Exclude on posts', 'optin-forms'); ?></label> <label><a onclick="optinforms_explain_form_exclude_posts()"><span class="explain">?</span></a></label>
|
32 |
-
</div><!--optionleft-->
|
33 |
-
<div class="optionmiddle">
|
34 |
-
<input type="text" id="optinforms_form_exclude_posts" name="optinforms_form_exclude_posts" value="<?php echo optinforms_form_exclude_posts(); ?>" <?php if (get_option('optinforms_form_placement_post')== '4') { echo 'disabled="disabled"'; } ?> />
|
35 |
-
</div><!--optionmiddle-->
|
36 |
-
<div class="optionlast">
|
37 |
-
|
38 |
-
</div><!--optionlast-->
|
39 |
-
<div class="clear"></div>
|
40 |
-
|
41 |
-
</div><!--optiongroup-->
|
42 |
-
|
43 |
-
<script type="text/javascript">
|
44 |
-
function optinforms_explain_form_exclude_posts() {
|
45 |
-
// Get the DOM reference
|
46 |
-
var contentId = document.getElementById("optinforms_explain_form_exclude_posts");
|
47 |
-
// Toggle
|
48 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
49 |
-
contentId.style.display = "block";
|
50 |
-
}
|
51 |
-
</script>
|
52 |
-
<div id="optinforms_explain_form_exclude_posts" style="display:none;">
|
53 |
-
<div class="optinforms-help">
|
54 |
-
<p><?php echo __('To exclude the form on certain posts, enter a comma separated list of post ID\'s, e.g. 6, 27, 41', 'optin-forms'); ?></p>
|
55 |
-
</div><!--optinforms-help-->
|
56 |
-
</div><!--optinforms_explain_form_exclude_posts-->
|
57 |
-
|
58 |
-
<div class="optiongroup">
|
59 |
-
<div class="optionleft">
|
60 |
-
<label for="optinforms_form_placement_page" class="nopointer"><?php echo __('On pages', 'optin-forms'); ?></label>
|
61 |
-
</div><!--optionleft-->
|
62 |
-
<div class="optionmiddle">
|
63 |
-
<input name="optinforms_form_placement_page" id="optinforms_form_placement_page_1" type="radio" value="1" class="radiobutton" onclick="document.getElementById('optinforms_form_exclude_pages').disabled=false;" <?php if (get_option('optinforms_form_placement_page')== '1') { echo 'checked="checked"'; } ?> /> <label for="optinforms_form_placement_page_1" class="radiobutton-label"><?php echo __('After the first paragraph', 'optin-forms'); ?></label>
|
64 |
-
<div class="clear"></div>
|
65 |
-
<input name="optinforms_form_placement_page" id="optinforms_form_placement_page_2" type="radio" value="2" class="radiobutton" onclick="document.getElementById('optinforms_form_exclude_pages').disabled=false;" <?php if (get_option('optinforms_form_placement_page')== '2') { echo 'checked="checked"'; } ?> /> <label for="optinforms_form_placement_page_2" class="radiobutton-label"><?php echo __('After the second paragraph', 'optin-forms'); ?></label>
|
66 |
-
<div class="clear"></div>
|
67 |
-
<input name="optinforms_form_placement_page" id="optinforms_form_placement_page_3" type="radio" value="3" class="radiobutton" onclick="document.getElementById('optinforms_form_exclude_pages').disabled=false;" <?php if (get_option('optinforms_form_placement_page')== '') { echo 'checked="checked"'; } if (get_option('optinforms_form_placement_page')== '3') { echo 'checked="checked"'; } ?> /> <label for="optinforms_form_placement_page_3" class="radiobutton-label"><?php echo __('After the page', 'optin-forms'); ?></label>
|
68 |
-
<div class="clear"></div>
|
69 |
-
<input name="optinforms_form_placement_page" id="optinforms_form_placement_page_4" type="radio" value="4" class="radiobutton" onclick="document.getElementById('optinforms_form_exclude_pages').disabled=true;" <?php if (get_option('optinforms_form_placement_page')== '4') { echo 'checked="checked"'; } ?> /> <label for="optinforms_form_placement_page_4" class="radiobutton-label"><?php echo __('Don\'t display on pages', 'optin-forms'); ?></label>
|
70 |
-
<div class="clear"></div>
|
71 |
-
</div><!--optionmiddle-->
|
72 |
-
<div class="optionlast">
|
73 |
-
|
74 |
-
</div><!--optionlast-->
|
75 |
-
<div class="clear"></div>
|
76 |
-
|
77 |
-
</div><!--optiongroup-->
|
78 |
-
|
79 |
-
<div class="optiongroup">
|
80 |
-
<div class="optionleft">
|
81 |
-
<label for="optinforms_form_exclude_pages" class="nopointer"><?php echo __('Exclude on pages', 'optin-forms'); ?></label> <label><a onclick="optinforms_explain_form_exclude_pages()"><span class="explain">?</span></a></label>
|
82 |
-
</div><!--optionleft-->
|
83 |
-
<div class="optionmiddle">
|
84 |
-
<input type="text" id="optinforms_form_exclude_pages" name="optinforms_form_exclude_pages" value="<?php echo optinforms_form_exclude_pages(); ?>" <?php if (get_option('optinforms_form_placement_page')== '4') { echo 'disabled="disabled"'; } ?> />
|
85 |
-
</div><!--optionmiddle-->
|
86 |
-
<div class="optionlast">
|
87 |
-
|
88 |
-
</div><!--optionlast-->
|
89 |
-
<div class="clear"></div>
|
90 |
-
|
91 |
-
</div><!--optiongroup-->
|
92 |
-
|
93 |
-
<script type="text/javascript">
|
94 |
-
function optinforms_explain_form_exclude_pages() {
|
95 |
-
// Get the DOM reference
|
96 |
-
var contentId = document.getElementById("optinforms_explain_form_exclude_pages");
|
97 |
-
// Toggle
|
98 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
99 |
-
contentId.style.display = "block";
|
100 |
-
}
|
101 |
-
</script>
|
102 |
-
<div id="optinforms_explain_form_exclude_pages" style="display:none;">
|
103 |
-
<div class="optinforms-help">
|
104 |
-
<p><?php echo __('To exclude the form on certain pages, enter a comma separated list of page ID\'s, e.g. 12, 43, 57', 'optin-forms'); ?></p>
|
105 |
-
</div><!--optinforms-help-->
|
106 |
-
</div><!--optinforms_explain_form_exclude_pages-->
|
107 |
-
|
108 |
-
<div class="optiongroup">
|
109 |
-
<div class="optionleft">
|
110 |
-
<label for="optinforms_form_shortcode" class="nopointer"><?php echo __('Shortcode', 'optin-forms'); ?></label> <label><a onclick="optinforms_explain_form_shortcode()"><span class="explain">?</span></a></label>
|
111 |
-
</div><!--optionleft-->
|
112 |
-
<div class="optionmiddle">
|
113 |
-
<input type="text" id="optinforms_form_shortcode" name="optinforms_form_shortcode" value="[optinform]" readonly="readonly" />
|
114 |
-
</div><!--optionmiddle-->
|
115 |
-
<div class="optionlast">
|
116 |
-
|
117 |
-
</div><!--optionlast-->
|
118 |
-
<div class="clear"></div>
|
119 |
-
|
120 |
-
</div><!--optiongroup-->
|
121 |
-
|
122 |
-
<script type="text/javascript">
|
123 |
-
function optinforms_explain_form_shortcode() {
|
124 |
-
// Get the DOM reference
|
125 |
-
var contentId = document.getElementById("optinforms_explain_form_shortcode");
|
126 |
-
// Toggle
|
127 |
-
contentId.style.display == "block" ? contentId.style.display = "none" :
|
128 |
-
contentId.style.display = "block";
|
129 |
-
}
|
130 |
-
</script>
|
131 |
-
<div id="optinforms_explain_form_shortcode" style="display:none;">
|
132 |
-
<div class="optinforms-help">
|
133 |
-
<p><?php echo __('Use the following shortcode to add your form to any post, page or custom post type. Simply paste the shortcode in your editor and you\'re done. For example, you can disable the automatic inclusion of forms on posts and pages and manually add forms to posts and pages of your choice.', 'optin-forms'); ?></p>
|
134 |
-
</div><!--optinforms-help-->
|
135 |
-
</div><!--optinforms_explain_form_exclude_pages-->
|
136 |
-
|
137 |
-
<div class="optiongroup">
|
138 |
-
<p><?php echo __('If you enjoy our plugin, please consider including a small "Powered by Optin Forms" link below your form. You would help us find new users, which would in turn result in even better features ;)', 'optin-forms'); ?></p>
|
139 |
-
<div class="optionleft">
|
140 |
-
<label for="optinforms_form_placement_page" class="nopointer"><?php echo __('Powered by Optin Forms link', 'optin-forms'); ?></label>
|
141 |
-
</div><!--optionleft-->
|
142 |
-
<div class="optionmiddle">
|
143 |
-
<input name="optinforms_powered_by" id="optinforms_powered_by_show" type="radio" value="1" class="radiobutton" <?php echo optinforms_powered_by_show(); ?> /> <label for="optinforms_powered_by_show" class="radiobutton-label"><?php echo __('Show', 'optin-forms'); ?></label>
|
144 |
-
<input name="optinforms_powered_by" id="optinforms_powered_by_hide" type="radio" value="0" class="radiobutton" <?php echo optinforms_powered_by_hide(); ?> /> <label for="optinforms_powered_by_hide" class="radiobutton-label"><?php echo __('Hide', 'optin-forms'); ?></label>
|
145 |
-
<div class="clear"></div>
|
146 |
-
</div><!--optionmiddle-->
|
147 |
-
<div class="optionlast">
|
148 |
-
|
149 |
-
</div><!--optionlast-->
|
150 |
-
<div class="clear"></div>
|
151 |
-
|
152 |
-
</div><!--optiongroup-->
|
153 |
-
</div><!--toggle-container-->
|
154 |
-
</div><!--toggle-wrap-->
|
155 |
-
|
156 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/preview-form-1.php
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
<div id="optinforms-form1-container">
|
3 |
-
<div id="optinforms-form1" style="background:<?php echo optinforms_form1_default_background(); ?>; border-color:<?php echo optinforms_form1_default_border(); ?>">
|
4 |
-
<p id="optinforms-form1-title" style="font-family:<?php echo optinforms_form1_default_title_font(); ?>; font-size:<?php echo optinforms_form1_default_title_size(); ?>; line-height:<?php echo optinforms_form1_default_title_size(); ?>; color:<?php echo optinforms_form1_default_title_color(); ?>; <?php if (get_option('optinforms_form1_hide_title')== '1') { echo 'display:none;'; } ?>"><?php echo optinforms_form1_default_title(); ?></p>
|
5 |
-
|
6 |
-
<p id="optinforms-form1-subtitle" style="font-family:<?php echo optinforms_form1_default_subtitle_font(); ?>; font-size:<?php echo optinforms_form1_default_subtitle_size(); ?>; line-height: <?php echo optinforms_form1_default_subtitle_size(); ?>; <?php if (get_option('optinforms_form1_hide_subtitle')== '1') { echo 'display:none;'; } ?>"><?php echo optinforms_form1_default_subtitle(); ?></p>
|
7 |
-
<div id="optinforms-form1-name-field-container" <?php if (get_option('optinforms_form1_hide_name_field')== '1') { echo 'style="display:none;"'; } ?>>
|
8 |
-
<input type="text" id="optinforms-form1-name-field" placeholder="<?php echo optinforms_form1_default_name_field(); ?>" style="font-family:<?php echo optinforms_form1_default_fields_font(); ?>; font-size:<?php echo optinforms_form1_default_fields_size(); ?>; color:<?php echo optinforms_form1_default_fields_color(); ?>" />
|
9 |
-
</div><!--optinforms-form1-name-field-container-->
|
10 |
-
<div id="optinforms-form1-email-field-container" <?php if (get_option('optinforms_form1_hide_name_field')== '1') { echo 'style="width:78%;"'; } ?>>
|
11 |
-
<input type="text" id="optinforms-form1-email-field" placeholder="<?php echo optinforms_form1_default_email_field(); ?>" style="font-family:<?php echo optinforms_form1_default_fields_font(); ?>; font-size:<?php echo optinforms_form1_default_fields_size(); ?>; color:<?php echo optinforms_form1_default_fields_color(); ?>" />
|
12 |
-
</div><!--optinforms-form1-email-field-container-->
|
13 |
-
<div id="optinforms-form1-button-container">
|
14 |
-
<input type="button" id="optinforms-form1-button" value="<?php echo optinforms_form1_default_button_text(); ?>" style="font-family:<?php echo optinforms_form1_default_button_text_font(); ?>; font-size:<?php echo optinforms_form1_default_button_text_size(); ?>; color:<?php echo optinforms_form1_default_button_text_color(); ?>; background-color:<?php echo optinforms_form1_default_button_background(); ?>" />
|
15 |
-
</div><!--optinforms-form1-button-container-->
|
16 |
-
<div class="clear"></div>
|
17 |
-
<p id="optinforms-form1-disclaimer" style="font-family:<?php echo optinforms_form1_default_disclaimer_font(); ?>; font-size:<?php echo optinforms_form1_default_disclaimer_size(); ?>; line-height: <?php echo optinforms_form1_default_disclaimer_size(); ?>; color:<?php echo optinforms_form1_default_disclaimer_color(); ?>; <?php if (get_option('optinforms_form1_hide_disclaimer')== '1') { echo 'display:none;'; } ?>"><?php echo optinforms_form1_default_disclaimer(); ?></p>
|
18 |
-
</div><!--optinforms-form1-->
|
19 |
-
</div><!--optinforms-form1-container-->
|
20 |
-
<div class="clear"></div>
|
21 |
-
|
22 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/preview-form-2.php
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
<div id="optinforms-form2-container">
|
3 |
-
<div id="optinforms-form2" style="background: <?php echo optinforms_form2_default_background(); ?>;">
|
4 |
-
<div id="optinforms-form2-title-container" <?php if (get_option('optinforms_form2_hide_title')== '1') { echo 'style="display:none;"'; } ?>>
|
5 |
-
<div id="optinforms-form2-title" style="font-family:<?php echo optinforms_form2_default_title_font(); ?>; font-size:<?php echo optinforms_form2_default_title_size(); ?>; line-height:<?php echo optinforms_form2_default_title_size(); ?>; color:<?php echo optinforms_form2_default_title_color(); ?>"><?php echo optinforms_form2_default_title(); ?></div><!--optinforms-form2-title-->
|
6 |
-
</div><!--optinforms-form2-title-container-->
|
7 |
-
<div id="optinforms-form2-email-field-container" <?php if (get_option('optinforms_form2_hide_title')== '1' && get_option('optinforms_form2_hide_disclaimer')== '1') { echo 'style="width:80%;"'; } elseif (get_option('optinforms_form2_hide_title')== '1') { echo 'style="width:62%;"'; } elseif (get_option('optinforms_form2_hide_disclaimer')== '1') { echo 'style="width:48%;"'; } ?>>
|
8 |
-
<input type="text" id="optinforms-form2-email-field" placeholder="<?php echo optinforms_form2_default_email_field(); ?>" style="font-family:<?php echo optinforms_form2_default_fields_font(); ?>; font-size:<?php echo optinforms_form2_default_fields_size(); ?>; color:<?php echo optinforms_form2_default_fields_color(); ?>;" />
|
9 |
-
</div><!--optinforms-form2-email-field-container-->
|
10 |
-
<div id="optinforms-form2-button-container">
|
11 |
-
<input type="button" id="optinforms-form2-button" value="<?php echo optinforms_form2_default_button_text(); ?>" style="font-family:<?php echo optinforms_form2_default_button_text_font(); ?>; font-size:<?php echo optinforms_form2_default_button_text_size(); ?>; color:<?php echo optinforms_form2_default_button_text_color(); ?>; background-color:<?php echo optinforms_form2_default_button_background(); ?>" />
|
12 |
-
</div><!--optinforms-form2-button-container-->
|
13 |
-
<div id="optinforms-form2-disclaimer-container" <?php if (get_option('optinforms_form2_hide_disclaimer')== '1') { echo 'style="display:none;"'; } ?>>
|
14 |
-
<p id="optinforms-form2-disclaimer" style="font-family:<?php echo optinforms_form2_default_disclaimer_font(); ?>; font-size:<?php echo optinforms_form2_default_disclaimer_size(); ?>; line-height: <?php echo optinforms_form2_default_disclaimer_size(); ?>; color:<?php echo optinforms_form2_default_disclaimer_color(); ?>"><?php echo optinforms_form2_default_disclaimer(); ?></p>
|
15 |
-
</div><!--optinforms-form2-disclaimer-container-->
|
16 |
-
<div class="clear"></div>
|
17 |
-
</div><!--optinforms-form2-->
|
18 |
-
</div><!--optinforms-form2-container-->
|
19 |
-
<div class="clear"></div>
|
20 |
-
|
21 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/preview-form-3.php
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
<div id="optinforms-form3-container">
|
3 |
-
<div id="optinforms-form3">
|
4 |
-
<div id="optinforms-form3-inside" style="background: <?php echo optinforms_form3_default_background(); ?>;">
|
5 |
-
<div id="optinforms-form3-container-left" <?php if (get_option('optinforms_form3_hide_title')== '1' && get_option('optinforms_form3_hide_subtitle')== '1') { echo 'style="display:none;"'; } ?>>
|
6 |
-
<div id="optinforms-form3-title" style="font-family:<?php echo optinforms_form3_default_title_font(); ?>; font-size:<?php echo optinforms_form3_default_title_size(); ?>; line-height:<?php echo optinforms_form3_default_title_size(); ?>; color:<?php echo optinforms_form3_default_title_color(); ?>; <?php if (get_option('optinforms_form3_hide_title')== '1') { echo 'display:none;'; } ?>"><?php echo optinforms_form3_default_title(); ?></div><!--optinforms-form3-title-->
|
7 |
-
<div id="optinforms-form3-subtitle" style="font-family:<?php echo optinforms_form3_default_subtitle_font(); ?>; font-size:<?php echo optinforms_form3_default_subtitle_size(); ?>; color:<?php echo optinforms_form3_default_subtitle_color(); ?>; <?php if (get_option('optinforms_form3_hide_subtitle')== '1') { echo 'display:none;'; } ?>"><?php echo optinforms_form3_default_subtitle(); ?></div><!--optinforms-form3-subtitle-->
|
8 |
-
</div><!--optinforms-form3-container-left-->
|
9 |
-
<div id="optinforms-form3-container-right" <?php if (get_option('optinforms_form3_hide_title')== '1' && get_option('optinforms_form3_hide_subtitle')== '1') { echo 'style="margin:10px 0 0 0;width:100%;"'; } ?>>
|
10 |
-
<input type="text" id="optinforms-form3-name-field" placeholder="<?php echo optinforms_form3_default_name_field(); ?>" style="font-family:<?php echo optinforms_form3_default_fields_font(); ?>; font-size:<?php echo optinforms_form3_default_fields_size(); ?>; color:<?php echo optinforms_form3_default_fields_color(); ?>; <?php if (get_option('optinforms_form3_hide_name_field')== '1') { echo 'display:none;'; } ?>" />
|
11 |
-
<input type="text" id="optinforms-form3-email-field" placeholder="<?php echo optinforms_form3_default_email_field(); ?>" style="font-family:<?php echo optinforms_form3_default_fields_font(); ?>; font-size:<?php echo optinforms_form3_default_fields_size(); ?>; color:<?php echo optinforms_form3_default_fields_color(); ?>" />
|
12 |
-
<input type="button" id="optinforms-form3-button" value="<?php echo optinforms_form3_default_button_text(); ?>" style="font-family:<?php echo optinforms_form3_default_button_text_font(); ?>; font-size:<?php echo optinforms_form3_default_button_text_size(); ?>; color:<?php echo optinforms_form3_default_button_text_color(); ?>; background-color:<?php echo optinforms_form3_default_button_background(); ?>" />
|
13 |
-
</div><!--optinforms-form3-container-right-->
|
14 |
-
<div class="clear"></div>
|
15 |
-
</div><!--optinforms-form3-inside-->
|
16 |
-
</div><!--optinforms-form3-->
|
17 |
-
</div><!--optinforms-form3-container-->
|
18 |
-
<div class="clear"></div>
|
19 |
-
|
20 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/preview-form-4.php
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
<div id="optinforms-form4-container">
|
3 |
-
<div id="optinforms-form4" style="background:<?php echo optinforms_form4_default_background(); ?>; border-color:<?php echo optinforms_form4_default_border(); ?>">
|
4 |
-
<div id="optinforms-form4-title" style="font-family:<?php echo optinforms_form4_default_title_font(); ?>; font-size:<?php echo optinforms_form4_default_title_size(); ?>; line-height:<?php echo optinforms_form4_default_title_size(); ?>; color:<?php echo optinforms_form4_default_title_color(); ?>; <?php if (get_option('optinforms_form4_hide_title')== '1') { echo 'display:none;'; } ?>"><?php echo optinforms_form4_default_title(); ?></div><!--optinforms-form4-title-->
|
5 |
-
<div id="optinforms-form4-subtitle" style="font-family:<?php echo optinforms_form4_default_subtitle_font(); ?>; font-size:<?php echo optinforms_form4_default_subtitle_size(); ?>; line-height: <?php echo optinforms_form4_default_subtitle_size(); ?>; color: <?php echo optinforms_form4_default_subtitle_color(); ?>; <?php if (get_option('optinforms_form4_hide_subtitle')== '1') { echo 'display:none;'; } ?>"><?php echo optinforms_form4_default_subtitle(); ?></div><!--optinforms-form4-subtitle-->
|
6 |
-
<input type="text" id="optinforms-form4-email-field" placeholder="<?php echo optinforms_form4_default_email_field(); ?>" style="font-family:<?php echo optinforms_form4_default_fields_font(); ?>; font-size:<?php echo optinforms_form4_default_fields_size(); ?>; color:<?php echo optinforms_form4_default_fields_color(); ?>" />
|
7 |
-
<input type="button" id="optinforms-form4-button" value="<?php echo optinforms_form4_default_button_text(); ?>" style="font-family:<?php echo optinforms_form4_default_button_text_font(); ?>; font-size:<?php echo optinforms_form4_default_button_text_size(); ?>; color:<?php echo optinforms_form4_default_button_text_color(); ?>; background-color:<?php echo optinforms_form4_default_button_background(); ?>" />
|
8 |
-
<div id="optinforms-form4-disclaimer" style="font-family:<?php echo optinforms_form4_default_disclaimer_font(); ?>; font-size:<?php echo optinforms_form4_default_disclaimer_size(); ?>; line-height: <?php echo optinforms_form4_default_disclaimer_size(); ?>; color:<?php echo optinforms_form4_default_disclaimer_color(); ?>; <?php if (get_option('optinforms_form4_hide_disclaimer')== '1') { echo 'display:none;'; } ?>"><?php echo optinforms_form4_default_disclaimer(); ?></div><!--optinforms-form4-disclaimer-->
|
9 |
-
</div><!--optinforms-form4-->
|
10 |
-
</div><!--optinforms-form4-container-->
|
11 |
-
<div class="clear"></div>
|
12 |
-
|
13 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/preview-form-5.php
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
<div id="optinforms-form5-container">
|
3 |
-
<div id="optinforms-form5" style="background: <?php echo optinforms_form5_default_background(); ?>;">
|
4 |
-
<div id="optinforms-form5-container-left" <?php if (get_option('optinforms_form5_hide_subtitle')== '1' && get_option('optinforms_form5_hide_disclaimer')== '1') { echo 'style="width:100%;margin:10px 0;"'; } ?>>
|
5 |
-
<div id="optinforms-form5-title" style="font-family:<?php echo optinforms_form5_default_title_font(); ?>; font-size:<?php echo optinforms_form5_default_title_size(); ?>; line-height:<?php echo optinforms_form5_default_title_size(); ?>; color:<?php echo optinforms_form5_default_title_color(); ?>; <?php if (get_option('optinforms_form5_hide_title')== '1') { echo 'display:none;'; } ?>"><?php echo optinforms_form5_default_title(); ?></div><!--optinforms-form5-title-->
|
6 |
-
<input type="text" id="optinforms-form5-name-field" placeholder="<?php echo optinforms_form5_default_name_field(); ?>" style="font-family:<?php echo optinforms_form5_default_fields_font(); ?>; font-size:<?php echo optinforms_form5_default_fields_size(); ?>; color:<?php echo optinforms_form5_default_fields_color(); ?>; <?php if (get_option('optinforms_form5_hide_name_field')== '1') { echo 'display:none;'; } ?>" />
|
7 |
-
<input type="text" id="optinforms-form5-email-field" placeholder="<?php echo optinforms_form5_default_email_field(); ?>" style="font-family:<?php echo optinforms_form5_default_fields_font(); ?>; font-size:<?php echo optinforms_form5_default_fields_size(); ?>; color:<?php echo optinforms_form5_default_fields_color(); ?>" />
|
8 |
-
<input type="button" id="optinforms-form5-button" value="<?php echo optinforms_form5_default_button_text(); ?>" style="font-family:<?php echo optinforms_form5_default_button_text_font(); ?>; font-size:<?php echo optinforms_form5_default_button_text_size(); ?>; color:<?php echo optinforms_form5_default_button_text_color(); ?>; background-color:<?php echo optinforms_form5_default_button_background(); ?>" />
|
9 |
-
</div><!--optinforms-form5-container-left-->
|
10 |
-
<div id="optinforms-form5-container-right" <?php if (get_option('optinforms_form5_hide_subtitle')== '1' && get_option('optinforms_form5_hide_disclaimer')== '1') { echo 'style="display:none;"'; } ?>>
|
11 |
-
<div id="optinforms-form5-subtitle" style="font-family:<?php echo optinforms_form5_default_subtitle_font(); ?>; font-size:<?php echo optinforms_form5_default_subtitle_size(); ?>; color:<?php echo optinforms_form5_default_subtitle_color(); ?>; <?php if (get_option('optinforms_form5_hide_subtitle')== '1') { echo 'display:none;'; } ?>"><?php echo optinforms_form5_default_subtitle(); ?></div><!--optinforms-form5-subtitle-->
|
12 |
-
<div id="optinforms-form5-disclaimer" style="font-family:<?php echo optinforms_form5_default_disclaimer_font(); ?>; font-size:<?php echo optinforms_form5_default_disclaimer_size(); ?>; color:<?php echo optinforms_form5_default_disclaimer_color(); ?>; <?php if (get_option('optinforms_form5_hide_disclaimer')== '1') { echo 'display:none;'; } ?> <?php if (get_option('optinforms_form5_hide_subtitle')== '1') { echo 'margin: 0 20px;'; } ?>"><?php echo optinforms_form5_default_disclaimer(); ?></div><!--optinforms-form5-disclaimer-->
|
13 |
-
</div><!--optinforms-form5-container-right-->
|
14 |
-
<div class="clear"></div>
|
15 |
-
</div><!--optinforms-form5-->
|
16 |
-
</div><!--optinforms-form5-container-->
|
17 |
-
<div class="clear"></div>
|
18 |
-
|
19 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/register-settings.php
DELETED
@@ -1,203 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
add_action( 'admin_init', 'optinforms_register_settings' );
|
4 |
-
|
5 |
-
// Register Optin Forms settings
|
6 |
-
function optinforms_register_settings()
|
7 |
-
{
|
8 |
-
global $optinforms_forms;
|
9 |
-
|
10 |
-
// Are there any custom optin form designs registered?
|
11 |
-
if ( is_array( $optinforms_forms ) ) {
|
12 |
-
|
13 |
-
// Loop through registered optin form designs.
|
14 |
-
foreach ( $optinforms_forms as $id => $design ) {
|
15 |
-
|
16 |
-
// Are the default settings provided?
|
17 |
-
if ( is_array( $design->defaults ) ) {
|
18 |
-
|
19 |
-
// Loop through each default setting.
|
20 |
-
foreach ( $design->defaults as $setting_id => $setting_default ) {
|
21 |
-
|
22 |
-
// Register a WordPress setting to store the setting value.
|
23 |
-
register_setting( 'optinforms-settings-group', $setting_id );
|
24 |
-
}
|
25 |
-
}
|
26 |
-
}
|
27 |
-
}
|
28 |
-
|
29 |
-
register_setting( 'optinforms-settings-group', 'optinforms_email_solution' );
|
30 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_action' );
|
31 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_action_mailchimp' );
|
32 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_action_madmimi' );
|
33 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_action_interspire' );
|
34 |
-
|
35 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_list_name_aweber' );
|
36 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_redirect_aweber' );
|
37 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_listid_icontact' );
|
38 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_specialid_icontact' );
|
39 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_clientid_icontact' );
|
40 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_redirect_icontact' );
|
41 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_error_icontact' );
|
42 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_webformid_getresponse' );
|
43 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_name_field_interspire' );
|
44 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_id_convertkit' );
|
45 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_success_convertkit' );
|
46 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_error_convertkit' );
|
47 |
-
|
48 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_design' );
|
49 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_placement_post' );
|
50 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_placement_page' );
|
51 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_placement_popup' );
|
52 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_placement_box' );
|
53 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_placement_bar' );
|
54 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_exclude_posts' );
|
55 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_exclude_pages' );
|
56 |
-
register_setting( 'optinforms-settings-group', 'optinforms_powered_by' );
|
57 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form_target' );
|
58 |
-
|
59 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_background' );
|
60 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_border' );
|
61 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_title' );
|
62 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_title_font' );
|
63 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_title_size' );
|
64 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_title_color' );
|
65 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_subtitle' );
|
66 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_subtitle_font' );
|
67 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_subtitle_size' );
|
68 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_subtitle_color' );
|
69 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_name_field' );
|
70 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_email_field' );
|
71 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_fields_font' );
|
72 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_fields_size' );
|
73 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_fields_color' );
|
74 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_button_text' );
|
75 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_button_text_font' );
|
76 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_button_text_size' );
|
77 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_button_text_color' );
|
78 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_button_background' );
|
79 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_disclaimer' );
|
80 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_disclaimer_font' );
|
81 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_disclaimer_size' );
|
82 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_disclaimer_color' );
|
83 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_width' );
|
84 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_width_pixels' );
|
85 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_hide_title' );
|
86 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_hide_subtitle' );
|
87 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_hide_name_field' );
|
88 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_hide_disclaimer' );
|
89 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form1_css' );
|
90 |
-
|
91 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_background' );
|
92 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_title' );
|
93 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_title_font' );
|
94 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_title_size' );
|
95 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_title_color' );
|
96 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_email_field' );
|
97 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_fields_font' );
|
98 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_fields_size' );
|
99 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_fields_color' );
|
100 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_button_text' );
|
101 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_button_text_font' );
|
102 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_button_text_size' );
|
103 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_button_text_color' );
|
104 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_button_background' );
|
105 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_disclaimer' );
|
106 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_disclaimer_font' );
|
107 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_disclaimer_size' );
|
108 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_disclaimer_color' );
|
109 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_width' );
|
110 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_width_pixels' );
|
111 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_hide_title' );
|
112 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_hide_disclaimer' );
|
113 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form2_css' );
|
114 |
-
|
115 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_background' );
|
116 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_title' );
|
117 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_title_font' );
|
118 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_title_size' );
|
119 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_title_color' );
|
120 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_subtitle' );
|
121 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_subtitle_font' );
|
122 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_subtitle_size' );
|
123 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_subtitle_color' );
|
124 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_name_field' );
|
125 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_email_field' );
|
126 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_fields_font' );
|
127 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_fields_size' );
|
128 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_fields_color' );
|
129 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_button_text' );
|
130 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_button_text_font' );
|
131 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_button_text_size' );
|
132 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_button_text_color' );
|
133 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_button_background' );
|
134 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_width' );
|
135 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_width_pixels' );
|
136 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_hide_title' );
|
137 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_hide_subtitle' );
|
138 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_hide_name_field' );
|
139 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form3_css' );
|
140 |
-
|
141 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_background' );
|
142 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_border' );
|
143 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_title' );
|
144 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_title_font' );
|
145 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_title_size' );
|
146 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_title_color' );
|
147 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_subtitle' );
|
148 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_subtitle_font' );
|
149 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_subtitle_size' );
|
150 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_subtitle_color' );
|
151 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_email_field' );
|
152 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_fields_font' );
|
153 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_fields_size' );
|
154 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_fields_color' );
|
155 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_button_text' );
|
156 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_button_text_font' );
|
157 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_button_text_size' );
|
158 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_button_text_color' );
|
159 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_button_background' );
|
160 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_disclaimer' );
|
161 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_disclaimer_font' );
|
162 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_disclaimer_size' );
|
163 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_disclaimer_color' );
|
164 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_width' );
|
165 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_width_pixels' );
|
166 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_hide_title' );
|
167 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_hide_subtitle' );
|
168 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_hide_disclaimer' );
|
169 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form4_css' );
|
170 |
-
|
171 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_background' );
|
172 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_title' );
|
173 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_title_font' );
|
174 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_title_size' );
|
175 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_title_color' );
|
176 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_subtitle' );
|
177 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_subtitle_font' );
|
178 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_subtitle_size' );
|
179 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_subtitle_color' );
|
180 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_name_field' );
|
181 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_email_field' );
|
182 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_fields_font' );
|
183 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_fields_size' );
|
184 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_fields_color' );
|
185 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_button_text' );
|
186 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_button_text_font' );
|
187 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_button_text_size' );
|
188 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_button_text_color' );
|
189 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_button_background' );
|
190 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_disclaimer' );
|
191 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_disclaimer_font' );
|
192 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_disclaimer_size' );
|
193 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_disclaimer_color' );
|
194 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_width' );
|
195 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_width_pixels' );
|
196 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_hide_title' );
|
197 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_hide_subtitle' );
|
198 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_hide_name_field' );
|
199 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_hide_disclaimer' );
|
200 |
-
register_setting( 'optinforms-settings-group', 'optinforms_form5_css' );
|
201 |
-
|
202 |
-
}
|
203 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/sidebar.php
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<?php ?>
|
2 |
-
|
3 |
-
<div class="optinforms-ad-product">
|
4 |
-
<h4><a href="https://optinlock.com/?utm_source=OptinForms&utm_medium=link&utm_campaign=sidebar" target="_blank">Optin Forms Pro</a></h4>
|
5 |
-
<p>We are working on something really cool but it may take a few weeks. Signup below to get notified when we launch. In the meantime if you're looking for a premium list building plugin, check out <a href="https://fancythemes.com/best-list-building-plugins-wordpress/?utm_source=OptinForms&utm_medium=button&utm_campaign=sidebar" target="_blank">our in-depth guide</a>.</p>
|
6 |
-
|
7 |
-
<div class="optinforms-ad-product-button"><a href="https://optinlock.com/?utm_source=OptinForms&utm_medium=button&utm_campaign=sidebar" target="_blank">Signup to Get Notified</a></div>
|
8 |
-
</div><!--optinforms-ad-product-->
|
9 |
-
<div class="optinforms-ad">
|
10 |
-
<ul>
|
11 |
-
<li><a href="https://wordpress.org/support/plugin/optin-forms" target="_blank"><?php echo __('Get support', 'optin-forms'); ?></a></li>
|
12 |
-
<li><a href="https://wordpress.org/support/view/plugin-reviews/optin-forms" target="_blank"><?php echo __('Rate the plugin on WordPress.org', 'optin-forms'); ?></a></li>
|
13 |
-
<li><a href="https://translate.wordpress.org/projects/wp-plugins/optin-forms" target="_blank"><?php echo __('Translate Optin Forms into your language', 'optin-forms'); ?></a></li>
|
14 |
-
<li><a href="https://www.twitter.com/FancyThemes" target="_blank"><?php echo __('Follow me on Twitter', 'optin-forms'); ?></a></li>
|
15 |
-
<li><a href="https://fancythemes.com/best-wordpress-hosting-providers/" target="_blank"><?php echo __('WordPress Hosting', 'optin-forms'); ?></a></li>
|
16 |
-
</ul>
|
17 |
-
</div><!--optinforms-ad-->
|
18 |
-
|
19 |
-
<?php ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/js/custom.js
DELETED
@@ -1,78 +0,0 @@
|
|
1 |
-
var root_path_url = "http";
|
2 |
-
jQuery(document).ready(function($) {
|
3 |
-
root_path_url = $('link[rel="start"]').attr("href") + "/";
|
4 |
-
});
|
5 |
-
|
6 |
-
function is_touch_device() {
|
7 |
-
return !!('ontouchstart' in window);
|
8 |
-
}
|
9 |
-
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Switches backend forms based on drop down selection.
|
13 |
-
*/
|
14 |
-
jQuery(document).ready(function($) {
|
15 |
-
|
16 |
-
// Runs when form design select list changes.
|
17 |
-
$("#optinforms_form_design").change(function() {
|
18 |
-
alert('text');
|
19 |
-
|
20 |
-
// Hides all design specific options.
|
21 |
-
$('#optinforms-design-backend-wrap > div').css('display', 'none');
|
22 |
-
|
23 |
-
// Displays only the options corresponding with the chosen form.
|
24 |
-
$('#' + this.value).css('display', 'block');
|
25 |
-
});
|
26 |
-
});
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
/***************************************************
|
31 |
-
TOGGLE STYLE
|
32 |
-
***************************************************/
|
33 |
-
jQuery(document).ready(function($) {
|
34 |
-
|
35 |
-
$(".toggle-container").hide();
|
36 |
-
$(".trigger").toggle(function(){
|
37 |
-
$(this).addClass("active");
|
38 |
-
}, function () {
|
39 |
-
$(this).removeClass("active");
|
40 |
-
});
|
41 |
-
$(".trigger").click(function(){
|
42 |
-
$(this).next(".toggle-container").slideToggle();
|
43 |
-
});
|
44 |
-
});
|
45 |
-
|
46 |
-
/***************************************************
|
47 |
-
ACCORDION
|
48 |
-
***************************************************/
|
49 |
-
jQuery(document).ready(function($){
|
50 |
-
$('.trigger-button').click(function() {
|
51 |
-
$(".trigger-button").removeClass("active")
|
52 |
-
$('.accordion').slideUp('normal');
|
53 |
-
if($(this).next().is(':hidden') == true) {
|
54 |
-
$(this).next().slideDown('normal');
|
55 |
-
$(this).addClass("active");
|
56 |
-
}
|
57 |
-
});
|
58 |
-
$('.accordion').hide();
|
59 |
-
});
|
60 |
-
|
61 |
-
|
62 |
-
/***************************************************
|
63 |
-
Check path
|
64 |
-
***************************************************/
|
65 |
-
|
66 |
-
jQuery(document).ready(function($){
|
67 |
-
|
68 |
-
$('.check_path').each(function(){
|
69 |
-
var icon_path = $(this).attr("src");
|
70 |
-
if (icon_path.substr(0, 10) == "wp-content") {
|
71 |
-
$(this).attr("src", root_path_url + ""+ icon_path);
|
72 |
-
}
|
73 |
-
});
|
74 |
-
});
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/js/optinforms-color.js
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function($){
|
2 |
-
$('.optinforms-color').wpColorPicker();
|
3 |
-
});
|
|
|
|
|
|
trunk/js/placeholder.js
DELETED
@@ -1,103 +0,0 @@
|
|
1 |
-
// Stick Placeholders jQuery Plugin
|
2 |
-
(function($) {
|
3 |
-
var alterParent = function(options, event) {
|
4 |
-
var label = $(this).data('label');
|
5 |
-
|
6 |
-
if (event && event.type === 'focusin') {
|
7 |
-
label.css('opacity', options.placeholderFocusOpacity);
|
8 |
-
} else if (event && event.type === 'focusout') {
|
9 |
-
label.css('opacity', options.placeholderOpacity);
|
10 |
-
}
|
11 |
-
|
12 |
-
if (event && event.type !== 'keydown') {
|
13 |
-
toggleLabel(this, label);
|
14 |
-
} else {
|
15 |
-
// Use timeout to catch val() just after the key is pressed
|
16 |
-
// Using keyup is too slow.
|
17 |
-
(function(input) {
|
18 |
-
setTimeout(function() {
|
19 |
-
toggleLabel(input, label);
|
20 |
-
}, 0);
|
21 |
-
})(this);
|
22 |
-
}
|
23 |
-
};
|
24 |
-
|
25 |
-
var toggleLabel = function(input, label) {
|
26 |
-
if ($(input).val()) {
|
27 |
-
label.hide();
|
28 |
-
} else {
|
29 |
-
label.show();
|
30 |
-
}
|
31 |
-
};
|
32 |
-
|
33 |
-
$.fn.stickyPlaceholders = function(options) {
|
34 |
-
var defaults = {
|
35 |
-
wrapperClass: 'sticky-placeholder-wrapper',
|
36 |
-
wrapperDisplay: 'block',
|
37 |
-
labelClass: 'sticky-placeholder-label',
|
38 |
-
placeholderAttr: 'placeholder',
|
39 |
-
dataAttr: 'data-sticky-placeholder',
|
40 |
-
placeholderColor: '#000',
|
41 |
-
placeholderOpacity: 0.5,
|
42 |
-
placeholderFocusOpacity: 0.25
|
43 |
-
};
|
44 |
-
options = $.extend(defaults, options);
|
45 |
-
|
46 |
-
return this.each(function() {
|
47 |
-
var input = $(this),
|
48 |
-
placeholder = input.attr(options.placeholderAttr),
|
49 |
-
wrapper = $(this).wrap('<span class="' + options.wrapperClass + '" />').parent().css({'position':'relative', 'display':options.wrapperDisplay}),
|
50 |
-
label = $('<label class="' + options.labelClass + '" for="' + input.attr('id') + '">' + placeholder + '</label>').appendTo(wrapper),
|
51 |
-
labelStyle;
|
52 |
-
|
53 |
-
// store a reference to each input's label
|
54 |
-
input.data('label', label);
|
55 |
-
|
56 |
-
// remove the placeholder attribute to avoid conflcits
|
57 |
-
input.removeAttr('placeholder');
|
58 |
-
|
59 |
-
// If the dataAttr is set and it's not equal to the placeholderAttr
|
60 |
-
if ( options.dataAttr && options.placeholderAttr !== options.dataAttr ) {
|
61 |
-
input.attr('data-sticky-placeholder', placeholder);
|
62 |
-
}
|
63 |
-
|
64 |
-
labelStyle = {
|
65 |
-
'color': options.placeholderColor,
|
66 |
-
'cursor': 'text',
|
67 |
-
'font-family': input.css('font-family'),
|
68 |
-
'font-weight': input.css('font-weight'),
|
69 |
-
'font-size': input.css('font-size'),
|
70 |
-
'left': parseInt(input.css('border-left-width'), 10) + parseInt(input.css('margin-left'), 10),
|
71 |
-
'line-height': this.currentStyle ? this.currentStyle.lineHeight : input.css('line-height'),
|
72 |
-
// fix for an IE/jQuery bug returning 1px when the line-height doesn't have a unit: http://bugs.jquery.com/ticket/2671
|
73 |
-
'opacity': options.placeholderOpacity,
|
74 |
-
'padding-left': input.css('padding-left'),
|
75 |
-
'padding-top': input.css('padding-top'),
|
76 |
-
'position': 'absolute',
|
77 |
-
'text-transform': input.css('text-transform'),
|
78 |
-
'top': parseInt(input.css('border-top-width'), 10) + parseInt(input.css('margin-top'), 10)
|
79 |
-
};
|
80 |
-
label.css(labelStyle);
|
81 |
-
|
82 |
-
// hide the placeholder if the input already has a value
|
83 |
-
if (input.val()) {
|
84 |
-
label.hide();
|
85 |
-
}
|
86 |
-
|
87 |
-
$(this).bind('keydown input focusin focusout', function(event) {
|
88 |
-
alterParent.call(this, options, event);
|
89 |
-
});
|
90 |
-
|
91 |
-
// prevent click/dblclick from selecting the label text
|
92 |
-
label.bind('mousedown', function(e) {
|
93 |
-
e.preventDefault();
|
94 |
-
});
|
95 |
-
|
96 |
-
// call alterParent initially without an event to set up the wrapper elements
|
97 |
-
alterParent.call(this, options);
|
98 |
-
});
|
99 |
-
};
|
100 |
-
})(jQuery);
|
101 |
-
|
102 |
-
// call the plugin
|
103 |
-
jQuery("[placeholder]").stickyPlaceholders();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/js/slider-control.js
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
// <![CDATA[
|
2 |
-
jQuery(document).ready(function($) {
|
3 |
-
$('#easyoptin-slider').before('<div class="slider-controls"><a href="#" id="prev"><</a> <a href="#" id="next">></a></div>').cycle({
|
4 |
-
timeout: 0 * 1000,
|
5 |
-
fx: 'scrollHorz',
|
6 |
-
next: '#prev',
|
7 |
-
prev: '#next',
|
8 |
-
});
|
9 |
-
});
|
10 |
-
// ]]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/js/tabcontent.js
DELETED
@@ -1,159 +0,0 @@
|
|
1 |
-
//** Tab Content script v2.0- � Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
|
2 |
-
//** Updated Oct 7th, 07 to version 2.0. Contains numerous improvements:
|
3 |
-
// -Added Auto Mode: Script auto rotates the tabs based on an interval, until a tab is explicitly selected
|
4 |
-
// -Ability to expand/contract arbitrary DIVs on the page as the tabbed content is expanded/ contracted
|
5 |
-
// -Ability to dynamically select a tab either based on its position within its peers, or its ID attribute (give the target tab one 1st)
|
6 |
-
// -Ability to set where the CSS classname "selected" get assigned- either to the target tab's link ("A"), or its parent container
|
7 |
-
//** Updated Feb 18th, 08 to version 2.1: Adds a "tabinstance.cycleit(dir)" method to cycle forward or backward between tabs dynamically
|
8 |
-
//** Updated April 8th, 08 to version 2.2: Adds support for expanding a tab using a URL parameter (ie: http://mysite.com/tabcontent.htm?tabinterfaceid=0)
|
9 |
-
|
10 |
-
////NO NEED TO EDIT BELOW////////////////////////
|
11 |
-
|
12 |
-
function ddtabcontent(tabinterfaceid){
|
13 |
-
this.tabinterfaceid=tabinterfaceid //ID of Tab Menu main container
|
14 |
-
this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") //Get all tab links within container
|
15 |
-
this.enabletabpersistence=true
|
16 |
-
this.hottabspositions=[] //Array to store position of tabs that have a "rel" attr defined, relative to all tab links, within container
|
17 |
-
this.currentTabIndex=0 //Index of currently selected hot tab (tab with sub content) within hottabspositions[] array
|
18 |
-
this.subcontentids=[] //Array to store ids of the sub contents ("rel" attr values)
|
19 |
-
this.revcontentids=[] //Array to store ids of arbitrary contents to expand/contact as well ("rev" attr values)
|
20 |
-
this.selectedClassTarget="link" //keyword to indicate which target element to assign "selected" CSS class ("linkparent" or "link")
|
21 |
-
}
|
22 |
-
|
23 |
-
ddtabcontent.getCookie=function(Name){
|
24 |
-
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
|
25 |
-
if (document.cookie.match(re)) //if cookie found
|
26 |
-
return document.cookie.match(re)[0].split("=")[1] //return its value
|
27 |
-
return ""
|
28 |
-
}
|
29 |
-
|
30 |
-
ddtabcontent.setCookie=function(name, value){
|
31 |
-
document.cookie = name+"="+value+";path=/" //cookie value is domain wide (path=/)
|
32 |
-
}
|
33 |
-
|
34 |
-
ddtabcontent.prototype={
|
35 |
-
|
36 |
-
expandit:function(tabid_or_position){ //PUBLIC function to select a tab either by its ID or position(int) within its peers
|
37 |
-
this.cancelautorun() //stop auto cycling of tabs (if running)
|
38 |
-
var tabref=""
|
39 |
-
try{
|
40 |
-
if (typeof tabid_or_position=="string" && document.getElementById(tabid_or_position).getAttribute("rel")) //if specified tab contains "rel" attr
|
41 |
-
tabref=document.getElementById(tabid_or_position)
|
42 |
-
else if (parseInt(tabid_or_position)!=NaN && this.tabs[tabid_or_position].getAttribute("rel")) //if specified tab contains "rel" attr
|
43 |
-
tabref=this.tabs[tabid_or_position]
|
44 |
-
}
|
45 |
-
catch(err){alert("Invalid Tab ID or position entered!")}
|
46 |
-
if (tabref!="") //if a valid tab is found based on function parameter
|
47 |
-
this.expandtab(tabref) //expand this tab
|
48 |
-
},
|
49 |
-
|
50 |
-
cycleit:function(dir, autorun){ //PUBLIC function to move foward or backwards through each hot tab (tabinstance.cycleit('foward/back') )
|
51 |
-
if (dir=="next"){
|
52 |
-
var currentTabIndex=(this.currentTabIndex<this.hottabspositions.length-1)? this.currentTabIndex+1 : 0
|
53 |
-
}
|
54 |
-
else if (dir=="prev"){
|
55 |
-
var currentTabIndex=(this.currentTabIndex>0)? this.currentTabIndex-1 : this.hottabspositions.length-1
|
56 |
-
}
|
57 |
-
if (typeof autorun=="undefined") //if cycleit() is being called by user, versus autorun() function
|
58 |
-
this.cancelautorun() //stop auto cycling of tabs (if running)
|
59 |
-
this.expandtab(this.tabs[this.hottabspositions[currentTabIndex]])
|
60 |
-
},
|
61 |
-
|
62 |
-
setpersist:function(bool){ //PUBLIC function to toggle persistence feature
|
63 |
-
this.enabletabpersistence=bool
|
64 |
-
},
|
65 |
-
|
66 |
-
setselectedClassTarget:function(objstr){ //PUBLIC function to set which target element to assign "selected" CSS class ("linkparent" or "link")
|
67 |
-
this.selectedClassTarget=objstr || "link"
|
68 |
-
},
|
69 |
-
|
70 |
-
getselectedClassTarget:function(tabref){ //Returns target element to assign "selected" CSS class to
|
71 |
-
return (this.selectedClassTarget==("linkparent".toLowerCase()))? tabref.parentNode : tabref
|
72 |
-
},
|
73 |
-
|
74 |
-
urlparamselect:function(tabinterfaceid){
|
75 |
-
var result=window.location.search.match(new RegExp(tabinterfaceid+"=(\\d+)", "i")) //check for "?tabinterfaceid=2" in URL
|
76 |
-
return (result==null)? null : parseInt(RegExp.$1) //returns null or index, where index (int) is the selected tab's index
|
77 |
-
},
|
78 |
-
|
79 |
-
expandtab:function(tabref){
|
80 |
-
var subcontentid=tabref.getAttribute("rel") //Get id of subcontent to expand
|
81 |
-
//Get "rev" attr as a string of IDs in the format ",john,george,trey,etc," to easily search through
|
82 |
-
var associatedrevids=(tabref.getAttribute("rev"))? ","+tabref.getAttribute("rev").replace(/\s+/, "")+"," : ""
|
83 |
-
this.expandsubcontent(subcontentid)
|
84 |
-
this.expandrevcontent(associatedrevids)
|
85 |
-
for (var i=0; i<this.tabs.length; i++){ //Loop through all tabs, and assign only the selected tab the CSS class "selected"
|
86 |
-
this.getselectedClassTarget(this.tabs[i]).className=(this.tabs[i].getAttribute("rel")==subcontentid)? "selected" : ""
|
87 |
-
}
|
88 |
-
if (this.enabletabpersistence) //if persistence enabled, save selected tab position(int) relative to its peers
|
89 |
-
ddtabcontent.setCookie(this.tabinterfaceid, tabref.tabposition)
|
90 |
-
this.setcurrenttabindex(tabref.tabposition) //remember position of selected tab within hottabspositions[] array
|
91 |
-
},
|
92 |
-
|
93 |
-
expandsubcontent:function(subcontentid){
|
94 |
-
for (var i=0; i<this.subcontentids.length; i++){
|
95 |
-
var subcontent=document.getElementById(this.subcontentids[i]) //cache current subcontent obj (in for loop)
|
96 |
-
subcontent.style.display=(subcontent.id==subcontentid)? "block" : "none" //"show" or hide sub content based on matching id attr value
|
97 |
-
}
|
98 |
-
},
|
99 |
-
|
100 |
-
expandrevcontent:function(associatedrevids){
|
101 |
-
var allrevids=this.revcontentids
|
102 |
-
for (var i=0; i<allrevids.length; i++){ //Loop through rev attributes for all tabs in this tab interface
|
103 |
-
//if any values stored within associatedrevids matches one within allrevids, expand that DIV, otherwise, contract it
|
104 |
-
document.getElementById(allrevids[i]).style.display=(associatedrevids.indexOf(","+allrevids[i]+",")!=-1)? "block" : "none"
|
105 |
-
}
|
106 |
-
},
|
107 |
-
|
108 |
-
setcurrenttabindex:function(tabposition){ //store current position of tab (within hottabspositions[] array)
|
109 |
-
for (var i=0; i<this.hottabspositions.length; i++){
|
110 |
-
if (tabposition==this.hottabspositions[i]){
|
111 |
-
this.currentTabIndex=i
|
112 |
-
break
|
113 |
-
}
|
114 |
-
}
|
115 |
-
},
|
116 |
-
|
117 |
-
autorun:function(){ //function to auto cycle through and select tabs based on a set interval
|
118 |
-
this.cycleit('next', true)
|
119 |
-
},
|
120 |
-
|
121 |
-
cancelautorun:function(){
|
122 |
-
if (typeof this.autoruntimer!="undefined")
|
123 |
-
clearInterval(this.autoruntimer)
|
124 |
-
},
|
125 |
-
|
126 |
-
init:function(automodeperiod){
|
127 |
-
var persistedtab=ddtabcontent.getCookie(this.tabinterfaceid) //get position of persisted tab (applicable if persistence is enabled)
|
128 |
-
var selectedtab=-1 //Currently selected tab index (-1 meaning none)
|
129 |
-
var selectedtabfromurl=this.urlparamselect(this.tabinterfaceid) //returns null or index from: tabcontent.htm?tabinterfaceid=index
|
130 |
-
this.automodeperiod=automodeperiod || 0
|
131 |
-
for (var i=0; i<this.tabs.length; i++){
|
132 |
-
this.tabs[i].tabposition=i //remember position of tab relative to its peers
|
133 |
-
if (this.tabs[i].getAttribute("rel")){
|
134 |
-
var tabinstance=this
|
135 |
-
this.hottabspositions[this.hottabspositions.length]=i //store position of "hot" tab ("rel" attr defined) relative to its peers
|
136 |
-
this.subcontentids[this.subcontentids.length]=this.tabs[i].getAttribute("rel") //store id of sub content ("rel" attr value)
|
137 |
-
this.tabs[i].onclick=function(){
|
138 |
-
tabinstance.expandtab(this)
|
139 |
-
tabinstance.cancelautorun() //stop auto cycling of tabs (if running)
|
140 |
-
return false
|
141 |
-
}
|
142 |
-
if (this.tabs[i].getAttribute("rev")){ //if "rev" attr defined, store each value within "rev" as an array element
|
143 |
-
this.revcontentids=this.revcontentids.concat(this.tabs[i].getAttribute("rev").split(/\s*,\s*/))
|
144 |
-
}
|
145 |
-
if (selectedtabfromurl==i || this.enabletabpersistence && selectedtab==-1 && parseInt(persistedtab)==i || !this.enabletabpersistence && selectedtab==-1 && this.getselectedClassTarget(this.tabs[i]).className=="selected"){
|
146 |
-
selectedtab=i //Selected tab index, if found
|
147 |
-
}
|
148 |
-
}
|
149 |
-
} //END for loop
|
150 |
-
if (selectedtab!=-1) //if a valid default selected tab index is found
|
151 |
-
this.expandtab(this.tabs[selectedtab]) //expand selected tab (either from URL parameter, persistent feature, or class="selected" class)
|
152 |
-
else //if no valid default selected index found
|
153 |
-
this.expandtab(this.tabs[this.hottabspositions[0]]) //Just select first tab that contains a "rel" attr
|
154 |
-
if (parseInt(this.automodeperiod)>500 && this.hottabspositions.length>1){
|
155 |
-
this.autoruntimer=setInterval(function(){tabinstance.autorun()}, this.automodeperiod)
|
156 |
-
}
|
157 |
-
} //END int() function
|
158 |
-
|
159 |
-
} //END Prototype assignment
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/js/tinybox.js
DELETED
@@ -1,134 +0,0 @@
|
|
1 |
-
TINY={};
|
2 |
-
|
3 |
-
TINY.box=function(){
|
4 |
-
var j,m,b,g,v,p=0;
|
5 |
-
return{
|
6 |
-
show:function(o){
|
7 |
-
v={opacity:70,close:1,animate:1,fixed:1,mask:1,maskid:'',boxid:'',topsplit:2,url:0,post:0,height:0,width:0,html:0,iframe:0};
|
8 |
-
for(s in o){v[s]=o[s]}
|
9 |
-
if(!p){
|
10 |
-
j=document.createElement('div'); j.className='tbox';
|
11 |
-
p=document.createElement('div'); p.className='tinner';
|
12 |
-
b=document.createElement('div'); b.className='tcontent';
|
13 |
-
m=document.createElement('div'); m.className='tmask';
|
14 |
-
g=document.createElement('div'); g.className='tclose'; g.v=0;
|
15 |
-
document.body.appendChild(m); document.body.appendChild(j); j.appendChild(p); p.appendChild(b);
|
16 |
-
m.onclick=g.onclick=TINY.box.hide; window.onresize=TINY.box.resize
|
17 |
-
}else{
|
18 |
-
j.style.display='none'; clearTimeout(p.ah); if(g.v){p.removeChild(g); g.v=0}
|
19 |
-
}
|
20 |
-
p.id=v.boxid; m.id=v.maskid; j.style.position=v.fixed?'fixed':'absolute';
|
21 |
-
if(v.html&&!v.animate){
|
22 |
-
p.style.backgroundImage='none'; b.innerHTML=v.html; b.style.display='';
|
23 |
-
p.style.width=v.width?v.width+'px':'auto'; p.style.height=v.height?v.height+'px':'auto'
|
24 |
-
}else{
|
25 |
-
b.style.display='none';
|
26 |
-
if(!v.animate&&v.width&&v.height){
|
27 |
-
p.style.width=v.width+'px'; p.style.height=v.height+'px'
|
28 |
-
}else{
|
29 |
-
p.style.width=p.style.height='100px'
|
30 |
-
}
|
31 |
-
}
|
32 |
-
if(v.mask){this.mask(); this.alpha(m,1,v.opacity)}else{this.alpha(j,1,100)}
|
33 |
-
if(v.autohide){p.ah=setTimeout(TINY.box.hide,1000*v.autohide)}else{document.onkeyup=TINY.box.esc}
|
34 |
-
},
|
35 |
-
fill:function(c,u,k,a,w,h){
|
36 |
-
if(u){
|
37 |
-
if(v.image){
|
38 |
-
var i=new Image(); i.onload=function(){w=w||i.width; h=h||i.height; TINY.box.psh(i,a,w,h)}; i.src=v.image
|
39 |
-
}else if(v.iframe){
|
40 |
-
this.psh('<iframe src="'+v.iframe+'" width="'+v.width+'" frameborder="0" height="'+v.height+'"></iframe>',a,w,h)
|
41 |
-
}else{
|
42 |
-
var x=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHTTP');
|
43 |
-
x.onreadystatechange=function(){
|
44 |
-
if(x.readyState==4&&x.status==200){p.style.backgroundImage=''; TINY.box.psh(x.responseText,a,w,h)}
|
45 |
-
};
|
46 |
-
if(k){
|
47 |
-
x.open('POST',c,true); x.setRequestHeader('Content-type','application/x-www-form-urlencoded'); x.send(k)
|
48 |
-
}else{
|
49 |
-
x.open('GET',c,true); x.send(null)
|
50 |
-
}
|
51 |
-
}
|
52 |
-
}else{
|
53 |
-
this.psh(c,a,w,h)
|
54 |
-
}
|
55 |
-
},
|
56 |
-
psh:function(c,a,w,h){
|
57 |
-
if(typeof c=='object'){b.appendChild(c)}else{b.innerHTML=c}
|
58 |
-
var x=p.style.width, y=p.style.height;
|
59 |
-
if(!w||!h){
|
60 |
-
p.style.width=w?w+'px':''; p.style.height=h?h+'px':''; b.style.display='';
|
61 |
-
if(!h){h=parseInt(b.offsetHeight)}
|
62 |
-
if(!w){w=parseInt(b.offsetWidth)}
|
63 |
-
b.style.display='none'
|
64 |
-
}
|
65 |
-
p.style.width=x; p.style.height=y;
|
66 |
-
this.size(w,h,a)
|
67 |
-
},
|
68 |
-
esc:function(e){e=e||window.event; if(e.keyCode==27){TINY.box.hide()}},
|
69 |
-
hide:function(){TINY.box.alpha(j,-1,0,3); document.onkeypress=null; if(v.closejs){v.closejs()}},
|
70 |
-
resize:function(){TINY.box.pos(); TINY.box.mask()},
|
71 |
-
mask:function(){m.style.height=this.total(1)+'px'; m.style.width=this.total(0)+'px'},
|
72 |
-
pos:function(){
|
73 |
-
var t;
|
74 |
-
if(typeof v.top!='undefined'){t=v.top}else{t=(this.height()/v.topsplit)-(j.offsetHeight/2); t=t<20?20:t}
|
75 |
-
if(!v.fixed&&!v.top){t+=this.top()}
|
76 |
-
j.style.top=t+'px';
|
77 |
-
j.style.left=typeof v.left!='undefined'?v.left+'px':(this.width()/2)-(j.offsetWidth/2)+'px'
|
78 |
-
},
|
79 |
-
alpha:function(e,d,a){
|
80 |
-
clearInterval(e.ai);
|
81 |
-
if(d){e.style.opacity=0; e.style.filter='alpha(opacity=0)'; e.style.display='block'; TINY.box.pos()}
|
82 |
-
e.ai=setInterval(function(){TINY.box.ta(e,a,d)},20)
|
83 |
-
},
|
84 |
-
ta:function(e,a,d){
|
85 |
-
var o=Math.round(e.style.opacity*100);
|
86 |
-
if(o==a){
|
87 |
-
clearInterval(e.ai);
|
88 |
-
if(d==-1){
|
89 |
-
e.style.display='none';
|
90 |
-
e==j?TINY.box.alpha(m,-1,0,2):b.innerHTML=p.style.backgroundImage=''
|
91 |
-
}else{
|
92 |
-
if(e==m){
|
93 |
-
this.alpha(j,1,100)
|
94 |
-
}else{
|
95 |
-
j.style.filter='';
|
96 |
-
TINY.box.fill(v.html||v.url,v.url||v.iframe||v.image,v.post,v.animate,v.width,v.height)
|
97 |
-
}
|
98 |
-
}
|
99 |
-
}else{
|
100 |
-
var n=a-Math.floor(Math.abs(a-o)*.5)*d;
|
101 |
-
e.style.opacity=n/100; e.style.filter='alpha(opacity='+n+')'
|
102 |
-
}
|
103 |
-
},
|
104 |
-
size:function(w,h,a){
|
105 |
-
if(a){
|
106 |
-
clearInterval(p.si); var wd=parseInt(p.style.width)>w?-1:1, hd=parseInt(p.style.height)>h?-1:1;
|
107 |
-
p.si=setInterval(function(){TINY.box.ts(w,wd,h,hd)},20)
|
108 |
-
}else{
|
109 |
-
p.style.backgroundImage='none'; if(v.close){p.appendChild(g); g.v=1}
|
110 |
-
p.style.width=w+'px'; p.style.height=h+'px'; b.style.display=''; this.pos();
|
111 |
-
if(v.openjs){v.openjs()}
|
112 |
-
}
|
113 |
-
},
|
114 |
-
ts:function(w,wd,h,hd){
|
115 |
-
var cw=parseInt(p.style.width), ch=parseInt(p.style.height);
|
116 |
-
if(cw==w&&ch==h){
|
117 |
-
clearInterval(p.si); p.style.backgroundImage='none'; b.style.display='block'; if(v.close){p.appendChild(g); g.v=1}
|
118 |
-
if(v.openjs){v.openjs()}
|
119 |
-
}else{
|
120 |
-
if(cw!=w){p.style.width=(w-Math.floor(Math.abs(w-cw)*.6)*wd)+'px'}
|
121 |
-
if(ch!=h){p.style.height=(h-Math.floor(Math.abs(h-ch)*.6)*hd)+'px'}
|
122 |
-
this.pos()
|
123 |
-
}
|
124 |
-
},
|
125 |
-
top:function(){return document.documentElement.scrollTop||document.body.scrollTop},
|
126 |
-
width:function(){return self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},
|
127 |
-
height:function(){return self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},
|
128 |
-
total:function(d){
|
129 |
-
var b=document.body, e=document.documentElement;
|
130 |
-
return d?Math.max(Math.max(b.scrollHeight,e.scrollHeight),Math.max(b.clientHeight,e.clientHeight)):
|
131 |
-
Math.max(Math.max(b.scrollWidth,e.scrollWidth),Math.max(b.clientWidth,e.clientWidth))
|
132 |
-
}
|
133 |
-
}
|
134 |
-
}();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/languages/optinforms-es_ES.mo
DELETED
Binary file
|
trunk/languages/optinforms-sr_RS.mo
DELETED
Binary file
|
trunk/languages/optinforms-tr_TR.mo
DELETED
Binary file
|
trunk/optin-forms.php
DELETED
@@ -1,394 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Optin Forms
|
4 |
-
Plugin URI: http://fancythemes.com/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: FancyThemes
|
7 |
-
Version: 1.2.6
|
8 |
-
Author URI: http://www.fancythemes.com
|
9 |
-
Text Domain: optin-forms
|
10 |
-
Domain Path: /languages/
|
11 |
-
License:
|
12 |
-
Copyright 2016 FancyThemes.com
|
13 |
-
|
14 |
-
This program is free software; you can redistribute it and/or modify
|
15 |
-
it under the terms of the GNU General Public License, version 2, as
|
16 |
-
published by the Free Software Foundation.
|
17 |
-
|
18 |
-
This program is distributed in the hope that it will be useful,
|
19 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
-
GNU General Public License for more details.
|
22 |
-
|
23 |
-
You should have received a copy of the GNU General Public License
|
24 |
-
along with this program; if not, write to the Free Software
|
25 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
26 |
-
*/
|
27 |
-
|
28 |
-
// Include our registration settings
|
29 |
-
include( plugin_dir_path( __FILE__ ) . 'includes/register-settings.php');
|
30 |
-
// Include our regular functions
|
31 |
-
include( plugin_dir_path( __FILE__ ) . 'includes/functions.php');
|
32 |
-
// Include our form functions
|
33 |
-
include( plugin_dir_path( __FILE__ ) . 'includes/functions-form-1.php');
|
34 |
-
include( plugin_dir_path( __FILE__ ) . 'includes/functions-form-2.php');
|
35 |
-
include( plugin_dir_path( __FILE__ ) . 'includes/functions-form-3.php');
|
36 |
-
include( plugin_dir_path( __FILE__ ) . 'includes/functions-form-4.php');
|
37 |
-
include( plugin_dir_path( __FILE__ ) . 'includes/functions-form-5.php');
|
38 |
-
include( plugin_dir_path( __FILE__ ) . 'includes/functions-forms.php');
|
39 |
-
|
40 |
-
class Optin_Forms {
|
41 |
-
|
42 |
-
/**
|
43 |
-
* Constructor function
|
44 |
-
*
|
45 |
-
* @since 1.2.5
|
46 |
-
* @access public
|
47 |
-
*/
|
48 |
-
public function __construct() {
|
49 |
-
add_action( 'plugins_loaded', array( $this, 'optinforms_init' ) );
|
50 |
-
add_action( 'admin_menu', array( $this, 'optinforms_menu' ) );
|
51 |
-
add_action( 'wp_enqueue_scripts', array( $this, 'optinforms_scripts' ) );
|
52 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'optinforms_load_additional_scripts' ) );
|
53 |
-
|
54 |
-
|
55 |
-
}
|
56 |
-
|
57 |
-
/**
|
58 |
-
* Adds translation to plugin
|
59 |
-
*/
|
60 |
-
public function optinforms_init() {
|
61 |
-
$plugin_dir = basename(dirname(__FILE__));
|
62 |
-
load_plugin_textdomain( 'optin-forms', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
63 |
-
}
|
64 |
-
|
65 |
-
/**
|
66 |
-
* Adds Optin Forms to WordPress dashboard menu
|
67 |
-
*/
|
68 |
-
public function optinforms_menu() {
|
69 |
-
// Since 1.1.2 added a menu position decimal fix to prevent conflict with other themes using 31, such as Thesis Theme
|
70 |
-
// @http://gabrielharper.com/blog/2012/08/wordpress-admin-menu-positioning-conflicts/
|
71 |
-
$submenu = add_menu_page(__('Optin Forms','optin-forms'), __('Optin Forms','optin-forms'), 'manage_options', 'optinforms', array( $this, 'optinforms_main_page' ), plugin_dir_url( __FILE__ ) . '/images/icon.png', '30.1');
|
72 |
-
|
73 |
-
// We want our JS and CSS loaded on our admin pages only, so let's just load them for now
|
74 |
-
add_action( 'load-' . $submenu, array( $this, 'optinforms_load_admin_scripts' ) );
|
75 |
-
}
|
76 |
-
|
77 |
-
/**
|
78 |
-
* Enqueue our CSS and JS on Optin Forms admin pages only
|
79 |
-
*/
|
80 |
-
public function optinforms_load_admin_scripts() {
|
81 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'optinforms_admin_scripts' ) );
|
82 |
-
}
|
83 |
-
|
84 |
-
/**
|
85 |
-
* Adds CSS and JS to admin head, but just for our admin pages (see optinforms_load_admin_scripts above!)
|
86 |
-
*/
|
87 |
-
public function optinforms_admin_scripts() {
|
88 |
-
wp_enqueue_style('optinforms-admin-stylesheet', plugins_url('/css/optinforms-admin.css', __FILE__ ), array('optinforms-googleFont'));
|
89 |
-
wp_enqueue_script('tabcontent', plugins_url('/js/tabcontent.js', __FILE__ ));
|
90 |
-
wp_enqueue_style('wp-color-picker');
|
91 |
-
wp_enqueue_script('optinforms-color', plugins_url('/js/optinforms-color.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
|
92 |
-
wp_enqueue_script('placeholder', plugins_url('/js/placeholder.js', __FILE__ ));
|
93 |
-
wp_enqueue_script('toggle', plugins_url('/js/custom.js', __FILE__ ));
|
94 |
-
wp_enqueue_script('jquery-ui-slider');
|
95 |
-
wp_register_style('optinforms-googleFont', '//fonts.googleapis.com/css?family=Share+Tech|Droid+Sans|Lobster|Fenix|Unkempt|Flavors|Viga|Damion|Oleo+Script|Racing+Sans+One|Nixie+One|Fredoka+One|Open+Sans|Overlock+SC|Bubbler+One|Contrail+One|Gochi+Hand|Roboto+Condensed|Russo+One|Cinzel+Decorative|News+Cycle|Marcellus+SC|Chewy|Quicksand|Sanchez|Signika+Negative|Gloria+Hallelujah|Grand+Hotel|Droid+Serif|Englebert|Oswald|Pacifico|Titan+One|Shadows+Into+Light|Dancing+Script|Luckiest+Guy|Parisienne|Coming+Soon|Baumans|Belgrano');
|
96 |
-
|
97 |
-
global $optinforms_forms;
|
98 |
-
|
99 |
-
// Have any custom form designs been registered?
|
100 |
-
if ( is_array( $optinforms_forms ) ) {
|
101 |
-
|
102 |
-
// Loops through registered form designs.
|
103 |
-
foreach ( $optinforms_forms as $class_name => $design ) {
|
104 |
-
|
105 |
-
// Does the form have an stylesheet URL specified?
|
106 |
-
if ( !empty( $design->optinform['stylesheet_url'] ) ) {
|
107 |
-
wp_enqueue_style( $class_name, $design->optinform['stylesheet_url'] );
|
108 |
-
}
|
109 |
-
}
|
110 |
-
}
|
111 |
-
}
|
112 |
-
|
113 |
-
/**
|
114 |
-
* Adds our CSS and JS to wp_head
|
115 |
-
*/
|
116 |
-
public function optinforms_scripts() {
|
117 |
-
wp_enqueue_script('jquery');
|
118 |
-
wp_enqueue_style('optinforms-stylesheet', plugins_url('/css/optinforms.css', __FILE__ ), array('optinforms-googleFont'));
|
119 |
-
wp_enqueue_script('placeholder', plugins_url('/js/placeholder.js', __FILE__ ));
|
120 |
-
wp_register_style('optinforms-googleFont', optinforms_used_fonts());
|
121 |
-
|
122 |
-
global $optinforms_forms;
|
123 |
-
|
124 |
-
// Have any custom form designs been registered?
|
125 |
-
if ( is_array( $optinforms_forms ) ) {
|
126 |
-
|
127 |
-
// Loops through registered form designs.
|
128 |
-
foreach ( $optinforms_forms as $class_name => $design ) {
|
129 |
-
|
130 |
-
// Does the form have an stylesheet URL specified?
|
131 |
-
if ( !empty( $design->optinform['stylesheet_url'] ) ) {
|
132 |
-
wp_enqueue_style( $class_name, $design->optinform['stylesheet_url'] );
|
133 |
-
}
|
134 |
-
}
|
135 |
-
}
|
136 |
-
}
|
137 |
-
|
138 |
-
/**
|
139 |
-
* Add additional scripts to admin head on all admin pages (so supportbox slider will work on all pages!)
|
140 |
-
*/
|
141 |
-
public function optinforms_load_additional_scripts(){
|
142 |
-
wp_enqueue_style('optinforms-admin-slider-stylesheet', plugins_url('/css/optinforms-admin-slider.css', __FILE__ ));
|
143 |
-
wp_enqueue_script('jquery-ui-slider');
|
144 |
-
}
|
145 |
-
|
146 |
-
|
147 |
-
/**
|
148 |
-
* Displays Optin Forms admin page.
|
149 |
-
*/
|
150 |
-
public function optinforms_main_page() {
|
151 |
-
global $optinforms_forms;
|
152 |
-
|
153 |
-
{ ?>
|
154 |
-
<div class="wrap">
|
155 |
-
<h2><?php echo __('Optin Forms', 'optin-forms'); ?></h2>
|
156 |
-
<div id="icon-optinforms" class="icon32">
|
157 |
-
</div><!--icon-32-->
|
158 |
-
<h3 class="title"><?php echo optinforms_menu_tabs(); ?></h3>
|
159 |
-
</div><!--wrap-->
|
160 |
-
|
161 |
-
<?php echo optinforms_configuration(); ?>
|
162 |
-
|
163 |
-
<?php if( isset($_GET['settings-updated']) ) { ?>
|
164 |
-
<div id="message" class="updated">
|
165 |
-
<p><strong><?php _e('Settings updated') ?></strong></p>
|
166 |
-
</div>
|
167 |
-
<?php } ?>
|
168 |
-
|
169 |
-
<div id="optinforms">
|
170 |
-
<form method="post" action="options.php" id="frm1">
|
171 |
-
<?php settings_fields( 'optinforms-settings-group' ); ?>
|
172 |
-
|
173 |
-
<div id="optinforms-email-solution-tab" class="tabcontent">
|
174 |
-
<div class="optinforms-container-left">
|
175 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/options-email-solution.php'); ?>
|
176 |
-
</div><!--optinforms-container-left-->
|
177 |
-
<div class="optinforms-container-right">
|
178 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/sidebar.php'); ?>
|
179 |
-
</div><!--optinforms-container-right-->
|
180 |
-
<div class="clear"></div>
|
181 |
-
</div><!--optinforms-email-solution-tab-->
|
182 |
-
|
183 |
-
<div id="optinforms-posts-tab" class="tabcontent">
|
184 |
-
<div class="optinforms-container-left">
|
185 |
-
<div class="optiongroup">
|
186 |
-
<p><?php echo __('Add a beautiful optin form to your posts, custom post types and pages. Include the form on your website with a simple mouse-click, or use the shortcode to add it to specific posts and pages.', 'optin-forms'); ?></p>
|
187 |
-
<div class="optionleft">
|
188 |
-
<label for="optinforms_form_design" class="nopointer"><?php echo __('Form design', 'optin-forms'); ?></label>
|
189 |
-
</div><!--optionleft-->
|
190 |
-
<div class="optionmiddle">
|
191 |
-
<select name="optinforms_form_design" id="optinforms_form_design">
|
192 |
-
<option value="optinforms_form_design_option1" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option1') { echo 'selected="selected"'; } ?>>01</option>
|
193 |
-
<option value="optinforms_form_design_option2" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option2') { echo 'selected="selected"'; } ?>>02</option>
|
194 |
-
<option value="optinforms_form_design_option3" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option3') { echo 'selected="selected"'; } ?>>03</option>
|
195 |
-
<option value="optinforms_form_design_option4" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option4') { echo 'selected="selected"'; } ?>>04</option>
|
196 |
-
<option value="optinforms_form_design_option5" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option5') { echo 'selected="selected"'; } ?>>05</option>
|
197 |
-
<?php
|
198 |
-
|
199 |
-
// Have any custom form designs been registered?
|
200 |
-
if ( is_array( $optinforms_forms ) ) {
|
201 |
-
|
202 |
-
// Gets the saved form design ID.
|
203 |
-
$saved_design = get_option( 'optinforms_form_design' );
|
204 |
-
|
205 |
-
// Loops through registered form designs.
|
206 |
-
foreach ( $optinforms_forms as $class_name => $design ) {
|
207 |
-
|
208 |
-
// Does the form have an ID and a title?
|
209 |
-
if ( !empty( $design->optinform['id'] ) && !empty( $design->optinform['title'] ) ) {
|
210 |
-
echo '<option value="' . $design->optinform['id'] . '" ' . selected( $saved_design, $design->optinform['id'], false ) . '>' . $design->optinform['title'] . '</option>';
|
211 |
-
|
212 |
-
}
|
213 |
-
}
|
214 |
-
}
|
215 |
-
?>
|
216 |
-
</select>
|
217 |
-
<script type="text/javascript">
|
218 |
-
// document.getElementById('optinforms_form_design').onchange = function() {
|
219 |
-
// var i = 1;
|
220 |
-
// var myDiv = document.getElementById("optinforms_form_design_option" + i);
|
221 |
-
// while(myDiv) {
|
222 |
-
// myDiv.style.display = 'none';
|
223 |
-
// myDiv = document.getElementById("optinforms_form_design_option" + ++i);
|
224 |
-
// }
|
225 |
-
// document.getElementById(this.value).style.display = 'block';
|
226 |
-
// };
|
227 |
-
</script>
|
228 |
-
</div><!--optionmiddle-->
|
229 |
-
<div class="optionlast">
|
230 |
-
|
231 |
-
</div><!--optionlast-->
|
232 |
-
<div class="clear"></div>
|
233 |
-
|
234 |
-
</div><!--optiongroup-->
|
235 |
-
|
236 |
-
<div id="optinforms-design-backend-wrap" class="optiongroup">
|
237 |
-
<div id="optinforms_form_design_option1" <?php if (get_option('optinforms_form_design')== '' || get_option('optinforms_form_design')== 'optinforms_form_design_option1') { echo 'style="display:block;"'; } ?>>
|
238 |
-
|
239 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/preview-form-1.php'); ?>
|
240 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/options-form-1.php'); ?>
|
241 |
-
|
242 |
-
</div><!--optinforms_form_design_option1-->
|
243 |
-
<div id="optinforms_form_design_option2" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option2') { echo 'style="display:block;"'; } ?>>
|
244 |
-
|
245 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/preview-form-2.php'); ?>
|
246 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/options-form-2.php'); ?>
|
247 |
-
|
248 |
-
</div><!--optinforms_form_design_option2-->
|
249 |
-
<div id="optinforms_form_design_option3" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option3') { echo 'style="display:block;"'; } ?>>
|
250 |
-
|
251 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/preview-form-3.php'); ?>
|
252 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/options-form-3.php'); ?>
|
253 |
-
|
254 |
-
</div><!--optinforms_form_design_option3-->
|
255 |
-
<div id="optinforms_form_design_option4" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option4') { echo 'style="display:block;"'; } ?>>
|
256 |
-
|
257 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/preview-form-4.php'); ?>
|
258 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/options-form-4.php'); ?>
|
259 |
-
|
260 |
-
</div><!--optinforms_form_design_option4-->
|
261 |
-
<div id="optinforms_form_design_option5" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option5') { echo 'style="display:block;"'; } ?>>
|
262 |
-
|
263 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/preview-form-5.php'); ?>
|
264 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/options-form-5.php'); ?>
|
265 |
-
|
266 |
-
</div><!--optinforms_form_design_option5-->
|
267 |
-
<?php
|
268 |
-
|
269 |
-
// Have any custom form designs been registered?
|
270 |
-
if ( is_array( $optinforms_forms ) ) {
|
271 |
-
|
272 |
-
// Loops through registered form designs.
|
273 |
-
foreach ( $optinforms_forms as $class_name => $design ) {
|
274 |
-
|
275 |
-
// Does the form have an ID and a title?
|
276 |
-
if ( !empty( $design->optinform['id'] ) && !empty( $design->optinform['title'] ) ) {
|
277 |
-
$display = $saved_design == $design->optinform['id'] ? 'style="display:block;"' : 'style="display:none;"';
|
278 |
-
echo '<div id="' . $design->optinform['id'] . '" ' . $display . '>';
|
279 |
-
|
280 |
-
// Displays the form preview if available.
|
281 |
-
if ( method_exists( $design, 'get_optin_form' ) ) {
|
282 |
-
echo $design->get_optin_form();
|
283 |
-
}
|
284 |
-
|
285 |
-
// Displays the form options if available.
|
286 |
-
if ( file_exists( $design->optinform['options_url'] ) ) {
|
287 |
-
include( $design->optinform['options_url'] );
|
288 |
-
}
|
289 |
-
|
290 |
-
echo '</div>';
|
291 |
-
|
292 |
-
|
293 |
-
}
|
294 |
-
}
|
295 |
-
}
|
296 |
-
?>
|
297 |
-
</div><!--optiongroup-->
|
298 |
-
|
299 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/options-form-functionality.php'); ?>
|
300 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/options-form-placement.php'); ?>
|
301 |
-
|
302 |
-
</div><!--optinforms-container-left-->
|
303 |
-
<div class="optinforms-container-right">
|
304 |
-
<?php include( plugin_dir_path( __FILE__ ) . 'includes/sidebar.php'); ?>
|
305 |
-
</div><!--optinforms-container-right-->
|
306 |
-
<div class="clear"></div>
|
307 |
-
</div><!--optinforms-posts-tab-->
|
308 |
-
|
309 |
-
<script type="text/javascript">
|
310 |
-
var wpthumbs=new ddtabcontent("optinforms-menu-tabs") //enter ID of Tab Container
|
311 |
-
wpthumbs.setpersist(true) //toogle persistence of the tabs' state
|
312 |
-
wpthumbs.setselectedClassTarget("link") //"link" or "linkparent"
|
313 |
-
wpthumbs.init()
|
314 |
-
</script>
|
315 |
-
|
316 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
317 |
-
</form>
|
318 |
-
|
319 |
-
</div><!--optinforms-->
|
320 |
-
|
321 |
-
<?php }
|
322 |
-
}
|
323 |
-
}
|
324 |
-
$optin_forms = new Optin_Forms();
|
325 |
-
|
326 |
-
|
327 |
-
if ( !function_exists( 'register_optin_form') ) {
|
328 |
-
/**
|
329 |
-
* Registers optin forms
|
330 |
-
*
|
331 |
-
* Adds new forms to the $optinforms_forms array.
|
332 |
-
*
|
333 |
-
* @param $class_name string Name of the form class being registered.
|
334 |
-
*/
|
335 |
-
function register_optin_form( $class_name ) {
|
336 |
-
global $optinforms_forms;
|
337 |
-
|
338 |
-
// Adds form to global forms array.
|
339 |
-
$optinforms_forms[$class_name] = new $class_name;
|
340 |
-
}
|
341 |
-
}
|
342 |
-
|
343 |
-
|
344 |
-
if ( !function_exists( 'optinforms_get_setting') ) {
|
345 |
-
/**
|
346 |
-
* Gets saved form setting
|
347 |
-
*
|
348 |
-
* Falls back on default form setting if there is no saved value.
|
349 |
-
*
|
350 |
-
* @param string $setting_id The ID of the setting to retrieve.
|
351 |
-
* @param string $design_class The class name of the design class that holds the default setting.
|
352 |
-
* @return string $setting The saved setting (or the default, if no setting is saved).
|
353 |
-
*/
|
354 |
-
function optinforms_get_setting( $setting_id, $design_class = '' ) {
|
355 |
-
|
356 |
-
// Gets the saved setting from the database.
|
357 |
-
$setting = get_option( $setting_id );
|
358 |
-
|
359 |
-
// Is there no saved setting, and was a design class name provided?
|
360 |
-
if ( empty( $setting ) && !empty( $design_class ) ) {
|
361 |
-
$setting = optinforms_get_default_setting( $setting_id, $design_class );
|
362 |
-
}
|
363 |
-
|
364 |
-
return $setting;
|
365 |
-
}
|
366 |
-
}
|
367 |
-
|
368 |
-
|
369 |
-
if ( !function_exists( 'optinforms_get_default_setting') ) {
|
370 |
-
/**
|
371 |
-
* Gets default form setting
|
372 |
-
*
|
373 |
-
* @param string $setting_id The ID of the setting to retrieve.
|
374 |
-
* @param string $design_class The class name of the design class that holds the default setting.
|
375 |
-
* @return string $setting The saved setting (or the default, if no setting is saved).
|
376 |
-
*/
|
377 |
-
function optinforms_get_default_setting( $setting_id, $design_class = '' ) {
|
378 |
-
|
379 |
-
global $optinforms_forms;
|
380 |
-
$setting = '';
|
381 |
-
|
382 |
-
// Is there a default setting stored in the design class?
|
383 |
-
if ( !empty( $optinforms_forms[$design_class]->defaults[$setting_id] ) ) {
|
384 |
-
$setting = $optinforms_forms[$design_class]->defaults[$setting_id];
|
385 |
-
}
|
386 |
-
|
387 |
-
return $setting;
|
388 |
-
}
|
389 |
-
}
|
390 |
-
|
391 |
-
// Allows for translation of plugin description
|
392 |
-
$plugin_header_translate = array(
|
393 |
-
__( 'Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.', 'optin-forms' ),
|
394 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/readme.txt
DELETED
@@ -1,158 +0,0 @@
|
|
1 |
-
=== Optin Forms ===
|
2 |
-
Contributors: brs, FancyThemes
|
3 |
-
Tags: optin, form, forms, aweber, email subscriber, icontact, mailchimp, getresponse, mad mimi, newsletter, mailchimp forms, mailchimp integrations, mailchimp plugin, getresponse forms, subscribe, aweber forms, after post optin form, after post optin form plugin, lead generation, mobile optin forms, mobile optins, sidebar form, sidebar optin form, wordpress after post optin form, wordpress lead generation, wordpress popups, optin locker, social locker, enter email to download, interspire, email marketer, email marketing, email, e-mail, list, list building, opt-in, newsletter, email list, autoresponder, popup, pop-up, mailing, mailing list, mail, webform, newsletter plugin, optin plugin, opt-in plugin, conversion, design, convertkit, convert, kit
|
4 |
-
Requires at least: 3.2
|
5 |
-
Tested up to: 4.5.2
|
6 |
-
Stable tag: 1.2.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 |
-
|
10 |
-
== Description ==
|
11 |
-
|
12 |
-
**Create Beautiful Optin Forms With Ease!**
|
13 |
-
|
14 |
-
Optin Forms allows you to create stunning optin forms for your blog or website, without the need to know any HTML or CSS. Simply select your email solution, pick a form design and customize its appearance. Add your form to your posts and pages with a simple mouse-click, or use a shortcode to add it to specific posts and pages.
|
15 |
-
|
16 |
-
Optin Forms works with the following email solutions:
|
17 |
-
|
18 |
-
* AWeber
|
19 |
-
* iContact
|
20 |
-
* MailChimp
|
21 |
-
* GetResponse
|
22 |
-
* MadMimi
|
23 |
-
* Interspire Email Marketer
|
24 |
-
* ConvertKit
|
25 |
-
|
26 |
-
**Optin Forms Comes With 5 Beautiful Form Designs!**
|
27 |
-
|
28 |
-
All form designs are fully customizable. You can easily change all texts, fonts and font sizes. Change the colors of any element by selecting a new value from the color picker.
|
29 |
-
|
30 |
-
**Translations**
|
31 |
-
|
32 |
-
[Translate Optin Forms into your language](https://translate.wordpress.org/projects/wp-plugins/optin-forms)
|
33 |
-
|
34 |
-
If are you looking for other alternatives check-out our article on <a href="https://fancythemes.com/best-list-building-plugins-wordpress" rel="friend">best list building plugins</a>. Also take a look at our <a href="https://fancythemes.com/best-wordpress-hosting-providers/" rel="friend">WordPress Hosting guide</a>, if you're looking to switch hosting providers.
|
35 |
-
|
36 |
-
== Installation ==
|
37 |
-
|
38 |
-
1. Download and unzip the plugin.
|
39 |
-
2. Upload the `optin-forms` directory to the `wp-content/plugins/` directory.
|
40 |
-
3. Click on 'Plugins' in the navigation menu and activate the plugin.
|
41 |
-
4. Click on 'Optin Forms' in the navigation menu.
|
42 |
-
|
43 |
-
== Frequently Asked Questions ==
|
44 |
-
|
45 |
-
= How can I get support? =
|
46 |
-
|
47 |
-
Having trouble with the plugin? Simply post your question to the [support forum](http://wordpress.org/support/plugin/optin-forms) and we'll help you out.
|
48 |
-
|
49 |
-
== Screenshots ==
|
50 |
-
|
51 |
-
1. Select your email solution and configure the required fields.
|
52 |
-
2. Select a form design and customize its appearance.
|
53 |
-
3. Hide elements under Form Options.
|
54 |
-
3. Add your form to your website with a simple mouse-click.
|
55 |
-
|
56 |
-
== Changelog ==
|
57 |
-
= 1.2.6 =
|
58 |
-
* Updated to account for iContact changes.
|
59 |
-
|
60 |
-
= 1.2.4 =
|
61 |
-
* Added ConvertKit integration.
|
62 |
-
|
63 |
-
= 1.2.3 =
|
64 |
-
* Update to properly handle plugin version numbers.
|
65 |
-
|
66 |
-
= 1.2.2 =
|
67 |
-
* Fixed a bug that was preventing the optin form from being displayed in certain circumstances.
|
68 |
-
|
69 |
-
= 1.2.1 =
|
70 |
-
* Fixed a bug that was throwing an error when no custom form designs were registered.
|
71 |
-
|
72 |
-
= 1.2.0 =
|
73 |
-
* Added the ability for themes and plugins to extend Optin Forms with their own custom form designs.
|
74 |
-
|
75 |
-
= 1.1.9 =
|
76 |
-
* Updated GetResponse to campaign token.
|
77 |
-
* Updated broken links.
|
78 |
-
|
79 |
-
= 1.1.8 =
|
80 |
-
* Updated text domain.
|
81 |
-
|
82 |
-
= 1.1.7 =
|
83 |
-
* Restricted pledge box to Optin Forms page only.
|
84 |
-
|
85 |
-
= 1.1.6 =
|
86 |
-
* Restricted pledge box to admins only.
|
87 |
-
|
88 |
-
= 1.1.5 =
|
89 |
-
* Added MailChimp Form Action URL check.
|
90 |
-
* Fixed SSL issue.
|
91 |
-
* Fixed Google Fonts error issue.
|
92 |
-
* Added pledge box.
|
93 |
-
|
94 |
-
= 1.1.4 =
|
95 |
-
* Added Serbian translation.
|
96 |
-
* Updated AWeber instructions.
|
97 |
-
* Updated sidebar admin.
|
98 |
-
* Updated mailing form.
|
99 |
-
|
100 |
-
= 1.1.3 =
|
101 |
-
* Improved responsive design form 02.
|
102 |
-
* Added Spanish translation.
|
103 |
-
|
104 |
-
= 1.1.2 =
|
105 |
-
* Fixed responsive design forms.
|
106 |
-
* Added option to open form submissions in a new window.
|
107 |
-
* Fixed jQuery warning placeholder.js.
|
108 |
-
|
109 |
-
= 1.1.1 =
|
110 |
-
* Fixed exclude function.
|
111 |
-
|
112 |
-
= 1.1 =
|
113 |
-
* Added exclude options.
|
114 |
-
* Added shortcode.
|
115 |
-
* Added form options.
|
116 |
-
* Added custom CSS fields.
|
117 |
-
* Merged Placement tab with Form tab.
|
118 |
-
|
119 |
-
= 1.0 =
|
120 |
-
* First version!
|
121 |
-
|
122 |
-
== Upgrade Notice ==
|
123 |
-
|
124 |
-
= 1.2.4 =
|
125 |
-
Added ConvertKit integration.
|
126 |
-
|
127 |
-
= 1.1.9 =
|
128 |
-
Fixed GetResponse campaign token and updated broken links.
|
129 |
-
|
130 |
-
= 1.1.8 =
|
131 |
-
Updated text domain.
|
132 |
-
|
133 |
-
= 1.1.7 =
|
134 |
-
Restricted pledge box to Optin Forms page only.
|
135 |
-
|
136 |
-
= 1.1.6 =
|
137 |
-
Restricted pledge box to admin users only.
|
138 |
-
|
139 |
-
= 1.1.5 =
|
140 |
-
Updated MailChimp Form Action URL check, fixed SSL issues and Google Fonts error issue.
|
141 |
-
|
142 |
-
= 1.1.4 =
|
143 |
-
Updated Aweber instructions and added the Serbian translation for the plugin.
|
144 |
-
|
145 |
-
= 1.1.3 =
|
146 |
-
Fixed responsive design for the second form and added the Spanish translation for the plugin.
|
147 |
-
|
148 |
-
= 1.1.2 =
|
149 |
-
Fixed responsive design for all form designs and included the option to open form submissions in a new window.
|
150 |
-
|
151 |
-
= 1.1.1 =
|
152 |
-
Fixed exclude function that caused warnings on certain installations.
|
153 |
-
|
154 |
-
= 1.1 =
|
155 |
-
New display options, exclude your optin form on specific posts and pages, and add your form with a shortcode!
|
156 |
-
|
157 |
-
= 1.0 =
|
158 |
-
First version!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|