Version Description
- 2018/11/20
- new: weForms integration - create any kind of form you need on the coming soon page
Download this release
Release Info
Developer | WebFactory |
Plugin | Coming Soon, Under Construction & Maintenance Page |
Version | 1.40 |
Comparing to | |
See all releases |
Code changes from version 1.35 to 1.40
- admin/assets/css/ot-admin.css +78 -0
- admin/assets/images/weforms-logo-white.png +0 -0
- admin/assets/js/ot-admin.js +76 -1
- admin/includes/ot-functions-admin.php +12 -1
- admin/includes/ot-functions-option-types.php +63 -0
- admin/includes/ot-functions-settings-page.php +3 -0
- admin/includes/ot-settings-api.php +29 -1
- admin/main-options.php +186 -86
- nifty-coming-soon.php +73 -3
- readme.txt +12 -6
- template/index.php +80 -39
admin/assets/css/ot-admin.css
CHANGED
@@ -1650,6 +1650,7 @@
|
|
1650 |
float: right;
|
1651 |
padding: 5px 0;
|
1652 |
width: 35%;
|
|
|
1653 |
}
|
1654 |
.format-setting.no-desc > .description,
|
1655 |
.format-setting.wide-desc .description {
|
@@ -4058,3 +4059,80 @@ a.ui-datepicker-next {
|
|
4058 |
clear: both;
|
4059 |
}
|
4060 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1650 |
float: right;
|
1651 |
padding: 5px 0;
|
1652 |
width: 35%;
|
1653 |
+
font-size: 14px;
|
1654 |
}
|
1655 |
.format-setting.no-desc > .description,
|
1656 |
.format-setting.wide-desc .description {
|
4059 |
clear: both;
|
4060 |
}
|
4061 |
}
|
4062 |
+
|
4063 |
+
|
4064 |
+
#setting_sign_up_button_color,
|
4065 |
+
#setting_sign_up_button_color_hover,
|
4066 |
+
#setting_sign_up_form_intro_text,
|
4067 |
+
#setting_sign_up_button_text,
|
4068 |
+
#setting_enter_email_text,
|
4069 |
+
#setting_email_confirmation___error,
|
4070 |
+
#setting_email_confirmation___success{
|
4071 |
+
display:none;
|
4072 |
+
}
|
4073 |
+
|
4074 |
+
.of-notice-small {
|
4075 |
+
border-left: 4px solid #00a0d2;
|
4076 |
+
margin: 5px 0 15px;
|
4077 |
+
padding: 1px 12px;
|
4078 |
+
background-color: #fafafa;
|
4079 |
+
display: inline-block;
|
4080 |
+
}
|
4081 |
+
|
4082 |
+
|
4083 |
+
/* weforms upsell dialog */
|
4084 |
+
.weforms-upsell-dialog .ui-dialog-titlebar {
|
4085 |
+
background: #2980b9;
|
4086 |
+
text-align: center;
|
4087 |
+
height: 55px;
|
4088 |
+
}
|
4089 |
+
.weforms-upsell-dialog .ui-dialog-titlebar img {
|
4090 |
+
height: 32px;
|
4091 |
+
display: inline-block;
|
4092 |
+
margin: 11px 0 0 0;
|
4093 |
+
}
|
4094 |
+
.weforms-upsell-dialog .ui-dialog-titlebar-close {
|
4095 |
+
color: #fff;
|
4096 |
+
height: 55px;
|
4097 |
+
}
|
4098 |
+
.weforms-upsell-dialog .ui-dialog-titlebar-close:hover {
|
4099 |
+
color: #333;
|
4100 |
+
}
|
4101 |
+
.weforms-upsell-dialog .ui-dialog-content {
|
4102 |
+
padding: 0;
|
4103 |
+
}
|
4104 |
+
.weforms-upsell-dialog .ui-tabs-nav {
|
4105 |
+
text-align: center;
|
4106 |
+
}
|
4107 |
+
.weforms-upsell-dialog .ui-tabs .upsell-tab {
|
4108 |
+
padding: 20px 15px;
|
4109 |
+
text-align: center;
|
4110 |
+
}
|
4111 |
+
.weforms-upsell-dialog a {
|
4112 |
+
color: #333;
|
4113 |
+
}
|
4114 |
+
.weforms-upsell-dialog a:hover {
|
4115 |
+
color: #000;
|
4116 |
+
}
|
4117 |
+
option.weforms-promo {
|
4118 |
+
color: #2980b9;
|
4119 |
+
}
|
4120 |
+
.weforms-pro-feature {
|
4121 |
+
display: inline-block;
|
4122 |
+
width: 32%;
|
4123 |
+
background: rgba(128, 128, 128, 0.03);
|
4124 |
+
margin: 0 5px 20px 5px;
|
4125 |
+
padding: 10px;
|
4126 |
+
box-sizing: border-box;
|
4127 |
+
vertical-align: top;
|
4128 |
+
position: relative;
|
4129 |
+
border-top: 1px solid #2980b9;
|
4130 |
+
}
|
4131 |
+
|
4132 |
+
.weforms-list {
|
4133 |
+
list-style-type: circle;
|
4134 |
+
list-style-position: outside;
|
4135 |
+
margin-left: 14px;
|
4136 |
+
}
|
4137 |
+
/* upsell dialog */
|
4138 |
+
|
admin/assets/images/weforms-logo-white.png
ADDED
Binary file
|
admin/assets/js/ot-admin.js
CHANGED
@@ -1288,6 +1288,81 @@
|
|
1288 |
|
1289 |
$(document).ready( function(){
|
1290 |
$('.hide-color-picker.ot-colorpicker-opacity').ot_wpColorPicker();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1291 |
});
|
1292 |
|
1293 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1288 |
|
1289 |
$(document).ready( function(){
|
1290 |
$('.hide-color-picker.ot-colorpicker-opacity').ot_wpColorPicker();
|
1291 |
+
|
1292 |
+
// upsell dialog init
|
1293 |
+
$('#weforms-upsell-dialog').dialog({'dialogClass': 'wp-dialog weforms-upsell-dialog',
|
1294 |
+
'modal': 1,
|
1295 |
+
'resizable': false,
|
1296 |
+
'title': 'Start Collecting Leads and Subscribers',
|
1297 |
+
'zIndex': 9999,
|
1298 |
+
'width': 550,
|
1299 |
+
'height': 'auto',
|
1300 |
+
'show': 'fade',
|
1301 |
+
'hide': 'fade',
|
1302 |
+
'open': function(event, ui) {
|
1303 |
+
ot_fix_dialog_close(event, ui);
|
1304 |
+
$(this).siblings().find('span.ui-dialog-title').html(option_tree.weforms_dialog_upsell_title);
|
1305 |
+
},
|
1306 |
+
'close': function(event, ui) { },
|
1307 |
+
'autoOpen': false,
|
1308 |
+
'closeOnEscape': true
|
1309 |
+
});
|
1310 |
+
|
1311 |
+
$(window).resize(function(e) {
|
1312 |
+
$('#weforms-upsell-dialog').dialog("option", "position", {my: "center", at: "center", of: window});
|
1313 |
+
});
|
1314 |
+
|
1315 |
+
|
1316 |
+
jQuery('#install-weforms').on('click',function(e){
|
1317 |
+
$('#weforms-upsell-dialog').dialog('close');
|
1318 |
+
jQuery('body').append('<div style="width:550px;height:450px; position:fixed;top:10%;left:50%;margin-left:-275px; color:#444; background-color: #fbfbfb;border:1px solid #DDD; border-radius:4px;box-shadow: 0px 0px 0px 4000px rgba(0, 0, 0, 0.85);z-index: 9999999;"><iframe src="' + option_tree.weforms_install_url + '" style="width:100%;height:100%;border:none;" /></div>');
|
1319 |
+
jQuery('#wpwrap').css('pointer-events', 'none');
|
1320 |
+
e.preventDefault();
|
1321 |
+
return false;
|
1322 |
+
});
|
1323 |
+
|
1324 |
+
$('#page-niftycs_options').on('click', '.open-weforms-upsell,#setting_weforms_sign_up_form_enable .on-off-switch', function(e) {
|
1325 |
+
e.stopPropagation();
|
1326 |
+
e.preventDefault();
|
1327 |
+
|
1328 |
+
$(this).blur();
|
1329 |
+
|
1330 |
+
$('#weforms-upsell-dialog').dialog('open');
|
1331 |
+
|
1332 |
+
return false;
|
1333 |
+
});
|
1334 |
+
|
1335 |
+
function ot_fix_dialog_close(event, ui) {
|
1336 |
+
jQuery('.ui-widget-overlay').bind('click', function(){
|
1337 |
+
jQuery('#' + event.target.id).dialog('close');
|
1338 |
+
});
|
1339 |
+
} // ot_fix_dialog_close
|
1340 |
+
|
1341 |
+
$('#page-niftycs_options').on('click', '.change_tab', function(e) {
|
1342 |
+
e.preventDefault();
|
1343 |
+
$(".wrap.settings-wrap .ui-tabs").tabs('option', 'active', $(this).data('tab'));
|
1344 |
+
|
1345 |
+
// get the link anchor and scroll to it
|
1346 |
+
var target = this.href.split('#')[1];
|
1347 |
+
if (target) {
|
1348 |
+
jQuery.scrollTo('#' + target, 500, {offset: {top:-100, left:0}});
|
1349 |
+
}
|
1350 |
+
|
1351 |
+
return false;
|
1352 |
+
});
|
1353 |
+
|
1354 |
});
|
1355 |
|
1356 |
+
|
1357 |
+
|
1358 |
+
|
1359 |
+
})( jQuery, window, document );
|
1360 |
+
|
1361 |
+
|
1362 |
+
/**
|
1363 |
+
* Copyright (c) 2007 Ariel Flesler - aflesler ○ gmail • com | https://github.com/flesler
|
1364 |
+
* Licensed under MIT
|
1365 |
+
* @author Ariel Flesler
|
1366 |
+
* @version 2.1.2
|
1367 |
+
*/
|
1368 |
+
;(function(f){"use strict";"function"===typeof define&&define.amd?define(["jquery"],f):"undefined"!==typeof module&&module.exports?module.exports=f(require("jquery")):f(jQuery)})(function($){"use strict";function n(a){return!a.nodeName||-1!==$.inArray(a.nodeName.toLowerCase(),["iframe","#document","html","body"])}function h(a){return $.isFunction(a)||$.isPlainObject(a)?a:{top:a,left:a}}var p=$.scrollTo=function(a,d,b){return $(window).scrollTo(a,d,b)};p.defaults={axis:"xy",duration:0,limit:!0};$.fn.scrollTo=function(a,d,b){"object"=== typeof d&&(b=d,d=0);"function"===typeof b&&(b={onAfter:b});"max"===a&&(a=9E9);b=$.extend({},p.defaults,b);d=d||b.duration;var u=b.queue&&1<b.axis.length;u&&(d/=2);b.offset=h(b.offset);b.over=h(b.over);return this.each(function(){function k(a){var k=$.extend({},b,{queue:!0,duration:d,complete:a&&function(){a.call(q,e,b)}});r.animate(f,k)}if(null!==a){var l=n(this),q=l?this.contentWindow||window:this,r=$(q),e=a,f={},t;switch(typeof e){case "number":case "string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(e)){e= h(e);break}e=l?$(e):$(e,q);case "object":if(e.length===0)return;if(e.is||e.style)t=(e=$(e)).offset()}var v=$.isFunction(b.offset)&&b.offset(q,e)||b.offset;$.each(b.axis.split(""),function(a,c){var d="x"===c?"Left":"Top",m=d.toLowerCase(),g="scroll"+d,h=r[g](),n=p.max(q,c);t?(f[g]=t[m]+(l?0:h-r.offset()[m]),b.margin&&(f[g]-=parseInt(e.css("margin"+d),10)||0,f[g]-=parseInt(e.css("border"+d+"Width"),10)||0),f[g]+=v[m]||0,b.over[m]&&(f[g]+=e["x"===c?"width":"height"]()*b.over[m])):(d=e[m],f[g]=d.slice&& "%"===d.slice(-1)?parseFloat(d)/100*n:d);b.limit&&/^\d+$/.test(f[g])&&(f[g]=0>=f[g]?0:Math.min(f[g],n));!a&&1<b.axis.length&&(h===f[g]?f={}:u&&(k(b.onAfterFirst),f={}))});k(b.onAfter)}})};p.max=function(a,d){var b="x"===d?"Width":"Height",h="scroll"+b;if(!n(a))return a[h]-$(a)[b.toLowerCase()]();var b="client"+b,k=a.ownerDocument||a.document,l=k.documentElement,k=k.body;return Math.max(l[h],k[h])-Math.min(l[b],k[b])};$.Tween.propHooks.scrollLeft=$.Tween.propHooks.scrollTop={get:function(a){return $(a.elem)[a.prop]()}, set:function(a){var d=this.get(a);if(a.options.interrupt&&a._last&&a._last!==d)return $(a.elem).stop();var b=Math.round(a.now);d!==b&&($(a.elem)[a.prop](b),a._last=this.get(a))}};return p});
|
admin/includes/ot-functions-admin.php
CHANGED
@@ -754,6 +754,8 @@ if ( ! function_exists( 'ot_admin_styles' ) ) {
|
|
754 |
/* load WP colorpicker */
|
755 |
wp_enqueue_style( 'wp-color-picker' );
|
756 |
|
|
|
|
|
757 |
/* load admin styles */
|
758 |
wp_enqueue_style( 'ot-admin-css', OT_URL . 'assets/css/ot-admin.css', false, OT_VERSION );
|
759 |
|
@@ -837,9 +839,16 @@ if ( ! function_exists( 'ot_admin_scripts' ) ) {
|
|
837 |
wp_enqueue_script( 'ot-postformats', OT_URL . 'assets/js/ot-postformats.js', array( 'jquery' ), '1.0.1' );
|
838 |
}
|
839 |
|
|
|
840 |
/* load all the required scripts */
|
|
|
|
|
841 |
wp_enqueue_script( 'ot-admin-js', OT_URL . 'assets/js/ot-admin.js', array( 'jquery', 'jquery-ui-tabs', 'jquery-ui-sortable', 'jquery-ui-slider', 'wp-color-picker', 'ace-editor', 'jquery-ui-datepicker', 'jquery-ui-timepicker' ), OT_VERSION );
|
842 |
|
|
|
|
|
|
|
|
|
843 |
/* create localized JS array */
|
844 |
$localized_array = array(
|
845 |
'ajax' => admin_url( 'admin-ajax.php' ),
|
@@ -859,7 +868,9 @@ if ( ! function_exists( 'ot_admin_scripts' ) ) {
|
|
859 |
'date_time_current' => __( 'Now', 'option-tree' ),
|
860 |
'date_close' => __( 'Close', 'option-tree' ),
|
861 |
'replace' => __( 'Featured Image', 'option-tree' ),
|
862 |
-
'with' => __( 'Image', 'option-tree' )
|
|
|
|
|
863 |
);
|
864 |
|
865 |
/* localized script attached to 'option_tree' */
|
754 |
/* load WP colorpicker */
|
755 |
wp_enqueue_style( 'wp-color-picker' );
|
756 |
|
757 |
+
wp_enqueue_style('wp-jquery-ui-dialog');
|
758 |
+
|
759 |
/* load admin styles */
|
760 |
wp_enqueue_style( 'ot-admin-css', OT_URL . 'assets/css/ot-admin.css', false, OT_VERSION );
|
761 |
|
839 |
wp_enqueue_script( 'ot-postformats', OT_URL . 'assets/js/ot-postformats.js', array( 'jquery' ), '1.0.1' );
|
840 |
}
|
841 |
|
842 |
+
|
843 |
/* load all the required scripts */
|
844 |
+
|
845 |
+
wp_enqueue_script('jquery-ui-dialog');
|
846 |
wp_enqueue_script( 'ot-admin-js', OT_URL . 'assets/js/ot-admin.js', array( 'jquery', 'jquery-ui-tabs', 'jquery-ui-sortable', 'jquery-ui-slider', 'wp-color-picker', 'ace-editor', 'jquery-ui-datepicker', 'jquery-ui-timepicker' ), OT_VERSION );
|
847 |
|
848 |
+
|
849 |
+
|
850 |
+
|
851 |
+
|
852 |
/* create localized JS array */
|
853 |
$localized_array = array(
|
854 |
'ajax' => admin_url( 'admin-ajax.php' ),
|
868 |
'date_time_current' => __( 'Now', 'option-tree' ),
|
869 |
'date_close' => __( 'Close', 'option-tree' ),
|
870 |
'replace' => __( 'Featured Image', 'option-tree' ),
|
871 |
+
'with' => __( 'Image', 'option-tree' ),
|
872 |
+
'weforms_dialog_upsell_title' => '<img alt="' . __('weForms', 'option-tree') . '" title="' . __('weForms', 'option-tree') . '" src="' . OT_URL . '/assets/images/weforms-logo-white.png' . '">',
|
873 |
+
'weforms_install_url' => add_query_arg(array('action' => 'install_weforms'), admin_url('admin.php')),
|
874 |
);
|
875 |
|
876 |
/* localized script attached to 'option_tree' */
|
admin/includes/ot-functions-option-types.php
CHANGED
@@ -886,6 +886,8 @@ if ( ! function_exists( 'ot_type_custom_post_type_select' ) ) {
|
|
886 |
|
887 |
}
|
888 |
|
|
|
|
|
889 |
/**
|
890 |
* Date Picker option type.
|
891 |
*
|
@@ -3229,5 +3231,66 @@ if ( ! function_exists( 'ot_type_upload' ) ) {
|
|
3229 |
|
3230 |
}
|
3231 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3232 |
/* End of file ot-functions-option-types.php */
|
3233 |
/* Location: ./includes/ot-functions-option-types.php */
|
886 |
|
887 |
}
|
888 |
|
889 |
+
|
890 |
+
|
891 |
/**
|
892 |
* Date Picker option type.
|
893 |
*
|
3231 |
|
3232 |
}
|
3233 |
|
3234 |
+
|
3235 |
+
/**
|
3236 |
+
* weForms option type.
|
3237 |
+
*
|
3238 |
+
* See @ot_display_by_type to see the full list of available arguments.
|
3239 |
+
*
|
3240 |
+
* @param array An array of arguments.
|
3241 |
+
* @return string
|
3242 |
+
*
|
3243 |
+
* @access public
|
3244 |
+
* @since 2.0
|
3245 |
+
*/
|
3246 |
+
if ( ! function_exists( 'ot_type_weforms' ) ) {
|
3247 |
+
|
3248 |
+
function ot_type_weforms( $args = array() ) {
|
3249 |
+
|
3250 |
+
/* turns arguments array into variables */
|
3251 |
+
extract( $args );
|
3252 |
+
|
3253 |
+
/* verify a description */
|
3254 |
+
$has_desc = $field_desc ? true : false;
|
3255 |
+
|
3256 |
+
/* format setting outer wrapper */
|
3257 |
+
echo '<div class="format-setting type-custom-post-type-select ' . ( $has_desc ? 'has-desc' : 'no-desc' ) . '">';
|
3258 |
+
|
3259 |
+
/* description */
|
3260 |
+
echo '<div class="description"> '.$field_desc.' </div>';
|
3261 |
+
|
3262 |
+
/* format setting inner wrapper */
|
3263 |
+
echo '<div class="format-setting-inner">';
|
3264 |
+
|
3265 |
+
/* build category */
|
3266 |
+
echo '<select name="' . esc_attr( $field_name ) . '" id="' . esc_attr( $field_id ) . '" class="option-tree-ui-select ' . $field_class . '">';
|
3267 |
+
|
3268 |
+
echo '<option value="-1">' . __( 'Do not show a form', 'option-tree' ) . '</option>';
|
3269 |
+
|
3270 |
+
if(class_exists('WeForms_Form_Manager')){
|
3271 |
+
$weforms_forms = new WeForms_Form_Manager;
|
3272 |
+
$weforms = $weforms_forms->get_forms();
|
3273 |
+
if(count($weforms)>0){
|
3274 |
+
foreach($weforms['forms'] as $weform){
|
3275 |
+
echo '<option value="' . esc_attr( $weform->id ) . '"' . selected( $field_value, $weform->id, false ) . '>' . $weform->name . '</option>';
|
3276 |
+
}
|
3277 |
+
} else {
|
3278 |
+
echo '<option value="">' . __( 'No weForms Found', 'option-tree' ) . '</option>';
|
3279 |
+
}
|
3280 |
+
}
|
3281 |
+
|
3282 |
+
echo '</select>';
|
3283 |
+
echo '<br><br><p>Create, edit, style and manage forms on the <a href="admin.php?page=weforms#/">weForms page</a>.</p>';
|
3284 |
+
|
3285 |
+
echo '</div>';
|
3286 |
+
|
3287 |
+
echo '</div>';
|
3288 |
+
|
3289 |
+
}
|
3290 |
+
|
3291 |
+
}
|
3292 |
+
|
3293 |
+
|
3294 |
+
|
3295 |
/* End of file ot-functions-option-types.php */
|
3296 |
/* Location: ./includes/ot-functions-option-types.php */
|
admin/includes/ot-functions-settings-page.php
CHANGED
@@ -568,5 +568,8 @@ if ( ! function_exists( 'ot_type_modify_layouts' ) ) {
|
|
568 |
|
569 |
}
|
570 |
|
|
|
|
|
|
|
571 |
/* End of file ot-functions-settings-page.php */
|
572 |
/* Location: ./includes/ot-functions-settings-page.php */
|
568 |
|
569 |
}
|
570 |
|
571 |
+
|
572 |
+
|
573 |
+
|
574 |
/* End of file ot-functions-settings-page.php */
|
575 |
/* Location: ./includes/ot-functions-settings-page.php */
|
admin/includes/ot-settings-api.php
CHANGED
@@ -308,10 +308,38 @@ if ( ! class_exists( 'OT_Settings' ) ) {
|
|
308 |
$dismiss_url = add_query_arg(array('action' => 'nifty_dismiss_notice', 'notice' => 'rate', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
|
309 |
echo '<div id="rate-plugin">Please help us out by rating Nifty. It only takes a second & it helps to keep the plugin going! <b>Thank you!</b><p><a target="_blank" href="https://wordpress.org/support/plugin/nifty-coming-soon-and-under-construction-page/reviews/#new-post" class="button button-primary">I want to help! Let\'s rate the plugin!</a> <a href="' . $dismiss_url . '">I\'ve already rated Nifty</a></p></div>';
|
310 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
echo '</div>';
|
312 |
|
313 |
|
314 |
|
|
|
315 |
/* Navigation */
|
316 |
echo '<div class="ui-tabs">';
|
317 |
|
@@ -1059,4 +1087,4 @@ if ( ! function_exists( 'ot_register_settings' ) ) {
|
|
1059 |
}
|
1060 |
|
1061 |
/* End of file ot-settings-api.php */
|
1062 |
-
/* Location: ./includes/ot-settings-api.php */
|
308 |
$dismiss_url = add_query_arg(array('action' => 'nifty_dismiss_notice', 'notice' => 'rate', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
|
309 |
echo '<div id="rate-plugin">Please help us out by rating Nifty. It only takes a second & it helps to keep the plugin going! <b>Thank you!</b><p><a target="_blank" href="https://wordpress.org/support/plugin/nifty-coming-soon-and-under-construction-page/reviews/#new-post" class="button button-primary">I want to help! Let\'s rate the plugin!</a> <a href="' . $dismiss_url . '">I\'ve already rated Nifty</a></p></div>';
|
310 |
}
|
311 |
+
|
312 |
+
/*
|
313 |
+
echo '<div class="of-notice-small"><p>All themes come with <b>optin boxes</b> & <b>optin popups</b> that you can connect to Mailchimp and other autoresponders to collect leads & subscribers.';
|
314 |
+
if (ot_is_weforms_active()) {
|
315 |
+
echo '<br>Configure them in <a href="#weforms_sign_up_form" class="change_tab" data-tab="0">General Settings - weForms</a> settings.';
|
316 |
+
} else {
|
317 |
+
echo '<br>To enable this feature <a class="open-weforms-upsell" href="#">install the free weForms plugin</a>.';
|
318 |
+
}
|
319 |
+
echo '</p></div>';
|
320 |
+
*/
|
321 |
+
|
322 |
+
// weforms install dialog
|
323 |
+
echo '<div id="weforms-upsell-dialog" style="display: none;" title="weForms"><span class="ui-helper-hidden-accessible"><input type="text"/></span>';
|
324 |
+
echo '<div style="padding: 20px; font-size: 14px;">';
|
325 |
+
echo '<ul class="weforms-list">';
|
326 |
+
echo '<li>free plugin that integrates with Nifty</li>';
|
327 |
+
echo '<li>instantly create any kind of form you need</li>';
|
328 |
+
echo '<li>collect leads & subscribers</li>';
|
329 |
+
echo '<li>easily connect with leading autoresponder services</li>';
|
330 |
+
echo '<li>completely customize the look & feel of your form</li>';
|
331 |
+
echo '</ul>';
|
332 |
+
echo '<p class="upsell-footer"><a class="button button-primary" id="install-weforms">Install & activate weForms to create any form you need</a></p>';
|
333 |
+
echo '</div>';
|
334 |
+
echo '</div>'; // weforms install dialog
|
335 |
+
|
336 |
+
|
337 |
+
|
338 |
echo '</div>';
|
339 |
|
340 |
|
341 |
|
342 |
+
|
343 |
/* Navigation */
|
344 |
echo '<div class="ui-tabs">';
|
345 |
|
1087 |
}
|
1088 |
|
1089 |
/* End of file ot-settings-api.php */
|
1090 |
+
/* Location: ./includes/ot-settings-api.php */
|
admin/main-options.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
*/
|
10 |
|
11 |
add_action( 'init', 'nifty_cs_custom_theme_options' );
|
12 |
-
|
13 |
/**
|
14 |
* Build the custom settings & update OptionTree.
|
15 |
*/
|
@@ -55,9 +55,9 @@ function admin_action_dismiss_notice() {
|
|
55 |
|
56 |
|
57 |
function ot_type_custom_themes() {
|
58 |
-
$themes =
|
59 |
array (
|
60 |
-
0 =>
|
61 |
array (
|
62 |
'type' => 'CSMM PRO',
|
63 |
'version' => '5.005',
|
@@ -68,7 +68,7 @@ function ot_type_custom_themes() {
|
|
68 |
'status' => 'pro',
|
69 |
'name_clean' => 'aeroplane-company',
|
70 |
),
|
71 |
-
1 =>
|
72 |
array (
|
73 |
'type' => 'CSMM PRO',
|
74 |
'version' => '15.17',
|
@@ -79,7 +79,7 @@ function ot_type_custom_themes() {
|
|
79 |
'status' => 'agency',
|
80 |
'name_clean' => 'air-balloon',
|
81 |
),
|
82 |
-
2 =>
|
83 |
array (
|
84 |
'type' => 'CSMM PRO',
|
85 |
'version' => '15.05',
|
@@ -90,7 +90,7 @@ function ot_type_custom_themes() {
|
|
90 |
'status' => 'pro',
|
91 |
'name_clean' => 'animated-clock',
|
92 |
),
|
93 |
-
3 =>
|
94 |
array (
|
95 |
'type' => 'CSMM PRO',
|
96 |
'version' => '15.17',
|
@@ -101,7 +101,7 @@ function ot_type_custom_themes() {
|
|
101 |
'status' => 'agency',
|
102 |
'name_clean' => 'architecture',
|
103 |
),
|
104 |
-
4 =>
|
105 |
array (
|
106 |
'type' => 'CSMM PRO',
|
107 |
'version' => '15.17',
|
@@ -112,7 +112,7 @@ function ot_type_custom_themes() {
|
|
112 |
'status' => 'agency',
|
113 |
'name_clean' => 'auto-service',
|
114 |
),
|
115 |
-
5 =>
|
116 |
array (
|
117 |
'type' => 'CSMM PRO',
|
118 |
'version' => '15.17',
|
@@ -123,7 +123,7 @@ function ot_type_custom_themes() {
|
|
123 |
'status' => 'pro',
|
124 |
'name_clean' => 'beach',
|
125 |
),
|
126 |
-
6 =>
|
127 |
array (
|
128 |
'type' => 'CSMM PRO',
|
129 |
'version' => '5.05',
|
@@ -134,7 +134,7 @@ function ot_type_custom_themes() {
|
|
134 |
'status' => 'agency',
|
135 |
'name_clean' => 'bicycle-race',
|
136 |
),
|
137 |
-
7 =>
|
138 |
array (
|
139 |
'type' => 'CSMM PRO',
|
140 |
'version' => '5.005',
|
@@ -145,7 +145,7 @@ function ot_type_custom_themes() {
|
|
145 |
'status' => 'agency',
|
146 |
'name_clean' => 'bitcoin-miners',
|
147 |
),
|
148 |
-
8 =>
|
149 |
array (
|
150 |
'type' => 'CSMM PRO',
|
151 |
'version' => '15.17',
|
@@ -156,7 +156,7 @@ function ot_type_custom_themes() {
|
|
156 |
'status' => 'agency',
|
157 |
'name_clean' => 'blogging',
|
158 |
),
|
159 |
-
9 =>
|
160 |
array (
|
161 |
'type' => 'CSMM PRO',
|
162 |
'version' => '5.005',
|
@@ -167,7 +167,7 @@ function ot_type_custom_themes() {
|
|
167 |
'status' => 'agency',
|
168 |
'name_clean' => 'book-lovers',
|
169 |
),
|
170 |
-
10 =>
|
171 |
array (
|
172 |
'type' => 'CSMM PRO',
|
173 |
'version' => '5.001',
|
@@ -178,7 +178,7 @@ function ot_type_custom_themes() {
|
|
178 |
'status' => 'agency',
|
179 |
'name_clean' => 'business-company',
|
180 |
),
|
181 |
-
11 =>
|
182 |
array (
|
183 |
'type' => 'CSMM PRO',
|
184 |
'version' => '15.17',
|
@@ -189,7 +189,7 @@ function ot_type_custom_themes() {
|
|
189 |
'status' => 'agency',
|
190 |
'name_clean' => 'business',
|
191 |
),
|
192 |
-
12 =>
|
193 |
array (
|
194 |
'type' => 'CSMM PRO',
|
195 |
'version' => '15.17',
|
@@ -200,7 +200,7 @@ function ot_type_custom_themes() {
|
|
200 |
'status' => 'agency',
|
201 |
'name_clean' => 'cityscape',
|
202 |
),
|
203 |
-
13 =>
|
204 |
array (
|
205 |
'type' => 'CSMM PRO',
|
206 |
'version' => '5.14',
|
@@ -211,7 +211,7 @@ function ot_type_custom_themes() {
|
|
211 |
'status' => 'agency',
|
212 |
'name_clean' => 'clouds-screensaver-video',
|
213 |
),
|
214 |
-
14 =>
|
215 |
array (
|
216 |
'type' => 'CSMM PRO',
|
217 |
'version' => '5.005',
|
@@ -222,7 +222,7 @@ function ot_type_custom_themes() {
|
|
222 |
'status' => 'agency',
|
223 |
'name_clean' => 'coffee-shop',
|
224 |
),
|
225 |
-
15 =>
|
226 |
array (
|
227 |
'type' => 'CSMM PRO',
|
228 |
'version' => '15.17',
|
@@ -233,7 +233,7 @@ function ot_type_custom_themes() {
|
|
233 |
'status' => 'agency',
|
234 |
'name_clean' => 'cold-lake',
|
235 |
),
|
236 |
-
16 =>
|
237 |
array (
|
238 |
'type' => 'CSMM PRO',
|
239 |
'version' => '5.005',
|
@@ -244,7 +244,7 @@ function ot_type_custom_themes() {
|
|
244 |
'status' => 'pro',
|
245 |
'name_clean' => 'default',
|
246 |
),
|
247 |
-
17 =>
|
248 |
array (
|
249 |
'type' => 'CSMM PRO',
|
250 |
'version' => '15.17',
|
@@ -255,7 +255,7 @@ function ot_type_custom_themes() {
|
|
255 |
'status' => 'agency',
|
256 |
'name_clean' => 'dental-clinic',
|
257 |
),
|
258 |
-
18 =>
|
259 |
array (
|
260 |
'type' => 'CSMM PRO',
|
261 |
'version' => '5.001',
|
@@ -266,7 +266,7 @@ function ot_type_custom_themes() {
|
|
266 |
'status' => 'agency',
|
267 |
'name_clean' => 'dog-training-and-behavior-consulting',
|
268 |
),
|
269 |
-
19 =>
|
270 |
array (
|
271 |
'type' => 'CSMM PRO',
|
272 |
'version' => '15.17',
|
@@ -277,7 +277,7 @@ function ot_type_custom_themes() {
|
|
277 |
'status' => 'pro',
|
278 |
'name_clean' => 'fall-video',
|
279 |
),
|
280 |
-
20 =>
|
281 |
array (
|
282 |
'type' => 'CSMM PRO',
|
283 |
'version' => '15.17',
|
@@ -288,7 +288,7 @@ function ot_type_custom_themes() {
|
|
288 |
'status' => 'agency',
|
289 |
'name_clean' => 'fashion',
|
290 |
),
|
291 |
-
21 =>
|
292 |
array (
|
293 |
'type' => 'CSMM PRO',
|
294 |
'version' => '15.05',
|
@@ -299,7 +299,7 @@ function ot_type_custom_themes() {
|
|
299 |
'status' => 'agency',
|
300 |
'name_clean' => 'flower-shop',
|
301 |
),
|
302 |
-
22 =>
|
303 |
array (
|
304 |
'type' => 'CSMM PRO',
|
305 |
'version' => '15.17',
|
@@ -310,7 +310,7 @@ function ot_type_custom_themes() {
|
|
310 |
'status' => 'pro',
|
311 |
'name_clean' => 'food-blog',
|
312 |
),
|
313 |
-
23 =>
|
314 |
array (
|
315 |
'type' => 'CSMM PRO',
|
316 |
'version' => '15.17',
|
@@ -321,7 +321,7 @@ function ot_type_custom_themes() {
|
|
321 |
'status' => 'pro',
|
322 |
'name_clean' => 'football',
|
323 |
),
|
324 |
-
24 =>
|
325 |
array (
|
326 |
'type' => 'CSMM PRO',
|
327 |
'version' => '15.17',
|
@@ -332,7 +332,7 @@ function ot_type_custom_themes() {
|
|
332 |
'status' => 'pro',
|
333 |
'name_clean' => 'halloween',
|
334 |
),
|
335 |
-
25 =>
|
336 |
array (
|
337 |
'type' => 'CSMM PRO',
|
338 |
'version' => '15.17',
|
@@ -343,7 +343,7 @@ function ot_type_custom_themes() {
|
|
343 |
'status' => 'pro',
|
344 |
'name_clean' => 'holiday-resort',
|
345 |
),
|
346 |
-
26 =>
|
347 |
array (
|
348 |
'type' => 'CSMM PRO',
|
349 |
'version' => '15.17',
|
@@ -354,7 +354,7 @@ function ot_type_custom_themes() {
|
|
354 |
'status' => 'pro',
|
355 |
'name_clean' => 'homemade-chocolate-gifts',
|
356 |
),
|
357 |
-
27 =>
|
358 |
array (
|
359 |
'type' => 'CSMM PRO',
|
360 |
'version' => '15.05',
|
@@ -365,7 +365,7 @@ function ot_type_custom_themes() {
|
|
365 |
'status' => 'agency',
|
366 |
'name_clean' => 'interior-design',
|
367 |
),
|
368 |
-
28 =>
|
369 |
array (
|
370 |
'type' => 'CSMM PRO',
|
371 |
'version' => '5.14',
|
@@ -376,7 +376,7 @@ function ot_type_custom_themes() {
|
|
376 |
'status' => 'agency',
|
377 |
'name_clean' => 'journey-video',
|
378 |
),
|
379 |
-
29 =>
|
380 |
array (
|
381 |
'type' => 'CSMM PRO',
|
382 |
'version' => '15.17',
|
@@ -387,7 +387,7 @@ function ot_type_custom_themes() {
|
|
387 |
'status' => 'pro',
|
388 |
'name_clean' => 'lego-bricks',
|
389 |
),
|
390 |
-
30 =>
|
391 |
array (
|
392 |
'type' => 'CSMM PRO',
|
393 |
'version' => '15.17',
|
@@ -398,7 +398,7 @@ function ot_type_custom_themes() {
|
|
398 |
'status' => 'agency',
|
399 |
'name_clean' => 'loneliness',
|
400 |
),
|
401 |
-
31 =>
|
402 |
array (
|
403 |
'type' => 'CSMM PRO',
|
404 |
'version' => '15.17',
|
@@ -409,7 +409,7 @@ function ot_type_custom_themes() {
|
|
409 |
'status' => 'agency',
|
410 |
'name_clean' => 'lonely-road',
|
411 |
),
|
412 |
-
32 =>
|
413 |
array (
|
414 |
'type' => 'CSMM PRO',
|
415 |
'version' => '15.17',
|
@@ -420,7 +420,7 @@ function ot_type_custom_themes() {
|
|
420 |
'status' => 'pro',
|
421 |
'name_clean' => 'luxury-car',
|
422 |
),
|
423 |
-
33 =>
|
424 |
array (
|
425 |
'type' => 'CSMM PRO',
|
426 |
'version' => '5.005',
|
@@ -431,7 +431,7 @@ function ot_type_custom_themes() {
|
|
431 |
'status' => 'pro',
|
432 |
'name_clean' => 'maintenance-mode',
|
433 |
),
|
434 |
-
34 =>
|
435 |
array (
|
436 |
'type' => 'CSMM PRO',
|
437 |
'version' => '5.005',
|
@@ -442,7 +442,7 @@ function ot_type_custom_themes() {
|
|
442 |
'status' => 'agency',
|
443 |
'name_clean' => 'makeup-artist-training',
|
444 |
),
|
445 |
-
35 =>
|
446 |
array (
|
447 |
'type' => 'CSMM PRO',
|
448 |
'version' => '15.17',
|
@@ -453,7 +453,7 @@ function ot_type_custom_themes() {
|
|
453 |
'status' => 'pro',
|
454 |
'name_clean' => 'misty-forest-video',
|
455 |
),
|
456 |
-
36 =>
|
457 |
array (
|
458 |
'type' => 'CSMM PRO',
|
459 |
'version' => '15.17',
|
@@ -464,7 +464,7 @@ function ot_type_custom_themes() {
|
|
464 |
'status' => 'agency',
|
465 |
'name_clean' => 'mobile-designer',
|
466 |
),
|
467 |
-
37 =>
|
468 |
array (
|
469 |
'type' => 'CSMM PRO',
|
470 |
'version' => '5.005',
|
@@ -475,7 +475,7 @@ function ot_type_custom_themes() {
|
|
475 |
'status' => 'pro',
|
476 |
'name_clean' => 'modern-blog',
|
477 |
),
|
478 |
-
38 =>
|
479 |
array (
|
480 |
'type' => 'CSMM PRO',
|
481 |
'version' => '15.05',
|
@@ -486,7 +486,7 @@ function ot_type_custom_themes() {
|
|
486 |
'status' => 'agency',
|
487 |
'name_clean' => 'modern-office',
|
488 |
),
|
489 |
-
39 =>
|
490 |
array (
|
491 |
'type' => 'CSMM PRO',
|
492 |
'version' => '15.17',
|
@@ -497,7 +497,7 @@ function ot_type_custom_themes() {
|
|
497 |
'status' => 'pro',
|
498 |
'name_clean' => 'mountain-slide',
|
499 |
),
|
500 |
-
40 =>
|
501 |
array (
|
502 |
'type' => 'CSMM PRO',
|
503 |
'version' => '5.05',
|
@@ -508,7 +508,7 @@ function ot_type_custom_themes() {
|
|
508 |
'status' => 'pro',
|
509 |
'name_clean' => 'mountain',
|
510 |
),
|
511 |
-
41 =>
|
512 |
array (
|
513 |
'type' => 'CSMM PRO',
|
514 |
'version' => '15.17',
|
@@ -519,7 +519,7 @@ function ot_type_custom_themes() {
|
|
519 |
'status' => 'pro',
|
520 |
'name_clean' => 'movie-trailer-video',
|
521 |
),
|
522 |
-
42 =>
|
523 |
array (
|
524 |
'type' => 'CSMM PRO',
|
525 |
'version' => '15.05',
|
@@ -530,7 +530,7 @@ function ot_type_custom_themes() {
|
|
530 |
'status' => 'agency',
|
531 |
'name_clean' => 'nature',
|
532 |
),
|
533 |
-
43 =>
|
534 |
array (
|
535 |
'type' => 'CSMM PRO',
|
536 |
'version' => '5.14',
|
@@ -541,7 +541,7 @@ function ot_type_custom_themes() {
|
|
541 |
'status' => 'agency',
|
542 |
'name_clean' => 'office-meeting-video',
|
543 |
),
|
544 |
-
44 =>
|
545 |
array (
|
546 |
'type' => 'CSMM PRO',
|
547 |
'version' => '15.05',
|
@@ -552,7 +552,7 @@ function ot_type_custom_themes() {
|
|
552 |
'status' => 'agency',
|
553 |
'name_clean' => 'office-theme',
|
554 |
),
|
555 |
-
45 =>
|
556 |
array (
|
557 |
'type' => 'CSMM PRO',
|
558 |
'version' => '5.005',
|
@@ -563,7 +563,7 @@ function ot_type_custom_themes() {
|
|
563 |
'status' => 'agency',
|
564 |
'name_clean' => 'online-learning',
|
565 |
),
|
566 |
-
46 =>
|
567 |
array (
|
568 |
'type' => 'CSMM PRO',
|
569 |
'version' => '15.17',
|
@@ -574,7 +574,7 @@ function ot_type_custom_themes() {
|
|
574 |
'status' => 'pro',
|
575 |
'name_clean' => 'pancake-house',
|
576 |
),
|
577 |
-
47 =>
|
578 |
array (
|
579 |
'type' => 'CSMM PRO',
|
580 |
'version' => '15.17',
|
@@ -585,7 +585,7 @@ function ot_type_custom_themes() {
|
|
585 |
'status' => 'pro',
|
586 |
'name_clean' => 'parenting',
|
587 |
),
|
588 |
-
48 =>
|
589 |
array (
|
590 |
'type' => 'CSMM PRO',
|
591 |
'version' => '15.17',
|
@@ -596,7 +596,7 @@ function ot_type_custom_themes() {
|
|
596 |
'status' => 'pro',
|
597 |
'name_clean' => 'passage',
|
598 |
),
|
599 |
-
49 =>
|
600 |
array (
|
601 |
'type' => 'CSMM PRO',
|
602 |
'version' => '15.17',
|
@@ -607,7 +607,7 @@ function ot_type_custom_themes() {
|
|
607 |
'status' => 'agency',
|
608 |
'name_clean' => 'peaceful-river',
|
609 |
),
|
610 |
-
50 =>
|
611 |
array (
|
612 |
'type' => 'CSMM PRO',
|
613 |
'version' => '15.17',
|
@@ -618,7 +618,7 @@ function ot_type_custom_themes() {
|
|
618 |
'status' => 'agency',
|
619 |
'name_clean' => 'photography',
|
620 |
),
|
621 |
-
51 =>
|
622 |
array (
|
623 |
'type' => 'CSMM PRO',
|
624 |
'version' => '15.17',
|
@@ -629,7 +629,7 @@ function ot_type_custom_themes() {
|
|
629 |
'status' => 'agency',
|
630 |
'name_clean' => 'running-blog',
|
631 |
),
|
632 |
-
52 =>
|
633 |
array (
|
634 |
'type' => 'CSMM PRO',
|
635 |
'version' => '15.14',
|
@@ -640,7 +640,7 @@ function ot_type_custom_themes() {
|
|
640 |
'status' => 'pro',
|
641 |
'name_clean' => 'running-video',
|
642 |
),
|
643 |
-
53 =>
|
644 |
array (
|
645 |
'type' => 'CSMM PRO',
|
646 |
'version' => '5.005',
|
@@ -651,7 +651,7 @@ function ot_type_custom_themes() {
|
|
651 |
'status' => 'agency',
|
652 |
'name_clean' => 'shoes-store',
|
653 |
),
|
654 |
-
54 =>
|
655 |
array (
|
656 |
'type' => 'CSMM PRO',
|
657 |
'version' => '15.17',
|
@@ -662,7 +662,7 @@ function ot_type_custom_themes() {
|
|
662 |
'status' => 'pro',
|
663 |
'name_clean' => 'simple-beige-design',
|
664 |
),
|
665 |
-
55 =>
|
666 |
array (
|
667 |
'type' => 'CSMM PRO',
|
668 |
'version' => '15.17',
|
@@ -673,7 +673,7 @@ function ot_type_custom_themes() {
|
|
673 |
'status' => 'pro',
|
674 |
'name_clean' => 'snow-screensaver-video',
|
675 |
),
|
676 |
-
56 =>
|
677 |
array (
|
678 |
'type' => 'CSMM PRO',
|
679 |
'version' => '15.17',
|
@@ -684,7 +684,7 @@ function ot_type_custom_themes() {
|
|
684 |
'status' => 'pro',
|
685 |
'name_clean' => 'snowboarding-blog',
|
686 |
),
|
687 |
-
57 =>
|
688 |
array (
|
689 |
'type' => 'CSMM PRO',
|
690 |
'version' => '15.17',
|
@@ -695,7 +695,7 @@ function ot_type_custom_themes() {
|
|
695 |
'status' => 'pro',
|
696 |
'name_clean' => 'snowy-mountain',
|
697 |
),
|
698 |
-
58 =>
|
699 |
array (
|
700 |
'type' => 'CSMM PRO',
|
701 |
'version' => '15.17',
|
@@ -706,7 +706,7 @@ function ot_type_custom_themes() {
|
|
706 |
'status' => 'agency',
|
707 |
'name_clean' => 'spring',
|
708 |
),
|
709 |
-
59 =>
|
710 |
array (
|
711 |
'type' => 'CSMM PRO',
|
712 |
'version' => '15.17',
|
@@ -717,7 +717,7 @@ function ot_type_custom_themes() {
|
|
717 |
'status' => 'pro',
|
718 |
'name_clean' => 'stylish-workplace',
|
719 |
),
|
720 |
-
60 =>
|
721 |
array (
|
722 |
'type' => 'CSMM PRO',
|
723 |
'version' => '15.17',
|
@@ -728,7 +728,7 @@ function ot_type_custom_themes() {
|
|
728 |
'status' => 'agency',
|
729 |
'name_clean' => 'the-big-city-newsletter',
|
730 |
),
|
731 |
-
61 =>
|
732 |
array (
|
733 |
'type' => 'CSMM PRO',
|
734 |
'version' => '5.14',
|
@@ -739,7 +739,7 @@ function ot_type_custom_themes() {
|
|
739 |
'status' => 'pro',
|
740 |
'name_clean' => 'the-sunny-view',
|
741 |
),
|
742 |
-
62 =>
|
743 |
array (
|
744 |
'type' => 'CSMM PRO',
|
745 |
'version' => '5.001',
|
@@ -750,7 +750,7 @@ function ot_type_custom_themes() {
|
|
750 |
'status' => 'pro',
|
751 |
'name_clean' => 'travel-agency',
|
752 |
),
|
753 |
-
63 =>
|
754 |
array (
|
755 |
'type' => 'CSMM PRO',
|
756 |
'version' => '15.05',
|
@@ -761,7 +761,7 @@ function ot_type_custom_themes() {
|
|
761 |
'status' => 'agency',
|
762 |
'name_clean' => 'travel-blog',
|
763 |
),
|
764 |
-
64 =>
|
765 |
array (
|
766 |
'type' => 'CSMM PRO',
|
767 |
'version' => '15.17',
|
@@ -772,7 +772,7 @@ function ot_type_custom_themes() {
|
|
772 |
'status' => 'agency',
|
773 |
'name_clean' => 'tulips',
|
774 |
),
|
775 |
-
65 =>
|
776 |
array (
|
777 |
'type' => 'CSMM PRO',
|
778 |
'version' => '5.001',
|
@@ -783,7 +783,7 @@ function ot_type_custom_themes() {
|
|
783 |
'status' => 'pro',
|
784 |
'name_clean' => 'video-production',
|
785 |
),
|
786 |
-
66 =>
|
787 |
array (
|
788 |
'type' => 'CSMM PRO',
|
789 |
'version' => '15.17',
|
@@ -794,7 +794,7 @@ function ot_type_custom_themes() {
|
|
794 |
'status' => 'pro',
|
795 |
'name_clean' => 'walking-away-video',
|
796 |
),
|
797 |
-
67 =>
|
798 |
array (
|
799 |
'type' => 'CSMM PRO',
|
800 |
'version' => '5.005',
|
@@ -805,7 +805,7 @@ function ot_type_custom_themes() {
|
|
805 |
'status' => 'agency',
|
806 |
'name_clean' => 'webinar',
|
807 |
),
|
808 |
-
68 =>
|
809 |
array (
|
810 |
'type' => 'CSMM PRO',
|
811 |
'version' => '5.005',
|
@@ -816,7 +816,7 @@ function ot_type_custom_themes() {
|
|
816 |
'status' => 'agency',
|
817 |
'name_clean' => 'wedding-blog',
|
818 |
),
|
819 |
-
69 =>
|
820 |
array (
|
821 |
'type' => 'CSMM PRO',
|
822 |
'version' => '15.17',
|
@@ -827,7 +827,7 @@ function ot_type_custom_themes() {
|
|
827 |
'status' => 'pro',
|
828 |
'name_clean' => 'white-orchids',
|
829 |
),
|
830 |
-
70 =>
|
831 |
array (
|
832 |
'type' => 'CSMM PRO',
|
833 |
'version' => '5.14',
|
@@ -838,7 +838,7 @@ function ot_type_custom_themes() {
|
|
838 |
'status' => 'agency',
|
839 |
'name_clean' => 'working-out',
|
840 |
),
|
841 |
-
71 =>
|
842 |
array (
|
843 |
'type' => 'CSMM PRO',
|
844 |
'version' => '15.05',
|
@@ -849,7 +849,7 @@ function ot_type_custom_themes() {
|
|
849 |
'status' => 'agency',
|
850 |
'name_clean' => 'workplace',
|
851 |
),
|
852 |
-
72 =>
|
853 |
array (
|
854 |
'type' => 'CSMM PRO',
|
855 |
'version' => '15.17',
|
@@ -924,6 +924,27 @@ function ot_type_custom_themes() {
|
|
924 |
$google_webfonts_array[$font['family']]['value'] = $font['family'];
|
925 |
}
|
926 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
927 |
|
928 |
$custom_settings = array(
|
929 |
'contextual_help' => array(
|
@@ -1005,22 +1026,14 @@ function ot_type_custom_themes() {
|
|
1005 |
),
|
1006 |
array(
|
1007 |
'id' => 'enable_preloader',
|
1008 |
-
'label' => 'Enable
|
1009 |
-
'desc' => 'Enable of disable
|
1010 |
-
'std' => 'on',
|
1011 |
-
'type' => 'on-off',
|
1012 |
-
'section' => 'general_settings',
|
1013 |
-
|
1014 |
-
),
|
1015 |
-
array(
|
1016 |
-
'id' => 'enable_sign_up_form',
|
1017 |
-
'label' => 'Enable built in Sign-up form',
|
1018 |
-
'desc' => 'If you want to use custom Sign-up form option below, you need to turn this option to off.',
|
1019 |
'std' => 'on',
|
1020 |
'type' => 'on-off',
|
1021 |
'section' => 'general_settings',
|
1022 |
|
1023 |
),
|
|
|
1024 |
array(
|
1025 |
'id' => 'insert_custom_signup_form',
|
1026 |
'label' => 'Insert custom Sign-up form',
|
@@ -1838,3 +1851,90 @@ function ot_type_custom_themes() {
|
|
1838 |
}
|
1839 |
|
1840 |
add_filter( 'ot_show_pages', '__return_false' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
*/
|
10 |
|
11 |
add_action( 'init', 'nifty_cs_custom_theme_options' );
|
12 |
+
add_action( 'admin_action_install_weforms', 'ot_install_weforms' );
|
13 |
/**
|
14 |
* Build the custom settings & update OptionTree.
|
15 |
*/
|
55 |
|
56 |
|
57 |
function ot_type_custom_themes() {
|
58 |
+
$themes =
|
59 |
array (
|
60 |
+
0 =>
|
61 |
array (
|
62 |
'type' => 'CSMM PRO',
|
63 |
'version' => '5.005',
|
68 |
'status' => 'pro',
|
69 |
'name_clean' => 'aeroplane-company',
|
70 |
),
|
71 |
+
1 =>
|
72 |
array (
|
73 |
'type' => 'CSMM PRO',
|
74 |
'version' => '15.17',
|
79 |
'status' => 'agency',
|
80 |
'name_clean' => 'air-balloon',
|
81 |
),
|
82 |
+
2 =>
|
83 |
array (
|
84 |
'type' => 'CSMM PRO',
|
85 |
'version' => '15.05',
|
90 |
'status' => 'pro',
|
91 |
'name_clean' => 'animated-clock',
|
92 |
),
|
93 |
+
3 =>
|
94 |
array (
|
95 |
'type' => 'CSMM PRO',
|
96 |
'version' => '15.17',
|
101 |
'status' => 'agency',
|
102 |
'name_clean' => 'architecture',
|
103 |
),
|
104 |
+
4 =>
|
105 |
array (
|
106 |
'type' => 'CSMM PRO',
|
107 |
'version' => '15.17',
|
112 |
'status' => 'agency',
|
113 |
'name_clean' => 'auto-service',
|
114 |
),
|
115 |
+
5 =>
|
116 |
array (
|
117 |
'type' => 'CSMM PRO',
|
118 |
'version' => '15.17',
|
123 |
'status' => 'pro',
|
124 |
'name_clean' => 'beach',
|
125 |
),
|
126 |
+
6 =>
|
127 |
array (
|
128 |
'type' => 'CSMM PRO',
|
129 |
'version' => '5.05',
|
134 |
'status' => 'agency',
|
135 |
'name_clean' => 'bicycle-race',
|
136 |
),
|
137 |
+
7 =>
|
138 |
array (
|
139 |
'type' => 'CSMM PRO',
|
140 |
'version' => '5.005',
|
145 |
'status' => 'agency',
|
146 |
'name_clean' => 'bitcoin-miners',
|
147 |
),
|
148 |
+
8 =>
|
149 |
array (
|
150 |
'type' => 'CSMM PRO',
|
151 |
'version' => '15.17',
|
156 |
'status' => 'agency',
|
157 |
'name_clean' => 'blogging',
|
158 |
),
|
159 |
+
9 =>
|
160 |
array (
|
161 |
'type' => 'CSMM PRO',
|
162 |
'version' => '5.005',
|
167 |
'status' => 'agency',
|
168 |
'name_clean' => 'book-lovers',
|
169 |
),
|
170 |
+
10 =>
|
171 |
array (
|
172 |
'type' => 'CSMM PRO',
|
173 |
'version' => '5.001',
|
178 |
'status' => 'agency',
|
179 |
'name_clean' => 'business-company',
|
180 |
),
|
181 |
+
11 =>
|
182 |
array (
|
183 |
'type' => 'CSMM PRO',
|
184 |
'version' => '15.17',
|
189 |
'status' => 'agency',
|
190 |
'name_clean' => 'business',
|
191 |
),
|
192 |
+
12 =>
|
193 |
array (
|
194 |
'type' => 'CSMM PRO',
|
195 |
'version' => '15.17',
|
200 |
'status' => 'agency',
|
201 |
'name_clean' => 'cityscape',
|
202 |
),
|
203 |
+
13 =>
|
204 |
array (
|
205 |
'type' => 'CSMM PRO',
|
206 |
'version' => '5.14',
|
211 |
'status' => 'agency',
|
212 |
'name_clean' => 'clouds-screensaver-video',
|
213 |
),
|
214 |
+
14 =>
|
215 |
array (
|
216 |
'type' => 'CSMM PRO',
|
217 |
'version' => '5.005',
|
222 |
'status' => 'agency',
|
223 |
'name_clean' => 'coffee-shop',
|
224 |
),
|
225 |
+
15 =>
|
226 |
array (
|
227 |
'type' => 'CSMM PRO',
|
228 |
'version' => '15.17',
|
233 |
'status' => 'agency',
|
234 |
'name_clean' => 'cold-lake',
|
235 |
),
|
236 |
+
16 =>
|
237 |
array (
|
238 |
'type' => 'CSMM PRO',
|
239 |
'version' => '5.005',
|
244 |
'status' => 'pro',
|
245 |
'name_clean' => 'default',
|
246 |
),
|
247 |
+
17 =>
|
248 |
array (
|
249 |
'type' => 'CSMM PRO',
|
250 |
'version' => '15.17',
|
255 |
'status' => 'agency',
|
256 |
'name_clean' => 'dental-clinic',
|
257 |
),
|
258 |
+
18 =>
|
259 |
array (
|
260 |
'type' => 'CSMM PRO',
|
261 |
'version' => '5.001',
|
266 |
'status' => 'agency',
|
267 |
'name_clean' => 'dog-training-and-behavior-consulting',
|
268 |
),
|
269 |
+
19 =>
|
270 |
array (
|
271 |
'type' => 'CSMM PRO',
|
272 |
'version' => '15.17',
|
277 |
'status' => 'pro',
|
278 |
'name_clean' => 'fall-video',
|
279 |
),
|
280 |
+
20 =>
|
281 |
array (
|
282 |
'type' => 'CSMM PRO',
|
283 |
'version' => '15.17',
|
288 |
'status' => 'agency',
|
289 |
'name_clean' => 'fashion',
|
290 |
),
|
291 |
+
21 =>
|
292 |
array (
|
293 |
'type' => 'CSMM PRO',
|
294 |
'version' => '15.05',
|
299 |
'status' => 'agency',
|
300 |
'name_clean' => 'flower-shop',
|
301 |
),
|
302 |
+
22 =>
|
303 |
array (
|
304 |
'type' => 'CSMM PRO',
|
305 |
'version' => '15.17',
|
310 |
'status' => 'pro',
|
311 |
'name_clean' => 'food-blog',
|
312 |
),
|
313 |
+
23 =>
|
314 |
array (
|
315 |
'type' => 'CSMM PRO',
|
316 |
'version' => '15.17',
|
321 |
'status' => 'pro',
|
322 |
'name_clean' => 'football',
|
323 |
),
|
324 |
+
24 =>
|
325 |
array (
|
326 |
'type' => 'CSMM PRO',
|
327 |
'version' => '15.17',
|
332 |
'status' => 'pro',
|
333 |
'name_clean' => 'halloween',
|
334 |
),
|
335 |
+
25 =>
|
336 |
array (
|
337 |
'type' => 'CSMM PRO',
|
338 |
'version' => '15.17',
|
343 |
'status' => 'pro',
|
344 |
'name_clean' => 'holiday-resort',
|
345 |
),
|
346 |
+
26 =>
|
347 |
array (
|
348 |
'type' => 'CSMM PRO',
|
349 |
'version' => '15.17',
|
354 |
'status' => 'pro',
|
355 |
'name_clean' => 'homemade-chocolate-gifts',
|
356 |
),
|
357 |
+
27 =>
|
358 |
array (
|
359 |
'type' => 'CSMM PRO',
|
360 |
'version' => '15.05',
|
365 |
'status' => 'agency',
|
366 |
'name_clean' => 'interior-design',
|
367 |
),
|
368 |
+
28 =>
|
369 |
array (
|
370 |
'type' => 'CSMM PRO',
|
371 |
'version' => '5.14',
|
376 |
'status' => 'agency',
|
377 |
'name_clean' => 'journey-video',
|
378 |
),
|
379 |
+
29 =>
|
380 |
array (
|
381 |
'type' => 'CSMM PRO',
|
382 |
'version' => '15.17',
|
387 |
'status' => 'pro',
|
388 |
'name_clean' => 'lego-bricks',
|
389 |
),
|
390 |
+
30 =>
|
391 |
array (
|
392 |
'type' => 'CSMM PRO',
|
393 |
'version' => '15.17',
|
398 |
'status' => 'agency',
|
399 |
'name_clean' => 'loneliness',
|
400 |
),
|
401 |
+
31 =>
|
402 |
array (
|
403 |
'type' => 'CSMM PRO',
|
404 |
'version' => '15.17',
|
409 |
'status' => 'agency',
|
410 |
'name_clean' => 'lonely-road',
|
411 |
),
|
412 |
+
32 =>
|
413 |
array (
|
414 |
'type' => 'CSMM PRO',
|
415 |
'version' => '15.17',
|
420 |
'status' => 'pro',
|
421 |
'name_clean' => 'luxury-car',
|
422 |
),
|
423 |
+
33 =>
|
424 |
array (
|
425 |
'type' => 'CSMM PRO',
|
426 |
'version' => '5.005',
|
431 |
'status' => 'pro',
|
432 |
'name_clean' => 'maintenance-mode',
|
433 |
),
|
434 |
+
34 =>
|
435 |
array (
|
436 |
'type' => 'CSMM PRO',
|
437 |
'version' => '5.005',
|
442 |
'status' => 'agency',
|
443 |
'name_clean' => 'makeup-artist-training',
|
444 |
),
|
445 |
+
35 =>
|
446 |
array (
|
447 |
'type' => 'CSMM PRO',
|
448 |
'version' => '15.17',
|
453 |
'status' => 'pro',
|
454 |
'name_clean' => 'misty-forest-video',
|
455 |
),
|
456 |
+
36 =>
|
457 |
array (
|
458 |
'type' => 'CSMM PRO',
|
459 |
'version' => '15.17',
|
464 |
'status' => 'agency',
|
465 |
'name_clean' => 'mobile-designer',
|
466 |
),
|
467 |
+
37 =>
|
468 |
array (
|
469 |
'type' => 'CSMM PRO',
|
470 |
'version' => '5.005',
|
475 |
'status' => 'pro',
|
476 |
'name_clean' => 'modern-blog',
|
477 |
),
|
478 |
+
38 =>
|
479 |
array (
|
480 |
'type' => 'CSMM PRO',
|
481 |
'version' => '15.05',
|
486 |
'status' => 'agency',
|
487 |
'name_clean' => 'modern-office',
|
488 |
),
|
489 |
+
39 =>
|
490 |
array (
|
491 |
'type' => 'CSMM PRO',
|
492 |
'version' => '15.17',
|
497 |
'status' => 'pro',
|
498 |
'name_clean' => 'mountain-slide',
|
499 |
),
|
500 |
+
40 =>
|
501 |
array (
|
502 |
'type' => 'CSMM PRO',
|
503 |
'version' => '5.05',
|
508 |
'status' => 'pro',
|
509 |
'name_clean' => 'mountain',
|
510 |
),
|
511 |
+
41 =>
|
512 |
array (
|
513 |
'type' => 'CSMM PRO',
|
514 |
'version' => '15.17',
|
519 |
'status' => 'pro',
|
520 |
'name_clean' => 'movie-trailer-video',
|
521 |
),
|
522 |
+
42 =>
|
523 |
array (
|
524 |
'type' => 'CSMM PRO',
|
525 |
'version' => '15.05',
|
530 |
'status' => 'agency',
|
531 |
'name_clean' => 'nature',
|
532 |
),
|
533 |
+
43 =>
|
534 |
array (
|
535 |
'type' => 'CSMM PRO',
|
536 |
'version' => '5.14',
|
541 |
'status' => 'agency',
|
542 |
'name_clean' => 'office-meeting-video',
|
543 |
),
|
544 |
+
44 =>
|
545 |
array (
|
546 |
'type' => 'CSMM PRO',
|
547 |
'version' => '15.05',
|
552 |
'status' => 'agency',
|
553 |
'name_clean' => 'office-theme',
|
554 |
),
|
555 |
+
45 =>
|
556 |
array (
|
557 |
'type' => 'CSMM PRO',
|
558 |
'version' => '5.005',
|
563 |
'status' => 'agency',
|
564 |
'name_clean' => 'online-learning',
|
565 |
),
|
566 |
+
46 =>
|
567 |
array (
|
568 |
'type' => 'CSMM PRO',
|
569 |
'version' => '15.17',
|
574 |
'status' => 'pro',
|
575 |
'name_clean' => 'pancake-house',
|
576 |
),
|
577 |
+
47 =>
|
578 |
array (
|
579 |
'type' => 'CSMM PRO',
|
580 |
'version' => '15.17',
|
585 |
'status' => 'pro',
|
586 |
'name_clean' => 'parenting',
|
587 |
),
|
588 |
+
48 =>
|
589 |
array (
|
590 |
'type' => 'CSMM PRO',
|
591 |
'version' => '15.17',
|
596 |
'status' => 'pro',
|
597 |
'name_clean' => 'passage',
|
598 |
),
|
599 |
+
49 =>
|
600 |
array (
|
601 |
'type' => 'CSMM PRO',
|
602 |
'version' => '15.17',
|
607 |
'status' => 'agency',
|
608 |
'name_clean' => 'peaceful-river',
|
609 |
),
|
610 |
+
50 =>
|
611 |
array (
|
612 |
'type' => 'CSMM PRO',
|
613 |
'version' => '15.17',
|
618 |
'status' => 'agency',
|
619 |
'name_clean' => 'photography',
|
620 |
),
|
621 |
+
51 =>
|
622 |
array (
|
623 |
'type' => 'CSMM PRO',
|
624 |
'version' => '15.17',
|
629 |
'status' => 'agency',
|
630 |
'name_clean' => 'running-blog',
|
631 |
),
|
632 |
+
52 =>
|
633 |
array (
|
634 |
'type' => 'CSMM PRO',
|
635 |
'version' => '15.14',
|
640 |
'status' => 'pro',
|
641 |
'name_clean' => 'running-video',
|
642 |
),
|
643 |
+
53 =>
|
644 |
array (
|
645 |
'type' => 'CSMM PRO',
|
646 |
'version' => '5.005',
|
651 |
'status' => 'agency',
|
652 |
'name_clean' => 'shoes-store',
|
653 |
),
|
654 |
+
54 =>
|
655 |
array (
|
656 |
'type' => 'CSMM PRO',
|
657 |
'version' => '15.17',
|
662 |
'status' => 'pro',
|
663 |
'name_clean' => 'simple-beige-design',
|
664 |
),
|
665 |
+
55 =>
|
666 |
array (
|
667 |
'type' => 'CSMM PRO',
|
668 |
'version' => '15.17',
|
673 |
'status' => 'pro',
|
674 |
'name_clean' => 'snow-screensaver-video',
|
675 |
),
|
676 |
+
56 =>
|
677 |
array (
|
678 |
'type' => 'CSMM PRO',
|
679 |
'version' => '15.17',
|
684 |
'status' => 'pro',
|
685 |
'name_clean' => 'snowboarding-blog',
|
686 |
),
|
687 |
+
57 =>
|
688 |
array (
|
689 |
'type' => 'CSMM PRO',
|
690 |
'version' => '15.17',
|
695 |
'status' => 'pro',
|
696 |
'name_clean' => 'snowy-mountain',
|
697 |
),
|
698 |
+
58 =>
|
699 |
array (
|
700 |
'type' => 'CSMM PRO',
|
701 |
'version' => '15.17',
|
706 |
'status' => 'agency',
|
707 |
'name_clean' => 'spring',
|
708 |
),
|
709 |
+
59 =>
|
710 |
array (
|
711 |
'type' => 'CSMM PRO',
|
712 |
'version' => '15.17',
|
717 |
'status' => 'pro',
|
718 |
'name_clean' => 'stylish-workplace',
|
719 |
),
|
720 |
+
60 =>
|
721 |
array (
|
722 |
'type' => 'CSMM PRO',
|
723 |
'version' => '15.17',
|
728 |
'status' => 'agency',
|
729 |
'name_clean' => 'the-big-city-newsletter',
|
730 |
),
|
731 |
+
61 =>
|
732 |
array (
|
733 |
'type' => 'CSMM PRO',
|
734 |
'version' => '5.14',
|
739 |
'status' => 'pro',
|
740 |
'name_clean' => 'the-sunny-view',
|
741 |
),
|
742 |
+
62 =>
|
743 |
array (
|
744 |
'type' => 'CSMM PRO',
|
745 |
'version' => '5.001',
|
750 |
'status' => 'pro',
|
751 |
'name_clean' => 'travel-agency',
|
752 |
),
|
753 |
+
63 =>
|
754 |
array (
|
755 |
'type' => 'CSMM PRO',
|
756 |
'version' => '15.05',
|
761 |
'status' => 'agency',
|
762 |
'name_clean' => 'travel-blog',
|
763 |
),
|
764 |
+
64 =>
|
765 |
array (
|
766 |
'type' => 'CSMM PRO',
|
767 |
'version' => '15.17',
|
772 |
'status' => 'agency',
|
773 |
'name_clean' => 'tulips',
|
774 |
),
|
775 |
+
65 =>
|
776 |
array (
|
777 |
'type' => 'CSMM PRO',
|
778 |
'version' => '5.001',
|
783 |
'status' => 'pro',
|
784 |
'name_clean' => 'video-production',
|
785 |
),
|
786 |
+
66 =>
|
787 |
array (
|
788 |
'type' => 'CSMM PRO',
|
789 |
'version' => '15.17',
|
794 |
'status' => 'pro',
|
795 |
'name_clean' => 'walking-away-video',
|
796 |
),
|
797 |
+
67 =>
|
798 |
array (
|
799 |
'type' => 'CSMM PRO',
|
800 |
'version' => '5.005',
|
805 |
'status' => 'agency',
|
806 |
'name_clean' => 'webinar',
|
807 |
),
|
808 |
+
68 =>
|
809 |
array (
|
810 |
'type' => 'CSMM PRO',
|
811 |
'version' => '5.005',
|
816 |
'status' => 'agency',
|
817 |
'name_clean' => 'wedding-blog',
|
818 |
),
|
819 |
+
69 =>
|
820 |
array (
|
821 |
'type' => 'CSMM PRO',
|
822 |
'version' => '15.17',
|
827 |
'status' => 'pro',
|
828 |
'name_clean' => 'white-orchids',
|
829 |
),
|
830 |
+
70 =>
|
831 |
array (
|
832 |
'type' => 'CSMM PRO',
|
833 |
'version' => '5.14',
|
838 |
'status' => 'agency',
|
839 |
'name_clean' => 'working-out',
|
840 |
),
|
841 |
+
71 =>
|
842 |
array (
|
843 |
'type' => 'CSMM PRO',
|
844 |
'version' => '15.05',
|
849 |
'status' => 'agency',
|
850 |
'name_clean' => 'workplace',
|
851 |
),
|
852 |
+
72 =>
|
853 |
array (
|
854 |
'type' => 'CSMM PRO',
|
855 |
'version' => '15.17',
|
924 |
$google_webfonts_array[$font['family']]['value'] = $font['family'];
|
925 |
}
|
926 |
|
927 |
+
$weforms_setting = array();
|
928 |
+
|
929 |
+
if(ot_is_weforms_active()){
|
930 |
+
$weforms_setting = array(
|
931 |
+
'id' => 'weforms_sign_up_form',
|
932 |
+
'label' => 'Any Kind of Form - Contact, Subscribe, Event, Optin,...',
|
933 |
+
'desc' => 'weForms allow you to create and fully customize any kind of form you need. From a simple contact or subscribe forms, to a complicated form for event registrations.',
|
934 |
+
'std' => '-1',
|
935 |
+
'type' => 'weforms',
|
936 |
+
'section' => 'general_settings',
|
937 |
+
);
|
938 |
+
} else {
|
939 |
+
$weforms_setting = array(
|
940 |
+
'id' => 'weforms_sign_up_form_enable',
|
941 |
+
'label' => 'Any Kind of Form - Contact, Subscribe, Event, Optin,...',
|
942 |
+
'desc' => 'Collecting subscribers and giving users the ability to contact you is one of the most important aspects of any coming soon page. To add any kind of form, <a href="#" class="open-weforms-upsell">install the free weForms plugin</a>. It seamlessly integrates with Nifty, offers numerous styling options and integrations, and will enable you to instantly collect subscribers without any additional costs.',
|
943 |
+
'std' => 'off',
|
944 |
+
'type' => 'on-off',
|
945 |
+
'section' => 'general_settings',
|
946 |
+
);
|
947 |
+
}
|
948 |
|
949 |
$custom_settings = array(
|
950 |
'contextual_help' => array(
|
1026 |
),
|
1027 |
array(
|
1028 |
'id' => 'enable_preloader',
|
1029 |
+
'label' => 'Enable Preloader',
|
1030 |
+
'desc' => 'Enable of disable preloader of coming soon page.',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1031 |
'std' => 'on',
|
1032 |
'type' => 'on-off',
|
1033 |
'section' => 'general_settings',
|
1034 |
|
1035 |
),
|
1036 |
+
$weforms_setting,
|
1037 |
array(
|
1038 |
'id' => 'insert_custom_signup_form',
|
1039 |
'label' => 'Insert custom Sign-up form',
|
1851 |
}
|
1852 |
|
1853 |
add_filter( 'ot_show_pages', '__return_false' );
|
1854 |
+
|
1855 |
+
|
1856 |
+
// auto download / install / activate weForms plugin
|
1857 |
+
function ot_install_weforms() {
|
1858 |
+
$plugin_slug = 'weforms/weforms.php';
|
1859 |
+
$plugin_zip = 'https://downloads.wordpress.org/plugin/weforms.latest-stable.zip';
|
1860 |
+
|
1861 |
+
@include_once ABSPATH . 'wp-admin/includes/plugin.php';
|
1862 |
+
@include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
1863 |
+
@include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
|
1864 |
+
@include_once ABSPATH . 'wp-admin/includes/file.php';
|
1865 |
+
@include_once ABSPATH . 'wp-admin/includes/misc.php';
|
1866 |
+
echo '<style>
|
1867 |
+
body{
|
1868 |
+
font-family: sans-serif;
|
1869 |
+
font-size: 14px;
|
1870 |
+
line-height: 1.5;
|
1871 |
+
color: #444;
|
1872 |
+
}
|
1873 |
+
</style>';
|
1874 |
+
|
1875 |
+
echo '<div style="margin: 20px; color:#444;">';
|
1876 |
+
echo 'If things are not done in a minute <a target="_parent" href="' . admin_url('plugin-install.php?s=weforms&tab=search&type=term') .'">install the plugin manually via Plugins page</a><br><br>';
|
1877 |
+
echo 'Starting ...<br><br>';
|
1878 |
+
|
1879 |
+
wp_cache_flush();
|
1880 |
+
$upgrader = new Plugin_Upgrader();
|
1881 |
+
echo 'Check if weForms is already installed ... <br />';
|
1882 |
+
if (ot_is_plugin_installed($plugin_slug)) {
|
1883 |
+
echo 'weForms is already installed! <br /><br />Making sure it\'s the latest version.<br />';
|
1884 |
+
$upgrader->upgrade($plugin_slug);
|
1885 |
+
$installed = true;
|
1886 |
+
} else {
|
1887 |
+
echo 'Installing weForms.<br />';
|
1888 |
+
$installed = $upgrader->install($plugin_zip);
|
1889 |
+
}
|
1890 |
+
wp_cache_flush();
|
1891 |
+
|
1892 |
+
if (!is_wp_error($installed) && $installed) {
|
1893 |
+
echo 'Activating weForms.<br />';
|
1894 |
+
$activate = activate_plugin($plugin_slug);
|
1895 |
+
|
1896 |
+
if (is_null($activate)) {
|
1897 |
+
echo 'weForms Activated.<br />';
|
1898 |
+
|
1899 |
+
echo '<script>setTimeout(function() { top.location = "admin.php?page=niftycs-options"; }, 1000);</script>';
|
1900 |
+
echo '<br>If you are not redirected in a few seconds - <a href="admin.php?page=niftycs-options" target="_parent">click here</a>.';
|
1901 |
+
}
|
1902 |
+
} else {
|
1903 |
+
echo 'Could not install weForms. You\'ll have to <a target="_parent" href="' . admin_url('plugin-install.php?s=weforms&tab=search&type=term') .'">download and install manually</a>.';
|
1904 |
+
}
|
1905 |
+
|
1906 |
+
echo '</div>';
|
1907 |
+
} // install_weforms
|
1908 |
+
|
1909 |
+
|
1910 |
+
function ot_is_plugin_installed($slug) {
|
1911 |
+
if (!function_exists('get_plugins')) {
|
1912 |
+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
1913 |
+
}
|
1914 |
+
$all_plugins = get_plugins();
|
1915 |
+
|
1916 |
+
if (!empty($all_plugins[$slug])) {
|
1917 |
+
return true;
|
1918 |
+
} else {
|
1919 |
+
return false;
|
1920 |
+
}
|
1921 |
+
} // is_plugin_installed
|
1922 |
+
|
1923 |
+
|
1924 |
+
// check if weForms plugin is active and min version installed
|
1925 |
+
function ot_is_weforms_active() {
|
1926 |
+
if (!function_exists('is_plugin_active') || !function_exists('get_plugin_data')) {
|
1927 |
+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
1928 |
+
}
|
1929 |
+
|
1930 |
+
if (is_plugin_active('weforms/weforms.php')) {
|
1931 |
+
$weforms_info = get_plugin_data(ABSPATH.'wp-content/plugins/weforms/weforms.php');
|
1932 |
+
if( version_compare($weforms_info['Version'], '1.3.3', '<')) {
|
1933 |
+
return false;
|
1934 |
+
} else {
|
1935 |
+
return true;
|
1936 |
+
}
|
1937 |
+
} else {
|
1938 |
+
return false;
|
1939 |
+
}
|
1940 |
+
} // is_weforms_active
|
nifty-coming-soon.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/*
|
3 |
Plugin Name: Nifty Coming Soon & Maintenance page
|
4 |
Plugin URI: https://wordpress.org/plugins/nifty-coming-soon-and-under-construction-page/
|
5 |
-
Description: Easy to
|
6 |
-
Version: 1.
|
7 |
Author: WebFactory Ltd
|
8 |
Author URI: https://webfactoryltd.com/
|
9 |
License: GPLv3
|
@@ -135,7 +135,7 @@ function nifty_cs_redirect()
|
|
135 |
|
136 |
// Live Preview
|
137 |
|
138 |
-
add_action('
|
139 |
|
140 |
function nifty_cs_get_preview ()
|
141 |
{
|
@@ -196,6 +196,76 @@ if ( isset($_POST['email']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL
|
|
196 |
|
197 |
} // nifty_subscribe
|
198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
// remove options on deactivate
|
200 |
function nifty_deactivate() {
|
201 |
delete_option('nifty_options');
|
2 |
/*
|
3 |
Plugin Name: Nifty Coming Soon & Maintenance page
|
4 |
Plugin URI: https://wordpress.org/plugins/nifty-coming-soon-and-under-construction-page/
|
5 |
+
Description: Easy to set up Coming Soon, Maintenance and Under Construction page. It features Responsive design, Countdown timer, Animations, Live Preview, Background Slider, Subscription form and more.
|
6 |
+
Version: 1.40
|
7 |
Author: WebFactory Ltd
|
8 |
Author URI: https://webfactoryltd.com/
|
9 |
License: GPLv3
|
135 |
|
136 |
// Live Preview
|
137 |
|
138 |
+
add_action('template_redirect','nifty_cs_get_preview');
|
139 |
|
140 |
function nifty_cs_get_preview ()
|
141 |
{
|
196 |
|
197 |
} // nifty_subscribe
|
198 |
|
199 |
+
/**
|
200 |
+
* Helper function for adding plugins to featured list
|
201 |
+
*
|
202 |
+
* @return array
|
203 |
+
*/
|
204 |
+
function nifty_featured_plugins_tab($args) {
|
205 |
+
add_filter('plugins_api_result', 'nifty_plugins_api_result', 10, 3);
|
206 |
+
|
207 |
+
return $args;
|
208 |
+
}
|
209 |
+
|
210 |
+
|
211 |
+
/**
|
212 |
+
* Add single plugin to featured list
|
213 |
+
*
|
214 |
+
* @return object
|
215 |
+
*/
|
216 |
+
function nifty_add_plugin_featured($plugin_slug, $res) {
|
217 |
+
// check if plugin is alredy on the list
|
218 |
+
foreach ($res->plugins as $plugin) {
|
219 |
+
if ($plugin->slug == $plugin_slug) {
|
220 |
+
return $res;
|
221 |
+
}
|
222 |
+
} // foreach
|
223 |
+
|
224 |
+
if ($plugin_info = get_transient('wf-plugin-info-' . $plugin_slug)) {
|
225 |
+
//$res->plugins[] = $plugin_info;
|
226 |
+
$tmp1 = array_slice($res->plugins, 0, 2, false);
|
227 |
+
$tmp2 = array_slice($res->plugins, 2, sizeof($res->plugins) - 2, false);
|
228 |
+
$res->plugins = array_merge($tmp1, array($plugin_info), $tmp2);
|
229 |
+
} else {
|
230 |
+
$plugin_info = plugins_api('plugin_information', array(
|
231 |
+
'slug' => $plugin_slug,
|
232 |
+
'is_ssl' => is_ssl(),
|
233 |
+
'fields' => array(
|
234 |
+
'banners' => true,
|
235 |
+
'reviews' => true,
|
236 |
+
'downloaded' => true,
|
237 |
+
'active_installs' => true,
|
238 |
+
'icons' => true,
|
239 |
+
'short_description' => true,
|
240 |
+
)
|
241 |
+
));
|
242 |
+
if (!is_wp_error($plugin_info)) {
|
243 |
+
$tmp1 = array_slice($res->plugins, 0, 2, false);
|
244 |
+
$tmp2 = array_slice($res->plugins, 2, sizeof($res->plugins) - 2, false);
|
245 |
+
$res->plugins = array_merge($tmp1, array($plugin_info), $tmp2);
|
246 |
+
set_transient('wf-plugin-info-' . $plugin_slug, $plugin_info, DAY_IN_SECONDS * 7);
|
247 |
+
}
|
248 |
+
}
|
249 |
+
|
250 |
+
return $res;
|
251 |
+
}
|
252 |
+
|
253 |
+
|
254 |
+
/**
|
255 |
+
* Add plugins to featured plugins list
|
256 |
+
*
|
257 |
+
* @return object
|
258 |
+
*/
|
259 |
+
function nifty_plugins_api_result($res, $action, $args) {
|
260 |
+
remove_filter('plugins_api_result', 'nifty_plugins_api_result', 10, 3);
|
261 |
+
|
262 |
+
$res = nifty_add_plugin_featured('security-ninja', $res);
|
263 |
+
|
264 |
+
return $res;
|
265 |
+
}
|
266 |
+
|
267 |
+
add_filter('install_plugins_table_api_args_featured', 'nifty_featured_plugins_tab');
|
268 |
+
|
269 |
// remove options on deactivate
|
270 |
function nifty_deactivate() {
|
271 |
delete_option('nifty_options');
|
readme.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
-
=== Coming Soon
|
2 |
-
Contributors: WebFactory
|
3 |
-
Tags: coming soon, coming soon page, launch page, maintenance mode,
|
4 |
-
Tested up to:
|
5 |
License: GPLv3
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
-
Nifty Coming
|
10 |
|
11 |
== Description ==
|
12 |
|
@@ -14,6 +14,8 @@ Nice and easy to setup Coming soon / Under Construction and Maintenance plugin w
|
|
14 |
|
15 |
Coming soon plugin features responsive design and will adapt to any device. You can setup background slider with overlay pattern and opacity. Easily alter animated text on the coming soon page and use the built in count down timer, subscription form and more.
|
16 |
|
|
|
|
|
17 |
You can activate or deactivate any section of the page, select Google Fonts and have all like premium features for FREE.
|
18 |
|
19 |
### Main Features
|
@@ -85,6 +87,10 @@ As from the update of 1.0.9, the plugin offers the way to Live Preview you're Co
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
|
|
88 |
= 1.35 =
|
89 |
* 2018/10/29
|
90 |
* 10k installs & 80.2k downloads
|
1 |
+
=== Coming Soon, Under Construction & Maintenance Page ===
|
2 |
+
Contributors: WebFactory, wpreset, googlemapswidget, securityninja, underconstructionpage
|
3 |
+
Tags: coming soon, coming soon page, launch page, maintenance mode, coming soon mode, under construction, maintenance mode page, landing page, offline page, subscribe form, maintenance
|
4 |
+
Tested up to: 5.0
|
5 |
License: GPLv3
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
+
Stable tag: 1.40
|
8 |
|
9 |
+
Nifty Coming Soon, Under Construction & Maintenance page builder creates awesome Coming Soon pages with all premium alike features for free.
|
10 |
|
11 |
== Description ==
|
12 |
|
14 |
|
15 |
Coming soon plugin features responsive design and will adapt to any device. You can setup background slider with overlay pattern and opacity. Easily alter animated text on the coming soon page and use the built in count down timer, subscription form and more.
|
16 |
|
17 |
+
Create any kind of form you need and use it on the coming soon page! Contact form, subscribe form, lead-gen form, events registration form! Thanks to our partnership with <a href="https://wordpress.org/plugins/weforms/">weForms</a> you can use a drag & drop interface to quickly create any form.
|
18 |
+
|
19 |
You can activate or deactivate any section of the page, select Google Fonts and have all like premium features for FREE.
|
20 |
|
21 |
### Main Features
|
87 |
|
88 |
== Changelog ==
|
89 |
|
90 |
+
= 1.40 =
|
91 |
+
* 2018/11/20
|
92 |
+
* new: weForms integration - create any kind of form you need on the coming soon page
|
93 |
+
|
94 |
= 1.35 =
|
95 |
* 2018/10/29
|
96 |
* 10k installs & 80.2k downloads
|
template/index.php
CHANGED
@@ -55,7 +55,36 @@ $nifty_timer = ot_get_option( 'display_count_down_timer' );
|
|
55 |
echo ".nifty-coming-soon-message {font-family:'".$heading_font."' !important;}";
|
56 |
echo ".timer-item {font-family:'".$counter_font."' !important;}";
|
57 |
echo "body p, .nifty-inform, .nifty-success, .nifty-error, input {font-family:'".$paragraph_font."' !important;}";
|
58 |
-
echo '</style>'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
?>
|
61 |
|
@@ -103,8 +132,10 @@ if( 'off' != $niftylogo ) {
|
|
103 |
$slide_index = 0;
|
104 |
if( 'off' != $navigation ) {
|
105 |
echo '<div id="slider-navigation">';
|
106 |
-
|
107 |
-
|
|
|
|
|
108 |
if (ot_get_option( 'enable_contact_details' ) != 'off') {
|
109 |
echo '<a data-slide-index="' . ($slide_index) . '" href=""><span aria-hidden="true" class="icon-location"></span></a>';
|
110 |
$slide_index++;
|
@@ -187,44 +218,54 @@ if( 'off' != $niftylogo ) {
|
|
187 |
|
188 |
<!-- Slide One - Subscribe Here -->
|
189 |
|
190 |
-
|
191 |
-
$nifty_form = ot_get_option( 'enable_sign_up_form' );
|
192 |
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
|
224 |
-
|
225 |
-
} else {
|
226 |
-
|
227 |
-
}
|
|
|
228 |
|
229 |
?>
|
230 |
|
55 |
echo ".nifty-coming-soon-message {font-family:'".$heading_font."' !important;}";
|
56 |
echo ".timer-item {font-family:'".$counter_font."' !important;}";
|
57 |
echo "body p, .nifty-inform, .nifty-success, .nifty-error, input {font-family:'".$paragraph_font."' !important;}";
|
58 |
+
echo '</style>';
|
59 |
+
|
60 |
+
$weforms_form = ot_get_option( 'weforms_sign_up_form' );
|
61 |
+
$weforms_form_enable = ot_get_option( 'weforms_sign_up_form_enable' );
|
62 |
+
|
63 |
+
if(ot_is_weforms_active()){
|
64 |
+
$weforms_scripts_styles = new WeForms_Scripts_Styles;
|
65 |
+
foreach($weforms_scripts_styles->get_frontend_styles() as $weforms_style){
|
66 |
+
echo "<link href='".$weforms_style['src']. "' rel='stylesheet' type='text/css'>"."\n";
|
67 |
+
}
|
68 |
+
|
69 |
+
echo "<script src='".includes_url( 'js/wp-embed.min.js',dirname(__FILE__) ). "' type='text/javascript'></script>"."\n";
|
70 |
+
echo "<script src='".includes_url( 'js/jquery/ui/core.min.js',dirname(__FILE__) ). "' type='text/javascript'></script>"."\n";
|
71 |
+
echo "<script src='".includes_url( 'js/jquery/ui/datepicker.min.js',dirname(__FILE__) ). "' type='text/javascript'></script>"."\n";
|
72 |
+
echo "<script src='".includes_url( 'js/jquery/ui/widget.min.js',dirname(__FILE__) ). "' type='text/javascript'></script>"."\n";
|
73 |
+
echo "<script src='".includes_url( 'js/jquery/ui/mouse.min.js',dirname(__FILE__) ). "' type='text/javascript'></script>"."\n";
|
74 |
+
echo "<script src='".includes_url( 'js/jquery/ui/slider.min.js',dirname(__FILE__) ). "' type='text/javascript'></script>"."\n";
|
75 |
+
echo "<script src='".includes_url( 'js/jquery/ui/sortable.min.js',dirname(__FILE__) ). "' type='text/javascript'></script>"."\n";
|
76 |
+
|
77 |
+
foreach($weforms_scripts_styles->get_frontend_scripts() as $weforms_script){
|
78 |
+
echo "<script src='".$weforms_script['src']. "' type='text/javascript'></script>"."\n";
|
79 |
+
}
|
80 |
+
|
81 |
+
echo '<script>/* <![CDATA[ */
|
82 |
+
var wpuf_frontend = {"ajaxurl":"'.admin_url( 'admin-ajax.php' ).'","error_message":"Please fix the errors to proceed","nonce":"'.wp_create_nonce( 'wpuf_nonce' ).'","word_limit":"Word limit reached"};
|
83 |
+
var error_str_obj = {"required":"is required","mismatch":"does not match","validation":"is not valid","duplicate":"requires a unique entry and this value has already been used"};
|
84 |
+
var wpuf_frontend_upload = {"confirmMsg":"Are you sure?","delete_it":"Yes, delete it","cancel_it":"No, cancel it","nonce":"'.wp_create_nonce( 'wpuf_nonce' ).'","ajaxurl":"'.admin_url( 'admin-ajax.php' ).'","plupload":{"url":"'.admin_url( 'admin-ajax.php' ).'?nonce='.wp_create_nonce( 'wpuf-upload-nonce' ).'","flash_swf_url":"'.includes_url( 'js/plupload/plupload.flash.swf' ).'","filters":[{"title":"Allowed Files","extensions":"*"}],"multipart":true,"urlstream_upload":true,"warning":"Maximum number of files reached!","size_error":"The file you have uploaded exceeds the file size limit. Please try again.","type_error":"You have uploaded an incorrect file type. Please try again."}};
|
85 |
+
/* ]]> */</script>';
|
86 |
+
}
|
87 |
+
|
88 |
|
89 |
?>
|
90 |
|
132 |
$slide_index = 0;
|
133 |
if( 'off' != $navigation ) {
|
134 |
echo '<div id="slider-navigation">';
|
135 |
+
if( ( empty($weforms_form) && empty($weforms_form_enable) ) || ( ot_is_weforms_active() && $weforms_form > 0 ) ){
|
136 |
+
echo '<a data-slide-index="' . ($slide_index) . '" href=""><span aria-hidden="true" class="icon-paperplane"></span></a>';
|
137 |
+
$slide_index++;
|
138 |
+
}
|
139 |
if (ot_get_option( 'enable_contact_details' ) != 'off') {
|
140 |
echo '<a data-slide-index="' . ($slide_index) . '" href=""><span aria-hidden="true" class="icon-location"></span></a>';
|
141 |
$slide_index++;
|
218 |
|
219 |
<!-- Slide One - Subscribe Here -->
|
220 |
|
221 |
+
<?php
|
|
|
222 |
|
223 |
+
if( !empty($weforms_form) || !empty($weforms_form_enable)){
|
224 |
+
if(ot_is_weforms_active() && $weforms_form > 0){
|
225 |
+
echo '<li><section class="large-12 columns">';
|
226 |
+
echo do_shortcode('[weforms id="'.$weforms_form.'"]');
|
227 |
+
echo '</li>';
|
228 |
+
}
|
229 |
+
} else {
|
230 |
+
|
231 |
+
$nifty_form = ot_get_option( 'enable_sign_up_form' );
|
232 |
+
|
233 |
+
if( 'off' != $nifty_form ) {
|
234 |
+
echo '<li>
|
235 |
+
<section class="large-12 columns"> ';
|
236 |
+
echo '<form id="contact" method="post" action="' . admin_url( 'admin-ajax.php' ) . '">
|
237 |
+
<div class="large-4 small-centered columns">
|
238 |
+
<div class="nifty-inform">';
|
239 |
+
|
240 |
+
echo ot_get_option( 'sign_up_form_intro_text' );
|
241 |
+
echo' </div> <div class="nifty-row collapse">
|
242 |
+
<div class="small-8 columns">
|
243 |
+
<input type="text" name="email" id="email" autocomplete="off" placeholder="';
|
244 |
+
echo ot_get_option( 'enter_email_text' );
|
245 |
+
echo '">
|
246 |
+
</div>
|
247 |
+
<div class="small-4 columns">
|
248 |
+
<input type="submit" value=" ';
|
249 |
+
echo ot_get_option( 'sign_up_button_text' );
|
250 |
+
echo '" name="submit" class="button prefix">
|
251 |
+
</div>
|
252 |
+
<div class="nifty-success" style="display:none">';
|
253 |
+
echo ot_get_option( 'email_confirmation___success' );
|
254 |
+
echo '</div>
|
255 |
+
<div class="nifty-error" style="display:none"> ';
|
256 |
+
echo ot_get_option( 'email_confirmation___error' );
|
257 |
+
echo '</div>
|
258 |
+
</div>
|
259 |
+
</div>
|
260 |
+
</form>
|
261 |
+
</section>
|
262 |
+
</li>
|
263 |
|
264 |
+
';
|
265 |
+
} else {
|
266 |
+
echo ot_get_option( 'insert_custom_signup_form' );
|
267 |
+
}
|
268 |
+
}
|
269 |
|
270 |
?>
|
271 |
|