Version Description
- Jan 20, 2016
- Fixed Progress Bar Bug
- Fixed Countdown Timer Bug
- Improved Subscription Form Logic
- Fixed Style/Layout Issues on Mobile Devices
Download this release
Release Info
Developer | Acurax |
Plugin | Under Construction / Maintenance Mode from Acurax |
Version | 2.2 |
Comparing to | |
See all releases |
Code changes from version 2.1 to 2.2
- acx_csma.php +2 -2
- css/style_admin.css +16 -0
- function.php +12 -1
- images/partner.png +0 -0
- includes/acx_csma_admin.php +13 -15
- includes/hook_functions.php +13 -0
- readme.txt +14 -0
- templates/0/index.php +0 -1
- templates/1/index.php +37 -6
- templates/1/style.css +5 -0
- templates/2/images/corner_1.png +0 -0
- templates/2/index.php +36 -5
- templates/2/style.css +30 -3
- templates/3/images/form_top_bg.png +0 -0
- templates/3/index.php +87 -53
- templates/3/style.css +25 -3
- templates/4/style.css +5 -0
- templates/5/index.php +33 -1
- templates/5/style.css +5 -0
acx_csma.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Under Construction / Maintenance Mode From Acurax
|
|
4 |
Plugin URI: http://www.acurax.com/Products/
|
5 |
Description: Simple and the best Coming Soon or Maintenance Mode Plugin Which Supports Practically Unlimited Responsive Designs.
|
6 |
Author: Acurax
|
7 |
-
Version: 2.
|
8 |
Author URI: http://www.acurax.com
|
9 |
License: GPLv2 or later
|
10 |
*/
|
@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
26 |
?>
|
27 |
<?php
|
28 |
/*************** Admin function ***************/
|
29 |
-
define("ACX_CSMA_CURRENT_VERSION","2.
|
30 |
define("ACX_CSMA_TOTAL_THEMES",5);
|
31 |
define("ACX_CSMA_BASE_LOCATION",plugin_dir_url( __FILE__ ));
|
32 |
|
4 |
Plugin URI: http://www.acurax.com/Products/
|
5 |
Description: Simple and the best Coming Soon or Maintenance Mode Plugin Which Supports Practically Unlimited Responsive Designs.
|
6 |
Author: Acurax
|
7 |
+
Version: 2.2
|
8 |
Author URI: http://www.acurax.com
|
9 |
License: GPLv2 or later
|
10 |
*/
|
26 |
?>
|
27 |
<?php
|
28 |
/*************** Admin function ***************/
|
29 |
+
define("ACX_CSMA_CURRENT_VERSION","2.2");
|
30 |
define("ACX_CSMA_TOTAL_THEMES",5);
|
31 |
define("ACX_CSMA_BASE_LOCATION",plugin_dir_url( __FILE__ ));
|
32 |
|
css/style_admin.css
CHANGED
@@ -195,6 +195,22 @@ padding-top: 6px;
|
|
195 |
text-transform: capitalize;
|
196 |
width: 100%;
|
197 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
#acx_ad_banners_csma .acx_ad_csma_desc2
|
199 |
{
|
200 |
background: url("../images/des.png") no-repeat scroll 5px center rgba(0, 0, 0, 0);
|
195 |
text-transform: capitalize;
|
196 |
width: 100%;
|
197 |
}
|
198 |
+
#acx_ad_banners_csma .acx_ad_csma_desc_partner
|
199 |
+
{
|
200 |
+
background: rgba(0, 0, 0, 0) url("../images/partner.png") no-repeat scroll 5px 0;
|
201 |
+
box-sizing: border-box;
|
202 |
+
color: black;
|
203 |
+
float: left;
|
204 |
+
font-family: arial;
|
205 |
+
font-size: 13px;
|
206 |
+
height: 32px;
|
207 |
+
padding-right:3px;
|
208 |
+
margin-top: 15px;
|
209 |
+
padding-left: 42px;
|
210 |
+
padding-top: 6px;
|
211 |
+
text-transform: capitalize;
|
212 |
+
width: 100%;
|
213 |
+
}
|
214 |
#acx_ad_banners_csma .acx_ad_csma_desc2
|
215 |
{
|
216 |
background: url("../images/des.png") no-repeat scroll 5px center rgba(0, 0, 0, 0);
|
function.php
CHANGED
@@ -135,7 +135,7 @@ function acx_csma_plugin_activation()
|
|
135 |
}
|
136 |
if(is_array($acx_csma_role_array))
|
137 |
{
|
138 |
-
if(in_array($user_roles,$acx_csma_role_array)|| $user_roles=="Administrator")
|
139 |
{
|
140 |
//do not display maintenance page.....
|
141 |
$acx_csma_display_template=false;
|
@@ -162,6 +162,17 @@ function acx_csma_plugin_activation()
|
|
162 |
$acx_csma_display_template=false;
|
163 |
}
|
164 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
if($acx_csma_display_template == true)
|
166 |
{
|
167 |
$protocol = "HTTP/1.0";
|
135 |
}
|
136 |
if(is_array($acx_csma_role_array))
|
137 |
{
|
138 |
+
if(in_array($user_roles,$acx_csma_role_array)|| $user_roles=="Administrator" || is_super_admin())
|
139 |
{
|
140 |
//do not display maintenance page.....
|
141 |
$acx_csma_display_template=false;
|
162 |
$acx_csma_display_template=false;
|
163 |
}
|
164 |
}
|
165 |
+
$acx_csma_display_template = apply_filters('acx_csma_display_template_filter',$acx_csma_display_template);
|
166 |
+
function filter_acx_csma_template($acx_csma_display_template)
|
167 |
+
{
|
168 |
+
if($acx_csma_display_template != '')
|
169 |
+
{
|
170 |
+
return $acx_csma_display_template;
|
171 |
+
}
|
172 |
+
}
|
173 |
+
add_filter('acx_csma_display_template_filter','filter_acx_csma_template',5,2);
|
174 |
+
|
175 |
+
|
176 |
if($acx_csma_display_template == true)
|
177 |
{
|
178 |
$protocol = "HTTP/1.0";
|
images/partner.png
ADDED
Binary file
|
includes/acx_csma_admin.php
CHANGED
@@ -540,10 +540,10 @@ if(is_serialized($acx_csma_appearence_array))
|
|
540 |
$acx_csma_title4=sanitize_text_field($_POST['acx_csma_title4']);if($acx_csma_title4==""){$acx_csma_title4=$acx_csma_appearence_array['4']['acx_csma_title4'];}
|
541 |
$acx_csma_custom_html_top_temp4=stripslashes(trim($_POST['acx_csma_custom_html_top_temp4']));
|
542 |
$acx_csma_title_color4=sanitize_text_field($_POST['acx_csma_title_color4']);if($acx_csma_title_color4==""){$acx_csma_title_color4=$acx_csma_appearence_array['4']['acx_csma_title_color4'];}
|
543 |
-
$acx_csma_show_timer4=sanitize_text_field($_POST['acx_csma_show_timer4']);if($acx_csma_show_timer4==""){ $acx_csma_show_timer4=$acx_csma_appearence_array['
|
544 |
$acx_csma_timer_iptext_color4=sanitize_text_field($_POST['acx_csma_timer_iptext_color4']);if($acx_csma_timer_iptext_color4==""){$acx_csma_timer_iptext_color4=$acx_csma_appearence_array['4']['acx_csma_timer_iptext_color4'];;}
|
545 |
$acx_csma_timer_head_color4=sanitize_text_field($_POST['acx_csma_timer_head_color4']);if($acx_csma_timer_head_color4==""){$acx_csma_timer_head_color4=$acx_csma_appearence_array['4']['acx_csma_timer_head_color4'];}
|
546 |
-
$acx_csma_show_progressbar4=sanitize_text_field($_POST['acx_csma_show_progressbar4']);if($acx_csma_show_progressbar4==""){ $acx_csma_show_progressbar4=$acx_csma_appearence_array['
|
547 |
$acx_csma_progress_bar_color4=sanitize_text_field($_POST['acx_csma_progress_bar_color4']);if($acx_csma_progress_bar_color4==""){$acx_csma_progress_bar_color4=$acx_csma_appearence_array['4']['acx_csma_progress_bar_color4'];}
|
548 |
$acx_csma_custom_html_bottom_temp4=stripslashes(trim($_POST['acx_csma_custom_html_bottom_temp4']));
|
549 |
$acx_csma_fb_link4=esc_url_raw($_POST['acx_csma_fb_link4']);if($acx_csma_fb_link4==""){$acx_csma_fb_link4=$acx_csma_appearence_array['4']['acx_csma_fb_link4'];}
|
@@ -1157,9 +1157,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1157 |
$logo1_attachment_url = parse_url( wp_get_attachment_url($acx_csma_logo1_id) );
|
1158 |
$logo1_url = $logo1_attachment_url [ 'scheme' ] . '://' .rawurlencode( basename( $logo1_attachment_url[ 'host' ])). $logo1_attachment_url[ 'path' ];
|
1159 |
}
|
1160 |
-
|
1161 |
-
print_r($acx_csma_appearence_array['1']);
|
1162 |
-
echo "</pre>"; */
|
1163 |
?>
|
1164 |
<label>
|
1165 |
Logo Image: <span id="acx_csma_span">(Recommended size 231x67)</span>
|
@@ -1302,8 +1300,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1302 |
</label>
|
1303 |
<div class="acx_qa_field">
|
1304 |
<select name="acx_csma_show_timer1">
|
1305 |
-
<option value="1" <?php if ($acx_csma_show_timer1 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
|
1306 |
-
<option value="0" <?php if ($acx_csma_show_timer1 == "0") { echo 'selected="selected"'; } ?>>No</option>
|
1307 |
</select>
|
1308 |
</div>
|
1309 |
<label>
|
@@ -2219,8 +2217,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2219 |
</label>
|
2220 |
<div class="acx_qa_field">
|
2221 |
<select name="acx_csma_show_timer4">
|
2222 |
-
<option value="1" <?php if ($acx_csma_show_timer4 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
|
2223 |
-
<option value="0" <?php if ($acx_csma_show_timer4 == "0") { echo 'selected="selected"'; } ?>>No</option>
|
2224 |
</select>
|
2225 |
</div>
|
2226 |
<label>
|
@@ -2243,8 +2241,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2243 |
</label>
|
2244 |
<div class="acx_qa_field">
|
2245 |
<select name="acx_csma_show_progressbar4">
|
2246 |
-
<option value="1" <?php if ($acx_csma_show_progressbar4 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
|
2247 |
-
<option value="0" <?php if ($acx_csma_show_progressbar4 == "0") { echo 'selected="selected"'; } ?>>No</option>
|
2248 |
</select>
|
2249 |
</div>
|
2250 |
<label>
|
@@ -2455,8 +2453,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2455 |
</label>
|
2456 |
<div class="acx_qa_field">
|
2457 |
<select name="acx_csma_show_timer5">
|
2458 |
-
<option value="1" <?php if ($acx_csma_show_timer5 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
|
2459 |
-
<option value="0" <?php if ($acx_csma_show_timer5 == "0") { echo 'selected="selected"'; } ?>>No</option>
|
2460 |
</select>
|
2461 |
</div>
|
2462 |
<label>
|
@@ -2478,8 +2476,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2478 |
</label>
|
2479 |
<div class="acx_qa_field">
|
2480 |
<select name="acx_csma_show_progressbar5">
|
2481 |
-
<option value="1" <?php if ($acx_csma_show_progressbar5 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
|
2482 |
-
<option value="0" <?php if ($acx_csma_show_progressbar5 == "0") { echo 'selected="selected"'; } ?>>No</option>
|
2483 |
</select>
|
2484 |
</div>
|
2485 |
<label>
|
540 |
$acx_csma_title4=sanitize_text_field($_POST['acx_csma_title4']);if($acx_csma_title4==""){$acx_csma_title4=$acx_csma_appearence_array['4']['acx_csma_title4'];}
|
541 |
$acx_csma_custom_html_top_temp4=stripslashes(trim($_POST['acx_csma_custom_html_top_temp4']));
|
542 |
$acx_csma_title_color4=sanitize_text_field($_POST['acx_csma_title_color4']);if($acx_csma_title_color4==""){$acx_csma_title_color4=$acx_csma_appearence_array['4']['acx_csma_title_color4'];}
|
543 |
+
$acx_csma_show_timer4=sanitize_text_field($_POST['acx_csma_show_timer4']);if($acx_csma_show_timer4==""){ $acx_csma_show_timer4=$acx_csma_appearence_array['4']['acx_csma_show_timer4'];}
|
544 |
$acx_csma_timer_iptext_color4=sanitize_text_field($_POST['acx_csma_timer_iptext_color4']);if($acx_csma_timer_iptext_color4==""){$acx_csma_timer_iptext_color4=$acx_csma_appearence_array['4']['acx_csma_timer_iptext_color4'];;}
|
545 |
$acx_csma_timer_head_color4=sanitize_text_field($_POST['acx_csma_timer_head_color4']);if($acx_csma_timer_head_color4==""){$acx_csma_timer_head_color4=$acx_csma_appearence_array['4']['acx_csma_timer_head_color4'];}
|
546 |
+
$acx_csma_show_progressbar4=sanitize_text_field($_POST['acx_csma_show_progressbar4']);if($acx_csma_show_progressbar4==""){ $acx_csma_show_progressbar4=$acx_csma_appearence_array['4']['acx_csma_show_progressbar4'];}
|
547 |
$acx_csma_progress_bar_color4=sanitize_text_field($_POST['acx_csma_progress_bar_color4']);if($acx_csma_progress_bar_color4==""){$acx_csma_progress_bar_color4=$acx_csma_appearence_array['4']['acx_csma_progress_bar_color4'];}
|
548 |
$acx_csma_custom_html_bottom_temp4=stripslashes(trim($_POST['acx_csma_custom_html_bottom_temp4']));
|
549 |
$acx_csma_fb_link4=esc_url_raw($_POST['acx_csma_fb_link4']);if($acx_csma_fb_link4==""){$acx_csma_fb_link4=$acx_csma_appearence_array['4']['acx_csma_fb_link4'];}
|
1157 |
$logo1_attachment_url = parse_url( wp_get_attachment_url($acx_csma_logo1_id) );
|
1158 |
$logo1_url = $logo1_attachment_url [ 'scheme' ] . '://' .rawurlencode( basename( $logo1_attachment_url[ 'host' ])). $logo1_attachment_url[ 'path' ];
|
1159 |
}
|
1160 |
+
|
|
|
|
|
1161 |
?>
|
1162 |
<label>
|
1163 |
Logo Image: <span id="acx_csma_span">(Recommended size 231x67)</span>
|
1300 |
</label>
|
1301 |
<div class="acx_qa_field">
|
1302 |
<select name="acx_csma_show_timer1">
|
1303 |
+
<option value="1" <?php if ($acx_csma_appearence_array['1']['acx_csma_show_timer1'] == "1") { echo 'selected="selected"'; } ?>>Yes </option>
|
1304 |
+
<option value="0" <?php if ($acx_csma_appearence_array['1']['acx_csma_show_timer1'] == "0") { echo 'selected="selected"'; } ?>>No</option>
|
1305 |
</select>
|
1306 |
</div>
|
1307 |
<label>
|
2217 |
</label>
|
2218 |
<div class="acx_qa_field">
|
2219 |
<select name="acx_csma_show_timer4">
|
2220 |
+
<option value="1" <?php if ($acx_csma_appearence_array['4']['acx_csma_show_timer4'] == "1") { echo 'selected="selected"'; } ?>>Yes </option>
|
2221 |
+
<option value="0" <?php if ($acx_csma_appearence_array['4']['acx_csma_show_timer4'] == "0") { echo 'selected="selected"'; } ?>>No</option>
|
2222 |
</select>
|
2223 |
</div>
|
2224 |
<label>
|
2241 |
</label>
|
2242 |
<div class="acx_qa_field">
|
2243 |
<select name="acx_csma_show_progressbar4">
|
2244 |
+
<option value="1" <?php if ($acx_csma_appearence_array['4']['acx_csma_show_progressbar4'] == "1") { echo 'selected="selected"'; } ?>>Yes </option>
|
2245 |
+
<option value="0" <?php if ($acx_csma_appearence_array['4']['acx_csma_show_progressbar4'] == "0") { echo 'selected="selected"'; } ?>>No</option>
|
2246 |
</select>
|
2247 |
</div>
|
2248 |
<label>
|
2453 |
</label>
|
2454 |
<div class="acx_qa_field">
|
2455 |
<select name="acx_csma_show_timer5">
|
2456 |
+
<option value="1" <?php if ($acx_csma_appearence_array['5']['acx_csma_show_timer5'] == "1") { echo 'selected="selected"'; } ?>>Yes </option>
|
2457 |
+
<option value="0" <?php if ($acx_csma_appearence_array['5']['acx_csma_show_timer5'] == "0") { echo 'selected="selected"'; } ?>>No</option>
|
2458 |
</select>
|
2459 |
</div>
|
2460 |
<label>
|
2476 |
</label>
|
2477 |
<div class="acx_qa_field">
|
2478 |
<select name="acx_csma_show_progressbar5">
|
2479 |
+
<option value="1" <?php if ($acx_csma_appearence_array['5']['acx_csma_show_progressbar5'] == "1") { echo 'selected="selected"'; } ?>>Yes </option>
|
2480 |
+
<option value="0" <?php if ($acx_csma_appearence_array['5']['acx_csma_show_progressbar5'] == "0") { echo 'selected="selected"'; } ?>>No</option>
|
2481 |
</select>
|
2482 |
</div>
|
2483 |
<label>
|
includes/hook_functions.php
CHANGED
@@ -7,6 +7,12 @@ function acx_csma_service_banners()
|
|
7 |
$acx_csma_service_banners = get_option('acx_csma_service_banners');
|
8 |
if ($acx_csma_service_banners != "no") { ?>
|
9 |
<div id="acx_ad_banners_csma">
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
<a href="http://wordpress.acurax.com/?utm_source=csma&utm_campaign=sidebar_banner_1" target="_blank" class="acx_ad_csma_1">
|
11 |
<div class="acx_ad_csma_title">Need Help on Wordpress?</div> <!-- acx_ad_csma_title -->
|
12 |
<div class="acx_ad_csma_desc">Instant Solutions for your wordpress Issues</div> <!-- acx_ad_csma_desc -->
|
@@ -26,6 +32,13 @@ if ($acx_csma_service_banners != "no") { ?>
|
|
26 |
<?php } else { ?>
|
27 |
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
<div class="acx_csma_sidebar_widget">
|
31 |
<div class="acx_csma_sidebar_w_title">We Are Always Available</div> <!-- acx_ad_csma_title -->
|
7 |
$acx_csma_service_banners = get_option('acx_csma_service_banners');
|
8 |
if ($acx_csma_service_banners != "no") { ?>
|
9 |
<div id="acx_ad_banners_csma">
|
10 |
+
<a href="http://wordpress.acurax.com/partner-with-us/?utm_source=csma&utm_campaign=agency_banner" target="_blank" class="acx_ad_csma_1">
|
11 |
+
<div class="acx_ad_csma_title">Are You an Agency?</div> <!-- acx_ad_csma_title -->
|
12 |
+
<div class="acx_ad_csma_desc_partner" style="padding-top: 0px; height: 32px; font-size: 13px; text-align: center;">Outsourcing Solutions From Acurax Can Add Value to Your Business</div> <!-- acx_ad_csma_desc -->
|
13 |
+
</a> <!-- acx_ad_csma_1 -->
|
14 |
+
|
15 |
+
|
16 |
<a href="http://wordpress.acurax.com/?utm_source=csma&utm_campaign=sidebar_banner_1" target="_blank" class="acx_ad_csma_1">
|
17 |
<div class="acx_ad_csma_title">Need Help on Wordpress?</div> <!-- acx_ad_csma_title -->
|
18 |
<div class="acx_ad_csma_desc">Instant Solutions for your wordpress Issues</div> <!-- acx_ad_csma_desc -->
|
32 |
<?php } else { ?>
|
33 |
|
34 |
|
35 |
+
<div class="acx_csma_sidebar_widget">
|
36 |
+
<div class="acx_csma_sidebar_w_title">Partner With Us</div> <!-- acx_ad_csma_title -->
|
37 |
+
<div class="acx_csma_sidebar_w_content">
|
38 |
+
Acurax offers a strong partnership program for agencies which has a strong sales channel. Our team of creative designers and developers will be surely an added value to your services. We can completely take care of the projects or can work with your existing team. <a href="http://wordpress.acurax.com/partner-with-us/?utm_source=csma&utm_campaign=agency_text" target="_blank">Get in touch</a>
|
39 |
+
</div>
|
40 |
+
</div> <!-- acx_csma_sidebar_widget -->
|
41 |
+
|
42 |
|
43 |
<div class="acx_csma_sidebar_widget">
|
44 |
<div class="acx_csma_sidebar_w_title">We Are Always Available</div> <!-- acx_ad_csma_title -->
|
readme.txt
CHANGED
@@ -179,6 +179,13 @@ Its Because You Selected The Option “Would You Like To End The Maintenance Mod
|
|
179 |
|
180 |
== Upgrade Notice ==
|
181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
= 2.1 =
|
183 |
* Dec 16, 2015
|
184 |
* Code Optimization
|
@@ -209,6 +216,13 @@ Its Because You Selected The Option “Would You Like To End The Maintenance Mod
|
|
209 |
|
210 |
== Changelog ==
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
= 2.1 =
|
213 |
* Dec 16, 2015
|
214 |
* Code Optimization
|
179 |
|
180 |
== Upgrade Notice ==
|
181 |
|
182 |
+
= 2.2 =
|
183 |
+
* Jan 20, 2016
|
184 |
+
* Fixed Progress Bar Bug
|
185 |
+
* Fixed Countdown Timer Bug
|
186 |
+
* Improved Subscription Form Logic
|
187 |
+
* Fixed Style/Layout Issues on Mobile Devices
|
188 |
+
|
189 |
= 2.1 =
|
190 |
* Dec 16, 2015
|
191 |
* Code Optimization
|
216 |
|
217 |
== Changelog ==
|
218 |
|
219 |
+
= 2.2 =
|
220 |
+
* Jan 20, 2016
|
221 |
+
* Fixed Progress Bar Bug
|
222 |
+
* Fixed Countdown Timer Bug
|
223 |
+
* Improved Subscription Form Logic
|
224 |
+
* Fixed Style/Layout Issues on Mobile Devices
|
225 |
+
|
226 |
= 2.1 =
|
227 |
* Dec 16, 2015
|
228 |
* Code Optimization
|
templates/0/index.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
$acx_csma_custom_html_val = get_option('acx_csma_custom_html_val');
|
3 |
-
$acx_csma_custom_html_val = apply_filters( 'the_content', $acx_csma_custom_html_val);
|
4 |
echo $acx_csma_custom_html_val;
|
5 |
?>
|
1 |
<?php
|
2 |
$acx_csma_custom_html_val = get_option('acx_csma_custom_html_val');
|
|
|
3 |
echo $acx_csma_custom_html_val;
|
4 |
?>
|
templates/1/index.php
CHANGED
@@ -192,14 +192,15 @@ function acx_csma_validate_email()
|
|
192 |
else{
|
193 |
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
194 |
document.getElementById('acx_csma_email').type = 'email';
|
195 |
-
|
|
|
196 |
acx_csma_form_status=2;
|
197 |
return false;
|
198 |
}
|
199 |
}
|
200 |
else if(acx_csma_form_status==2)
|
201 |
{
|
202 |
-
|
203 |
var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
|
204 |
if (acx_csma_email=='')
|
205 |
{
|
@@ -213,21 +214,30 @@ function acx_csma_validate_email()
|
|
213 |
jQuery("#acx_csma_email").hide();
|
214 |
jQuery("#acx_csma_submit").hide();
|
215 |
jQuery("#acx_csma_invalid").show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
return false;
|
217 |
}
|
218 |
else
|
219 |
{
|
220 |
-
|
221 |
var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
|
222 |
jQuery('body').append(acx_load);
|
223 |
|
224 |
var timestamp = Math.floor(<?php echo current_time('timestamp'); ?>);
|
225 |
var ip="<?php echo $_SERVER['REMOTE_ADDR']; ?>";
|
226 |
var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
|
227 |
-
var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'×tamp='+timestamp+'&action=acx_csma_subscribe_email'+'&acx_csma_subscribe_es=<?php echo wp_create_nonce(
|
228 |
jQuery.post(acx_csma_ajaxurl, order, function(theResponse)
|
229 |
{
|
230 |
-
|
231 |
jQuery("#acx_csma_loading").remove();
|
232 |
if(theResponse == "success")
|
233 |
{
|
@@ -235,20 +245,41 @@ function acx_csma_validate_email()
|
|
235 |
document.getElementById('acx_csma_name_hidden').value="";
|
236 |
jQuery("#acx_csma_email").hide();
|
237 |
jQuery("#acx_csma_submit").hide();
|
|
|
238 |
jQuery("#acx_csma_success").show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
}
|
240 |
else{
|
241 |
-
|
242 |
document.getElementById('acx_csma_email').value="";
|
243 |
document.getElementById('acx_csma_name_hidden').value="";
|
244 |
jQuery("#acx_csma_email").hide();
|
245 |
jQuery("#acx_csma_submit").hide();
|
246 |
jQuery("#acx_csma_error").html("Email Already Exists !!");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
}
|
248 |
});
|
249 |
}
|
250 |
}
|
251 |
}
|
|
|
252 |
<?php if($acx_csma_appearence_array_1['1']['acx_csma_show_timer1']==1)
|
253 |
{
|
254 |
if($acx_csma_timestamp < $acx_csma_date_time)
|
192 |
else{
|
193 |
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
194 |
document.getElementById('acx_csma_email').type = 'email';
|
195 |
+
jQuery("#acx_csma_email").show();
|
196 |
+
document.getElementById('acx_csma_submit').value="Subscribe";
|
197 |
acx_csma_form_status=2;
|
198 |
return false;
|
199 |
}
|
200 |
}
|
201 |
else if(acx_csma_form_status==2)
|
202 |
{
|
203 |
+
var acx_csma_email = document.getElementById('acx_csma_email').value;
|
204 |
var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
|
205 |
if (acx_csma_email=='')
|
206 |
{
|
214 |
jQuery("#acx_csma_email").hide();
|
215 |
jQuery("#acx_csma_submit").hide();
|
216 |
jQuery("#acx_csma_invalid").show();
|
217 |
+
setTimeout(function()
|
218 |
+
{
|
219 |
+
jQuery("#acx_csma_invalid").hide();
|
220 |
+
document.getElementById('acx_csma_name_hidden').type = 'text';
|
221 |
+
document.getElementById('acx_csma_submit').value="NEXT";
|
222 |
+
jQuery("#acx_csma_submit").show();
|
223 |
+
acx_csma_form_status=1;
|
224 |
+
|
225 |
+
}, 3000);
|
226 |
+
|
227 |
+
|
228 |
return false;
|
229 |
}
|
230 |
else
|
231 |
{
|
|
|
232 |
var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
|
233 |
jQuery('body').append(acx_load);
|
234 |
|
235 |
var timestamp = Math.floor(<?php echo current_time('timestamp'); ?>);
|
236 |
var ip="<?php echo $_SERVER['REMOTE_ADDR']; ?>";
|
237 |
var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
|
238 |
+
var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'×tamp='+timestamp+'&action=acx_csma_subscribe_email'+'&acx_csma_subscribe_es=<?php echo wp_create_nonce('acx_csma_subscribe_es'); ?>';
|
239 |
jQuery.post(acx_csma_ajaxurl, order, function(theResponse)
|
240 |
{
|
|
|
241 |
jQuery("#acx_csma_loading").remove();
|
242 |
if(theResponse == "success")
|
243 |
{
|
245 |
document.getElementById('acx_csma_name_hidden').value="";
|
246 |
jQuery("#acx_csma_email").hide();
|
247 |
jQuery("#acx_csma_submit").hide();
|
248 |
+
|
249 |
jQuery("#acx_csma_success").show();
|
250 |
+
setTimeout(function()
|
251 |
+
{
|
252 |
+
jQuery("#acx_csma_success").hide();
|
253 |
+
document.getElementById('acx_csma_name_hidden').type = 'text';
|
254 |
+
document.getElementById('acx_csma_submit').value="NEXT";
|
255 |
+
jQuery("#acx_csma_submit").show();
|
256 |
+
acx_csma_form_status=1;
|
257 |
+
|
258 |
+
}, 3000);
|
259 |
}
|
260 |
else{
|
|
|
261 |
document.getElementById('acx_csma_email').value="";
|
262 |
document.getElementById('acx_csma_name_hidden').value="";
|
263 |
jQuery("#acx_csma_email").hide();
|
264 |
jQuery("#acx_csma_submit").hide();
|
265 |
jQuery("#acx_csma_error").html("Email Already Exists !!");
|
266 |
+
setTimeout(function()
|
267 |
+
{
|
268 |
+
jQuery("#acx_csma_error").html('');
|
269 |
+
jQuery("#acx_csma_error").hide();
|
270 |
+
document.getElementById('acx_csma_name_hidden').type = 'text';
|
271 |
+
document.getElementById('acx_csma_submit').value="NEXT";
|
272 |
+
jQuery("#acx_csma_submit").show();
|
273 |
+
acx_csma_form_status=1;
|
274 |
+
|
275 |
+
}, 3000);
|
276 |
+
|
277 |
}
|
278 |
});
|
279 |
}
|
280 |
}
|
281 |
}
|
282 |
+
|
283 |
<?php if($acx_csma_appearence_array_1['1']['acx_csma_show_timer1']==1)
|
284 |
{
|
285 |
if($acx_csma_timestamp < $acx_csma_date_time)
|
templates/1/style.css
CHANGED
@@ -77,6 +77,11 @@ h4
|
|
77 |
{
|
78 |
padding: 80px 0 0;
|
79 |
}
|
|
|
|
|
|
|
|
|
|
|
80 |
.inline_block
|
81 |
{
|
82 |
display: inline-block;
|
77 |
{
|
78 |
padding: 80px 0 0;
|
79 |
}
|
80 |
+
#header img {
|
81 |
+
display: block;
|
82 |
+
margin: 0 auto;
|
83 |
+
max-width: 231px;
|
84 |
+
}
|
85 |
.inline_block
|
86 |
{
|
87 |
display: inline-block;
|
templates/2/images/corner_1.png
CHANGED
Binary file
|
templates/2/index.php
CHANGED
@@ -74,9 +74,9 @@ $new_class="";
|
|
74 |
$logo2_url = $logo2_attachment_url [ 'scheme' ] . '://' .rawurlencode( basename( $logo2_attachment_url[ 'host' ])). $logo2_attachment_url[ 'path' ];
|
75 |
}
|
76 |
?>
|
77 |
-
|
78 |
<img src="<?php echo $logo2_url; ?>" alt="Logo">
|
79 |
-
|
80 |
<?php } else if($acx_csma_appearence_array_2['2']['acx_csma_logo_choice']=="text")
|
81 |
{ ?>
|
82 |
<div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_logo_text_color2']; ?>"><?php echo $acx_csma_appearence_array_2['2']['acx_csma_logo_text2']; ?></div><!-- logo_text-->
|
@@ -168,7 +168,7 @@ function acx_csma_validate_email()
|
|
168 |
else{
|
169 |
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
170 |
document.getElementById('acx_csma_email').type = 'email';
|
171 |
-
|
172 |
document.getElementById('acx_csma_submit').value="SUBMIT";
|
173 |
acx_csma_form_status=2;
|
174 |
return false;
|
@@ -190,17 +190,28 @@ function acx_csma_validate_email()
|
|
190 |
jQuery("#acx_csma_email").hide();
|
191 |
jQuery("#acx_csma_submit").hide();
|
192 |
jQuery("#acx_csma_invalid").show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
return false;
|
194 |
}
|
195 |
else
|
196 |
{
|
197 |
var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
|
198 |
jQuery('body').append(acx_load);
|
|
|
199 |
var timestamp = Math.floor(<?php echo current_time('timestamp'); ?>);
|
200 |
var ip="<?php echo $_SERVER['REMOTE_ADDR']; ?>";
|
201 |
var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
|
202 |
var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'×tamp='+timestamp+'&action=acx_csma_subscribe_email'+'&acx_csma_subscribe_es=<?php echo wp_create_nonce('acx_csma_subscribe_es'); ?>';
|
203 |
-
|
204 |
jQuery.post(acx_csma_ajaxurl, order, function(theResponse)
|
205 |
{
|
206 |
jQuery("#acx_csma_loading").remove();
|
@@ -210,15 +221,35 @@ function acx_csma_validate_email()
|
|
210 |
document.getElementById('acx_csma_name_hidden').value="";
|
211 |
jQuery("#acx_csma_email").hide();
|
212 |
jQuery("#acx_csma_submit").hide();
|
|
|
213 |
jQuery("#acx_csma_success").show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
}
|
215 |
else{
|
216 |
-
|
217 |
document.getElementById('acx_csma_email').value="";
|
218 |
document.getElementById('acx_csma_name_hidden').value="";
|
219 |
jQuery("#acx_csma_email").hide();
|
220 |
jQuery("#acx_csma_submit").hide();
|
221 |
jQuery("#acx_csma_error").html("Email Already Exists !!");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
}
|
223 |
});
|
224 |
}
|
74 |
$logo2_url = $logo2_attachment_url [ 'scheme' ] . '://' .rawurlencode( basename( $logo2_attachment_url[ 'host' ])). $logo2_attachment_url[ 'path' ];
|
75 |
}
|
76 |
?>
|
77 |
+
<div id="csma_master_logo">
|
78 |
<img src="<?php echo $logo2_url; ?>" alt="Logo">
|
79 |
+
</div> <!-- csma_master_logo -->
|
80 |
<?php } else if($acx_csma_appearence_array_2['2']['acx_csma_logo_choice']=="text")
|
81 |
{ ?>
|
82 |
<div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_logo_text_color2']; ?>"><?php echo $acx_csma_appearence_array_2['2']['acx_csma_logo_text2']; ?></div><!-- logo_text-->
|
168 |
else{
|
169 |
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
170 |
document.getElementById('acx_csma_email').type = 'email';
|
171 |
+
jQuery("#acx_csma_email").show();
|
172 |
document.getElementById('acx_csma_submit').value="SUBMIT";
|
173 |
acx_csma_form_status=2;
|
174 |
return false;
|
190 |
jQuery("#acx_csma_email").hide();
|
191 |
jQuery("#acx_csma_submit").hide();
|
192 |
jQuery("#acx_csma_invalid").show();
|
193 |
+
setTimeout(function()
|
194 |
+
{
|
195 |
+
jQuery("#acx_csma_invalid").hide();
|
196 |
+
document.getElementById('acx_csma_name_hidden').type = 'text';
|
197 |
+
document.getElementById('acx_csma_submit').value="NEXT";
|
198 |
+
jQuery("#acx_csma_submit").show();
|
199 |
+
acx_csma_form_status=1;
|
200 |
+
|
201 |
+
}, 3000);
|
202 |
+
|
203 |
+
|
204 |
return false;
|
205 |
}
|
206 |
else
|
207 |
{
|
208 |
var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
|
209 |
jQuery('body').append(acx_load);
|
210 |
+
|
211 |
var timestamp = Math.floor(<?php echo current_time('timestamp'); ?>);
|
212 |
var ip="<?php echo $_SERVER['REMOTE_ADDR']; ?>";
|
213 |
var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
|
214 |
var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'×tamp='+timestamp+'&action=acx_csma_subscribe_email'+'&acx_csma_subscribe_es=<?php echo wp_create_nonce('acx_csma_subscribe_es'); ?>';
|
|
|
215 |
jQuery.post(acx_csma_ajaxurl, order, function(theResponse)
|
216 |
{
|
217 |
jQuery("#acx_csma_loading").remove();
|
221 |
document.getElementById('acx_csma_name_hidden').value="";
|
222 |
jQuery("#acx_csma_email").hide();
|
223 |
jQuery("#acx_csma_submit").hide();
|
224 |
+
|
225 |
jQuery("#acx_csma_success").show();
|
226 |
+
setTimeout(function()
|
227 |
+
{
|
228 |
+
jQuery("#acx_csma_success").hide();
|
229 |
+
document.getElementById('acx_csma_name_hidden').type = 'text';
|
230 |
+
document.getElementById('acx_csma_submit').value="NEXT";
|
231 |
+
jQuery("#acx_csma_submit").show();
|
232 |
+
acx_csma_form_status=1;
|
233 |
+
|
234 |
+
}, 3000);
|
235 |
}
|
236 |
else{
|
|
|
237 |
document.getElementById('acx_csma_email').value="";
|
238 |
document.getElementById('acx_csma_name_hidden').value="";
|
239 |
jQuery("#acx_csma_email").hide();
|
240 |
jQuery("#acx_csma_submit").hide();
|
241 |
jQuery("#acx_csma_error").html("Email Already Exists !!");
|
242 |
+
setTimeout(function()
|
243 |
+
{
|
244 |
+
jQuery("#acx_csma_error").html('');
|
245 |
+
jQuery("#acx_csma_error").hide();
|
246 |
+
document.getElementById('acx_csma_name_hidden').type = 'text';
|
247 |
+
document.getElementById('acx_csma_submit').value="NEXT";
|
248 |
+
jQuery("#acx_csma_submit").show();
|
249 |
+
acx_csma_form_status=1;
|
250 |
+
|
251 |
+
}, 3000);
|
252 |
+
|
253 |
}
|
254 |
});
|
255 |
}
|
templates/2/style.css
CHANGED
@@ -74,7 +74,7 @@ h4
|
|
74 |
{
|
75 |
display: inline-block;
|
76 |
}
|
77 |
-
.header
|
78 |
{
|
79 |
background: url("images/corner_1.png") no-repeat scroll right center rgba(0, 0, 0, 0);
|
80 |
height: 81px;
|
@@ -83,11 +83,38 @@ h4
|
|
83 |
padding: 0 60px 0 26px;
|
84 |
position: relative;
|
85 |
text-align: right;
|
86 |
-
}
|
87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
{
|
89 |
margin: 28px 0 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
}
|
|
|
91 |
.acx_csma_content_div{
|
92 |
width:100%;
|
93 |
height:auto;
|
74 |
{
|
75 |
display: inline-block;
|
76 |
}
|
77 |
+
/* .header
|
78 |
{
|
79 |
background: url("images/corner_1.png") no-repeat scroll right center rgba(0, 0, 0, 0);
|
80 |
height: 81px;
|
83 |
padding: 0 60px 0 26px;
|
84 |
position: relative;
|
85 |
text-align: right;
|
86 |
+
} */
|
87 |
+
|
88 |
+
.header {
|
89 |
+
background: rgba(0, 0, 0, 0) url("images/corner_1.png") no-repeat scroll right top;
|
90 |
+
box-sizing: border-box;
|
91 |
+
float: right;
|
92 |
+
min-height: 81px;
|
93 |
+
margin-right: -14px;
|
94 |
+
max-width: 885px;
|
95 |
+
padding: 0 23px 0 26px;
|
96 |
+
position: relative;
|
97 |
+
text-align: right;
|
98 |
+
}
|
99 |
+
|
100 |
+
/* .header img
|
101 |
{
|
102 |
margin: 28px 0 0;
|
103 |
+
} */
|
104 |
+
#csma_master_logo {
|
105 |
+
float: right;
|
106 |
+
margin-top: 13px;
|
107 |
+
width: 144px;
|
108 |
+
margin-bottom: 10px;
|
109 |
+
}
|
110 |
+
|
111 |
+
#csma_master_logo > img {
|
112 |
+
display: block;
|
113 |
+
margin: 0 auto;
|
114 |
+
max-width: 100%;
|
115 |
+
vertical-align: middle;
|
116 |
}
|
117 |
+
|
118 |
.acx_csma_content_div{
|
119 |
width:100%;
|
120 |
height:auto;
|
templates/3/images/form_top_bg.png
CHANGED
Binary file
|
templates/3/index.php
CHANGED
@@ -77,6 +77,7 @@ $new_class="";
|
|
77 |
<div class="inline_block">
|
78 |
<div class="inline_block form_holder">
|
79 |
<div class="header">
|
|
|
80 |
<?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_3['3'])){ if($acx_csma_appearence_array_3['3']['acx_csma_logo_choice']=="image" || $acx_csma_appearence_array_3['3']['acx_csma_logo_choice']==""){
|
81 |
$acx_csma_logo3_id = $acx_csma_appearence_array_3['3']['acx_csma_logo3'];
|
82 |
$logo3_url = $acx_csma_logo3_id;
|
@@ -86,7 +87,8 @@ $new_class="";
|
|
86 |
$logo3_url = $logo3_attachment_url [ 'scheme' ] . '://' .rawurlencode( basename( $logo3_attachment_url[ 'host' ])). $logo3_attachment_url[ 'path' ];
|
87 |
}
|
88 |
?>
|
89 |
-
|
|
|
90 |
<?php } else if($acx_csma_appearence_array_3['3']['acx_csma_logo_choice']=="text"){?>
|
91 |
<div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_logo_text_color3']; ?>"><?php echo $acx_csma_appearence_array_3['3']['acx_csma_logo_text3']; ?></div>
|
92 |
<?php } } ?>
|
@@ -195,71 +197,103 @@ function acx_csma_validate_email()
|
|
195 |
var acx_csma_name_hidden=document.getElementById('acx_csma_name_hidden').value;
|
196 |
if(acx_csma_form_status== 1)
|
197 |
{
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
return false;
|
203 |
-
}
|
204 |
-
else{
|
205 |
-
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
206 |
-
document.getElementById('acx_csma_email').type = 'email';
|
207 |
-
|
208 |
-
document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_btn_text3']; ?>";
|
209 |
-
acx_csma_form_status=2;
|
210 |
return false;
|
211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
}
|
213 |
else if(acx_csma_form_status==2)
|
214 |
{
|
215 |
var acx_csma_email = document.getElementById('acx_csma_email').value;
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
{
|
|
|
|
|
|
|
224 |
document.getElementById('acx_csma_email').value="";
|
225 |
document.getElementById('acx_csma_name_hidden').value="";
|
226 |
jQuery("#acx_csma_email").hide();
|
227 |
jQuery("#acx_csma_submit").hide();
|
228 |
-
jQuery("#acx_csma_invalid").show();
|
229 |
-
return false;
|
230 |
-
}
|
231 |
-
else
|
232 |
-
{
|
233 |
-
var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
|
234 |
-
jQuery('body').append(acx_load);
|
235 |
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
jQuery("#
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
jQuery("#
|
256 |
-
jQuery("#
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
}
|
262 |
}
|
|
|
263 |
<?php
|
264 |
if($acx_csma_timestamp < $acx_csma_date_time)
|
265 |
{?>
|
77 |
<div class="inline_block">
|
78 |
<div class="inline_block form_holder">
|
79 |
<div class="header">
|
80 |
+
|
81 |
<?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_3['3'])){ if($acx_csma_appearence_array_3['3']['acx_csma_logo_choice']=="image" || $acx_csma_appearence_array_3['3']['acx_csma_logo_choice']==""){
|
82 |
$acx_csma_logo3_id = $acx_csma_appearence_array_3['3']['acx_csma_logo3'];
|
83 |
$logo3_url = $acx_csma_logo3_id;
|
87 |
$logo3_url = $logo3_attachment_url [ 'scheme' ] . '://' .rawurlencode( basename( $logo3_attachment_url[ 'host' ])). $logo3_attachment_url[ 'path' ];
|
88 |
}
|
89 |
?>
|
90 |
+
<div id="acx_csma_temp3_img_cvr">
|
91 |
+
<img src="<?php echo $logo3_url; ?>" alt="Logo"></div>
|
92 |
<?php } else if($acx_csma_appearence_array_3['3']['acx_csma_logo_choice']=="text"){?>
|
93 |
<div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_logo_text_color3']; ?>"><?php echo $acx_csma_appearence_array_3['3']['acx_csma_logo_text3']; ?></div>
|
94 |
<?php } } ?>
|
197 |
var acx_csma_name_hidden=document.getElementById('acx_csma_name_hidden').value;
|
198 |
if(acx_csma_form_status== 1)
|
199 |
{
|
200 |
+
if(acx_csma_name_hidden=="")
|
201 |
+
{
|
202 |
+
alert('ERROR : Please Enter Your Name !');
|
203 |
+
acx_csma_form_status=1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
return false;
|
205 |
+
}
|
206 |
+
else{
|
207 |
+
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
208 |
+
document.getElementById('acx_csma_email').type = 'email';
|
209 |
+
jQuery("#acx_csma_email").show();
|
210 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_btn_text3']; ?>";
|
211 |
+
acx_csma_form_status=2;
|
212 |
+
return false;
|
213 |
+
}
|
214 |
}
|
215 |
else if(acx_csma_form_status==2)
|
216 |
{
|
217 |
var acx_csma_email = document.getElementById('acx_csma_email').value;
|
218 |
+
var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
|
219 |
+
if (acx_csma_email=='')
|
220 |
+
{
|
221 |
+
alert('Please Enter Email Address !');
|
222 |
+
return false;
|
223 |
+
}
|
224 |
+
else if (!expr.test(acx_csma_email))
|
225 |
+
{
|
226 |
+
document.getElementById('acx_csma_email').value="";
|
227 |
+
document.getElementById('acx_csma_name_hidden').value="";
|
228 |
+
jQuery("#acx_csma_email").hide();
|
229 |
+
jQuery("#acx_csma_submit").hide();
|
230 |
+
jQuery("#acx_csma_invalid").show();
|
231 |
+
setTimeout(function()
|
232 |
+
{
|
233 |
+
jQuery("#acx_csma_invalid").hide();
|
234 |
+
document.getElementById('acx_csma_name_hidden').type = 'text';
|
235 |
+
document.getElementById('acx_csma_submit').value="NEXT";
|
236 |
+
jQuery("#acx_csma_submit").show();
|
237 |
+
acx_csma_form_status=1;
|
238 |
+
|
239 |
+
}, 3000);
|
240 |
+
|
241 |
+
|
242 |
+
return false;
|
243 |
+
}
|
244 |
+
else
|
245 |
+
{
|
246 |
+
var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
|
247 |
+
jQuery('body').append(acx_load);
|
248 |
+
|
249 |
+
var timestamp = Math.floor(<?php echo current_time('timestamp'); ?>);
|
250 |
+
var ip="<?php echo $_SERVER['REMOTE_ADDR']; ?>";
|
251 |
+
var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
|
252 |
+
var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'×tamp='+timestamp+'&action=acx_csma_subscribe_email'+'&acx_csma_subscribe_es=<?php echo wp_create_nonce('acx_csma_subscribe_es'); ?>';
|
253 |
+
jQuery.post(acx_csma_ajaxurl, order, function(theResponse)
|
254 |
{
|
255 |
+
jQuery("#acx_csma_loading").remove();
|
256 |
+
if(theResponse == "success")
|
257 |
+
{
|
258 |
document.getElementById('acx_csma_email').value="";
|
259 |
document.getElementById('acx_csma_name_hidden').value="";
|
260 |
jQuery("#acx_csma_email").hide();
|
261 |
jQuery("#acx_csma_submit").hide();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
262 |
|
263 |
+
jQuery("#acx_csma_success").show();
|
264 |
+
setTimeout(function()
|
265 |
+
{
|
266 |
+
jQuery("#acx_csma_success").hide();
|
267 |
+
document.getElementById('acx_csma_name_hidden').type = 'text';
|
268 |
+
document.getElementById('acx_csma_submit').value="NEXT";
|
269 |
+
jQuery("#acx_csma_submit").show();
|
270 |
+
acx_csma_form_status=1;
|
271 |
+
|
272 |
+
}, 3000);
|
273 |
+
}
|
274 |
+
else{
|
275 |
+
document.getElementById('acx_csma_email').value="";
|
276 |
+
document.getElementById('acx_csma_name_hidden').value="";
|
277 |
+
jQuery("#acx_csma_email").hide();
|
278 |
+
jQuery("#acx_csma_submit").hide();
|
279 |
+
jQuery("#acx_csma_error").html("Email Already Exists !!");
|
280 |
+
setTimeout(function()
|
281 |
+
{
|
282 |
+
jQuery("#acx_csma_error").html('');
|
283 |
+
jQuery("#acx_csma_error").hide();
|
284 |
+
document.getElementById('acx_csma_name_hidden').type = 'text';
|
285 |
+
document.getElementById('acx_csma_submit').value="NEXT";
|
286 |
+
jQuery("#acx_csma_submit").show();
|
287 |
+
acx_csma_form_status=1;
|
288 |
+
|
289 |
+
}, 3000);
|
290 |
+
|
291 |
+
}
|
292 |
+
});
|
293 |
+
}
|
294 |
}
|
295 |
}
|
296 |
+
|
297 |
<?php
|
298 |
if($acx_csma_timestamp < $acx_csma_date_time)
|
299 |
{?>
|
templates/3/style.css
CHANGED
@@ -80,17 +80,39 @@ h5
|
|
80 |
{
|
81 |
display: inline-block;
|
82 |
}
|
83 |
-
.header
|
84 |
{
|
85 |
background: url("images/form_top_bg.png") repeat-x scroll 0 0 transparent;
|
86 |
border-bottom: 1px solid #0d0d0d;
|
87 |
height: 149px;
|
88 |
position: relative;
|
89 |
text-align: center;
|
90 |
-
}
|
91 |
-
.header img
|
92 |
{
|
93 |
margin: 67px 0 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
}
|
95 |
.timer_holder
|
96 |
{
|
80 |
{
|
81 |
display: inline-block;
|
82 |
}
|
83 |
+
/* .header
|
84 |
{
|
85 |
background: url("images/form_top_bg.png") repeat-x scroll 0 0 transparent;
|
86 |
border-bottom: 1px solid #0d0d0d;
|
87 |
height: 149px;
|
88 |
position: relative;
|
89 |
text-align: center;
|
90 |
+
} */
|
91 |
+
/* .header img
|
92 |
{
|
93 |
margin: 67px 0 0;
|
94 |
+
} */
|
95 |
+
.header {
|
96 |
+
background: transparent url("images/form_top_bg.png") repeat-x scroll 0 0;
|
97 |
+
border-bottom: 1px solid #0d0d0d;
|
98 |
+
display: table;
|
99 |
+
min-height: 149px;
|
100 |
+
position: relative;
|
101 |
+
text-align: center;
|
102 |
+
}
|
103 |
+
|
104 |
+
|
105 |
+
#acx_csma_temp3_img_cvr {
|
106 |
+
background: #000 none repeat scroll 0 0;
|
107 |
+
margin: 56px auto 0;
|
108 |
+
max-width: 100%;
|
109 |
+
}
|
110 |
+
|
111 |
+
#acx_csma_temp3_img_cvr img {
|
112 |
+
display: block;
|
113 |
+
margin: 0 auto;
|
114 |
+
max-width: 250px;
|
115 |
+
vertical-align: middle;
|
116 |
}
|
117 |
.timer_holder
|
118 |
{
|
templates/4/style.css
CHANGED
@@ -49,6 +49,11 @@ h2
|
|
49 |
{
|
50 |
height: auto;
|
51 |
}
|
|
|
|
|
|
|
|
|
|
|
52 |
.inline_block
|
53 |
{
|
54 |
display: inline-block;
|
49 |
{
|
50 |
height: auto;
|
51 |
}
|
52 |
+
#header img {
|
53 |
+
display: block;
|
54 |
+
margin: 0 auto;
|
55 |
+
max-width: 326px;
|
56 |
+
}
|
57 |
.inline_block
|
58 |
{
|
59 |
display: inline-block;
|
templates/5/index.php
CHANGED
@@ -199,7 +199,7 @@ function acx_csma_validate_email()
|
|
199 |
else{
|
200 |
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
201 |
document.getElementById('acx_csma_email').type = 'email';
|
202 |
-
|
203 |
document.getElementById('acx_csma_submit').value="Subscribe";
|
204 |
acx_csma_form_status=2;
|
205 |
return false;
|
@@ -221,6 +221,17 @@ function acx_csma_validate_email()
|
|
221 |
jQuery("#acx_csma_email").hide();
|
222 |
jQuery("#acx_csma_submit").hide();
|
223 |
jQuery("#acx_csma_invalid").show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
return false;
|
225 |
}
|
226 |
else
|
@@ -241,7 +252,17 @@ function acx_csma_validate_email()
|
|
241 |
document.getElementById('acx_csma_name_hidden').value="";
|
242 |
jQuery("#acx_csma_email").hide();
|
243 |
jQuery("#acx_csma_submit").hide();
|
|
|
244 |
jQuery("#acx_csma_success").show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
}
|
246 |
else{
|
247 |
document.getElementById('acx_csma_email').value="";
|
@@ -249,6 +270,17 @@ function acx_csma_validate_email()
|
|
249 |
jQuery("#acx_csma_email").hide();
|
250 |
jQuery("#acx_csma_submit").hide();
|
251 |
jQuery("#acx_csma_error").html("Email Already Exists !!");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
}
|
253 |
});
|
254 |
}
|
199 |
else{
|
200 |
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
201 |
document.getElementById('acx_csma_email').type = 'email';
|
202 |
+
jQuery("#acx_csma_email").show();
|
203 |
document.getElementById('acx_csma_submit').value="Subscribe";
|
204 |
acx_csma_form_status=2;
|
205 |
return false;
|
221 |
jQuery("#acx_csma_email").hide();
|
222 |
jQuery("#acx_csma_submit").hide();
|
223 |
jQuery("#acx_csma_invalid").show();
|
224 |
+
setTimeout(function()
|
225 |
+
{
|
226 |
+
jQuery("#acx_csma_invalid").hide();
|
227 |
+
document.getElementById('acx_csma_name_hidden').type = 'text';
|
228 |
+
document.getElementById('acx_csma_submit').value="NEXT";
|
229 |
+
jQuery("#acx_csma_submit").show();
|
230 |
+
acx_csma_form_status=1;
|
231 |
+
|
232 |
+
}, 3000);
|
233 |
+
|
234 |
+
|
235 |
return false;
|
236 |
}
|
237 |
else
|
252 |
document.getElementById('acx_csma_name_hidden').value="";
|
253 |
jQuery("#acx_csma_email").hide();
|
254 |
jQuery("#acx_csma_submit").hide();
|
255 |
+
|
256 |
jQuery("#acx_csma_success").show();
|
257 |
+
setTimeout(function()
|
258 |
+
{
|
259 |
+
jQuery("#acx_csma_success").hide();
|
260 |
+
document.getElementById('acx_csma_name_hidden').type = 'text';
|
261 |
+
document.getElementById('acx_csma_submit').value="NEXT";
|
262 |
+
jQuery("#acx_csma_submit").show();
|
263 |
+
acx_csma_form_status=1;
|
264 |
+
|
265 |
+
}, 3000);
|
266 |
}
|
267 |
else{
|
268 |
document.getElementById('acx_csma_email').value="";
|
270 |
jQuery("#acx_csma_email").hide();
|
271 |
jQuery("#acx_csma_submit").hide();
|
272 |
jQuery("#acx_csma_error").html("Email Already Exists !!");
|
273 |
+
setTimeout(function()
|
274 |
+
{
|
275 |
+
jQuery("#acx_csma_error").html('');
|
276 |
+
jQuery("#acx_csma_error").hide();
|
277 |
+
document.getElementById('acx_csma_name_hidden').type = 'text';
|
278 |
+
document.getElementById('acx_csma_submit').value="NEXT";
|
279 |
+
jQuery("#acx_csma_submit").show();
|
280 |
+
acx_csma_form_status=1;
|
281 |
+
|
282 |
+
}, 3000);
|
283 |
+
|
284 |
}
|
285 |
});
|
286 |
}
|
templates/5/style.css
CHANGED
@@ -53,6 +53,11 @@ h3
|
|
53 |
{
|
54 |
padding: 50px 0;
|
55 |
}
|
|
|
|
|
|
|
|
|
|
|
56 |
.inline_block
|
57 |
{
|
58 |
display: inline-block;
|
53 |
{
|
54 |
padding: 50px 0;
|
55 |
}
|
56 |
+
#header img {
|
57 |
+
display: block;
|
58 |
+
margin: 0 auto;
|
59 |
+
max-width: 315px;
|
60 |
+
}
|
61 |
.inline_block
|
62 |
{
|
63 |
display: inline-block;
|