| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Optin Forms |
| 4 |
Plugin URI: http://www.codeleon.com/wordpress/plugins/optin-forms |
| 5 |
Description: Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click. |
| 6 |
Author: Codeleon |
| 7 |
Version: 1.0 |
| 8 |
Author URI: http://www.codeleon.com |
| 9 |
License: Free |
| 10 |
Text Domain: optinforms |
| 11 |
Domain Path: /languages/ |
| 12 |
*/ |
| 13 |
|
| 14 |
// Add translation to plugin |
| 15 |
function optinforms_init() { |
| 16 |
$plugin_dir = basename(dirname(__FILE__)); |
| 17 |
load_plugin_textdomain( 'optinforms', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); |
| 18 |
} |
| 19 |
add_action('plugins_loaded', 'optinforms_init'); |
| 20 |
|
| 21 |
// Allow for translation of plugin description |
| 22 |
$plugin_header_translate = array( |
| 23 |
__('Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.', 'optinforms'), |
| 24 |
); |
| 25 |
|
| 26 |
// Add our menu to WordPress |
| 27 |
add_action( 'admin_menu', 'optinforms_menu' ); |
| 28 |
|
| 29 |
function optinforms_menu() |
| 30 |
{ |
| 31 |
$submenu = add_menu_page(__('Optin Forms','menu-test'), __('Optin Forms','menu-test'), 'manage_options', 'optinforms', 'optinforms_main_page', plugins_url('optin-forms/images/icon.png'), 31); |
| 32 |
|
| 33 |
// * We want our JS and CSS loaded on our admin pages only, so let's just load them for now |
| 34 |
add_action( 'load-' . $submenu, 'load_optinforms_admin_scripts' ); |
| 35 |
} |
| 36 |
|
| 37 |
// Enqueue our CSS and JS on WP Video Coach admin pages only |
| 38 |
function load_optinforms_admin_scripts() { |
| 39 |
add_action( 'admin_enqueue_scripts', 'optinforms_admin_scripts' ); |
| 40 |
} |
| 41 |
|
| 42 |
// Include our registration settings |
| 43 |
include( plugin_dir_path( __FILE__ ) . 'includes/register-settings.php'); |
| 44 |
// Include our regular functions |
| 45 |
include( plugin_dir_path( __FILE__ ) . 'includes/functions.php'); |
| 46 |
// Include our form functions |
| 47 |
include( plugin_dir_path( __FILE__ ) . 'includes/functions-forms.php'); |
| 48 |
|
| 49 |
|
| 50 |
// Add our CSS and JS to admin head, but just for our pages (see load_optinforms_admin_scripts above!) |
| 51 |
function optinforms_admin_scripts() |
| 52 |
{ |
| 53 |
wp_enqueue_style('optinforms-admin-stylesheet', plugins_url('/css/optinforms-admin.css', __FILE__ ), array('googleFont')); |
| 54 |
wp_enqueue_script('tabcontent', plugins_url('/js/tabcontent.js', __FILE__ )); |
| 55 |
wp_enqueue_style('wp-color-picker'); |
| 56 |
wp_enqueue_script('optinforms-color', plugins_url('/js/optinforms-color.js', __FILE__ ), array( 'wp-color-picker' ), false, true ); |
| 57 |
wp_enqueue_script('placeholder', plugins_url('/js/placeholder.js', __FILE__ )); |
| 58 |
wp_register_style('googleFont', 'http://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'); |
| 59 |
} |
| 60 |
|
| 61 |
// Enqueue our form CSS on front end |
| 62 |
add_action( 'wp_enqueue_scripts', 'optinforms_scripts' ); |
| 63 |
|
| 64 |
|
| 65 |
// Add our CSS and JS to admin head, but just for our pages (see load_optinforms_admin_scripts above!) |
| 66 |
function optinforms_scripts() |
| 67 |
{ |
| 68 |
global $optinforms_form_design; |
| 69 |
wp_enqueue_style('optinforms-stylesheet', plugins_url('/css/optinforms.css', __FILE__ ), array('googleFont')); |
| 70 |
wp_enqueue_script('placeholder', plugins_url('/js/placeholder.js', __FILE__ )); |
| 71 |
wp_register_style('googleFont', optinforms_used_fonts()); |
| 72 |
} |
| 73 |
|
| 74 |
// Make sure user can manage options |
| 75 |
function optinforms_options() { |
| 76 |
if ( !current_user_can( 'manage_options' ) ) { |
| 77 |
wp_die( __( 'You do not have sufficient permissions to access this page.' ) ); |
| 78 |
} |
| 79 |
?> |
| 80 |
|
| 81 |
<?php } |
| 82 |
|
| 83 |
function optinforms_main_page() { |
| 84 |
|
| 85 |
{ ?> |
| 86 |
<div class="wrap"> |
| 87 |
<div id="icon-optinforms" class="icon32"> |
| 88 |
</div><!--icon-32--> |
| 89 |
|
| 90 |
<h2 class="title"><?php echo optinforms_menu_tabs(); ?></h2> |
| 91 |
</div><!--wrap--> |
| 92 |
|
| 93 |
<?php if( isset($_GET['settings-updated']) ) { ?> |
| 94 |
<div id="message" class="updated"> |
| 95 |
<p><strong><?php _e('Settings updated.') ?></strong></p> |
| 96 |
</div> |
| 97 |
<?php } ?> |
| 98 |
|
| 99 |
<div id="optinforms"> |
| 100 |
<form method="post" action="options.php" id="frm1"> |
| 101 |
<?php settings_fields( 'optinforms-settings-group' ); ?> |
| 102 |
<div id="optinforms-email-solution-tab" class="tabcontent"> |
| 103 |
<div class="optinforms-container-left"> |
| 104 |
<div class="optiongroup"> |
| 105 |
<h3><?php echo __('Email Solution', 'optinforms'); ?></h3> |
| 106 |
<p><?php echo __('Select your email solution and configure the required fields.', 'optinforms'); ?></p> |
| 107 |
<div class="optionleft"> |
| 108 |
<label for="optinforms_email_solution" class="nopointer"><?php echo __('My email solution is', 'optinforms'); ?></label> |
| 109 |
</div><!--optionleft--> |
| 110 |
<div class="optionmiddle"> |
| 111 |
<select name="optinforms_email_solution" id="optinforms_email_solution"> |
| 112 |
<option value="optinforms_email_solution_option1" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option1') echo 'selected="selected"'; ?>>aWeber</option> |
| 113 |
<option value="optinforms_email_solution_option2" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option2') echo 'selected="selected"'; ?>>iContact</option> |
| 114 |
<option value="optinforms_email_solution_option3" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option3') echo 'selected="selected"'; ?>>MailChimp</option> |
| 115 |
<option value="optinforms_email_solution_option4" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option4') echo 'selected="selected"'; ?>>GetResponse</option> |
| 116 |
<option value="optinforms_email_solution_option5" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option5') echo 'selected="selected"'; ?>>Mad Mimi</option> |
| 117 |
<option value="optinforms_email_solution_option6" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option6') echo 'selected="selected"'; ?>>Interspire Email Marketer</option> |
| 118 |
</select> |
| 119 |
<script type="text/javascript"> |
| 120 |
document.getElementById('optinforms_email_solution').onchange = function() { |
| 121 |
var i = 1; |
| 122 |
var myDiv = document.getElementById("optinforms_email_solution_option" + i); |
| 123 |
while(myDiv) { |
| 124 |
myDiv.style.display = 'none'; |
| 125 |
myDiv = document.getElementById("optinforms_email_solution_option" + ++i); |
| 126 |
} |
| 127 |
document.getElementById(this.value).style.display = 'block'; |
| 128 |
}; |
| 129 |
</script> |
| 130 |
</div><!--optionmiddle--> |
| 131 |
<div class="clear"></div> |
| 132 |
|
| 133 |
</div><!--optiongroup--> |
| 134 |
|
| 135 |
<div class="optiongroup"> |
| 136 |
<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;"'; ?>> |
| 137 |
<!--<p class="optinforms-integration"><a href="#"></?php echo __('Learn how to integrate aWeber: watch the short video', 'optinforms'); ?></a></p>--> |
| 138 |
<div class="optiongroup"> |
| 139 |
<div class="optionleft"> |
| 140 |
<label><a onclick="optinforms_explain_aweber()"><span class="explain">?</span></a></label> <label for="optinforms_form_list_name_aweber" class="nopointer"><?php echo __('List name', 'optinforms'); ?> <span class="required">*</span></label> |
| 141 |
</div><!--optionleft--> |
| 142 |
<div class="optionmiddle"> |
| 143 |
<input type="text" id="optinforms_form_list_name_aweber" name="optinforms_form_list_name_aweber" value="<?php echo optinforms_form_list_name_aweber(); ?>" /> |
| 144 |
</div><!--optionmiddle--> |
| 145 |
<div class="clear"></div> |
| 146 |
</div><!--optiongroup--> |
| 147 |
|
| 148 |
<script type="text/javascript"> |
| 149 |
function optinforms_explain_aweber() { |
| 150 |
// Get the DOM reference |
| 151 |
var contentId = document.getElementById("optinforms-explain-aweber"); |
| 152 |
// Toggle |
| 153 |
contentId.style.display == "block" ? contentId.style.display = "none" : |
| 154 |
contentId.style.display = "block"; |
| 155 |
} |
| 156 |
</script> |
| 157 |
<div id="optinforms-explain-aweber" style="display:none;"> |
| 158 |
<div class="optinforms-step"> |
| 159 |
<h4><?php echo __('How to find your list name', 'optinforms'); ?></h4> |
| 160 |
<p><span class="step">1</span> <?php echo __('Log in to your aWeber account', 'optinforms'); ?></p> |
| 161 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-aweber-001.png" class="step-image" /> |
| 162 |
<p><span class="step">2</span> <?php echo __('Click on My Lists in the navigation menu', 'optinforms'); ?></p> |
| 163 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-aweber-002.png" class="step-image" /> |
| 164 |
<p><span class="step">3</span> <?php echo __('Click on List Settings from the submenu options', 'optinforms'); ?></p> |
| 165 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-aweber-003.png" class="step-image" /> |
| 166 |
<p><span class="step">4</span> <?php echo __('You will find your list name in the List Name field', 'optinforms'); ?></p> |
| 167 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-aweber-004.png" class="step-image" /> |
| 168 |
</div><!--optinforms-step--> |
| 169 |
</div><!--optinforms-explain-aweber--> |
| 170 |
|
| 171 |
<div class="optiongroup"> |
| 172 |
<div class="optionleft"> |
| 173 |
<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', 'optinforms'); ?></label> |
| 174 |
</div><!--optionleft--> |
| 175 |
<div class="optionmiddle"> |
| 176 |
<input type="text" id="optinforms_form_redirect_aweber" name="optinforms_form_redirect_aweber" value="<?php echo optinforms_form_redirect_aweber(); ?>" /> |
| 177 |
</div><!--optionmiddle--> |
| 178 |
<div class="clear"></div> |
| 179 |
</div><!--optiongroup--> |
| 180 |
|
| 181 |
<script type="text/javascript"> |
| 182 |
function optinforms_explain_redirect_aweber() { |
| 183 |
// Get the DOM reference |
| 184 |
var contentId = document.getElementById("optinforms-explain-redirect-aweber"); |
| 185 |
// Toggle |
| 186 |
contentId.style.display == "block" ? contentId.style.display = "none" : |
| 187 |
contentId.style.display = "block"; |
| 188 |
} |
| 189 |
</script> |
| 190 |
<div id="optinforms-explain-redirect-aweber" style="display:none;"> |
| 191 |
<div class="optinforms-help"> |
| 192 |
<p><?php echo __('Enter the URL of the page where your visitors will be taken to, once they successfully subscribe.', 'optinforms'); ?> <?php echo __('If you leave this field blank, the default aWeber message will be used.', 'optinforms'); ?></p> |
| 193 |
</div><!--optinforms-help--> |
| 194 |
</div><!--optinforms-explain-redirect-aweber--> |
| 195 |
|
| 196 |
|
| 197 |
</div><!--optinforms_email_solution_option1--> |
| 198 |
<div id="optinforms_email_solution_option2" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option2') echo 'style="display:block;"'; ?>> |
| 199 |
<!--<p class="optinforms-integration"></?php echo __('Learn how to integrate iContact: watch the short video', 'optinforms'); ?></p>--> |
| 200 |
<div class="optiongroup"> |
| 201 |
<div class="optionleft"> |
| 202 |
<label><a onclick="optinforms_explain_icontact()"><span class="explain">?</span></a></label> <label for="optinforms_form_listid_icontact" class="nopointer"><?php echo __('List ID', 'optinforms'); ?> <span class="required">*</span></label> |
| 203 |
</div><!--optionleft--> |
| 204 |
<div class="optionmiddle"> |
| 205 |
<input type="text" id="optinforms_form_listid_icontact" name="optinforms_form_listid_icontact" value="<?php echo optinforms_form_listid_icontact(); ?>" /> |
| 206 |
</div><!--optionmiddle--> |
| 207 |
<div class="clear"></div> |
| 208 |
</div><!--optiongroup--> |
| 209 |
|
| 210 |
<div class="optiongroup"> |
| 211 |
<div class="optionleft"> |
| 212 |
<label><a onclick="optinforms_explain_icontact()"><span class="explain">?</span></a></label> <label for="optinforms_form_specialid_icontact" class="nopointer"><?php echo __('Special ID', 'optinforms'); ?> <span class="required">*</span></label> |
| 213 |
</div><!--optionleft--> |
| 214 |
<div class="optionmiddle"> |
| 215 |
<input type="text" id="optinforms_form_specialid_icontact" name="optinforms_form_specialid_icontact" value="<?php echo optinforms_form_specialid_icontact(); ?>" /> |
| 216 |
</div><!--optionmiddle--> |
| 217 |
<div class="clear"></div> |
| 218 |
</div><!--optiongroup--> |
| 219 |
|
| 220 |
<div class="optiongroup"> |
| 221 |
<div class="optionleft"> |
| 222 |
<label><a onclick="optinforms_explain_icontact()"><span class="explain">?</span></a></label> <label for="optinforms_form_clientid_icontact" class="nopointer"><?php echo __('Client ID', 'optinforms'); ?> <span class="required">*</span></label> |
| 223 |
</div><!--optionleft--> |
| 224 |
<div class="optionmiddle"> |
| 225 |
<input type="text" id="optinforms_form_clientid_icontact" name="optinforms_form_clientid_icontact" value="<?php echo optinforms_form_clientid_icontact(); ?>" /> |
| 226 |
</div><!--optionmiddle--> |
| 227 |
<div class="clear"></div> |
| 228 |
</div><!--optiongroup--> |
| 229 |
|
| 230 |
<script type="text/javascript"> |
| 231 |
function optinforms_explain_icontact() { |
| 232 |
// Get the DOM reference |
| 233 |
var contentId = document.getElementById("optinforms-explain-icontact"); |
| 234 |
// Toggle |
| 235 |
contentId.style.display == "block" ? contentId.style.display = "none" : |
| 236 |
contentId.style.display = "block"; |
| 237 |
} |
| 238 |
</script> |
| 239 |
<div id="optinforms-explain-icontact" style="display:none;"> |
| 240 |
<div class="optinforms-step"> |
| 241 |
<h4><?php echo __('How to find your list ID, special ID and client ID values', 'optinforms'); ?></h4> |
| 242 |
<p><span class="step">1</span> <?php echo __('Log in to your iContact account', 'optinforms'); ?></p> |
| 243 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-001.png" class="step-image" /> |
| 244 |
<p><span class="step">2</span> <?php echo __('Click on Contacts in the navigation menu', 'optinforms'); ?></p> |
| 245 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-002.png" class="step-image" /> |
| 246 |
<p><span class="step">3</span> <?php echo __('Click on Sign-up Forms in the submenu', 'optinforms'); ?></p> |
| 247 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-003.png" class="step-image" /> |
| 248 |
<p><span class="step">4</span> <?php echo __('Click on the Create HTML Form button', 'optinforms'); ?></p> |
| 249 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-004.png" class="step-image" /> |
| 250 |
<p><span class="step">5</span> <?php echo __('Click on Next', 'optinforms'); ?></p> |
| 251 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-005.png" class="step-image" /> |
| 252 |
<p><span class="step">6</span> <?php echo __('Name your form, assign it to a list and include the First Name field', 'optinforms'); ?></p> |
| 253 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-006.png" class="step-image" /> |
| 254 |
<p><span class="step">7</span> <?php echo __('Click on Save', 'optinforms'); ?></p> |
| 255 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-007.png" class="step-image" /> |
| 256 |
<p><span class="step">8</span> <?php echo __('Click on the View HTML link', 'optinforms'); ?></p> |
| 257 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-008.png" class="step-image" /> |
| 258 |
<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', 'optinforms'); ?></p> |
| 259 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-icontact-009.png" class="step-image" /> |
| 260 |
</div><!--optinforms-step--> |
| 261 |
</div><!--optinforms-explain-icontact--> |
| 262 |
<div class="optiongroup"> |
| 263 |
<div class="optionleft"> |
| 264 |
<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', 'optinforms'); ?></label> |
| 265 |
</div><!--optionleft--> |
| 266 |
<div class="optionmiddle"> |
| 267 |
<input type="text" id="optinforms_form_redirect_icontact" name="optinforms_form_redirect_icontact" value="<?php echo optinforms_form_redirect_icontact(); ?>" /> |
| 268 |
</div><!--optionmiddle--> |
| 269 |
<div class="clear"></div> |
| 270 |
</div><!--optiongroup--> |
| 271 |
|
| 272 |
<script type="text/javascript"> |
| 273 |
function optinforms_explain_redirect_icontact() { |
| 274 |
// Get the DOM reference |
| 275 |
var contentId = document.getElementById("optinforms-explain-redirect-icontact"); |
| 276 |
// Toggle |
| 277 |
contentId.style.display == "block" ? contentId.style.display = "none" : |
| 278 |
contentId.style.display = "block"; |
| 279 |
} |
| 280 |
</script> |
| 281 |
<div id="optinforms-explain-redirect-icontact" style="display:none;"> |
| 282 |
<div class="optinforms-help"> |
| 283 |
<p><?php echo __('Enter the URL of the page where your visitors will be taken to, once they successfully subscribe.', 'optinforms'); ?> <?php echo __('If you leave this field blank, the default iContact message will be used.', 'optinforms'); ?></p> |
| 284 |
</div><!--optinforms-help--> |
| 285 |
</div><!--optinforms-explain-redirect-icontact--> |
| 286 |
|
| 287 |
<div class="optiongroup"> |
| 288 |
<div class="optionleft"> |
| 289 |
<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', 'optinforms'); ?></label> |
| 290 |
</div><!--optionleft--> |
| 291 |
<div class="optionmiddle"> |
| 292 |
<input type="text" id="optinforms_form_error_icontact" name="optinforms_form_error_icontact" value="<?php echo optinforms_form_error_icontact(); ?>" /> |
| 293 |
</div><!--optionmiddle--> |
| 294 |
<div class="clear"></div> |
| 295 |
</div><!--optiongroup--> |
| 296 |
|
| 297 |
<script type="text/javascript"> |
| 298 |
function optinforms_explain_error_icontact() { |
| 299 |
// Get the DOM reference |
| 300 |
var contentId = document.getElementById("optinforms-explain-error-icontact"); |
| 301 |
// Toggle |
| 302 |
contentId.style.display == "block" ? contentId.style.display = "none" : |
| 303 |
contentId.style.display = "block"; |
| 304 |
} |
| 305 |
</script> |
| 306 |
<div id="optinforms-explain-error-icontact" style="display:none;"> |
| 307 |
<div class="optinforms-help"> |
| 308 |
<p><?php echo __('Enter the URL of the page where your visitors will be taken to, if there are any errors.', 'optinforms'); ?> <?php echo __('If you leave this field blank, the default iContact error message will be used.', 'optinforms'); ?></p> |
| 309 |
</div><!--optinforms-help--> |
| 310 |
</div><!--optinforms-explain-error-icontact--> |
| 311 |
|
| 312 |
</div><!--optinforms_email_solution_option2--> |
| 313 |
<div id="optinforms_email_solution_option3" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option3') echo 'style="display:block;"'; ?>> |
| 314 |
<!--<p class="optinforms-integration"></?php echo __('Learn how to integrate MailChimp: watch the short video', 'optinforms'); ?></p>--> |
| 315 |
<div class="optiongroup"> |
| 316 |
<div class="optionleft"> |
| 317 |
<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', 'optinforms'); ?> <span class="required">*</span></label> |
| 318 |
</div><!--optionleft--> |
| 319 |
<div class="optionmiddle"> |
| 320 |
<input type="text" id="optinforms_form_action_mailchimp" name="optinforms_form_action_mailchimp" value="<?php echo optinforms_form_action_mailchimp(); ?>" /> |
| 321 |
</div><!--optionmiddle--> |
| 322 |
<div class="clear"></div> |
| 323 |
</div><!--optiongroup--> |
| 324 |
|
| 325 |
<script type="text/javascript"> |
| 326 |
function optinforms_explain_mailchimp() { |
| 327 |
// Get the DOM reference |
| 328 |
var contentId = document.getElementById("optinforms-explain-mailchimp"); |
| 329 |
// Toggle |
| 330 |
contentId.style.display == "block" ? contentId.style.display = "none" : |
| 331 |
contentId.style.display = "block"; |
| 332 |
} |
| 333 |
</script> |
| 334 |
<div id="optinforms-explain-mailchimp" style="display:none;"> |
| 335 |
<div class="optinforms-step"> |
| 336 |
<h4><?php echo __('How to find your form action URL', 'optinforms'); ?></h4> |
| 337 |
<p><span class="step">1</span> <?php echo __('Log in to your MailChimp account', 'optinforms'); ?></p> |
| 338 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-mailchimp-001.png" class="step-image" /> |
| 339 |
<p><span class="step">2</span> <?php echo __('Click on Lists in the navigation menu', 'optinforms'); ?></p> |
| 340 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-mailchimp-002.png" class="step-image" /> |
| 341 |
<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', 'optinforms'); ?></p> |
| 342 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-mailchimp-003.png" class="step-image" /> |
| 343 |
<p><span class="step">4</span> <?php echo __('Select Embedded forms', 'optinforms'); ?></p> |
| 344 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-mailchimp-004.png" class="step-image" /> |
| 345 |
<p><span class="step">5</span> <?php echo __('Select the Naked form', 'optinforms'); ?></p> |
| 346 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-mailchimp-005.png" class="step-image" /> |
| 347 |
<p><span class="step">6</span> <?php echo __('You will find the form action URL in the HTML box', 'optinforms'); ?></p> |
| 348 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-mailchimp-006.png" class="step-image" /> |
| 349 |
</div><!--optinforms-step--> |
| 350 |
</div><!--optinforms-explain-mailchimp--> |
| 351 |
</div><!--optinforms_email_solution_option3--> |
| 352 |
<div id="optinforms_email_solution_option4" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option4') echo 'style="display:block;"'; ?>> |
| 353 |
<!--<p class="optinforms-integration"></?php echo __('Learn how to integrate GetResponse: watch the short video', 'optinforms'); ?></p>--> |
| 354 |
<div class="optiongroup"> |
| 355 |
<div class="optionleft"> |
| 356 |
<label><a onclick="optinforms_explain_getresponse()"><span class="explain">?</span></a></label> <label for="optinforms_form_webformid_getresponse" class="nopointer"><?php echo __('Webform ID', 'optinforms'); ?> <span class="required">*</span></label> |
| 357 |
</div><!--optionleft--> |
| 358 |
<div class="optionmiddle"> |
| 359 |
<input type="text" id="optinforms_form_webformid_getresponse" name="optinforms_form_webformid_getresponse" value="<?php echo optinforms_form_webformid_getresponse(); ?>" /> |
| 360 |
</div><!--optionmiddle--> |
| 361 |
<div class="clear"></div> |
| 362 |
</div><!--optiongroup--> |
| 363 |
|
| 364 |
<script type="text/javascript"> |
| 365 |
function optinforms_explain_getresponse() { |
| 366 |
// Get the DOM reference |
| 367 |
var contentId = document.getElementById("optinforms-explain-getresponse"); |
| 368 |
// Toggle |
| 369 |
contentId.style.display == "block" ? contentId.style.display = "none" : |
| 370 |
contentId.style.display = "block"; |
| 371 |
} |
| 372 |
</script> |
| 373 |
<div id="optinforms-explain-getresponse" style="display:none;"> |
| 374 |
<div class="optinforms-step"> |
| 375 |
<h4><?php echo __('How to find your webform ID value', 'optinforms'); ?></h4> |
| 376 |
<p><span class="step">1</span> <?php echo __('Log in to your GetResponse account', 'optinforms'); ?></p> |
| 377 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-getresponse-001.png" class="step-image" /> |
| 378 |
<p><span class="step">2</span> <?php echo __('Click on Web Forms in the navigation menu and click on Create New', 'optinforms'); ?></p> |
| 379 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-getresponse-002.png" class="step-image" /> |
| 380 |
<p><span class="step">3</span> <?php echo __('Click on Next Step at the bottom of the page', 'optinforms'); ?></p> |
| 381 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-getresponse-003.png" class="step-image" /> |
| 382 |
<p><span class="step">4</span> <?php echo __('Click on Next Step at the bottom of the page', 'optinforms'); ?></p> |
| 383 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-getresponse-003.png" class="step-image" /> |
| 384 |
<p><span class="step">5</span> <?php echo __('Click on the Show HTML Code tab', 'optinforms'); ?></p> |
| 385 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-getresponse-005.png" class="step-image" /> |
| 386 |
<p><span class="step">6</span> <?php echo __('Scroll down and find the value of the webform_id field', 'optinforms'); ?></p> |
| 387 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-getresponse-006.png" class="step-image" /> |
| 388 |
</div><!--optinforms-step--> |
| 389 |
</div><!--optinforms-explain-getresponse--> |
| 390 |
|
| 391 |
</div><!--optinforms_email_solution_option4--> |
| 392 |
<div id="optinforms_email_solution_option5" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option5') echo 'style="display:block;"'; ?>> |
| 393 |
<!--<p class="optinforms-integration"></?php echo __('Learn how to integrate Mad Mimi: watch the short video', 'optinforms'); ?></p>--> |
| 394 |
<div class="optiongroup"> |
| 395 |
<div class="optionleft"> |
| 396 |
<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', 'optinforms'); ?> <span class="required">*</span></label> |
| 397 |
</div><!--optionleft--> |
| 398 |
<div class="optionmiddle"> |
| 399 |
<input type="text" id="optinforms_form_action_madmimi" name="optinforms_form_action_madmimi" value="<?php echo optinforms_form_action_madmimi(); ?>" /> |
| 400 |
</div><!--optionmiddle--> |
| 401 |
<div class="clear"></div> |
| 402 |
</div><!--optiongroup--> |
| 403 |
|
| 404 |
<script type="text/javascript"> |
| 405 |
function optinforms_explain_madmimi() { |
| 406 |
// Get the DOM reference |
| 407 |
var contentId = document.getElementById("optinforms-explain-madmimi"); |
| 408 |
// Toggle |
| 409 |
contentId.style.display == "block" ? contentId.style.display = "none" : |
| 410 |
contentId.style.display = "block"; |
| 411 |
} |
| 412 |
</script> |
| 413 |
<div id="optinforms-explain-madmimi" style="display:none;"> |
| 414 |
<div class="optinforms-step"> |
| 415 |
<h4><?php echo __('How to find your form action URL', 'optinforms'); ?></h4> |
| 416 |
<p><span class="step">1</span> <?php echo __('Log in to your Mad Mimi account', 'optinforms'); ?></p> |
| 417 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-001.png" class="step-image" /> |
| 418 |
<p><span class="step">2</span> <?php echo __('Click on Webform', 'optinforms'); ?></p> |
| 419 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-002.png" class="step-image" /> |
| 420 |
<p><span class="step">3</span> <?php echo __('Click on the Add a Webform button', 'optinforms'); ?></p> |
| 421 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-003.png" class="step-image" /> |
| 422 |
<p><span class="step">4</span> <?php echo __('Name your form, assign it to a list and include the Name field', 'optinforms'); ?></p> |
| 423 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-004.png" class="step-image" /> |
| 424 |
<p><span class="step">5</span> <?php echo __('Click on the Embed button', 'optinforms'); ?></p> |
| 425 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-005.png" class="step-image" /> |
| 426 |
<p><span class="step">6</span> <?php echo __('Click on the Plain Embed tab', 'optinforms'); ?></p> |
| 427 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-006.png" class="step-image" /> |
| 428 |
<p><span class="step">7</span> <?php echo __('You will find the form action URL in the HTML box', 'optinforms'); ?></p> |
| 429 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-madmimi-007.png" class="step-image" /> |
| 430 |
</div><!--optinforms-step--> |
| 431 |
</div><!--optinforms-explain-madmimi--> |
| 432 |
</div><!--optinforms_email_solution_option5--> |
| 433 |
<div id="optinforms_email_solution_option6" <?php if (get_option('optinforms_email_solution')== 'optinforms_email_solution_option6') echo 'style="display:block;"'; ?>> |
| 434 |
<!--<p class="optinforms-integration"></?php echo __('Learn how to integrate Interspire Email Marketer: watch the short video', 'optinforms'); ?></p>--> |
| 435 |
<div class="optiongroup"> |
| 436 |
<div class="optionleft"> |
| 437 |
<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', 'optinforms'); ?> <span class="required">*</span></label> |
| 438 |
</div><!--optionleft--> |
| 439 |
<div class="optionmiddle"> |
| 440 |
<input type="text" id="optinforms_form_action_interspire" name="optinforms_form_action_interspire" value="<?php echo optinforms_form_action_interspire(); ?>" /> |
| 441 |
</div><!--optionmiddle--> |
| 442 |
<div class="clear"></div> |
| 443 |
</div><!--optiongroup--> |
| 444 |
|
| 445 |
<script type="text/javascript"> |
| 446 |
function optinforms_explain_interspire() { |
| 447 |
// Get the DOM reference |
| 448 |
var contentId = document.getElementById("optinforms-explain-interspire"); |
| 449 |
// Toggle |
| 450 |
contentId.style.display == "block" ? contentId.style.display = "none" : |
| 451 |
contentId.style.display = "block"; |
| 452 |
} |
| 453 |
</script> |
| 454 |
<div id="optinforms-explain-interspire" style="display:none;"> |
| 455 |
<div class="optinforms-step"> |
| 456 |
<h4><?php echo __('How to find your form action URL', 'optinforms'); ?></h4> |
| 457 |
<p><span class="step">1</span> <?php echo __('Log in to your Interspire Email Marketer administration panel', 'optinforms'); ?></p> |
| 458 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-001.png" class="step-image" /> |
| 459 |
<p><span class="step">2</span> <?php echo __('Click on Forms in the navigation menu', 'optinforms'); ?></p> |
| 460 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-002.png" class="step-image" /> |
| 461 |
<p><span class="step">3</span> <?php echo __('Click on Create a Website Form from the submenu options', 'optinforms'); ?></p> |
| 462 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-003.png" class="step-image" /> |
| 463 |
<p><span class="step">4</span> <?php echo __('Make sure to uncheck CAPTCHA form security', 'optinforms'); ?></p> |
| 464 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-004.png" class="step-image" /> |
| 465 |
<p><span class="step">5</span> <?php echo __('Name your form, assign it to a list and include the Name field', 'optinforms'); ?></p> |
| 466 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-005.png" class="step-image" /> |
| 467 |
<p><span class="step">6</span> <?php echo __('Complete all the steps and click on Save', 'optinforms'); ?></p> |
| 468 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-006.png" class="step-image" /> |
| 469 |
<p><span class="step">7</span> <?php echo __('You will find the form action URL in the HTML box', 'optinforms'); ?></p> |
| 470 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-007.png" class="step-image" /> |
| 471 |
</div><!--optinforms-step--> |
| 472 |
</div><!--optinforms-explain-interspire--> |
| 473 |
|
| 474 |
<div class="optiongroup"> |
| 475 |
<div class="optionleft"> |
| 476 |
<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', 'optinforms'); ?> <span class="required">*</span></label> |
| 477 |
</div><!--optionleft--> |
| 478 |
<div class="optionmiddle"> |
| 479 |
<input type="text" id="optinforms_form_name_field_interspire" name="optinforms_form_name_field_interspire" value="<?php echo optinforms_form_name_field_interspire(); ?>" /> |
| 480 |
</div><!--optionmiddle--> |
| 481 |
<div class="clear"></div> |
| 482 |
</div><!--optiongroup--> |
| 483 |
|
| 484 |
<script type="text/javascript"> |
| 485 |
function optinforms_explain_interspire_name() { |
| 486 |
// Get the DOM reference |
| 487 |
var contentId = document.getElementById("optinforms-explain-interspire-name"); |
| 488 |
// Toggle |
| 489 |
contentId.style.display == "block" ? contentId.style.display = "none" : |
| 490 |
contentId.style.display = "block"; |
| 491 |
} |
| 492 |
</script> |
| 493 |
<div id="optinforms-explain-interspire-name" style="display:none;"> |
| 494 |
<div class="optinforms-step"> |
| 495 |
<h4><?php echo __('How to find your name field ID', 'optinforms'); ?></h4> |
| 496 |
<p><span class="step">1</span> <?php echo __('Log in to your Interspire Email Marketer administration panel', 'optinforms'); ?></p> |
| 497 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-001.png" class="step-image" /> |
| 498 |
<p><span class="step">2</span> <?php echo __('Click on Contact Lists in the navigation menu', 'optinforms'); ?></p> |
| 499 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-008.png" class="step-image" /> |
| 500 |
<p><span class="step">3</span> <?php echo __('Click on View Custom Fields from the submenu options', 'optinforms'); ?></p> |
| 501 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-009.png" class="step-image" /> |
| 502 |
<p><span class="step">4</span> <?php echo __('Find the name field and click on Edit', 'optinforms'); ?></p> |
| 503 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-010.png" class="step-image" /> |
| 504 |
<p><span class="step">5</span> <?php echo __('You will find the name field ID in the address bar', 'optinforms'); ?></p> |
| 505 |
<img src="<?php echo plugins_url(); ?>/optin-forms/images/support-interspire-011.png" class="step-image" /> |
| 506 |
</div><!--optinforms-step--> |
| 507 |
</div><!--optinforms-explain-interspire--> |
| 508 |
|
| 509 |
</div><!--optinforms_email_solution_option6--> |
| 510 |
</div><!--optiongroup--> |
| 511 |
</div><!--optinforms-container-left--> |
| 512 |
<div class="optinforms-container-right"> |
| 513 |
<?php include( plugin_dir_path( __FILE__ ) . 'includes/sidebar.php'); ?> |
| 514 |
</div><!--optinforms-container-right--> |
| 515 |
<div class="clear"></div> |
| 516 |
</div><!--optinforms-email-solution-tab--> |
| 517 |
|
| 518 |
<div id="optinforms-form-tab" class="tabcontent"> |
| 519 |
<div class="optinforms-container-left"> |
| 520 |
<div class="optiongroup"> |
| 521 |
<h3><?php echo __('Form Design', 'optinforms'); ?></h3> |
| 522 |
<div class="optionleft"> |
| 523 |
<label for="optinforms_form_design" class="nopointer"><?php echo __('Form design', 'optinforms'); ?></label> |
| 524 |
</div><!--optionleft--> |
| 525 |
<div class="optionmiddle"> |
| 526 |
<select name="optinforms_form_design" id="optinforms_form_design"> |
| 527 |
<option value="optinforms_form_design_option1" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option1') echo 'selected="selected"'; ?>>01</option> |
| 528 |
<option value="optinforms_form_design_option2" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option2') echo 'selected="selected"'; ?>>02</option> |
| 529 |
<option value="optinforms_form_design_option3" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option3') echo 'selected="selected"'; ?>>03</option> |
| 530 |
<option value="optinforms_form_design_option4" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option4') echo 'selected="selected"'; ?>>04</option> |
| 531 |
<option value="optinforms_form_design_option5" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option5') echo 'selected="selected"'; ?>>05</option> |
| 532 |
</select> |
| 533 |
<script type="text/javascript"> |
| 534 |
document.getElementById('optinforms_form_design').onchange = function() { |
| 535 |
var i = 1; |
| 536 |
var myDiv = document.getElementById("optinforms_form_design_option" + i); |
| 537 |
while(myDiv) { |
| 538 |
myDiv.style.display = 'none'; |
| 539 |
myDiv = document.getElementById("optinforms_form_design_option" + ++i); |
| 540 |
} |
| 541 |
document.getElementById(this.value).style.display = 'block'; |
| 542 |
}; |
| 543 |
</script> |
| 544 |
</div><!--optionmiddle--> |
| 545 |
<div class="optionlast"> |
| 546 |
|
| 547 |
</div><!--optionlast--> |
| 548 |
<div class="clear"></div> |
| 549 |
|
| 550 |
</div><!--optiongroup--> |
| 551 |
|
| 552 |
<div class="optiongroup"> |
| 553 |
<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;"'; ?>> |
| 554 |
<div id="optinforms-form1-container"> |
| 555 |
<div id="optinforms-form1" style="background:<?php echo optinforms_form1_default_background(); ?>; border-color:<?php echo optinforms_form1_default_border(); ?>"> |
| 556 |
<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 echo optinforms_form1_default_title(); ?></p> |
| 557 |
|
| 558 |
<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 echo optinforms_form1_default_subtitle(); ?></p> |
| 559 |
<div id="optinforms-form1-name-field-container"> |
| 560 |
<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(); ?>" /> |
| 561 |
</div><!--optinforms-form1-name-field-container--> |
| 562 |
<div id="optinforms-form1-email-field-container"> |
| 563 |
<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(); ?>" /> |
| 564 |
</div><!--optinforms-form1-email-field-container--> |
| 565 |
<div id="optinforms-form1-button-container"> |
| 566 |
<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(); ?>" /> |
| 567 |
</div><!--optinforms-form1-button-container--> |
| 568 |
<div class="clear"></div> |
| 569 |
<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 echo optinforms_form1_default_disclaimer(); ?></p> |
| 570 |
</div><!--optinforms-form1--> |
| 571 |
</div><!--optinforms-form1-container--> |
| 572 |
<div class="clear"></div> |
| 573 |
|
| 574 |
<?php include( plugin_dir_path( __FILE__ ) . 'includes/options-form-1.php'); ?> |
| 575 |
|
| 576 |
</div><!--optinforms_form_design_option1--> |
| 577 |
<div id="optinforms_form_design_option2" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option2') echo 'style="display:block;"'; ?>> |
| 578 |
<div id="optinforms-form2-container"> |
| 579 |
<div id="optinforms-form2" style="background: <?php echo optinforms_form2_default_background(); ?>;"> |
| 580 |
<div id="optinforms-form2-title-container"> |
| 581 |
<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--> |
| 582 |
</div><!--optinforms-form2-title-container--> |
| 583 |
<div id="optinforms-form2-email-field-container"> |
| 584 |
<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(); ?>" /> |
| 585 |
</div><!--optinforms-form2-email-field-container--> |
| 586 |
<div id="optinforms-form2-button-container"> |
| 587 |
<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(); ?>" /> |
| 588 |
</div><!--optinforms-form2-button-container--> |
| 589 |
<div id="optinforms-form2-disclaimer-container"> |
| 590 |
<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> |
| 591 |
</div><!--optinforms-form2-disclaimer-container--> |
| 592 |
<div class="clear"></div> |
| 593 |
</div><!--optinforms-form2--> |
| 594 |
</div><!--optinforms-form2-container--> |
| 595 |
<div class="clear"></div> |
| 596 |
|
| 597 |
<?php include( plugin_dir_path( __FILE__ ) . 'includes/options-form-2.php'); ?> |
| 598 |
|
| 599 |
</div><!--optinforms_form_design_option2--> |
| 600 |
<div id="optinforms_form_design_option3" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option3') echo 'style="display:block;"'; ?>> |
| 601 |
<div id="optinforms-form3-container"> |
| 602 |
<div id="optinforms-form3"> |
| 603 |
<div id="optinforms-form3-inside" style="background: <?php echo optinforms_form3_default_background(); ?>;"> |
| 604 |
<div id="optinforms-form3-container-left"> |
| 605 |
<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 echo optinforms_form3_default_title(); ?></div><!--optinforms-form3-title--> |
| 606 |
<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 echo optinforms_form3_default_subtitle(); ?></div><!--optinforms-form3-subtitle--> |
| 607 |
</div><!--optinforms-form3-container-left--> |
| 608 |
<div id="optinforms-form3-container-right"> |
| 609 |
<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(); ?>" /> |
| 610 |
<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(); ?>" /> |
| 611 |
<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(); ?>" /> |
| 612 |
</div><!--optinforms-form3-container-right--> |
| 613 |
<div class="clear"></div> |
| 614 |
</div><!--optinforms-form3-inside--> |
| 615 |
</div><!--optinforms-form3--> |
| 616 |
</div><!--optinforms-form3-container--> |
| 617 |
<div class="clear"></div> |
| 618 |
|
| 619 |
<?php include( plugin_dir_path( __FILE__ ) . 'includes/options-form-3.php'); ?> |
| 620 |
|
| 621 |
</div><!--optinforms_form_design_option3--> |
| 622 |
<div id="optinforms_form_design_option4" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option4') echo 'style="display:block;"'; ?>> |
| 623 |
<div id="optinforms-form4-container"> |
| 624 |
<div id="optinforms-form4" style="background:<?php echo optinforms_form4_default_background(); ?>; border-color:<?php echo optinforms_form4_default_border(); ?>"> |
| 625 |
<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 echo optinforms_form4_default_title(); ?></div><!--optinforms-form4-title--> |
| 626 |
<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 echo optinforms_form4_default_subtitle(); ?></div><!--optinforms-form4-subtitle--> |
| 627 |
<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(); ?>" /> |
| 628 |
<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(); ?>" /> |
| 629 |
<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 echo optinforms_form4_default_disclaimer(); ?></div><!--optinforms-form4-disclaimer--> |
| 630 |
</div><!--optinforms-form4--> |
| 631 |
</div><!--optinforms-form4-container--> |
| 632 |
<div class="clear"></div> |
| 633 |
|
| 634 |
<?php include( plugin_dir_path( __FILE__ ) . 'includes/options-form-4.php'); ?> |
| 635 |
|
| 636 |
</div><!--optinforms_form_design_option4--> |
| 637 |
<div id="optinforms_form_design_option5" <?php if (get_option('optinforms_form_design')== 'optinforms_form_design_option5') echo 'style="display:block;"'; ?>> |
| 638 |
<div id="optinforms-form5-container"> |
| 639 |
<div id="optinforms-form5" style="background: <?php echo optinforms_form5_default_background(); ?>;"> |
| 640 |
<div id="optinforms-form5-container-left"> |
| 641 |
<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 echo optinforms_form5_default_title(); ?></div><!--optinforms-form5-title--> |
| 642 |
<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(); ?>" /> |
| 643 |
<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(); ?>" /> |
| 644 |
<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(); ?>" /> |
| 645 |
</div><!--optinforms-form5-container-left--> |
| 646 |
<div id="optinforms-form5-container-right"> |
| 647 |
<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 echo optinforms_form5_default_subtitle(); ?></div><!--optinforms-form5-subtitle--> |
| 648 |
<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 echo optinforms_form5_default_disclaimer(); ?></div><!--optinforms-form5-disclaimer--> |
| 649 |
</div><!--optinforms-form5-container-right--> |
| 650 |
<div class="clear"></div> |
| 651 |
</div><!--optinforms-form5--> |
| 652 |
</div><!--optinforms-form5-container--> |
| 653 |
<div class="clear"></div> |
| 654 |
|
| 655 |
<?php include( plugin_dir_path( __FILE__ ) . 'includes/options-form-5.php'); ?> |
| 656 |
|
| 657 |
</div><!--optinforms_form_design_option5--> |
| 658 |
</div><!--optiongroup--> |
| 659 |
</div><!--optinforms-container-left--> |
| 660 |
<div class="optinforms-container-right"> |
| 661 |
<?php include( plugin_dir_path( __FILE__ ) . 'includes/sidebar.php'); ?> |
| 662 |
</div><!--optinforms-container-right--> |
| 663 |
<div class="clear"></div> |
| 664 |
</div><!--optinforms-form-tab--> |
| 665 |
<div id="optinforms-placement-tab" class="tabcontent"> |
| 666 |
<div class="optinforms-container-left"> |
| 667 |
<div class="optiongroup"> |
| 668 |
<h3><?php echo __('Form Placement', 'optinforms'); ?></h3> |
| 669 |
<div class="optionleft"> |
| 670 |
<label for="optinforms_form_placement_post" class="nopointer"><?php echo __('On posts and custom post types', 'optinforms'); ?></label> |
| 671 |
</div><!--optionleft--> |
| 672 |
<div class="optionmiddle"> |
| 673 |
<input name="optinforms_form_placement_post" id="optinforms_form_placement_post_1" type="radio" value="1" class="radiobutton" <?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', 'optinforms'); ?></label> |
| 674 |
<div class="clear"></div> |
| 675 |
<input name="optinforms_form_placement_post" id="optinforms_form_placement_post_2" type="radio" value="2" class="radiobutton" <?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', 'optinforms'); ?></label> |
| 676 |
<div class="clear"></div> |
| 677 |
<input name="optinforms_form_placement_post" id="optinforms_form_placement_post_3" type="radio" value="3" class="radiobutton" <?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', 'optinforms'); ?></label> |
| 678 |
<div class="clear"></div> |
| 679 |
<input name="optinforms_form_placement_post" id="optinforms_form_placement_post_4" type="radio" value="4" class="radiobutton" <?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', 'optinforms'); ?></label> |
| 680 |
<div class="clear"></div> |
| 681 |
</div><!--optionmiddle--> |
| 682 |
<div class="optionlast"> |
| 683 |
|
| 684 |
</div><!--optionlast--> |
| 685 |
<div class="clear"></div> |
| 686 |
|
| 687 |
</div><!--optiongroup--> |
| 688 |
|
| 689 |
<div class="optiongroup"> |
| 690 |
<div class="optionleft"> |
| 691 |
<label for="optinforms_form_placement_page" class="nopointer"><?php echo __('On pages', 'optinforms'); ?></label> |
| 692 |
</div><!--optionleft--> |
| 693 |
<div class="optionmiddle"> |
| 694 |
<input name="optinforms_form_placement_page" id="optinforms_form_placement_page_1" type="radio" value="1" class="radiobutton" <?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', 'optinforms'); ?></label> |
| 695 |
<div class="clear"></div> |
| 696 |
<input name="optinforms_form_placement_page" id="optinforms_form_placement_page_2" type="radio" value="2" class="radiobutton" <?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', 'optinforms'); ?></label> |
| 697 |
<div class="clear"></div> |
| 698 |
<input name="optinforms_form_placement_page" id="optinforms_form_placement_page_3" type="radio" value="3" class="radiobutton" <?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', 'optinforms'); ?></label> |
| 699 |
<div class="clear"></div> |
| 700 |
<input name="optinforms_form_placement_page" id="optinforms_form_placement_page_4" type="radio" value="4" class="radiobutton" <?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', 'optinforms'); ?></label> |
| 701 |
<div class="clear"></div> |
| 702 |
</div><!--optionmiddle--> |
| 703 |
<div class="optionlast"> |
| 704 |
|
| 705 |
</div><!--optionlast--> |
| 706 |
<div class="clear"></div> |
| 707 |
|
| 708 |
</div><!--optiongroup--> |
| 709 |
|
| 710 |
<div class="optiongroup"> |
| 711 |
<h3><?php echo __('Help Us Out', 'optinforms'); ?></h3> |
| 712 |
<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 ;)', 'optinforms'); ?></p> |
| 713 |
<div class="optionleft"> |
| 714 |
<label for="optinforms_form_placement_page" class="nopointer"><?php echo __('Powered by Optin Forms link', 'optinforms'); ?></label> |
| 715 |
</div><!--optionleft--> |
| 716 |
<div class="optionmiddle"> |
| 717 |
<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">Show</label> |
| 718 |
<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">Hide</label> |
| 719 |
<div class="clear"></div> |
| 720 |
</div><!--optionmiddle--> |
| 721 |
<div class="optionlast"> |
| 722 |
|
| 723 |
</div><!--optionlast--> |
| 724 |
<div class="clear"></div> |
| 725 |
|
| 726 |
</div><!--optiongroup--> |
| 727 |
</div><!--optinforms-container-left--> |
| 728 |
<div class="optinforms-container-right"> |
| 729 |
<?php include( plugin_dir_path( __FILE__ ) . 'includes/sidebar.php'); ?> |
| 730 |
</div><!--optinforms-container-right--> |
| 731 |
<div class="clear"></div> |
| 732 |
</div><!--optinforms-placement-tab--> |
| 733 |
<script type="text/javascript"> |
| 734 |
var wpthumbs=new ddtabcontent("optinforms-menu-tabs") //enter ID of Tab Container |
| 735 |
wpthumbs.setpersist(true) //toogle persistence of the tabs' state |
| 736 |
wpthumbs.setselectedClassTarget("link") //"link" or "linkparent" |
| 737 |
wpthumbs.init() |
| 738 |
</script> |
| 739 |
|
| 740 |
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> |
| 741 |
</form> |
| 742 |
|
| 743 |
<div id="emailbox"> |
| 744 |
<form method="post" action="http://www.codeleon.com/send/form.php?form=5" id="frmSS5"> |
| 745 |
<h3><?php echo __('Sign up to receive news about the plugin and other WordPress news', 'optinforms'); ?></h3> |
| 746 |
<span><?php echo __('My email is', 'optinforms'); ?></span> |
| 747 |
<input type="text" name="email" value="<?php global $current_user; get_currentuserinfo(); echo $current_user->user_email; ?>" /> |
| 748 |
<span><?php echo __('and my name is', 'optinforms'); ?></span> |
| 749 |
<input type="text" name="CustomFields[1]" id="CustomFields_1_5" value="<?php global $current_user; get_currentuserinfo(); echo $current_user->display_name; ?>"> |
| 750 |
<input type="hidden" name="format" value="h" /> |
| 751 |
<input type="submit" class="emailbox-subscribe" value="<?php echo __('Subscribe', 'optinforms'); ?>" /> |
| 752 |
</form> |
| 753 |
</div><!--emailbox--> |
| 754 |
</div><!--optinforms--> |
| 755 |
|
| 756 |
<?php } |
| 757 |
|
| 758 |
|
| 759 |
} ?> |