Version Description
- April 3, 2016
- Added More Customization Options for Templates
- Option to Hide Countdown Timers
- Added More Custom HTML Blocks
- Added feature - Display Variables which helps you to have more flexibility on texts
- Several Bug Fixes and Improvements
- Stability Improvements
Download this release
Release Info
Developer | Acurax |
Plugin | Under Construction / Maintenance Mode from Acurax |
Version | 2.5 |
Comparing to | |
See all releases |
Code changes from version 2.4 to 2.5
- acx_csma.php +24 -155
- css/acx_csma_box.css +5 -0
- css/{style_admin.css → admin.css} +124 -0
- function.php +746 -62
- images/close_btn.png +0 -0
- images/csma_01.png +0 -0
- images/csma_02.png +0 -0
- images/csma_03.png +0 -0
- images/csma_04.png +0 -0
- images/loading.gif +0 -0
- images/{html-img.png → template0.png} +0 -0
- images/{template1 .png → template1.png} +0 -0
- includes/acx_csma_admin.php +613 -644
- includes/acx_csma_display_variables.php +13 -0
- includes/defaults.php +334 -0
- includes/hooks.php +5 -24
- includes/updates.php +141 -0
- readme.txt +21 -1
- templates/0/index.php +1 -1
- templates/1/index.php +132 -52
- templates/2/index.php +138 -47
- templates/2/style.css +7 -0
- templates/3/index.php +128 -41
- templates/3/js/jquery.nicescroll.min.js +118 -0
- templates/4/index.php +90 -24
- templates/5/index.php +131 -38
acx_csma.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Under Construction / Maintenance Mode From Acurax
|
4 |
-
Plugin URI: http://www.acurax.com/
|
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://
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
/*
|
@@ -26,40 +26,47 @@ 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 |
|
33 |
-
include_once('function.php');
|
34 |
-
include_once('includes/
|
35 |
-
include_once('includes/
|
|
|
36 |
|
37 |
-
$filename = plugin_dir_path( __FILE__ ) . 'backward_compactability_file.php';
|
38 |
if( file_exists( $filename ) === true )
|
39 |
{
|
40 |
-
include('backward_compactability_file.php');
|
41 |
}
|
42 |
function acx_csma_admin()
|
43 |
{
|
44 |
-
include('includes/acx_csma_admin.php');
|
45 |
}
|
46 |
function acx_csma_subscribers()
|
47 |
{
|
48 |
-
include('includes/acx_csma_subscribers.php');
|
49 |
}
|
50 |
|
51 |
function acx_csma_misc()
|
52 |
{
|
53 |
-
include('includes/acx_csma_misc.php');
|
54 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
function acx_csma_help()
|
56 |
{
|
57 |
-
include('includes/acx_csma_help.php');
|
58 |
}
|
59 |
|
60 |
function acx_csma_expert_support()
|
61 |
{
|
62 |
-
include('includes/acx_csma_expert_support.php');
|
63 |
}
|
64 |
|
65 |
|
@@ -75,151 +82,13 @@ $filename = plugin_dir_path( __FILE__ ) . 'backward_compactability_file.php';
|
|
75 |
if($acx_csma_hide_expert_support_menu == "no") {
|
76 |
add_submenu_page('Acurax-Coming-Soon-Maintenance-Mode-Settings', 'Acurax Expert Support', 'Expert Support', 'manage_options', 'Acurax-Coming-Soon-Maintenance-Mode-Expert-Support' ,'acx_csma_expert_support');
|
77 |
}
|
|
|
|
|
78 |
add_submenu_page('Acurax-Coming-Soon-Maintenance-Mode-Settings', 'Coming Soon/Maintenance From Acurax Help and Support', 'Help', 'manage_options', 'Acurax-Coming-Soon-Maintenance-Mode-Help' ,'acx_csma_help');
|
79 |
}
|
80 |
if ( is_admin() )
|
81 |
{
|
82 |
add_action('admin_menu', 'acx_csma_admin_actions');
|
83 |
}
|
84 |
-
|
85 |
-
$acx_csma_version=get_option('acx_csma_version');
|
86 |
-
if($acx_csma_version == '' && get_option('acx_csma_start_date_time') != "")
|
87 |
-
{
|
88 |
-
add_action('admin_head','acx_csma_migration');
|
89 |
-
}
|
90 |
-
function acx_csma_migration()
|
91 |
-
{
|
92 |
-
$acx_csma_start_timestamp_from = get_option('acx_csma_start_date_time');
|
93 |
-
$acx_csma_cur_date_time_from=get_option('acx_csma_date_time');
|
94 |
-
$acx_csma_wp_time= current_time('timestamp');
|
95 |
-
$acx_csma_server_time=time();
|
96 |
-
$diff=$acx_csma_wp_time-$acx_csma_server_time;
|
97 |
-
$acx_csma_start_timestamp = $acx_csma_start_timestamp_from + ($diff);
|
98 |
-
$acx_csma_date_time = $acx_csma_cur_date_time_from + ($diff);
|
99 |
-
update_option('acx_csma_start_date_time',$acx_csma_start_timestamp);
|
100 |
-
update_option('acx_csma_date_time',$acx_csma_date_time);
|
101 |
-
update_option('acx_csma_version','1.1');
|
102 |
-
}
|
103 |
-
|
104 |
-
$acx_csma_version=get_option('acx_csma_version');
|
105 |
-
if(($acx_csma_version > 0 && $acx_csma_version < ACX_CSMA_CURRENT_VERSION))
|
106 |
-
{
|
107 |
-
if (function_exists('acx_csma_base_encode_fix')) {
|
108 |
-
add_action('admin_head','acx_csma_update_content');
|
109 |
-
}
|
110 |
-
}
|
111 |
-
|
112 |
-
function acx_csma_update_content()
|
113 |
-
{
|
114 |
-
$acx_csma_appearence_array=get_option('acx_csma_appearence_array');
|
115 |
-
if($acx_csma_appearence_array != "")
|
116 |
-
{
|
117 |
-
if(is_serialized($acx_csma_appearence_array))
|
118 |
-
{
|
119 |
-
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
120 |
-
}
|
121 |
-
}
|
122 |
-
if(is_array($acx_csma_appearence_array))
|
123 |
-
{
|
124 |
-
if(array_key_exists('1',$acx_csma_appearence_array) && array_key_exists('acx_csma_inside_title1',$acx_csma_appearence_array['1']))
|
125 |
-
{
|
126 |
-
$acx_csma_inside_title1 = $acx_csma_appearence_array['1']['acx_csma_inside_title1'];
|
127 |
-
if(strcmp($acx_csma_inside_title1,"Estimate Time Before Lunching") === 0 )
|
128 |
-
{
|
129 |
-
$acx_csma_appearence_array['1']['acx_csma_inside_title1'] = "Estimate Time Before Launching";
|
130 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
131 |
-
}
|
132 |
-
}
|
133 |
-
if(array_key_exists('1',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_top_temp1',$acx_csma_appearence_array['1']))
|
134 |
-
{
|
135 |
-
$acx_csma_custom_html_top_temp1 = $acx_csma_appearence_array['1']['acx_csma_custom_html_top_temp1'];
|
136 |
-
|
137 |
-
|
138 |
-
$acx_html_fix_content1 = acx_csma_base_encode_fix($acx_csma_custom_html_top_temp1);
|
139 |
-
$acx_csma_appearence_array['1']['acx_csma_custom_html_top_temp1'] = $acx_html_fix_content1;
|
140 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
141 |
-
}
|
142 |
-
if(array_key_exists('1',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_bottom_temp1',$acx_csma_appearence_array['1']))
|
143 |
-
{
|
144 |
-
$acx_csma_custom_html_bottom_temp1 = $acx_csma_appearence_array['1']['acx_csma_custom_html_bottom_temp1'];
|
145 |
-
|
146 |
-
$acx_html_fix_content2 =acx_csma_base_encode_fix($acx_csma_custom_html_bottom_temp1);
|
147 |
-
$acx_csma_appearence_array['1']['acx_csma_custom_html_bottom_temp1'] = $acx_html_fix_content2;
|
148 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
149 |
-
|
150 |
-
}
|
151 |
-
if(array_key_exists('2',$acx_csma_appearence_array) && array_key_exists('acx_csma_desc_subtitle2',$acx_csma_appearence_array['2']))
|
152 |
-
{
|
153 |
-
$acx_csma_desc_subtitle2 = $acx_csma_appearence_array['2']['acx_csma_desc_subtitle2'];
|
154 |
-
|
155 |
-
$acx_html_fix_content3 = acx_csma_base_encode_fix($acx_csma_desc_subtitle2);
|
156 |
-
$acx_csma_appearence_array['2']['acx_csma_desc_subtitle2'] = $acx_html_fix_content3;
|
157 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
158 |
-
|
159 |
-
}
|
160 |
-
if(array_key_exists('2',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_top_temp2',$acx_csma_appearence_array['2']))
|
161 |
-
{
|
162 |
-
$acx_csma_custom_html_top_temp2 = $acx_csma_appearence_array['2']['acx_csma_custom_html_top_temp2'];
|
163 |
-
$acx_html_fix_content4 = acx_csma_base_encode_fix($acx_csma_custom_html_top_temp2);
|
164 |
-
$acx_csma_appearence_array['2']['acx_csma_custom_html_top_temp2'] = $acx_html_fix_content4;
|
165 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
166 |
-
}
|
167 |
-
if(array_key_exists('3',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_top_temp3',$acx_csma_appearence_array['3']))
|
168 |
-
{
|
169 |
-
$acx_csma_custom_html_top_temp3 = $acx_csma_appearence_array['3']['acx_csma_custom_html_top_temp3'];
|
170 |
-
$acx_html_fix_content5 = acx_csma_base_encode_fix($acx_csma_custom_html_top_temp3);
|
171 |
-
$acx_csma_appearence_array['3']['acx_csma_custom_html_top_temp3'] = $acx_html_fix_content5;
|
172 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
173 |
-
|
174 |
-
}
|
175 |
-
if(array_key_exists('3',$acx_csma_appearence_array) && array_key_exists('acx_csma_desc_subtitle3',$acx_csma_appearence_array['3']))
|
176 |
-
{
|
177 |
-
$acx_csma_desc_subtitle3 = $acx_csma_appearence_array['3']['acx_csma_desc_subtitle3'];
|
178 |
-
$acx_html_fix_content6 = acx_csma_base_encode_fix($acx_csma_desc_subtitle3);
|
179 |
-
$acx_csma_appearence_array['3']['acx_csma_desc_subtitle3'] = $acx_html_fix_content6;
|
180 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
181 |
-
|
182 |
-
}
|
183 |
-
if(array_key_exists('4',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_top_temp4',$acx_csma_appearence_array['4']))
|
184 |
-
{
|
185 |
-
$acx_csma_custom_html_top_temp4 = $acx_csma_appearence_array['4']['acx_csma_custom_html_top_temp4'];
|
186 |
-
$acx_html_fix_content7 = acx_csma_base_encode_fix($acx_csma_custom_html_top_temp4);
|
187 |
-
$acx_csma_appearence_array['4']['acx_csma_custom_html_top_temp4'] = $acx_html_fix_content7;
|
188 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
189 |
-
}
|
190 |
-
if(array_key_exists('4',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_bottom_temp4',$acx_csma_appearence_array['4']))
|
191 |
-
{
|
192 |
-
$acx_csma_custom_html_bottom_temp4 = $acx_csma_appearence_array['4']['acx_csma_custom_html_bottom_temp4'];
|
193 |
-
$acx_html_fix_content8 = acx_csma_base_encode_fix($acx_csma_custom_html_bottom_temp4);
|
194 |
-
$acx_csma_appearence_array['4']['acx_csma_custom_html_bottom_temp4'] = $acx_html_fix_content8;
|
195 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
196 |
-
|
197 |
-
}
|
198 |
-
if(array_key_exists('5',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_top_temp5',$acx_csma_appearence_array['5']))
|
199 |
-
{
|
200 |
-
$acx_csma_custom_html_top_temp5 = $acx_csma_appearence_array['5']['acx_csma_custom_html_top_temp5'];
|
201 |
-
$acx_html_fix_content9 = acx_csma_base_encode_fix($acx_csma_custom_html_top_temp5);
|
202 |
-
$acx_csma_appearence_array['5']['acx_csma_custom_html_top_temp5'] = $acx_html_fix_content9;
|
203 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
204 |
-
|
205 |
-
}
|
206 |
-
if(array_key_exists('5',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_bottom_temp5',$acx_csma_appearence_array['5']))
|
207 |
-
{
|
208 |
-
$acx_csma_custom_html_bottom_temp5 = $acx_csma_appearence_array['5']['acx_csma_custom_html_bottom_temp5'];
|
209 |
-
|
210 |
-
$acx_html_fix_content10 = acx_csma_base_encode_fix($acx_csma_custom_html_bottom_temp5);
|
211 |
-
$acx_csma_appearence_array['5']['acx_csma_custom_html_bottom_temp5'] = $acx_html_fix_content10;
|
212 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
213 |
-
}
|
214 |
-
if(array_key_exists('5',$acx_csma_appearence_array) && !array_key_exists('acx_csma_subscribe_main_title5',$acx_csma_appearence_array['5']))
|
215 |
-
{
|
216 |
-
$acx_csma_appearence_array['5']['acx_csma_subscribe_main_title5'] = "Want to know when we launch?";
|
217 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
218 |
-
}
|
219 |
-
}
|
220 |
-
$acx_csma_custom_html_val = get_option('acx_csma_custom_html_val');
|
221 |
-
$acx_html_fix_content11 = acx_csma_base_encode_fix($acx_csma_custom_html_val);
|
222 |
-
update_option('acx_csma_custom_html_val',$acx_html_fix_content11);
|
223 |
-
update_option('acx_csma_version',ACX_CSMA_CURRENT_VERSION);
|
224 |
-
}
|
225 |
?>
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Under Construction / Maintenance Mode From Acurax
|
4 |
+
Plugin URI: http://www.acurax.com/construction-maintenance-mode-acurax-demo.php
|
5 |
Description: Simple and the best Coming Soon or Maintenance Mode Plugin Which Supports Practically Unlimited Responsive Designs.
|
6 |
Author: Acurax
|
7 |
+
Version: 2.5
|
8 |
+
Author URI: http://wordpress.acurax.com
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
/*
|
26 |
?>
|
27 |
<?php
|
28 |
/*************** Admin function ***************/
|
29 |
+
define("ACX_CSMA_CURRENT_VERSION","2.5");
|
30 |
define("ACX_CSMA_TOTAL_THEMES",5);
|
31 |
define("ACX_CSMA_BASE_LOCATION",plugin_dir_url( __FILE__ ));
|
32 |
|
33 |
+
include_once(plugin_dir_path( __FILE__ ).'function.php');
|
34 |
+
include_once(plugin_dir_path( __FILE__ ).'includes/defaults.php');
|
35 |
+
include_once(plugin_dir_path( __FILE__ ).'includes/hooks.php');
|
36 |
+
include_once(plugin_dir_path( __FILE__ ).'includes/hook_functions.php');
|
37 |
|
38 |
+
$filename = plugin_dir_path( __FILE__ ) . 'backward_compactability_file.php';
|
39 |
if( file_exists( $filename ) === true )
|
40 |
{
|
41 |
+
include(plugin_dir_path( __FILE__ ).'backward_compactability_file.php');
|
42 |
}
|
43 |
function acx_csma_admin()
|
44 |
{
|
45 |
+
include(plugin_dir_path( __FILE__ ).'includes/acx_csma_admin.php');
|
46 |
}
|
47 |
function acx_csma_subscribers()
|
48 |
{
|
49 |
+
include(plugin_dir_path( __FILE__ ).'includes/acx_csma_subscribers.php');
|
50 |
}
|
51 |
|
52 |
function acx_csma_misc()
|
53 |
{
|
54 |
+
include(plugin_dir_path( __FILE__ ).'includes/acx_csma_misc.php');
|
55 |
}
|
56 |
+
|
57 |
+
function acx_csma_display_variable_menu()
|
58 |
+
{
|
59 |
+
include(plugin_dir_path( __FILE__ ).'includes/acx_csma_display_variables.php');
|
60 |
+
}
|
61 |
+
|
62 |
function acx_csma_help()
|
63 |
{
|
64 |
+
include(plugin_dir_path( __FILE__ ).'includes/acx_csma_help.php');
|
65 |
}
|
66 |
|
67 |
function acx_csma_expert_support()
|
68 |
{
|
69 |
+
include(plugin_dir_path( __FILE__ ).'includes/acx_csma_expert_support.php');
|
70 |
}
|
71 |
|
72 |
|
82 |
if($acx_csma_hide_expert_support_menu == "no") {
|
83 |
add_submenu_page('Acurax-Coming-Soon-Maintenance-Mode-Settings', 'Acurax Expert Support', 'Expert Support', 'manage_options', 'Acurax-Coming-Soon-Maintenance-Mode-Expert-Support' ,'acx_csma_expert_support');
|
84 |
}
|
85 |
+
add_submenu_page('Acurax-Coming-Soon-Maintenance-Mode-Settings', 'Coming Soon/Maintenance From Acurax Display Variables', 'Display Variables', 'manage_options', 'Acurax-Coming-Soon-Maintenance-Mode-Variables' ,'acx_csma_display_variable_menu');
|
86 |
+
|
87 |
add_submenu_page('Acurax-Coming-Soon-Maintenance-Mode-Settings', 'Coming Soon/Maintenance From Acurax Help and Support', 'Help', 'manage_options', 'Acurax-Coming-Soon-Maintenance-Mode-Help' ,'acx_csma_help');
|
88 |
}
|
89 |
if ( is_admin() )
|
90 |
{
|
91 |
add_action('admin_menu', 'acx_csma_admin_actions');
|
92 |
}
|
93 |
+
include_once(plugin_dir_path( __FILE__ ).'includes/updates.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
?>
|
css/acx_csma_box.css
CHANGED
@@ -13,6 +13,11 @@
|
|
13 |
margin-right: auto;
|
14 |
max-width: 100%;
|
15 |
}
|
|
|
|
|
|
|
|
|
|
|
16 |
#acx_csma_3_p_q_and_a_h_main_holder{
|
17 |
box-sizing: border-box;
|
18 |
height: auto;
|
13 |
margin-right: auto;
|
14 |
max-width: 100%;
|
15 |
}
|
16 |
+
#acx_csma_2_p_q_and_a_h_main_holder .f_w
|
17 |
+
{
|
18 |
+
float:left;
|
19 |
+
width:100%;
|
20 |
+
}
|
21 |
#acx_csma_3_p_q_and_a_h_main_holder{
|
22 |
box-sizing: border-box;
|
23 |
height: auto;
|
css/{style_admin.css → admin.css}
RENAMED
@@ -770,4 +770,128 @@ padding: 8px;
|
|
770 |
font-size: 15px;
|
771 |
font-style: normal;
|
772 |
text-decoration: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
773 |
}
|
770 |
font-size: 15px;
|
771 |
font-style: normal;
|
772 |
text-decoration: none;
|
773 |
+
}
|
774 |
+
.acx_csma_disp_edit_litbx
|
775 |
+
{
|
776 |
+
width:100%;
|
777 |
+
height:100%;
|
778 |
+
background:rgba(0,0,0,0.9);
|
779 |
+
position:fixed;
|
780 |
+
overflow-x: auto;
|
781 |
+
overflow-y: scroll;
|
782 |
+
top:0;
|
783 |
+
left:0;
|
784 |
+
z-index:9999;
|
785 |
+
}
|
786 |
+
|
787 |
+
.acx_csma_disp_edit_inner
|
788 |
+
{
|
789 |
+
position:relative;
|
790 |
+
margin :50px auto 0;
|
791 |
+
max-width:700px;
|
792 |
+
background:#fff;
|
793 |
+
}
|
794 |
+
|
795 |
+
.acx_csma_disp_edit_close_btn
|
796 |
+
{
|
797 |
+
background:url(../images/close_btn.png) no-repeat center center;
|
798 |
+
width:40px;
|
799 |
+
height:40px;
|
800 |
+
position:absolute;
|
801 |
+
right: -9px;
|
802 |
+
top: -6px;
|
803 |
+
cursor:pointer;
|
804 |
+
}
|
805 |
+
|
806 |
+
|
807 |
+
#acx_csma_disp_edit_ltbx
|
808 |
+
{
|
809 |
+
padding-left:10px;
|
810 |
+
padding-top:20px;
|
811 |
+
padding-bottom:10px;
|
812 |
+
}
|
813 |
+
#acx_csmap_loading_1
|
814 |
+
{
|
815 |
+
background: rgba(1, 1, 1, 0.5);
|
816 |
+
height: 100%;
|
817 |
+
left: 0;
|
818 |
+
position: fixed;
|
819 |
+
top: 0;
|
820 |
+
width: 100%;
|
821 |
+
z-index: 1000;
|
822 |
+
}
|
823 |
+
#acx_csmap_loading_1 .load_1
|
824 |
+
{
|
825 |
+
background: url("../images/loading.gif") no-repeat scroll 50% 50% transparent;
|
826 |
+
border-radius: 20px 20px 20px 20px;
|
827 |
+
height: 100px;
|
828 |
+
margin-left: -40px;
|
829 |
+
margin-top : -40px;
|
830 |
+
top:40%;
|
831 |
+
left:50%;
|
832 |
+
position: absolute;
|
833 |
+
opacity: 0.6;
|
834 |
+
width: 100px;
|
835 |
+
}
|
836 |
+
#acx_csma_edit_box_inner {
|
837 |
+
display: block;
|
838 |
+
padding: 19px;
|
839 |
+
}
|
840 |
+
|
841 |
+
#acx_csma_edit_box_inner > #acx_csma_heading {
|
842 |
+
color: #333;
|
843 |
+
display: block;
|
844 |
+
text-align: left;
|
845 |
+
}
|
846 |
+
|
847 |
+
#acx_csma_edit_box_inner > div {
|
848 |
+
display: inline-block;
|
849 |
+
padding: 20px 0;
|
850 |
+
width: 100%;
|
851 |
+
}
|
852 |
+
.acx_csma_input_cvr {
|
853 |
+
display: block;
|
854 |
+
margin-bottom: 30px;
|
855 |
+
}
|
856 |
+
|
857 |
+
.acx_csma_disp_label {
|
858 |
+
display: inline-block;
|
859 |
+
padding-right: 12px;
|
860 |
+
text-align: right;
|
861 |
+
width: 200px;
|
862 |
+
}
|
863 |
+
|
864 |
+
|
865 |
+
.acx_csma_disp_input {
|
866 |
+
display: inline-block;
|
867 |
+
padding: 0 20px;
|
868 |
+
}
|
869 |
+
|
870 |
+
.acx_csma_disp_btn {
|
871 |
+
display: inline-block;
|
872 |
+
margin-left: 192px;
|
873 |
+
}
|
874 |
+
|
875 |
+
.acx_csma_disp_btn .button {
|
876 |
+
background-color: #00a0d2;
|
877 |
+
border: 1px solid #0073aa;
|
878 |
+
border-radius: 4px;
|
879 |
+
box-shadow: none;
|
880 |
+
color: #fff;
|
881 |
+
display: block;
|
882 |
+
font-size: 15px;
|
883 |
+
line-height: 0;
|
884 |
+
padding: 17px 0;
|
885 |
+
text-align: center;
|
886 |
+
width: 120px;
|
887 |
+
}
|
888 |
+
|
889 |
+
.acx_csma_disp_input > input {
|
890 |
+
border-radius: 4px;
|
891 |
+
display: inline-block;
|
892 |
+
padding: 6px 12px;
|
893 |
+
width: 228px;
|
894 |
+
}
|
895 |
+
#acx_csma_display_variable_content #acx_disp_edit_link a, #acx_csma_display_variable_content #acx_disp_reset_link a {
|
896 |
+
cursor: pointer;
|
897 |
}
|
function.php
CHANGED
@@ -1,7 +1,93 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
function acx_csma_styles()
|
3 |
{
|
4 |
-
wp_register_style('acx_csmaadmin_style', plugins_url('css/
|
5 |
wp_enqueue_style('acx_csmaadmin_style');
|
6 |
wp_register_style('acx_csmabox_style', plugins_url('css/acx_csma_box.css', __FILE__));
|
7 |
wp_enqueue_style('acx_csmabox_style');
|
@@ -15,30 +101,12 @@ function acx_csma_date_picker_scripts()
|
|
15 |
wp_enqueue_script('jquery-ui-core');
|
16 |
}
|
17 |
add_action('admin_enqueue_scripts','acx_csma_date_picker_scripts');
|
|
|
18 |
function acx_csma_colorpicker_scripts()
|
19 |
{
|
20 |
wp_enqueue_style( 'farbtastic' );
|
21 |
wp_enqueue_script( 'farbtastic','',array( 'jquery' ) );
|
22 |
}
|
23 |
-
$acx_csma_temp_array = get_option('acx_csma_temp_array');
|
24 |
-
if($acx_csma_temp_array != "")
|
25 |
-
{
|
26 |
-
if(is_array($acx_csma_temp_array))
|
27 |
-
{
|
28 |
-
if(is_serialized($acx_csma_temp_array))
|
29 |
-
{
|
30 |
-
$acx_csma_temp_array = unserialize($acx_csma_temp_array);
|
31 |
-
}
|
32 |
-
}
|
33 |
-
}
|
34 |
-
else{
|
35 |
-
$acx_csma_temp_array=array(0,1,2,3,4,5);
|
36 |
-
if(!is_serialized($acx_csma_temp_array))
|
37 |
-
{
|
38 |
-
$acx_csma_temp_array = serialize($acx_csma_temp_array);
|
39 |
-
}
|
40 |
-
update_option('acx_csma_temp_array',$acx_csma_temp_array);
|
41 |
-
}
|
42 |
|
43 |
// color picker
|
44 |
if(ISSET($_GET['page']))
|
@@ -68,17 +136,70 @@ if($acx_csma_page == "Acurax-Coming-Soon-Maintenance-Mode-Settings")
|
|
68 |
{
|
69 |
add_action('admin_head','acx_csma_color_pick');
|
70 |
}
|
71 |
-
|
72 |
-
$acx_csma_template=get_option('acx_csma_template');
|
73 |
-
if($acx_csma_template == ""|| !is_numeric($acx_csma_template))
|
74 |
-
{
|
75 |
-
$acx_csma_template = 1;
|
76 |
-
}
|
77 |
-
if($acx_csma_template < 0 || $acx_csma_template >6)
|
78 |
{
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
}
|
81 |
-
|
|
|
82 |
$acx_csma_activation_status = get_option('acx_csma_activation_status');
|
83 |
if($acx_csma_activation_status=='')
|
84 |
{
|
@@ -115,8 +236,7 @@ if($acx_csma_display_template==true)
|
|
115 |
}
|
116 |
function acx_csma_plugin_activation()
|
117 |
{
|
118 |
-
global $wpdb,$acx_csma_display_template,$acx_csma_template_path;
|
119 |
-
|
120 |
if($acx_csma_display_template==true)
|
121 |
{
|
122 |
if (is_user_logged_in())
|
@@ -154,7 +274,7 @@ function acx_csma_plugin_activation()
|
|
154 |
{
|
155 |
$acx_csma_ip_array = unserialize($acx_csma_ip_array);
|
156 |
}
|
157 |
-
$current_ip
|
158 |
|
159 |
if(is_array($acx_csma_ip_array) && in_array($current_ip,$acx_csma_ip_array))
|
160 |
{
|
@@ -162,7 +282,7 @@ function acx_csma_plugin_activation()
|
|
162 |
$acx_csma_display_template=false;
|
163 |
}
|
164 |
}
|
165 |
-
|
166 |
function filter_acx_csma_template($acx_csma_display_template)
|
167 |
{
|
168 |
if($acx_csma_display_template != '')
|
@@ -170,11 +290,12 @@ function acx_csma_plugin_activation()
|
|
170 |
return $acx_csma_display_template;
|
171 |
}
|
172 |
}
|
173 |
-
|
174 |
-
|
175 |
|
176 |
if($acx_csma_display_template == true)
|
177 |
{
|
|
|
178 |
$protocol = "HTTP/1.0";
|
179 |
if ( "HTTP/1.1" == $_SERVER["SERVER_PROTOCOL"] )
|
180 |
$protocol = "HTTP/1.1";
|
@@ -185,20 +306,31 @@ function acx_csma_plugin_activation()
|
|
185 |
$end_time = date_i18n("D, j M Y H:i:s e", $end_time);
|
186 |
header( "Retry-After: $end_time" );
|
187 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
include_once($acx_csma_template_path);
|
189 |
exit;
|
190 |
}
|
|
|
191 |
}
|
|
|
192 |
function acx_csma_template_preview()
|
193 |
{
|
|
|
|
|
194 |
if(ISSET($_GET['acx_csma_preview']) && current_user_can( 'manage_options' )){
|
195 |
-
$acx_csma_temp_array = get_option('acx_csma_temp_array');
|
196 |
-
if(is_serialized($acx_csma_temp_array))
|
197 |
-
{
|
198 |
-
$acx_csma_temp_array = unserialize($acx_csma_temp_array);
|
199 |
-
}
|
200 |
$acx_csma_preview=$_GET['acx_csma_preview'];
|
201 |
-
if(
|
202 |
{
|
203 |
$protocol = "HTTP/1.0";
|
204 |
if ( "HTTP/1.1" == $_SERVER["SERVER_PROTOCOL"] )
|
@@ -210,21 +342,15 @@ function acx_csma_template_preview()
|
|
210 |
$end_time = date_i18n("D, j M Y H:i:s e", $end_time);
|
211 |
header( "Retry-After: $end_time" );
|
212 |
}
|
213 |
-
|
|
|
214 |
exit;
|
215 |
}
|
216 |
}
|
217 |
}
|
218 |
add_action('template_redirect','acx_csma_template_preview');
|
219 |
// changing launch text
|
220 |
-
$acx_csma_appearence_array=
|
221 |
-
if($acx_csma_appearence_array != "")
|
222 |
-
{
|
223 |
-
if(is_serialized($acx_csma_appearence_array))
|
224 |
-
{
|
225 |
-
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
226 |
-
}
|
227 |
-
}
|
228 |
if(is_array($acx_csma_appearence_array))
|
229 |
{
|
230 |
if(array_key_exists('3',$acx_csma_appearence_array) && array_key_exists('acx_csma_inside_title3',$acx_csma_appearence_array['3']))
|
@@ -233,9 +359,9 @@ add_action('template_redirect','acx_csma_template_preview');
|
|
233 |
if(strcmp($acx_csma_inside_title3,"Estimate Time Before Lunching") === 0 )
|
234 |
{
|
235 |
$acx_csma_appearence_array['3']['acx_csma_inside_title3'] = "Estimate Time Before Launching";
|
236 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
237 |
}
|
238 |
}
|
|
|
239 |
}
|
240 |
// upload images and logos
|
241 |
function acx_csma_upload_images_template_1()
|
@@ -498,11 +624,55 @@ echo "<div id='acx_csma_addon_demo_ua'><br><hr>
|
|
498 |
<img src='".plugins_url('/images/addon_ua_demo.png',__FILE__)."' style='border:0px;width:100%;height:auto;' class='acx_csma_info_lb' lb_title='Private Access URL Feature - Premium Addon Plugin' lb_content='<p style=\"font-size:13px;\">You may needs to showcase the website to your friends, contacts or clients to get approval, or get suggestions.<br><br>When website is in under construction mode, they may needs to login or provide you their ip address to grand them access.<br><br>But using Private Access URL Addon, You will get the option to generate a private URL which you can provide to anyone, and they can access your website, They wont see the under construction page until the url expire.<br><br> While generating a URL, You can set expiry, It can be Never, So URL is valid until you delete it. Can set expiry as Hours, So URL will be active for specified hours from their first visit.<br><br>Can also set expiry as page views. Lets say, you generated a URL for 10 Page views, and when someone visit the URL and access 10 pages or visited 10 times.URL will automatically gets expired.<br><br><a href=\"https://clients.acurax.com/order.php?pid=csmauapa&utm_source=link_1&utm_medium=csma_1&utm_campaign=csma\" style=\"float:right;\" target=\"_blank\">Order Now</a></p>'>
|
499 |
</div>";
|
500 |
}
|
501 |
-
add_action('acx_csma_hook_mainoptions_below_general_settings','acx_csma_addon_ua_demo');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
502 |
function acx_csm_info_lb()
|
503 |
{
|
504 |
?>
|
505 |
<script type="text/javascript">
|
|
|
|
|
|
|
506 |
jQuery( ".acx_csma_info_lb" ).click(function() {
|
507 |
var lb_title = jQuery(this).attr('lb_title');
|
508 |
var lb_content = jQuery(this).attr('lb_content');
|
@@ -515,21 +685,22 @@ function acx_csma_remove_info()
|
|
515 |
{
|
516 |
jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeOut()
|
517 |
jQuery( "#acx_csma_c_icon_p_info_lb_h" ).remove();
|
|
|
|
|
518 |
};
|
519 |
</script>
|
520 |
<?php
|
521 |
}
|
522 |
add_action('acx_csma_hook_mainoptions_below_general_settings','acx_csm_info_lb');
|
|
|
|
|
523 |
function acx_csma_updated_fields_content()
|
524 |
{
|
525 |
-
|
526 |
-
if(is_serialized($acx_csma_appearence_array))
|
527 |
-
{
|
528 |
-
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
529 |
-
}
|
530 |
if(is_array($acx_csma_appearence_array))
|
531 |
{
|
532 |
-
|
|
|
533 |
if(!array_key_exists('acx_csma_show_subscription',$acx_csma_appearence_array['1']))
|
534 |
{
|
535 |
$acx_csma_appearence_array['1']['acx_csma_show_subscription'] = 1;
|
@@ -546,6 +717,13 @@ function acx_csma_updated_fields_content()
|
|
546 |
{
|
547 |
$acx_csma_appearence_array['1']['acx_csma_custom_css_temp1'] = "";
|
548 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
549 |
if(!array_key_exists('acx_csma_custom_html_top_timer',$acx_csma_appearence_array['2']))
|
550 |
{
|
551 |
$acx_csma_appearence_array['2']['acx_csma_custom_html_top_timer'] = "";
|
@@ -554,10 +732,25 @@ function acx_csma_updated_fields_content()
|
|
554 |
{
|
555 |
$acx_csma_appearence_array['2']['acx_csma_show_subscription2'] = 1;
|
556 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
557 |
if(!array_key_exists('acx_csma_custom_css_temp2',$acx_csma_appearence_array['2']))
|
558 |
{
|
559 |
$acx_csma_appearence_array['2']['acx_csma_custom_css_temp2'] = "";
|
560 |
}
|
|
|
|
|
|
|
561 |
if(!array_key_exists('acx_csma_primary_color3',$acx_csma_appearence_array['3']))
|
562 |
{
|
563 |
$acx_csma_appearence_array['3']['acx_csma_primary_color3'] = "#ffffff";
|
@@ -594,14 +787,24 @@ function acx_csma_updated_fields_content()
|
|
594 |
{
|
595 |
$acx_csma_appearence_array['3']['acx_csma_custom_css_temp3'] = "";
|
596 |
}
|
|
|
|
|
|
|
597 |
if(!array_key_exists('acx_csma_custom_css_temp4',$acx_csma_appearence_array['4']))
|
598 |
{
|
599 |
$acx_csma_appearence_array['4']['acx_csma_custom_css_temp4'] = "";
|
600 |
}
|
|
|
|
|
|
|
601 |
if(!array_key_exists('acx_csma_show_subscription5',$acx_csma_appearence_array['5']))
|
602 |
{
|
603 |
$acx_csma_appearence_array['5']['acx_csma_show_subscription5'] = 1;
|
604 |
}
|
|
|
|
|
|
|
|
|
605 |
if(!array_key_exists('acx_csma_custom_html_top_sub',$acx_csma_appearence_array['5']))
|
606 |
{
|
607 |
$acx_csma_appearence_array['5']['acx_csma_custom_html_top_sub'] = "";
|
@@ -618,14 +821,495 @@ function acx_csma_updated_fields_content()
|
|
618 |
{
|
619 |
$acx_csma_appearence_array['5']['acx_csma_custom_css_temp5'] = "";
|
620 |
}
|
621 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
622 |
{
|
623 |
-
$
|
624 |
}
|
625 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
626 |
}
|
|
|
627 |
}
|
628 |
-
|
629 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
630 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
631 |
?>
|
1 |
<?php
|
2 |
+
function acx_csma_display_template_array_filter_hook()
|
3 |
+
{
|
4 |
+
global $acx_csma_template_array;
|
5 |
+
$acx_csma_template_array = array();
|
6 |
+
$acx_csma_template_array = apply_filters('acx_csma_display_template_array_filter',$acx_csma_template_array);
|
7 |
+
|
8 |
+
} add_action('init','acx_csma_display_template_array_filter_hook');
|
9 |
+
function acx_csma_filter_lw_pr($acx_csma_template_array)
|
10 |
+
{
|
11 |
+
return $acx_csma_template_array;
|
12 |
+
} add_filter('acx_csma_display_template_array_filter','acx_csma_filter_lw_pr',5);
|
13 |
+
|
14 |
+
function acx_csma_appearence_array_default_filter_hook()
|
15 |
+
{
|
16 |
+
global $acx_csma_appearence_array_default;
|
17 |
+
$acx_csma_appearence_array_default = array();
|
18 |
+
$acx_csma_appearence_array_default = apply_filters('acx_csma_appearence_array_default_filter',$acx_csma_appearence_array_default);
|
19 |
+
|
20 |
+
} add_action('init','acx_csma_appearence_array_default_filter_hook');
|
21 |
+
|
22 |
+
function acx_csma_appearence_array_default_lw_pr($acx_csma_appearence_array_default)
|
23 |
+
{
|
24 |
+
return $acx_csma_appearence_array_default;
|
25 |
+
} add_filter('acx_csma_appearence_array_default_filter','acx_csma_appearence_array_default_lw_pr',5);
|
26 |
+
|
27 |
+
$acx_csma_display_var_arr = get_option('acx_csma_display_var_arr');
|
28 |
+
if(is_serialized($acx_csma_display_var_arr))
|
29 |
+
{
|
30 |
+
$acx_csma_display_var_arr = unserialize($acx_csma_display_var_arr);
|
31 |
+
}
|
32 |
+
if(empty($acx_csma_display_var_arr))
|
33 |
+
{
|
34 |
+
$acx_csma_display_var_arr=array(
|
35 |
+
'year'=>array(
|
36 |
+
'singular'=>'Year',
|
37 |
+
'plural'=>'Years',
|
38 |
+
'default_singular'=>'Year',
|
39 |
+
'default_plural'=>'Years'
|
40 |
+
),
|
41 |
+
'month'=>array(
|
42 |
+
'singular'=>'Month',
|
43 |
+
'plural'=>'Months',
|
44 |
+
'default_singular'=>'Month',
|
45 |
+
'default_plural'=>'Months'
|
46 |
+
),
|
47 |
+
'week'=>array(
|
48 |
+
'singular'=>'Week',
|
49 |
+
'plural'=>'Weeks',
|
50 |
+
'default_singular'=>'Week',
|
51 |
+
'default_plural'=>'Weeks'
|
52 |
+
),
|
53 |
+
'day'=>array(
|
54 |
+
'singular'=>'Day',
|
55 |
+
'plural'=>'Days',
|
56 |
+
'default_singular'=>'Day',
|
57 |
+
'default_plural'=>'Days'
|
58 |
+
),
|
59 |
+
'hour'=>array(
|
60 |
+
'singular'=>'Hour',
|
61 |
+
'plural'=>'Hours',
|
62 |
+
'default_singular'=>'Hour',
|
63 |
+
'default_plural'=>'Hours'
|
64 |
+
),
|
65 |
+
'minute'=>array(
|
66 |
+
'singular'=>'Minute',
|
67 |
+
'plural'=>'Minutes',
|
68 |
+
'default_singular'=>'Minute',
|
69 |
+
'default_plural'=>'Minutes'
|
70 |
+
),
|
71 |
+
'second'=>array(
|
72 |
+
'singular'=>'Second',
|
73 |
+
'plural'=>'Seconds',
|
74 |
+
'default_singular'=>'Second',
|
75 |
+
'default_plural'=>'Seconds'
|
76 |
+
),
|
77 |
+
'next'=>array(
|
78 |
+
'singular'=>'Next',
|
79 |
+
'default_singular'=>'Next'
|
80 |
+
)
|
81 |
+
);
|
82 |
+
if(!is_serialized($acx_csma_display_var_arr))
|
83 |
+
{
|
84 |
+
$acx_csma_display_var_arr = serialize($acx_csma_display_var_arr);
|
85 |
+
}
|
86 |
+
update_option('acx_csma_display_var_arr',$acx_csma_display_var_arr);
|
87 |
+
}
|
88 |
function acx_csma_styles()
|
89 |
{
|
90 |
+
wp_register_style('acx_csmaadmin_style', plugins_url('css/admin.css', __FILE__));
|
91 |
wp_enqueue_style('acx_csmaadmin_style');
|
92 |
wp_register_style('acx_csmabox_style', plugins_url('css/acx_csma_box.css', __FILE__));
|
93 |
wp_enqueue_style('acx_csmabox_style');
|
101 |
wp_enqueue_script('jquery-ui-core');
|
102 |
}
|
103 |
add_action('admin_enqueue_scripts','acx_csma_date_picker_scripts');
|
104 |
+
|
105 |
function acx_csma_colorpicker_scripts()
|
106 |
{
|
107 |
wp_enqueue_style( 'farbtastic' );
|
108 |
wp_enqueue_script( 'farbtastic','',array( 'jquery' ) );
|
109 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
111 |
// color picker
|
112 |
if(ISSET($_GET['page']))
|
136 |
{
|
137 |
add_action('admin_head','acx_csma_color_pick');
|
138 |
}
|
139 |
+
function filter_acx_csma_template_array($acx_csma_template_array)
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
{
|
141 |
+
|
142 |
+
$acx_site_url = get_site_url();
|
143 |
+
$acx_csma_parent_folder = basename(dirname(__FILE__));
|
144 |
+
$acx_csma_template_array['0'] = array(
|
145 |
+
'id' => 0,
|
146 |
+
'name' =>'Custom Html',
|
147 |
+
'index' =>'acx_csma_custom_template',
|
148 |
+
'description' => '',
|
149 |
+
'parent' => $acx_csma_parent_folder,
|
150 |
+
'path' => $acx_site_url,
|
151 |
+
'thumb' => ACX_CSMA_BASE_LOCATION
|
152 |
+
);
|
153 |
+
$acx_csma_template_array['1'] = array(
|
154 |
+
'id' => 1,
|
155 |
+
'name' =>'Template 1',
|
156 |
+
'index' =>'acx_csma_template1',
|
157 |
+
'description' => '',
|
158 |
+
'parent' => $acx_csma_parent_folder,
|
159 |
+
'path' => $acx_site_url,
|
160 |
+
'thumb' => ACX_CSMA_BASE_LOCATION
|
161 |
+
);
|
162 |
+
$acx_csma_template_array['2'] = array(
|
163 |
+
'id' => 2,
|
164 |
+
'name' =>'Template 2',
|
165 |
+
'index' =>'acx_csma_template2',
|
166 |
+
'description' => '',
|
167 |
+
'parent' => $acx_csma_parent_folder,
|
168 |
+
'path' => $acx_site_url,
|
169 |
+
'thumb' => ACX_CSMA_BASE_LOCATION
|
170 |
+
);
|
171 |
+
$acx_csma_template_array['3'] = array(
|
172 |
+
'id' => 3,
|
173 |
+
'name' =>'Template 3',
|
174 |
+
'index' =>'acx_csma_template3',
|
175 |
+
'description' => '',
|
176 |
+
'parent' => $acx_csma_parent_folder,
|
177 |
+
'path' => $acx_site_url,
|
178 |
+
'thumb' => ACX_CSMA_BASE_LOCATION
|
179 |
+
);
|
180 |
+
$acx_csma_template_array['4'] = array(
|
181 |
+
'id' => 4,
|
182 |
+
'name' =>'Template 4',
|
183 |
+
'index' =>'acx_csma_template4',
|
184 |
+
'description' => '',
|
185 |
+
'parent' => $acx_csma_parent_folder,
|
186 |
+
'path' => $acx_site_url,
|
187 |
+
'thumb' => ACX_CSMA_BASE_LOCATION
|
188 |
+
);
|
189 |
+
$acx_csma_template_array['5'] = array(
|
190 |
+
'id' => 5,
|
191 |
+
'name' =>'Template 5',
|
192 |
+
'index' =>'acx_csma_template5',
|
193 |
+
'description' => '',
|
194 |
+
'parent' => $acx_csma_parent_folder,
|
195 |
+
'path' => $acx_site_url,
|
196 |
+
'thumb' => ACX_CSMA_BASE_LOCATION
|
197 |
+
);
|
198 |
+
|
199 |
+
return $acx_csma_template_array;
|
200 |
}
|
201 |
+
add_filter('acx_csma_display_template_array_filter','filter_acx_csma_template_array');
|
202 |
+
|
203 |
$acx_csma_activation_status = get_option('acx_csma_activation_status');
|
204 |
if($acx_csma_activation_status=='')
|
205 |
{
|
236 |
}
|
237 |
function acx_csma_plugin_activation()
|
238 |
{
|
239 |
+
global $wpdb,$acx_csma_display_template,$acx_csma_template_path,$acx_csma_template_array;
|
|
|
240 |
if($acx_csma_display_template==true)
|
241 |
{
|
242 |
if (is_user_logged_in())
|
274 |
{
|
275 |
$acx_csma_ip_array = unserialize($acx_csma_ip_array);
|
276 |
}
|
277 |
+
$current_ip = acx_csma_getrealip();
|
278 |
|
279 |
if(is_array($acx_csma_ip_array) && in_array($current_ip,$acx_csma_ip_array))
|
280 |
{
|
282 |
$acx_csma_display_template=false;
|
283 |
}
|
284 |
}
|
285 |
+
$acx_csma_display_template = apply_filters('acx_csma_display_template_filter',$acx_csma_display_template);
|
286 |
function filter_acx_csma_template($acx_csma_display_template)
|
287 |
{
|
288 |
if($acx_csma_display_template != '')
|
290 |
return $acx_csma_display_template;
|
291 |
}
|
292 |
}
|
293 |
+
|
294 |
+
add_filter('acx_csma_display_template_filter','filter_acx_csma_template',5);
|
295 |
|
296 |
if($acx_csma_display_template == true)
|
297 |
{
|
298 |
+
|
299 |
$protocol = "HTTP/1.0";
|
300 |
if ( "HTTP/1.1" == $_SERVER["SERVER_PROTOCOL"] )
|
301 |
$protocol = "HTTP/1.1";
|
306 |
$end_time = date_i18n("D, j M Y H:i:s e", $end_time);
|
307 |
header( "Retry-After: $end_time" );
|
308 |
}
|
309 |
+
$acx_csma_template=get_option('acx_csma_template');
|
310 |
+
if($acx_csma_template == "" || !is_numeric($acx_csma_template))
|
311 |
+
{
|
312 |
+
$acx_csma_template = 1;
|
313 |
+
}
|
314 |
+
$acx_csma_base_template=get_option('acx_csma_base_template');
|
315 |
+
if(is_array($acx_csma_template_array) && !array_key_exists($acx_csma_template,$acx_csma_template_array) && $acx_csma_base_template !== "")
|
316 |
+
{
|
317 |
+
$acx_csma_template= $acx_csma_base_template;
|
318 |
+
}
|
319 |
+
$acx_csma_template_path_loc = WP_CONTENT_DIR."/plugins/".$acx_csma_template_array[$acx_csma_template]['parent'];
|
320 |
+
$acx_csma_template_path = $acx_csma_template_path_loc."/templates/".$acx_csma_template."/index.php";
|
321 |
include_once($acx_csma_template_path);
|
322 |
exit;
|
323 |
}
|
324 |
+
|
325 |
}
|
326 |
+
|
327 |
function acx_csma_template_preview()
|
328 |
{
|
329 |
+
global $acx_csma_template_array;
|
330 |
+
|
331 |
if(ISSET($_GET['acx_csma_preview']) && current_user_can( 'manage_options' )){
|
|
|
|
|
|
|
|
|
|
|
332 |
$acx_csma_preview=$_GET['acx_csma_preview'];
|
333 |
+
if(array_key_exists($acx_csma_preview,$acx_csma_template_array))
|
334 |
{
|
335 |
$protocol = "HTTP/1.0";
|
336 |
if ( "HTTP/1.1" == $_SERVER["SERVER_PROTOCOL"] )
|
342 |
$end_time = date_i18n("D, j M Y H:i:s e", $end_time);
|
343 |
header( "Retry-After: $end_time" );
|
344 |
}
|
345 |
+
$acx_csma_template_path_loc = WP_CONTENT_DIR."/plugins/".$acx_csma_template_array[$acx_csma_preview]['parent'];
|
346 |
+
include_once($acx_csma_template_path_loc."/templates/".$acx_csma_preview."/index.php");
|
347 |
exit;
|
348 |
}
|
349 |
}
|
350 |
}
|
351 |
add_action('template_redirect','acx_csma_template_preview');
|
352 |
// changing launch text
|
353 |
+
$acx_csma_appearence_array=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
if(is_array($acx_csma_appearence_array))
|
355 |
{
|
356 |
if(array_key_exists('3',$acx_csma_appearence_array) && array_key_exists('acx_csma_inside_title3',$acx_csma_appearence_array['3']))
|
359 |
if(strcmp($acx_csma_inside_title3,"Estimate Time Before Lunching") === 0 )
|
360 |
{
|
361 |
$acx_csma_appearence_array['3']['acx_csma_inside_title3'] = "Estimate Time Before Launching";
|
|
|
362 |
}
|
363 |
}
|
364 |
+
acx_csma_update_array_value($acx_csma_appearence_array);
|
365 |
}
|
366 |
// upload images and logos
|
367 |
function acx_csma_upload_images_template_1()
|
624 |
<img src='".plugins_url('/images/addon_ua_demo.png',__FILE__)."' style='border:0px;width:100%;height:auto;' class='acx_csma_info_lb' lb_title='Private Access URL Feature - Premium Addon Plugin' lb_content='<p style=\"font-size:13px;\">You may needs to showcase the website to your friends, contacts or clients to get approval, or get suggestions.<br><br>When website is in under construction mode, they may needs to login or provide you their ip address to grand them access.<br><br>But using Private Access URL Addon, You will get the option to generate a private URL which you can provide to anyone, and they can access your website, They wont see the under construction page until the url expire.<br><br> While generating a URL, You can set expiry, It can be Never, So URL is valid until you delete it. Can set expiry as Hours, So URL will be active for specified hours from their first visit.<br><br>Can also set expiry as page views. Lets say, you generated a URL for 10 Page views, and when someone visit the URL and access 10 pages or visited 10 times.URL will automatically gets expired.<br><br><a href=\"https://clients.acurax.com/order.php?pid=csmauapa&utm_source=link_1&utm_medium=csma_1&utm_campaign=csma\" style=\"float:right;\" target=\"_blank\">Order Now</a></p>'>
|
625 |
</div>";
|
626 |
}
|
627 |
+
add_action('acx_csma_hook_mainoptions_below_general_settings','acx_csma_addon_ua_demo',50);
|
628 |
+
function acx_csma_service_addon_demo()
|
629 |
+
{
|
630 |
+
$acx_theme_addon_demo_array['STPA1'] = array(
|
631 |
+
|
632 |
+
'STP1_A' => array(
|
633 |
+
'image' => plugins_url('/images/csma_01.png',__FILE__),
|
634 |
+
'preview' => 'https://clients.acurax.com/link.php?id=18',
|
635 |
+
'name' => 'STP1-A'
|
636 |
+
),
|
637 |
+
'STP1_B' => array(
|
638 |
+
'image' => plugins_url('/images/csma_02.png',__FILE__),
|
639 |
+
'preview' => 'https://clients.acurax.com/link.php?id=19',
|
640 |
+
'name' => 'STP1-B'
|
641 |
+
),
|
642 |
+
'STP1_C' => array(
|
643 |
+
'image' => plugins_url('/images/csma_03.png',__FILE__),
|
644 |
+
'preview' => 'https://clients.acurax.com/link.php?id=20',
|
645 |
+
'name' => 'STP1-C'
|
646 |
+
),
|
647 |
+
'STP1_D' => array(
|
648 |
+
'image' => plugins_url('/images/csma_04.png',__FILE__),
|
649 |
+
'preview' => 'https://clients.acurax.com/link.php?id=21',
|
650 |
+
'name' => 'STP1-D'
|
651 |
+
),
|
652 |
+
);
|
653 |
+
$acx_theme_addon_demo_array = apply_filters('acx_csma_demo_theme_filter_hook',$acx_theme_addon_demo_array);
|
654 |
+
if($acx_theme_addon_demo_array == '')
|
655 |
+
{
|
656 |
+
$acx_theme_addon_demo_array = array();
|
657 |
+
}
|
658 |
+
$acx_csma_lb_title = "Showcase Products and Services While Your Website Is Under Construction";
|
659 |
+
$acx_csma_lb_content = "<p style=\"font-size:14px;\">We have prepared 4 special themes ( <a href=\"https://clients.acurax.com/link.php?id=18\" target=\"_blank\" title=\"Preview This Theme\">STP1-A</a>, <a href=\"https://clients.acurax.com/link.php?id=19\" target=\"_blank\" title=\"Preview This Theme\">STP1-B</a>, <a href=\"https://clients.acurax.com/link.php?id=20\" target=\"_blank\" title=\"Preview This Theme\">STP1-C</a> and <a href=\"https://clients.acurax.com/link.php?id=21\" target=\"_blank\" title=\"Preview This Theme\">STP1-D</a> ) as an Addon plugin labeled \"Service Theme Pack 1\" which you can install just like a normal plugin after purchase. And the additional themes will be available here. These themes are designed and developed with high customizable options.<br><br>This theme pack have 4 highly customizable themes with Contact/Lead Capture Form,Service/Product Showcase, About us Section etc... Check preview for a live preview.<br><a href=\"https://clients.acurax.com/order.php?pid=csmastp1&utm_source=preview_link&utm_medium=csma&utm_campaign=csma\" style=\"float:right;\" target=\"_blank\" class=\"button\">Click Here to Order Now</a><br></p>";
|
660 |
+
foreach($acx_theme_addon_demo_array as $key => $value)
|
661 |
+
{
|
662 |
+
foreach($value as $k => $v)
|
663 |
+
{
|
664 |
+
echo "<div id='img_holder' class='img_holder_demo'><label for='".$k."'><img src='".$v['image']."' class='acx_csma_info_lb' lb_title='".$acx_csma_lb_title."' lb_content='".$acx_csma_lb_content."'></label><br /><input type='radio' class='acx_csma_info_lb acx_csma_info_lb_demo' name='acx_csma_template_demo' id='".$k."' lb_title='".$acx_csma_lb_title."' lb_content='".$acx_csma_lb_content."' />".$v['name']."<br /><a href='".$v['preview']."' target='_blank'>Preview</a></div>";
|
665 |
+
}
|
666 |
+
}
|
667 |
+
}
|
668 |
+
add_action('acx_csma_hook_mainoptions_below_add_template','acx_csma_service_addon_demo');
|
669 |
function acx_csm_info_lb()
|
670 |
{
|
671 |
?>
|
672 |
<script type="text/javascript">
|
673 |
+
jQuery( ".img_holder_demo .acx_csma_info_lb_demo" ).click(function() {
|
674 |
+
jQuery(this).attr('checked', false);
|
675 |
+
});
|
676 |
jQuery( ".acx_csma_info_lb" ).click(function() {
|
677 |
var lb_title = jQuery(this).attr('lb_title');
|
678 |
var lb_content = jQuery(this).attr('lb_content');
|
685 |
{
|
686 |
jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeOut()
|
687 |
jQuery( "#acx_csma_c_icon_p_info_lb_h" ).remove();
|
688 |
+
var lb_title = "";
|
689 |
+
var lb_content = "";
|
690 |
};
|
691 |
</script>
|
692 |
<?php
|
693 |
}
|
694 |
add_action('acx_csma_hook_mainoptions_below_general_settings','acx_csm_info_lb');
|
695 |
+
add_action('acx_csma_hook_mainoptions_below_javascript','acx_csm_info_lb');
|
696 |
+
|
697 |
function acx_csma_updated_fields_content()
|
698 |
{
|
699 |
+
$acx_csma_appearence_array=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
700 |
if(is_array($acx_csma_appearence_array))
|
701 |
{
|
702 |
+
if(ISSET($acx_csma_appearence_array['1']))
|
703 |
+
{
|
704 |
if(!array_key_exists('acx_csma_show_subscription',$acx_csma_appearence_array['1']))
|
705 |
{
|
706 |
$acx_csma_appearence_array['1']['acx_csma_show_subscription'] = 1;
|
717 |
{
|
718 |
$acx_csma_appearence_array['1']['acx_csma_custom_css_temp1'] = "";
|
719 |
}
|
720 |
+
if(!array_key_exists('acx_csma_custom_html_top_temp1_title',$acx_csma_appearence_array['1']))
|
721 |
+
{
|
722 |
+
$acx_csma_appearence_array['1']['acx_csma_custom_html_top_temp1_title'] = "";
|
723 |
+
}
|
724 |
+
}
|
725 |
+
if(ISSET($acx_csma_appearence_array['2']))
|
726 |
+
{
|
727 |
if(!array_key_exists('acx_csma_custom_html_top_timer',$acx_csma_appearence_array['2']))
|
728 |
{
|
729 |
$acx_csma_appearence_array['2']['acx_csma_custom_html_top_timer'] = "";
|
732 |
{
|
733 |
$acx_csma_appearence_array['2']['acx_csma_show_subscription2'] = 1;
|
734 |
}
|
735 |
+
if(!array_key_exists('acx_csma_subscribe_btn_text2',$acx_csma_appearence_array['2']))
|
736 |
+
{
|
737 |
+
$acx_csma_appearence_array['2']['acx_csma_subscribe_btn_text2'] = "Submit";
|
738 |
+
}
|
739 |
+
if(!array_key_exists('acx_csma_custom_html_above_timer',$acx_csma_appearence_array['2']))
|
740 |
+
{
|
741 |
+
$acx_csma_appearence_array['2']['acx_csma_custom_html_above_timer'] = "";
|
742 |
+
}
|
743 |
+
if(!array_key_exists('acx_csma_show_timer2',$acx_csma_appearence_array['2']))
|
744 |
+
{
|
745 |
+
$acx_csma_appearence_array['2']['acx_csma_show_timer2'] = 1;
|
746 |
+
}
|
747 |
if(!array_key_exists('acx_csma_custom_css_temp2',$acx_csma_appearence_array['2']))
|
748 |
{
|
749 |
$acx_csma_appearence_array['2']['acx_csma_custom_css_temp2'] = "";
|
750 |
}
|
751 |
+
}
|
752 |
+
if(ISSET($acx_csma_appearence_array['3']))
|
753 |
+
{
|
754 |
if(!array_key_exists('acx_csma_primary_color3',$acx_csma_appearence_array['3']))
|
755 |
{
|
756 |
$acx_csma_appearence_array['3']['acx_csma_primary_color3'] = "#ffffff";
|
787 |
{
|
788 |
$acx_csma_appearence_array['3']['acx_csma_custom_css_temp3'] = "";
|
789 |
}
|
790 |
+
}
|
791 |
+
if(ISSET($acx_csma_appearence_array['4']))
|
792 |
+
{
|
793 |
if(!array_key_exists('acx_csma_custom_css_temp4',$acx_csma_appearence_array['4']))
|
794 |
{
|
795 |
$acx_csma_appearence_array['4']['acx_csma_custom_css_temp4'] = "";
|
796 |
}
|
797 |
+
}
|
798 |
+
if(ISSET($acx_csma_appearence_array['5']))
|
799 |
+
{
|
800 |
if(!array_key_exists('acx_csma_show_subscription5',$acx_csma_appearence_array['5']))
|
801 |
{
|
802 |
$acx_csma_appearence_array['5']['acx_csma_show_subscription5'] = 1;
|
803 |
}
|
804 |
+
if(!array_key_exists('acx_csma_subscribe_btn_text5',$acx_csma_appearence_array['5']))
|
805 |
+
{
|
806 |
+
$acx_csma_appearence_array['5']['acx_csma_subscribe_btn_text5'] = "Submit";
|
807 |
+
}
|
808 |
if(!array_key_exists('acx_csma_custom_html_top_sub',$acx_csma_appearence_array['5']))
|
809 |
{
|
810 |
$acx_csma_appearence_array['5']['acx_csma_custom_html_top_sub'] = "";
|
821 |
{
|
822 |
$acx_csma_appearence_array['5']['acx_csma_custom_css_temp5'] = "";
|
823 |
}
|
824 |
+
}
|
825 |
+
$acx_csma_appearence_array=acx_csma_get_db_array_value();
|
826 |
+
}
|
827 |
+
}
|
828 |
+
add_action('acx_csma_hook_mainoptions_inside_else_submit','acx_csma_updated_fields_content');
|
829 |
+
function acx_csma_getrealip()
|
830 |
+
{
|
831 |
+
if ( isset( $_SERVER["HTTP_CF_CONNECTING_IP"] ) ) {
|
832 |
+
return $_SERVER['HTTP_CF_CONNECTING_IP'];
|
833 |
+
}
|
834 |
+
if ( isset( $_SERVER["HTTP_X_FORWARDED_FOR"] ) ) {
|
835 |
+
return $_SERVER['HTTP_X_FORWARDED_FOR'];
|
836 |
+
}
|
837 |
+
if ( isset( $_SERVER["REMOTE_ADDR"] ) ) {
|
838 |
+
return $_SERVER['REMOTE_ADDR'];
|
839 |
+
}
|
840 |
+
}
|
841 |
+
// custom html before saving
|
842 |
+
function acx_csma_custom_html_before_save_hook_fn($name,$value)
|
843 |
+
{
|
844 |
+
$value = apply_filters('acx_csma_custom_html_before_save_hook',$name,$value);
|
845 |
+
return $value;
|
846 |
+
}
|
847 |
+
function acx_csma_custom_html_after_save_hook_fn($value)
|
848 |
+
{
|
849 |
+
$value = apply_filters('acx_csma_text_after_save_hook',$value);
|
850 |
+
return $value;
|
851 |
+
}
|
852 |
+
function acx_csma_text_before_save_hook_fn($name,$value)
|
853 |
+
{
|
854 |
+
$value = apply_filters('acx_csma_text_before_save_hook',$name,$value);
|
855 |
+
return $value;
|
856 |
+
}
|
857 |
+
function acx_csma_text_after_save_hook_fn($value)
|
858 |
+
{
|
859 |
+
$value = apply_filters('acx_csma_text_after_save_hook',$value);
|
860 |
+
return $value;
|
861 |
+
}
|
862 |
+
function acx_csma_option_text_after_save_hook_fn($value)
|
863 |
+
{
|
864 |
+
$value = apply_filters('acx_csma_option_text_after_save_hook',$value);
|
865 |
+
$value = apply_filters('acx_csma_text_after_save_hook',$value);
|
866 |
+
return $value;
|
867 |
+
}
|
868 |
+
function acx_csma_textarea_before_save_hook_function($name,$value)
|
869 |
+
{
|
870 |
+
$value = apply_filters('acx_csma_text_area_before_save_hook',$name,$value);
|
871 |
+
return $value;
|
872 |
+
}
|
873 |
+
function acx_csma_textarea_after_save_hook_function($value)
|
874 |
+
{
|
875 |
+
$value = apply_filters('acx_csma_text_after_save_hook',$value);
|
876 |
+
return $value;
|
877 |
+
}
|
878 |
+
function acx_customhtml_stripslashes($name,$value)
|
879 |
+
{
|
880 |
+
if(ISSET($_POST[$name]))
|
881 |
+
{
|
882 |
+
if($_POST[$name] == $value)
|
883 |
+
{
|
884 |
+
$value = stripslashes($_POST[$name]);
|
885 |
+
}
|
886 |
+
}
|
887 |
+
return $value;
|
888 |
+
}
|
889 |
+
add_filter('acx_csma_custom_html_before_save_hook','acx_customhtml_stripslashes',25,2);
|
890 |
+
function acx_custom_html_trim($name,$value)
|
891 |
+
{
|
892 |
+
if(ISSET($_POST[$name]))
|
893 |
+
{
|
894 |
+
if($_POST[$name] == $value)
|
895 |
{
|
896 |
+
$value = trim($_POST[$name]);
|
897 |
}
|
|
|
898 |
}
|
899 |
+
return $value;
|
900 |
}
|
901 |
+
add_filter('acx_csma_custom_html_before_save_hook','acx_custom_html_trim',20,2);
|
902 |
|
903 |
+
function acx_sanitize_text($name,$value)
|
904 |
+
{
|
905 |
+
if(ISSET($_POST[$name]))
|
906 |
+
{
|
907 |
+
if($_POST[$name] == $value)
|
908 |
+
{
|
909 |
+
$value = sanitize_text_field($_POST[$name]);
|
910 |
+
}
|
911 |
+
}
|
912 |
+
return $value;
|
913 |
+
}
|
914 |
+
add_filter('acx_csma_text_before_save_hook','acx_sanitize_text',10,2);
|
915 |
+
function acx_stripslashes_text_after_save($value)
|
916 |
+
{
|
917 |
+
$value = stripslashes($value);
|
918 |
+
return $value;
|
919 |
+
}
|
920 |
+
add_filter('acx_csma_text_after_save_hook','acx_stripslashes_text_after_save',20,1);
|
921 |
|
922 |
+
function acx_esc_attr_text_after_save($value)
|
923 |
+
{
|
924 |
+
$value = esc_attr($value);
|
925 |
+
return $value;
|
926 |
+
}
|
927 |
+
add_filter('acx_csma_option_text_after_save_hook','acx_esc_attr_text_after_save',15,1);
|
928 |
+
function acx_text_area_stripslashes($name,$value)
|
929 |
+
{
|
930 |
+
if(ISSET($_POST[$name]))
|
931 |
+
{
|
932 |
+
if($_POST[$name] == $value)
|
933 |
+
{
|
934 |
+
$value = stripslashes($_POST[$name]);
|
935 |
+
}
|
936 |
+
}
|
937 |
+
return $value;
|
938 |
+
}
|
939 |
+
add_filter('acx_csma_text_area_before_save_hook','acx_text_area_stripslashes',20,2);
|
940 |
+
function acx_csma_display_var_content()
|
941 |
+
{
|
942 |
+
$display_content = '';
|
943 |
+
$acx_csma_display_var_arr=get_option('acx_csma_display_var_arr');
|
944 |
+
if(is_serialized($acx_csma_display_var_arr))
|
945 |
+
{
|
946 |
+
$acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
|
947 |
+
}
|
948 |
+
if($acx_csma_display_var_arr=="")
|
949 |
+
{
|
950 |
+
$acx_csma_display_var_arr=array();
|
951 |
+
}
|
952 |
+
$display_content.="<hr />";
|
953 |
+
ksort($acx_csma_display_var_arr);
|
954 |
+
$display_content.="<table class='wp-list-table widefat fixed striped'><th>Text</th><th>Variable</th><th>Action</th>";
|
955 |
+
|
956 |
+
foreach($acx_csma_display_var_arr as $key => $values)
|
957 |
+
{
|
958 |
+
$singular = '';
|
959 |
+
$plural = '';
|
960 |
+
if(ISSET($values['singular']))
|
961 |
+
{
|
962 |
+
$singular=$values['singular'];
|
963 |
+
}
|
964 |
+
if(ISSET($values['plural']))
|
965 |
+
{
|
966 |
+
$plural=$values['plural'];
|
967 |
+
}
|
968 |
+
if($singular != '' && $plural != '' )
|
969 |
+
{
|
970 |
+
$value = $singular."/".$plural;
|
971 |
+
}
|
972 |
+
else if($singular == '')
|
973 |
+
{
|
974 |
+
$value = $plural;
|
975 |
+
}
|
976 |
+
else{
|
977 |
+
$value = $singular;
|
978 |
+
}
|
979 |
+
$display_content.="<tr><td>".ucfirst($key)."</td><td>".$value."</td><td><span id='acx_disp_edit_link'><a onclick='acx_csma_disp_var_edit(\"$key\",\"$singular\",\"$plural\");' id='acx_csma_disp_var_edit'> Edit</a></span><span id='acx_disp_reset_link' style='margin-left: 23px;'><a onclick='acx_csma_disp_var_reset(\"$key\");' id='acx_csma_disp_var_edit'> Reset to Default</a></span></td></tr>";
|
980 |
+
}
|
981 |
+
$display_content.="</table>";
|
982 |
+
return $display_content;
|
983 |
+
}
|
984 |
+
function acx_csma_display_variables()
|
985 |
+
{
|
986 |
+
|
987 |
+
echo "<div id='acx_csma_display_variable_content'>";
|
988 |
+
$acx_csma_dis_cont=acx_csma_display_var_content();
|
989 |
+
echo $acx_csma_dis_cont;
|
990 |
+
echo "</div>";
|
991 |
+
?>
|
992 |
+
<div class="acx_csma_disp_edit_litbx" style="display:none;">
|
993 |
+
<div class="acx_csma_disp_edit_inner">
|
994 |
+
<div class='acx_csma_disp_edit_close_btn' onclick='acx_csma_disp_edit_cls();'></div>
|
995 |
+
<div class="acx_csma_disp_edit_ltbx1" id="acx_csma_disp_edit_ltbx">
|
996 |
+
</div>
|
997 |
+
</div>
|
998 |
+
</div>
|
999 |
+
<script>
|
1000 |
+
function acx_csma_disp_var_edit(key,singular,plural)
|
1001 |
+
{
|
1002 |
+
|
1003 |
+
var acx_load="<div id='acx_csmap_loading_1'><div class='load_1'></div></div>";
|
1004 |
+
jQuery('body').append(acx_load);
|
1005 |
+
var acx_csma_open_lb ="<?php echo admin_url('admin-ajax.php'); ?>";
|
1006 |
+
var order = 'key='+key+'&singular='+singular+'&plural='+plural+'&action=acx_csma_open_disp_var'+'&acx_csma_open_disp_var_e=<?php echo wp_create_nonce('acx_csma_open_disp_var_e'); ?>';
|
1007 |
+
jQuery.post(acx_csma_open_lb, order, function(theResponse)
|
1008 |
+
{
|
1009 |
+
jQuery("#acx_csmap_loading_1").remove();
|
1010 |
+
if(theResponse)
|
1011 |
+
{
|
1012 |
+
jQuery('#acx_csma_disp_edit_ltbx').html(theResponse);
|
1013 |
+
jQuery('.acx_csma_disp_edit_litbx').show();
|
1014 |
+
}
|
1015 |
+
});
|
1016 |
+
|
1017 |
+
}
|
1018 |
+
function acx_csma_disp_edit_cls()
|
1019 |
+
{
|
1020 |
+
jQuery('.acx_csma_disp_edit_litbx').hide();
|
1021 |
+
}
|
1022 |
+
function acx_csma_edit_disp_var()
|
1023 |
+
{
|
1024 |
+
var key=jQuery('#acx_csma_edit_key').val();
|
1025 |
+
if(key=="")
|
1026 |
+
{
|
1027 |
+
alert('Something Wrong\nTry Again!!!');
|
1028 |
+
return false;
|
1029 |
+
}
|
1030 |
+
var singular=jQuery('#acx_csma_edit_singular').val();
|
1031 |
+
var plural=jQuery('#acx_csma_edit_plural').val();
|
1032 |
+
var acx_load="<div id='acx_csmap_loading_1'><div class='load_1'></div></div>";
|
1033 |
+
jQuery('#acx_csma_edit_box').append(acx_load);
|
1034 |
+
var acx_csma_edit_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
|
1035 |
+
var order = 'key='+key+'&singular='+singular+'&plural='+plural+'&action=acx_csma_edit_disp_var'+'&acx_csma_edit_var=<?php echo wp_create_nonce('acx_csma_edit_var'); ?>';
|
1036 |
+
jQuery.post(acx_csma_edit_ajaxurl, order, function(theResponse)
|
1037 |
+
{
|
1038 |
+
jQuery("#acx_csmap_loading_1").remove();
|
1039 |
+
if(theResponse)
|
1040 |
+
{
|
1041 |
+
jQuery('#acx_csma_display_variable_content').html(theResponse);
|
1042 |
+
jQuery('#acx_csma_edit_key').val('');
|
1043 |
+
jQuery('#acx_csma_edit_singular').val('');
|
1044 |
+
jQuery('#acx_csma_edit_plural').val('');
|
1045 |
+
jQuery('.acx_csma_disp_edit_litbx').hide();
|
1046 |
+
}
|
1047 |
+
else{
|
1048 |
+
alert('Something Went Wrong\nPlease Try Again!!!');
|
1049 |
+
}
|
1050 |
+
});
|
1051 |
+
}
|
1052 |
+
function acx_csma_disp_var_reset(key)
|
1053 |
+
{
|
1054 |
+
var acx_load1="<div id='acx_csmap_loading_1'><div class='load_1'></div></div>";
|
1055 |
+
jQuery('body').append(acx_load1);
|
1056 |
+
var acx_csma_edit_ajaxurl1 ="<?php echo admin_url('admin-ajax.php'); ?>";
|
1057 |
+
var order = 'key='+key+'&action=acx_csma_reset_disp_var'+'&acx_csma_reset_var=<?php echo wp_create_nonce('acx_csma_reset_var'); ?>';
|
1058 |
+
jQuery.post(acx_csma_edit_ajaxurl1, order, function(theResponse)
|
1059 |
+
{
|
1060 |
+
jQuery("#acx_csmap_loading_1").remove();
|
1061 |
+
if(theResponse)
|
1062 |
+
{
|
1063 |
+
jQuery('#acx_csma_display_variable_content').html(theResponse);
|
1064 |
+
}
|
1065 |
+
else
|
1066 |
+
{
|
1067 |
+
alert('Something Went Wrong\nPlease Try Again!!!');
|
1068 |
+
}
|
1069 |
+
});
|
1070 |
+
}
|
1071 |
+
</script>
|
1072 |
+
<?php
|
1073 |
+
}
|
1074 |
+
|
1075 |
+
function acx_csma_reset_disp_var_callback()
|
1076 |
+
{
|
1077 |
+
if (!isset($_POST['acx_csma_reset_var'])) die("<br><br>Unknown Error Occurred, Try Again... <a href = ''>Click Here</a>");
|
1078 |
+
if (!wp_verify_nonce($_POST['acx_csma_reset_var'],'acx_csma_reset_var')) die("<br><br>Unknown Error Occurred, Try Again... <a href = ''>Click Here</a>");
|
1079 |
+
if(!current_user_can('manage_options')) die("<br><br>Sorry, You have no permission to do this action...</a>");
|
1080 |
+
if (isset($_POST['key']))
|
1081 |
+
{
|
1082 |
+
$acx_csma_reset_key = $_POST['key'];
|
1083 |
+
}
|
1084 |
+
else
|
1085 |
+
{
|
1086 |
+
$acx_csma_reset_key = '';
|
1087 |
+
}
|
1088 |
+
$acx_csma_display_var_arr=get_option('acx_csma_display_var_arr');
|
1089 |
+
if(is_serialized($acx_csma_display_var_arr))
|
1090 |
+
{
|
1091 |
+
$acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
|
1092 |
+
}
|
1093 |
+
if(ISSET($acx_csma_display_var_arr[$acx_csma_reset_key]['default_singular']))
|
1094 |
+
{
|
1095 |
+
$acx_csma_display_var_arr[$acx_csma_reset_key]['singular']=$acx_csma_display_var_arr[$acx_csma_reset_key]['default_singular'];
|
1096 |
+
}
|
1097 |
+
if(ISSET($acx_csma_display_var_arr[$acx_csma_reset_key]['default_plural']))
|
1098 |
+
{
|
1099 |
+
$acx_csma_display_var_arr[$acx_csma_reset_key]['plural']=$acx_csma_display_var_arr[$acx_csma_reset_key]['default_plural'];
|
1100 |
+
}
|
1101 |
+
if(!is_serialized($acx_csma_display_var_arr))
|
1102 |
+
{
|
1103 |
+
$acx_csma_display_var_arr = serialize($acx_csma_display_var_arr);
|
1104 |
+
}
|
1105 |
+
|
1106 |
+
update_option('acx_csma_display_var_arr',$acx_csma_display_var_arr);
|
1107 |
+
$acx_csma_dis_cont=acx_csma_display_var_content();
|
1108 |
+
echo $acx_csma_dis_cont;
|
1109 |
+
|
1110 |
+
die();
|
1111 |
+
}
|
1112 |
+
add_action( 'wp_ajax_acx_csma_reset_disp_var', 'acx_csma_reset_disp_var_callback' );
|
1113 |
+
|
1114 |
+
|
1115 |
+
function acx_csma_edit_disp_var_callback()
|
1116 |
+
{
|
1117 |
+
if (!isset($_POST['acx_csma_edit_var'])) die("<br><br>Unknown Error Occurred, Try Again... <a href = ''>Click Here</a>");
|
1118 |
+
if (!wp_verify_nonce($_POST['acx_csma_edit_var'],'acx_csma_edit_var')) die("<br><br>Unknown Error Occurred, Try Again... <a href = ''>Click Here</a>");
|
1119 |
+
if(!current_user_can('manage_options')) die("<br><br>Sorry, You have no permission to do this action...</a>");
|
1120 |
+
if (isset($_POST['key']))
|
1121 |
+
{
|
1122 |
+
$acx_csma_edit_key = $_POST['key'];
|
1123 |
+
}
|
1124 |
+
else
|
1125 |
+
{
|
1126 |
+
$acx_csma_edit_key = '';
|
1127 |
+
}
|
1128 |
+
if (isset($_POST['singular']))
|
1129 |
+
{
|
1130 |
+
$acx_csma_edit_singular = $_POST['singular'];
|
1131 |
+
}
|
1132 |
+
else
|
1133 |
+
{
|
1134 |
+
$acx_csma_edit_singular = '';
|
1135 |
+
}
|
1136 |
+
if (isset($_POST['plural']))
|
1137 |
+
{
|
1138 |
+
$acx_csma_edit_plural = $_POST['plural'];
|
1139 |
+
}
|
1140 |
+
else
|
1141 |
+
{
|
1142 |
+
$acx_csma_edit_plural = '';
|
1143 |
+
}
|
1144 |
+
$acx_csma_display_var_arr=get_option('acx_csma_display_var_arr');
|
1145 |
+
if(is_serialized($acx_csma_display_var_arr))
|
1146 |
+
{
|
1147 |
+
$acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
|
1148 |
+
}
|
1149 |
+
if(ISSET($acx_csma_display_var_arr[$acx_csma_edit_key]['default_singular']))
|
1150 |
+
{
|
1151 |
+
$acx_csma_display_var_arr[$acx_csma_edit_key]['singular']=$acx_csma_edit_singular;
|
1152 |
+
}
|
1153 |
+
if(ISSET($acx_csma_display_var_arr[$acx_csma_edit_key]['default_plural']))
|
1154 |
+
{
|
1155 |
+
$acx_csma_display_var_arr[$acx_csma_edit_key]['plural']=$acx_csma_edit_plural;
|
1156 |
+
}
|
1157 |
+
if(!is_serialized($acx_csma_display_var_arr))
|
1158 |
+
{
|
1159 |
+
$acx_csma_display_var_arr = serialize($acx_csma_display_var_arr);
|
1160 |
+
}
|
1161 |
+
|
1162 |
+
update_option('acx_csma_display_var_arr',$acx_csma_display_var_arr);
|
1163 |
+
|
1164 |
+
$acx_csma_dis_cont=acx_csma_display_var_content();
|
1165 |
+
echo $acx_csma_dis_cont;
|
1166 |
+
die();
|
1167 |
+
}
|
1168 |
+
add_action( 'wp_ajax_acx_csma_edit_disp_var', 'acx_csma_edit_disp_var_callback' );
|
1169 |
+
function acx_csma_open_disp_var_callback()
|
1170 |
+
{
|
1171 |
+
if (!isset($_POST['acx_csma_open_disp_var_e'])) die("<br><br>Unknown Error Occurred, Try Again... <a href = ''>Click Here</a>");
|
1172 |
+
if (!wp_verify_nonce($_POST['acx_csma_open_disp_var_e'],'acx_csma_open_disp_var_e')) die("<br><br>Unknown Error Occurred, Try Again... <a href = ''>Click Here</a>");
|
1173 |
+
if(!current_user_can('manage_options')) die("<br><br>Sorry, You have no permission to do this action...</a>");
|
1174 |
+
$response ='';
|
1175 |
+
if (isset($_POST['key']))
|
1176 |
+
{
|
1177 |
+
$acx_csma_key = $_POST['key'];
|
1178 |
+
}
|
1179 |
+
else
|
1180 |
+
{
|
1181 |
+
$acx_csma_key = '';
|
1182 |
+
}
|
1183 |
+
if (isset($_POST['singular']))
|
1184 |
+
{
|
1185 |
+
$acx_csma_singular = $_POST['singular'];
|
1186 |
+
}
|
1187 |
+
else
|
1188 |
+
{
|
1189 |
+
$acx_csma_singular = '';
|
1190 |
+
}
|
1191 |
+
if (isset($_POST['plural']))
|
1192 |
+
{
|
1193 |
+
$acx_csma_plural = $_POST['plural'];
|
1194 |
+
}
|
1195 |
+
else
|
1196 |
+
{
|
1197 |
+
$acx_csma_plural = '';
|
1198 |
+
}
|
1199 |
+
$acx_csma_display_var_arr=get_option('acx_csma_display_var_arr');
|
1200 |
+
if(is_serialized($acx_csma_display_var_arr))
|
1201 |
+
{
|
1202 |
+
$acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
|
1203 |
+
}
|
1204 |
+
$heading = ucfirst($acx_csma_key);
|
1205 |
+
$response .= "<div id='acx_csma_edit_box'><div id='acx_csma_edit_box_inner'><span id='acx_csma_heading'><h3>Edit Text for ".$heading."</h3></span><hr><div id='acx_csma_disp_var_inside_cnt'>";
|
1206 |
+
if(ISSET($acx_csma_display_var_arr[$acx_csma_key]['default_singular']))
|
1207 |
+
{
|
1208 |
+
$response .= "<div class='acx_csma_input_cvr'><span class='acx_csma_disp_label'>Text for Singular:</span><span class='acx_csma_disp_input'><input type='text' name='acx_csma_edit_singular' id='acx_csma_edit_singular' value='".$acx_csma_singular."'></span></div>";
|
1209 |
+
}
|
1210 |
+
if(ISSET($acx_csma_display_var_arr[$acx_csma_key]['default_plural']))
|
1211 |
+
{
|
1212 |
+
$response .= "<div class='acx_csma_input_cvr'><span class='acx_csma_disp_label'>Text for Plural: </span><span class='acx_csma_disp_input'><input type='text' name='acx_csma_edit_plural' id='acx_csma_edit_plural' value='".$acx_csma_plural."'></span></div>";
|
1213 |
+
}
|
1214 |
+
$response .= "<span class='acx_csma_disp_input'><input type='hidden' name='acx_csma_edit_key' id='acx_csma_edit_key' value='".$acx_csma_key."'></span><span class='acx_csma_disp_btn'><button type='button' class='button' onclick='acx_csma_edit_disp_var();'>Save</button></span></div></div></div>";
|
1215 |
+
echo $response;
|
1216 |
+
|
1217 |
+
|
1218 |
+
die();
|
1219 |
+
}
|
1220 |
+
add_action( 'wp_ajax_acx_csma_open_disp_var', 'acx_csma_open_disp_var_callback' );
|
1221 |
+
if(!function_exists('acx_csma_disp_var_to_show'))
|
1222 |
+
{
|
1223 |
+
function acx_csma_disp_var_to_show($acx_csma_disp_key)
|
1224 |
+
{
|
1225 |
+
|
1226 |
+
$display_response=array();
|
1227 |
+
$acx_csma_edit_plural="";
|
1228 |
+
$acx_csma_edit_singular="";
|
1229 |
+
$acx_csma_display_var_arr=get_option('acx_csma_display_var_arr');
|
1230 |
+
if(is_serialized($acx_csma_display_var_arr))
|
1231 |
+
{
|
1232 |
+
$acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
|
1233 |
+
}
|
1234 |
+
if(isset($acx_csma_display_var_arr[$acx_csma_disp_key]['singular']))
|
1235 |
+
{
|
1236 |
+
$acx_csma_edit_singular=$acx_csma_display_var_arr[$acx_csma_disp_key]['singular'];
|
1237 |
+
}
|
1238 |
+
if(isset($acx_csma_display_var_arr[$acx_csma_disp_key]['plural']))
|
1239 |
+
{
|
1240 |
+
$acx_csma_edit_plural=$acx_csma_display_var_arr[$acx_csma_disp_key]['plural'];
|
1241 |
+
}
|
1242 |
+
$display_response['singular']=$acx_csma_edit_singular;
|
1243 |
+
$display_response['plural']=$acx_csma_edit_plural;
|
1244 |
+
return $display_response;
|
1245 |
+
}
|
1246 |
+
}
|
1247 |
+
function acx_csma_get_db_array_value()
|
1248 |
+
{
|
1249 |
+
$acx_csma_appearence_array=get_option('acx_csma_appearence_array');
|
1250 |
+
$acx_csma_appearence_array = apply_filters('acx_csma_demo_get_array_filter',$acx_csma_appearence_array);
|
1251 |
+
if($acx_csma_appearence_array != "")
|
1252 |
+
{
|
1253 |
+
if(is_serialized($acx_csma_appearence_array))
|
1254 |
+
{
|
1255 |
+
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
1256 |
+
}
|
1257 |
+
}
|
1258 |
+
return $acx_csma_appearence_array;
|
1259 |
+
}
|
1260 |
+
function acx_csma_demo_get_array_filter_low_priority($acx_csma_appearence_array)
|
1261 |
+
{
|
1262 |
+
return $acx_csma_appearence_array;
|
1263 |
+
}
|
1264 |
+
add_filter('acx_csma_demo_get_array_filter','acx_csma_demo_get_array_filter_low_priority',5);
|
1265 |
+
function acx_csma_update_array_value($acx_csma_appearence_array)
|
1266 |
+
{
|
1267 |
+
$acx_csma_appearence_array = apply_filters('acx_csma_demo_update_array_filter',$acx_csma_appearence_array);
|
1268 |
+
if(!is_serialized($acx_csma_appearence_array))
|
1269 |
+
{
|
1270 |
+
$acx_csma_appearence_array = serialize($acx_csma_appearence_array);
|
1271 |
+
}
|
1272 |
+
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
1273 |
+
}
|
1274 |
+
|
1275 |
+
|
1276 |
+
// --- Making Sure acx_csma_appearence_array has all indexes starts here -----
|
1277 |
+
function acx_csma_appearence_array_refresh()
|
1278 |
+
{
|
1279 |
+
global $acx_csma_appearence_array_default;
|
1280 |
+
$acx_csma_appearence_array = acx_csma_get_db_array_value();
|
1281 |
+
$changes_happened = false;
|
1282 |
+
if($acx_csma_appearence_array == "")
|
1283 |
+
{
|
1284 |
+
$acx_csma_appearence_array = array();
|
1285 |
+
}
|
1286 |
+
$acx_csma_appearence_array_cloned = $acx_csma_appearence_array;
|
1287 |
+
foreach($acx_csma_appearence_array_default as $key => $value)
|
1288 |
+
{
|
1289 |
+
if(!array_key_exists($key,$acx_csma_appearence_array_cloned)) // If Template Not Available then add
|
1290 |
+
{
|
1291 |
+
$acx_csma_appearence_array_cloned[$key] = $acx_csma_appearence_array_default[$key];
|
1292 |
+
$changes_happened = true;
|
1293 |
+
} else // If Template is Available Then Checking Keys
|
1294 |
+
{
|
1295 |
+
if(is_array($value))
|
1296 |
+
{
|
1297 |
+
foreach($value as $key2 => $value2)
|
1298 |
+
{
|
1299 |
+
if(!array_key_exists($key2,$acx_csma_appearence_array_cloned[$key])) // If Template Not Available then add
|
1300 |
+
{
|
1301 |
+
$acx_csma_appearence_array_cloned[$key][$key2] = $acx_csma_appearence_array_default[$key][$key2];
|
1302 |
+
$changes_happened = true;
|
1303 |
+
}
|
1304 |
+
}
|
1305 |
+
}
|
1306 |
+
}
|
1307 |
+
}
|
1308 |
+
if($changes_happened == true)
|
1309 |
+
{
|
1310 |
+
acx_csma_update_array_value($acx_csma_appearence_array_cloned);
|
1311 |
+
}
|
1312 |
+
}
|
1313 |
+
add_action( 'init', 'acx_csma_appearence_array_refresh');
|
1314 |
+
// --- Making Sure acx_csma_appearence_array has all indexes ends here -----
|
1315 |
?>
|
images/close_btn.png
ADDED
Binary file
|
images/csma_01.png
ADDED
Binary file
|
images/csma_02.png
ADDED
Binary file
|
images/csma_03.png
ADDED
Binary file
|
images/csma_04.png
ADDED
Binary file
|
images/loading.gif
ADDED
Binary file
|
images/{html-img.png → template0.png}
RENAMED
File without changes
|
images/{template1 .png → template1.png}
RENAMED
File without changes
|
includes/acx_csma_admin.php
CHANGED
@@ -30,350 +30,10 @@ if(!acx_csma_temp_cookie)
|
|
30 |
}
|
31 |
</script>
|
32 |
<?php
|
|
|
|
|
33 |
$acx_csmap_qa_id = 0;
|
34 |
|
35 |
-
$acx_csma_appearence_array=get_option('acx_csma_appearence_array');
|
36 |
-
if($acx_csma_appearence_array != "")
|
37 |
-
{
|
38 |
-
if(is_serialized($acx_csma_appearence_array))
|
39 |
-
{
|
40 |
-
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
41 |
-
}
|
42 |
-
}
|
43 |
-
//set default values to database
|
44 |
-
//******************template 1**********************
|
45 |
-
$acx_csma_background_image1= ACX_CSMA_BASE_LOCATION . 'templates/1/images/body_bg.jpg';
|
46 |
-
$acx_csma_logo1=ACX_CSMA_BASE_LOCATION . 'templates/1/images/logo.png';
|
47 |
-
$acx_csma_logo_choice1="image";
|
48 |
-
$acx_csma_logo_text1=get_bloginfo('name');
|
49 |
-
$acx_csma_logo_text_color1="#ffffff";
|
50 |
-
$acx_csma_title1="Something New Is Coming";
|
51 |
-
$acx_csma_title_color1="#ffffff";
|
52 |
-
$acx_csma_subtitle_text1="We are Working on Our Website";
|
53 |
-
$acx_csma_subtitle_color1="#fffaa9";
|
54 |
-
$acx_csma_custom_html_top_temp1="";
|
55 |
-
$acx_csma_inside_bg_color1="#ff7800";
|
56 |
-
$acx_csma_inside_title1="Estimate Time Before Launching";
|
57 |
-
$acx_csma_inside_title_color1="#ffffff";
|
58 |
-
$acx_csma_custom_html_bottom_temp1="";
|
59 |
-
$acx_csma_show_timer1 = 1;
|
60 |
-
$acx_csma_timer_bg_color1="#ffffff";
|
61 |
-
$acx_csma_timer_iptext_color1="#ffffff";
|
62 |
-
$acx_csma_timer_head_color1="#ff7800";
|
63 |
-
$acx_csma_show_subscription = 1;
|
64 |
-
$acx_csma_custom_html_top_sub1 = "";
|
65 |
-
$acx_csma_custom_html_bottom_sub1= "";
|
66 |
-
$acx_csma_subscribe_bg_color1="#0b1c2c";
|
67 |
-
$acx_csma_subscribe_btn_text1="submit";
|
68 |
-
$acx_csma_subscribe_btn_text_color1="#ffffff";
|
69 |
-
$acx_csma_subscribe_btn_color1="#ff7800";
|
70 |
-
$acx_csma_subscribe_btn_hover_color1="#0b1c2c";
|
71 |
-
$acx_csma_subscribe_btn_hover_bgcolor1="#ff881e";
|
72 |
-
$acx_csma_subscribe_title1="Subscribe For Updates";
|
73 |
-
$acx_csma_subscribe_title_color1="#ff7800";
|
74 |
-
$acx_csma_subscribe_success1="Successfully Subscribed";
|
75 |
-
$acx_csma_subscribe_invalid1="Invalid Email";
|
76 |
-
$acx_csma_footer_bgcolor1="#ff7800";
|
77 |
-
$acx_csma_footer_text1="©". date("Y")." All rights reserved";
|
78 |
-
$acx_csma_footer_text_color1="#ffffff";
|
79 |
-
$acx_csma_custom_css_temp1= "";
|
80 |
-
acx_csma_hook_function('acx_csma_hook_mainoptions_set_default_template_1');
|
81 |
-
// *******************template2*********************
|
82 |
-
$acx_csma_bg_color2="#e4e4e4";
|
83 |
-
$acx_csma_logo2= ACX_CSMA_BASE_LOCATION . 'templates/2/images/logo.png';
|
84 |
-
$acx_csma_logo_choice2="image";
|
85 |
-
$acx_csma_logo_text2=get_bloginfo('name');
|
86 |
-
$acx_csma_logo_text_color2="#ffffff";
|
87 |
-
$acx_csma_title2="Hello";
|
88 |
-
$acx_csma_title_color2="#000000";
|
89 |
-
$acx_csma_subtitle_text2="We are Coming Very Soon";
|
90 |
-
$acx_csma_subtitle_color2="#000000";
|
91 |
-
$acx_csma_inside_bg_color2="#ffd800";
|
92 |
-
$acx_csma_custom_html_top_timer="";
|
93 |
-
$acx_csma_show_subscription2 = 1;
|
94 |
-
$acx_csma_timer_title2="Estimate time for launching";
|
95 |
-
$acx_csma_subscribe_btn_color2="#ffd800";
|
96 |
-
$acx_csma_subscribe_success2="Successfully Subscribed";
|
97 |
-
$acx_csma_subscribe_invalid2="Invalid Email";
|
98 |
-
$acx_csma_timer_input_bg_color2="#ffffff";
|
99 |
-
$acx_csma_timer_iptext_color2="#000000";
|
100 |
-
$acx_csma_timer_head_color2="#000000";
|
101 |
-
$acx_csma_custom_html_top_temp2="";
|
102 |
-
$acx_csma_desc_title2="What is Coming";
|
103 |
-
$acx_csma_desc_subtitle2=stripslashes(trim("Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat."));
|
104 |
-
$acx_csma_desc_text_color2="#000000";
|
105 |
-
$acx_csma_fb_link2="";
|
106 |
-
$acx_csma_twitter_link2="";
|
107 |
-
$acx_csma_linkedin_link2="";
|
108 |
-
$acx_csma_custom_css_temp2="";
|
109 |
-
acx_csma_hook_function('acx_csma_hook_mainoptions_set_default_template_2');
|
110 |
-
//*******************template 3*******************
|
111 |
-
$acx_csma_logo3= ACX_CSMA_BASE_LOCATION . 'templates/3/images/logo.png';
|
112 |
-
$acx_csma_logo_choice3="image";
|
113 |
-
$acx_csma_logo_text3=get_bloginfo('name');
|
114 |
-
$acx_csma_logo_text_color3="#ffffff";
|
115 |
-
$acx_csma_title3="Hello";
|
116 |
-
$acx_csma_title_color3="#ffffff";
|
117 |
-
$acx_csma_subtitle_text3="We are Coming Very Soon";
|
118 |
-
$acx_csma_subtitle_color3="#ffffff";
|
119 |
-
$acx_csma_primary_color3="#ffffff";
|
120 |
-
$acx_csma_secondary_color3="#fe7e01";
|
121 |
-
$acx_csma_left_bar_color3="#000000";
|
122 |
-
$acx_csma_timer_color3="#ffffff";
|
123 |
-
$acx_csma_subscribe_title3="Subscribe Now";
|
124 |
-
$acx_csma_subscribe_title_color3="#fe7e01";
|
125 |
-
$acx_csma_show_subscription3 = 1;
|
126 |
-
$acx_csma_show_timer3 = 1;
|
127 |
-
$acx_csma_subscribe_btn_text3="submit";
|
128 |
-
$acx_csma_subscribe_btn_text_color3="#ffffff";
|
129 |
-
$acx_csma_subscribe_btn_color3="#fe7e01";
|
130 |
-
$acx_csma_subscribe_btn_hover_color3="#0b1c2c";
|
131 |
-
$acx_csma_subscribe_btn_hover_bgcolor3="#fe6001";
|
132 |
-
$acx_csma_subscribe_success3="Successfully Subscribed";
|
133 |
-
$acx_csma_subscribe_invalid3="Invalid Email";
|
134 |
-
$acx_csma_inside_title3="Estimate Time Before Launching";
|
135 |
-
$acx_csma_inside_title_color3="#ffffff";
|
136 |
-
$acx_csma_timer_iptext_color3="#000000";
|
137 |
-
$acx_csma_timer_head_color3="#000000";
|
138 |
-
$acx_csma_custom_html_top_temp3="";
|
139 |
-
$acx_csma_custom_html_top_timer_temp3="";
|
140 |
-
$acx_csma_custom_html_bottom_temp3="";
|
141 |
-
$acx_csma_desc_title3="What is Coming";
|
142 |
-
$acx_csma_desc_subtitle3=stripslashes(trim("Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat."));
|
143 |
-
$acx_csma_desc_text_color3="#000000";
|
144 |
-
$acx_csma_footer_text3="©". date("Y")." All rights reserved";
|
145 |
-
$acx_csma_footer_color3="#000000";
|
146 |
-
$acx_csma_social_link_title3="Follow Us ON";
|
147 |
-
$acx_csma_social_link_title_color3="#000000";
|
148 |
-
$acx_csma_fb_link3="";
|
149 |
-
$acx_csma_twitter_link3="";
|
150 |
-
$acx_csma_linkedin_link3="";
|
151 |
-
$acx_csma_custom_css_temp3="";
|
152 |
-
acx_csma_hook_function('acx_csma_hook_mainoptions_set_default_template_3');
|
153 |
-
// ******************template 4*******************
|
154 |
-
$acx_csma_background_image4 = ACX_CSMA_BASE_LOCATION . 'templates/4/images/body_bg.jpg';
|
155 |
-
$acx_csma_logo4 = ACX_CSMA_BASE_LOCATION . 'templates/4/images/logo.png';
|
156 |
-
$acx_csma_logo_choice4="image";
|
157 |
-
$acx_csma_logo_text4=get_bloginfo('name');
|
158 |
-
$acx_csma_logo_text_color4="#ffffff";
|
159 |
-
$acx_csma_inside_bg_color4="#ebebeb";
|
160 |
-
$acx_csma_title4="Our Website is Under Construction";
|
161 |
-
$acx_csma_custom_html_top_temp4="";
|
162 |
-
$acx_csma_title_color4="#717171";
|
163 |
-
$acx_csma_show_timer4=1;
|
164 |
-
$acx_csma_timer_iptext_color4="#717171";
|
165 |
-
$acx_csma_timer_head_color4="#717171";
|
166 |
-
$acx_csma_show_progressbar4=1;
|
167 |
-
$acx_csma_progress_bar_color4="#717171";
|
168 |
-
$acx_csma_custom_html_bottom_temp4="";
|
169 |
-
$acx_csma_fb_link4="";
|
170 |
-
$acx_csma_twitter_link4="";
|
171 |
-
$acx_csma_linkedin_link4="";
|
172 |
-
$acx_csma_custom_css_temp4= "";
|
173 |
-
acx_csma_hook_function('acx_csma_hook_mainoptions_set_default_template_4');
|
174 |
-
//*******************template 5********************
|
175 |
-
$acx_csma_bgcolor5="#e9eaec";
|
176 |
-
$acx_csma_logo5= ACX_CSMA_BASE_LOCATION . 'templates/5/images/logo.png';
|
177 |
-
$acx_csma_logo_choice5="image";
|
178 |
-
$acx_csma_logo_text5=get_bloginfo('name');
|
179 |
-
$acx_csma_logo_text_color5="#000000";
|
180 |
-
$acx_csma_inside_bg_color5="#f5f5f5";
|
181 |
-
$acx_csma_title5="Our Website is Under Construction";
|
182 |
-
$acx_csma_custom_html_top_temp5="";
|
183 |
-
$acx_csma_title_color5="#4b4b4b";
|
184 |
-
$acx_csma_show_timer5=1;
|
185 |
-
$acx_csma_timer_iptext_color5="#000000";
|
186 |
-
$acx_csma_timer_head_color5="#000000";
|
187 |
-
$acx_csma_show_progressbar5=1;
|
188 |
-
$acx_csma_progress_bar_color5="#717171";
|
189 |
-
$acx_csma_custom_html_bottom_temp5="";
|
190 |
-
$acx_csma_show_subscription5 = 1;
|
191 |
-
$acx_csma_custom_html_top_sub = "";
|
192 |
-
$acx_csma_custom_html_bottom_sub= "";
|
193 |
-
$acx_csma_subscribe_bg_color5="#2f2f2f";
|
194 |
-
$acx_csma_launch_title_color5="#4b4b4b";
|
195 |
-
$acx_csma_subscribe_main_title5 = "Want to know when we launch?";
|
196 |
-
$acx_csma_subscribe_title5="Subscribe by entering your email below";
|
197 |
-
$acx_csma_subscribe_success5="Successfully Subscribed";
|
198 |
-
$acx_csma_subscribe_invalid5="Invalid Email";
|
199 |
-
$acx_csma_fb_link5="";
|
200 |
-
$acx_csma_twitter_link5="";
|
201 |
-
$acx_csma_linkedin_link5="";
|
202 |
-
$acx_csma_custom_css_temp5= "";
|
203 |
-
acx_csma_hook_function('acx_csma_hook_mainoptions_set_default_template_5');
|
204 |
-
|
205 |
-
if($acx_csma_appearence_array=="" || !is_array($acx_csma_appearence_array))
|
206 |
-
{
|
207 |
-
$acx_csma_appearence_array['1'] = array(
|
208 |
-
'acx_csma_background_image1'=>$acx_csma_background_image1,
|
209 |
-
'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice1),
|
210 |
-
'acx_csma_logo1'=>$acx_csma_logo1,
|
211 |
-
'acx_csma_logo_text1' =>sanitize_text_field($acx_csma_logo_text1),
|
212 |
-
'acx_csma_logo_text_color1' =>sanitize_text_field($acx_csma_logo_text_color1),
|
213 |
-
'acx_csma_title1'=>sanitize_text_field($acx_csma_title1),
|
214 |
-
'acx_csma_title_color1'=>sanitize_text_field($acx_csma_title_color1),
|
215 |
-
'acx_csma_subtitle_text1'=>sanitize_text_field($acx_csma_subtitle_text1),
|
216 |
-
'acx_csma_subtitle_color1'=>sanitize_text_field($acx_csma_subtitle_color1),
|
217 |
-
'acx_csma_custom_html_top_temp1'=>$acx_csma_custom_html_top_temp1,
|
218 |
-
'acx_csma_inside_bg_color1'=>sanitize_text_field($acx_csma_inside_bg_color1),
|
219 |
-
'acx_csma_inside_title1'=>sanitize_text_field($acx_csma_inside_title1),
|
220 |
-
'acx_csma_inside_title_color1'=>sanitize_text_field($acx_csma_inside_title_color1),
|
221 |
-
'acx_csma_custom_html_bottom_temp1'=>$acx_csma_custom_html_bottom_temp1,
|
222 |
-
'acx_csma_show_timer1'=>sanitize_text_field($acx_csma_show_timer1),
|
223 |
-
'acx_csma_timer_bg_color1'=>sanitize_text_field($acx_csma_timer_bg_color1),
|
224 |
-
'acx_csma_timer_iptext_color1'=>sanitize_text_field($acx_csma_timer_iptext_color1),
|
225 |
-
'acx_csma_timer_head_color1'=>sanitize_text_field($acx_csma_timer_head_color1),
|
226 |
-
'acx_csma_show_subscription'=>sanitize_text_field($acx_csma_show_subscription),
|
227 |
-
'acx_csma_custom_html_top_sub1'=>sanitize_text_field($acx_csma_custom_html_top_sub1),
|
228 |
-
'acx_csma_custom_html_bottom_sub1'=>sanitize_text_field($acx_csma_custom_html_bottom_sub1),
|
229 |
-
'acx_csma_subscribe_bg_color1'=>sanitize_text_field($acx_csma_subscribe_bg_color1),
|
230 |
-
'acx_csma_subscribe_btn_text1'=>sanitize_text_field($acx_csma_subscribe_btn_text1),
|
231 |
-
'acx_csma_subscribe_btn_text_color1'=>sanitize_text_field($acx_csma_subscribe_btn_text_color1),
|
232 |
-
'acx_csma_subscribe_btn_color1'=>sanitize_text_field($acx_csma_subscribe_btn_color1),
|
233 |
-
'acx_csma_subscribe_btn_hover_color1'=>sanitize_text_field($acx_csma_subscribe_btn_hover_color1),
|
234 |
-
'acx_csma_subscribe_btn_hover_bgcolor1'=>sanitize_text_field($acx_csma_subscribe_btn_hover_bgcolor1),
|
235 |
-
'acx_csma_subscribe_title1'=>sanitize_text_field($acx_csma_subscribe_title1),
|
236 |
-
'acx_csma_subscribe_title_color1'=>sanitize_text_field($acx_csma_subscribe_title_color1),
|
237 |
-
'acx_csma_subscribe_success1'=>sanitize_text_field($acx_csma_subscribe_success1),
|
238 |
-
'acx_csma_subscribe_invalid1'=>sanitize_text_field($acx_csma_subscribe_invalid1),
|
239 |
-
'acx_csma_footer_bgcolor1'=>sanitize_text_field($acx_csma_footer_bgcolor1),
|
240 |
-
'acx_csma_footer_text1'=>sanitize_text_field($acx_csma_footer_text1),
|
241 |
-
'acx_csma_footer_text_color1'=>sanitize_text_field($acx_csma_footer_text_color1),
|
242 |
-
'acx_csma_custom_css_temp1'=>sanitize_text_field($acx_csma_custom_css_temp1)
|
243 |
-
);
|
244 |
-
$acx_csma_appearence_array['2'] = array(
|
245 |
-
'acx_csma_bg_color2'=>sanitize_text_field($acx_csma_bg_color2),
|
246 |
-
'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice2),
|
247 |
-
'acx_csma_logo2'=>$acx_csma_logo2,
|
248 |
-
'acx_csma_logo_text2' =>sanitize_text_field($acx_csma_logo_text2),
|
249 |
-
'acx_csma_logo_text_color2' =>sanitize_text_field($acx_csma_logo_text_color2),
|
250 |
-
'acx_csma_title2'=>sanitize_text_field($acx_csma_title2),
|
251 |
-
'acx_csma_title_color2'=>sanitize_text_field($acx_csma_title_color2),
|
252 |
-
'acx_csma_subtitle_text2'=>sanitize_text_field($acx_csma_subtitle_text2),
|
253 |
-
'acx_csma_subtitle_color2'=>sanitize_text_field($acx_csma_subtitle_color2),
|
254 |
-
'acx_csma_inside_bg_color2'=>sanitize_text_field($acx_csma_inside_bg_color2),
|
255 |
-
'acx_csma_custom_html_top_timer'=>$acx_csma_custom_html_top_timer,
|
256 |
-
'acx_csma_show_subscription2'=>sanitize_text_field($acx_csma_show_subscription2),
|
257 |
-
'acx_csma_timer_title2'=>sanitize_text_field($acx_csma_timer_title2),
|
258 |
-
'acx_csma_subscribe_btn_color2'=>sanitize_text_field($acx_csma_subscribe_btn_color2),
|
259 |
-
'acx_csma_subscribe_success2'=>sanitize_text_field($acx_csma_subscribe_success2),
|
260 |
-
'acx_csma_subscribe_invalid2'=>sanitize_text_field($acx_csma_subscribe_invalid2),
|
261 |
-
'acx_csma_timer_input_bg_color2'=>sanitize_text_field($acx_csma_timer_input_bg_color2),
|
262 |
-
'acx_csma_timer_iptext_color2'=>sanitize_text_field($acx_csma_timer_iptext_color2),
|
263 |
-
'acx_csma_timer_head_color2'=>sanitize_text_field($acx_csma_timer_head_color2),
|
264 |
-
'acx_csma_custom_html_top_temp2'=>$acx_csma_custom_html_top_temp2,
|
265 |
-
'acx_csma_desc_title2'=>sanitize_text_field($acx_csma_desc_title2),
|
266 |
-
'acx_csma_desc_subtitle2'=>sanitize_text_field($acx_csma_desc_subtitle2),
|
267 |
-
'acx_csma_desc_text_color2'=>sanitize_text_field($acx_csma_desc_text_color2),
|
268 |
-
'acx_csma_fb_link2'=>esc_url_raw($acx_csma_fb_link2),
|
269 |
-
'acx_csma_twitter_link2'=>esc_url_raw($acx_csma_twitter_link2),
|
270 |
-
'acx_csma_linkedin_link2'=>esc_url_raw($acx_csma_linkedin_link2),
|
271 |
-
'acx_csma_custom_css_temp2'=>$acx_csma_custom_css_temp2
|
272 |
-
);
|
273 |
-
$acx_csma_appearence_array['3'] =array(
|
274 |
-
'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice3),
|
275 |
-
'acx_csma_logo3'=>$acx_csma_logo3,
|
276 |
-
'acx_csma_logo_text3' =>sanitize_text_field($acx_csma_logo_text3),
|
277 |
-
'acx_csma_logo_text_color3' =>sanitize_text_field($acx_csma_logo_text_color3),
|
278 |
-
'acx_csma_title3'=>sanitize_text_field($acx_csma_title3),
|
279 |
-
'acx_csma_title_color3'=>sanitize_text_field($acx_csma_title_color3),
|
280 |
-
'acx_csma_subtitle_text3'=>sanitize_text_field($acx_csma_subtitle_text3),
|
281 |
-
'acx_csma_subtitle_color3'=>sanitize_text_field($acx_csma_subtitle_color3),
|
282 |
-
'acx_csma_primary_color3'=>sanitize_text_field($acx_csma_primary_color3),
|
283 |
-
'acx_csma_secondary_color3'=>sanitize_text_field($acx_csma_secondary_color3),
|
284 |
-
'acx_csma_left_bar_color3'=>sanitize_text_field($acx_csma_left_bar_color3),
|
285 |
-
'acx_csma_timer_color3'=>sanitize_text_field($acx_csma_timer_color3),
|
286 |
-
'acx_csma_subscribe_title3'=>sanitize_text_field($acx_csma_subscribe_title3),
|
287 |
-
'acx_csma_subscribe_title_color3'=>sanitize_text_field($acx_csma_subscribe_title_color3),
|
288 |
-
'acx_csma_subscribe_btn_text3'=>sanitize_text_field($acx_csma_subscribe_btn_text3),
|
289 |
-
'acx_csma_subscribe_btn_text_color3'=>sanitize_text_field($acx_csma_subscribe_btn_text_color3),
|
290 |
-
'acx_csma_subscribe_btn_color3'=>sanitize_text_field($acx_csma_subscribe_btn_color3),
|
291 |
-
'acx_csma_subscribe_btn_hover_color3'=>sanitize_text_field($acx_csma_subscribe_btn_hover_color3),
|
292 |
-
'acx_csma_subscribe_btn_hover_bgcolor3'=>sanitize_text_field($acx_csma_subscribe_btn_hover_bgcolor3),
|
293 |
-
'acx_csma_show_subscription3'=>sanitize_text_field($acx_csma_show_subscription3),
|
294 |
-
'acx_csma_show_timer3'=>sanitize_text_field($acx_csma_show_timer3),
|
295 |
-
'acx_csma_subscribe_success3'=>sanitize_text_field($acx_csma_subscribe_success3),
|
296 |
-
'acx_csma_subscribe_invalid3'=>sanitize_text_field($acx_csma_subscribe_invalid3),
|
297 |
-
'acx_csma_inside_title3'=>sanitize_text_field($acx_csma_inside_title3),
|
298 |
-
'acx_csma_inside_title_color3'=>sanitize_text_field($acx_csma_inside_title_color3),
|
299 |
-
'acx_csma_timer_iptext_color3'=>sanitize_text_field($acx_csma_timer_iptext_color3),
|
300 |
-
'acx_csma_timer_head_color3'=>sanitize_text_field($acx_csma_timer_head_color3),
|
301 |
-
'acx_csma_custom_html_top_temp3'=>$acx_csma_custom_html_top_temp3,
|
302 |
-
'acx_csma_custom_html_top_timer_temp3'=>$acx_csma_custom_html_top_timer_temp3,
|
303 |
-
'acx_csma_custom_html_bottom_temp3'=>$acx_csma_custom_html_bottom_temp3,
|
304 |
-
|
305 |
-
'acx_csma_desc_title3'=>sanitize_text_field($acx_csma_desc_title3),
|
306 |
-
'acx_csma_desc_subtitle3'=>sanitize_text_field($acx_csma_desc_subtitle3),
|
307 |
-
'acx_csma_desc_text_color3'=>sanitize_text_field($acx_csma_desc_text_color3),
|
308 |
-
'acx_csma_footer_text3'=>sanitize_text_field($acx_csma_footer_text3),
|
309 |
-
'acx_csma_footer_color3'=>sanitize_text_field($acx_csma_footer_color3),
|
310 |
-
'acx_csma_social_link_title3'=>sanitize_text_field($acx_csma_social_link_title3),
|
311 |
-
'acx_csma_social_link_title_color3'=>sanitize_text_field($acx_csma_social_link_title_color3),
|
312 |
-
'acx_csma_fb_link3'=>esc_url_raw($acx_csma_fb_link3),
|
313 |
-
'acx_csma_twitter_link3'=>esc_url_raw($acx_csma_twitter_link3),
|
314 |
-
'acx_csma_linkedin_link3'=>esc_url_raw($acx_csma_linkedin_link3),
|
315 |
-
'acx_csma_custom_css_temp3'=>$acx_csma_custom_css_temp3
|
316 |
-
);
|
317 |
-
$acx_csma_appearence_array['4'] =array(
|
318 |
-
'acx_csma_background_image4'=>$acx_csma_background_image4,
|
319 |
-
'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice4),
|
320 |
-
'acx_csma_logo4'=>$acx_csma_logo4,
|
321 |
-
'acx_csma_logo_text4' =>sanitize_text_field($acx_csma_logo_text4),
|
322 |
-
'acx_csma_logo_text_color4' =>sanitize_text_field($acx_csma_logo_text_color4),
|
323 |
-
'acx_csma_inside_bg_color4'=>sanitize_text_field($acx_csma_inside_bg_color4),
|
324 |
-
'acx_csma_title4'=>sanitize_text_field($acx_csma_title4),
|
325 |
-
'acx_csma_custom_html_top_temp4'=>$acx_csma_custom_html_top_temp4,
|
326 |
-
'acx_csma_title_color4'=>sanitize_text_field($acx_csma_title_color4),
|
327 |
-
'acx_csma_show_timer4'=>sanitize_text_field($acx_csma_show_timer4),
|
328 |
-
'acx_csma_timer_iptext_color4'=>sanitize_text_field($acx_csma_timer_iptext_color4),
|
329 |
-
'acx_csma_timer_head_color4'=>sanitize_text_field($acx_csma_timer_head_color4),
|
330 |
-
'acx_csma_show_progressbar4'=>$acx_csma_show_progressbar4,
|
331 |
-
'acx_csma_progress_bar_color4'=>sanitize_text_field($acx_csma_progress_bar_color4),
|
332 |
-
'acx_csma_custom_html_bottom_temp4'=>$acx_csma_custom_html_bottom_temp4,
|
333 |
-
'acx_csma_fb_link4'=>esc_url_raw($acx_csma_fb_link4),
|
334 |
-
'acx_csma_twitter_link4'=>esc_url_raw($acx_csma_twitter_link4),
|
335 |
-
'acx_csma_linkedin_link4'=>esc_url_raw($acx_csma_linkedin_link4),
|
336 |
-
'acx_csma_custom_css_temp4'=>sanitize_text_field($acx_csma_custom_css_temp4)
|
337 |
-
);
|
338 |
-
$acx_csma_appearence_array['5'] =array(
|
339 |
-
'acx_csma_bgcolor5'=>sanitize_text_field($acx_csma_bgcolor5),
|
340 |
-
'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice5),
|
341 |
-
'acx_csma_logo5'=>$acx_csma_logo5,
|
342 |
-
'acx_csma_logo_text5' =>sanitize_text_field($acx_csma_logo_text5),
|
343 |
-
'acx_csma_logo_text_color5' =>sanitize_text_field($acx_csma_logo_text_color5),
|
344 |
-
'acx_csma_inside_bg_color5'=>sanitize_text_field($acx_csma_inside_bg_color5),
|
345 |
-
'acx_csma_title5'=>sanitize_text_field($acx_csma_title5),
|
346 |
-
'acx_csma_custom_html_top_temp5'=>$acx_csma_custom_html_top_temp5,
|
347 |
-
'acx_csma_title_color5'=>sanitize_text_field($acx_csma_title_color5),
|
348 |
-
'acx_csma_show_timer5'=>sanitize_text_field($acx_csma_show_timer5),
|
349 |
-
'acx_csma_timer_iptext_color5'=>sanitize_text_field($acx_csma_timer_iptext_color5),
|
350 |
-
'acx_csma_timer_head_color5'=>sanitize_text_field($acx_csma_timer_head_color5),
|
351 |
-
'acx_csma_show_progressbar5'=>$acx_csma_show_progressbar5,
|
352 |
-
'acx_csma_progress_bar_color5'=>sanitize_text_field($acx_csma_progress_bar_color5),
|
353 |
-
'acx_csma_custom_html_bottom_temp5'=>$acx_csma_custom_html_bottom_temp5,
|
354 |
-
'acx_csma_show_subscription5'=>sanitize_text_field($acx_csma_show_subscription5),
|
355 |
-
'acx_csma_custom_html_top_sub'=>sanitize_text_field($acx_csma_custom_html_top_sub),
|
356 |
-
'acx_csma_custom_html_bottom_sub'=>sanitize_text_field($acx_csma_custom_html_bottom_sub),
|
357 |
-
'acx_csma_subscribe_bg_color5'=>sanitize_text_field($acx_csma_subscribe_bg_color5),
|
358 |
-
'acx_csma_launch_title_color5'=>sanitize_text_field($acx_csma_launch_title_color5),
|
359 |
-
'acx_csma_subscribe_main_title5' => sanitize_text_field($acx_csma_subscribe_main_title5),
|
360 |
-
'acx_csma_subscribe_title5'=>sanitize_text_field($acx_csma_subscribe_title5),
|
361 |
-
'acx_csma_subscribe_success5'=>sanitize_text_field($acx_csma_subscribe_success5),
|
362 |
-
'acx_csma_subscribe_invalid5'=>sanitize_text_field($acx_csma_subscribe_invalid5),
|
363 |
-
'acx_csma_fb_link5'=>esc_url_raw($acx_csma_fb_link5),
|
364 |
-
'acx_csma_twitter_link5'=>esc_url_raw($acx_csma_twitter_link5),
|
365 |
-
'acx_csma_linkedin_link5'=>esc_url_raw($acx_csma_linkedin_link5),
|
366 |
-
'acx_csma_custom_css_temp5'=>sanitize_text_field($acx_csma_custom_css_temp5)
|
367 |
-
);
|
368 |
-
|
369 |
-
if(!is_serialized($acx_csma_appearence_array))
|
370 |
-
{
|
371 |
-
$acx_csma_appearence_array = serialize($acx_csma_appearence_array);
|
372 |
-
}
|
373 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
374 |
-
acx_csma_hook_function('acx_csma_hook_mainoptions_update_default_values');
|
375 |
-
}
|
376 |
-
|
377 |
if(ISSET($_POST['acx_csma_hidden']))
|
378 |
{
|
379 |
$acx_csma_hidden = $_POST['acx_csma_hidden'];
|
@@ -444,18 +104,15 @@ if($acx_csma_hidden == 'Y')
|
|
444 |
}
|
445 |
|
446 |
//************************************************template 1 ********************************************
|
447 |
-
$acx_csma_appearence_array=
|
448 |
|
449 |
-
|
450 |
-
|
451 |
-
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
452 |
-
}
|
453 |
-
|
454 |
-
$acx_csma_background_image1=sanitize_text_field($_POST['acx_csma_background_image1']);
|
455 |
if($acx_csma_background_image1==""){$acx_csma_background_image1=$acx_csma_appearence_array['1']['acx_csma_background_image1'] ;}
|
456 |
if(ISSET($_POST['acx_csma_logo_choice1']))
|
457 |
{
|
458 |
-
$acx_csma_logo_choice1
|
|
|
459 |
}
|
460 |
else{
|
461 |
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['1'])){
|
@@ -464,44 +121,102 @@ if(is_serialized($acx_csma_appearence_array))
|
|
464 |
$acx_csma_logo_choice1='image';
|
465 |
}
|
466 |
}
|
467 |
-
$acx_csma_logo1
|
468 |
-
$
|
469 |
-
|
470 |
-
$
|
471 |
-
$
|
472 |
-
$
|
473 |
-
$
|
474 |
-
|
475 |
-
$
|
476 |
-
$
|
477 |
-
$
|
478 |
-
$
|
479 |
-
|
480 |
-
|
481 |
-
$
|
482 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
483 |
|
484 |
-
$acx_csma_show_subscription=sanitize_text_field($_POST['acx_csma_show_subscription']);
|
485 |
|
486 |
-
|
487 |
-
$acx_csma_custom_html_bottom_sub1=stripslashes(trim($_POST['acx_csma_custom_html_bottom_sub1']));
|
488 |
|
489 |
-
$
|
490 |
-
$
|
491 |
-
$acx_csma_subscribe_btn_text_color1=sanitize_text_field($_POST['acx_csma_subscribe_btn_text_color1']);if($acx_csma_subscribe_btn_text_color1==""){$acx_csma_subscribe_btn_text_color1=$acx_csma_appearence_array['1']['acx_csma_subscribe_btn_text_color1'];}
|
492 |
-
$acx_csma_subscribe_btn_color1=sanitize_text_field($_POST['acx_csma_subscribe_btn_color1']);if($acx_csma_subscribe_btn_color1==""){$acx_csma_subscribe_btn_color1=$acx_csma_appearence_array['1']['acx_csma_subscribe_btn_color1'];}
|
493 |
-
$acx_csma_subscribe_btn_hover_color1=sanitize_text_field($_POST['acx_csma_subscribe_btn_hover_color1']);if($acx_csma_subscribe_btn_hover_color1==""){$acx_csma_subscribe_btn_hover_color1=$acx_csma_appearence_array['1']['acx_csma_subscribe_btn_hover_color1'];}
|
494 |
-
$acx_csma_subscribe_btn_hover_bgcolor1=sanitize_text_field($_POST['acx_csma_subscribe_btn_hover_bgcolor1']);if($acx_csma_subscribe_btn_hover_bgcolor1==""){$acx_csma_subscribe_btn_hover_bgcolor1=$acx_csma_appearence_array['1']['acx_csma_subscribe_btn_hover_bgcolor1'];}
|
495 |
-
$acx_csma_subscribe_title1=sanitize_text_field($_POST['acx_csma_subscribe_title1']);if($acx_csma_subscribe_title1==""){$acx_csma_subscribe_title1=$acx_csma_appearence_array['1']['acx_csma_subscribe_title1'];}
|
496 |
-
$acx_csma_subscribe_title_color1=sanitize_text_field($_POST['acx_csma_subscribe_title_color1']);if($acx_csma_subscribe_title_color1==""){$acx_csma_subscribe_title_color1=$acx_csma_appearence_array['1']['acx_csma_subscribe_title_color1'];}
|
497 |
-
$acx_csma_subscribe_success1=sanitize_text_field($_POST['acx_csma_subscribe_success1']);if($acx_csma_subscribe_success1==""){$acx_csma_subscribe_success1=$acx_csma_appearence_array['1']['acx_csma_subscribe_success1'];}
|
498 |
-
$acx_csma_subscribe_invalid1=sanitize_text_field($_POST['acx_csma_subscribe_invalid1']);if($acx_csma_subscribe_invalid1==""){$acx_csma_subscribe_invalid1=$acx_csma_appearence_array['1']['acx_csma_subscribe_invalid1'];}
|
499 |
-
$acx_csma_footer_bgcolor1=sanitize_text_field($_POST['acx_csma_footer_bgcolor1']);if($acx_csma_footer_bgcolor1==""){$acx_csma_footer_bgcolor1=$acx_csma_appearence_array['1']['acx_csma_footer_bgcolor1'];}
|
500 |
-
$acx_csma_footer_text1=sanitize_text_field($_POST['acx_csma_footer_text1']);if($acx_csma_footer_text1==""){$acx_csma_footer_text1=$acx_csma_appearence_array['1']['acx_csma_footer_text1'];}
|
501 |
-
$acx_csma_footer_text_color1=sanitize_text_field($_POST['acx_csma_footer_text_color1']);if($acx_csma_footer_text_color1==""){$acx_csma_footer_text_color1=$acx_csma_appearence_array['1']['acx_csma_footer_text_color1'];}
|
502 |
|
503 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
504 |
|
|
|
|
|
505 |
// **************************************template 2**************************************
|
506 |
$acx_csma_bg_color2 = sanitize_text_field($_POST['acx_csma_bg_color2']);if($acx_csma_bg_color2==""){$acx_csma_bg_color2=$acx_csma_appearence_array['2']['acx_csma_bg_color2'];}
|
507 |
|
@@ -517,38 +232,83 @@ if(is_serialized($acx_csma_appearence_array))
|
|
517 |
}
|
518 |
}
|
519 |
|
520 |
-
$acx_csma_logo2 =
|
521 |
-
$
|
522 |
-
$acx_csma_logo_text_color2=sanitize_text_field($_POST['acx_csma_logo_text_color2']);if($acx_csma_logo_text_color2==""){$acx_csma_logo_text_color2=$acx_csma_appearence_array['2']['acx_csma_logo_text_color2'];}
|
523 |
-
$acx_csma_title2=sanitize_text_field($_POST['acx_csma_title2']);if($acx_csma_title2==""){$acx_csma_title2=$acx_csma_appearence_array['2']['acx_csma_title2'];}
|
524 |
-
$acx_csma_title_color2=sanitize_text_field($_POST['acx_csma_title_color2']);if($acx_csma_title_color2==""){$acx_csma_title_color2=$acx_csma_appearence_array['2']['acx_csma_title_color2'];}
|
525 |
-
$acx_csma_subtitle_text2=sanitize_text_field($_POST['acx_csma_subtitle_text2']);if($acx_csma_subtitle_text2==""){$acx_csma_subtitle_text2=$acx_csma_appearence_array['2']['acx_csma_subtitle_text2'];}
|
526 |
-
$acx_csma_subtitle_color2=sanitize_text_field($_POST['acx_csma_subtitle_color2']);if($acx_csma_subtitle_color2==""){$acx_csma_subtitle_color2=$acx_csma_appearence_array['2']['acx_csma_subtitle_color2'];}
|
527 |
-
$acx_csma_inside_bg_color2=sanitize_text_field($_POST['acx_csma_inside_bg_color2']);if($acx_csma_inside_bg_color2==""){$acx_csma_inside_bg_color2=$acx_csma_appearence_array['2']['acx_csma_inside_bg_color2'];}
|
528 |
|
529 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
530 |
|
531 |
-
|
532 |
-
|
533 |
-
$
|
534 |
-
|
|
|
535 |
|
536 |
-
$
|
537 |
-
$
|
538 |
-
$
|
539 |
-
$
|
540 |
-
$
|
541 |
-
|
542 |
-
|
543 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
544 |
$acx_csma_fb_link2=esc_url_raw($_POST['acx_csma_fb_link2']);
|
545 |
$acx_csma_twitter_link2=esc_url_raw($_POST['acx_csma_twitter_link2']);
|
546 |
$acx_csma_linkedin_link2=esc_url_raw($_POST['acx_csma_linkedin_link2']);
|
547 |
-
$acx_csma_custom_css_temp2
|
|
|
548 |
//***********************************template 3*************************
|
549 |
if(ISSET($_POST['acx_csma_logo_choice3']))
|
550 |
{
|
551 |
-
$acx_csma_logo_choice3
|
|
|
552 |
}
|
553 |
else{
|
554 |
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['3'])){
|
@@ -558,56 +318,122 @@ if(is_serialized($acx_csma_appearence_array))
|
|
558 |
}
|
559 |
}
|
560 |
|
561 |
-
$acx_csma_logo3
|
562 |
-
$
|
563 |
-
|
564 |
-
$
|
565 |
-
$
|
566 |
-
$
|
567 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
568 |
|
569 |
-
$
|
|
|
|
|
570 |
|
571 |
-
$
|
|
|
|
|
572 |
|
573 |
-
$
|
|
|
|
|
574 |
|
575 |
-
$
|
|
|
576 |
|
577 |
-
$
|
578 |
-
$acx_csma_subscribe_title_color3=
|
579 |
-
|
580 |
-
$
|
581 |
-
$
|
582 |
-
|
583 |
-
$
|
584 |
-
$
|
585 |
-
|
586 |
-
$
|
587 |
-
$
|
588 |
-
|
589 |
-
$
|
590 |
-
$
|
591 |
-
|
592 |
-
$
|
593 |
-
$
|
594 |
-
|
595 |
-
$
|
596 |
-
$
|
597 |
-
|
598 |
-
$
|
599 |
-
$
|
600 |
-
|
601 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
602 |
$acx_csma_fb_link3=esc_url_raw($_POST['acx_csma_fb_link3']);
|
603 |
$acx_csma_twitter_link3=esc_url_raw($_POST['acx_csma_twitter_link3']);
|
604 |
$acx_csma_linkedin_link3=esc_url_raw($_POST['acx_csma_linkedin_link3']);
|
605 |
-
$acx_csma_custom_css_temp3
|
|
|
606 |
//********************************template 4***********************************
|
607 |
-
$acx_csma_background_image4
|
|
|
|
|
608 |
if(ISSET($_POST['acx_csma_logo_choice4']))
|
609 |
{
|
610 |
-
$acx_csma_logo_choice4
|
|
|
611 |
}
|
612 |
else{
|
613 |
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['4'])){
|
@@ -616,28 +442,52 @@ if(is_serialized($acx_csma_appearence_array))
|
|
616 |
$acx_csma_logo_choice4='image';
|
617 |
}
|
618 |
}
|
619 |
-
$acx_csma_logo4
|
|
|
|
|
620 |
$acx_csma_logo_text4=$_POST['acx_csma_logo_text4'];
|
621 |
-
$acx_csma_logo_text_color4
|
622 |
-
$
|
623 |
-
|
624 |
-
$
|
625 |
-
$
|
626 |
-
|
627 |
-
$
|
628 |
-
$
|
629 |
-
$
|
630 |
-
$
|
631 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
632 |
$acx_csma_fb_link4=esc_url_raw($_POST['acx_csma_fb_link4']);
|
633 |
$acx_csma_twitter_link4=esc_url_raw($_POST['acx_csma_twitter_link4']);
|
634 |
$acx_csma_linkedin_link4=esc_url_raw($_POST['acx_csma_linkedin_link4']);
|
635 |
-
$acx_csma_custom_css_temp4
|
|
|
636 |
//********************************template5*********************************
|
637 |
-
$acx_csma_bgcolor5
|
|
|
638 |
if(ISSET($_POST['acx_csma_logo_choice5']))
|
639 |
{
|
640 |
-
$acx_csma_logo_choice5
|
|
|
641 |
}
|
642 |
else{
|
643 |
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['5'])){
|
@@ -646,55 +496,92 @@ if(is_serialized($acx_csma_appearence_array))
|
|
646 |
$acx_csma_logo_choice5='image';
|
647 |
}
|
648 |
}
|
649 |
-
$acx_csma_logo5
|
650 |
-
$
|
651 |
-
|
652 |
-
$
|
653 |
-
$
|
654 |
-
$
|
655 |
-
$
|
656 |
-
|
657 |
-
$
|
658 |
-
$
|
659 |
-
|
660 |
-
$
|
661 |
-
$
|
662 |
-
$
|
663 |
-
$
|
664 |
-
|
665 |
-
$
|
666 |
-
$
|
667 |
-
|
668 |
-
$
|
669 |
-
|
670 |
-
$
|
671 |
-
$
|
672 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
673 |
$acx_csma_fb_link5=esc_url_raw($_POST['acx_csma_fb_link5']);
|
674 |
$acx_csma_twitter_link5=esc_url_raw($_POST['acx_csma_twitter_link5']);
|
675 |
$acx_csma_linkedin_link5=esc_url_raw($_POST['acx_csma_linkedin_link5']);
|
676 |
-
$acx_csma_custom_css_temp5
|
677 |
-
|
678 |
|
679 |
$acx_csma_template=$_POST['acx_csma_template'];
|
680 |
if($acx_csma_template==""){$acx_csma_template=1;}
|
681 |
update_option('acx_csma_template',$acx_csma_template);
|
|
|
|
|
|
|
|
|
682 |
$acx_csma_auto_launch=$_POST['acx_csma_auto_launch'];
|
683 |
if($acx_csma_auto_launch==""){$acx_csma_auto_launch = 0;}
|
684 |
update_option('acx_csma_auto_launch',$acx_csma_auto_launch);
|
685 |
if($acx_csma_template == 0)
|
686 |
{
|
687 |
-
$acx_csma_custom_html_val =
|
688 |
-
|
689 |
update_option('acx_csma_custom_html_val',$acx_csma_custom_html_val);
|
690 |
}
|
691 |
else if($acx_csma_template==1)
|
692 |
{
|
693 |
-
$acx_csma_appearence_array=
|
694 |
-
if(is_serialized($acx_csma_appearence_array ))
|
695 |
-
{
|
696 |
-
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
697 |
-
}
|
698 |
if (isset($acx_csma_appearence_array[$acx_csma_template]))
|
699 |
{
|
700 |
$acx_csma_appearence_array[$acx_csma_template] =
|
@@ -711,6 +598,7 @@ if(is_serialized($acx_csma_appearence_array))
|
|
711 |
'acx_csma_custom_html_top_temp1'=>$acx_csma_custom_html_top_temp1,
|
712 |
'acx_csma_inside_bg_color1'=>$acx_csma_inside_bg_color1,
|
713 |
'acx_csma_inside_title1'=>$acx_csma_inside_title1,
|
|
|
714 |
'acx_csma_inside_title_color1'=>$acx_csma_inside_title_color1,
|
715 |
'acx_csma_custom_html_bottom_temp1'=>$acx_csma_custom_html_bottom_temp1,
|
716 |
'acx_csma_show_timer1'=>$acx_csma_show_timer1,
|
@@ -736,19 +624,11 @@ if(is_serialized($acx_csma_appearence_array))
|
|
736 |
'acx_csma_custom_css_temp1'=>$acx_csma_custom_css_temp1
|
737 |
);
|
738 |
}
|
739 |
-
|
740 |
-
{
|
741 |
-
$acx_csma_appearence_array = serialize($acx_csma_appearence_array);
|
742 |
-
}
|
743 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
744 |
}
|
745 |
else if($acx_csma_template==2)
|
746 |
{
|
747 |
-
$acx_csma_appearence_array=
|
748 |
-
if(is_serialized($acx_csma_appearence_array ))
|
749 |
-
{
|
750 |
-
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
751 |
-
}
|
752 |
if (isset($acx_csma_appearence_array[$acx_csma_template]))
|
753 |
{
|
754 |
$acx_csma_appearence_array[$acx_csma_template] =
|
@@ -765,6 +645,9 @@ if(is_serialized($acx_csma_appearence_array))
|
|
765 |
'acx_csma_inside_bg_color2'=>$acx_csma_inside_bg_color2,
|
766 |
'acx_csma_custom_html_top_timer'=>$acx_csma_custom_html_top_timer,
|
767 |
'acx_csma_show_subscription2'=>$acx_csma_show_subscription2,
|
|
|
|
|
|
|
768 |
'acx_csma_timer_title2'=>$acx_csma_timer_title2,
|
769 |
'acx_csma_subscribe_btn_color2'=>$acx_csma_subscribe_btn_color2,
|
770 |
'acx_csma_subscribe_success2'=>$acx_csma_subscribe_success2,
|
@@ -782,19 +665,11 @@ if(is_serialized($acx_csma_appearence_array))
|
|
782 |
'acx_csma_custom_css_temp2'=>$acx_csma_custom_css_temp2
|
783 |
);
|
784 |
}
|
785 |
-
|
786 |
-
{
|
787 |
-
$acx_csma_appearence_array = serialize($acx_csma_appearence_array);
|
788 |
-
}
|
789 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
790 |
}
|
791 |
else if($acx_csma_template==3)
|
792 |
{
|
793 |
-
$acx_csma_appearence_array=
|
794 |
-
if(is_serialized($acx_csma_appearence_array ))
|
795 |
-
{
|
796 |
-
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
797 |
-
}
|
798 |
if (isset($acx_csma_appearence_array[$acx_csma_template]))
|
799 |
{
|
800 |
$acx_csma_appearence_array[$acx_csma_template] =
|
@@ -842,19 +717,11 @@ if(is_serialized($acx_csma_appearence_array))
|
|
842 |
'acx_csma_custom_css_temp3'=>$acx_csma_custom_css_temp3
|
843 |
);
|
844 |
}
|
845 |
-
|
846 |
-
{
|
847 |
-
$acx_csma_appearence_array = serialize($acx_csma_appearence_array);
|
848 |
-
}
|
849 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
850 |
}
|
851 |
else if($acx_csma_template==4)
|
852 |
{
|
853 |
-
$acx_csma_appearence_array=
|
854 |
-
if(is_serialized($acx_csma_appearence_array ))
|
855 |
-
{
|
856 |
-
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
857 |
-
}
|
858 |
if (isset($acx_csma_appearence_array[$acx_csma_template]))
|
859 |
{
|
860 |
$acx_csma_appearence_array[$acx_csma_template] =
|
@@ -880,19 +747,11 @@ if(is_serialized($acx_csma_appearence_array))
|
|
880 |
'acx_csma_custom_css_temp4'=>$acx_csma_custom_css_temp4
|
881 |
);
|
882 |
}
|
883 |
-
|
884 |
-
{
|
885 |
-
$acx_csma_appearence_array = serialize($acx_csma_appearence_array);
|
886 |
-
}
|
887 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
888 |
}
|
889 |
else if($acx_csma_template==5)
|
890 |
{
|
891 |
-
$acx_csma_appearence_array=
|
892 |
-
if(is_serialized($acx_csma_appearence_array ))
|
893 |
-
{
|
894 |
-
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
895 |
-
}
|
896 |
if (isset($acx_csma_appearence_array[$acx_csma_template]))
|
897 |
{
|
898 |
$acx_csma_appearence_array[$acx_csma_template]=
|
@@ -913,6 +772,7 @@ if(is_serialized($acx_csma_appearence_array))
|
|
913 |
'acx_csma_progress_bar_color5'=>$acx_csma_progress_bar_color5,
|
914 |
'acx_csma_custom_html_bottom_temp5'=>$acx_csma_custom_html_bottom_temp5,
|
915 |
'acx_csma_show_subscription5'=>$acx_csma_show_subscription5,
|
|
|
916 |
'acx_csma_custom_html_top_sub'=>$acx_csma_custom_html_top_sub,
|
917 |
'acx_csma_custom_html_bottom_sub'=>$acx_csma_custom_html_bottom_sub,
|
918 |
'acx_csma_subscribe_bg_color5'=>$acx_csma_subscribe_bg_color5,
|
@@ -927,11 +787,7 @@ if(is_serialized($acx_csma_appearence_array))
|
|
927 |
'acx_csma_custom_css_temp5'=>$acx_csma_custom_css_temp5
|
928 |
);
|
929 |
}
|
930 |
-
|
931 |
-
{
|
932 |
-
$acx_csma_appearence_array = serialize($acx_csma_appearence_array);
|
933 |
-
}
|
934 |
-
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
935 |
}
|
936 |
?>
|
937 |
<div class="updated"><p><strong><?php _e('Coming Soon/Maintenance From Acurax Settings Saved!.'); ?></strong></p></div>
|
@@ -1016,11 +872,7 @@ else
|
|
1016 |
update_option('acx_csma_restrict_role',$acx_csma_restrict_role);
|
1017 |
}
|
1018 |
|
1019 |
-
$acx_csma_appearence_array=
|
1020 |
-
if(is_serialized($acx_csma_appearence_array))
|
1021 |
-
{
|
1022 |
-
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
1023 |
-
}
|
1024 |
$acx_csma_template = get_option('acx_csma_template');
|
1025 |
if($acx_csma_template=="")
|
1026 |
{
|
@@ -1037,6 +889,7 @@ else
|
|
1037 |
{
|
1038 |
$acx_csma_custom_html_val = "<html><head><title>Page Under Maintenance</title></head><body>Sorry, This page is under maintenance.</body></html>";
|
1039 |
$acx_csma_custom_html_val = trim($acx_csma_custom_html_val);
|
|
|
1040 |
update_option('acx_csma_custom_html_val',$acx_csma_custom_html_val);
|
1041 |
}
|
1042 |
$acx_csma_auto_launch=get_option('acx_csma_auto_launch');
|
@@ -1125,10 +978,10 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1125 |
<td><?php _e("Google Analytics Tracking Code: " ); ?></td>
|
1126 |
<td><textarea id="acx_csma_ga_trakng_code" name="acx_csma_ga_trakng_code" placeholder="Google Analytics Tracking Code Here"><?php echo stripslashes($acx_csma_ga_trakng_code); ?></textarea></td>
|
1127 |
</tr>
|
1128 |
-
|
1129 |
-
<tr><td><b><?php echo "<h4>" . __( 'Access Settings', 'acx_csma_config' ) . "</h4>"; ?></b></td></tr>
|
1130 |
</table>
|
|
|
1131 |
<table>
|
|
|
1132 |
<tr><td><?php _e("Do not show maintenance page for the following IPs:"); ?></td></tr>
|
1133 |
<tr>
|
1134 |
<td><p><?php $acx_csma_ip_list=get_option('acx_csma_ip_list');if(is_serialized($acx_csma_ip_list)){$acx_csma_ip_list=unserialize($acx_csma_ip_list);}?>
|
@@ -1137,7 +990,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1137 |
{?>
|
1138 |
<option selected><?php echo $value; ?></option><?php }?>
|
1139 |
</select><br/><br/>
|
1140 |
-
|
|
|
1141 |
<input type="button" name="acx_csma_add_list" id="acx_csma_add_list" class="button" value="add" onclick="acx_csma_addNewItem(acx_csma_ip_list1,acx_csma_txt_ip);"/>
|
1142 |
<input type="button" name="acx_csma_del_list" id="acx_csma_del_list" class="button" value="delete" onClick="acx_csma_removeItem(acx_csma_ip_list1);"/></p>
|
1143 |
</td></tr>
|
@@ -1168,46 +1022,59 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1168 |
</table>
|
1169 |
<?php acx_csma_hook_function('acx_csma_hook_mainoptions_below_general_settings'); ?>
|
1170 |
</div><!--acx_csma_tab_block_1-->
|
|
|
|
|
|
|
|
|
1171 |
<div id="acx_csma_tab_block_2" class="acx_csma_tab_block acx_csma_appearence" style="display:none;">
|
1172 |
<h3>Choose Your Template</h3>
|
1173 |
<div id="main">
|
1174 |
-
<?php $acx_csma_template = get_option('acx_csma_template');
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
<
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1200 |
<?php acx_csma_hook_function('acx_csma_hook_mainoptions_below_add_template'); ?>
|
1201 |
</div> <!-- main -->
|
1202 |
|
1203 |
|
1204 |
|
1205 |
<?php
|
1206 |
-
$acx_csma_appearence_array=
|
1207 |
-
if(is_serialized($acx_csma_appearence_array))
|
1208 |
-
{
|
1209 |
-
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
1210 |
-
}
|
1211 |
?>
|
1212 |
<div id="acx_csma_template_1" style="display:none;" class="acx_csma_template_option_holder">
|
1213 |
<div id="acx_csma_1_p_q_and_a_h_main_holder">
|
@@ -1234,7 +1101,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1234 |
|
1235 |
<img id="custom_uploader_template_1_img_field_preview" src="<?php echo $bg_image1_url; ?>" style="width:100px;height:auto;">
|
1236 |
<input type="hidden" id="custom_uploader_template_1_img_field" name="acx_csma_background_image1" value="<?php echo $acx_csma_background_image1_id; ?>" size="20">
|
1237 |
-
|
1238 |
<a id="acx_upload_button_img1" class="button">Choose Image</a>
|
1239 |
<a id="acx_upload_button_reset_img1" onclick="acx_csma_restore_default('custom_uploader_template_1_img_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/1/images/body_bg.jpg'; ?>','custom_uploader_template_1_img_field');" class="button">Reset To Default</a>
|
1240 |
</div> <!-- acx_qa_field -->
|
@@ -1275,7 +1142,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1275 |
</label>
|
1276 |
<div class="acx_qa_field">
|
1277 |
<img id="custom_uploader_template_1_logo_field_preview" src="<?php echo $logo1_url; ?>" style="width:100px;height:auto;">
|
1278 |
-
<input type="hidden" id="custom_uploader_template_1_logo_field" name="acx_csma_logo1" value="<?php echo $acx_csma_logo1_id; ?>" size="20"><a id="acx_upload_button_logo1" class="button">Pick a Logo</a>
|
1279 |
<a id="acx_upload_button_reset_logo1" onclick="acx_csma_restore_default('custom_uploader_template_1_logo_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/1/images/logo.png'; ?>','custom_uploader_template_1_logo_field');" class="button">Reset To Default</a>
|
1280 |
</div> <!-- acx_qa_field -->
|
1281 |
</div> <!-- acx_show_logo_image-->
|
@@ -1291,7 +1158,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1291 |
}}else{
|
1292 |
$acx_csma_logo_text1=get_bloginfo('name');
|
1293 |
}?>
|
1294 |
-
<input type="text" name="acx_csma_logo_text1" placeholder="Logo Text Here" value="<?php echo $acx_csma_logo_text1; ?>" size="20"/>
|
1295 |
</div> <!-- acx_qa_field -->
|
1296 |
<label>
|
1297 |
Logo Text Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_logo_text_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -1322,7 +1189,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1322 |
Title Text:
|
1323 |
</label>
|
1324 |
<div class="acx_qa_field">
|
1325 |
-
|
|
|
1326 |
</div> <!-- acx_qa_field -->
|
1327 |
<label>
|
1328 |
Title Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_title_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -1335,7 +1203,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1335 |
Subtitle Text:
|
1336 |
</label>
|
1337 |
<div class="acx_qa_field">
|
1338 |
-
|
|
|
1339 |
</div> <!-- acx_qa_field -->
|
1340 |
<label>
|
1341 |
Subtitle Color:<a onclick="acx_csma_restore_default('','#fffaa9','acx_csma_subtitle_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -1363,7 +1232,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1363 |
</label>
|
1364 |
<div class="acx_qa_field">
|
1365 |
<?php $acx_csma_custom_html_top_temp1 = $acx_csma_appearence_array['1']['acx_csma_custom_html_top_temp1']; ?>
|
1366 |
-
<textarea id="acx_csma_custom_html_top_temp1" name="acx_csma_custom_html_top_temp1" placeholder="HTML Code Here"><?php echo
|
1367 |
</div><!-- acx_qa_field -->
|
1368 |
<div class="f_w"></div>
|
1369 |
<label>
|
@@ -1377,9 +1246,18 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1377 |
Title:
|
1378 |
</label>
|
1379 |
<div class="acx_qa_field">
|
1380 |
-
|
|
|
1381 |
</div> <!-- acx_qa_field -->
|
1382 |
<label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1383 |
Title Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_inside_title_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
1384 |
</label>
|
1385 |
<div class="acx_qa_field">
|
@@ -1391,7 +1269,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1391 |
</label>
|
1392 |
<div class="acx_qa_field">
|
1393 |
<?php $acx_csma_custom_html_bottom_temp1 =$acx_csma_appearence_array['1']['acx_csma_custom_html_bottom_temp1']; ?>
|
1394 |
-
<textarea id="acx_csma_custom_html_bottom_temp1" name="acx_csma_custom_html_bottom_temp1" placeholder="HTML Code Here"><?php echo
|
1395 |
|
1396 |
</div><!-- acx_qa_field -->
|
1397 |
</div> <!-- acx_csmap_q_and_a_inside -->
|
@@ -1470,7 +1348,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1470 |
</label>
|
1471 |
<div class="acx_qa_field">
|
1472 |
<?php $acx_csma_custom_html_top_sub1 = $acx_csma_appearence_array['1']['acx_csma_custom_html_top_sub1']; ?>
|
1473 |
-
<textarea id="acx_csma_custom_html_top_sub1" name="acx_csma_custom_html_top_sub1" placeholder="HTML Code Here"><?php echo
|
1474 |
</div><!-- acx_qa_field -->
|
1475 |
<div class="f_w"></div>
|
1476 |
|
@@ -1478,8 +1356,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1478 |
Custom HTML Block Below Subscription form
|
1479 |
</label>
|
1480 |
<div class="acx_qa_field">
|
1481 |
-
<?php $acx_csma_custom_html_bottom_sub1
|
1482 |
-
<textarea id="acx_csma_custom_html_bottom_sub1" name="acx_csma_custom_html_bottom_sub1" placeholder="HTML Code Here"><?php echo
|
1483 |
</div><!-- acx_qa_field -->
|
1484 |
<div class="f_w"></div>
|
1485 |
<!-- **********************************************************************-->
|
@@ -1499,7 +1377,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1499 |
Button Text
|
1500 |
</label>
|
1501 |
<div class="acx_qa_field">
|
1502 |
-
|
|
|
1503 |
</div> <!-- acx_qa_field -->
|
1504 |
|
1505 |
<label>
|
@@ -1534,7 +1413,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1534 |
Subscribe Title:
|
1535 |
</label>
|
1536 |
<div class="acx_qa_field">
|
1537 |
-
|
|
|
1538 |
</div> <!-- acx_qa_field -->
|
1539 |
<label>
|
1540 |
Subscribe Title Color:<a onclick="acx_csma_restore_default('','#ff7800','acx_csma_subscribe_title_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -1547,13 +1427,15 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1547 |
Subscribe Success Message:
|
1548 |
</label>
|
1549 |
<div class="acx_qa_field">
|
1550 |
-
|
|
|
1551 |
</div> <!-- acx_qa_field -->
|
1552 |
<label>
|
1553 |
Subscribe Invalid Message:
|
1554 |
</label>
|
1555 |
<div class="acx_qa_field">
|
1556 |
-
|
|
|
1557 |
</div> <!-- acx_qa_field -->
|
1558 |
|
1559 |
</div> <!-- acx_csmap_q_and_a_inside -->
|
@@ -1582,7 +1464,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1582 |
Footer Text:
|
1583 |
</label>
|
1584 |
<div class="acx_qa_field">
|
1585 |
-
|
|
|
1586 |
</div> <!-- acx_qa_field -->
|
1587 |
<label>
|
1588 |
Footer Text Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_footer_text_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -1685,7 +1568,9 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1685 |
|
1686 |
?>
|
1687 |
<img id="custom_uploader_template_2_logo_field_preview" src="<?php echo $logo2_url; ?>" style="width:100px;height:auto;">
|
1688 |
-
<input type="hidden" id="custom_uploader_template_2_logo_field" name="acx_csma_logo2" value="<?php echo $acx_csma_logo2_id; ?>" size="20"
|
|
|
|
|
1689 |
<a id="acx_upload_button_logo2" onclick="acx_csma_restore_default('custom_uploader_template_2_logo_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/2/images/logo.png'; ?>','custom_uploader_template_2_logo_field');" class="button">Reset To Default</a>
|
1690 |
</div> <!-- acx_qa_field -->
|
1691 |
</div><!--acx_show_logo_image-->
|
@@ -1701,7 +1586,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1701 |
}}else{
|
1702 |
$acx_csma_logo_text2=get_bloginfo('name');
|
1703 |
}?>
|
1704 |
-
<input type="text" name="acx_csma_logo_text2" placeholder="Logo Text Here" value="<?php echo
|
1705 |
</div> <!-- acx_qa_field -->
|
1706 |
<label>
|
1707 |
Logo Text Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_logo_text_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -1734,7 +1619,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1734 |
Title Text :
|
1735 |
</label>
|
1736 |
<div class="acx_qa_field">
|
1737 |
-
|
|
|
1738 |
</div> <!-- acx_qa_field -->
|
1739 |
<label>
|
1740 |
Title Color:
|
@@ -1749,7 +1635,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1749 |
Subtitle Text:
|
1750 |
</label>
|
1751 |
<div class="acx_qa_field">
|
1752 |
-
|
|
|
1753 |
</div> <!-- acx_qa_field -->
|
1754 |
<label>
|
1755 |
Subtitle Color:
|
@@ -1779,19 +1666,37 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1779 |
<span class="acx_csma_toggle acx_csma_toggle_<?php echo $acx_csmap_qa_id; ?> plus" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);"></span>
|
1780 |
<div id="acx_csmap_q_and_a" class="acx_csmap_q_and_a_common acx_csmap_q_and_a_<?php echo $acx_csmap_qa_id; ?>" style="display:none;">
|
1781 |
<div class="acx_csmap_q_and_a_inside">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1782 |
<label>
|
1783 |
Custom HTML Block below Timer
|
1784 |
</label>
|
1785 |
<div class="acx_qa_field">
|
1786 |
<?php $acx_csma_custom_html_top_timer =$acx_csma_appearence_array['2']['acx_csma_custom_html_top_timer']; ?>
|
1787 |
-
<textarea id="acx_csma_custom_html_top_timer" name="acx_csma_custom_html_top_timer" placeholder="HTML Code Here"><?php echo
|
1788 |
</div><!-- acx_qa_field -->
|
1789 |
<div class="f_w"></div>
|
1790 |
<label>
|
1791 |
Timer Block Title
|
1792 |
</label>
|
1793 |
<div class="acx_qa_field">
|
1794 |
-
|
|
|
1795 |
</div> <!-- acx_qa_field -->
|
1796 |
<label>
|
1797 |
Would you like to show Subscription form?
|
@@ -1802,6 +1707,13 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1802 |
<option value="0" <?php if ($acx_csma_appearence_array['2']['acx_csma_show_subscription2'] == "0") { echo 'selected="selected"'; } ?>>No</option>
|
1803 |
</select>
|
1804 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1805 |
<label>Subscribe Button TextColor:<a onclick="acx_csma_restore_default('','#ffd800','acx_csma_subscribe_btn_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
1806 |
</label>
|
1807 |
<div class="acx_qa_field">
|
@@ -1812,13 +1724,15 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1812 |
Subscribe Success Message:
|
1813 |
</label>
|
1814 |
<div class="acx_qa_field">
|
1815 |
-
|
|
|
1816 |
</div> <!-- acx_qa_field -->
|
1817 |
<label>
|
1818 |
Subscribe Invalid Message:
|
1819 |
</label>
|
1820 |
<div class="acx_qa_field">
|
1821 |
-
|
|
|
1822 |
</div> <!-- acx_qa_field -->
|
1823 |
|
1824 |
<label>
|
@@ -1847,20 +1761,22 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1847 |
</label>
|
1848 |
<div class="acx_qa_field">
|
1849 |
<?php $acx_csma_custom_html_top_temp2 =$acx_csma_appearence_array['2']['acx_csma_custom_html_top_temp2']; ?>
|
1850 |
-
<textarea id="acx_csma_custom_html_top_temp2" name="acx_csma_custom_html_top_temp2" placeholder="HTML Code Here"><?php echo
|
1851 |
</div><!-- acx_qa_field -->
|
1852 |
<div class="f_w"></div>
|
1853 |
<label>
|
1854 |
Description Title:
|
1855 |
</label>
|
1856 |
<div class="acx_qa_field">
|
1857 |
-
|
|
|
1858 |
</div> <!-- acx_qa_field -->
|
1859 |
<label>
|
1860 |
Description Content:
|
1861 |
</label>
|
1862 |
<div class="acx_qa_field">
|
1863 |
-
|
|
|
1864 |
</div> <!-- acx_qa_field -->
|
1865 |
<div class="f_w"></div>
|
1866 |
<label>
|
@@ -1968,7 +1884,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1968 |
?>
|
1969 |
|
1970 |
<img id="custom_uploader_template_3_logo_field_preview" src="<?php echo $logo3_url; ?>" style="width:100px;height:auto;">
|
1971 |
-
<input type="hidden" id="custom_uploader_template_3_logo_field" name="acx_csma_logo3" value="<?php echo $acx_csma_logo3_id; ?>" size="20"><a id="acx_upload_button_logo3" class="button">Pick a Logo</a>
|
1972 |
<a id="acx_upload_button_reset_img1" onclick="acx_csma_restore_default('custom_uploader_template_3_logo_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/3/images/logo.png'; ?>','custom_uploader_template_3_logo_field');" class="button">Reset To Default</a>
|
1973 |
|
1974 |
</div> <!-- acx_qa_field -->
|
@@ -1985,7 +1901,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1985 |
}}else{
|
1986 |
$acx_csma_logo_text3=get_bloginfo('name');
|
1987 |
}?>
|
1988 |
-
<input type="text" name="acx_csma_logo_text3" placeholder="Logo Text Here" value="<?php echo
|
1989 |
</div> <!-- acx_qa_field -->
|
1990 |
<label>
|
1991 |
Logo Text Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_logo_text_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -2073,7 +1989,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2073 |
Title:
|
2074 |
</label>
|
2075 |
<div class="acx_qa_field">
|
2076 |
-
|
|
|
2077 |
</div> <!-- acx_qa_field -->
|
2078 |
<label>
|
2079 |
Title Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -2086,7 +2003,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2086 |
Sub Title:
|
2087 |
</label>
|
2088 |
<div class="acx_qa_field">
|
2089 |
-
|
|
|
2090 |
</div> <!-- acx_qa_field -->
|
2091 |
<label>
|
2092 |
SubTitle Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_subtitle_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -2123,7 +2041,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2123 |
Title:
|
2124 |
</label>
|
2125 |
<div class="acx_qa_field">
|
2126 |
-
|
|
|
2127 |
</div> <!-- acx_qa_field -->
|
2128 |
<label>
|
2129 |
Title Color:<a onclick="acx_csma_restore_default('','#fe7e01','acx_csma_subscribe_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -2136,7 +2055,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2136 |
Button Text
|
2137 |
</label>
|
2138 |
<div class="acx_qa_field">
|
2139 |
-
|
|
|
2140 |
</div> <!-- acx_qa_field -->
|
2141 |
<label>
|
2142 |
Button Text Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_subscribe_btn_text_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -2170,13 +2090,15 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2170 |
Subscribe Success Message:
|
2171 |
</label>
|
2172 |
<div class="acx_qa_field">
|
2173 |
-
|
|
|
2174 |
</div> <!-- acx_qa_field -->
|
2175 |
<label>
|
2176 |
Subscribe Invalid Message:
|
2177 |
</label>
|
2178 |
<div class="acx_qa_field">
|
2179 |
-
|
|
|
2180 |
</div> <!-- acx_qa_field -->
|
2181 |
</div> <!-- acx_csmap_q_and_a_inside -->
|
2182 |
</div> <!-- acx_csmap_q_and_a -->
|
@@ -2196,7 +2118,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2196 |
Title:
|
2197 |
</label>
|
2198 |
<div class="acx_qa_field">
|
2199 |
-
|
|
|
2200 |
</div> <!-- acx_qa_field -->
|
2201 |
<label>
|
2202 |
Title Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_inside_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -2235,7 +2158,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2235 |
</label>
|
2236 |
<div class="acx_qa_field">
|
2237 |
<?php $acx_csma_custom_html_top_timer_temp3 = $acx_csma_appearence_array['3']['acx_csma_custom_html_top_timer_temp3']; ?>
|
2238 |
-
<textarea id="acx_csma_custom_html_top_timer_temp3" name="acx_csma_custom_html_top_timer_temp3" placeholder="HTML Code Here"><?php echo
|
2239 |
</div><!-- acx_qa_field -->
|
2240 |
<div class="f_w"></div>
|
2241 |
|
@@ -2244,7 +2167,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2244 |
</label>
|
2245 |
<div class="acx_qa_field">
|
2246 |
<?php $acx_csma_custom_html_bottom_temp3 =$acx_csma_appearence_array['3']['acx_csma_custom_html_bottom_temp3']; ?>
|
2247 |
-
<textarea id="acx_csma_custom_html_bottom_temp3" name="acx_csma_custom_html_bottom_temp3" placeholder="HTML Code Here"><?php echo
|
2248 |
</div><!-- acx_qa_field -->
|
2249 |
<div class="f_w"></div>
|
2250 |
|
@@ -2267,20 +2190,22 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2267 |
</label>
|
2268 |
<div class="acx_qa_field">
|
2269 |
<?php $acx_csma_custom_html_top_temp3 =$acx_csma_appearence_array['3']['acx_csma_custom_html_top_temp3']; ?>
|
2270 |
-
<textarea id="acx_csma_custom_html_top_temp3" name="acx_csma_custom_html_top_temp3" placeholder="HTML Code Here"><?php echo
|
2271 |
</div><!-- acx_qa_field -->
|
2272 |
<div class="f_w"></div>
|
2273 |
<label>
|
2274 |
Description Title:
|
2275 |
</label>
|
2276 |
<div class="acx_qa_field">
|
2277 |
-
|
|
|
2278 |
</div> <!-- acx_qa_field -->
|
2279 |
<label>
|
2280 |
Description Sub Title:
|
2281 |
</label>
|
2282 |
<div class="acx_qa_field">
|
2283 |
-
|
|
|
2284 |
</div> <!-- acx_qa_field -->
|
2285 |
<div class="f_w"></div>
|
2286 |
<label>
|
@@ -2307,7 +2232,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2307 |
Footer Text:
|
2308 |
</label>
|
2309 |
<div class="acx_qa_field">
|
2310 |
-
|
|
|
2311 |
</div> <!-- acx_qa_field -->
|
2312 |
<label>
|
2313 |
Footer Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_footer_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -2335,7 +2261,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2335 |
Social Media Text:
|
2336 |
</label>
|
2337 |
<div class="acx_qa_field">
|
2338 |
-
|
|
|
2339 |
</div> <!-- acx_qa_field -->
|
2340 |
<label>
|
2341 |
Social Media Text Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_social_link_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -2421,6 +2348,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2421 |
?>
|
2422 |
<img id="custom_uploader_template_4_img_field_preview" src="<?php echo $bg4_url; ?>" style="width:100px;height:auto;">
|
2423 |
<input type="hidden" id="custom_uploader_template_4_img_field" name="acx_csma_background_image4" value="<?php echo $acx_csma_bg4_id; ?>" size="20">
|
|
|
2424 |
<a id="acx_upload_button_img4" class="button">Choose Image</a>
|
2425 |
<a id="acx_upload_button_reset_img1" onclick="acx_csma_restore_default('custom_uploader_template_4_img_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/4/images/body_bg.jpg'; ?>','custom_uploader_template_4_img_field');" class="button">Reset To Default</a>
|
2426 |
</div> <!-- acx_qa_field -->
|
@@ -2461,7 +2389,9 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2461 |
?>
|
2462 |
|
2463 |
<img id="custom_uploader_template_4_logo_field_preview" src="<?php echo $logo4_url; ?>" style="width:100px;height:auto;">
|
2464 |
-
<input type="hidden" id="custom_uploader_template_4_logo_field" name="acx_csma_logo4" value="<?php echo $acx_csma_logo4_id; ?>" size="20"
|
|
|
|
|
2465 |
<a id="acx_upload_button_reset_img1" onclick="acx_csma_restore_default('custom_uploader_template_4_logo_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/4/images/logo.png'; ?>','custom_uploader_template_4_logo_field');" class="button">Reset To Default</a>
|
2466 |
</div> <!-- acx_qa_field -->
|
2467 |
</div><!--acx_show_logo_image-->
|
@@ -2478,7 +2408,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2478 |
else{
|
2479 |
$acx_csma_logo_text4=get_bloginfo('name');
|
2480 |
}?>
|
2481 |
-
<input type="text" name="acx_csma_logo_text4" placeholder="Logo Text Here" value="<?php echo
|
2482 |
</div> <!-- acx_qa_field -->
|
2483 |
<label>
|
2484 |
Logo Text Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_logo_text_color4');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -2519,14 +2449,15 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2519 |
Title Text:
|
2520 |
</label>
|
2521 |
<div class="acx_qa_field">
|
2522 |
-
|
|
|
2523 |
</div> <!-- acx_qa_field -->
|
2524 |
<label>
|
2525 |
Custom HTML Block Above Countdown Timer
|
2526 |
</label>
|
2527 |
<div class="acx_qa_field">
|
2528 |
<?php $acx_csma_custom_html_top_temp4 =$acx_csma_appearence_array['4']['acx_csma_custom_html_top_temp4']; ?>
|
2529 |
-
<textarea id="acx_csma_custom_html_top_temp4" name="acx_csma_custom_html_top_temp4" placeholder="HTML Code Here"><?php echo
|
2530 |
</div><!-- acx_qa_field -->
|
2531 |
<div class="f_w"></div>
|
2532 |
<label>
|
@@ -2595,7 +2526,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2595 |
</label>
|
2596 |
<div class="acx_qa_field">
|
2597 |
<?php $acx_csma_custom_html_bottom_temp4 =$acx_csma_appearence_array['4']['acx_csma_custom_html_bottom_temp4']; ?>
|
2598 |
-
<textarea id="acx_csma_custom_html_bottom_temp4" name="acx_csma_custom_html_bottom_temp4" placeholder="HTML Code Here"><?php echo
|
2599 |
</div><!-- acx_qa_field -->
|
2600 |
</div> <!-- acx_csmap_q_and_a_inside -->
|
2601 |
</div> <!-- acx_csmap_q_and_a -->
|
@@ -2713,7 +2644,9 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2713 |
|
2714 |
?>
|
2715 |
<img id="custom_uploader_template_5_logo_field_preview" src="<?php echo $logo5_url; ?>" style="width:100px;height:auto;">
|
2716 |
-
<input type="hidden" id="custom_uploader_template_5_logo_field" name="acx_csma_logo5" value="<?php echo $acx_csma_logo5_id ; ?>" size="20"
|
|
|
|
|
2717 |
<a id="acx_upload_button_reset_img1" onclick="acx_csma_restore_default('custom_uploader_template_5_logo_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/5/images/logo.png'; ?>','custom_uploader_template_5_logo_field');" class="button">Reset To Default</a>
|
2718 |
</div> <!-- acx_qa_field -->
|
2719 |
</div> <!-- acx_show_logo_image -->
|
@@ -2729,7 +2662,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2729 |
}}else{
|
2730 |
$acx_csma_logo_text5=get_bloginfo('name');
|
2731 |
}?>
|
2732 |
-
<input type="text" name="acx_csma_logo_text5" placeholder="Logo Text Here" value="<?php echo
|
2733 |
</div> <!-- acx_qa_field -->
|
2734 |
<label>
|
2735 |
Logo Text Color: <a onclick="acx_csma_restore_default('','#000000','acx_csma_logo_text_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -2781,14 +2714,15 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2781 |
Title Text:
|
2782 |
</label>
|
2783 |
<div class="acx_qa_field">
|
2784 |
-
|
|
|
2785 |
</div> <!-- acx_qa_field -->
|
2786 |
<label>
|
2787 |
Custom HTML Block Above Countdown Timer
|
2788 |
</label>
|
2789 |
<div class="acx_qa_field">
|
2790 |
<?php $acx_csma_custom_html_top_temp5 =$acx_csma_appearence_array['5']['acx_csma_custom_html_top_temp5']; ?>
|
2791 |
-
<textarea id="acx_csma_custom_html_top_temp5" name="acx_csma_custom_html_top_temp5" placeholder="HTML Code Here"><?php echo
|
2792 |
</div><!-- acx_qa_field -->
|
2793 |
<div class="f_w"></div>
|
2794 |
<label>
|
@@ -2855,7 +2789,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2855 |
</label>
|
2856 |
<div class="acx_qa_field">
|
2857 |
<?php $acx_csma_custom_html_bottom_temp5 =$acx_csma_appearence_array['5']['acx_csma_custom_html_bottom_temp5']; ?>
|
2858 |
-
<textarea id="acx_csma_custom_html_bottom_temp5" name="acx_csma_custom_html_bottom_temp5" placeholder="HTML Code Here"><?php echo
|
2859 |
</div><!-- acx_qa_field -->
|
2860 |
</div><!-- acx_csmap_q_and_a_inside -->
|
2861 |
</div> <!-- acx_csmap_q_and_a -->
|
@@ -2879,12 +2813,13 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2879 |
<option value="0" <?php if ($acx_csma_appearence_array['5']['acx_csma_show_subscription5'] == "0") { echo 'selected="selected"'; } ?>>No</option>
|
2880 |
</select>
|
2881 |
</div>
|
|
|
2882 |
<label>
|
2883 |
Custom HTML Block Above Subscription form
|
2884 |
</label>
|
2885 |
<div class="acx_qa_field">
|
2886 |
<?php $acx_csma_custom_html_top_sub = $acx_csma_appearence_array['5']['acx_csma_custom_html_top_sub']; ?>
|
2887 |
-
<textarea id="acx_csma_custom_html_top_sub" name="acx_csma_custom_html_top_sub" placeholder="HTML Code Here"><?php echo
|
2888 |
</div><!-- acx_qa_field -->
|
2889 |
<div class="f_w"></div>
|
2890 |
|
@@ -2893,7 +2828,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2893 |
</label>
|
2894 |
<div class="acx_qa_field">
|
2895 |
<?php $acx_csma_custom_html_bottom_sub =$acx_csma_appearence_array['5']['acx_csma_custom_html_bottom_sub']; ?>
|
2896 |
-
<textarea id="acx_csma_custom_html_bottom_sub" name="acx_csma_custom_html_bottom_sub" placeholder="HTML Code Here"><?php echo
|
2897 |
</div><!-- acx_qa_field -->
|
2898 |
<div class="f_w"></div>
|
2899 |
<label>
|
@@ -2907,7 +2842,8 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2907 |
Launch Title:
|
2908 |
</label>
|
2909 |
<div class="acx_qa_field">
|
2910 |
-
|
|
|
2911 |
</div> <!-- acx_qa_field -->
|
2912 |
<label>
|
2913 |
Launch Title Text Color:<a onclick="acx_csma_restore_default('','#4b4b4b','acx_csma_launch_title_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
@@ -2920,19 +2856,29 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
2920 |
Title:
|
2921 |
</label>
|
2922 |
<div class="acx_qa_field">
|
2923 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2924 |
</div> <!-- acx_qa_field -->
|
2925 |
<label>
|
2926 |
Subscribe Success Message:
|
2927 |
</label>
|
2928 |
<div class="acx_qa_field">
|
2929 |
-
|
|
|
2930 |
</div> <!-- acx_qa_field -->
|
2931 |
<label>
|
2932 |
Subscribe Invalid Message:
|
2933 |
</label>
|
2934 |
<div class="acx_qa_field">
|
2935 |
-
|
|
|
2936 |
</div> <!-- acx_qa_field -->
|
2937 |
</div><!-- acx_csmap_q_and_a_inside -->
|
2938 |
</div> <!-- acx_csmap_q_and_a -->
|
@@ -3002,7 +2948,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
3002 |
Custom HTML content
|
3003 |
</label></td>
|
3004 |
<td><?php $acx_csma_custom_html_val = get_option('acx_csma_custom_html_val'); ?>
|
3005 |
-
<textarea id="acx_csma_custom_html" name="acx_csma_custom_html_val" style="max-width: 80%; width: 500px; height: 180px;"><?php echo
|
3006 |
</td>
|
3007 |
</tr>
|
3008 |
</table>
|
@@ -3023,15 +2969,31 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
3023 |
|
3024 |
</div> </div><!-- class wrap-->
|
3025 |
<?php
|
|
|
3026 |
if($acx_csma_template == "") { $acx_csma_template = "1"; }
|
|
|
|
|
|
|
|
|
|
|
3027 |
if($acx_csma_template != "")
|
3028 |
{
|
|
|
3029 |
?>
|
3030 |
<script type="text/javascript">
|
3031 |
jQuery(document).ready(function()
|
3032 |
{
|
3033 |
acx_csma_rdbtn_show_div('<?php echo $acx_csma_template; ?>');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3034 |
|
|
|
3035 |
});
|
3036 |
</script>
|
3037 |
<?php
|
@@ -3186,7 +3148,7 @@ function acx_csmap_easy_qa_toggle(id)
|
|
3186 |
}
|
3187 |
function acx_csma_restore_default(img_id,default_value,text_id,set_bg)
|
3188 |
{
|
3189 |
-
|
3190 |
if(set_bg!="")
|
3191 |
{
|
3192 |
var text_id_j="#"+text_id;
|
@@ -3203,7 +3165,7 @@ jQuery(document).ready(function()
|
|
3203 |
{
|
3204 |
var acx_csma_cookie = getCookie("acx_csma_cookie");
|
3205 |
acx_csma_show_div(acx_csma_cookie);
|
3206 |
-
var acx_csma_temp_cookie = getCookie("acx_csma_temp_cookie");
|
3207 |
acx_csma_rdbtn_show_div(acx_csma_temp_cookie);
|
3208 |
<?php
|
3209 |
foreach($acx_csma_appearence_array as $key =>$value)
|
@@ -3211,9 +3173,15 @@ jQuery(document).ready(function()
|
|
3211 |
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array[$key]))
|
3212 |
{
|
3213 |
$acx_csma_logo_choice = $value['acx_csma_logo_choice'];
|
3214 |
-
if($acx_csma_logo_choice == "")
|
|
|
|
|
|
|
|
|
|
|
|
|
3215 |
$acx_csma_logo_choice = "image";
|
3216 |
-
|
3217 |
acx_csma_rdbtn_show_logo('<?php echo $acx_csma_logo_choice; ?>','<?php echo $key; ?>');
|
3218 |
<?php } ?>
|
3219 |
});
|
@@ -3226,6 +3194,7 @@ acx_csmap_easy_qa_toggle(<?php echo $i; ?>);
|
|
3226 |
<?php if($acx_csmap_open_all_boxes_default == "yes")
|
3227 |
{ ?>
|
3228 |
acx_csmap_easy_qa_expandall();
|
3229 |
-
<?php }?>
|
3230 |
-
|
3231 |
-
</script>
|
|
30 |
}
|
31 |
</script>
|
32 |
<?php
|
33 |
+
acx_csma_hook_function('acx_csma_hook_bove_if_post');
|
34 |
+
global $acx_csmap_qa_id;
|
35 |
$acx_csmap_qa_id = 0;
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
if(ISSET($_POST['acx_csma_hidden']))
|
38 |
{
|
39 |
$acx_csma_hidden = $_POST['acx_csma_hidden'];
|
104 |
}
|
105 |
|
106 |
//************************************************template 1 ********************************************
|
107 |
+
$acx_csma_appearence_array=acx_csma_get_db_array_value();
|
108 |
|
109 |
+
$acx_csma_background_image1=$_POST['acx_csma_background_image1'];
|
110 |
+
$acx_csma_background_image1 = acx_csma_text_before_save_hook_fn('acx_csma_background_image1',$acx_csma_background_image1);
|
|
|
|
|
|
|
|
|
111 |
if($acx_csma_background_image1==""){$acx_csma_background_image1=$acx_csma_appearence_array['1']['acx_csma_background_image1'] ;}
|
112 |
if(ISSET($_POST['acx_csma_logo_choice1']))
|
113 |
{
|
114 |
+
$acx_csma_logo_choice1=$_POST['acx_csma_logo_choice1'];
|
115 |
+
$acx_csma_logo_choice1 = acx_csma_text_before_save_hook_fn('acx_csma_logo_choice1',$acx_csma_logo_choice1);
|
116 |
}
|
117 |
else{
|
118 |
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['1'])){
|
121 |
$acx_csma_logo_choice1='image';
|
122 |
}
|
123 |
}
|
124 |
+
$acx_csma_logo1=$_POST['acx_csma_logo1'];
|
125 |
+
$acx_csma_logo1 = acx_csma_text_before_save_hook_fn('acx_csma_logo1',$acx_csma_logo1);
|
126 |
+
if($acx_csma_logo1==""){$acx_csma_logo1=$acx_csma_appearence_array['1']['acx_csma_logo1'];}
|
127 |
+
$acx_csma_logo_text1=$_POST['acx_csma_logo_text1'];
|
128 |
+
$acx_csma_logo_text1 = acx_csma_text_before_save_hook_fn('acx_csma_logo_text1',$acx_csma_logo_text1);
|
129 |
+
$acx_csma_logo_text_color1=$_POST['acx_csma_logo_text_color1'];
|
130 |
+
$acx_csma_logo_text_color1 = acx_csma_text_before_save_hook_fn('acx_csma_logo_text_color1',$acx_csma_logo_text_color1);
|
131 |
+
if($acx_csma_logo_text_color1==""){$acx_csma_logo_text_color1=$acx_csma_appearence_array['1']['acx_csma_logo_text_color1'];}
|
132 |
+
$acx_csma_title1=$_POST['acx_csma_title1'];
|
133 |
+
$acx_csma_title1 = acx_csma_text_before_save_hook_fn('acx_csma_title1',$acx_csma_title1);
|
134 |
+
$acx_csma_title_color1=$_POST['acx_csma_title_color1'];
|
135 |
+
$acx_csma_title_color1 = acx_csma_text_before_save_hook_fn('acx_csma_title_color1',$acx_csma_title_color1);
|
136 |
+
|
137 |
+
if($acx_csma_title_color1==""){$acx_csma_title_color1=$acx_csma_appearence_array['1']['acx_csma_title_color1'];}
|
138 |
+
$acx_csma_subtitle_text1=$_POST['acx_csma_subtitle_text1'];
|
139 |
+
$acx_csma_subtitle_text1 = acx_csma_text_before_save_hook_fn('acx_csma_subtitle_text1',$acx_csma_subtitle_text1);
|
140 |
+
$acx_csma_subtitle_color1=$_POST['acx_csma_subtitle_color1'];
|
141 |
+
$acx_csma_subtitle_color1 = acx_csma_text_before_save_hook_fn('acx_csma_subtitle_color1',$acx_csma_subtitle_color1);
|
142 |
+
if($acx_csma_subtitle_color1==""){$acx_csma_subtitle_color1=$acx_csma_appearence_array['1']['acx_csma_subtitle_color1'];}
|
143 |
+
$acx_csma_custom_html_top_temp1=$_POST['acx_csma_custom_html_top_temp1'];
|
144 |
+
$acx_csma_custom_html_top_temp1 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_top_temp1', $acx_csma_custom_html_top_temp1);
|
145 |
+
$acx_csma_custom_html_bottom_temp1=$_POST['acx_csma_custom_html_bottom_temp1'];
|
146 |
+
$acx_csma_custom_html_bottom_temp1 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_bottom_temp1', $acx_csma_custom_html_bottom_temp1);
|
147 |
+
$acx_csma_inside_bg_color1=$_POST['acx_csma_inside_bg_color1'];
|
148 |
+
$acx_csma_inside_bg_color1 = acx_csma_text_before_save_hook_fn('acx_csma_inside_bg_color1',$acx_csma_inside_bg_color1);
|
149 |
+
if($acx_csma_inside_bg_color1==""){$acx_csma_inside_bg_color1=$acx_csma_appearence_array['1']['acx_csma_inside_bg_color1'];}
|
150 |
+
$acx_csma_inside_title1=$_POST['acx_csma_inside_title1'];
|
151 |
+
$acx_csma_inside_title1 = acx_csma_text_before_save_hook_fn('acx_csma_inside_title1',$acx_csma_inside_title1);
|
152 |
+
$acx_csma_custom_html_top_temp1_title = $_POST['acx_csma_custom_html_top_temp1_title'];
|
153 |
+
$acx_csma_custom_html_top_temp1_title = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_top_temp1_title', $acx_csma_custom_html_top_temp1_title);
|
154 |
+
|
155 |
+
$acx_csma_inside_title_color1=$_POST['acx_csma_inside_title_color1'];
|
156 |
+
$acx_csma_inside_title_color1 = acx_csma_text_before_save_hook_fn('acx_csma_inside_title_color1',$acx_csma_inside_title_color1);
|
157 |
+
if($acx_csma_inside_title_color1==""){ $acx_csma_inside_title_color1=$acx_csma_appearence_array['1']['acx_csma_inside_title_color1'];}
|
158 |
+
$acx_csma_show_timer1=$_POST['acx_csma_show_timer1'];
|
159 |
+
$acx_csma_show_timer1 = acx_csma_text_before_save_hook_fn('acx_csma_show_timer1',$acx_csma_show_timer1);
|
160 |
+
if($acx_csma_show_timer1==""){ $acx_csma_show_timer1=$acx_csma_appearence_array['1']['acx_csma_show_timer1'];}
|
161 |
+
$acx_csma_timer_bg_color1=sanitize_text_field($_POST['acx_csma_timer_bg_color1']);
|
162 |
+
$acx_csma_timer_bg_color1 = acx_csma_text_before_save_hook_fn('acx_csma_timer_bg_color1',$acx_csma_timer_bg_color1);
|
163 |
+
if($acx_csma_timer_bg_color1==""){ $acx_csma_timer_bg_color1=$acx_csma_appearence_array['1']['acx_csma_timer_bg_color1'];}
|
164 |
+
$acx_csma_timer_iptext_color1=sanitize_text_field($_POST['acx_csma_timer_iptext_color1']);
|
165 |
+
$acx_csma_timer_iptext_color1 = acx_csma_text_before_save_hook_fn('acx_csma_timer_iptext_color1',$acx_csma_timer_iptext_color1);
|
166 |
+
if($acx_csma_timer_iptext_color1==""){$acx_csma_timer_iptext_color1=$acx_csma_appearence_array['1']['acx_csma_timer_iptext_color1'];}
|
167 |
+
$acx_csma_timer_head_color1=sanitize_text_field($_POST['acx_csma_timer_head_color1']);
|
168 |
+
$acx_csma_timer_head_color1 = acx_csma_text_before_save_hook_fn('acx_csma_timer_head_color1',$acx_csma_timer_head_color1);
|
169 |
+
if($acx_csma_timer_head_color1==""){$acx_csma_timer_head_color1=$acx_csma_appearence_array['1']['acx_csma_timer_head_color1'];}
|
170 |
|
171 |
+
$acx_csma_show_subscription=sanitize_text_field($_POST['acx_csma_show_subscription']);
|
172 |
|
173 |
+
if($acx_csma_show_subscription==""){ $acx_csma_show_subscription=$acx_csma_appearence_array['1']['acx_csma_show_subscription'];}
|
|
|
174 |
|
175 |
+
$acx_csma_custom_html_top_sub1=$_POST['acx_csma_custom_html_top_sub1'];
|
176 |
+
$acx_csma_custom_html_top_sub1 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_top_sub1', $acx_csma_custom_html_top_sub1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
|
178 |
+
$acx_csma_custom_html_bottom_sub1=$_POST['acx_csma_custom_html_bottom_sub1'];
|
179 |
+
$acx_csma_custom_html_bottom_sub1 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_bottom_sub1', $acx_csma_custom_html_bottom_sub1);
|
180 |
+
$acx_csma_subscribe_bg_color1=$_POST['acx_csma_subscribe_bg_color1'];
|
181 |
+
$acx_csma_subscribe_bg_color1 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_bg_color1',$acx_csma_subscribe_bg_color1);
|
182 |
+
if($acx_csma_subscribe_bg_color1==""){$acx_csma_subscribe_bg_color1=$acx_csma_appearence_array['1']['acx_csma_subscribe_bg_color1'];}
|
183 |
+
$acx_csma_subscribe_btn_text1=$_POST['acx_csma_subscribe_btn_text1'];
|
184 |
+
$acx_csma_subscribe_btn_text1 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_btn_text1',$acx_csma_subscribe_btn_text1);
|
185 |
+
if($acx_csma_subscribe_btn_text1==""){$acx_csma_subscribe_btn_text1=$acx_csma_appearence_array['1']['acx_csma_subscribe_btn_text1'];}
|
186 |
+
$acx_csma_subscribe_btn_text_color1=$_POST['acx_csma_subscribe_btn_text_color1'];
|
187 |
+
$acx_csma_subscribe_btn_text_color1 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_btn_text_color1',$acx_csma_subscribe_btn_text_color1);
|
188 |
+
if($acx_csma_subscribe_btn_text_color1==""){$acx_csma_subscribe_btn_text_color1=$acx_csma_appearence_array['1']['acx_csma_subscribe_btn_text_color1'];}
|
189 |
+
$acx_csma_subscribe_btn_color1=$_POST['acx_csma_subscribe_btn_color1'];
|
190 |
+
$acx_csma_subscribe_btn_color1 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_btn_color1',$acx_csma_subscribe_btn_color1);
|
191 |
+
if($acx_csma_subscribe_btn_color1==""){$acx_csma_subscribe_btn_color1=$acx_csma_appearence_array['1']['acx_csma_subscribe_btn_color1'];}
|
192 |
+
$acx_csma_subscribe_btn_hover_color1=$_POST['acx_csma_subscribe_btn_hover_color1'];
|
193 |
+
$acx_csma_subscribe_btn_hover_color1 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_btn_hover_color1',$acx_csma_subscribe_btn_hover_color1);
|
194 |
+
if($acx_csma_subscribe_btn_hover_color1==""){$acx_csma_subscribe_btn_hover_color1=$acx_csma_appearence_array['1']['acx_csma_subscribe_btn_hover_color1'];}
|
195 |
+
$acx_csma_subscribe_btn_hover_bgcolor1=$_POST['acx_csma_subscribe_btn_hover_bgcolor1'];
|
196 |
+
$acx_csma_subscribe_btn_hover_bgcolor1 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_btn_hover_bgcolor1',$acx_csma_subscribe_btn_hover_bgcolor1);
|
197 |
+
if($acx_csma_subscribe_btn_hover_bgcolor1==""){$acx_csma_subscribe_btn_hover_bgcolor1=$acx_csma_appearence_array['1']['acx_csma_subscribe_btn_hover_bgcolor1'];}
|
198 |
+
$acx_csma_subscribe_title1=$_POST['acx_csma_subscribe_title1'];
|
199 |
+
$acx_csma_subscribe_title1 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_title1',$acx_csma_subscribe_title1);
|
200 |
+
$acx_csma_subscribe_title_color1=$_POST['acx_csma_subscribe_title_color1'];
|
201 |
+
$acx_csma_subscribe_title_color1 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_title_color1',$acx_csma_subscribe_title_color1);
|
202 |
+
if($acx_csma_subscribe_title_color1==""){$acx_csma_subscribe_title_color1=$acx_csma_appearence_array['1']['acx_csma_subscribe_title_color1'];}
|
203 |
+
$acx_csma_subscribe_success1=$_POST['acx_csma_subscribe_success1'];
|
204 |
+
$acx_csma_subscribe_success1 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_success1',$acx_csma_subscribe_success1);
|
205 |
+
if($acx_csma_subscribe_success1==""){$acx_csma_subscribe_success1=$acx_csma_appearence_array['1']['acx_csma_subscribe_success1'];}
|
206 |
+
$acx_csma_subscribe_invalid1=$_POST['acx_csma_subscribe_invalid1'];
|
207 |
+
$acx_csma_subscribe_invalid1 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_invalid1',$acx_csma_subscribe_invalid1);
|
208 |
+
if($acx_csma_subscribe_invalid1==""){$acx_csma_subscribe_invalid1=$acx_csma_appearence_array['1']['acx_csma_subscribe_invalid1'];}
|
209 |
+
$acx_csma_footer_bgcolor1=$_POST['acx_csma_footer_bgcolor1'];
|
210 |
+
$acx_csma_footer_bgcolor1 = acx_csma_text_before_save_hook_fn('acx_csma_footer_bgcolor1',$acx_csma_footer_bgcolor1);
|
211 |
+
if($acx_csma_footer_bgcolor1==""){$acx_csma_footer_bgcolor1=$acx_csma_appearence_array['1']['acx_csma_footer_bgcolor1'];}
|
212 |
+
$acx_csma_footer_text1=$_POST['acx_csma_footer_text1'];
|
213 |
+
$acx_csma_footer_text1 = acx_csma_text_before_save_hook_fn('acx_csma_footer_text1',$acx_csma_footer_text1);
|
214 |
+
$acx_csma_footer_text_color1=$_POST['acx_csma_footer_text_color1'];
|
215 |
+
$acx_csma_footer_text_color1 = acx_csma_text_before_save_hook_fn('acx_csma_footer_text_color1',$acx_csma_footer_text_color1);
|
216 |
+
if($acx_csma_footer_text_color1==""){$acx_csma_footer_text_color1=$acx_csma_appearence_array['1']['acx_csma_footer_text_color1'];}
|
217 |
|
218 |
+
$acx_csma_custom_css_temp1=$_POST['acx_csma_custom_css_temp1'];
|
219 |
+
$acx_csma_custom_css_temp1 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp1', $acx_csma_custom_css_temp1);
|
220 |
// **************************************template 2**************************************
|
221 |
$acx_csma_bg_color2 = sanitize_text_field($_POST['acx_csma_bg_color2']);if($acx_csma_bg_color2==""){$acx_csma_bg_color2=$acx_csma_appearence_array['2']['acx_csma_bg_color2'];}
|
222 |
|
232 |
}
|
233 |
}
|
234 |
|
235 |
+
$acx_csma_logo2 = $_POST['acx_csma_logo2'];
|
236 |
+
$acx_csma_logo2 = acx_csma_text_before_save_hook_fn('acx_csma_logo2',$acx_csma_logo2);
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
|
238 |
+
if($acx_csma_logo2==""){$acx_csma_logo2= $acx_csma_appearence_array['2']['acx_csma_logo2'];}
|
239 |
+
$acx_csma_logo_text2=$_POST['acx_csma_logo_text2'];
|
240 |
+
$acx_csma_logo_text2 = acx_csma_text_before_save_hook_fn('acx_csma_logo_text2',$acx_csma_logo_text2);
|
241 |
+
$acx_csma_logo_text_color2=$_POST['acx_csma_logo_text_color2'];
|
242 |
+
$acx_csma_logo_text_color2 = acx_csma_text_before_save_hook_fn('acx_csma_logo_text_color2',$acx_csma_logo_text_color2);
|
243 |
+
if($acx_csma_logo_text_color2==""){$acx_csma_logo_text_color2=$acx_csma_appearence_array['2']['acx_csma_logo_text_color2'];}
|
244 |
+
$acx_csma_title2=$_POST['acx_csma_title2'];
|
245 |
+
$acx_csma_title2 = acx_csma_text_before_save_hook_fn('acx_csma_title2',$acx_csma_title2);
|
246 |
+
$acx_csma_title_color2=$_POST['acx_csma_title_color2'];
|
247 |
+
$acx_csma_title_color2 = acx_csma_text_before_save_hook_fn('acx_csma_title_color2',$acx_csma_title_color2);
|
248 |
+
if($acx_csma_title_color2==""){$acx_csma_title_color2=$acx_csma_appearence_array['2']['acx_csma_title_color2'];}
|
249 |
+
$acx_csma_subtitle_text2=$_POST['acx_csma_subtitle_text2'];
|
250 |
+
$acx_csma_subtitle_text2 = acx_csma_text_before_save_hook_fn('acx_csma_subtitle_text2',$acx_csma_subtitle_text2);
|
251 |
+
$acx_csma_subtitle_color2=$_POST['acx_csma_subtitle_color2'];
|
252 |
+
$acx_csma_subtitle_color2 = acx_csma_text_before_save_hook_fn('acx_csma_subtitle_color2',$acx_csma_subtitle_color2);
|
253 |
+
if($acx_csma_subtitle_color2==""){$acx_csma_subtitle_color2=$acx_csma_appearence_array['2']['acx_csma_subtitle_color2'];}
|
254 |
+
$acx_csma_inside_bg_color2=$_POST['acx_csma_inside_bg_color2'];
|
255 |
+
$acx_csma_inside_bg_color2 = acx_csma_text_before_save_hook_fn('acx_csma_inside_bg_color2',$acx_csma_inside_bg_color2);
|
256 |
+
if($acx_csma_inside_bg_color2==""){$acx_csma_inside_bg_color2=$acx_csma_appearence_array['2']['acx_csma_inside_bg_color2'];}
|
257 |
+
$acx_csma_show_timer2=$_POST['acx_csma_show_timer2'];
|
258 |
+
$acx_csma_show_timer2 = acx_csma_text_before_save_hook_fn('acx_csma_show_timer2',$acx_csma_show_timer2);
|
259 |
+
if($acx_csma_show_timer2==""){ $acx_csma_show_timer2=$acx_csma_appearence_array['2']['acx_csma_show_timer2'];}
|
260 |
+
$acx_csma_show_subscription2=$_POST['acx_csma_show_subscription2'];
|
261 |
+
$acx_csma_show_subscription2 = acx_csma_text_before_save_hook_fn('acx_csma_show_subscription2',$acx_csma_show_subscription2);
|
262 |
+
if($acx_csma_show_subscription2==""){ $acx_csma_show_subscription2=$acx_csma_appearence_array['2']['acx_csma_show_subscription2'];}
|
263 |
+
$acx_csma_subscribe_btn_text2=$_POST['acx_csma_subscribe_btn_text2'];
|
264 |
+
$acx_csma_subscribe_btn_text2 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_btn_text2',$acx_csma_subscribe_btn_text2);
|
265 |
+
if($acx_csma_subscribe_btn_text2==""){$acx_csma_subscribe_btn_text2=$acx_csma_appearence_array['2']['acx_csma_subscribe_btn_text2'];}
|
266 |
+
$acx_csma_timer_title2=$_POST['acx_csma_timer_title2'];
|
267 |
+
$acx_csma_timer_title2 = acx_csma_text_before_save_hook_fn('acx_csma_timer_title2',$acx_csma_timer_title2);
|
268 |
+
|
269 |
+
$acx_csma_subscribe_btn_color2=$_POST['acx_csma_subscribe_btn_color2'];
|
270 |
+
$acx_csma_subscribe_btn_color2 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_btn_color2',$acx_csma_subscribe_btn_color2);
|
271 |
+
if($acx_csma_subscribe_btn_color2==""){$acx_csma_subscribe_btn_color2=$acx_csma_appearence_array['2']['acx_csma_subscribe_btn_color2'];}
|
272 |
+
$acx_csma_subscribe_success2=$_POST['acx_csma_subscribe_success2'];
|
273 |
|
274 |
+
$acx_csma_subscribe_success2 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_success2',$acx_csma_subscribe_success2);
|
275 |
+
if($acx_csma_subscribe_success2==""){$acx_csma_subscribe_success2=$acx_csma_appearence_array['2']['acx_csma_subscribe_success2'];}
|
276 |
+
$acx_csma_subscribe_invalid2=$_POST['acx_csma_subscribe_invalid2'];
|
277 |
+
$acx_csma_subscribe_invalid2 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_invalid2',$acx_csma_subscribe_invalid2);
|
278 |
+
if($acx_csma_subscribe_invalid2==""){$acx_csma_subscribe_invalid2=$acx_csma_appearence_array['2']['acx_csma_subscribe_invalid2'];}
|
279 |
|
280 |
+
$acx_csma_custom_html_above_timer=$_POST['acx_csma_custom_html_above_timer'];
|
281 |
+
$acx_csma_custom_html_above_timer = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_above_timer', $acx_csma_custom_html_above_timer);
|
282 |
+
$acx_csma_custom_html_top_timer=$_POST['acx_csma_custom_html_top_timer'];
|
283 |
+
$acx_csma_custom_html_top_timer = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_top_timer', $acx_csma_custom_html_top_timer);
|
284 |
+
$acx_csma_timer_input_bg_color2=$_POST['acx_csma_timer_input_bg_color2'];
|
285 |
+
$acx_csma_timer_input_bg_color2 = acx_csma_text_before_save_hook_fn('acx_csma_timer_input_bg_color2',$acx_csma_timer_input_bg_color2);
|
286 |
+
if($acx_csma_timer_input_bg_color2==""){$acx_csma_timer_input_bg_color2=$acx_csma_appearence_array['2']['acx_csma_timer_input_bg_color2'];}
|
287 |
+
$acx_csma_timer_iptext_color2=$_POST['acx_csma_timer_iptext_color2'];
|
288 |
+
$acx_csma_timer_iptext_color2 = acx_csma_text_before_save_hook_fn('acx_csma_timer_iptext_color2',$acx_csma_timer_iptext_color2);
|
289 |
+
if($acx_csma_timer_iptext_color2==""){$acx_csma_timer_iptext_color2=$acx_csma_appearence_array['2']['acx_csma_timer_iptext_color2'];}
|
290 |
+
$acx_csma_timer_head_color2=$_POST['acx_csma_timer_head_color2'];
|
291 |
+
$acx_csma_timer_head_color2 = acx_csma_text_before_save_hook_fn('acx_csma_timer_head_color2',$acx_csma_timer_head_color2);
|
292 |
+
if($acx_csma_timer_head_color2==""){$acx_csma_timer_head_color2=$acx_csma_appearence_array['2']['acx_csma_timer_head_color2'];}
|
293 |
+
$acx_csma_custom_html_top_temp2=$_POST['acx_csma_custom_html_top_temp2'];
|
294 |
+
$acx_csma_custom_html_top_temp2 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_top_temp2', $acx_csma_custom_html_top_temp2);
|
295 |
+
$acx_csma_desc_title2=$_POST['acx_csma_desc_title2'];
|
296 |
+
$acx_csma_desc_title2 = acx_csma_text_before_save_hook_fn('acx_csma_desc_title2',$acx_csma_desc_title2);
|
297 |
+
$acx_csma_desc_subtitle2=$_POST['acx_csma_desc_subtitle2'];
|
298 |
+
$acx_csma_desc_subtitle2 = acx_csma_textarea_before_save_hook_function('acx_csma_desc_subtitle2', $acx_csma_desc_subtitle2);
|
299 |
+
$acx_csma_desc_text_color2=$_POST['acx_csma_desc_text_color2'];
|
300 |
+
$acx_csma_desc_text_color2 = acx_csma_text_before_save_hook_fn('acx_csma_desc_text_color2',$acx_csma_desc_text_color2);
|
301 |
+
if($acx_csma_desc_text_color2==""){$acx_csma_desc_text_color2=$acx_csma_appearence_array['2']['acx_csma_desc_text_color2'];}
|
302 |
$acx_csma_fb_link2=esc_url_raw($_POST['acx_csma_fb_link2']);
|
303 |
$acx_csma_twitter_link2=esc_url_raw($_POST['acx_csma_twitter_link2']);
|
304 |
$acx_csma_linkedin_link2=esc_url_raw($_POST['acx_csma_linkedin_link2']);
|
305 |
+
$acx_csma_custom_css_temp2=$_POST['acx_csma_custom_css_temp2'];
|
306 |
+
$acx_csma_custom_css_temp2 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp2', $acx_csma_custom_css_temp2);
|
307 |
//***********************************template 3*************************
|
308 |
if(ISSET($_POST['acx_csma_logo_choice3']))
|
309 |
{
|
310 |
+
$acx_csma_logo_choice3=$_POST['acx_csma_logo_choice3'];
|
311 |
+
$acx_csma_logo_choice3 = acx_csma_text_before_save_hook_fn('acx_csma_logo_choice3',$acx_csma_logo_choice3);
|
312 |
}
|
313 |
else{
|
314 |
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['3'])){
|
318 |
}
|
319 |
}
|
320 |
|
321 |
+
$acx_csma_logo3=$_POST['acx_csma_logo3'];
|
322 |
+
$acx_csma_logo3 = acx_csma_text_before_save_hook_fn('acx_csma_logo3',$acx_csma_logo3);
|
323 |
+
if($acx_csma_logo3==""){$acx_csma_logo3= $acx_csma_appearence_array['3']['acx_csma_logo3'];}
|
324 |
+
$acx_csma_logo_text3=$_POST['acx_csma_logo_text3'];
|
325 |
+
$acx_csma_logo_text3 = acx_csma_text_before_save_hook_fn('acx_csma_logo_text3',$acx_csma_logo_text3);
|
326 |
+
$acx_csma_logo_text_color3=sanitize_text_field($_POST['acx_csma_logo_text_color3']);
|
327 |
+
$acx_csma_logo_text_color3 = acx_csma_text_before_save_hook_fn('acx_csma_logo_text_color3',$acx_csma_logo_text_color3);
|
328 |
+
if($acx_csma_logo_text_color3==""){$acx_csma_logo_text_color3=$acx_csma_appearence_array['3']['acx_csma_logo_text_color3'];}
|
329 |
+
$acx_csma_title3=$_POST['acx_csma_title3'];
|
330 |
+
$acx_csma_title3 = acx_csma_text_before_save_hook_fn('acx_csma_title3',$acx_csma_title3);
|
331 |
+
$acx_csma_title_color3= $_POST['acx_csma_title_color3'];
|
332 |
+
$acx_csma_title_color3 = acx_csma_text_before_save_hook_fn('acx_csma_title_color3',$acx_csma_title_color3);
|
333 |
+
if($acx_csma_title_color3==""){$acx_csma_title_color3=$acx_csma_appearence_array['3']['acx_csma_title_color3'];}
|
334 |
+
$acx_csma_subtitle_text3= $_POST['acx_csma_subtitle_text3'];
|
335 |
+
$acx_csma_subtitle_text3 = acx_csma_text_before_save_hook_fn('acx_csma_subtitle_text3',$acx_csma_subtitle_text3);
|
336 |
+
$acx_csma_subtitle_color3= $_POST['acx_csma_subtitle_color3'];
|
337 |
+
$acx_csma_subtitle_color3 = acx_csma_text_before_save_hook_fn('acx_csma_subtitle_color3',$acx_csma_subtitle_color3);
|
338 |
+
if($acx_csma_subtitle_color3==""){$acx_csma_subtitle_color3=$acx_csma_appearence_array['3']['acx_csma_subtitle_color3'];}
|
339 |
+
|
340 |
+
$acx_csma_primary_color3= $_POST['acx_csma_primary_color3'];
|
341 |
+
$acx_csma_primary_color3 = acx_csma_text_before_save_hook_fn('acx_csma_primary_color3',$acx_csma_primary_color3);
|
342 |
+
if($acx_csma_primary_color3==""){$acx_csma_primary_color3=$acx_csma_appearence_array['3']['acx_csma_primary_color3'];}
|
343 |
|
344 |
+
$acx_csma_secondary_color3= $_POST['acx_csma_secondary_color3'];
|
345 |
+
$acx_csma_secondary_color3 = acx_csma_text_before_save_hook_fn('acx_csma_secondary_color3',$acx_csma_secondary_color3);
|
346 |
+
if($acx_csma_secondary_color3==""){$acx_csma_secondary_color3=$acx_csma_appearence_array['3']['acx_csma_secondary_color3'];}
|
347 |
|
348 |
+
$acx_csma_left_bar_color3= $_POST['acx_csma_left_bar_color3'];
|
349 |
+
$acx_csma_left_bar_color3 = acx_csma_text_before_save_hook_fn('acx_csma_left_bar_color3',$acx_csma_left_bar_color3);
|
350 |
+
if($acx_csma_left_bar_color3==""){$acx_csma_left_bar_color3=$acx_csma_appearence_array['3']['acx_csma_left_bar_color3'];}
|
351 |
|
352 |
+
$acx_csma_timer_color3= $_POST['acx_csma_timer_color3'];
|
353 |
+
$acx_csma_timer_color3 = acx_csma_text_before_save_hook_fn('acx_csma_timer_color3',$acx_csma_timer_color3);
|
354 |
+
if($acx_csma_timer_color3==""){$acx_csma_timer_color3=$acx_csma_appearence_array['3']['acx_csma_timer_color3'];}
|
355 |
|
356 |
+
$acx_csma_subscribe_title3= $_POST['acx_csma_subscribe_title3'];
|
357 |
+
$acx_csma_subscribe_title3 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_title3',$acx_csma_subscribe_title3);
|
358 |
|
359 |
+
$acx_csma_subscribe_title_color3= $_POST['acx_csma_subscribe_title_color3'];
|
360 |
+
$acx_csma_subscribe_title_color3 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_title_color3',$acx_csma_subscribe_title_color3);
|
361 |
+
if($acx_csma_subscribe_title_color3==""){$acx_csma_subscribe_title_color3=$acx_csma_appearence_array['3']['acx_csma_subscribe_title_color3'];}
|
362 |
+
$acx_csma_show_subscription3=$_POST['acx_csma_show_subscription3'];
|
363 |
+
$acx_csma_show_subscription3 = acx_csma_text_before_save_hook_fn('acx_csma_show_subscription3',$acx_csma_show_subscription3);
|
364 |
+
if($acx_csma_show_subscription3==""){ $acx_csma_show_subscription3=$acx_csma_appearence_array['3']['acx_csma_show_subscription3'];}
|
365 |
+
$acx_csma_show_timer3=$_POST['acx_csma_show_timer3'];
|
366 |
+
$acx_csma_show_timer3 = acx_csma_text_before_save_hook_fn('acx_csma_show_timer3',$acx_csma_show_timer3);
|
367 |
+
if($acx_csma_show_timer3==""){ $acx_csma_show_timer3=$acx_csma_appearence_array['3']['acx_csma_show_timer3'];}
|
368 |
+
$acx_csma_subscribe_btn_text3=$_POST['acx_csma_subscribe_btn_text3'];
|
369 |
+
$acx_csma_subscribe_btn_text3 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_btn_text3',$acx_csma_subscribe_btn_text3);
|
370 |
+
if($acx_csma_subscribe_btn_text3==""){$acx_csma_subscribe_btn_text3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_text3'];}
|
371 |
+
$acx_csma_subscribe_btn_text_color3=$_POST['acx_csma_subscribe_btn_text_color3'];
|
372 |
+
$acx_csma_subscribe_btn_text_color3 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_btn_text_color3',$acx_csma_subscribe_btn_text_color3);
|
373 |
+
if($acx_csma_subscribe_btn_text_color3==""){$acx_csma_subscribe_btn_text_color3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_text_color3'];}
|
374 |
+
$acx_csma_subscribe_btn_color3=$_POST['acx_csma_subscribe_btn_color3'];
|
375 |
+
$acx_csma_subscribe_btn_color3 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_btn_color3',$acx_csma_subscribe_btn_color3);
|
376 |
+
if($acx_csma_subscribe_btn_color3==""){$acx_csma_subscribe_btn_color3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_color3'];}
|
377 |
+
$acx_csma_subscribe_btn_hover_color3=$_POST['acx_csma_subscribe_btn_hover_color3'];
|
378 |
+
$acx_csma_subscribe_btn_hover_color3 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_btn_hover_color3',$acx_csma_subscribe_btn_hover_color3);
|
379 |
+
if($acx_csma_subscribe_btn_hover_color3==""){$acx_csma_subscribe_btn_hover_color3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_hover_color3'];}
|
380 |
+
$acx_csma_subscribe_btn_hover_bgcolor3=$_POST['acx_csma_subscribe_btn_hover_bgcolor3'];
|
381 |
+
$acx_csma_subscribe_btn_hover_bgcolor3 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_btn_hover_bgcolor3',$acx_csma_subscribe_btn_hover_bgcolor3);
|
382 |
+
if($acx_csma_subscribe_btn_hover_bgcolor3==""){$acx_csma_subscribe_btn_hover_bgcolor3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_hover_bgcolor3'];}
|
383 |
+
$acx_csma_subscribe_success3=$_POST['acx_csma_subscribe_success3'];
|
384 |
+
$acx_csma_subscribe_success3 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_success3',$acx_csma_subscribe_success3);
|
385 |
+
if($acx_csma_subscribe_success3==""){$acx_csma_subscribe_success3=$acx_csma_appearence_array['3']['acx_csma_subscribe_success3'];}
|
386 |
+
$acx_csma_subscribe_invalid3=$_POST['acx_csma_subscribe_invalid3'];
|
387 |
+
$acx_csma_subscribe_invalid3 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_invalid3',$acx_csma_subscribe_invalid3);
|
388 |
+
if($acx_csma_subscribe_invalid3==""){$acx_csma_subscribe_invalid3=$acx_csma_appearence_array['3']['acx_csma_subscribe_invalid3'];}
|
389 |
+
$acx_csma_inside_title3= $_POST['acx_csma_inside_title3'];
|
390 |
+
$acx_csma_inside_title3 = acx_csma_text_before_save_hook_fn('acx_csma_inside_title3',$acx_csma_inside_title3);
|
391 |
+
$acx_csma_inside_title_color3= $_POST['acx_csma_inside_title_color3'];
|
392 |
+
$acx_csma_inside_title_color3 = acx_csma_text_before_save_hook_fn('acx_csma_inside_title_color3',$acx_csma_inside_title_color3);
|
393 |
+
if($acx_csma_inside_title_color3==""){$acx_csma_inside_title_color3=$acx_csma_appearence_array['3']['acx_csma_inside_title_color3'];}
|
394 |
+
$acx_csma_timer_iptext_color3= $_POST['acx_csma_timer_iptext_color3'];
|
395 |
+
$acx_csma_timer_iptext_color3 = acx_csma_text_before_save_hook_fn('acx_csma_timer_iptext_color3',$acx_csma_timer_iptext_color3);
|
396 |
+
if($acx_csma_timer_iptext_color3==""){$acx_csma_timer_iptext_color3=$acx_csma_appearence_array['3']['acx_csma_timer_iptext_color3'];}
|
397 |
+
$acx_csma_timer_head_color3= $_POST['acx_csma_timer_head_color3'];
|
398 |
+
$acx_csma_timer_head_color3 = acx_csma_text_before_save_hook_fn('acx_csma_timer_head_color3',$acx_csma_timer_head_color3);
|
399 |
+
if($acx_csma_timer_head_color3==""){$acx_csma_timer_head_color3=$acx_csma_appearence_array['3']['acx_csma_timer_head_color3'];}
|
400 |
+
$acx_csma_custom_html_top_temp3=$_POST['acx_csma_custom_html_top_temp3'];
|
401 |
+
$acx_csma_custom_html_top_temp3 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_top_temp3', $acx_csma_custom_html_top_temp3);
|
402 |
+
$acx_csma_custom_html_top_timer_temp3=$_POST['acx_csma_custom_html_top_timer_temp3'];
|
403 |
+
$acx_csma_custom_html_top_timer_temp3 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_top_timer_temp3', $acx_csma_custom_html_top_timer_temp3);
|
404 |
+
$acx_csma_custom_html_bottom_temp3=$_POST['acx_csma_custom_html_bottom_temp3'];
|
405 |
+
$acx_csma_custom_html_bottom_temp3 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_bottom_temp3', $acx_csma_custom_html_bottom_temp3);
|
406 |
+
$acx_csma_desc_title3= $_POST['acx_csma_desc_title3'];
|
407 |
+
$acx_csma_desc_title3 = acx_csma_text_before_save_hook_fn('acx_csma_desc_title3',$acx_csma_desc_title3);
|
408 |
+
$acx_csma_desc_subtitle3=$_POST['acx_csma_desc_subtitle3'];
|
409 |
+
$acx_csma_desc_subtitle3 = acx_csma_textarea_before_save_hook_function('acx_csma_desc_subtitle3', $acx_csma_desc_subtitle3);
|
410 |
+
$acx_csma_desc_text_color3= $_POST['acx_csma_desc_text_color3'];
|
411 |
+
$acx_csma_desc_text_color3 = acx_csma_text_before_save_hook_fn('acx_csma_desc_text_color3',$acx_csma_desc_text_color3);
|
412 |
+
|
413 |
+
if($acx_csma_desc_text_color3==""){$acx_csma_desc_text_color3=$acx_csma_appearence_array['3']['acx_csma_desc_text_color3'];}
|
414 |
+
$acx_csma_footer_text3= $_POST['acx_csma_footer_text3'];
|
415 |
+
$acx_csma_footer_text3 = acx_csma_text_before_save_hook_fn('acx_csma_footer_text3',$acx_csma_footer_text3);
|
416 |
+
$acx_csma_footer_color3 = $_POST['acx_csma_footer_color3'];
|
417 |
+
$acx_csma_footer_color3 = acx_csma_text_before_save_hook_fn('acx_csma_footer_color3',$acx_csma_footer_color3);
|
418 |
+
if($acx_csma_footer_color3==""){$acx_csma_footer_color3=$acx_csma_appearence_array['3']['acx_csma_footer_color3'];}
|
419 |
+
$acx_csma_social_link_title3=$_POST['acx_csma_social_link_title3'];
|
420 |
+
$acx_csma_social_link_title3 = acx_csma_text_before_save_hook_fn('acx_csma_social_link_title3',$acx_csma_social_link_title3);
|
421 |
+
$acx_csma_social_link_title_color3=$_POST['acx_csma_social_link_title_color3'];
|
422 |
+
$acx_csma_social_link_title_color3 = acx_csma_text_before_save_hook_fn('acx_csma_social_link_title_color3',$acx_csma_social_link_title_color3);
|
423 |
+
if($acx_csma_social_link_title_color3==""){$acx_csma_social_link_title_color3=$acx_csma_appearence_array['3']['acx_csma_social_link_title_color3'];}
|
424 |
$acx_csma_fb_link3=esc_url_raw($_POST['acx_csma_fb_link3']);
|
425 |
$acx_csma_twitter_link3=esc_url_raw($_POST['acx_csma_twitter_link3']);
|
426 |
$acx_csma_linkedin_link3=esc_url_raw($_POST['acx_csma_linkedin_link3']);
|
427 |
+
$acx_csma_custom_css_temp3=$_POST['acx_csma_custom_css_temp3'];
|
428 |
+
$acx_csma_custom_css_temp3 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp3', $acx_csma_custom_css_temp3);
|
429 |
//********************************template 4***********************************
|
430 |
+
$acx_csma_background_image4=$_POST['acx_csma_background_image4'];
|
431 |
+
$acx_csma_background_image4 = acx_csma_text_before_save_hook_fn('acx_csma_background_image4',$acx_csma_background_image4);
|
432 |
+
if($acx_csma_background_image4==""){$acx_csma_background_image4=$acx_csma_appearence_array['4']['acx_csma_background_image4'];}
|
433 |
if(ISSET($_POST['acx_csma_logo_choice4']))
|
434 |
{
|
435 |
+
$acx_csma_logo_choice4=$_POST['acx_csma_logo_choice4'];
|
436 |
+
$acx_csma_logo_choice4 = acx_csma_text_before_save_hook_fn('acx_csma_logo_choice4',$acx_csma_logo_choice4);
|
437 |
}
|
438 |
else{
|
439 |
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['4'])){
|
442 |
$acx_csma_logo_choice4='image';
|
443 |
}
|
444 |
}
|
445 |
+
$acx_csma_logo4=$_POST['acx_csma_logo4'];
|
446 |
+
$acx_csma_logo4 = acx_csma_text_before_save_hook_fn('acx_csma_logo4',$acx_csma_logo4);
|
447 |
+
if($acx_csma_logo4==""){$acx_csma_logo4=$acx_csma_appearence_array['4']['acx_csma_logo4'];}
|
448 |
$acx_csma_logo_text4=$_POST['acx_csma_logo_text4'];
|
449 |
+
$acx_csma_logo_text_color4=$_POST['acx_csma_logo_text_color4'];
|
450 |
+
$acx_csma_logo_text_color4 = acx_csma_text_before_save_hook_fn('acx_csma_logo_text_color4',$acx_csma_logo_text_color4);
|
451 |
+
if($acx_csma_logo_text_color4==""){$acx_csma_logo_text_color4=$acx_csma_appearence_array['4']['acx_csma_logo_text_color4'];}
|
452 |
+
$acx_csma_inside_bg_color4=$_POST['acx_csma_inside_bg_color4'];
|
453 |
+
$acx_csma_inside_bg_color4 = acx_csma_text_before_save_hook_fn('acx_csma_inside_bg_color4',$acx_csma_inside_bg_color4);
|
454 |
+
if($acx_csma_inside_bg_color4==""){$acx_csma_inside_bg_color4=$acx_csma_appearence_array['4']['acx_csma_inside_bg_color4'];}
|
455 |
+
$acx_csma_title4=$_POST['acx_csma_title4'];
|
456 |
+
$acx_csma_title4 = acx_csma_text_before_save_hook_fn('acx_csma_title4',$acx_csma_title4);
|
457 |
+
$acx_csma_custom_html_top_temp4=$_POST['acx_csma_custom_html_top_temp4'];
|
458 |
+
$acx_csma_custom_html_top_temp4 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_top_temp4', $acx_csma_custom_html_top_temp4);
|
459 |
+
$acx_csma_title_color4=$_POST['acx_csma_title_color4'];
|
460 |
+
$acx_csma_title_color4 = acx_csma_text_before_save_hook_fn('acx_csma_title_color4',$acx_csma_title_color4);
|
461 |
+
if($acx_csma_title_color4==""){$acx_csma_title_color4=$acx_csma_appearence_array['4']['acx_csma_title_color4'];}
|
462 |
+
$acx_csma_show_timer4=$_POST['acx_csma_show_timer4'];
|
463 |
+
$acx_csma_show_timer4 = acx_csma_text_before_save_hook_fn('acx_csma_show_timer4',$acx_csma_show_timer4);
|
464 |
+
if($acx_csma_show_timer4==""){ $acx_csma_show_timer4=$acx_csma_appearence_array['4']['acx_csma_show_timer4'];}
|
465 |
+
$acx_csma_timer_iptext_color4=$_POST['acx_csma_timer_iptext_color4'];
|
466 |
+
$acx_csma_timer_iptext_color4 = acx_csma_text_before_save_hook_fn('acx_csma_timer_iptext_color4',$acx_csma_timer_iptext_color4);
|
467 |
+
if($acx_csma_timer_iptext_color4==""){$acx_csma_timer_iptext_color4=$acx_csma_appearence_array['4']['acx_csma_timer_iptext_color4'];;}
|
468 |
+
$acx_csma_timer_head_color4=$_POST['acx_csma_timer_head_color4'];
|
469 |
+
$acx_csma_timer_head_color4 = acx_csma_text_before_save_hook_fn('acx_csma_timer_head_color4',$acx_csma_timer_head_color4);
|
470 |
+
if($acx_csma_timer_head_color4==""){$acx_csma_timer_head_color4=$acx_csma_appearence_array['4']['acx_csma_timer_head_color4'];}
|
471 |
+
$acx_csma_show_progressbar4=$_POST['acx_csma_show_progressbar4'];
|
472 |
+
$acx_csma_show_progressbar4 = acx_csma_text_before_save_hook_fn('acx_csma_show_progressbar4',$acx_csma_show_progressbar4);
|
473 |
+
if($acx_csma_show_progressbar4==""){ $acx_csma_show_progressbar4=$acx_csma_appearence_array['4']['acx_csma_show_progressbar4'];}
|
474 |
+
$acx_csma_progress_bar_color4=$_POST['acx_csma_progress_bar_color4'];
|
475 |
+
$acx_csma_progress_bar_color4 = acx_csma_text_before_save_hook_fn('acx_csma_progress_bar_color4',$acx_csma_progress_bar_color4);
|
476 |
+
if($acx_csma_progress_bar_color4==""){$acx_csma_progress_bar_color4=$acx_csma_appearence_array['4']['acx_csma_progress_bar_color4'];}
|
477 |
+
$acx_csma_custom_html_bottom_temp4=$_POST['acx_csma_custom_html_bottom_temp4'];
|
478 |
+
$acx_csma_custom_html_bottom_temp4 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_bottom_temp4', $acx_csma_custom_html_bottom_temp4);
|
479 |
$acx_csma_fb_link4=esc_url_raw($_POST['acx_csma_fb_link4']);
|
480 |
$acx_csma_twitter_link4=esc_url_raw($_POST['acx_csma_twitter_link4']);
|
481 |
$acx_csma_linkedin_link4=esc_url_raw($_POST['acx_csma_linkedin_link4']);
|
482 |
+
$acx_csma_custom_css_temp4=$_POST['acx_csma_custom_css_temp4'];
|
483 |
+
$acx_csma_custom_css_temp4 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp4', $acx_csma_custom_css_temp4);
|
484 |
//********************************template5*********************************
|
485 |
+
$acx_csma_bgcolor5=$_POST['acx_csma_bgcolor5'];
|
486 |
+
$acx_csma_bgcolor5 = acx_csma_text_before_save_hook_fn('acx_csma_bgcolor5',$acx_csma_bgcolor5);if($acx_csma_bgcolor5==""){$acx_csma_bgcolor5=$acx_csma_appearence_array['5']['acx_csma_bgcolor5'];}
|
487 |
if(ISSET($_POST['acx_csma_logo_choice5']))
|
488 |
{
|
489 |
+
$acx_csma_logo_choice5=$_POST['acx_csma_logo_choice5'];
|
490 |
+
$acx_csma_logo_choice5 = acx_csma_text_before_save_hook_fn('acx_csma_logo_choice5',$acx_csma_logo_choice5);
|
491 |
}
|
492 |
else{
|
493 |
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['5'])){
|
496 |
$acx_csma_logo_choice5='image';
|
497 |
}
|
498 |
}
|
499 |
+
$acx_csma_logo5=$_POST['acx_csma_logo5'];
|
500 |
+
$acx_csma_logo5 = acx_csma_text_before_save_hook_fn('acx_csma_logo5',$acx_csma_logo5);
|
501 |
+
if($acx_csma_logo5==""){$acx_csma_logo5=$acx_csma_appearence_array['5']['acx_csma_logo5'];}
|
502 |
+
$acx_csma_logo_text5=$_POST['acx_csma_logo_text5'];
|
503 |
+
$acx_csma_logo_text5 = acx_csma_text_before_save_hook_fn('acx_csma_logo_text5',$acx_csma_logo_text5);
|
504 |
+
$acx_csma_logo_text_color5=$_POST['acx_csma_logo_text_color5'];
|
505 |
+
$acx_csma_logo_text_color5 = acx_csma_text_before_save_hook_fn('acx_csma_logo_text_color5',$acx_csma_logo_text_color5);
|
506 |
+
if($acx_csma_logo_text_color5==""){$acx_csma_logo_text_color5=$acx_csma_appearence_array['5']['acx_csma_logo_text_color5'];}
|
507 |
+
$acx_csma_inside_bg_color5=$_POST['acx_csma_inside_bg_color5'];
|
508 |
+
$acx_csma_inside_bg_color5 = acx_csma_text_before_save_hook_fn('acx_csma_inside_bg_color5',$acx_csma_inside_bg_color5);
|
509 |
+
if($acx_csma_inside_bg_color5==""){$acx_csma_inside_bg_color5=$acx_csma_appearence_array['5']['acx_csma_inside_bg_color5'];}
|
510 |
+
$acx_csma_title5=$_POST['acx_csma_title5'];
|
511 |
+
$acx_csma_title5 = acx_csma_text_before_save_hook_fn('acx_csma_title5',$acx_csma_title5);
|
512 |
+
$acx_csma_title_color5=$_POST['acx_csma_title_color5'];
|
513 |
+
$acx_csma_title_color5 = acx_csma_text_before_save_hook_fn('acx_csma_title_color5',$acx_csma_title_color5);
|
514 |
+
if($acx_csma_title_color5==""){$acx_csma_title_color5=$acx_csma_appearence_array['5']['acx_csma_title_color5'];}
|
515 |
+
$acx_csma_custom_html_top_temp5=$_POST['acx_csma_custom_html_top_temp5'];
|
516 |
+
$acx_csma_custom_html_top_temp5 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_top_temp5', $acx_csma_custom_html_top_temp5);
|
517 |
+
$acx_csma_show_timer5=$_POST['acx_csma_show_timer5'];
|
518 |
+
$acx_csma_show_timer5 = acx_csma_text_before_save_hook_fn('acx_csma_show_timer5',$acx_csma_show_timer5);
|
519 |
+
if($acx_csma_show_timer5==""){$acx_csma_show_timer5=$acx_csma_show_timer5['5']['acx_csma_show_timer5'];}
|
520 |
+
$acx_csma_timer_iptext_color5=$_POST['acx_csma_timer_iptext_color5'];
|
521 |
+
$acx_csma_timer_iptext_color5 = acx_csma_text_before_save_hook_fn('acx_csma_timer_iptext_color5',$acx_csma_timer_iptext_color5);
|
522 |
+
if($acx_csma_timer_iptext_color5==""){$acx_csma_timer_iptext_color5=$acx_csma_appearence_array['5']['acx_csma_timer_iptext_color5'];}
|
523 |
+
$acx_csma_timer_head_color5=$_POST['acx_csma_timer_head_color5'];
|
524 |
+
$acx_csma_timer_head_color5 = acx_csma_text_before_save_hook_fn('acx_csma_timer_head_color5',$acx_csma_timer_head_color5);
|
525 |
+
if($acx_csma_timer_head_color5==""){$acx_csma_timer_head_color5=$acx_csma_appearence_array['5']['acx_csma_timer_head_color5'];}
|
526 |
+
$acx_csma_show_progressbar5=$_POST['acx_csma_show_progressbar5'];
|
527 |
+
$acx_csma_show_progressbar5 = acx_csma_text_before_save_hook_fn('acx_csma_show_progressbar5',$acx_csma_show_progressbar5);
|
528 |
+
if($acx_csma_show_progressbar5==""){$acx_csma_show_progressbar5=$acx_csma_appearence_array['5']['acx_csma_show_progressbar5'];}
|
529 |
+
$acx_csma_progress_bar_color5=$_POST['acx_csma_progress_bar_color5'];
|
530 |
+
$acx_csma_progress_bar_color5 = acx_csma_text_before_save_hook_fn('acx_csma_progress_bar_color5',$acx_csma_progress_bar_color5);
|
531 |
+
if($acx_csma_progress_bar_color5==""){$acx_csma_progress_bar_color5=$acx_csma_appearence_array['5']['acx_csma_progress_bar_color5'];}
|
532 |
+
$acx_csma_custom_html_bottom_temp5=$_POST['acx_csma_custom_html_bottom_temp5'];
|
533 |
+
$acx_csma_custom_html_bottom_temp5 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_bottom_temp5', $acx_csma_custom_html_bottom_temp5);
|
534 |
+
$acx_csma_subscribe_bg_color5=$_POST['acx_csma_subscribe_bg_color5'];
|
535 |
+
$acx_csma_subscribe_bg_color5 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_bg_color5',$acx_csma_subscribe_bg_color5);
|
536 |
+
if($acx_csma_subscribe_bg_color5==""){$acx_csma_subscribe_bg_color5=$acx_csma_appearence_array['5']['acx_csma_subscribe_bg_color5'];}
|
537 |
+
$acx_csma_launch_title_color5=$_POST['acx_csma_launch_title_color5'];
|
538 |
+
$acx_csma_launch_title_color5 = acx_csma_text_before_save_hook_fn('acx_csma_launch_title_color5',$acx_csma_launch_title_color5);
|
539 |
+
if($acx_csma_launch_title_color5==""){$acx_csma_launch_title_color5=$acx_csma_appearence_array['5']['acx_csma_launch_title_color5'];}
|
540 |
+
$acx_csma_show_subscription5=$_POST['acx_csma_show_subscription5'];
|
541 |
+
$acx_csma_show_subscription5 = acx_csma_text_before_save_hook_fn('acx_csma_show_subscription5',$acx_csma_show_subscription5);
|
542 |
+
if($acx_csma_show_subscription5==""){ $acx_csma_show_subscription5=$acx_csma_appearence_array['5']['acx_csma_show_subscription5'];}
|
543 |
+
$acx_csma_subscribe_btn_text5=$_POST['acx_csma_subscribe_btn_text5'];
|
544 |
+
$acx_csma_subscribe_btn_text5 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_btn_text5',$acx_csma_subscribe_btn_text5);
|
545 |
+
if($acx_csma_subscribe_btn_text5==""){ $acx_csma_subscribe_btn_text5=$acx_csma_appearence_array['5']['acx_csma_subscribe_btn_text5'];}
|
546 |
+
$acx_csma_custom_html_top_sub=$_POST['acx_csma_custom_html_top_sub'];
|
547 |
+
$acx_csma_custom_html_top_sub = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_top_sub', $acx_csma_custom_html_top_sub);
|
548 |
+
$acx_csma_custom_html_bottom_sub=$_POST['acx_csma_custom_html_bottom_sub'];
|
549 |
+
$acx_csma_custom_html_bottom_sub = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_bottom_sub', $acx_csma_custom_html_bottom_sub);
|
550 |
+
$acx_csma_subscribe_main_title5=$_POST['acx_csma_subscribe_main_title5'];
|
551 |
+
$acx_csma_subscribe_main_title5 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_main_title5',$acx_csma_subscribe_main_title5);
|
552 |
+
$acx_csma_subscribe_title5=$_POST['acx_csma_subscribe_title5'];
|
553 |
+
$acx_csma_subscribe_title5 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_title5',$acx_csma_subscribe_title5);
|
554 |
+
$acx_csma_subscribe_success5=$_POST['acx_csma_subscribe_success5'];
|
555 |
+
$acx_csma_subscribe_success5 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_success5',$acx_csma_subscribe_success5);
|
556 |
+
if($acx_csma_subscribe_success5==""){$acx_csma_subscribe_success5=$acx_csma_appearence_array['5']['acx_csma_subscribe_success5'];}
|
557 |
+
$acx_csma_subscribe_invalid5=$_POST['acx_csma_subscribe_invalid5'];
|
558 |
+
$acx_csma_subscribe_invalid5 = acx_csma_text_before_save_hook_fn('acx_csma_subscribe_invalid5',$acx_csma_subscribe_invalid5);
|
559 |
+
if($acx_csma_subscribe_invalid5==""){$acx_csma_subscribe_invalid5=$acx_csma_appearence_array['5']['acx_csma_subscribe_invalid5'];}
|
560 |
$acx_csma_fb_link5=esc_url_raw($_POST['acx_csma_fb_link5']);
|
561 |
$acx_csma_twitter_link5=esc_url_raw($_POST['acx_csma_twitter_link5']);
|
562 |
$acx_csma_linkedin_link5=esc_url_raw($_POST['acx_csma_linkedin_link5']);
|
563 |
+
$acx_csma_custom_css_temp5=$_POST['acx_csma_custom_css_temp5'];
|
564 |
+
$acx_csma_custom_css_temp5 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp5', $acx_csma_custom_css_temp5);
|
565 |
|
566 |
$acx_csma_template=$_POST['acx_csma_template'];
|
567 |
if($acx_csma_template==""){$acx_csma_template=1;}
|
568 |
update_option('acx_csma_template',$acx_csma_template);
|
569 |
+
if($acx_csma_template > 0 && $acx_csma_template < 6)
|
570 |
+
{
|
571 |
+
update_option('acx_csma_base_template',$acx_csma_template);
|
572 |
+
}
|
573 |
$acx_csma_auto_launch=$_POST['acx_csma_auto_launch'];
|
574 |
if($acx_csma_auto_launch==""){$acx_csma_auto_launch = 0;}
|
575 |
update_option('acx_csma_auto_launch',$acx_csma_auto_launch);
|
576 |
if($acx_csma_template == 0)
|
577 |
{
|
578 |
+
$acx_csma_custom_html_val = $_POST['acx_csma_custom_html_val'];
|
579 |
+
$acx_csma_custom_html_val = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_html_val', $acx_csma_custom_html_val);
|
580 |
update_option('acx_csma_custom_html_val',$acx_csma_custom_html_val);
|
581 |
}
|
582 |
else if($acx_csma_template==1)
|
583 |
{
|
584 |
+
$acx_csma_appearence_array=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
585 |
if (isset($acx_csma_appearence_array[$acx_csma_template]))
|
586 |
{
|
587 |
$acx_csma_appearence_array[$acx_csma_template] =
|
598 |
'acx_csma_custom_html_top_temp1'=>$acx_csma_custom_html_top_temp1,
|
599 |
'acx_csma_inside_bg_color1'=>$acx_csma_inside_bg_color1,
|
600 |
'acx_csma_inside_title1'=>$acx_csma_inside_title1,
|
601 |
+
'acx_csma_custom_html_top_temp1_title'=>$acx_csma_custom_html_top_temp1_title,
|
602 |
'acx_csma_inside_title_color1'=>$acx_csma_inside_title_color1,
|
603 |
'acx_csma_custom_html_bottom_temp1'=>$acx_csma_custom_html_bottom_temp1,
|
604 |
'acx_csma_show_timer1'=>$acx_csma_show_timer1,
|
624 |
'acx_csma_custom_css_temp1'=>$acx_csma_custom_css_temp1
|
625 |
);
|
626 |
}
|
627 |
+
acx_csma_update_array_value($acx_csma_appearence_array);
|
|
|
|
|
|
|
|
|
628 |
}
|
629 |
else if($acx_csma_template==2)
|
630 |
{
|
631 |
+
$acx_csma_appearence_array=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
632 |
if (isset($acx_csma_appearence_array[$acx_csma_template]))
|
633 |
{
|
634 |
$acx_csma_appearence_array[$acx_csma_template] =
|
645 |
'acx_csma_inside_bg_color2'=>$acx_csma_inside_bg_color2,
|
646 |
'acx_csma_custom_html_top_timer'=>$acx_csma_custom_html_top_timer,
|
647 |
'acx_csma_show_subscription2'=>$acx_csma_show_subscription2,
|
648 |
+
'acx_csma_subscribe_btn_text2'=>$acx_csma_subscribe_btn_text2,
|
649 |
+
'acx_csma_custom_html_above_timer'=>$acx_csma_custom_html_above_timer,
|
650 |
+
'acx_csma_show_timer2'=>$acx_csma_show_timer2,
|
651 |
'acx_csma_timer_title2'=>$acx_csma_timer_title2,
|
652 |
'acx_csma_subscribe_btn_color2'=>$acx_csma_subscribe_btn_color2,
|
653 |
'acx_csma_subscribe_success2'=>$acx_csma_subscribe_success2,
|
665 |
'acx_csma_custom_css_temp2'=>$acx_csma_custom_css_temp2
|
666 |
);
|
667 |
}
|
668 |
+
acx_csma_update_array_value($acx_csma_appearence_array);
|
|
|
|
|
|
|
|
|
669 |
}
|
670 |
else if($acx_csma_template==3)
|
671 |
{
|
672 |
+
$acx_csma_appearence_array=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
673 |
if (isset($acx_csma_appearence_array[$acx_csma_template]))
|
674 |
{
|
675 |
$acx_csma_appearence_array[$acx_csma_template] =
|
717 |
'acx_csma_custom_css_temp3'=>$acx_csma_custom_css_temp3
|
718 |
);
|
719 |
}
|
720 |
+
acx_csma_update_array_value($acx_csma_appearence_array);
|
|
|
|
|
|
|
|
|
721 |
}
|
722 |
else if($acx_csma_template==4)
|
723 |
{
|
724 |
+
$acx_csma_appearence_array=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
725 |
if (isset($acx_csma_appearence_array[$acx_csma_template]))
|
726 |
{
|
727 |
$acx_csma_appearence_array[$acx_csma_template] =
|
747 |
'acx_csma_custom_css_temp4'=>$acx_csma_custom_css_temp4
|
748 |
);
|
749 |
}
|
750 |
+
acx_csma_update_array_value($acx_csma_appearence_array);
|
|
|
|
|
|
|
|
|
751 |
}
|
752 |
else if($acx_csma_template==5)
|
753 |
{
|
754 |
+
$acx_csma_appearence_array=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
755 |
if (isset($acx_csma_appearence_array[$acx_csma_template]))
|
756 |
{
|
757 |
$acx_csma_appearence_array[$acx_csma_template]=
|
772 |
'acx_csma_progress_bar_color5'=>$acx_csma_progress_bar_color5,
|
773 |
'acx_csma_custom_html_bottom_temp5'=>$acx_csma_custom_html_bottom_temp5,
|
774 |
'acx_csma_show_subscription5'=>$acx_csma_show_subscription5,
|
775 |
+
'acx_csma_subscribe_btn_text5'=>$acx_csma_subscribe_btn_text5,
|
776 |
'acx_csma_custom_html_top_sub'=>$acx_csma_custom_html_top_sub,
|
777 |
'acx_csma_custom_html_bottom_sub'=>$acx_csma_custom_html_bottom_sub,
|
778 |
'acx_csma_subscribe_bg_color5'=>$acx_csma_subscribe_bg_color5,
|
787 |
'acx_csma_custom_css_temp5'=>$acx_csma_custom_css_temp5
|
788 |
);
|
789 |
}
|
790 |
+
acx_csma_update_array_value($acx_csma_appearence_array);
|
|
|
|
|
|
|
|
|
791 |
}
|
792 |
?>
|
793 |
<div class="updated"><p><strong><?php _e('Coming Soon/Maintenance From Acurax Settings Saved!.'); ?></strong></p></div>
|
872 |
update_option('acx_csma_restrict_role',$acx_csma_restrict_role);
|
873 |
}
|
874 |
|
875 |
+
$acx_csma_appearence_array=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
876 |
$acx_csma_template = get_option('acx_csma_template');
|
877 |
if($acx_csma_template=="")
|
878 |
{
|
889 |
{
|
890 |
$acx_csma_custom_html_val = "<html><head><title>Page Under Maintenance</title></head><body>Sorry, This page is under maintenance.</body></html>";
|
891 |
$acx_csma_custom_html_val = trim($acx_csma_custom_html_val);
|
892 |
+
|
893 |
update_option('acx_csma_custom_html_val',$acx_csma_custom_html_val);
|
894 |
}
|
895 |
$acx_csma_auto_launch=get_option('acx_csma_auto_launch');
|
978 |
<td><?php _e("Google Analytics Tracking Code: " ); ?></td>
|
979 |
<td><textarea id="acx_csma_ga_trakng_code" name="acx_csma_ga_trakng_code" placeholder="Google Analytics Tracking Code Here"><?php echo stripslashes($acx_csma_ga_trakng_code); ?></textarea></td>
|
980 |
</tr>
|
|
|
|
|
981 |
</table>
|
982 |
+
<hr />
|
983 |
<table>
|
984 |
+
<tr><td><b><?php echo "<h4>" . __( 'Access Settings', 'acx_csma_config' ) . "</h4>"; ?></b></td></tr>
|
985 |
<tr><td><?php _e("Do not show maintenance page for the following IPs:"); ?></td></tr>
|
986 |
<tr>
|
987 |
<td><p><?php $acx_csma_ip_list=get_option('acx_csma_ip_list');if(is_serialized($acx_csma_ip_list)){$acx_csma_ip_list=unserialize($acx_csma_ip_list);}?>
|
990 |
{?>
|
991 |
<option selected><?php echo $value; ?></option><?php }?>
|
992 |
</select><br/><br/>
|
993 |
+
<?php $acx_csma_real_ip = acx_csma_getrealip(); ?>
|
994 |
+
<input type="text" name="acx_csma_txt_ip" id="acx_csma_txt_ip" value="<?php echo $acx_csma_real_ip; ?>"/>
|
995 |
<input type="button" name="acx_csma_add_list" id="acx_csma_add_list" class="button" value="add" onclick="acx_csma_addNewItem(acx_csma_ip_list1,acx_csma_txt_ip);"/>
|
996 |
<input type="button" name="acx_csma_del_list" id="acx_csma_del_list" class="button" value="delete" onClick="acx_csma_removeItem(acx_csma_ip_list1);"/></p>
|
997 |
</td></tr>
|
1022 |
</table>
|
1023 |
<?php acx_csma_hook_function('acx_csma_hook_mainoptions_below_general_settings'); ?>
|
1024 |
</div><!--acx_csma_tab_block_1-->
|
1025 |
+
<?php
|
1026 |
+
global $acx_csma_template_array;
|
1027 |
+
|
1028 |
+
?>
|
1029 |
<div id="acx_csma_tab_block_2" class="acx_csma_tab_block acx_csma_appearence" style="display:none;">
|
1030 |
<h3>Choose Your Template</h3>
|
1031 |
<div id="main">
|
1032 |
+
<?php $acx_csma_template = get_option('acx_csma_template');
|
1033 |
+
$acx_csma_base_template = get_option('acx_csma_base_template');
|
1034 |
+
foreach($acx_csma_template_array as $key => $value)
|
1035 |
+
{
|
1036 |
+
$acx_csma_max_val=$value['id'];
|
1037 |
+
}
|
1038 |
+
if($acx_csma_max_val < 6)
|
1039 |
+
{
|
1040 |
+
$acx_csma_template = $acx_csma_base_template;
|
1041 |
+
}
|
1042 |
+
?>
|
1043 |
+
<?php
|
1044 |
+
foreach($acx_csma_template_array as $key => $value)
|
1045 |
+
{
|
1046 |
+
if($key !== 0)
|
1047 |
+
{
|
1048 |
+
|
1049 |
+
?>
|
1050 |
+
<div id="img_holder">
|
1051 |
+
<label for="<?php echo $value['index']; ?>">
|
1052 |
+
<img src="<?php echo $value['thumb'].'images/template'.$value['id'].'.png'; ?>"></label><br /><input type="radio" name="acx_csma_template" id="<?php echo $value['index']; ?>" value="<?php echo $value['id']; ?>" <?php if ($acx_csma_template==$value['id']) {echo "checked=checked";} ?> onclick="acx_csma_rdbtn_show_div(<?php echo $value['id']; ?>);"/><?php echo $value['name']." "; ?><a href="<?php echo $value['path']."?acx_csma_preview=".$value['id']; ?>" target="_blank">Preview</a>
|
1053 |
+
</div>
|
1054 |
+
<?php
|
1055 |
+
}
|
1056 |
+
}
|
1057 |
+
foreach($acx_csma_template_array as $key => $value)
|
1058 |
+
{
|
1059 |
+
if($key === 0)
|
1060 |
+
{
|
1061 |
+
?>
|
1062 |
+
<div id="img_holder">
|
1063 |
+
<label for="<?php echo $value['index']; ?>">
|
1064 |
+
<img src="<?php echo $value['thumb'].'images/template'.$value['id'].'.png'; ?>"></label><br /><input type="radio" name="acx_csma_template" id="<?php echo $value['index']; ?>" value="<?php echo $value['id']; ?>" <?php if ($acx_csma_template==$value['id']) {echo "checked=checked";}?> onclick="acx_csma_rdbtn_show_div(<?php echo $value['id']; ?>);"/><?php echo $value['name']." "; ?><a href="<?php echo $value['path']."?acx_csma_preview=".$value['id']; ?>" target="_blank">Preview</a>
|
1065 |
+
</div>
|
1066 |
+
<?php
|
1067 |
+
}
|
1068 |
+
}
|
1069 |
+
?>
|
1070 |
+
|
1071 |
<?php acx_csma_hook_function('acx_csma_hook_mainoptions_below_add_template'); ?>
|
1072 |
</div> <!-- main -->
|
1073 |
|
1074 |
|
1075 |
|
1076 |
<?php
|
1077 |
+
$acx_csma_appearence_array=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
1078 |
?>
|
1079 |
<div id="acx_csma_template_1" style="display:none;" class="acx_csma_template_option_holder">
|
1080 |
<div id="acx_csma_1_p_q_and_a_h_main_holder">
|
1101 |
|
1102 |
<img id="custom_uploader_template_1_img_field_preview" src="<?php echo $bg_image1_url; ?>" style="width:100px;height:auto;">
|
1103 |
<input type="hidden" id="custom_uploader_template_1_img_field" name="acx_csma_background_image1" value="<?php echo $acx_csma_background_image1_id; ?>" size="20">
|
1104 |
+
<br>
|
1105 |
<a id="acx_upload_button_img1" class="button">Choose Image</a>
|
1106 |
<a id="acx_upload_button_reset_img1" onclick="acx_csma_restore_default('custom_uploader_template_1_img_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/1/images/body_bg.jpg'; ?>','custom_uploader_template_1_img_field');" class="button">Reset To Default</a>
|
1107 |
</div> <!-- acx_qa_field -->
|
1142 |
</label>
|
1143 |
<div class="acx_qa_field">
|
1144 |
<img id="custom_uploader_template_1_logo_field_preview" src="<?php echo $logo1_url; ?>" style="width:100px;height:auto;">
|
1145 |
+
<input type="hidden" id="custom_uploader_template_1_logo_field" name="acx_csma_logo1" value="<?php echo $acx_csma_logo1_id; ?>" size="20"><br><a id="acx_upload_button_logo1" class="button">Pick a Logo</a>
|
1146 |
<a id="acx_upload_button_reset_logo1" onclick="acx_csma_restore_default('custom_uploader_template_1_logo_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/1/images/logo.png'; ?>','custom_uploader_template_1_logo_field');" class="button">Reset To Default</a>
|
1147 |
</div> <!-- acx_qa_field -->
|
1148 |
</div> <!-- acx_show_logo_image-->
|
1158 |
}}else{
|
1159 |
$acx_csma_logo_text1=get_bloginfo('name');
|
1160 |
}?>
|
1161 |
+
<input type="text" name="acx_csma_logo_text1" placeholder="Logo Text Here" value="<?php echo $acx_csma_logo_text1 = acx_csma_option_text_after_save_hook_fn($acx_csma_logo_text1); ?>" size="20"/>
|
1162 |
</div> <!-- acx_qa_field -->
|
1163 |
<label>
|
1164 |
Logo Text Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_logo_text_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
1189 |
Title Text:
|
1190 |
</label>
|
1191 |
<div class="acx_qa_field">
|
1192 |
+
<?php $acx_csma_title1 = $acx_csma_appearence_array['1']['acx_csma_title1']; ?>
|
1193 |
+
<input type="text" name="acx_csma_title1" id="acx_csma_title1" value="<?php echo $acx_csma_title1 = acx_csma_option_text_after_save_hook_fn($acx_csma_title1); ?>" size="20"/>
|
1194 |
</div> <!-- acx_qa_field -->
|
1195 |
<label>
|
1196 |
Title Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_title_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
1203 |
Subtitle Text:
|
1204 |
</label>
|
1205 |
<div class="acx_qa_field">
|
1206 |
+
<?php $acx_csma_subtitle_text1 = $acx_csma_appearence_array['1']['acx_csma_subtitle_text1']; ?>
|
1207 |
+
<input type="text" name="acx_csma_subtitle_text1" id="acx_csma_subtitle_text1" value="<?php echo $acx_csma_subtitle_text1 = acx_csma_option_text_after_save_hook_fn($acx_csma_subtitle_text1); ?>" size="20"/>
|
1208 |
</div> <!-- acx_qa_field -->
|
1209 |
<label>
|
1210 |
Subtitle Color:<a onclick="acx_csma_restore_default('','#fffaa9','acx_csma_subtitle_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
1232 |
</label>
|
1233 |
<div class="acx_qa_field">
|
1234 |
<?php $acx_csma_custom_html_top_temp1 = $acx_csma_appearence_array['1']['acx_csma_custom_html_top_temp1']; ?>
|
1235 |
+
<textarea id="acx_csma_custom_html_top_temp1" name="acx_csma_custom_html_top_temp1" placeholder="HTML Code Here"><?php echo $temp_html1 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp1); ?></textarea>
|
1236 |
</div><!-- acx_qa_field -->
|
1237 |
<div class="f_w"></div>
|
1238 |
<label>
|
1246 |
Title:
|
1247 |
</label>
|
1248 |
<div class="acx_qa_field">
|
1249 |
+
<?php $acx_csma_inside_title1 = $acx_csma_appearence_array['1']['acx_csma_inside_title1']; ?>
|
1250 |
+
<input type="text" name="acx_csma_inside_title1" value="<?php echo $acx_csma_inside_title1 = acx_csma_option_text_after_save_hook_fn($acx_csma_inside_title1); ?>" size="20"/>
|
1251 |
</div> <!-- acx_qa_field -->
|
1252 |
<label>
|
1253 |
+
Custom HTML Block below the tittle
|
1254 |
+
</label>
|
1255 |
+
<div class="acx_qa_field">
|
1256 |
+
<?php $acx_csma_custom_html_top_temp1_title = $acx_csma_appearence_array['1']['acx_csma_custom_html_top_temp1_title']; ?>
|
1257 |
+
<textarea id="acx_csma_custom_html_top_temp1_title" name="acx_csma_custom_html_top_temp1_title" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_top_temp1_title = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp1_title); ?></textarea>
|
1258 |
+
</div><!-- acx_qa_field -->
|
1259 |
+
<div class="f_w"></div>
|
1260 |
+
<label>
|
1261 |
Title Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_inside_title_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
1262 |
</label>
|
1263 |
<div class="acx_qa_field">
|
1269 |
</label>
|
1270 |
<div class="acx_qa_field">
|
1271 |
<?php $acx_csma_custom_html_bottom_temp1 =$acx_csma_appearence_array['1']['acx_csma_custom_html_bottom_temp1']; ?>
|
1272 |
+
<textarea id="acx_csma_custom_html_bottom_temp1" name="acx_csma_custom_html_bottom_temp1" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_bottom_temp1 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_temp1); ?></textarea>
|
1273 |
|
1274 |
</div><!-- acx_qa_field -->
|
1275 |
</div> <!-- acx_csmap_q_and_a_inside -->
|
1348 |
</label>
|
1349 |
<div class="acx_qa_field">
|
1350 |
<?php $acx_csma_custom_html_top_sub1 = $acx_csma_appearence_array['1']['acx_csma_custom_html_top_sub1']; ?>
|
1351 |
+
<textarea id="acx_csma_custom_html_top_sub1" name="acx_csma_custom_html_top_sub1" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_top_sub1 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_sub1); ?></textarea>
|
1352 |
</div><!-- acx_qa_field -->
|
1353 |
<div class="f_w"></div>
|
1354 |
|
1356 |
Custom HTML Block Below Subscription form
|
1357 |
</label>
|
1358 |
<div class="acx_qa_field">
|
1359 |
+
<?php $acx_csma_custom_html_bottom_sub1 = $acx_csma_appearence_array['1']['acx_csma_custom_html_bottom_sub1']; ?>
|
1360 |
+
<textarea id="acx_csma_custom_html_bottom_sub1" name="acx_csma_custom_html_bottom_sub1" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_bottom_sub1 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_sub1); ?></textarea>
|
1361 |
</div><!-- acx_qa_field -->
|
1362 |
<div class="f_w"></div>
|
1363 |
<!-- **********************************************************************-->
|
1377 |
Button Text
|
1378 |
</label>
|
1379 |
<div class="acx_qa_field">
|
1380 |
+
<?php $acx_csma_subscribe_btn_text1 = $acx_csma_appearence_array['1']['acx_csma_subscribe_btn_text1']; ?>
|
1381 |
+
<input type="text" name="acx_csma_subscribe_btn_text1" value="<?php echo $acx_csma_subscribe_btn_text1 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_btn_text1); ?>" size="20"/>
|
1382 |
</div> <!-- acx_qa_field -->
|
1383 |
|
1384 |
<label>
|
1413 |
Subscribe Title:
|
1414 |
</label>
|
1415 |
<div class="acx_qa_field">
|
1416 |
+
<?php $acx_csma_subscribe_title1 = $acx_csma_appearence_array['1']['acx_csma_subscribe_title1']; ?>
|
1417 |
+
<input type="text" name="acx_csma_subscribe_title1" value="<?php echo $acx_csma_subscribe_title1 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_title1); ?>" size="20"/>
|
1418 |
</div> <!-- acx_qa_field -->
|
1419 |
<label>
|
1420 |
Subscribe Title Color:<a onclick="acx_csma_restore_default('','#ff7800','acx_csma_subscribe_title_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
1427 |
Subscribe Success Message:
|
1428 |
</label>
|
1429 |
<div class="acx_qa_field">
|
1430 |
+
<?php $acx_csma_subscribe_success1 = $acx_csma_appearence_array['1']['acx_csma_subscribe_success1']; ?>
|
1431 |
+
<input type="text" name="acx_csma_subscribe_success1" value="<?php echo $acx_csma_subscribe_success1 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_success1); ?>" size="20"/>
|
1432 |
</div> <!-- acx_qa_field -->
|
1433 |
<label>
|
1434 |
Subscribe Invalid Message:
|
1435 |
</label>
|
1436 |
<div class="acx_qa_field">
|
1437 |
+
<?php $acx_csma_subscribe_invalid1 = $acx_csma_appearence_array['1']['acx_csma_subscribe_invalid1']; ?>
|
1438 |
+
<input type="text" name="acx_csma_subscribe_invalid1" value="<?php echo $acx_csma_subscribe_invalid1 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_invalid1); ?>" size="20"/>
|
1439 |
</div> <!-- acx_qa_field -->
|
1440 |
|
1441 |
</div> <!-- acx_csmap_q_and_a_inside -->
|
1464 |
Footer Text:
|
1465 |
</label>
|
1466 |
<div class="acx_qa_field">
|
1467 |
+
<?php $acx_csma_footer_text1 = $acx_csma_appearence_array['1']['acx_csma_footer_text1']; ?>
|
1468 |
+
<input type="text" name="acx_csma_footer_text1" value="<?php echo $acx_csma_footer_text1 = acx_csma_option_text_after_save_hook_fn($acx_csma_footer_text1); ?>" size="20"/>
|
1469 |
</div> <!-- acx_qa_field -->
|
1470 |
<label>
|
1471 |
Footer Text Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_footer_text_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
1568 |
|
1569 |
?>
|
1570 |
<img id="custom_uploader_template_2_logo_field_preview" src="<?php echo $logo2_url; ?>" style="width:100px;height:auto;">
|
1571 |
+
<input type="hidden" id="custom_uploader_template_2_logo_field" name="acx_csma_logo2" value="<?php echo $acx_csma_logo2_id; ?>" size="20">
|
1572 |
+
<br>
|
1573 |
+
<a id="acx_upload_button_logo2" class="button">Pick a Logo</a>
|
1574 |
<a id="acx_upload_button_logo2" onclick="acx_csma_restore_default('custom_uploader_template_2_logo_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/2/images/logo.png'; ?>','custom_uploader_template_2_logo_field');" class="button">Reset To Default</a>
|
1575 |
</div> <!-- acx_qa_field -->
|
1576 |
</div><!--acx_show_logo_image-->
|
1586 |
}}else{
|
1587 |
$acx_csma_logo_text2=get_bloginfo('name');
|
1588 |
}?>
|
1589 |
+
<input type="text" name="acx_csma_logo_text2" placeholder="Logo Text Here" value="<?php echo $acx_csma_logo_text2 = acx_csma_option_text_after_save_hook_fn($acx_csma_logo_text2); ?>" size="20"/>
|
1590 |
</div> <!-- acx_qa_field -->
|
1591 |
<label>
|
1592 |
Logo Text Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_logo_text_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
1619 |
Title Text :
|
1620 |
</label>
|
1621 |
<div class="acx_qa_field">
|
1622 |
+
<?php $acx_csma_title2 = $acx_csma_appearence_array['2']['acx_csma_title2']; ?>
|
1623 |
+
<input type="text" name="acx_csma_title2" id="acx_csma_title2" value="<?php echo $acx_csma_title2 = acx_csma_option_text_after_save_hook_fn($acx_csma_title2); ?>" size="20"/>
|
1624 |
</div> <!-- acx_qa_field -->
|
1625 |
<label>
|
1626 |
Title Color:
|
1635 |
Subtitle Text:
|
1636 |
</label>
|
1637 |
<div class="acx_qa_field">
|
1638 |
+
<?php $acx_csma_subtitle_text2 = $acx_csma_appearence_array['2']['acx_csma_subtitle_text2']; ?>
|
1639 |
+
<input type="text" name="acx_csma_subtitle_text2" id="acx_csma_subtitle_text2" value="<?php echo $acx_csma_subtitle_text2 = acx_csma_option_text_after_save_hook_fn($acx_csma_subtitle_text2); ?>" size="20"/>
|
1640 |
</div> <!-- acx_qa_field -->
|
1641 |
<label>
|
1642 |
Subtitle Color:
|
1666 |
<span class="acx_csma_toggle acx_csma_toggle_<?php echo $acx_csmap_qa_id; ?> plus" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);"></span>
|
1667 |
<div id="acx_csmap_q_and_a" class="acx_csmap_q_and_a_common acx_csmap_q_and_a_<?php echo $acx_csmap_qa_id; ?>" style="display:none;">
|
1668 |
<div class="acx_csmap_q_and_a_inside">
|
1669 |
+
<label>
|
1670 |
+
Would you like to show Timer?
|
1671 |
+
</label>
|
1672 |
+
<div class="acx_qa_field">
|
1673 |
+
<select name="acx_csma_show_timer2">
|
1674 |
+
<option value="1" <?php if ($acx_csma_appearence_array['2']['acx_csma_show_timer2'] == "1") { echo 'selected="selected"'; } ?>>Yes </option>
|
1675 |
+
<option value="0" <?php if ($acx_csma_appearence_array['2']['acx_csma_show_timer2'] == "0") { echo 'selected="selected"'; } ?>>No</option>
|
1676 |
+
</select>
|
1677 |
+
</div>
|
1678 |
+
<label>
|
1679 |
+
Custom HTML Block above Timer
|
1680 |
+
</label>
|
1681 |
+
<div class="acx_qa_field">
|
1682 |
+
<?php $acx_csma_custom_html_above_timer =$acx_csma_appearence_array['2']['acx_csma_custom_html_above_timer']; ?>
|
1683 |
+
<textarea id="acx_csma_custom_html_above_timer" name="acx_csma_custom_html_above_timer" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_above_timer = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_above_timer); ?></textarea>
|
1684 |
+
</div><!-- acx_qa_field -->
|
1685 |
+
<div class="f_w"></div>
|
1686 |
<label>
|
1687 |
Custom HTML Block below Timer
|
1688 |
</label>
|
1689 |
<div class="acx_qa_field">
|
1690 |
<?php $acx_csma_custom_html_top_timer =$acx_csma_appearence_array['2']['acx_csma_custom_html_top_timer']; ?>
|
1691 |
+
<textarea id="acx_csma_custom_html_top_timer" name="acx_csma_custom_html_top_timer" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_top_timer = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_timer); ?></textarea>
|
1692 |
</div><!-- acx_qa_field -->
|
1693 |
<div class="f_w"></div>
|
1694 |
<label>
|
1695 |
Timer Block Title
|
1696 |
</label>
|
1697 |
<div class="acx_qa_field">
|
1698 |
+
<?php $acx_csma_timer_title2 = $acx_csma_appearence_array['2']['acx_csma_timer_title2']; ?>
|
1699 |
+
<input type="text" name="acx_csma_timer_title2" value="<?php echo $acx_csma_timer_title2 = acx_csma_option_text_after_save_hook_fn($acx_csma_timer_title2); ?>" size="20"/>
|
1700 |
</div> <!-- acx_qa_field -->
|
1701 |
<label>
|
1702 |
Would you like to show Subscription form?
|
1707 |
<option value="0" <?php if ($acx_csma_appearence_array['2']['acx_csma_show_subscription2'] == "0") { echo 'selected="selected"'; } ?>>No</option>
|
1708 |
</select>
|
1709 |
</div>
|
1710 |
+
<label>
|
1711 |
+
Subscribe Button Text
|
1712 |
+
</label>
|
1713 |
+
<div class="acx_qa_field">
|
1714 |
+
<?php $acx_csma_subscribe_btn_text2 = $acx_csma_appearence_array['2']['acx_csma_subscribe_btn_text2']; ?>
|
1715 |
+
<input type="text" name="acx_csma_subscribe_btn_text2" value="<?php echo $acx_csma_subscribe_btn_text2 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_btn_text2); ?>" size="20"/>
|
1716 |
+
</div> <!-- acx_qa_field -->
|
1717 |
<label>Subscribe Button TextColor:<a onclick="acx_csma_restore_default('','#ffd800','acx_csma_subscribe_btn_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
1718 |
</label>
|
1719 |
<div class="acx_qa_field">
|
1724 |
Subscribe Success Message:
|
1725 |
</label>
|
1726 |
<div class="acx_qa_field">
|
1727 |
+
<?php $acx_csma_subscribe_success2 = $acx_csma_appearence_array['2']['acx_csma_subscribe_success2']; ?>
|
1728 |
+
<input type="text" name="acx_csma_subscribe_success2" value="<?php echo $acx_csma_subscribe_success2 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_success2); ?>" size="20"/>
|
1729 |
</div> <!-- acx_qa_field -->
|
1730 |
<label>
|
1731 |
Subscribe Invalid Message:
|
1732 |
</label>
|
1733 |
<div class="acx_qa_field">
|
1734 |
+
<?php $acx_csma_subscribe_invalid2 = $acx_csma_appearence_array['2']['acx_csma_subscribe_invalid2'] ;?>
|
1735 |
+
<input type="text" name="acx_csma_subscribe_invalid2" value="<?php echo $acx_csma_subscribe_invalid2 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_invalid2); ?>" size="20"/>
|
1736 |
</div> <!-- acx_qa_field -->
|
1737 |
|
1738 |
<label>
|
1761 |
</label>
|
1762 |
<div class="acx_qa_field">
|
1763 |
<?php $acx_csma_custom_html_top_temp2 =$acx_csma_appearence_array['2']['acx_csma_custom_html_top_temp2']; ?>
|
1764 |
+
<textarea id="acx_csma_custom_html_top_temp2" name="acx_csma_custom_html_top_temp2" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_top_temp2 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp2); ?></textarea>
|
1765 |
</div><!-- acx_qa_field -->
|
1766 |
<div class="f_w"></div>
|
1767 |
<label>
|
1768 |
Description Title:
|
1769 |
</label>
|
1770 |
<div class="acx_qa_field">
|
1771 |
+
<?php $acx_csma_desc_title2 = $acx_csma_appearence_array['2']['acx_csma_desc_title2']; ?>
|
1772 |
+
<input type="text" name="acx_csma_desc_title2" id="acx_csma_desc_title2" value="<?php echo $acx_csma_desc_title2 = acx_csma_option_text_after_save_hook_fn($acx_csma_desc_title2); ?>" size="20"/>
|
1773 |
</div> <!-- acx_qa_field -->
|
1774 |
<label>
|
1775 |
Description Content:
|
1776 |
</label>
|
1777 |
<div class="acx_qa_field">
|
1778 |
+
<?php $acx_csma_desc_subtitle2 = $acx_csma_appearence_array['2']['acx_csma_desc_subtitle2'];?>
|
1779 |
+
<textarea name="acx_csma_desc_subtitle2" id="acx_csma_desc_subtitle2"><?php echo $acx_csma_desc_subtitle2 = acx_csma_textarea_after_save_hook_function($acx_csma_desc_subtitle2); ?> </textarea>
|
1780 |
</div> <!-- acx_qa_field -->
|
1781 |
<div class="f_w"></div>
|
1782 |
<label>
|
1884 |
?>
|
1885 |
|
1886 |
<img id="custom_uploader_template_3_logo_field_preview" src="<?php echo $logo3_url; ?>" style="width:100px;height:auto;">
|
1887 |
+
<input type="hidden" id="custom_uploader_template_3_logo_field" name="acx_csma_logo3" value="<?php echo $acx_csma_logo3_id; ?>" size="20"><br><a id="acx_upload_button_logo3" class="button">Pick a Logo</a>
|
1888 |
<a id="acx_upload_button_reset_img1" onclick="acx_csma_restore_default('custom_uploader_template_3_logo_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/3/images/logo.png'; ?>','custom_uploader_template_3_logo_field');" class="button">Reset To Default</a>
|
1889 |
|
1890 |
</div> <!-- acx_qa_field -->
|
1901 |
}}else{
|
1902 |
$acx_csma_logo_text3=get_bloginfo('name');
|
1903 |
}?>
|
1904 |
+
<input type="text" name="acx_csma_logo_text3" placeholder="Logo Text Here" value="<?php echo $acx_csma_logo_text3 = acx_csma_option_text_after_save_hook_fn($acx_csma_logo_text3); ?>" size="20"/>
|
1905 |
</div> <!-- acx_qa_field -->
|
1906 |
<label>
|
1907 |
Logo Text Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_logo_text_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
1989 |
Title:
|
1990 |
</label>
|
1991 |
<div class="acx_qa_field">
|
1992 |
+
<?php $acx_csma_title3 = $acx_csma_appearence_array['3']['acx_csma_title3'];?>
|
1993 |
+
<input type="text" name="acx_csma_title3" value="<?php echo $acx_csma_title3 = acx_csma_option_text_after_save_hook_fn($acx_csma_title3); ?>" size="20"/>
|
1994 |
</div> <!-- acx_qa_field -->
|
1995 |
<label>
|
1996 |
Title Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
2003 |
Sub Title:
|
2004 |
</label>
|
2005 |
<div class="acx_qa_field">
|
2006 |
+
<?php $acx_csma_subtitle_text3 = $acx_csma_appearence_array['3']['acx_csma_subtitle_text3']; ?>
|
2007 |
+
<input type="text" name="acx_csma_subtitle_text3" value="<?php echo $acx_csma_subtitle_text3 = acx_csma_option_text_after_save_hook_fn($acx_csma_subtitle_text3); ?>" size="20"/>
|
2008 |
</div> <!-- acx_qa_field -->
|
2009 |
<label>
|
2010 |
SubTitle Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_subtitle_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
2041 |
Title:
|
2042 |
</label>
|
2043 |
<div class="acx_qa_field">
|
2044 |
+
<?php $acx_csma_subscribe_title3 = $acx_csma_appearence_array['3']['acx_csma_subscribe_title3'];?>
|
2045 |
+
<input type="text" name="acx_csma_subscribe_title3" value="<?php echo $acx_csma_subscribe_title3 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_title3); ?>" size="20"/>
|
2046 |
</div> <!-- acx_qa_field -->
|
2047 |
<label>
|
2048 |
Title Color:<a onclick="acx_csma_restore_default('','#fe7e01','acx_csma_subscribe_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
2055 |
Button Text
|
2056 |
</label>
|
2057 |
<div class="acx_qa_field">
|
2058 |
+
<?php $acx_csma_subscribe_btn_text3 = $acx_csma_appearence_array['3']['acx_csma_subscribe_btn_text3']; ?>
|
2059 |
+
<input type="text" name="acx_csma_subscribe_btn_text3" value="<?php echo $acx_csma_subscribe_btn_text3 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_btn_text3); ?>" size="20"/>
|
2060 |
</div> <!-- acx_qa_field -->
|
2061 |
<label>
|
2062 |
Button Text Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_subscribe_btn_text_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
2090 |
Subscribe Success Message:
|
2091 |
</label>
|
2092 |
<div class="acx_qa_field">
|
2093 |
+
<?php $acx_csma_subscribe_success3 = $acx_csma_appearence_array['3']['acx_csma_subscribe_success3']; ?>
|
2094 |
+
<input type="text" name="acx_csma_subscribe_success3" value="<?php echo $acx_csma_subscribe_success3 =acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_success3); ?>" size="20"/>
|
2095 |
</div> <!-- acx_qa_field -->
|
2096 |
<label>
|
2097 |
Subscribe Invalid Message:
|
2098 |
</label>
|
2099 |
<div class="acx_qa_field">
|
2100 |
+
<?php $acx_csma_subscribe_invalid3 = $acx_csma_appearence_array['3']['acx_csma_subscribe_invalid3']; ?>
|
2101 |
+
<input type="text" name="acx_csma_subscribe_invalid3" value="<?php echo $acx_csma_subscribe_invalid3 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_invalid3); ?>" size="20"/>
|
2102 |
</div> <!-- acx_qa_field -->
|
2103 |
</div> <!-- acx_csmap_q_and_a_inside -->
|
2104 |
</div> <!-- acx_csmap_q_and_a -->
|
2118 |
Title:
|
2119 |
</label>
|
2120 |
<div class="acx_qa_field">
|
2121 |
+
<?php $acx_csma_inside_title3 = $acx_csma_appearence_array['3']['acx_csma_inside_title3']; ?>
|
2122 |
+
<input type="text" name="acx_csma_inside_title3" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_csma_appearence_array['3']['acx_csma_inside_title3']); ?>" size="20"/>
|
2123 |
</div> <!-- acx_qa_field -->
|
2124 |
<label>
|
2125 |
Title Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_inside_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
2158 |
</label>
|
2159 |
<div class="acx_qa_field">
|
2160 |
<?php $acx_csma_custom_html_top_timer_temp3 = $acx_csma_appearence_array['3']['acx_csma_custom_html_top_timer_temp3']; ?>
|
2161 |
+
<textarea id="acx_csma_custom_html_top_timer_temp3" name="acx_csma_custom_html_top_timer_temp3" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_top_timer_temp3 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_timer_temp3); ?></textarea>
|
2162 |
</div><!-- acx_qa_field -->
|
2163 |
<div class="f_w"></div>
|
2164 |
|
2167 |
</label>
|
2168 |
<div class="acx_qa_field">
|
2169 |
<?php $acx_csma_custom_html_bottom_temp3 =$acx_csma_appearence_array['3']['acx_csma_custom_html_bottom_temp3']; ?>
|
2170 |
+
<textarea id="acx_csma_custom_html_bottom_temp3" name="acx_csma_custom_html_bottom_temp3" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_bottom_temp3 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_temp3); ?></textarea>
|
2171 |
</div><!-- acx_qa_field -->
|
2172 |
<div class="f_w"></div>
|
2173 |
|
2190 |
</label>
|
2191 |
<div class="acx_qa_field">
|
2192 |
<?php $acx_csma_custom_html_top_temp3 =$acx_csma_appearence_array['3']['acx_csma_custom_html_top_temp3']; ?>
|
2193 |
+
<textarea id="acx_csma_custom_html_top_temp3" name="acx_csma_custom_html_top_temp3" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_top_temp3 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp3); ?></textarea>
|
2194 |
</div><!-- acx_qa_field -->
|
2195 |
<div class="f_w"></div>
|
2196 |
<label>
|
2197 |
Description Title:
|
2198 |
</label>
|
2199 |
<div class="acx_qa_field">
|
2200 |
+
<?php $acx_csma_desc_title3 = $acx_csma_appearence_array['3']['acx_csma_desc_title3']; ?>
|
2201 |
+
<input type="text" name="acx_csma_desc_title3" value="<?php echo $acx_csma_desc_title3 = acx_csma_option_text_after_save_hook_fn($acx_csma_desc_title3); ?>" size="20"/>
|
2202 |
</div> <!-- acx_qa_field -->
|
2203 |
<label>
|
2204 |
Description Sub Title:
|
2205 |
</label>
|
2206 |
<div class="acx_qa_field">
|
2207 |
+
<?php $acx_csma_desc_subtitle3 = $acx_csma_appearence_array['3']['acx_csma_desc_subtitle3']; ?>
|
2208 |
+
<textarea name="acx_csma_desc_subtitle3" id="acx_csma_desc_subtitle3" ><?php echo $acx_csma_desc_subtitle3 = acx_csma_textarea_after_save_hook_function($acx_csma_desc_subtitle3); ?></textarea>
|
2209 |
</div> <!-- acx_qa_field -->
|
2210 |
<div class="f_w"></div>
|
2211 |
<label>
|
2232 |
Footer Text:
|
2233 |
</label>
|
2234 |
<div class="acx_qa_field">
|
2235 |
+
<?php $acx_csma_footer_text3 = $acx_csma_appearence_array['3']['acx_csma_footer_text3']; ?>
|
2236 |
+
<input type="text" name="acx_csma_footer_text3" value="<?php echo $acx_csma_footer_text3 = acx_csma_option_text_after_save_hook_fn($acx_csma_footer_text3); ?>" size="20"/>
|
2237 |
</div> <!-- acx_qa_field -->
|
2238 |
<label>
|
2239 |
Footer Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_footer_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
2261 |
Social Media Text:
|
2262 |
</label>
|
2263 |
<div class="acx_qa_field">
|
2264 |
+
<?php $acx_csma_social_link_title3 = $acx_csma_appearence_array['3']['acx_csma_social_link_title3']; ?>
|
2265 |
+
<input type="text" name="acx_csma_social_link_title3" value="<?php echo $acx_csma_social_link_title3 = acx_csma_option_text_after_save_hook_fn($acx_csma_social_link_title3 ); ?>" size="20"/>
|
2266 |
</div> <!-- acx_qa_field -->
|
2267 |
<label>
|
2268 |
Social Media Text Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_social_link_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
2348 |
?>
|
2349 |
<img id="custom_uploader_template_4_img_field_preview" src="<?php echo $bg4_url; ?>" style="width:100px;height:auto;">
|
2350 |
<input type="hidden" id="custom_uploader_template_4_img_field" name="acx_csma_background_image4" value="<?php echo $acx_csma_bg4_id; ?>" size="20">
|
2351 |
+
<br>
|
2352 |
<a id="acx_upload_button_img4" class="button">Choose Image</a>
|
2353 |
<a id="acx_upload_button_reset_img1" onclick="acx_csma_restore_default('custom_uploader_template_4_img_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/4/images/body_bg.jpg'; ?>','custom_uploader_template_4_img_field');" class="button">Reset To Default</a>
|
2354 |
</div> <!-- acx_qa_field -->
|
2389 |
?>
|
2390 |
|
2391 |
<img id="custom_uploader_template_4_logo_field_preview" src="<?php echo $logo4_url; ?>" style="width:100px;height:auto;">
|
2392 |
+
<input type="hidden" id="custom_uploader_template_4_logo_field" name="acx_csma_logo4" value="<?php echo $acx_csma_logo4_id; ?>" size="20">
|
2393 |
+
<br>
|
2394 |
+
<a id="acx_upload_button_logo4" class="button">Pick a Logo</a>
|
2395 |
<a id="acx_upload_button_reset_img1" onclick="acx_csma_restore_default('custom_uploader_template_4_logo_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/4/images/logo.png'; ?>','custom_uploader_template_4_logo_field');" class="button">Reset To Default</a>
|
2396 |
</div> <!-- acx_qa_field -->
|
2397 |
</div><!--acx_show_logo_image-->
|
2408 |
else{
|
2409 |
$acx_csma_logo_text4=get_bloginfo('name');
|
2410 |
}?>
|
2411 |
+
<input type="text" name="acx_csma_logo_text4" placeholder="Logo Text Here" value="<?php echo $acx_csma_logo_text4 = acx_csma_option_text_after_save_hook_fn($acx_csma_logo_text4); ?>" size="20"/>
|
2412 |
</div> <!-- acx_qa_field -->
|
2413 |
<label>
|
2414 |
Logo Text Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_logo_text_color4');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
2449 |
Title Text:
|
2450 |
</label>
|
2451 |
<div class="acx_qa_field">
|
2452 |
+
<?php $acx_csma_title4 = $acx_csma_appearence_array['4']['acx_csma_title4']; ?>
|
2453 |
+
<input type="text" name="acx_csma_title4" value="<?php echo $acx_csma_title4 = acx_csma_option_text_after_save_hook_fn($acx_csma_title4); ?>" size="20"/>
|
2454 |
</div> <!-- acx_qa_field -->
|
2455 |
<label>
|
2456 |
Custom HTML Block Above Countdown Timer
|
2457 |
</label>
|
2458 |
<div class="acx_qa_field">
|
2459 |
<?php $acx_csma_custom_html_top_temp4 =$acx_csma_appearence_array['4']['acx_csma_custom_html_top_temp4']; ?>
|
2460 |
+
<textarea id="acx_csma_custom_html_top_temp4" name="acx_csma_custom_html_top_temp4" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_top_temp4 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp4); ?></textarea>
|
2461 |
</div><!-- acx_qa_field -->
|
2462 |
<div class="f_w"></div>
|
2463 |
<label>
|
2526 |
</label>
|
2527 |
<div class="acx_qa_field">
|
2528 |
<?php $acx_csma_custom_html_bottom_temp4 =$acx_csma_appearence_array['4']['acx_csma_custom_html_bottom_temp4']; ?>
|
2529 |
+
<textarea id="acx_csma_custom_html_bottom_temp4" name="acx_csma_custom_html_bottom_temp4" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_bottom_temp4 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_temp4); ?></textarea>
|
2530 |
</div><!-- acx_qa_field -->
|
2531 |
</div> <!-- acx_csmap_q_and_a_inside -->
|
2532 |
</div> <!-- acx_csmap_q_and_a -->
|
2644 |
|
2645 |
?>
|
2646 |
<img id="custom_uploader_template_5_logo_field_preview" src="<?php echo $logo5_url; ?>" style="width:100px;height:auto;">
|
2647 |
+
<input type="hidden" id="custom_uploader_template_5_logo_field" name="acx_csma_logo5" value="<?php echo $acx_csma_logo5_id ; ?>" size="20">
|
2648 |
+
<br>
|
2649 |
+
<a id="acx_upload_button_logo5" class="button">Pick a Logo</a>
|
2650 |
<a id="acx_upload_button_reset_img1" onclick="acx_csma_restore_default('custom_uploader_template_5_logo_field_preview','<?php echo ACX_CSMA_BASE_LOCATION . 'templates/5/images/logo.png'; ?>','custom_uploader_template_5_logo_field');" class="button">Reset To Default</a>
|
2651 |
</div> <!-- acx_qa_field -->
|
2652 |
</div> <!-- acx_show_logo_image -->
|
2662 |
}}else{
|
2663 |
$acx_csma_logo_text5=get_bloginfo('name');
|
2664 |
}?>
|
2665 |
+
<input type="text" name="acx_csma_logo_text5" placeholder="Logo Text Here" value="<?php echo $acx_csma_logo_text5 = acx_csma_option_text_after_save_hook_fn($acx_csma_logo_text5); ?>" size="20"/>
|
2666 |
</div> <!-- acx_qa_field -->
|
2667 |
<label>
|
2668 |
Logo Text Color: <a onclick="acx_csma_restore_default('','#000000','acx_csma_logo_text_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
2714 |
Title Text:
|
2715 |
</label>
|
2716 |
<div class="acx_qa_field">
|
2717 |
+
<?php $acx_csma_title5 = $acx_csma_appearence_array['5']['acx_csma_title5'];?>
|
2718 |
+
<input type="text" name="acx_csma_title5" value="<?php echo $acx_csma_title5 = acx_csma_option_text_after_save_hook_fn($acx_csma_title5); ?>" size="20"/>
|
2719 |
</div> <!-- acx_qa_field -->
|
2720 |
<label>
|
2721 |
Custom HTML Block Above Countdown Timer
|
2722 |
</label>
|
2723 |
<div class="acx_qa_field">
|
2724 |
<?php $acx_csma_custom_html_top_temp5 =$acx_csma_appearence_array['5']['acx_csma_custom_html_top_temp5']; ?>
|
2725 |
+
<textarea id="acx_csma_custom_html_top_temp5" name="acx_csma_custom_html_top_temp5" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_top_temp5 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp5); ?></textarea>
|
2726 |
</div><!-- acx_qa_field -->
|
2727 |
<div class="f_w"></div>
|
2728 |
<label>
|
2789 |
</label>
|
2790 |
<div class="acx_qa_field">
|
2791 |
<?php $acx_csma_custom_html_bottom_temp5 =$acx_csma_appearence_array['5']['acx_csma_custom_html_bottom_temp5']; ?>
|
2792 |
+
<textarea id="acx_csma_custom_html_bottom_temp5" name="acx_csma_custom_html_bottom_temp5" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_bottom_temp5 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_temp5); ?></textarea>
|
2793 |
</div><!-- acx_qa_field -->
|
2794 |
</div><!-- acx_csmap_q_and_a_inside -->
|
2795 |
</div> <!-- acx_csmap_q_and_a -->
|
2813 |
<option value="0" <?php if ($acx_csma_appearence_array['5']['acx_csma_show_subscription5'] == "0") { echo 'selected="selected"'; } ?>>No</option>
|
2814 |
</select>
|
2815 |
</div>
|
2816 |
+
|
2817 |
<label>
|
2818 |
Custom HTML Block Above Subscription form
|
2819 |
</label>
|
2820 |
<div class="acx_qa_field">
|
2821 |
<?php $acx_csma_custom_html_top_sub = $acx_csma_appearence_array['5']['acx_csma_custom_html_top_sub']; ?>
|
2822 |
+
<textarea id="acx_csma_custom_html_top_sub" name="acx_csma_custom_html_top_sub" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_top_sub = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_sub); ?></textarea>
|
2823 |
</div><!-- acx_qa_field -->
|
2824 |
<div class="f_w"></div>
|
2825 |
|
2828 |
</label>
|
2829 |
<div class="acx_qa_field">
|
2830 |
<?php $acx_csma_custom_html_bottom_sub =$acx_csma_appearence_array['5']['acx_csma_custom_html_bottom_sub']; ?>
|
2831 |
+
<textarea id="acx_csma_custom_html_bottom_sub" name="acx_csma_custom_html_bottom_sub" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_bottom_sub = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_sub); ?></textarea>
|
2832 |
</div><!-- acx_qa_field -->
|
2833 |
<div class="f_w"></div>
|
2834 |
<label>
|
2842 |
Launch Title:
|
2843 |
</label>
|
2844 |
<div class="acx_qa_field">
|
2845 |
+
<?php $acx_csma_subscribe_main_title5 = $acx_csma_appearence_array['5']['acx_csma_subscribe_main_title5']; ?>
|
2846 |
+
<input type="text" name="acx_csma_subscribe_main_title5" value="<?php echo $acx_csma_subscribe_main_title5 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_main_title5); ?>" size="20"/>
|
2847 |
</div> <!-- acx_qa_field -->
|
2848 |
<label>
|
2849 |
Launch Title Text Color:<a onclick="acx_csma_restore_default('','#4b4b4b','acx_csma_launch_title_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
|
2856 |
Title:
|
2857 |
</label>
|
2858 |
<div class="acx_qa_field">
|
2859 |
+
<?php $acx_csma_subscribe_title5 = $acx_csma_appearence_array['5']['acx_csma_subscribe_title5'];?>
|
2860 |
+
<input type="text" name="acx_csma_subscribe_title5" value="<?php echo $acx_csma_subscribe_title5 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_title5); ?>" size="20"/>
|
2861 |
+
</div> <!-- acx_qa_field -->
|
2862 |
+
<label>
|
2863 |
+
Subscribe Button Text:
|
2864 |
+
</label>
|
2865 |
+
<div class="acx_qa_field">
|
2866 |
+
<?php $acx_csma_subscribe_btn_text5 = $acx_csma_appearence_array['5']['acx_csma_subscribe_btn_text5']; ?>
|
2867 |
+
<input type="text" name="acx_csma_subscribe_btn_text5" value="<?php echo $acx_csma_subscribe_btn_text5 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_btn_text5); ?>" size="20"/>
|
2868 |
</div> <!-- acx_qa_field -->
|
2869 |
<label>
|
2870 |
Subscribe Success Message:
|
2871 |
</label>
|
2872 |
<div class="acx_qa_field">
|
2873 |
+
<?php $acx_csma_subscribe_success5 = $acx_csma_appearence_array['5']['acx_csma_subscribe_success5']; ?>
|
2874 |
+
<input type="text" name="acx_csma_subscribe_success5" value="<?php echo $acx_csma_subscribe_success5 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_success5); ?>" size="20"/>
|
2875 |
</div> <!-- acx_qa_field -->
|
2876 |
<label>
|
2877 |
Subscribe Invalid Message:
|
2878 |
</label>
|
2879 |
<div class="acx_qa_field">
|
2880 |
+
<?php $acx_csma_subscribe_invalid5 = $acx_csma_appearence_array['5']['acx_csma_subscribe_invalid5'];?>
|
2881 |
+
<input type="text" name="acx_csma_subscribe_invalid5" value="<?php echo $acx_csma_subscribe_invalid5 = acx_csma_option_text_after_save_hook_fn($acx_csma_subscribe_invalid5); ?>" size="20"/>
|
2882 |
</div> <!-- acx_qa_field -->
|
2883 |
</div><!-- acx_csmap_q_and_a_inside -->
|
2884 |
</div> <!-- acx_csmap_q_and_a -->
|
2948 |
Custom HTML content
|
2949 |
</label></td>
|
2950 |
<td><?php $acx_csma_custom_html_val = get_option('acx_csma_custom_html_val'); ?>
|
2951 |
+
<textarea id="acx_csma_custom_html" name="acx_csma_custom_html_val" style="max-width: 80%; width: 500px; height: 180px;"><?php echo $acx_csma_custom_html_val = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_val); ?></textarea>
|
2952 |
</td>
|
2953 |
</tr>
|
2954 |
</table>
|
2969 |
|
2970 |
</div> </div><!-- class wrap-->
|
2971 |
<?php
|
2972 |
+
$acx_csma_template = get_option('acx_csma_template');
|
2973 |
if($acx_csma_template == "") { $acx_csma_template = "1"; }
|
2974 |
+
$acx_csma_base_template=get_option('acx_csma_base_template');
|
2975 |
+
if(is_array($acx_csma_template_array) && !array_key_exists($acx_csma_template,$acx_csma_template_array) && $acx_csma_base_template !== "")
|
2976 |
+
{
|
2977 |
+
$acx_csma_template= $acx_csma_base_template;
|
2978 |
+
}
|
2979 |
if($acx_csma_template != "")
|
2980 |
{
|
2981 |
+
|
2982 |
?>
|
2983 |
<script type="text/javascript">
|
2984 |
jQuery(document).ready(function()
|
2985 |
{
|
2986 |
acx_csma_rdbtn_show_div('<?php echo $acx_csma_template; ?>');
|
2987 |
+
var radiobtn;
|
2988 |
+
<?php if($acx_csma_template == 0)
|
2989 |
+
{?>
|
2990 |
+
radiobtn = document.getElementById('acx_csma_custom_template');
|
2991 |
+
<?php }
|
2992 |
+
else{ ?>
|
2993 |
+
radiobtn = document.getElementById('acx_csma_template<?php echo $acx_csma_template; ?>');
|
2994 |
+
<?php }?>
|
2995 |
|
2996 |
+
radiobtn.checked = true;
|
2997 |
});
|
2998 |
</script>
|
2999 |
<?php
|
3148 |
}
|
3149 |
function acx_csma_restore_default(img_id,default_value,text_id,set_bg)
|
3150 |
{
|
3151 |
+
|
3152 |
if(set_bg!="")
|
3153 |
{
|
3154 |
var text_id_j="#"+text_id;
|
3165 |
{
|
3166 |
var acx_csma_cookie = getCookie("acx_csma_cookie");
|
3167 |
acx_csma_show_div(acx_csma_cookie);
|
3168 |
+
var acx_csma_temp_cookie = getCookie("acx_csma_temp_cookie");
|
3169 |
acx_csma_rdbtn_show_div(acx_csma_temp_cookie);
|
3170 |
<?php
|
3171 |
foreach($acx_csma_appearence_array as $key =>$value)
|
3173 |
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array[$key]))
|
3174 |
{
|
3175 |
$acx_csma_logo_choice = $value['acx_csma_logo_choice'];
|
3176 |
+
if($acx_csma_logo_choice == "")
|
3177 |
+
{
|
3178 |
+
$acx_csma_logo_choice = "image";
|
3179 |
+
}
|
3180 |
+
}
|
3181 |
+
else
|
3182 |
+
{
|
3183 |
$acx_csma_logo_choice = "image";
|
3184 |
+
} ?>
|
3185 |
acx_csma_rdbtn_show_logo('<?php echo $acx_csma_logo_choice; ?>','<?php echo $key; ?>');
|
3186 |
<?php } ?>
|
3187 |
});
|
3194 |
<?php if($acx_csmap_open_all_boxes_default == "yes")
|
3195 |
{ ?>
|
3196 |
acx_csmap_easy_qa_expandall();
|
3197 |
+
<?php } ?>
|
3198 |
+
|
3199 |
+
</script>
|
3200 |
+
<?php acx_csma_hook_function('acx_csma_hook_mainoptions_below_javascript'); ?>
|
includes/acx_csma_display_variables.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="wrap">
|
2 |
+
<div style='background: white none repeat scroll 0% 0%; height: 100%; margin-top: 5px; border-radius: 15px; min-height: 450px; box-sizing: border-box; margin-left: auto; margin-right: auto; width: 98%; padding: 1%;display: table;'>
|
3 |
+
|
4 |
+
<?php echo "<h2 class='acx_csma_page_h2'>" . __( 'Display Variables', 'acx_csma_config' ) . "</h2>"; ?>
|
5 |
+
|
6 |
+
<div id="acx_csma_form">
|
7 |
+
<?php acx_csma_display_variables(); ?>
|
8 |
+
</div> <!-- acx_csma_form -->
|
9 |
+
<div id="acx_csma_sidebar">
|
10 |
+
<?php acx_csma_hook_function('acx_csma_hook_sidebar_widget'); ?>
|
11 |
+
</div> <!-- acx_csma_sidebar -->
|
12 |
+
</div>
|
13 |
+
</div>
|
includes/defaults.php
ADDED
@@ -0,0 +1,334 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function acx_csma_appearence_array_default_value_setting($acx_csma_appearence_array_default)
|
3 |
+
{
|
4 |
+
//set default values to database
|
5 |
+
//******************template 1**********************
|
6 |
+
$acx_csma_background_image1= ACX_CSMA_BASE_LOCATION . 'templates/1/images/body_bg.jpg';
|
7 |
+
$acx_csma_logo1=ACX_CSMA_BASE_LOCATION . 'templates/1/images/logo.png';
|
8 |
+
$acx_csma_logo_choice1="image";
|
9 |
+
$acx_csma_logo_text1=get_bloginfo('name');
|
10 |
+
$acx_csma_logo_text_color1="#ffffff";
|
11 |
+
$acx_csma_title1="Something New Is Coming";
|
12 |
+
$acx_csma_title_color1="#ffffff";
|
13 |
+
$acx_csma_subtitle_text1="We are Working on Our Website";
|
14 |
+
$acx_csma_subtitle_color1="#fffaa9";
|
15 |
+
$acx_csma_custom_html_top_temp1="";
|
16 |
+
$acx_csma_inside_bg_color1="#ff7800";
|
17 |
+
$acx_csma_inside_title1="Estimate Time Before Launching";
|
18 |
+
$acx_csma_custom_html_top_temp1_title="";
|
19 |
+
$acx_csma_inside_title_color1="#ffffff";
|
20 |
+
$acx_csma_custom_html_bottom_temp1="";
|
21 |
+
$acx_csma_show_timer1 = 1;
|
22 |
+
$acx_csma_timer_bg_color1="#ffffff";
|
23 |
+
$acx_csma_timer_iptext_color1="#ffffff";
|
24 |
+
$acx_csma_timer_head_color1="#ff7800";
|
25 |
+
$acx_csma_show_subscription = 1;
|
26 |
+
$acx_csma_custom_html_top_sub1 = "";
|
27 |
+
$acx_csma_custom_html_bottom_sub1= "";
|
28 |
+
$acx_csma_subscribe_bg_color1="#0b1c2c";
|
29 |
+
$acx_csma_subscribe_btn_text1="submit";
|
30 |
+
$acx_csma_subscribe_btn_text_color1="#ffffff";
|
31 |
+
$acx_csma_subscribe_btn_color1="#ff7800";
|
32 |
+
$acx_csma_subscribe_btn_hover_color1="#0b1c2c";
|
33 |
+
$acx_csma_subscribe_btn_hover_bgcolor1="#ff881e";
|
34 |
+
$acx_csma_subscribe_title1="Subscribe For Updates";
|
35 |
+
$acx_csma_subscribe_title_color1="#ff7800";
|
36 |
+
$acx_csma_subscribe_success1="Successfully Subscribed";
|
37 |
+
$acx_csma_subscribe_invalid1="Invalid Email";
|
38 |
+
$acx_csma_footer_bgcolor1="#ff7800";
|
39 |
+
$acx_csma_footer_text1="©". date("Y")." All rights reserved";
|
40 |
+
$acx_csma_footer_text_color1="#ffffff";
|
41 |
+
$acx_csma_custom_css_temp1= "";
|
42 |
+
// *******************template2*********************
|
43 |
+
$acx_csma_bg_color2="#e4e4e4";
|
44 |
+
$acx_csma_logo2= ACX_CSMA_BASE_LOCATION . 'templates/2/images/logo.png';
|
45 |
+
$acx_csma_logo_choice2="image";
|
46 |
+
$acx_csma_logo_text2=get_bloginfo('name');
|
47 |
+
$acx_csma_logo_text_color2="#ffffff";
|
48 |
+
$acx_csma_title2="Hello";
|
49 |
+
$acx_csma_title_color2="#000000";
|
50 |
+
$acx_csma_subtitle_text2="We are Coming Very Soon";
|
51 |
+
$acx_csma_subtitle_color2="#000000";
|
52 |
+
$acx_csma_inside_bg_color2="#ffd800";
|
53 |
+
$acx_csma_custom_html_above_timer="";
|
54 |
+
$acx_csma_custom_html_top_timer="";
|
55 |
+
$acx_csma_show_subscription2 = 1;
|
56 |
+
$acx_csma_subscribe_btn_text2 = 'Submit';
|
57 |
+
$acx_csma_show_timer2 = 1;
|
58 |
+
$acx_csma_timer_title2="Estimate time for launching";
|
59 |
+
$acx_csma_subscribe_btn_color2="#ffd800";
|
60 |
+
$acx_csma_subscribe_success2="Successfully Subscribed";
|
61 |
+
$acx_csma_subscribe_invalid2="Invalid Email";
|
62 |
+
$acx_csma_timer_input_bg_color2="#ffffff";
|
63 |
+
$acx_csma_timer_iptext_color2="#000000";
|
64 |
+
$acx_csma_timer_head_color2="#000000";
|
65 |
+
$acx_csma_custom_html_top_temp2="";
|
66 |
+
$acx_csma_desc_title2="What is Coming";
|
67 |
+
$acx_csma_desc_subtitle2=stripslashes(trim("Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat."));
|
68 |
+
$acx_csma_desc_text_color2="#000000";
|
69 |
+
$acx_csma_fb_link2="";
|
70 |
+
$acx_csma_twitter_link2="";
|
71 |
+
$acx_csma_linkedin_link2="";
|
72 |
+
$acx_csma_custom_css_temp2="";
|
73 |
+
//*******************template 3*******************
|
74 |
+
$acx_csma_logo3= ACX_CSMA_BASE_LOCATION . 'templates/3/images/logo.png';
|
75 |
+
$acx_csma_logo_choice3="image";
|
76 |
+
$acx_csma_logo_text3=get_bloginfo('name');
|
77 |
+
$acx_csma_logo_text_color3="#ffffff";
|
78 |
+
$acx_csma_title3="Hello";
|
79 |
+
$acx_csma_title_color3="#ffffff";
|
80 |
+
$acx_csma_subtitle_text3="We are Coming Very Soon";
|
81 |
+
$acx_csma_subtitle_color3="#ffffff";
|
82 |
+
$acx_csma_primary_color3="#ffffff";
|
83 |
+
$acx_csma_secondary_color3="#fe7e01";
|
84 |
+
$acx_csma_left_bar_color3="#000000";
|
85 |
+
$acx_csma_timer_color3="#ffffff";
|
86 |
+
$acx_csma_subscribe_title3="Subscribe Now";
|
87 |
+
$acx_csma_subscribe_title_color3="#fe7e01";
|
88 |
+
$acx_csma_show_subscription3 = 1;
|
89 |
+
$acx_csma_show_timer3 = 1;
|
90 |
+
$acx_csma_subscribe_btn_text3="submit";
|
91 |
+
$acx_csma_subscribe_btn_text_color3="#ffffff";
|
92 |
+
$acx_csma_subscribe_btn_color3="#fe7e01";
|
93 |
+
$acx_csma_subscribe_btn_hover_color3="#0b1c2c";
|
94 |
+
$acx_csma_subscribe_btn_hover_bgcolor3="#fe6001";
|
95 |
+
$acx_csma_subscribe_success3="Successfully Subscribed";
|
96 |
+
$acx_csma_subscribe_invalid3="Invalid Email";
|
97 |
+
$acx_csma_inside_title3="Estimate Time Before Launching";
|
98 |
+
$acx_csma_inside_title_color3="#ffffff";
|
99 |
+
$acx_csma_timer_iptext_color3="#000000";
|
100 |
+
$acx_csma_timer_head_color3="#000000";
|
101 |
+
$acx_csma_custom_html_top_temp3="";
|
102 |
+
$acx_csma_custom_html_top_timer_temp3="";
|
103 |
+
$acx_csma_custom_html_bottom_temp3="";
|
104 |
+
$acx_csma_desc_title3="What is Coming";
|
105 |
+
$acx_csma_desc_subtitle3=stripslashes(trim("Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat."));
|
106 |
+
$acx_csma_desc_text_color3="#000000";
|
107 |
+
$acx_csma_footer_text3="©". date("Y")." All rights reserved";
|
108 |
+
$acx_csma_footer_color3="#000000";
|
109 |
+
$acx_csma_social_link_title3="Follow Us ON";
|
110 |
+
$acx_csma_social_link_title_color3="#000000";
|
111 |
+
$acx_csma_fb_link3="";
|
112 |
+
$acx_csma_twitter_link3="";
|
113 |
+
$acx_csma_linkedin_link3="";
|
114 |
+
$acx_csma_custom_css_temp3="";
|
115 |
+
// ******************template 4*******************
|
116 |
+
$acx_csma_background_image4 = ACX_CSMA_BASE_LOCATION . 'templates/4/images/body_bg.jpg';
|
117 |
+
$acx_csma_logo4 = ACX_CSMA_BASE_LOCATION . 'templates/4/images/logo.png';
|
118 |
+
$acx_csma_logo_choice4="image";
|
119 |
+
$acx_csma_logo_text4=get_bloginfo('name');
|
120 |
+
$acx_csma_logo_text_color4="#ffffff";
|
121 |
+
$acx_csma_inside_bg_color4="#ebebeb";
|
122 |
+
$acx_csma_title4="Our Website is Under Construction";
|
123 |
+
$acx_csma_custom_html_top_temp4="";
|
124 |
+
$acx_csma_title_color4="#717171";
|
125 |
+
$acx_csma_show_timer4=1;
|
126 |
+
$acx_csma_timer_iptext_color4="#717171";
|
127 |
+
$acx_csma_timer_head_color4="#717171";
|
128 |
+
$acx_csma_show_progressbar4=1;
|
129 |
+
$acx_csma_progress_bar_color4="#717171";
|
130 |
+
$acx_csma_custom_html_bottom_temp4="";
|
131 |
+
$acx_csma_fb_link4="";
|
132 |
+
$acx_csma_twitter_link4="";
|
133 |
+
$acx_csma_linkedin_link4="";
|
134 |
+
$acx_csma_custom_css_temp4= "";
|
135 |
+
//*******************template 5********************
|
136 |
+
$acx_csma_bgcolor5="#e9eaec";
|
137 |
+
$acx_csma_logo5= ACX_CSMA_BASE_LOCATION . 'templates/5/images/logo.png';
|
138 |
+
$acx_csma_logo_choice5="image";
|
139 |
+
$acx_csma_logo_text5=get_bloginfo('name');
|
140 |
+
$acx_csma_logo_text_color5="#000000";
|
141 |
+
$acx_csma_inside_bg_color5="#f5f5f5";
|
142 |
+
$acx_csma_title5="Our Website is Under Construction";
|
143 |
+
$acx_csma_custom_html_top_temp5="";
|
144 |
+
$acx_csma_title_color5="#4b4b4b";
|
145 |
+
$acx_csma_show_timer5=1;
|
146 |
+
$acx_csma_timer_iptext_color5="#000000";
|
147 |
+
$acx_csma_timer_head_color5="#000000";
|
148 |
+
$acx_csma_show_progressbar5=1;
|
149 |
+
$acx_csma_progress_bar_color5="#717171";
|
150 |
+
$acx_csma_custom_html_bottom_temp5="";
|
151 |
+
$acx_csma_show_subscription5 = 1;
|
152 |
+
$acx_csma_subscribe_btn_text5 = 'Submit';
|
153 |
+
$acx_csma_custom_html_top_sub = "";
|
154 |
+
$acx_csma_custom_html_bottom_sub= "";
|
155 |
+
$acx_csma_subscribe_bg_color5="#2f2f2f";
|
156 |
+
$acx_csma_launch_title_color5="#4b4b4b";
|
157 |
+
$acx_csma_subscribe_main_title5 = "Want to know when we launch?";
|
158 |
+
$acx_csma_subscribe_title5="Subscribe by entering your email below";
|
159 |
+
$acx_csma_subscribe_success5="Successfully Subscribed";
|
160 |
+
$acx_csma_subscribe_invalid5="Invalid Email";
|
161 |
+
$acx_csma_fb_link5="";
|
162 |
+
$acx_csma_twitter_link5="";
|
163 |
+
$acx_csma_linkedin_link5="";
|
164 |
+
$acx_csma_custom_css_temp5= "";
|
165 |
+
|
166 |
+
$acx_csma_appearence_array_default['1'] = array(
|
167 |
+
'acx_csma_background_image1'=>$acx_csma_background_image1,
|
168 |
+
'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice1),
|
169 |
+
'acx_csma_logo1'=>$acx_csma_logo1,
|
170 |
+
'acx_csma_logo_text1' =>sanitize_text_field($acx_csma_logo_text1),
|
171 |
+
'acx_csma_logo_text_color1' =>sanitize_text_field($acx_csma_logo_text_color1),
|
172 |
+
'acx_csma_title1'=>sanitize_text_field($acx_csma_title1),
|
173 |
+
'acx_csma_title_color1'=>sanitize_text_field($acx_csma_title_color1),
|
174 |
+
'acx_csma_subtitle_text1'=>sanitize_text_field($acx_csma_subtitle_text1),
|
175 |
+
'acx_csma_subtitle_color1'=>sanitize_text_field($acx_csma_subtitle_color1),
|
176 |
+
'acx_csma_custom_html_top_temp1'=>$acx_csma_custom_html_top_temp1,
|
177 |
+
'acx_csma_inside_bg_color1'=>sanitize_text_field($acx_csma_inside_bg_color1),
|
178 |
+
'acx_csma_inside_title1'=>sanitize_text_field($acx_csma_inside_title1),
|
179 |
+
'acx_csma_custom_html_top_temp1_title'=>$acx_csma_custom_html_top_temp1_title,
|
180 |
+
'acx_csma_inside_title_color1'=>sanitize_text_field($acx_csma_inside_title_color1),
|
181 |
+
'acx_csma_custom_html_bottom_temp1'=>$acx_csma_custom_html_bottom_temp1,
|
182 |
+
'acx_csma_show_timer1'=>sanitize_text_field($acx_csma_show_timer1),
|
183 |
+
'acx_csma_timer_bg_color1'=>sanitize_text_field($acx_csma_timer_bg_color1),
|
184 |
+
'acx_csma_timer_iptext_color1'=>sanitize_text_field($acx_csma_timer_iptext_color1),
|
185 |
+
'acx_csma_timer_head_color1'=>sanitize_text_field($acx_csma_timer_head_color1),
|
186 |
+
'acx_csma_show_subscription'=>sanitize_text_field($acx_csma_show_subscription),
|
187 |
+
'acx_csma_custom_html_top_sub1'=>sanitize_text_field($acx_csma_custom_html_top_sub1),
|
188 |
+
'acx_csma_custom_html_bottom_sub1'=>sanitize_text_field($acx_csma_custom_html_bottom_sub1),
|
189 |
+
'acx_csma_subscribe_bg_color1'=>sanitize_text_field($acx_csma_subscribe_bg_color1),
|
190 |
+
'acx_csma_subscribe_btn_text1'=>sanitize_text_field($acx_csma_subscribe_btn_text1),
|
191 |
+
'acx_csma_subscribe_btn_text_color1'=>sanitize_text_field($acx_csma_subscribe_btn_text_color1),
|
192 |
+
'acx_csma_subscribe_btn_color1'=>sanitize_text_field($acx_csma_subscribe_btn_color1),
|
193 |
+
'acx_csma_subscribe_btn_hover_color1'=>sanitize_text_field($acx_csma_subscribe_btn_hover_color1),
|
194 |
+
'acx_csma_subscribe_btn_hover_bgcolor1'=>sanitize_text_field($acx_csma_subscribe_btn_hover_bgcolor1),
|
195 |
+
'acx_csma_subscribe_title1'=>sanitize_text_field($acx_csma_subscribe_title1),
|
196 |
+
'acx_csma_subscribe_title_color1'=>sanitize_text_field($acx_csma_subscribe_title_color1),
|
197 |
+
'acx_csma_subscribe_success1'=>sanitize_text_field($acx_csma_subscribe_success1),
|
198 |
+
'acx_csma_subscribe_invalid1'=>sanitize_text_field($acx_csma_subscribe_invalid1),
|
199 |
+
'acx_csma_footer_bgcolor1'=>sanitize_text_field($acx_csma_footer_bgcolor1),
|
200 |
+
'acx_csma_footer_text1'=>sanitize_text_field($acx_csma_footer_text1),
|
201 |
+
'acx_csma_footer_text_color1'=>sanitize_text_field($acx_csma_footer_text_color1),
|
202 |
+
'acx_csma_custom_css_temp1'=>sanitize_text_field($acx_csma_custom_css_temp1)
|
203 |
+
);
|
204 |
+
$acx_csma_appearence_array_default['2'] = array(
|
205 |
+
'acx_csma_bg_color2'=>sanitize_text_field($acx_csma_bg_color2),
|
206 |
+
'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice2),
|
207 |
+
'acx_csma_logo2'=>$acx_csma_logo2,
|
208 |
+
'acx_csma_logo_text2' =>sanitize_text_field($acx_csma_logo_text2),
|
209 |
+
'acx_csma_logo_text_color2' =>sanitize_text_field($acx_csma_logo_text_color2),
|
210 |
+
'acx_csma_title2'=>sanitize_text_field($acx_csma_title2),
|
211 |
+
'acx_csma_title_color2'=>sanitize_text_field($acx_csma_title_color2),
|
212 |
+
'acx_csma_subtitle_text2'=>sanitize_text_field($acx_csma_subtitle_text2),
|
213 |
+
'acx_csma_subtitle_color2'=>sanitize_text_field($acx_csma_subtitle_color2),
|
214 |
+
'acx_csma_inside_bg_color2'=>sanitize_text_field($acx_csma_inside_bg_color2),
|
215 |
+
'acx_csma_custom_html_above_timer'=>$acx_csma_custom_html_above_timer,
|
216 |
+
'acx_csma_custom_html_top_timer'=>$acx_csma_custom_html_top_timer,
|
217 |
+
'acx_csma_show_subscription2'=>sanitize_text_field($acx_csma_show_subscription2),
|
218 |
+
'acx_csma_subscribe_btn_text2'=>sanitize_text_field($acx_csma_subscribe_btn_text2),
|
219 |
+
'acx_csma_show_timer2'=>sanitize_text_field($acx_csma_show_timer2),
|
220 |
+
'acx_csma_timer_title2'=>sanitize_text_field($acx_csma_timer_title2),
|
221 |
+
'acx_csma_subscribe_btn_color2'=>sanitize_text_field($acx_csma_subscribe_btn_color2),
|
222 |
+
'acx_csma_subscribe_success2'=>sanitize_text_field($acx_csma_subscribe_success2),
|
223 |
+
'acx_csma_subscribe_invalid2'=>sanitize_text_field($acx_csma_subscribe_invalid2),
|
224 |
+
'acx_csma_timer_input_bg_color2'=>sanitize_text_field($acx_csma_timer_input_bg_color2),
|
225 |
+
'acx_csma_timer_iptext_color2'=>sanitize_text_field($acx_csma_timer_iptext_color2),
|
226 |
+
'acx_csma_timer_head_color2'=>sanitize_text_field($acx_csma_timer_head_color2),
|
227 |
+
'acx_csma_custom_html_top_temp2'=>$acx_csma_custom_html_top_temp2,
|
228 |
+
'acx_csma_desc_title2'=>sanitize_text_field($acx_csma_desc_title2),
|
229 |
+
'acx_csma_desc_subtitle2'=>sanitize_text_field($acx_csma_desc_subtitle2),
|
230 |
+
'acx_csma_desc_text_color2'=>sanitize_text_field($acx_csma_desc_text_color2),
|
231 |
+
'acx_csma_fb_link2'=>esc_url_raw($acx_csma_fb_link2),
|
232 |
+
'acx_csma_twitter_link2'=>esc_url_raw($acx_csma_twitter_link2),
|
233 |
+
'acx_csma_linkedin_link2'=>esc_url_raw($acx_csma_linkedin_link2),
|
234 |
+
'acx_csma_custom_css_temp2'=>$acx_csma_custom_css_temp2
|
235 |
+
);
|
236 |
+
$acx_csma_appearence_array_default['3'] =array(
|
237 |
+
'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice3),
|
238 |
+
'acx_csma_logo3'=>$acx_csma_logo3,
|
239 |
+
'acx_csma_logo_text3' =>sanitize_text_field($acx_csma_logo_text3),
|
240 |
+
'acx_csma_logo_text_color3' =>sanitize_text_field($acx_csma_logo_text_color3),
|
241 |
+
'acx_csma_title3'=>sanitize_text_field($acx_csma_title3),
|
242 |
+
'acx_csma_title_color3'=>sanitize_text_field($acx_csma_title_color3),
|
243 |
+
'acx_csma_subtitle_text3'=>sanitize_text_field($acx_csma_subtitle_text3),
|
244 |
+
'acx_csma_subtitle_color3'=>sanitize_text_field($acx_csma_subtitle_color3),
|
245 |
+
'acx_csma_primary_color3'=>sanitize_text_field($acx_csma_primary_color3),
|
246 |
+
'acx_csma_secondary_color3'=>sanitize_text_field($acx_csma_secondary_color3),
|
247 |
+
'acx_csma_left_bar_color3'=>sanitize_text_field($acx_csma_left_bar_color3),
|
248 |
+
'acx_csma_timer_color3'=>sanitize_text_field($acx_csma_timer_color3),
|
249 |
+
'acx_csma_subscribe_title3'=>sanitize_text_field($acx_csma_subscribe_title3),
|
250 |
+
'acx_csma_subscribe_title_color3'=>sanitize_text_field($acx_csma_subscribe_title_color3),
|
251 |
+
'acx_csma_subscribe_btn_text3'=>sanitize_text_field($acx_csma_subscribe_btn_text3),
|
252 |
+
'acx_csma_subscribe_btn_text_color3'=>sanitize_text_field($acx_csma_subscribe_btn_text_color3),
|
253 |
+
'acx_csma_subscribe_btn_color3'=>sanitize_text_field($acx_csma_subscribe_btn_color3),
|
254 |
+
'acx_csma_subscribe_btn_hover_color3'=>sanitize_text_field($acx_csma_subscribe_btn_hover_color3),
|
255 |
+
'acx_csma_subscribe_btn_hover_bgcolor3'=>sanitize_text_field($acx_csma_subscribe_btn_hover_bgcolor3),
|
256 |
+
'acx_csma_show_subscription3'=>sanitize_text_field($acx_csma_show_subscription3),
|
257 |
+
'acx_csma_show_timer3'=>sanitize_text_field($acx_csma_show_timer3),
|
258 |
+
'acx_csma_subscribe_success3'=>sanitize_text_field($acx_csma_subscribe_success3),
|
259 |
+
'acx_csma_subscribe_invalid3'=>sanitize_text_field($acx_csma_subscribe_invalid3),
|
260 |
+
'acx_csma_inside_title3'=>sanitize_text_field($acx_csma_inside_title3),
|
261 |
+
'acx_csma_inside_title_color3'=>sanitize_text_field($acx_csma_inside_title_color3),
|
262 |
+
'acx_csma_timer_iptext_color3'=>sanitize_text_field($acx_csma_timer_iptext_color3),
|
263 |
+
'acx_csma_timer_head_color3'=>sanitize_text_field($acx_csma_timer_head_color3),
|
264 |
+
'acx_csma_custom_html_top_temp3'=>$acx_csma_custom_html_top_temp3,
|
265 |
+
'acx_csma_custom_html_top_timer_temp3'=>$acx_csma_custom_html_top_timer_temp3,
|
266 |
+
'acx_csma_custom_html_bottom_temp3'=>$acx_csma_custom_html_bottom_temp3,
|
267 |
+
|
268 |
+
'acx_csma_desc_title3'=>sanitize_text_field($acx_csma_desc_title3),
|
269 |
+
'acx_csma_desc_subtitle3'=>sanitize_text_field($acx_csma_desc_subtitle3),
|
270 |
+
'acx_csma_desc_text_color3'=>sanitize_text_field($acx_csma_desc_text_color3),
|
271 |
+
'acx_csma_footer_text3'=>sanitize_text_field($acx_csma_footer_text3),
|
272 |
+
'acx_csma_footer_color3'=>sanitize_text_field($acx_csma_footer_color3),
|
273 |
+
'acx_csma_social_link_title3'=>sanitize_text_field($acx_csma_social_link_title3),
|
274 |
+
'acx_csma_social_link_title_color3'=>sanitize_text_field($acx_csma_social_link_title_color3),
|
275 |
+
'acx_csma_fb_link3'=>esc_url_raw($acx_csma_fb_link3),
|
276 |
+
'acx_csma_twitter_link3'=>esc_url_raw($acx_csma_twitter_link3),
|
277 |
+
'acx_csma_linkedin_link3'=>esc_url_raw($acx_csma_linkedin_link3),
|
278 |
+
'acx_csma_custom_css_temp3'=>$acx_csma_custom_css_temp3
|
279 |
+
);
|
280 |
+
$acx_csma_appearence_array_default['4'] =array(
|
281 |
+
'acx_csma_background_image4'=>$acx_csma_background_image4,
|
282 |
+
'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice4),
|
283 |
+
'acx_csma_logo4'=>$acx_csma_logo4,
|
284 |
+
'acx_csma_logo_text4' =>sanitize_text_field($acx_csma_logo_text4),
|
285 |
+
'acx_csma_logo_text_color4' =>sanitize_text_field($acx_csma_logo_text_color4),
|
286 |
+
'acx_csma_inside_bg_color4'=>sanitize_text_field($acx_csma_inside_bg_color4),
|
287 |
+
'acx_csma_title4'=>sanitize_text_field($acx_csma_title4),
|
288 |
+
'acx_csma_custom_html_top_temp4'=>$acx_csma_custom_html_top_temp4,
|
289 |
+
'acx_csma_title_color4'=>sanitize_text_field($acx_csma_title_color4),
|
290 |
+
'acx_csma_show_timer4'=>sanitize_text_field($acx_csma_show_timer4),
|
291 |
+
'acx_csma_timer_iptext_color4'=>sanitize_text_field($acx_csma_timer_iptext_color4),
|
292 |
+
'acx_csma_timer_head_color4'=>sanitize_text_field($acx_csma_timer_head_color4),
|
293 |
+
'acx_csma_show_progressbar4'=>$acx_csma_show_progressbar4,
|
294 |
+
'acx_csma_progress_bar_color4'=>sanitize_text_field($acx_csma_progress_bar_color4),
|
295 |
+
'acx_csma_custom_html_bottom_temp4'=>$acx_csma_custom_html_bottom_temp4,
|
296 |
+
'acx_csma_fb_link4'=>esc_url_raw($acx_csma_fb_link4),
|
297 |
+
'acx_csma_twitter_link4'=>esc_url_raw($acx_csma_twitter_link4),
|
298 |
+
'acx_csma_linkedin_link4'=>esc_url_raw($acx_csma_linkedin_link4),
|
299 |
+
'acx_csma_custom_css_temp4'=>sanitize_text_field($acx_csma_custom_css_temp4)
|
300 |
+
);
|
301 |
+
$acx_csma_appearence_array_default['5'] =array(
|
302 |
+
'acx_csma_bgcolor5'=>sanitize_text_field($acx_csma_bgcolor5),
|
303 |
+
'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice5),
|
304 |
+
'acx_csma_logo5'=>$acx_csma_logo5,
|
305 |
+
'acx_csma_logo_text5' =>sanitize_text_field($acx_csma_logo_text5),
|
306 |
+
'acx_csma_logo_text_color5' =>sanitize_text_field($acx_csma_logo_text_color5),
|
307 |
+
'acx_csma_inside_bg_color5'=>sanitize_text_field($acx_csma_inside_bg_color5),
|
308 |
+
'acx_csma_title5'=>sanitize_text_field($acx_csma_title5),
|
309 |
+
'acx_csma_custom_html_top_temp5'=>$acx_csma_custom_html_top_temp5,
|
310 |
+
'acx_csma_title_color5'=>sanitize_text_field($acx_csma_title_color5),
|
311 |
+
'acx_csma_show_timer5'=>sanitize_text_field($acx_csma_show_timer5),
|
312 |
+
'acx_csma_timer_iptext_color5'=>sanitize_text_field($acx_csma_timer_iptext_color5),
|
313 |
+
'acx_csma_timer_head_color5'=>sanitize_text_field($acx_csma_timer_head_color5),
|
314 |
+
'acx_csma_show_progressbar5'=>$acx_csma_show_progressbar5,
|
315 |
+
'acx_csma_progress_bar_color5'=>sanitize_text_field($acx_csma_progress_bar_color5),
|
316 |
+
'acx_csma_custom_html_bottom_temp5'=>$acx_csma_custom_html_bottom_temp5,
|
317 |
+
'acx_csma_show_subscription5'=>sanitize_text_field($acx_csma_show_subscription5),
|
318 |
+
'acx_csma_subscribe_btn_text5'=>sanitize_text_field($acx_csma_subscribe_btn_text5),
|
319 |
+
'acx_csma_custom_html_top_sub'=>sanitize_text_field($acx_csma_custom_html_top_sub),
|
320 |
+
'acx_csma_custom_html_bottom_sub'=>sanitize_text_field($acx_csma_custom_html_bottom_sub),
|
321 |
+
'acx_csma_subscribe_bg_color5'=>sanitize_text_field($acx_csma_subscribe_bg_color5),
|
322 |
+
'acx_csma_launch_title_color5'=>sanitize_text_field($acx_csma_launch_title_color5),
|
323 |
+
'acx_csma_subscribe_main_title5' => sanitize_text_field($acx_csma_subscribe_main_title5),
|
324 |
+
'acx_csma_subscribe_title5'=>sanitize_text_field($acx_csma_subscribe_title5),
|
325 |
+
'acx_csma_subscribe_success5'=>sanitize_text_field($acx_csma_subscribe_success5),
|
326 |
+
'acx_csma_subscribe_invalid5'=>sanitize_text_field($acx_csma_subscribe_invalid5),
|
327 |
+
'acx_csma_fb_link5'=>esc_url_raw($acx_csma_fb_link5),
|
328 |
+
'acx_csma_twitter_link5'=>esc_url_raw($acx_csma_twitter_link5),
|
329 |
+
'acx_csma_linkedin_link5'=>esc_url_raw($acx_csma_linkedin_link5),
|
330 |
+
'acx_csma_custom_css_temp5'=>sanitize_text_field($acx_csma_custom_css_temp5)
|
331 |
+
);
|
332 |
+
return $acx_csma_appearence_array_default;
|
333 |
+
} add_filter('acx_csma_appearence_array_default_filter','acx_csma_appearence_array_default_value_setting');
|
334 |
+
?>
|
includes/hooks.php
CHANGED
@@ -9,6 +9,10 @@ function acx_csma_hook_function($function_name)
|
|
9 |
}
|
10 |
}
|
11 |
}
|
|
|
|
|
|
|
|
|
12 |
function acx_csma_hook_sidebar_widget()
|
13 |
{
|
14 |
do_action('acx_csma_hook_sidebar_widget');
|
@@ -17,30 +21,6 @@ function acx_csma_hook_mainoptions_above_title()
|
|
17 |
{
|
18 |
do_action('acx_csma_hook_mainoptions_above_title');
|
19 |
}
|
20 |
-
function acx_csma_hook_mainoptions_set_default_template_1()
|
21 |
-
{
|
22 |
-
do_action('acx_csma_hook_mainoptions_set_default_template_1');
|
23 |
-
}
|
24 |
-
function acx_csma_hook_mainoptions_set_default_template_2()
|
25 |
-
{
|
26 |
-
do_action('acx_csma_hook_mainoptions_set_default_template_2');
|
27 |
-
}
|
28 |
-
function acx_csma_hook_mainoptions_set_default_template_3()
|
29 |
-
{
|
30 |
-
do_action('acx_csma_hook_mainoptions_set_default_template_3');
|
31 |
-
}
|
32 |
-
function acx_csma_hook_mainoptions_set_default_template_4()
|
33 |
-
{
|
34 |
-
do_action('acx_csma_hook_mainoptions_set_default_template_4');
|
35 |
-
}
|
36 |
-
function acx_csma_hook_mainoptions_set_default_template_5()
|
37 |
-
{
|
38 |
-
do_action('acx_csma_hook_mainoptions_set_default_template_5');
|
39 |
-
}
|
40 |
-
function acx_csma_hook_mainoptions_update_default_values()
|
41 |
-
{
|
42 |
-
do_action('acx_csma_hook_mainoptions_update_default_values');
|
43 |
-
}
|
44 |
function acx_csma_hook_mainoptions_inside_if_submit()
|
45 |
{
|
46 |
do_action('acx_csma_hook_mainoptions_inside_if_submit');
|
@@ -73,4 +53,5 @@ function acx_csma_hook_mainoptions_below_javascript()
|
|
73 |
{
|
74 |
do_action('acx_csma_hook_mainoptions_below_javascript');
|
75 |
}
|
|
|
76 |
?>
|
9 |
}
|
10 |
}
|
11 |
}
|
12 |
+
function acx_csma_hook_bove_if_post()
|
13 |
+
{
|
14 |
+
do_action('acx_csma_hook_bove_if_post');
|
15 |
+
}
|
16 |
function acx_csma_hook_sidebar_widget()
|
17 |
{
|
18 |
do_action('acx_csma_hook_sidebar_widget');
|
21 |
{
|
22 |
do_action('acx_csma_hook_mainoptions_above_title');
|
23 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
function acx_csma_hook_mainoptions_inside_if_submit()
|
25 |
{
|
26 |
do_action('acx_csma_hook_mainoptions_inside_if_submit');
|
53 |
{
|
54 |
do_action('acx_csma_hook_mainoptions_below_javascript');
|
55 |
}
|
56 |
+
|
57 |
?>
|
includes/updates.php
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$acx_csma_version=get_option('acx_csma_version');
|
3 |
+
if($acx_csma_version == '' && get_option('acx_csma_start_date_time') != "")
|
4 |
+
{
|
5 |
+
add_action('admin_head','acx_csma_migration');
|
6 |
+
}
|
7 |
+
function acx_csma_migration()
|
8 |
+
{
|
9 |
+
$acx_csma_start_timestamp_from = get_option('acx_csma_start_date_time');
|
10 |
+
$acx_csma_cur_date_time_from=get_option('acx_csma_date_time');
|
11 |
+
$acx_csma_wp_time= current_time('timestamp');
|
12 |
+
$acx_csma_server_time=time();
|
13 |
+
$diff=$acx_csma_wp_time-$acx_csma_server_time;
|
14 |
+
$acx_csma_start_timestamp = $acx_csma_start_timestamp_from + ($diff);
|
15 |
+
$acx_csma_date_time = $acx_csma_cur_date_time_from + ($diff);
|
16 |
+
update_option('acx_csma_start_date_time',$acx_csma_start_timestamp);
|
17 |
+
update_option('acx_csma_date_time',$acx_csma_date_time);
|
18 |
+
update_option('acx_csma_version','1.1');
|
19 |
+
}
|
20 |
+
|
21 |
+
$acx_csma_version=get_option('acx_csma_version');
|
22 |
+
if(($acx_csma_version > 0 && $acx_csma_version < ACX_CSMA_CURRENT_VERSION))
|
23 |
+
{
|
24 |
+
if (function_exists('acx_csma_base_encode_fix')) {
|
25 |
+
add_action('admin_head','acx_csma_update_content');
|
26 |
+
}
|
27 |
+
}
|
28 |
+
function acx_csma_update_content()
|
29 |
+
{
|
30 |
+
$acx_csma_appearence_array=get_option('acx_csma_appearence_array');
|
31 |
+
if($acx_csma_appearence_array != "")
|
32 |
+
{
|
33 |
+
if(is_serialized($acx_csma_appearence_array))
|
34 |
+
{
|
35 |
+
$acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
|
36 |
+
}
|
37 |
+
}
|
38 |
+
if(is_array($acx_csma_appearence_array))
|
39 |
+
{
|
40 |
+
if(array_key_exists('1',$acx_csma_appearence_array) && array_key_exists('acx_csma_inside_title1',$acx_csma_appearence_array['1']))
|
41 |
+
{
|
42 |
+
$acx_csma_inside_title1 = $acx_csma_appearence_array['1']['acx_csma_inside_title1'];
|
43 |
+
if(strcmp($acx_csma_inside_title1,"Estimate Time Before Lunching") === 0 )
|
44 |
+
{
|
45 |
+
$acx_csma_appearence_array['1']['acx_csma_inside_title1'] = "Estimate Time Before Launching";
|
46 |
+
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
47 |
+
}
|
48 |
+
}
|
49 |
+
if(array_key_exists('1',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_top_temp1',$acx_csma_appearence_array['1']))
|
50 |
+
{
|
51 |
+
$acx_csma_custom_html_top_temp1 = $acx_csma_appearence_array['1']['acx_csma_custom_html_top_temp1'];
|
52 |
+
|
53 |
+
|
54 |
+
$acx_html_fix_content1 = acx_csma_base_encode_fix($acx_csma_custom_html_top_temp1);
|
55 |
+
$acx_csma_appearence_array['1']['acx_csma_custom_html_top_temp1'] = $acx_html_fix_content1;
|
56 |
+
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
57 |
+
}
|
58 |
+
if(array_key_exists('1',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_bottom_temp1',$acx_csma_appearence_array['1']))
|
59 |
+
{
|
60 |
+
$acx_csma_custom_html_bottom_temp1 = $acx_csma_appearence_array['1']['acx_csma_custom_html_bottom_temp1'];
|
61 |
+
|
62 |
+
$acx_html_fix_content2 =acx_csma_base_encode_fix($acx_csma_custom_html_bottom_temp1);
|
63 |
+
$acx_csma_appearence_array['1']['acx_csma_custom_html_bottom_temp1'] = $acx_html_fix_content2;
|
64 |
+
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
65 |
+
|
66 |
+
}
|
67 |
+
if(array_key_exists('2',$acx_csma_appearence_array) && array_key_exists('acx_csma_desc_subtitle2',$acx_csma_appearence_array['2']))
|
68 |
+
{
|
69 |
+
$acx_csma_desc_subtitle2 = $acx_csma_appearence_array['2']['acx_csma_desc_subtitle2'];
|
70 |
+
|
71 |
+
$acx_html_fix_content3 = acx_csma_base_encode_fix($acx_csma_desc_subtitle2);
|
72 |
+
$acx_csma_appearence_array['2']['acx_csma_desc_subtitle2'] = $acx_html_fix_content3;
|
73 |
+
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
74 |
+
|
75 |
+
}
|
76 |
+
if(array_key_exists('2',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_top_temp2',$acx_csma_appearence_array['2']))
|
77 |
+
{
|
78 |
+
$acx_csma_custom_html_top_temp2 = $acx_csma_appearence_array['2']['acx_csma_custom_html_top_temp2'];
|
79 |
+
$acx_html_fix_content4 = acx_csma_base_encode_fix($acx_csma_custom_html_top_temp2);
|
80 |
+
$acx_csma_appearence_array['2']['acx_csma_custom_html_top_temp2'] = $acx_html_fix_content4;
|
81 |
+
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
82 |
+
}
|
83 |
+
if(array_key_exists('3',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_top_temp3',$acx_csma_appearence_array['3']))
|
84 |
+
{
|
85 |
+
$acx_csma_custom_html_top_temp3 = $acx_csma_appearence_array['3']['acx_csma_custom_html_top_temp3'];
|
86 |
+
$acx_html_fix_content5 = acx_csma_base_encode_fix($acx_csma_custom_html_top_temp3);
|
87 |
+
$acx_csma_appearence_array['3']['acx_csma_custom_html_top_temp3'] = $acx_html_fix_content5;
|
88 |
+
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
89 |
+
|
90 |
+
}
|
91 |
+
if(array_key_exists('3',$acx_csma_appearence_array) && array_key_exists('acx_csma_desc_subtitle3',$acx_csma_appearence_array['3']))
|
92 |
+
{
|
93 |
+
$acx_csma_desc_subtitle3 = $acx_csma_appearence_array['3']['acx_csma_desc_subtitle3'];
|
94 |
+
$acx_html_fix_content6 = acx_csma_base_encode_fix($acx_csma_desc_subtitle3);
|
95 |
+
$acx_csma_appearence_array['3']['acx_csma_desc_subtitle3'] = $acx_html_fix_content6;
|
96 |
+
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
97 |
+
|
98 |
+
}
|
99 |
+
if(array_key_exists('4',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_top_temp4',$acx_csma_appearence_array['4']))
|
100 |
+
{
|
101 |
+
$acx_csma_custom_html_top_temp4 = $acx_csma_appearence_array['4']['acx_csma_custom_html_top_temp4'];
|
102 |
+
$acx_html_fix_content7 = acx_csma_base_encode_fix($acx_csma_custom_html_top_temp4);
|
103 |
+
$acx_csma_appearence_array['4']['acx_csma_custom_html_top_temp4'] = $acx_html_fix_content7;
|
104 |
+
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
105 |
+
}
|
106 |
+
if(array_key_exists('4',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_bottom_temp4',$acx_csma_appearence_array['4']))
|
107 |
+
{
|
108 |
+
$acx_csma_custom_html_bottom_temp4 = $acx_csma_appearence_array['4']['acx_csma_custom_html_bottom_temp4'];
|
109 |
+
$acx_html_fix_content8 = acx_csma_base_encode_fix($acx_csma_custom_html_bottom_temp4);
|
110 |
+
$acx_csma_appearence_array['4']['acx_csma_custom_html_bottom_temp4'] = $acx_html_fix_content8;
|
111 |
+
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
112 |
+
|
113 |
+
}
|
114 |
+
if(array_key_exists('5',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_top_temp5',$acx_csma_appearence_array['5']))
|
115 |
+
{
|
116 |
+
$acx_csma_custom_html_top_temp5 = $acx_csma_appearence_array['5']['acx_csma_custom_html_top_temp5'];
|
117 |
+
$acx_html_fix_content9 = acx_csma_base_encode_fix($acx_csma_custom_html_top_temp5);
|
118 |
+
$acx_csma_appearence_array['5']['acx_csma_custom_html_top_temp5'] = $acx_html_fix_content9;
|
119 |
+
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
120 |
+
|
121 |
+
}
|
122 |
+
if(array_key_exists('5',$acx_csma_appearence_array) && array_key_exists('acx_csma_custom_html_bottom_temp5',$acx_csma_appearence_array['5']))
|
123 |
+
{
|
124 |
+
$acx_csma_custom_html_bottom_temp5 = $acx_csma_appearence_array['5']['acx_csma_custom_html_bottom_temp5'];
|
125 |
+
|
126 |
+
$acx_html_fix_content10 = acx_csma_base_encode_fix($acx_csma_custom_html_bottom_temp5);
|
127 |
+
$acx_csma_appearence_array['5']['acx_csma_custom_html_bottom_temp5'] = $acx_html_fix_content10;
|
128 |
+
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
129 |
+
}
|
130 |
+
if(array_key_exists('5',$acx_csma_appearence_array) && !array_key_exists('acx_csma_subscribe_main_title5',$acx_csma_appearence_array['5']))
|
131 |
+
{
|
132 |
+
$acx_csma_appearence_array['5']['acx_csma_subscribe_main_title5'] = "Want to know when we launch?";
|
133 |
+
update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
|
134 |
+
}
|
135 |
+
}
|
136 |
+
$acx_csma_custom_html_val = get_option('acx_csma_custom_html_val');
|
137 |
+
$acx_html_fix_content11 = acx_csma_base_encode_fix($acx_csma_custom_html_val);
|
138 |
+
update_option('acx_csma_custom_html_val',$acx_html_fix_content11);
|
139 |
+
update_option('acx_csma_version',ACX_CSMA_CURRENT_VERSION);
|
140 |
+
}
|
141 |
+
?>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.acurax.com/happy-clients.php
|
|
4 |
|
5 |
Tags: under construction,coming soon,under maintenance,maintenance mode,site offline,work in progress,website launch,launching page
|
6 |
Requires at least: 2.8
|
7 |
-
Tested up to: 4.
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
10 |
|
@@ -71,6 +71,8 @@ Feature Highlights
|
|
71 |
|
72 |
* Custom HTML Elements : Even if you choose one of the Coming Soon Template, you may needs to add something in between, and we have custom HTML option so that you can display what ever you wish in between the elements of available Under Construction templates.
|
73 |
|
|
|
|
|
74 |
* Google Analytics : Its easy to add your google analytics code to under construction page, We have option to input google analytics code in our settings.
|
75 |
|
76 |
* WordPress multi site : You can use Coming soon or Under Maintenance Mode Plugin From Acurax with your wordpress multi site or wordpress network installations and it will work perfect. Each website in your network will get individual management options.
|
@@ -179,6 +181,15 @@ Its Because You Selected The Option “Would You Like To End The Maintenance Mod
|
|
179 |
|
180 |
== Upgrade Notice ==
|
181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
= 2.4 =
|
183 |
* Feb 20, 2016
|
184 |
* Added More Customization Options for Templates
|
@@ -237,6 +248,15 @@ Its Because You Selected The Option “Would You Like To End The Maintenance Mod
|
|
237 |
|
238 |
== Changelog ==
|
239 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
= 2.4 =
|
241 |
* Feb 20, 2016
|
242 |
* Added More Customization Options for Templates
|
4 |
|
5 |
Tags: under construction,coming soon,under maintenance,maintenance mode,site offline,work in progress,website launch,launching page
|
6 |
Requires at least: 2.8
|
7 |
+
Tested up to: 4.5.2
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
10 |
|
71 |
|
72 |
* Custom HTML Elements : Even if you choose one of the Coming Soon Template, you may needs to add something in between, and we have custom HTML option so that you can display what ever you wish in between the elements of available Under Construction templates.
|
73 |
|
74 |
+
* Custom CSS Support : You have no limits in customizing the Under Construction or Under Maintenance Page, Customize and add your own css code to every themes we supports.
|
75 |
+
|
76 |
* Google Analytics : Its easy to add your google analytics code to under construction page, We have option to input google analytics code in our settings.
|
77 |
|
78 |
* WordPress multi site : You can use Coming soon or Under Maintenance Mode Plugin From Acurax with your wordpress multi site or wordpress network installations and it will work perfect. Each website in your network will get individual management options.
|
181 |
|
182 |
== Upgrade Notice ==
|
183 |
|
184 |
+
= 2.5 =
|
185 |
+
* April 3, 2016
|
186 |
+
* Added More Customization Options for Templates
|
187 |
+
* Option to Hide Countdown Timers
|
188 |
+
* Added More Custom HTML Blocks
|
189 |
+
* Added feature - Display Variables which helps you to have more flexibility on texts
|
190 |
+
* Several Bug Fixes and Improvements
|
191 |
+
* Stability Improvements
|
192 |
+
|
193 |
= 2.4 =
|
194 |
* Feb 20, 2016
|
195 |
* Added More Customization Options for Templates
|
248 |
|
249 |
== Changelog ==
|
250 |
|
251 |
+
= 2.5 =
|
252 |
+
* April 3, 2016
|
253 |
+
* Added More Customization Options for Templates
|
254 |
+
* Option to Hide Countdown Timers
|
255 |
+
* Added More Custom HTML Blocks
|
256 |
+
* Added feature - Display Variables which helps you to have more flexibility on texts
|
257 |
+
* Several Bug Fixes and Improvements
|
258 |
+
* Stability Improvements
|
259 |
+
|
260 |
= 2.4 =
|
261 |
* Feb 20, 2016
|
262 |
* Added More Customization Options for Templates
|
templates/0/index.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
<?php
|
2 |
$acx_csma_custom_html_val = get_option('acx_csma_custom_html_val');
|
3 |
-
echo $acx_csma_custom_html_val;
|
4 |
?>
|
1 |
<?php
|
2 |
$acx_csma_custom_html_val = get_option('acx_csma_custom_html_val');
|
3 |
+
echo $acx_csma_custom_html_val = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_val);
|
4 |
?>
|
templates/1/index.php
CHANGED
@@ -1,11 +1,7 @@
|
|
1 |
<?php
|
2 |
$acx_csma_template_id = 1;
|
3 |
do_action('acx_csma_above_template_html',$acx_csma_template_id);
|
4 |
-
$acx_csma_appearence_array_1=
|
5 |
-
if(is_serialized($acx_csma_appearence_array_1 ))
|
6 |
-
{
|
7 |
-
$acx_csma_appearence_array_1 = unserialize($acx_csma_appearence_array_1);
|
8 |
-
}
|
9 |
$acx_csma_meta_title = get_option('acx_csma_meta_title');
|
10 |
$acx_csma_meta_description = get_option('acx_csma_meta_description');
|
11 |
$acx_csma_meta_keywords = get_option('acx_csma_meta_keywords');
|
@@ -82,16 +78,21 @@ if(is_numeric($acx_csma_background_image1_id))
|
|
82 |
|
83 |
<?php
|
84 |
do_action('acx_csma_top_inside_body_tag',$acx_csma_template_id);
|
85 |
-
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_1[$acx_csma_template_id]))
|
86 |
-
if($acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
|
87 |
{
|
88 |
-
$
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
|
|
|
|
|
|
|
|
93 |
{
|
94 |
-
$new_class="";
|
|
|
95 |
?> <div class="wrapper" >
|
96 |
<div class="canvas960 <?php echo $new_class; ?>">
|
97 |
<div id="header">
|
@@ -107,23 +108,48 @@ $new_class="";}
|
|
107 |
?>
|
108 |
<img src="<?php echo $logo1_url; ?>" alt="Logo">
|
109 |
<?php } else if($acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
|
110 |
-
{
|
111 |
-
|
|
|
|
|
|
|
|
|
112 |
<?php } }?>
|
113 |
</div><!-- header -->
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
<div class="inline_block">
|
115 |
-
<h2 style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_title_color1']; ?>"><?php echo $
|
116 |
-
<h3 style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subtitle_color1']; ?>"><?php echo $
|
117 |
</div><!-- inline_block -->
|
118 |
|
119 |
<div class="inline_block mg_top">
|
120 |
<div class="timer_head" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_inside_bg_color1']; ?>; color: <?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_inside_title_color1']; ?>">
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
</div><!-- timer_head -->
|
123 |
<?php
|
124 |
$acx_csma_custom_html_top_temp1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_custom_html_top_temp1'];
|
125 |
$acx_csma_custom_html_bottom_temp1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_custom_html_bottom_temp1'];
|
126 |
-
|
127 |
if($acx_csma_custom_html_top_temp1 != "" || $acx_csma_custom_html_bottom_temp1 != "" || $acx_csma_show_timer1 == 1)
|
128 |
{
|
129 |
?>
|
@@ -133,13 +159,30 @@ $new_class="";}
|
|
133 |
}
|
134 |
if($acx_csma_custom_html_top_temp1 != "") { ?>
|
135 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_1">
|
136 |
-
<?php echo $acx_csma_custom_html_top_temp1; ?>
|
137 |
</div>
|
138 |
<?php } ?>
|
139 |
<?php if($acx_csma_show_timer1 == 1)
|
140 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
<div class="timer_box days">
|
142 |
-
<p style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_head_color1']; ?>"
|
143 |
<ul>
|
144 |
<li id="days_0" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
145 |
<li id="days_1" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
@@ -147,21 +190,21 @@ $new_class="";}
|
|
147 |
</ul>
|
148 |
</div><!-- timer_box -->
|
149 |
<div class="timer_box">
|
150 |
-
<p style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_head_color1']; ?>"
|
151 |
<ul>
|
152 |
<li id="hours_0" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
153 |
<li id="hours_1" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
154 |
</ul>
|
155 |
</div><!-- timer_box -->
|
156 |
<div class="timer_box">
|
157 |
-
<p style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_head_color1']; ?>"
|
158 |
<ul>
|
159 |
<li id="minutes_0" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
160 |
<li id="minutes_1" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
161 |
</ul>
|
162 |
</div><!-- timer_box -->
|
163 |
<div class="timer_box last_one">
|
164 |
-
<p style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_head_color1']; ?>"
|
165 |
<ul>
|
166 |
<li id="seconds_0" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
167 |
<li id="seconds_1" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
@@ -172,7 +215,7 @@ $new_class="";}
|
|
172 |
|
173 |
if($acx_csma_custom_html_bottom_temp1 != "") { ?>
|
174 |
<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_1">
|
175 |
-
<?php echo $acx_csma_custom_html_bottom_temp1; ?>
|
176 |
</div>
|
177 |
<?php }
|
178 |
|
@@ -181,12 +224,6 @@ $new_class="";}
|
|
181 |
</div><!-- timer_holder -->
|
182 |
<?php } ?>
|
183 |
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
<div class="inline_block form" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_bg_color1']; ?>">
|
191 |
<?php
|
192 |
$acx_csma_custom_html_top_sub1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_custom_html_top_sub1'];
|
@@ -198,22 +235,30 @@ $new_class="";}
|
|
198 |
if($acx_csma_custom_html_top_sub1 != "")
|
199 |
{ ?>
|
200 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_1" id="acx_csma_top_1">
|
201 |
-
<?php echo $acx_csma_custom_html_top_sub1
|
202 |
</div>
|
203 |
<?php
|
204 |
}
|
205 |
|
206 |
if($acx_csma_show_subscription == 1)
|
207 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
?>
|
209 |
-
<h4><span style="color: <?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_title_color1']; ?>;"><?php echo $
|
210 |
<form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']); ?>">
|
211 |
-
<div id="acx_csma_success" name="acx_csma_success" style="display:none; color:white;" ><?php echo $
|
212 |
-
<div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none; color:white;" ><?php echo $
|
213 |
<div id="acx_csma_error" style="color:white;"></div>
|
214 |
<input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
|
215 |
<input type="hidden" id="acx_csma_email" name="email" placeholder="Enter Your Email Here" ><br/>
|
216 |
-
<input type="button" id="acx_csma_submit" onclick="acx_csma_validate_email();" value="
|
217 |
</form>
|
218 |
<?php
|
219 |
}
|
@@ -221,7 +266,7 @@ $new_class="";}
|
|
221 |
if($acx_csma_custom_html_bottom_sub1 != "")
|
222 |
{ ?>
|
223 |
<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_1" id="acx_csma_top_1">
|
224 |
-
<?php echo $acx_csma_custom_html_bottom_sub1; ?>
|
225 |
</div>
|
226 |
<?php
|
227 |
}
|
@@ -230,13 +275,11 @@ $new_class="";}
|
|
230 |
|
231 |
</div>
|
232 |
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
<!-- form -->
|
239 |
-
|
|
|
|
|
|
|
240 |
</div><!-- inline_block -->
|
241 |
</div><!-- canvas960 -->
|
242 |
</div><!-- wrapper -->
|
@@ -260,6 +303,7 @@ return false;
|
|
260 |
<?php
|
261 |
if($acx_csma_show_subscription == 1)
|
262 |
{
|
|
|
263 |
?>
|
264 |
var acx_csma_form_status=1;
|
265 |
function acx_csma_validate_email()
|
@@ -277,7 +321,7 @@ function acx_csma_validate_email()
|
|
277 |
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
278 |
document.getElementById('acx_csma_email').type = 'email';
|
279 |
jQuery("#acx_csma_email").show();
|
280 |
-
document.getElementById('acx_csma_submit').value="
|
281 |
acx_csma_form_status=2;
|
282 |
return false;
|
283 |
}
|
@@ -302,7 +346,7 @@ function acx_csma_validate_email()
|
|
302 |
{
|
303 |
jQuery("#acx_csma_invalid").hide();
|
304 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
305 |
-
document.getElementById('acx_csma_submit').value="
|
306 |
jQuery("#acx_csma_submit").show();
|
307 |
acx_csma_form_status=1;
|
308 |
|
@@ -335,7 +379,7 @@ function acx_csma_validate_email()
|
|
335 |
{
|
336 |
jQuery("#acx_csma_success").hide();
|
337 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
338 |
-
document.getElementById('acx_csma_submit').value="
|
339 |
jQuery("#acx_csma_submit").show();
|
340 |
acx_csma_form_status=1;
|
341 |
|
@@ -352,7 +396,7 @@ function acx_csma_validate_email()
|
|
352 |
jQuery("#acx_csma_error").html('');
|
353 |
jQuery("#acx_csma_error").hide();
|
354 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
355 |
-
document.getElementById('acx_csma_submit').value="
|
356 |
jQuery("#acx_csma_submit").show();
|
357 |
acx_csma_form_status=1;
|
358 |
|
@@ -366,10 +410,12 @@ function acx_csma_validate_email()
|
|
366 |
<?php
|
367 |
}
|
368 |
?>
|
369 |
-
<?php
|
370 |
-
|
|
|
371 |
if($acx_csma_timestamp < $acx_csma_date_time)
|
372 |
-
{
|
|
|
373 |
var start_date = <?php echo $acx_csma_start_date_time; ?>;
|
374 |
var end_date =<?php echo $acx_csma_date_time; ?>;
|
375 |
var current = Math.floor(<?php echo current_time('timestamp'); ?>);
|
@@ -393,6 +439,15 @@ function updateCounter()
|
|
393 |
|
394 |
for(var i=0;i< seconds.toString().length;i++)
|
395 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
if(seconds < 10 && seconds.toString().length == 1 )
|
397 |
{
|
398 |
seconds = "0"+seconds;
|
@@ -414,6 +469,15 @@ function updateCounter()
|
|
414 |
}
|
415 |
for(var j=0;j< minutes.toString().length;j++)
|
416 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
417 |
if(minutes < 10 && minutes.toString().length == 1 )
|
418 |
{
|
419 |
minutes = "0"+minutes;
|
@@ -436,6 +500,14 @@ function updateCounter()
|
|
436 |
|
437 |
for(var k=0;k< hours.toString().length;k++)
|
438 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
439 |
if(hours < 10 && hours.toString().length == 1 )
|
440 |
{
|
441 |
hours = "0"+hours;
|
@@ -458,6 +530,14 @@ function updateCounter()
|
|
458 |
|
459 |
for(var m = 0; m < days.toString().length; m++)
|
460 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
461 |
var res_day = days.toString().charAt(m);
|
462 |
if(days.toString().length == 1)
|
463 |
{
|
@@ -481,7 +561,7 @@ function updateCounter()
|
|
481 |
}
|
482 |
<?php
|
483 |
}
|
484 |
-
|
485 |
?>
|
486 |
</script>
|
487 |
<?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id); ?>
|
1 |
<?php
|
2 |
$acx_csma_template_id = 1;
|
3 |
do_action('acx_csma_above_template_html',$acx_csma_template_id);
|
4 |
+
$acx_csma_appearence_array_1=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
5 |
$acx_csma_meta_title = get_option('acx_csma_meta_title');
|
6 |
$acx_csma_meta_description = get_option('acx_csma_meta_description');
|
7 |
$acx_csma_meta_keywords = get_option('acx_csma_meta_keywords');
|
78 |
|
79 |
<?php
|
80 |
do_action('acx_csma_top_inside_body_tag',$acx_csma_template_id);
|
81 |
+
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_1[$acx_csma_template_id]))
|
|
|
82 |
{
|
83 |
+
if($acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
|
84 |
+
{
|
85 |
+
$new_class="text_logo";
|
86 |
+
}
|
87 |
+
else
|
88 |
+
{
|
89 |
+
$new_class="";
|
90 |
+
}
|
91 |
+
}
|
92 |
+
else
|
93 |
{
|
94 |
+
$new_class="";
|
95 |
+
}
|
96 |
?> <div class="wrapper" >
|
97 |
<div class="canvas960 <?php echo $new_class; ?>">
|
98 |
<div id="header">
|
108 |
?>
|
109 |
<img src="<?php echo $logo1_url; ?>" alt="Logo">
|
110 |
<?php } else if($acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
|
111 |
+
{
|
112 |
+
$acx_csma_logo_text1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_logo_text1'];
|
113 |
+
$acx_csma_logo_text1 = acx_csma_text_after_save_hook_fn($acx_csma_logo_text1);
|
114 |
+
|
115 |
+
?>
|
116 |
+
<div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_logo_text_color1']; ?>"><?php echo $acx_csma_logo_text1; ?></div>
|
117 |
<?php } }?>
|
118 |
</div><!-- header -->
|
119 |
+
<?php
|
120 |
+
$acx_csma_title1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_title1'];
|
121 |
+
$acx_csma_title1 = acx_csma_text_after_save_hook_fn($acx_csma_title1);
|
122 |
+
$acx_csma_subtitle_text1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subtitle_text1'];
|
123 |
+
$acx_csma_subtitle_text1 = acx_csma_text_after_save_hook_fn($acx_csma_subtitle_text1);
|
124 |
+
?>
|
125 |
<div class="inline_block">
|
126 |
+
<h2 style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_title_color1']; ?>"><?php echo $acx_csma_title1; ?></h2>
|
127 |
+
<h3 style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subtitle_color1']; ?>"><?php echo $acx_csma_subtitle_text1; ?></h3>
|
128 |
</div><!-- inline_block -->
|
129 |
|
130 |
<div class="inline_block mg_top">
|
131 |
<div class="timer_head" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_inside_bg_color1']; ?>; color: <?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_inside_title_color1']; ?>">
|
132 |
+
<?php
|
133 |
+
$acx_csma_show_timer1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_show_timer1'];
|
134 |
+
if($acx_csma_show_timer1 == 1)
|
135 |
+
{
|
136 |
+
$acx_csma_inside_title1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_inside_title1'];
|
137 |
+
$acx_csma_inside_title1 = acx_csma_text_after_save_hook_fn($acx_csma_inside_title1);
|
138 |
+
?><p><?php echo $acx_csma_inside_title1; ?></p>
|
139 |
+
|
140 |
+
<?php
|
141 |
+
}
|
142 |
+
$acx_csma_custom_html_top_temp1_title = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_custom_html_top_temp1_title'];
|
143 |
+
if($acx_csma_custom_html_top_temp1_title != "") { ?>
|
144 |
+
<div class="acx_csma_content_div acx_csma_top acx_csma_top_1 inline_block">
|
145 |
+
<?php echo $acx_csma_custom_html_top_temp1_title = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp1_title); ?>
|
146 |
+
</div>
|
147 |
+
<?php } ?>
|
148 |
</div><!-- timer_head -->
|
149 |
<?php
|
150 |
$acx_csma_custom_html_top_temp1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_custom_html_top_temp1'];
|
151 |
$acx_csma_custom_html_bottom_temp1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_custom_html_bottom_temp1'];
|
152 |
+
|
153 |
if($acx_csma_custom_html_top_temp1 != "" || $acx_csma_custom_html_bottom_temp1 != "" || $acx_csma_show_timer1 == 1)
|
154 |
{
|
155 |
?>
|
159 |
}
|
160 |
if($acx_csma_custom_html_top_temp1 != "") { ?>
|
161 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_1">
|
162 |
+
<?php echo $acx_csma_custom_html_top_temp1 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp1); ?>
|
163 |
</div>
|
164 |
<?php } ?>
|
165 |
<?php if($acx_csma_show_timer1 == 1)
|
166 |
+
{
|
167 |
+
$acx_second_arr=acx_csma_disp_var_to_show("second");
|
168 |
+
$acx_sec_singular=$acx_second_arr['singular'];
|
169 |
+
$acx_sec_plural=$acx_second_arr['plural'];
|
170 |
+
|
171 |
+
$acx_minute_arr=acx_csma_disp_var_to_show("minute");
|
172 |
+
$acx_minute_singular=$acx_minute_arr['singular'];
|
173 |
+
$acx_minute_plural=$acx_minute_arr['plural'];
|
174 |
+
|
175 |
+
$acx_hour_arr=acx_csma_disp_var_to_show("hour");
|
176 |
+
$acx_hour_singular=$acx_hour_arr['singular'];
|
177 |
+
$acx_hour_plural=$acx_hour_arr['plural'];
|
178 |
+
|
179 |
+
$acx_day_arr=acx_csma_disp_var_to_show("day");
|
180 |
+
$acx_day_singular=$acx_day_arr['singular'];
|
181 |
+
$acx_day_plural=$acx_day_arr['plural'];
|
182 |
+
|
183 |
+
?>
|
184 |
<div class="timer_box days">
|
185 |
+
<p id="acx_day_disp" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_head_color1']; ?>"><?php echo $acx_day_singular; ?></p>
|
186 |
<ul>
|
187 |
<li id="days_0" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
188 |
<li id="days_1" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
190 |
</ul>
|
191 |
</div><!-- timer_box -->
|
192 |
<div class="timer_box">
|
193 |
+
<p id="acx_hour_disp" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_head_color1']; ?>"><?php echo $acx_hour_singular; ?></p>
|
194 |
<ul>
|
195 |
<li id="hours_0" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
196 |
<li id="hours_1" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
197 |
</ul>
|
198 |
</div><!-- timer_box -->
|
199 |
<div class="timer_box">
|
200 |
+
<p id="acx_min_disp" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_head_color1']; ?>"><?php echo $acx_minute_singular; ?></p>
|
201 |
<ul>
|
202 |
<li id="minutes_0" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
203 |
<li id="minutes_1" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
204 |
</ul>
|
205 |
</div><!-- timer_box -->
|
206 |
<div class="timer_box last_one">
|
207 |
+
<p id="acx_sec_disp" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_head_color1']; ?>"><?php echo $acx_sec_singular; ?></p>
|
208 |
<ul>
|
209 |
<li id="seconds_0" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
210 |
<li id="seconds_1" style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>">0</li>
|
215 |
|
216 |
if($acx_csma_custom_html_bottom_temp1 != "") { ?>
|
217 |
<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_1">
|
218 |
+
<?php echo $acx_csma_custom_html_bottom_temp1 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_temp1); ?>
|
219 |
</div>
|
220 |
<?php }
|
221 |
|
224 |
</div><!-- timer_holder -->
|
225 |
<?php } ?>
|
226 |
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
<div class="inline_block form" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_bg_color1']; ?>">
|
228 |
<?php
|
229 |
$acx_csma_custom_html_top_sub1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_custom_html_top_sub1'];
|
235 |
if($acx_csma_custom_html_top_sub1 != "")
|
236 |
{ ?>
|
237 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_1" id="acx_csma_top_1">
|
238 |
+
<?php echo $acx_csma_custom_html_top_sub1 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_sub1);; ?>
|
239 |
</div>
|
240 |
<?php
|
241 |
}
|
242 |
|
243 |
if($acx_csma_show_subscription == 1)
|
244 |
{
|
245 |
+
$acx_csma_subscribe_title1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_title1'];
|
246 |
+
$acx_csma_subscribe_title1 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_title1);
|
247 |
+
$acx_csma_subscribe_success1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_success1'];
|
248 |
+
$acx_csma_subscribe_success1 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_success1);
|
249 |
+
$acx_csma_subscribe_invalid1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_invalid1'];
|
250 |
+
$acx_csma_subscribe_invalid1 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_invalid1);
|
251 |
+
$acx_subs_next_arr=acx_csma_disp_var_to_show("next");
|
252 |
+
$acx_next_singular=$acx_subs_next_arr['singular'];
|
253 |
?>
|
254 |
+
<h4><span style="color: <?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_title_color1']; ?>;"><?php echo $acx_csma_subscribe_title1; ?></span></h4>
|
255 |
<form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']); ?>">
|
256 |
+
<div id="acx_csma_success" name="acx_csma_success" style="display:none; color:white;" ><?php echo $acx_csma_subscribe_success1; ?></div>
|
257 |
+
<div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none; color:white;" ><?php echo $acx_csma_subscribe_invalid1; ?></div>
|
258 |
<div id="acx_csma_error" style="color:white;"></div>
|
259 |
<input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
|
260 |
<input type="hidden" id="acx_csma_email" name="email" placeholder="Enter Your Email Here" ><br/>
|
261 |
+
<input type="button" id="acx_csma_submit" onclick="acx_csma_validate_email();" value="<?php echo $acx_next_singular; ?>" class="submit" >
|
262 |
</form>
|
263 |
<?php
|
264 |
}
|
266 |
if($acx_csma_custom_html_bottom_sub1 != "")
|
267 |
{ ?>
|
268 |
<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_1" id="acx_csma_top_1">
|
269 |
+
<?php echo $acx_csma_custom_html_bottom_sub1 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_sub1); ?>
|
270 |
</div>
|
271 |
<?php
|
272 |
}
|
275 |
|
276 |
</div>
|
277 |
|
|
|
|
|
|
|
|
|
|
|
278 |
<!-- form -->
|
279 |
+
<?php $acx_csma_footer_text1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_text1'];
|
280 |
+
$acx_csma_footer_text1 = acx_csma_text_after_save_hook_fn($acx_csma_footer_text1);
|
281 |
+
?>
|
282 |
+
<div class="timer_head footer" style="background:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_bgcolor1']; ?>;color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_text_color1']; ?>"><?php echo $acx_csma_footer_text1; ?></div><!-- timer_head -->
|
283 |
</div><!-- inline_block -->
|
284 |
</div><!-- canvas960 -->
|
285 |
</div><!-- wrapper -->
|
303 |
<?php
|
304 |
if($acx_csma_show_subscription == 1)
|
305 |
{
|
306 |
+
$acx_csma_subscribe_btn_text1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_btn_text1'];
|
307 |
?>
|
308 |
var acx_csma_form_status=1;
|
309 |
function acx_csma_validate_email()
|
321 |
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
322 |
document.getElementById('acx_csma_email').type = 'email';
|
323 |
jQuery("#acx_csma_email").show();
|
324 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_subscribe_btn_text1; ?>";
|
325 |
acx_csma_form_status=2;
|
326 |
return false;
|
327 |
}
|
346 |
{
|
347 |
jQuery("#acx_csma_invalid").hide();
|
348 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
349 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
|
350 |
jQuery("#acx_csma_submit").show();
|
351 |
acx_csma_form_status=1;
|
352 |
|
379 |
{
|
380 |
jQuery("#acx_csma_success").hide();
|
381 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
382 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
|
383 |
jQuery("#acx_csma_submit").show();
|
384 |
acx_csma_form_status=1;
|
385 |
|
396 |
jQuery("#acx_csma_error").html('');
|
397 |
jQuery("#acx_csma_error").hide();
|
398 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
399 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
|
400 |
jQuery("#acx_csma_submit").show();
|
401 |
acx_csma_form_status=1;
|
402 |
|
410 |
<?php
|
411 |
}
|
412 |
?>
|
413 |
+
<?php
|
414 |
+
if($acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_show_timer1']==1)
|
415 |
+
{
|
416 |
if($acx_csma_timestamp < $acx_csma_date_time)
|
417 |
+
{
|
418 |
+
?>
|
419 |
var start_date = <?php echo $acx_csma_start_date_time; ?>;
|
420 |
var end_date =<?php echo $acx_csma_date_time; ?>;
|
421 |
var current = Math.floor(<?php echo current_time('timestamp'); ?>);
|
439 |
|
440 |
for(var i=0;i< seconds.toString().length;i++)
|
441 |
{
|
442 |
+
|
443 |
+
if(seconds < 2)
|
444 |
+
{
|
445 |
+
jQuery('#acx_sec_disp').html('<?php echo $acx_sec_singular; ?>');
|
446 |
+
}
|
447 |
+
else
|
448 |
+
{
|
449 |
+
jQuery('#acx_sec_disp').html('<?php echo $acx_sec_plural; ?>');
|
450 |
+
}
|
451 |
if(seconds < 10 && seconds.toString().length == 1 )
|
452 |
{
|
453 |
seconds = "0"+seconds;
|
469 |
}
|
470 |
for(var j=0;j< minutes.toString().length;j++)
|
471 |
{
|
472 |
+
|
473 |
+
if(minutes < 2)
|
474 |
+
{
|
475 |
+
jQuery('#acx_min_disp').html('<?php echo $acx_minute_singular; ?>');
|
476 |
+
}
|
477 |
+
else
|
478 |
+
{
|
479 |
+
jQuery('#acx_min_disp').html('<?php echo $acx_minute_plural; ?>');
|
480 |
+
}
|
481 |
if(minutes < 10 && minutes.toString().length == 1 )
|
482 |
{
|
483 |
minutes = "0"+minutes;
|
500 |
|
501 |
for(var k=0;k< hours.toString().length;k++)
|
502 |
{
|
503 |
+
if(hours < 2)
|
504 |
+
{
|
505 |
+
jQuery('#acx_hour_disp').html('<?php echo $acx_hour_singular; ?>');
|
506 |
+
}
|
507 |
+
else
|
508 |
+
{
|
509 |
+
jQuery('#acx_hour_disp').html('<?php echo $acx_hour_plural; ?>');
|
510 |
+
}
|
511 |
if(hours < 10 && hours.toString().length == 1 )
|
512 |
{
|
513 |
hours = "0"+hours;
|
530 |
|
531 |
for(var m = 0; m < days.toString().length; m++)
|
532 |
{
|
533 |
+
if(days < 2)
|
534 |
+
{
|
535 |
+
jQuery('#acx_day_disp').html('<?php echo $acx_day_singular; ?>');
|
536 |
+
}
|
537 |
+
else
|
538 |
+
{
|
539 |
+
jQuery('#acx_day_disp').html('<?php echo $acx_day_plural; ?>');
|
540 |
+
}
|
541 |
var res_day = days.toString().charAt(m);
|
542 |
if(days.toString().length == 1)
|
543 |
{
|
561 |
}
|
562 |
<?php
|
563 |
}
|
564 |
+
}
|
565 |
?>
|
566 |
</script>
|
567 |
<?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id); ?>
|
templates/2/index.php
CHANGED
@@ -12,11 +12,7 @@ if(is_numeric($favicon_attach_id))
|
|
12 |
$acx_csma_favicon = $fav_icon_attachment_url [ 'scheme' ] . '://' .rawurlencode( basename( $fav_icon_attachment_url[ 'host' ])). $fav_icon_attachment_url[ 'path' ];
|
13 |
}
|
14 |
|
15 |
-
$acx_csma_appearence_array_2=
|
16 |
-
if(is_serialized($acx_csma_appearence_array_2 ))
|
17 |
-
{
|
18 |
-
$acx_csma_appearence_array_2 = unserialize($acx_csma_appearence_array_2);
|
19 |
-
}
|
20 |
$acx_csma_start_date_time=get_option('acx_csma_start_date_time');
|
21 |
$acx_csma_date_time=get_option('acx_csma_date_time');
|
22 |
$acx_csma_timestamp=current_time('timestamp');
|
@@ -61,16 +57,20 @@ do_action('acx_csma_bottom_inside_head_tag',$acx_csma_template_id);
|
|
61 |
<body style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_bg_color2']; ?>">
|
62 |
<?php
|
63 |
do_action('acx_csma_top_inside_body_tag',$acx_csma_template_id);
|
64 |
-
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_2[$acx_csma_template_id]))
|
65 |
-
if($acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
|
66 |
{
|
67 |
-
$
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
72 |
{
|
73 |
-
$new_class="";
|
74 |
}
|
75 |
?>
|
76 |
<div class="wrapper <?php echo $new_class; ?>">
|
@@ -89,43 +89,89 @@ $new_class="";
|
|
89 |
<img src="<?php echo $logo2_url; ?>" alt="Logo">
|
90 |
</div> <!-- csma_master_logo -->
|
91 |
<?php } else if($acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
|
92 |
-
{
|
93 |
-
|
|
|
|
|
|
|
94 |
<?php }} ?></div><!-- header -->
|
95 |
<div class="inline_block yellow" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_inside_bg_color2']; ?>;">
|
96 |
<div class="inline_block form">
|
97 |
<?php
|
98 |
$acx_csma_show_subscription2=$acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_show_subscription2'];
|
|
|
|
|
|
|
|
|
99 |
?>
|
100 |
|
101 |
-
<h2 style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_subtitle_color2']; ?>"><span class="inline_main_title" style="font-size:72px; color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_title_color2']; ?>"><strong><?php echo $
|
102 |
<?php
|
103 |
-
|
104 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
?>
|
106 |
<form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']); ?>">
|
107 |
-
<div id="acx_csma_success" name="acx_csma_success" style="display:none;color:white;" ><?php echo
|
108 |
-
<div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none;color:white;" ><?php echo $
|
109 |
<div id="acx_csma_error" style="color:white;"></div>
|
110 |
<input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
|
111 |
<input type="hidden" id="acx_csma_email" name="email" placeholder="Get Notified (Email)">
|
112 |
-
<input type="button" value="
|
113 |
</form>
|
114 |
<?php
|
115 |
}
|
116 |
?>
|
117 |
-
</div><!-- form -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
<div class="inline_block timer_holder">
|
119 |
|
120 |
-
<?php
|
121 |
-
$
|
122 |
-
|
123 |
-
|
124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
<div class="timer_box days">
|
126 |
<ul>
|
127 |
<li id="days" style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">000</li>
|
128 |
-
<li class="day_text" style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_head_color2']; ?>"
|
129 |
</ul>
|
130 |
</div><!-- timer_box -->
|
131 |
<div class="timer_box">
|
@@ -133,27 +179,30 @@ $acx_csma_custom_html_top_timer=$acx_csma_appearence_array_2[$acx_csma_template_
|
|
133 |
<li id="hours_0" style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">0</li>
|
134 |
<li id="hours_1" style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">0</li>
|
135 |
</ul>
|
136 |
-
<p style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_head_color2']; ?>"
|
137 |
</div><!-- timer_box -->
|
138 |
<div class="timer_box">
|
139 |
<ul>
|
140 |
<li id="minutes_0" style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">0</li>
|
141 |
<li id="minutes_1" style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">0</li>
|
142 |
</ul>
|
143 |
-
<p style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_head_color2']; ?>"
|
144 |
</div><!-- timer_box -->
|
145 |
<div class="timer_box last_one">
|
146 |
<ul>
|
147 |
<li id="seconds_0" style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">0</li>
|
148 |
<li id="seconds_1" style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">0</li>
|
149 |
</ul>
|
150 |
-
<p style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_head_color2']; ?>"
|
151 |
</div><!-- timer_box -->
|
|
|
|
|
|
|
152 |
<div id="acx_csma_content_below_timer">
|
153 |
<?php
|
154 |
if($acx_csma_custom_html_top_timer != "")
|
155 |
{
|
156 |
-
echo $acx_csma_custom_html_top_timer;
|
157 |
}
|
158 |
?>
|
159 |
</div>
|
@@ -164,12 +213,18 @@ $acx_csma_custom_html_top_timer=$acx_csma_appearence_array_2[$acx_csma_template_
|
|
164 |
$acx_csma_custom_html_top_temp2 = $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_custom_html_top_temp2'];
|
165 |
if($acx_csma_custom_html_top_temp2 != "") { ?>
|
166 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_2">
|
167 |
-
<?php echo $acx_csma_custom_html_top_temp2; ?>
|
168 |
</div>
|
169 |
-
<?php }
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
|
171 |
-
<h4 style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_desc_text_color2']; ?>"><?php echo $
|
172 |
-
<p><?php echo $
|
173 |
</div><!-- inline_block -->
|
174 |
</div><!-- inline_block -->
|
175 |
<div class="footer">
|
@@ -182,10 +237,10 @@ $acx_csma_custom_html_top_timer=$acx_csma_appearence_array_2[$acx_csma_template_
|
|
182 |
?>
|
183 |
<ul>
|
184 |
<p>FOLLOW US ON</p>
|
185 |
-
|
186 |
if($acx_csma_fb_link2 != "")
|
187 |
{
|
188 |
-
|
189 |
<li><a class="acx_csma_social_icons csma_fb" href="<?php echo esc_url($acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_fb_link2']); ?>"><img src="<?php echo plugins_url('images/facebook.png', __FILE__); ?>" alt="Logo"></a></li>
|
190 |
<?php
|
191 |
}
|
@@ -193,15 +248,15 @@ $acx_csma_custom_html_top_timer=$acx_csma_appearence_array_2[$acx_csma_template_
|
|
193 |
{
|
194 |
?>
|
195 |
<li><a class="acx_csma_social_icons csma_twtr" href="<?php echo esc_url($acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_twitter_link2']); ?>"><img src="<?php echo plugins_url('images/twitter.png', __FILE__); ?>" alt="Logo"></a></li>
|
196 |
-
<?php
|
197 |
}
|
198 |
if($acx_csma_linkedin_link2 != "")
|
199 |
{
|
200 |
-
|
201 |
<li><a class="acx_csma_social_icons csma_lnkn" href="<?php echo esc_url($acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_linkedin_link2']); ?>"><img src="<?php echo plugins_url('images/linkedin.png', __FILE__); ?>" alt="Logo"></a></li>
|
202 |
-
|
203 |
}
|
204 |
-
|
205 |
|
206 |
</ul>
|
207 |
<?php
|
@@ -212,6 +267,7 @@ $acx_csma_custom_html_top_timer=$acx_csma_appearence_array_2[$acx_csma_template_
|
|
212 |
|
213 |
</div><!-- canvas960 -->
|
214 |
</div><!-- wrapper -->
|
|
|
215 |
<script type="text/javascript">
|
216 |
jQuery(document).ready(function() {
|
217 |
jQuery(window).keydown(function(event){
|
@@ -231,7 +287,8 @@ return false;
|
|
231 |
<?php
|
232 |
if($acx_csma_show_subscription2 == 1)
|
233 |
{
|
234 |
-
|
|
|
235 |
var acx_csma_form_status=1;
|
236 |
function acx_csma_validate_email()
|
237 |
{
|
@@ -248,7 +305,7 @@ function acx_csma_validate_email()
|
|
248 |
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
249 |
document.getElementById('acx_csma_email').type = 'email';
|
250 |
jQuery("#acx_csma_email").show();
|
251 |
-
document.getElementById('acx_csma_submit').value="
|
252 |
acx_csma_form_status=2;
|
253 |
return false;
|
254 |
}
|
@@ -273,7 +330,7 @@ function acx_csma_validate_email()
|
|
273 |
{
|
274 |
jQuery("#acx_csma_invalid").hide();
|
275 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
276 |
-
document.getElementById('acx_csma_submit').value="
|
277 |
jQuery("#acx_csma_submit").show();
|
278 |
acx_csma_form_status=1;
|
279 |
|
@@ -306,7 +363,7 @@ function acx_csma_validate_email()
|
|
306 |
{
|
307 |
jQuery("#acx_csma_success").hide();
|
308 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
309 |
-
document.getElementById('acx_csma_submit').value="
|
310 |
jQuery("#acx_csma_submit").show();
|
311 |
acx_csma_form_status=1;
|
312 |
|
@@ -323,7 +380,7 @@ function acx_csma_validate_email()
|
|
323 |
jQuery("#acx_csma_error").html('');
|
324 |
jQuery("#acx_csma_error").hide();
|
325 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
326 |
-
document.getElementById('acx_csma_submit').value="
|
327 |
jQuery("#acx_csma_submit").show();
|
328 |
acx_csma_form_status=1;
|
329 |
|
@@ -336,7 +393,8 @@ function acx_csma_validate_email()
|
|
336 |
}
|
337 |
<?php
|
338 |
}
|
339 |
-
|
|
|
340 |
if($acx_csma_timestamp < $acx_csma_date_time)
|
341 |
{?>
|
342 |
var start_date = <?php echo $acx_csma_start_date_time; ?>;
|
@@ -361,6 +419,14 @@ function updateCounter()
|
|
361 |
|
362 |
for(var i=0;i< seconds.toString().length;i++)
|
363 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
364 |
if(seconds < 10 && seconds.toString().length == 1 )
|
365 |
{
|
366 |
seconds = "0"+seconds;
|
@@ -382,6 +448,14 @@ function updateCounter()
|
|
382 |
}
|
383 |
for(var j=0;j< minutes.toString().length;j++)
|
384 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
385 |
if(minutes < 10 && minutes.toString().length == 1 )
|
386 |
{
|
387 |
minutes = "0"+minutes;
|
@@ -404,6 +478,14 @@ function updateCounter()
|
|
404 |
|
405 |
for(var k=0;k< hours.toString().length;k++)
|
406 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
if(hours < 10 && hours.toString().length == 1 )
|
408 |
{
|
409 |
hours = "0"+hours;
|
@@ -424,6 +506,14 @@ function updateCounter()
|
|
424 |
}
|
425 |
}
|
426 |
document.getElementById("days").innerHTML = days;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
setTimeout(function(){
|
428 |
updateCounter();
|
429 |
}, 1000 );
|
@@ -431,6 +521,7 @@ function updateCounter()
|
|
431 |
}
|
432 |
<?php
|
433 |
}
|
|
|
434 |
?>
|
435 |
</script>
|
436 |
<?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id);?>
|
12 |
$acx_csma_favicon = $fav_icon_attachment_url [ 'scheme' ] . '://' .rawurlencode( basename( $fav_icon_attachment_url[ 'host' ])). $fav_icon_attachment_url[ 'path' ];
|
13 |
}
|
14 |
|
15 |
+
$acx_csma_appearence_array_2=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
16 |
$acx_csma_start_date_time=get_option('acx_csma_start_date_time');
|
17 |
$acx_csma_date_time=get_option('acx_csma_date_time');
|
18 |
$acx_csma_timestamp=current_time('timestamp');
|
57 |
<body style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_bg_color2']; ?>">
|
58 |
<?php
|
59 |
do_action('acx_csma_top_inside_body_tag',$acx_csma_template_id);
|
60 |
+
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_2[$acx_csma_template_id]))
|
|
|
61 |
{
|
62 |
+
if($acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
|
63 |
+
{
|
64 |
+
$new_class="text_logo";
|
65 |
+
}
|
66 |
+
else
|
67 |
+
{
|
68 |
+
$new_class="";
|
69 |
+
}
|
70 |
+
}
|
71 |
+
else
|
72 |
{
|
73 |
+
$new_class="";
|
74 |
}
|
75 |
?>
|
76 |
<div class="wrapper <?php echo $new_class; ?>">
|
89 |
<img src="<?php echo $logo2_url; ?>" alt="Logo">
|
90 |
</div> <!-- csma_master_logo -->
|
91 |
<?php } else if($acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
|
92 |
+
{
|
93 |
+
$acx_csma_logo_text2 = $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_logo_text2'];
|
94 |
+
$acx_csma_logo_text2 = acx_csma_text_after_save_hook_fn($acx_csma_logo_text2);
|
95 |
+
?>
|
96 |
+
<div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_logo_text_color2']; ?>"><?php echo $acx_csma_logo_text2; ?></div><!-- logo_text-->
|
97 |
<?php }} ?></div><!-- header -->
|
98 |
<div class="inline_block yellow" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_inside_bg_color2']; ?>;">
|
99 |
<div class="inline_block form">
|
100 |
<?php
|
101 |
$acx_csma_show_subscription2=$acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_show_subscription2'];
|
102 |
+
$acx_csma_title2 = $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_title2'];
|
103 |
+
$acx_csma_title2 = acx_csma_text_after_save_hook_fn($acx_csma_title2);
|
104 |
+
$acx_csma_subtitle_text2 = $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_subtitle_text2'];
|
105 |
+
$acx_csma_subtitle_text2 = acx_csma_text_after_save_hook_fn($acx_csma_subtitle_text2);
|
106 |
?>
|
107 |
|
108 |
+
<h2 style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_subtitle_color2']; ?>"><span class="inline_main_title" style="font-size:72px; color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_title_color2']; ?>"><strong><?php echo $acx_csma_title2; ?></strong></span><br> <?php echo $acx_csma_subtitle_text2; ?> </h2>
|
109 |
<?php
|
110 |
+
if($acx_csma_show_subscription2 == 1)
|
111 |
{
|
112 |
+
$acx_csma_subscribe_success2 = $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_subscribe_success2'];
|
113 |
+
$acx_csma_subscribe_success2 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_success2);
|
114 |
+
$acx_csma_subscribe_invalid2 = $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_subscribe_invalid2'];
|
115 |
+
$acx_csma_subscribe_invalid2 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_invalid2);
|
116 |
+
$acx_subs_next_arr=acx_csma_disp_var_to_show("next");
|
117 |
+
$acx_next_singular=$acx_subs_next_arr['singular'];
|
118 |
?>
|
119 |
<form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']); ?>">
|
120 |
+
<div id="acx_csma_success" name="acx_csma_success" style="display:none;color:white;" ><?php echo $acx_csma_subscribe_success2; ?></div>
|
121 |
+
<div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none;color:white;" ><?php echo $acx_csma_subscribe_invalid2; ?></div>
|
122 |
<div id="acx_csma_error" style="color:white;"></div>
|
123 |
<input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
|
124 |
<input type="hidden" id="acx_csma_email" name="email" placeholder="Get Notified (Email)">
|
125 |
+
<input type="button" value="<?php echo $acx_next_singular; ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit" style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_subscribe_btn_color2']; ?>">
|
126 |
</form>
|
127 |
<?php
|
128 |
}
|
129 |
?>
|
130 |
+
</div><!-- form -->
|
131 |
+
|
132 |
+
<?php
|
133 |
+
$acx_csma_custom_html_above_timer=$acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_custom_html_above_timer'];
|
134 |
+
if($acx_csma_custom_html_above_timer != "")
|
135 |
+
{?>
|
136 |
+
<div id="acx_above_timer_html">
|
137 |
+
<?php echo $acx_csma_custom_html_above_timer = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_above_timer);?>
|
138 |
+
</div><!-- acx_above_timer_html -->
|
139 |
+
|
140 |
+
<?php
|
141 |
+
}
|
142 |
+
?>
|
143 |
+
|
144 |
<div class="inline_block timer_holder">
|
145 |
|
146 |
+
<?php
|
147 |
+
$acx_csma_show_timer2=$acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_show_timer2'];
|
148 |
+
$acx_csma_custom_html_top_timer=$acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_custom_html_top_timer'];
|
149 |
+
if($acx_csma_show_timer2 == 1)
|
150 |
+
{
|
151 |
+
$acx_csma_timer_title2 = $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_title2'];
|
152 |
+
$acx_csma_timer_title2 = acx_csma_text_after_save_hook_fn($acx_csma_timer_title2);
|
153 |
+
$acx_second_arr=acx_csma_disp_var_to_show("second");
|
154 |
+
$acx_sec_singular=$acx_second_arr['singular'];
|
155 |
+
$acx_sec_plural=$acx_second_arr['plural'];
|
156 |
+
|
157 |
+
$acx_minute_arr=acx_csma_disp_var_to_show("minute");
|
158 |
+
$acx_minute_singular=$acx_minute_arr['singular'];
|
159 |
+
$acx_minute_plural=$acx_minute_arr['plural'];
|
160 |
+
|
161 |
+
$acx_hour_arr=acx_csma_disp_var_to_show("hour");
|
162 |
+
$acx_hour_singular=$acx_hour_arr['singular'];
|
163 |
+
$acx_hour_plural=$acx_hour_arr['plural'];
|
164 |
+
|
165 |
+
$acx_day_arr=acx_csma_disp_var_to_show("day");
|
166 |
+
$acx_day_singular=$acx_day_arr['singular'];
|
167 |
+
$acx_day_plural=$acx_day_arr['plural'];
|
168 |
+
?>
|
169 |
+
|
170 |
+
<h3><?php echo $acx_csma_timer_title2; ?></h3>
|
171 |
<div class="timer_box days">
|
172 |
<ul>
|
173 |
<li id="days" style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">000</li>
|
174 |
+
<li id="acx_day_disp" class="day_text" style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_head_color2']; ?>"><?php echo $acx_day_singular; ?></li>
|
175 |
</ul>
|
176 |
</div><!-- timer_box -->
|
177 |
<div class="timer_box">
|
179 |
<li id="hours_0" style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">0</li>
|
180 |
<li id="hours_1" style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">0</li>
|
181 |
</ul>
|
182 |
+
<p id="acx_hour_disp" style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_head_color2']; ?>"><?php echo $acx_hour_singular; ?></p>
|
183 |
</div><!-- timer_box -->
|
184 |
<div class="timer_box">
|
185 |
<ul>
|
186 |
<li id="minutes_0" style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">0</li>
|
187 |
<li id="minutes_1" style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">0</li>
|
188 |
</ul>
|
189 |
+
<p id="acx_min_disp" style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_head_color2']; ?>"><?php echo $acx_minute_singular; ?></p>
|
190 |
</div><!-- timer_box -->
|
191 |
<div class="timer_box last_one">
|
192 |
<ul>
|
193 |
<li id="seconds_0" style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">0</li>
|
194 |
<li id="seconds_1" style="background:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_iptext_color2']; ?>">0</li>
|
195 |
</ul>
|
196 |
+
<p id="acx_sec_disp" style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_timer_head_color2']; ?>"><?php echo $acx_sec_singular; ?></p>
|
197 |
</div><!-- timer_box -->
|
198 |
+
<?php
|
199 |
+
}
|
200 |
+
?>
|
201 |
<div id="acx_csma_content_below_timer">
|
202 |
<?php
|
203 |
if($acx_csma_custom_html_top_timer != "")
|
204 |
{
|
205 |
+
echo $acx_csma_custom_html_top_timer = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_timer);
|
206 |
}
|
207 |
?>
|
208 |
</div>
|
213 |
$acx_csma_custom_html_top_temp2 = $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_custom_html_top_temp2'];
|
214 |
if($acx_csma_custom_html_top_temp2 != "") { ?>
|
215 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_2">
|
216 |
+
<?php echo $acx_csma_custom_html_top_temp2 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp2); ?>
|
217 |
</div>
|
218 |
+
<?php }
|
219 |
+
$acx_csma_desc_title2 = $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_desc_title2'];
|
220 |
+
$acx_csma_desc_title2 = acx_csma_text_after_save_hook_fn($acx_csma_desc_title2);
|
221 |
+
$acx_csma_desc_subtitle2 = $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_desc_subtitle2'];
|
222 |
+
|
223 |
+
$acx_csma_desc_subtitle2 = acx_csma_textarea_after_save_hook_function($acx_csma_desc_subtitle2);
|
224 |
+
?>
|
225 |
|
226 |
+
<h4 style="color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_desc_text_color2']; ?>"><?php echo $acx_csma_desc_title2; ?></h4>
|
227 |
+
<p><?php echo $acx_csma_desc_subtitle2; ?></p>
|
228 |
</div><!-- inline_block -->
|
229 |
</div><!-- inline_block -->
|
230 |
<div class="footer">
|
237 |
?>
|
238 |
<ul>
|
239 |
<p>FOLLOW US ON</p>
|
240 |
+
<?php
|
241 |
if($acx_csma_fb_link2 != "")
|
242 |
{
|
243 |
+
?>
|
244 |
<li><a class="acx_csma_social_icons csma_fb" href="<?php echo esc_url($acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_fb_link2']); ?>"><img src="<?php echo plugins_url('images/facebook.png', __FILE__); ?>" alt="Logo"></a></li>
|
245 |
<?php
|
246 |
}
|
248 |
{
|
249 |
?>
|
250 |
<li><a class="acx_csma_social_icons csma_twtr" href="<?php echo esc_url($acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_twitter_link2']); ?>"><img src="<?php echo plugins_url('images/twitter.png', __FILE__); ?>" alt="Logo"></a></li>
|
251 |
+
<?php
|
252 |
}
|
253 |
if($acx_csma_linkedin_link2 != "")
|
254 |
{
|
255 |
+
?>
|
256 |
<li><a class="acx_csma_social_icons csma_lnkn" href="<?php echo esc_url($acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_linkedin_link2']); ?>"><img src="<?php echo plugins_url('images/linkedin.png', __FILE__); ?>" alt="Logo"></a></li>
|
257 |
+
<?php
|
258 |
}
|
259 |
+
?>
|
260 |
|
261 |
</ul>
|
262 |
<?php
|
267 |
|
268 |
</div><!-- canvas960 -->
|
269 |
</div><!-- wrapper -->
|
270 |
+
|
271 |
<script type="text/javascript">
|
272 |
jQuery(document).ready(function() {
|
273 |
jQuery(window).keydown(function(event){
|
287 |
<?php
|
288 |
if($acx_csma_show_subscription2 == 1)
|
289 |
{
|
290 |
+
$acx_csma_subscribe_btn_text2 = $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_subscribe_btn_text2'];
|
291 |
+
?>
|
292 |
var acx_csma_form_status=1;
|
293 |
function acx_csma_validate_email()
|
294 |
{
|
305 |
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
306 |
document.getElementById('acx_csma_email').type = 'email';
|
307 |
jQuery("#acx_csma_email").show();
|
308 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_subscribe_btn_text2; ?>";
|
309 |
acx_csma_form_status=2;
|
310 |
return false;
|
311 |
}
|
330 |
{
|
331 |
jQuery("#acx_csma_invalid").hide();
|
332 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
333 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
|
334 |
jQuery("#acx_csma_submit").show();
|
335 |
acx_csma_form_status=1;
|
336 |
|
363 |
{
|
364 |
jQuery("#acx_csma_success").hide();
|
365 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
366 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
|
367 |
jQuery("#acx_csma_submit").show();
|
368 |
acx_csma_form_status=1;
|
369 |
|
380 |
jQuery("#acx_csma_error").html('');
|
381 |
jQuery("#acx_csma_error").hide();
|
382 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
383 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
|
384 |
jQuery("#acx_csma_submit").show();
|
385 |
acx_csma_form_status=1;
|
386 |
|
393 |
}
|
394 |
<?php
|
395 |
}
|
396 |
+
if($acx_csma_show_timer2 == 1)
|
397 |
+
{
|
398 |
if($acx_csma_timestamp < $acx_csma_date_time)
|
399 |
{?>
|
400 |
var start_date = <?php echo $acx_csma_start_date_time; ?>;
|
419 |
|
420 |
for(var i=0;i< seconds.toString().length;i++)
|
421 |
{
|
422 |
+
if(seconds < 2)
|
423 |
+
{
|
424 |
+
jQuery('#acx_sec_disp').html('<?php echo $acx_sec_singular; ?>');
|
425 |
+
}
|
426 |
+
else
|
427 |
+
{
|
428 |
+
jQuery('#acx_sec_disp').html('<?php echo $acx_sec_plural; ?>');
|
429 |
+
}
|
430 |
if(seconds < 10 && seconds.toString().length == 1 )
|
431 |
{
|
432 |
seconds = "0"+seconds;
|
448 |
}
|
449 |
for(var j=0;j< minutes.toString().length;j++)
|
450 |
{
|
451 |
+
if(minutes < 2)
|
452 |
+
{
|
453 |
+
jQuery('#acx_min_disp').html('<?php echo $acx_minute_singular; ?>');
|
454 |
+
}
|
455 |
+
else
|
456 |
+
{
|
457 |
+
jQuery('#acx_min_disp').html('<?php echo $acx_minute_plural; ?>');
|
458 |
+
}
|
459 |
if(minutes < 10 && minutes.toString().length == 1 )
|
460 |
{
|
461 |
minutes = "0"+minutes;
|
478 |
|
479 |
for(var k=0;k< hours.toString().length;k++)
|
480 |
{
|
481 |
+
if(hours < 2)
|
482 |
+
{
|
483 |
+
jQuery('#acx_hour_disp').html('<?php echo $acx_hour_singular; ?>');
|
484 |
+
}
|
485 |
+
else
|
486 |
+
{
|
487 |
+
jQuery('#acx_hour_disp').html('<?php echo $acx_hour_plural; ?>');
|
488 |
+
}
|
489 |
if(hours < 10 && hours.toString().length == 1 )
|
490 |
{
|
491 |
hours = "0"+hours;
|
506 |
}
|
507 |
}
|
508 |
document.getElementById("days").innerHTML = days;
|
509 |
+
if(days < 2)
|
510 |
+
{
|
511 |
+
jQuery('#acx_day_disp').html('<?php echo $acx_day_singular; ?>');
|
512 |
+
}
|
513 |
+
else
|
514 |
+
{
|
515 |
+
jQuery('#acx_day_disp').html('<?php echo $acx_day_plural; ?>');
|
516 |
+
}
|
517 |
setTimeout(function(){
|
518 |
updateCounter();
|
519 |
}, 1000 );
|
521 |
}
|
522 |
<?php
|
523 |
}
|
524 |
+
}
|
525 |
?>
|
526 |
</script>
|
527 |
<?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id);?>
|
templates/2/style.css
CHANGED
@@ -22,6 +22,7 @@ body
|
|
22 |
padding-bottom: 10px;
|
23 |
padding-top: 10px;
|
24 |
text-align: center;
|
|
|
25 |
}
|
26 |
p, img, h1, h2, h3, h4, ol, ul, li, a
|
27 |
{
|
@@ -119,6 +120,12 @@ height:auto;
|
|
119 |
float: left;
|
120 |
width: 50%;
|
121 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
.timer_holder
|
123 |
{
|
124 |
margin: 0 0 0 30px;
|
22 |
padding-bottom: 10px;
|
23 |
padding-top: 10px;
|
24 |
text-align: center;
|
25 |
+
|
26 |
}
|
27 |
p, img, h1, h2, h3, h4, ol, ul, li, a
|
28 |
{
|
120 |
float: left;
|
121 |
width: 50%;
|
122 |
}
|
123 |
+
#acx_above_timer_html
|
124 |
+
{
|
125 |
+
float: left;
|
126 |
+
width: 46%;
|
127 |
+
margin:10px 0px 10px 30px;
|
128 |
+
}
|
129 |
.timer_holder
|
130 |
{
|
131 |
margin: 0 0 0 30px;
|
templates/3/index.php
CHANGED
@@ -11,11 +11,7 @@ if(is_numeric($favicon_attach_id))
|
|
11 |
$fav_icon_attachment_url = parse_url( wp_get_attachment_url($favicon_attach_id) );
|
12 |
$acx_csma_favicon = $fav_icon_attachment_url [ 'scheme' ] . '://' .rawurlencode( basename( $fav_icon_attachment_url[ 'host' ])). $fav_icon_attachment_url[ 'path' ];
|
13 |
}
|
14 |
-
$acx_csma_appearence_array_3=
|
15 |
-
if(is_serialized($acx_csma_appearence_array_3 ))
|
16 |
-
{
|
17 |
-
$acx_csma_appearence_array_3 = unserialize($acx_csma_appearence_array_3);
|
18 |
-
}
|
19 |
$acx_csma_start_date_time=get_option('acx_csma_start_date_time');
|
20 |
$acx_csma_date_time=get_option('acx_csma_date_time');
|
21 |
$acx_csma_timestamp=current_time('timestamp');
|
@@ -77,6 +73,7 @@ body
|
|
77 |
<link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
|
78 |
<link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>" type="image/png">
|
79 |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
|
|
|
80 |
<?php echo stripslashes(get_option('acx_csma_ga_trakng_code'));
|
81 |
do_action('acx_csma_bottom_inside_head_tag',$acx_csma_template_id);
|
82 |
?>
|
@@ -84,15 +81,19 @@ do_action('acx_csma_bottom_inside_head_tag',$acx_csma_template_id);
|
|
84 |
<body>
|
85 |
<?php
|
86 |
do_action('acx_csma_top_inside_body_tag',$acx_csma_template_id);
|
87 |
-
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_3[$acx_csma_template_id]))
|
88 |
-
{
|
89 |
-
$new_class="text_logo";
|
90 |
-
} else
|
91 |
{
|
92 |
-
$
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
{
|
95 |
-
$new_class="";
|
96 |
}
|
97 |
?>
|
98 |
<div class="wrapper <?php echo $new_class; ?>">
|
@@ -183,27 +184,44 @@ $new_class="";
|
|
183 |
?>
|
184 |
<div id="acx_csma_temp3_img_cvr">
|
185 |
<img src="<?php echo $logo3_url; ?>" alt="Logo"></div>
|
186 |
-
<?php } else if($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_logo_choice']=="text"){
|
187 |
-
|
|
|
|
|
|
|
188 |
<?php } } ?>
|
189 |
</div><!-- header -->
|
190 |
<div class="form">
|
191 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
|
193 |
<?php
|
194 |
$acx_csma_show_subscription3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_show_subscription3'];
|
195 |
if($acx_csma_show_subscription3 == 1)
|
196 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
?>
|
198 |
-
<h4 style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_title_color3']; ?>"><?php echo $
|
199 |
|
200 |
<form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']); ?>">
|
201 |
-
<div id="acx_csma_success" name="acx_csma_success" style="display:none;color:white;" ><?php echo $
|
202 |
-
<div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none;color:white;" ><?php echo $
|
203 |
<div id="acx_csma_error" style="color:white;"></div>
|
204 |
<input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
|
205 |
<input type="hidden" id="acx_csma_email" name="email" placeholder="Get Notified (Email)"><br/>
|
206 |
-
<input type="button" value="
|
207 |
</form>
|
208 |
<?php
|
209 |
}
|
@@ -254,7 +272,8 @@ $new_class="";
|
|
254 |
{
|
255 |
?>
|
256 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_3" id="acx_csma_top_1">
|
257 |
-
<?php echo $acx_csma_custom_html_top_timer_temp3;
|
|
|
258 |
</div>
|
259 |
|
260 |
<?php
|
@@ -269,12 +288,30 @@ $new_class="";
|
|
269 |
}
|
270 |
$acx_csma_show_timer3=$acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_show_timer3'];
|
271 |
if($acx_csma_show_timer3 == 1)
|
272 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
?>
|
274 |
-
<div id="acx_timer_heading" style="<?php echo $acx_class; ?>"><h3 style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_inside_title_color3']; ?>"><?php echo $
|
275 |
<div class="timer_box days">
|
276 |
<ul>
|
277 |
-
<li id="days" style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_iptext_color3']; ?>">000 </li><li class="day_text" style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_head_color3']; ?>"
|
278 |
</ul>
|
279 |
</div><!-- timer_box -->
|
280 |
<div class="timer_box">
|
@@ -282,21 +319,21 @@ $new_class="";
|
|
282 |
<li id="hours_0">0</li>
|
283 |
<li id="hours_1">0</li>
|
284 |
</ul>
|
285 |
-
<p style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_head_color3']; ?>"
|
286 |
</div><!-- timer_box -->
|
287 |
<div class="timer_box">
|
288 |
<ul style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_iptext_color3']; ?>">
|
289 |
<li id="minutes_0">0</li>
|
290 |
<li id="minutes_1">0</li>
|
291 |
</ul>
|
292 |
-
<p style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_head_color3']; ?>"
|
293 |
</div><!-- timer_box -->
|
294 |
<div class="timer_box last_one">
|
295 |
<ul style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_iptext_color3']; ?>">
|
296 |
<li id="seconds_0">0</li>
|
297 |
<li id="seconds_1">0</li>
|
298 |
</ul>
|
299 |
-
<p style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_head_color3']; ?>"
|
300 |
</div><!-- timer_box -->
|
301 |
|
302 |
<div class="clearfix" style="clear:both;"></div>
|
@@ -309,11 +346,19 @@ $new_class="";
|
|
309 |
$acx_csma_custom_html_top_temp3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_custom_html_top_temp3'];
|
310 |
if($acx_csma_custom_html_top_temp3 != "") { ?>
|
311 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_3" id="acx_csma_top_1">
|
312 |
-
<?php
|
|
|
|
|
313 |
</div>
|
314 |
<?php } ?>
|
315 |
-
<h5 style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_desc_text_color3']; ?>"><?php
|
316 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
</div><!-- inline_block -->
|
318 |
<?php
|
319 |
$acx_csma_custom_html_bottom_temp3=$acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_custom_html_bottom_temp3'];
|
@@ -322,7 +367,7 @@ $new_class="";
|
|
322 |
?>
|
323 |
|
324 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_3" id="acx_csma_top_1">
|
325 |
-
<?php echo $acx_csma_custom_html_bottom_temp3; ?>
|
326 |
</div>
|
327 |
|
328 |
<?php
|
@@ -336,24 +381,34 @@ $new_class="";
|
|
336 |
</div> <!-- acx_aditnl_wrap -->
|
337 |
</div><!-- wrapper -->
|
338 |
|
339 |
-
<div class="footer"> <p style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_color3']; ?>"><?php
|
340 |
-
|
|
|
|
|
|
|
341 |
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
<?php
|
343 |
if($acx_csma_show_subscription3 == 1)
|
344 |
{
|
345 |
?>
|
346 |
-
jQuery(document).ready(function() {
|
347 |
-
jQuery(window).keydown(function(event){
|
348 |
-
if(event.keyCode == 13) {
|
349 |
-
|
350 |
acx_csma_validate_email();
|
351 |
return false;
|
352 |
-
|
353 |
}
|
354 |
});
|
355 |
});
|
356 |
-
|
|
|
|
|
|
|
357 |
var acx_csma_form_status=1;
|
358 |
function acx_csma_validate_email()
|
359 |
{
|
@@ -395,7 +450,7 @@ function acx_csma_validate_email()
|
|
395 |
{
|
396 |
jQuery("#acx_csma_invalid").hide();
|
397 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
398 |
-
document.getElementById('acx_csma_submit').value="
|
399 |
jQuery("#acx_csma_submit").show();
|
400 |
acx_csma_form_status=1;
|
401 |
|
@@ -428,7 +483,7 @@ function acx_csma_validate_email()
|
|
428 |
{
|
429 |
jQuery("#acx_csma_success").hide();
|
430 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
431 |
-
document.getElementById('acx_csma_submit').value="
|
432 |
jQuery("#acx_csma_submit").show();
|
433 |
acx_csma_form_status=1;
|
434 |
|
@@ -445,7 +500,7 @@ function acx_csma_validate_email()
|
|
445 |
jQuery("#acx_csma_error").html('');
|
446 |
jQuery("#acx_csma_error").hide();
|
447 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
448 |
-
document.getElementById('acx_csma_submit').value="
|
449 |
jQuery("#acx_csma_submit").show();
|
450 |
acx_csma_form_status=1;
|
451 |
|
@@ -483,6 +538,14 @@ function updateCounter()
|
|
483 |
|
484 |
for(var i=0;i< seconds.toString().length;i++)
|
485 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
486 |
if(seconds < 10 && seconds.toString().length == 1 )
|
487 |
{
|
488 |
seconds = "0"+seconds;
|
@@ -504,6 +567,14 @@ function updateCounter()
|
|
504 |
}
|
505 |
for(var j=0;j< minutes.toString().length;j++)
|
506 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
507 |
if(minutes < 10 && minutes.toString().length == 1 )
|
508 |
{
|
509 |
minutes = "0"+minutes;
|
@@ -526,6 +597,14 @@ function updateCounter()
|
|
526 |
|
527 |
for(var k=0;k< hours.toString().length;k++)
|
528 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
529 |
if(hours < 10 && hours.toString().length == 1 )
|
530 |
{
|
531 |
hours = "0"+hours;
|
@@ -547,6 +626,14 @@ function updateCounter()
|
|
547 |
}
|
548 |
|
549 |
document.getElementById("days").innerHTML = days;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
550 |
setTimeout( function(){
|
551 |
updateCounter();
|
552 |
}, 1000 );
|
11 |
$fav_icon_attachment_url = parse_url( wp_get_attachment_url($favicon_attach_id) );
|
12 |
$acx_csma_favicon = $fav_icon_attachment_url [ 'scheme' ] . '://' .rawurlencode( basename( $fav_icon_attachment_url[ 'host' ])). $fav_icon_attachment_url[ 'path' ];
|
13 |
}
|
14 |
+
$acx_csma_appearence_array_3=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
15 |
$acx_csma_start_date_time=get_option('acx_csma_start_date_time');
|
16 |
$acx_csma_date_time=get_option('acx_csma_date_time');
|
17 |
$acx_csma_timestamp=current_time('timestamp');
|
73 |
<link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
|
74 |
<link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>" type="image/png">
|
75 |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
|
76 |
+
<script src="<?php echo plugins_url('js/jquery.nicescroll.min.js', __FILE__); ?>"></script>
|
77 |
<?php echo stripslashes(get_option('acx_csma_ga_trakng_code'));
|
78 |
do_action('acx_csma_bottom_inside_head_tag',$acx_csma_template_id);
|
79 |
?>
|
81 |
<body>
|
82 |
<?php
|
83 |
do_action('acx_csma_top_inside_body_tag',$acx_csma_template_id);
|
84 |
+
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_3[$acx_csma_template_id]))
|
|
|
|
|
|
|
85 |
{
|
86 |
+
if($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
|
87 |
+
{
|
88 |
+
$new_class="text_logo";
|
89 |
+
} else
|
90 |
+
{
|
91 |
+
$new_class="";
|
92 |
+
}
|
93 |
+
}
|
94 |
+
else
|
95 |
{
|
96 |
+
$new_class="";
|
97 |
}
|
98 |
?>
|
99 |
<div class="wrapper <?php echo $new_class; ?>">
|
184 |
?>
|
185 |
<div id="acx_csma_temp3_img_cvr">
|
186 |
<img src="<?php echo $logo3_url; ?>" alt="Logo"></div>
|
187 |
+
<?php } else if($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_logo_choice']=="text"){
|
188 |
+
$acx_csma_logo_text3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_logo_text3'];
|
189 |
+
$acx_csma_logo_text3 = acx_csma_text_after_save_hook_fn($acx_csma_logo_text3);
|
190 |
+
?>
|
191 |
+
<div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_logo_text_color3']; ?>"><?php echo $acx_csma_logo_text3; ?></div>
|
192 |
<?php } } ?>
|
193 |
</div><!-- header -->
|
194 |
<div class="form">
|
195 |
+
<?php
|
196 |
+
$acx_csma_title3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_title3'];
|
197 |
+
$acx_csma_title3 = acx_csma_text_after_save_hook_fn($acx_csma_title3);
|
198 |
+
$acx_csma_subtitle_text3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subtitle_text3'];
|
199 |
+
$acx_csma_subtitle_text3 = acx_csma_text_after_save_hook_fn($acx_csma_subtitle_text3);
|
200 |
+
?>
|
201 |
+
<h2 style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_title_color3']; ?>"><span style="font-size:74px; color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subtitle_color3']; ?>"><strong><?php echo $acx_csma_title3; ?></strong></span><br><?php echo $acx_csma_subtitle_text3; ?></h2>
|
202 |
|
203 |
<?php
|
204 |
$acx_csma_show_subscription3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_show_subscription3'];
|
205 |
if($acx_csma_show_subscription3 == 1)
|
206 |
{
|
207 |
+
$acx_csma_subscribe_title3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_title3'];
|
208 |
+
$acx_csma_subscribe_title3 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_title3);
|
209 |
+
$acx_csma_subscribe_success3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_success3'];
|
210 |
+
$acx_csma_subscribe_success3 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_success3);
|
211 |
+
$acx_csma_subscribe_invalid3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_invalid3'];
|
212 |
+
$acx_csma_subscribe_invalid3 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_invalid3);
|
213 |
+
$acx_subs_next_arr=acx_csma_disp_var_to_show("next");
|
214 |
+
$acx_next_singular=$acx_subs_next_arr['singular'];
|
215 |
?>
|
216 |
+
<h4 style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_title_color3']; ?>"><?php echo $acx_csma_subscribe_title3; ?></h4>
|
217 |
|
218 |
<form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']); ?>">
|
219 |
+
<div id="acx_csma_success" name="acx_csma_success" style="display:none;color:white;" ><?php echo $acx_csma_subscribe_success3; ?></div>
|
220 |
+
<div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none;color:white;" ><?php echo $acx_csma_subscribe_invalid3; ?></div>
|
221 |
<div id="acx_csma_error" style="color:white;"></div>
|
222 |
<input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
|
223 |
<input type="hidden" id="acx_csma_email" name="email" placeholder="Get Notified (Email)"><br/>
|
224 |
+
<input type="button" value="<?php echo $acx_next_singular; ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
|
225 |
</form>
|
226 |
<?php
|
227 |
}
|
272 |
{
|
273 |
?>
|
274 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_3" id="acx_csma_top_1">
|
275 |
+
<?php echo $acx_csma_custom_html_top_timer_temp3 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_timer_temp3);
|
276 |
+
?>
|
277 |
</div>
|
278 |
|
279 |
<?php
|
288 |
}
|
289 |
$acx_csma_show_timer3=$acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_show_timer3'];
|
290 |
if($acx_csma_show_timer3 == 1)
|
291 |
+
{
|
292 |
+
$acx_csma_inside_title3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_inside_title3'];
|
293 |
+
$acx_csma_inside_title3 = acx_csma_text_after_save_hook_fn($acx_csma_inside_title3);
|
294 |
+
$acx_second_arr=acx_csma_disp_var_to_show("second");
|
295 |
+
$acx_sec_singular=$acx_second_arr['singular'];
|
296 |
+
$acx_sec_plural=$acx_second_arr['plural'];
|
297 |
+
|
298 |
+
$acx_minute_arr=acx_csma_disp_var_to_show("minute");
|
299 |
+
$acx_minute_singular=$acx_minute_arr['singular'];
|
300 |
+
$acx_minute_plural=$acx_minute_arr['plural'];
|
301 |
+
|
302 |
+
$acx_hour_arr=acx_csma_disp_var_to_show("hour");
|
303 |
+
$acx_hour_singular=$acx_hour_arr['singular'];
|
304 |
+
$acx_hour_plural=$acx_hour_arr['plural'];
|
305 |
+
|
306 |
+
$acx_day_arr=acx_csma_disp_var_to_show("day");
|
307 |
+
$acx_day_singular=$acx_day_arr['singular'];
|
308 |
+
$acx_day_plural=$acx_day_arr['plural'];
|
309 |
+
|
310 |
?>
|
311 |
+
<div id="acx_timer_heading" style="<?php echo $acx_class; ?>"><h3 style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_inside_title_color3']; ?>"><?php echo $acx_csma_inside_title3; ?></h3></div>
|
312 |
<div class="timer_box days">
|
313 |
<ul>
|
314 |
+
<li id="days" style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_iptext_color3']; ?>">000 </li><li id="acx_day_disp" class="day_text" style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_head_color3']; ?>"><?php echo $acx_day_singular; ?></li>
|
315 |
</ul>
|
316 |
</div><!-- timer_box -->
|
317 |
<div class="timer_box">
|
319 |
<li id="hours_0">0</li>
|
320 |
<li id="hours_1">0</li>
|
321 |
</ul>
|
322 |
+
<p id="acx_hour_disp" style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_head_color3']; ?>"><?php echo $acx_hour_singular; ?></p>
|
323 |
</div><!-- timer_box -->
|
324 |
<div class="timer_box">
|
325 |
<ul style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_iptext_color3']; ?>">
|
326 |
<li id="minutes_0">0</li>
|
327 |
<li id="minutes_1">0</li>
|
328 |
</ul>
|
329 |
+
<p id="acx_min_disp" style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_head_color3']; ?>"><?php echo $acx_minute_singular; ?></p>
|
330 |
</div><!-- timer_box -->
|
331 |
<div class="timer_box last_one">
|
332 |
<ul style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_iptext_color3']; ?>">
|
333 |
<li id="seconds_0">0</li>
|
334 |
<li id="seconds_1">0</li>
|
335 |
</ul>
|
336 |
+
<p id="acx_sec_disp" style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_head_color3']; ?>"><?php echo $acx_sec_singular; ?></p>
|
337 |
</div><!-- timer_box -->
|
338 |
|
339 |
<div class="clearfix" style="clear:both;"></div>
|
346 |
$acx_csma_custom_html_top_temp3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_custom_html_top_temp3'];
|
347 |
if($acx_csma_custom_html_top_temp3 != "") { ?>
|
348 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_3" id="acx_csma_top_1">
|
349 |
+
<?php
|
350 |
+
$acx_csma_custom_html_top_temp3 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp3);
|
351 |
+
echo $acx_csma_custom_html_top_temp3; ?>
|
352 |
</div>
|
353 |
<?php } ?>
|
354 |
+
<h5 style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_desc_text_color3']; ?>"><?php
|
355 |
+
$acx_csma_desc_title3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_desc_title3'];
|
356 |
+
$acx_csma_desc_title3 = acx_csma_text_after_save_hook_fn($acx_csma_desc_title3);
|
357 |
+
echo $acx_csma_desc_title3; ?></h5>
|
358 |
+
<p><?php
|
359 |
+
$acx_csma_desc_subtitle3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_desc_subtitle3'];
|
360 |
+
$acx_csma_desc_subtitle3 = acx_csma_textarea_after_save_hook_function($acx_csma_desc_subtitle3);
|
361 |
+
echo $acx_csma_desc_subtitle3; ?></p>
|
362 |
</div><!-- inline_block -->
|
363 |
<?php
|
364 |
$acx_csma_custom_html_bottom_temp3=$acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_custom_html_bottom_temp3'];
|
367 |
?>
|
368 |
|
369 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_3" id="acx_csma_top_1">
|
370 |
+
<?php echo $acx_csma_custom_html_bottom_temp3 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_temp3); ?>
|
371 |
</div>
|
372 |
|
373 |
<?php
|
381 |
</div> <!-- acx_aditnl_wrap -->
|
382 |
</div><!-- wrapper -->
|
383 |
|
384 |
+
<div class="footer"> <p style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_color3']; ?>"><?php
|
385 |
+
$acx_csma_footer_text3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_text3'];
|
386 |
+
$acx_csma_footer_text3 = acx_csma_text_after_save_hook_fn($acx_csma_footer_text3);
|
387 |
+
echo $acx_csma_footer_text3; ?></p> </div><!-- footer -->
|
388 |
+
|
389 |
<script type="text/javascript">
|
390 |
+
jQuery(document).ready(function() {
|
391 |
+
//nice scroll
|
392 |
+
jQuery('.text_box').niceScroll({cursorcolor:'#111',preservenativescrolling: false,cursoropacitymax:0.7,boxzoom:false,touchbehavior:true,grabcursorenabled: false});//scrollable DIV
|
393 |
+
});
|
394 |
+
|
395 |
+
jQuery(document).ready(function() {
|
396 |
+
jQuery(window).keydown(function(event){
|
397 |
+
if(event.keyCode == 13) {
|
398 |
<?php
|
399 |
if($acx_csma_show_subscription3 == 1)
|
400 |
{
|
401 |
?>
|
|
|
|
|
|
|
|
|
402 |
acx_csma_validate_email();
|
403 |
return false;
|
404 |
+
<?php }?>
|
405 |
}
|
406 |
});
|
407 |
});
|
408 |
+
<?php
|
409 |
+
if($acx_csma_show_subscription3 == 1)
|
410 |
+
{
|
411 |
+
?>
|
412 |
var acx_csma_form_status=1;
|
413 |
function acx_csma_validate_email()
|
414 |
{
|
450 |
{
|
451 |
jQuery("#acx_csma_invalid").hide();
|
452 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
453 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
|
454 |
jQuery("#acx_csma_submit").show();
|
455 |
acx_csma_form_status=1;
|
456 |
|
483 |
{
|
484 |
jQuery("#acx_csma_success").hide();
|
485 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
486 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
|
487 |
jQuery("#acx_csma_submit").show();
|
488 |
acx_csma_form_status=1;
|
489 |
|
500 |
jQuery("#acx_csma_error").html('');
|
501 |
jQuery("#acx_csma_error").hide();
|
502 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
503 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
|
504 |
jQuery("#acx_csma_submit").show();
|
505 |
acx_csma_form_status=1;
|
506 |
|
538 |
|
539 |
for(var i=0;i< seconds.toString().length;i++)
|
540 |
{
|
541 |
+
if(seconds < 2)
|
542 |
+
{
|
543 |
+
jQuery('#acx_sec_disp').html('<?php echo $acx_sec_singular; ?>');
|
544 |
+
}
|
545 |
+
else
|
546 |
+
{
|
547 |
+
jQuery('#acx_sec_disp').html('<?php echo $acx_sec_plural; ?>');
|
548 |
+
}
|
549 |
if(seconds < 10 && seconds.toString().length == 1 )
|
550 |
{
|
551 |
seconds = "0"+seconds;
|
567 |
}
|
568 |
for(var j=0;j< minutes.toString().length;j++)
|
569 |
{
|
570 |
+
if(minutes < 2)
|
571 |
+
{
|
572 |
+
jQuery('#acx_min_disp').html('<?php echo $acx_minute_singular; ?>');
|
573 |
+
}
|
574 |
+
else
|
575 |
+
{
|
576 |
+
jQuery('#acx_min_disp').html('<?php echo $acx_minute_plural; ?>');
|
577 |
+
}
|
578 |
if(minutes < 10 && minutes.toString().length == 1 )
|
579 |
{
|
580 |
minutes = "0"+minutes;
|
597 |
|
598 |
for(var k=0;k< hours.toString().length;k++)
|
599 |
{
|
600 |
+
if(hours < 2)
|
601 |
+
{
|
602 |
+
jQuery('#acx_hour_disp').html('<?php echo $acx_hour_singular; ?>');
|
603 |
+
}
|
604 |
+
else
|
605 |
+
{
|
606 |
+
jQuery('#acx_hour_disp').html('<?php echo $acx_hour_plural; ?>');
|
607 |
+
}
|
608 |
if(hours < 10 && hours.toString().length == 1 )
|
609 |
{
|
610 |
hours = "0"+hours;
|
626 |
}
|
627 |
|
628 |
document.getElementById("days").innerHTML = days;
|
629 |
+
if(days < 2)
|
630 |
+
{
|
631 |
+
jQuery('#acx_day_disp').html('<?php echo $acx_day_singular; ?>');
|
632 |
+
}
|
633 |
+
else
|
634 |
+
{
|
635 |
+
jQuery('#acx_day_disp').html('<?php echo $acx_day_plural; ?>');
|
636 |
+
}
|
637 |
setTimeout( function(){
|
638 |
updateCounter();
|
639 |
}, 1000 );
|
templates/3/js/jquery.nicescroll.min.js
ADDED
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* jquery.nicescroll 3.6.0 InuYaksa*2014 MIT http://nicescroll.areaaperta.com */(function(f){"function"===typeof define&&define.amd?define(["jquery"],f):f(jQuery)})(function(f){var y=!1,D=!1,N=0,O=2E3,x=0,H=["webkit","ms","moz","o"],s=window.requestAnimationFrame||!1,t=window.cancelAnimationFrame||!1;if(!s)for(var P in H){var E=H[P];s||(s=window[E+"RequestAnimationFrame"]);t||(t=window[E+"CancelAnimationFrame"]||window[E+"CancelRequestAnimationFrame"])}var v=window.MutationObserver||window.WebKitMutationObserver||!1,I={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",
|
2 |
+
cursorwidth:"5px",cursorborder:"0px solid #fff",cursorborderradius:"5px",scrollspeed:60,mousescrollstep:24,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",
|
3 |
+
enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:function(){var f=document.getElementsByTagName("script"),f=f[f.length-1].src.split("?")[0];return 0<f.split("/").length?f.split("/").slice(0,-1).join("/")+
|
4 |
+
"/":""}(),preventmultitouchscrolling:!0},F=!1,Q=function(){if(F)return F;var f=document.createElement("DIV"),c=f.style,h=navigator.userAgent,m=navigator.platform,d={haspointerlock:"pointerLockElement"in document||"webkitPointerLockElement"in document||"mozPointerLockElement"in document};d.isopera="opera"in window;d.isopera12=d.isopera&&"getUserMedia"in navigator;d.isoperamini="[object OperaMini]"===Object.prototype.toString.call(window.operamini);d.isie="all"in document&&"attachEvent"in f&&!d.isopera;
|
5 |
+
d.isieold=d.isie&&!("msInterpolationMode"in c);d.isie7=d.isie&&!d.isieold&&(!("documentMode"in document)||7==document.documentMode);d.isie8=d.isie&&"documentMode"in document&&8==document.documentMode;d.isie9=d.isie&&"performance"in window&&9<=document.documentMode;d.isie10=d.isie&&"performance"in window&&10==document.documentMode;d.isie11="msRequestFullscreen"in f&&11<=document.documentMode;d.isie9mobile=/iemobile.9/i.test(h);d.isie9mobile&&(d.isie9=!1);d.isie7mobile=!d.isie9mobile&&d.isie7&&/iemobile/i.test(h);
|
6 |
+
d.ismozilla="MozAppearance"in c;d.iswebkit="WebkitAppearance"in c;d.ischrome="chrome"in window;d.ischrome22=d.ischrome&&d.haspointerlock;d.ischrome26=d.ischrome&&"transition"in c;d.cantouch="ontouchstart"in document.documentElement||"ontouchstart"in window;d.hasmstouch=window.MSPointerEvent||!1;d.hasw3ctouch=window.PointerEvent||!1;d.ismac=/^mac$/i.test(m);d.isios=d.cantouch&&/iphone|ipad|ipod/i.test(m);d.isios4=d.isios&&!("seal"in Object);d.isios7=d.isios&&"webkitHidden"in document;d.isandroid=/android/i.test(h);
|
7 |
+
d.haseventlistener="addEventListener"in f;d.trstyle=!1;d.hastransform=!1;d.hastranslate3d=!1;d.transitionstyle=!1;d.hastransition=!1;d.transitionend=!1;m=["transform","msTransform","webkitTransform","MozTransform","OTransform"];for(h=0;h<m.length;h++)if("undefined"!=typeof c[m[h]]){d.trstyle=m[h];break}d.hastransform=!!d.trstyle;d.hastransform&&(c[d.trstyle]="translate3d(1px,2px,3px)",d.hastranslate3d=/translate3d/.test(c[d.trstyle]));d.transitionstyle=!1;d.prefixstyle="";d.transitionend=!1;for(var m=
|
8 |
+
"transition webkitTransition msTransition MozTransition OTransition OTransition KhtmlTransition".split(" "),n=" -webkit- -ms- -moz- -o- -o -khtml-".split(" "),p="transitionend webkitTransitionEnd msTransitionEnd transitionend otransitionend oTransitionEnd KhtmlTransitionEnd".split(" "),h=0;h<m.length;h++)if(m[h]in c){d.transitionstyle=m[h];d.prefixstyle=n[h];d.transitionend=p[h];break}d.ischrome26&&(d.prefixstyle=n[1]);d.hastransition=d.transitionstyle;a:{h=["-webkit-grab","-moz-grab","grab"];if(d.ischrome&&
|
9 |
+
!d.ischrome22||d.isie)h=[];for(m=0;m<h.length;m++)if(n=h[m],c.cursor=n,c.cursor==n){c=n;break a}c="url(//mail.google.com/mail/images/2/openhand.cur),n-resize"}d.cursorgrabvalue=c;d.hasmousecapture="setCapture"in f;d.hasMutationObserver=!1!==v;return F=d},R=function(k,c){function h(){var b=a.doc.css(e.trstyle);return b&&"matrix"==b.substr(0,6)?b.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}function m(){var b=a.win;if("zIndex"in b)return b.zIndex();for(;0<b.length&&9!=b[0].nodeType;){var g=
|
10 |
+
b.css("zIndex");if(!isNaN(g)&&0!=g)return parseInt(g);b=b.parent()}return!1}function d(b,g,q){g=b.css(g);b=parseFloat(g);return isNaN(b)?(b=w[g]||0,q=3==b?q?a.win.outerHeight()-a.win.innerHeight():a.win.outerWidth()-a.win.innerWidth():1,a.isie8&&b&&(b+=1),q?b:0):b}function n(b,g,q,c){a._bind(b,g,function(a){a=a?a:window.event;var c={original:a,target:a.target||a.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==a.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){a.preventDefault?a.preventDefault():
|
11 |
+
a.returnValue=!1;return!1},stopImmediatePropagation:function(){a.stopImmediatePropagation?a.stopImmediatePropagation():a.cancelBubble=!0}};"mousewheel"==g?(c.deltaY=-.025*a.wheelDelta,a.wheelDeltaX&&(c.deltaX=-.025*a.wheelDeltaX)):c.deltaY=a.detail;return q.call(b,c)},c)}function p(b,g,c){var d,e;0==b.deltaMode?(d=-Math.floor(a.opt.mousescrollstep/54*b.deltaX),e=-Math.floor(a.opt.mousescrollstep/54*b.deltaY)):1==b.deltaMode&&(d=-Math.floor(b.deltaX*a.opt.mousescrollstep),e=-Math.floor(b.deltaY*a.opt.mousescrollstep));
|
12 |
+
g&&a.opt.oneaxismousemode&&0==d&&e&&(d=e,e=0,c&&(0>d?a.getScrollLeft()>=a.page.maxw:0>=a.getScrollLeft())&&(e=d,d=0));d&&(a.scrollmom&&a.scrollmom.stop(),a.lastdeltax+=d,a.debounced("mousewheelx",function(){var b=a.lastdeltax;a.lastdeltax=0;a.rail.drag||a.doScrollLeftBy(b)},15));if(e){if(a.opt.nativeparentscrolling&&c&&!a.ispage&&!a.zoomactive)if(0>e){if(a.getScrollTop()>=a.page.maxh)return!0}else if(0>=a.getScrollTop())return!0;a.scrollmom&&a.scrollmom.stop();a.lastdeltay+=e;a.debounced("mousewheely",
|
13 |
+
function(){var b=a.lastdeltay;a.lastdeltay=0;a.rail.drag||a.doScrollBy(b)},15)}b.stopImmediatePropagation();return b.preventDefault()}var a=this;this.version="3.6.0";this.name="nicescroll";this.me=c;this.opt={doc:f("body"),win:!1};f.extend(this.opt,I);this.opt.snapbackspeed=80;if(k)for(var G in a.opt)"undefined"!=typeof k[G]&&(a.opt[G]=k[G]);this.iddoc=(this.doc=a.opt.doc)&&this.doc[0]?this.doc[0].id||"":"";this.ispage=/^BODY|HTML/.test(a.opt.win?a.opt.win[0].nodeName:this.doc[0].nodeName);this.haswrapper=
|
14 |
+
!1!==a.opt.win;this.win=a.opt.win||(this.ispage?f(window):this.doc);this.docscroll=this.ispage&&!this.haswrapper?f(window):this.win;this.body=f("body");this.iframe=this.isfixed=this.viewport=!1;this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName;this.istextarea="TEXTAREA"==this.win[0].nodeName;this.forcescreen=!1;this.canshowonmouseevent="scroll"!=a.opt.autohidemode;this.page=this.view=this.onzoomout=this.onzoomin=this.onscrollcancel=this.onscrollend=this.onscrollstart=this.onclick=
|
15 |
+
this.ongesturezoom=this.onkeypress=this.onmousewheel=this.onmousemove=this.onmouseup=this.onmousedown=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.isrtlmode="auto"==this.opt.rtlmode?"rtl"==(this.win[0]==window?this.body:this.win).css("direction"):!0===this.opt.rtlmode;this.observerbody=this.observerremover=this.observer=this.scrollmom=this.scrollrunning=!1;do this.id="ascrail"+O++;while(document.getElementById(this.id));this.hasmousefocus=this.hasfocus=
|
16 |
+
this.zoomactive=this.zoom=this.selectiondrag=this.cursorfreezed=this.cursor=this.rail=!1;this.visibility=!0;this.hidden=this.locked=this.railslocked=!1;this.cursoractive=!0;this.wheelprevented=!1;this.overflowx=a.opt.overflowx;this.overflowy=a.opt.overflowy;this.nativescrollingarea=!1;this.checkarea=0;this.events=[];this.saved={};this.delaylist={};this.synclist={};this.lastdeltay=this.lastdeltax=0;this.detected=Q();var e=f.extend({},this.detected);this.ishwscroll=(this.canhwscroll=e.hastransform&&
|
17 |
+
a.opt.hwacceleration)&&a.haswrapper;this.hasreversehr=this.isrtlmode&&!e.iswebkit;this.istouchcapable=!1;!e.cantouch||e.isios||e.isandroid||!e.iswebkit&&!e.ismozilla||(this.istouchcapable=!0,e.cantouch=!1);a.opt.enablemouselockapi||(e.hasmousecapture=!1,e.haspointerlock=!1);this.debounced=function(b,g,c){var d=a.delaylist[b];a.delaylist[b]=g;d||setTimeout(function(){var g=a.delaylist[b];a.delaylist[b]=!1;g.call(a)},c)};var r=!1;this.synched=function(b,g){a.synclist[b]=g;(function(){r||(s(function(){r=
|
18 |
+
!1;for(var b in a.synclist){var g=a.synclist[b];g&&g.call(a);a.synclist[b]=!1}}),r=!0)})();return b};this.unsynched=function(b){a.synclist[b]&&(a.synclist[b]=!1)};this.css=function(b,g){for(var c in g)a.saved.css.push([b,c,b.css(c)]),b.css(c,g[c])};this.scrollTop=function(b){return"undefined"==typeof b?a.getScrollTop():a.setScrollTop(b)};this.scrollLeft=function(b){return"undefined"==typeof b?a.getScrollLeft():a.setScrollLeft(b)};var A=function(a,g,c,d,e,f,h){this.st=a;this.ed=g;this.spd=c;this.p1=
|
19 |
+
d||0;this.p2=e||1;this.p3=f||0;this.p4=h||1;this.ts=(new Date).getTime();this.df=this.ed-this.st};A.prototype={B2:function(a){return 3*a*a*(1-a)},B3:function(a){return 3*a*(1-a)*(1-a)},B4:function(a){return(1-a)*(1-a)*(1-a)},getNow:function(){var a=1-((new Date).getTime()-this.ts)/this.spd,g=this.B2(a)+this.B3(a)+this.B4(a);return 0>a?this.ed:this.st+Math.round(this.df*g)},update:function(a,g){this.st=this.getNow();this.ed=a;this.spd=g;this.ts=(new Date).getTime();this.df=this.ed-this.st;return this}};
|
20 |
+
if(this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"};e.hastranslate3d&&e.isios&&this.doc.css("-webkit-backface-visibility","hidden");this.getScrollTop=function(b){if(!b){if(b=h())return 16==b.length?-b[13]:-b[5];if(a.timerscroll&&a.timerscroll.bz)return a.timerscroll.bz.getNow()}return a.doc.translate.y};this.getScrollLeft=function(b){if(!b){if(b=h())return 16==b.length?-b[12]:-b[4];if(a.timerscroll&&a.timerscroll.bh)return a.timerscroll.bh.getNow()}return a.doc.translate.x};this.notifyScrollEvent=
|
21 |
+
function(a){var g=document.createEvent("UIEvents");g.initUIEvent("scroll",!1,!0,window,1);g.niceevent=!0;a.dispatchEvent(g)};var K=this.isrtlmode?1:-1;e.hastranslate3d&&a.opt.enabletranslate3d?(this.setScrollTop=function(b,g){a.doc.translate.y=b;a.doc.translate.ty=-1*b+"px";a.doc.css(e.trstyle,"translate3d("+a.doc.translate.tx+","+a.doc.translate.ty+",0px)");g||a.notifyScrollEvent(a.win[0])},this.setScrollLeft=function(b,g){a.doc.translate.x=b;a.doc.translate.tx=b*K+"px";a.doc.css(e.trstyle,"translate3d("+
|
22 |
+
a.doc.translate.tx+","+a.doc.translate.ty+",0px)");g||a.notifyScrollEvent(a.win[0])}):(this.setScrollTop=function(b,g){a.doc.translate.y=b;a.doc.translate.ty=-1*b+"px";a.doc.css(e.trstyle,"translate("+a.doc.translate.tx+","+a.doc.translate.ty+")");g||a.notifyScrollEvent(a.win[0])},this.setScrollLeft=function(b,g){a.doc.translate.x=b;a.doc.translate.tx=b*K+"px";a.doc.css(e.trstyle,"translate("+a.doc.translate.tx+","+a.doc.translate.ty+")");g||a.notifyScrollEvent(a.win[0])})}else this.getScrollTop=
|
23 |
+
function(){return a.docscroll.scrollTop()},this.setScrollTop=function(b){return a.docscroll.scrollTop(b)},this.getScrollLeft=function(){return a.detected.ismozilla&&a.isrtlmode?Math.abs(a.docscroll.scrollLeft()):a.docscroll.scrollLeft()},this.setScrollLeft=function(b){return a.docscroll.scrollLeft(a.detected.ismozilla&&a.isrtlmode?-b:b)};this.getTarget=function(a){return a?a.target?a.target:a.srcElement?a.srcElement:!1:!1};this.hasParent=function(a,g){if(!a)return!1;for(var c=a.target||a.srcElement||
|
24 |
+
a||!1;c&&c.id!=g;)c=c.parentNode||!1;return!1!==c};var w={thin:1,medium:3,thick:5};this.getDocumentScrollOffset=function(){return{top:window.pageYOffset||document.documentElement.scrollTop,left:window.pageXOffset||document.documentElement.scrollLeft}};this.getOffset=function(){if(a.isfixed){var b=a.win.offset(),g=a.getDocumentScrollOffset();b.top-=g.top;b.left-=g.left;return b}b=a.win.offset();if(!a.viewport)return b;g=a.viewport.offset();return{top:b.top-g.top,left:b.left-g.left}};this.updateScrollBar=
|
25 |
+
function(b){if(a.ishwscroll)a.rail.css({height:a.win.innerHeight()-(a.opt.railpadding.top+a.opt.railpadding.bottom)}),a.railh&&a.railh.css({width:a.win.innerWidth()-(a.opt.railpadding.left+a.opt.railpadding.right)});else{var g=a.getOffset(),c=g.top,e=g.left-(a.opt.railpadding.left+a.opt.railpadding.right),c=c+d(a.win,"border-top-width",!0),e=e+(a.rail.align?a.win.outerWidth()-d(a.win,"border-right-width")-a.rail.width:d(a.win,"border-left-width")),f=a.opt.railoffset;f&&(f.top&&(c+=f.top),a.rail.align&&
|
26 |
+
f.left&&(e+=f.left));a.railslocked||a.rail.css({top:c,left:e,height:(b?b.h:a.win.innerHeight())-(a.opt.railpadding.top+a.opt.railpadding.bottom)});a.zoom&&a.zoom.css({top:c+1,left:1==a.rail.align?e-20:e+a.rail.width+4});if(a.railh&&!a.railslocked){c=g.top;e=g.left;if(f=a.opt.railhoffset)f.top&&(c+=f.top),f.left&&(e+=f.left);b=a.railh.align?c+d(a.win,"border-top-width",!0)+a.win.innerHeight()-a.railh.height:c+d(a.win,"border-top-width",!0);e+=d(a.win,"border-left-width");a.railh.css({top:b-(a.opt.railpadding.top+
|
27 |
+
a.opt.railpadding.bottom),left:e,width:a.railh.width})}}};this.doRailClick=function(b,g,c){var e;a.railslocked||(a.cancelEvent(b),g?(g=c?a.doScrollLeft:a.doScrollTop,e=c?(b.pageX-a.railh.offset().left-a.cursorwidth/2)*a.scrollratio.x:(b.pageY-a.rail.offset().top-a.cursorheight/2)*a.scrollratio.y,g(e)):(g=c?a.doScrollLeftBy:a.doScrollBy,e=c?a.scroll.x:a.scroll.y,b=c?b.pageX-a.railh.offset().left:b.pageY-a.rail.offset().top,c=c?a.view.w:a.view.h,g(e>=b?c:-c)))};a.hasanimationframe=s;a.hascancelanimationframe=
|
28 |
+
t;a.hasanimationframe?a.hascancelanimationframe||(t=function(){a.cancelAnimationFrame=!0}):(s=function(a){return setTimeout(a,15-Math.floor(+new Date/1E3)%16)},t=clearInterval);this.init=function(){a.saved.css=[];if(e.isie7mobile||e.isoperamini)return!0;e.hasmstouch&&a.css(a.ispage?f("html"):a.win,{"-ms-touch-action":"none"});a.zindex="auto";a.zindex=a.ispage||"auto"!=a.opt.zindex?a.opt.zindex:m()||"auto";!a.ispage&&"auto"!=a.zindex&&a.zindex>x&&(x=a.zindex);a.isie&&0==a.zindex&&"auto"==a.opt.zindex&&
|
29 |
+
(a.zindex="auto");if(!a.ispage||!e.cantouch&&!e.isieold&&!e.isie9mobile){var b=a.docscroll;a.ispage&&(b=a.haswrapper?a.win:a.doc);e.isie9mobile||a.css(b,{"overflow-y":"hidden"});a.ispage&&e.isie7&&("BODY"==a.doc[0].nodeName?a.css(f("html"),{"overflow-y":"hidden"}):"HTML"==a.doc[0].nodeName&&a.css(f("body"),{"overflow-y":"hidden"}));!e.isios||a.ispage||a.haswrapper||a.css(f("body"),{"-webkit-overflow-scrolling":"touch"});var g=f(document.createElement("div"));g.css({position:"relative",top:0,"float":"right",
|
30 |
+
width:a.opt.cursorwidth,height:"0px","background-color":a.opt.cursorcolor,border:a.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":a.opt.cursorborderradius,"-moz-border-radius":a.opt.cursorborderradius,"border-radius":a.opt.cursorborderradius});g.hborder=parseFloat(g.outerHeight()-g.innerHeight());g.addClass("nicescroll-cursors");a.cursor=g;var c=f(document.createElement("div"));c.attr("id",a.id);c.addClass("nicescroll-rails nicescroll-rails-vr");var d,h,k=["left","right",
|
31 |
+
"top","bottom"],J;for(J in k)h=k[J],(d=a.opt.railpadding[h])?c.css("padding-"+h,d+"px"):a.opt.railpadding[h]=0;c.append(g);c.width=Math.max(parseFloat(a.opt.cursorwidth),g.outerWidth());c.css({width:c.width+"px",zIndex:a.zindex,background:a.opt.background,cursor:"default"});c.visibility=!0;c.scrollable=!0;c.align="left"==a.opt.railalign?0:1;a.rail=c;g=a.rail.drag=!1;!a.opt.boxzoom||a.ispage||e.isieold||(g=document.createElement("div"),a.bind(g,"click",a.doZoom),a.bind(g,"mouseenter",function(){a.zoom.css("opacity",
|
32 |
+
a.opt.cursoropacitymax)}),a.bind(g,"mouseleave",function(){a.zoom.css("opacity",a.opt.cursoropacitymin)}),a.zoom=f(g),a.zoom.css({cursor:"pointer","z-index":a.zindex,backgroundImage:"url("+a.opt.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),a.opt.dblclickzoom&&a.bind(a.win,"dblclick",a.doZoom),e.cantouch&&a.opt.gesturezoom&&(a.ongesturezoom=function(b){1.5<b.scale&&a.doZoomIn(b);.8>b.scale&&a.doZoomOut(b);return a.cancelEvent(b)},a.bind(a.win,"gestureend",a.ongesturezoom)));
|
33 |
+
a.railh=!1;var l;a.opt.horizrailenabled&&(a.css(b,{"overflow-x":"hidden"}),g=f(document.createElement("div")),g.css({position:"absolute",top:0,height:a.opt.cursorwidth,width:"0px","background-color":a.opt.cursorcolor,border:a.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":a.opt.cursorborderradius,"-moz-border-radius":a.opt.cursorborderradius,"border-radius":a.opt.cursorborderradius}),e.isieold&&g.css({overflow:"hidden"}),g.wborder=parseFloat(g.outerWidth()-g.innerWidth()),
|
34 |
+
g.addClass("nicescroll-cursors"),a.cursorh=g,l=f(document.createElement("div")),l.attr("id",a.id+"-hr"),l.addClass("nicescroll-rails nicescroll-rails-hr"),l.height=Math.max(parseFloat(a.opt.cursorwidth),g.outerHeight()),l.css({height:l.height+"px",zIndex:a.zindex,background:a.opt.background}),l.append(g),l.visibility=!0,l.scrollable=!0,l.align="top"==a.opt.railvalign?0:1,a.railh=l,a.railh.drag=!1);a.ispage?(c.css({position:"fixed",top:"0px",height:"100%"}),c.align?c.css({right:"0px"}):c.css({left:"0px"}),
|
35 |
+
a.body.append(c),a.railh&&(l.css({position:"fixed",left:"0px",width:"100%"}),l.align?l.css({bottom:"0px"}):l.css({top:"0px"}),a.body.append(l))):(a.ishwscroll?("static"==a.win.css("position")&&a.css(a.win,{position:"relative"}),b="HTML"==a.win[0].nodeName?a.body:a.win,f(b).scrollTop(0).scrollLeft(0),a.zoom&&(a.zoom.css({position:"absolute",top:1,right:0,"margin-right":c.width+4}),b.append(a.zoom)),c.css({position:"absolute",top:0}),c.align?c.css({right:0}):c.css({left:0}),b.append(c),l&&(l.css({position:"absolute",
|
36 |
+
left:0,bottom:0}),l.align?l.css({bottom:0}):l.css({top:0}),b.append(l))):(a.isfixed="fixed"==a.win.css("position"),b=a.isfixed?"fixed":"absolute",a.isfixed||(a.viewport=a.getViewport(a.win[0])),a.viewport&&(a.body=a.viewport,0==/fixed|absolute/.test(a.viewport.css("position"))&&a.css(a.viewport,{position:"relative"})),c.css({position:b}),a.zoom&&a.zoom.css({position:b}),a.updateScrollBar(),a.body.append(c),a.zoom&&a.body.append(a.zoom),a.railh&&(l.css({position:b}),a.body.append(l))),e.isios&&a.css(a.win,
|
37 |
+
{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),e.isie&&a.opt.disableoutline&&a.win.attr("hideFocus","true"),e.iswebkit&&a.opt.disableoutline&&a.win.css({outline:"none"}));!1===a.opt.autohidemode?(a.autohidedom=!1,a.rail.css({opacity:a.opt.cursoropacitymax}),a.railh&&a.railh.css({opacity:a.opt.cursoropacitymax})):!0===a.opt.autohidemode||"leave"===a.opt.autohidemode?(a.autohidedom=f().add(a.rail),e.isie8&&(a.autohidedom=a.autohidedom.add(a.cursor)),a.railh&&(a.autohidedom=
|
38 |
+
a.autohidedom.add(a.railh)),a.railh&&e.isie8&&(a.autohidedom=a.autohidedom.add(a.cursorh))):"scroll"==a.opt.autohidemode?(a.autohidedom=f().add(a.rail),a.railh&&(a.autohidedom=a.autohidedom.add(a.railh))):"cursor"==a.opt.autohidemode?(a.autohidedom=f().add(a.cursor),a.railh&&(a.autohidedom=a.autohidedom.add(a.cursorh))):"hidden"==a.opt.autohidemode&&(a.autohidedom=!1,a.hide(),a.railslocked=!1);if(e.isie9mobile)a.scrollmom=new L(a),a.onmangotouch=function(){var b=a.getScrollTop(),c=a.getScrollLeft();
|
39 |
+
if(b==a.scrollmom.lastscrolly&&c==a.scrollmom.lastscrollx)return!0;var g=b-a.mangotouch.sy,e=c-a.mangotouch.sx;if(0!=Math.round(Math.sqrt(Math.pow(e,2)+Math.pow(g,2)))){var d=0>g?-1:1,f=0>e?-1:1,q=+new Date;a.mangotouch.lazy&&clearTimeout(a.mangotouch.lazy);80<q-a.mangotouch.tm||a.mangotouch.dry!=d||a.mangotouch.drx!=f?(a.scrollmom.stop(),a.scrollmom.reset(c,b),a.mangotouch.sy=b,a.mangotouch.ly=b,a.mangotouch.sx=c,a.mangotouch.lx=c,a.mangotouch.dry=d,a.mangotouch.drx=f,a.mangotouch.tm=q):(a.scrollmom.stop(),
|
40 |
+
a.scrollmom.update(a.mangotouch.sx-e,a.mangotouch.sy-g),a.mangotouch.tm=q,g=Math.max(Math.abs(a.mangotouch.ly-b),Math.abs(a.mangotouch.lx-c)),a.mangotouch.ly=b,a.mangotouch.lx=c,2<g&&(a.mangotouch.lazy=setTimeout(function(){a.mangotouch.lazy=!1;a.mangotouch.dry=0;a.mangotouch.drx=0;a.mangotouch.tm=0;a.scrollmom.doMomentum(30)},100)))}},c=a.getScrollTop(),l=a.getScrollLeft(),a.mangotouch={sy:c,ly:c,dry:0,sx:l,lx:l,drx:0,lazy:!1,tm:0},a.bind(a.docscroll,"scroll",a.onmangotouch);else{if(e.cantouch||
|
41 |
+
a.istouchcapable||a.opt.touchbehavior||e.hasmstouch){a.scrollmom=new L(a);a.ontouchstart=function(b){if(b.pointerType&&2!=b.pointerType&&"touch"!=b.pointerType)return!1;a.hasmoving=!1;if(!a.railslocked){var c;if(e.hasmstouch)for(c=b.target?b.target:!1;c;){var g=f(c).getNiceScroll();if(0<g.length&&g[0].me==a.me)break;if(0<g.length)return!1;if("DIV"==c.nodeName&&c.id==a.id)break;c=c.parentNode?c.parentNode:!1}a.cancelScroll();if((c=a.getTarget(b))&&/INPUT/i.test(c.nodeName)&&/range/i.test(c.type))return a.stopPropagation(b);
|
42 |
+
!("clientX"in b)&&"changedTouches"in b&&(b.clientX=b.changedTouches[0].clientX,b.clientY=b.changedTouches[0].clientY);a.forcescreen&&(g=b,b={original:b.original?b.original:b},b.clientX=g.screenX,b.clientY=g.screenY);a.rail.drag={x:b.clientX,y:b.clientY,sx:a.scroll.x,sy:a.scroll.y,st:a.getScrollTop(),sl:a.getScrollLeft(),pt:2,dl:!1};if(a.ispage||!a.opt.directionlockdeadzone)a.rail.drag.dl="f";else{var g=f(window).width(),d=f(window).height(),q=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),
|
43 |
+
h=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),d=Math.max(0,h-d),g=Math.max(0,q-g);a.rail.drag.ck=!a.rail.scrollable&&a.railh.scrollable?0<d?"v":!1:a.rail.scrollable&&!a.railh.scrollable?0<g?"h":!1:!1;a.rail.drag.ck||(a.rail.drag.dl="f")}a.opt.touchbehavior&&a.isiframe&&e.isie&&(g=a.win.position(),a.rail.drag.x+=g.left,a.rail.drag.y+=g.top);a.hasmoving=!1;a.lastmouseup=!1;a.scrollmom.reset(b.clientX,b.clientY);if(!e.cantouch&&!this.istouchcapable&&!b.pointerType){if(!c||
|
44 |
+
!/INPUT|SELECT|TEXTAREA/i.test(c.nodeName))return!a.ispage&&e.hasmousecapture&&c.setCapture(),a.opt.touchbehavior?(c.onclick&&!c._onclick&&(c._onclick=c.onclick,c.onclick=function(b){if(a.hasmoving)return!1;c._onclick.call(this,b)}),a.cancelEvent(b)):a.stopPropagation(b);/SUBMIT|CANCEL|BUTTON/i.test(f(c).attr("type"))&&(pc={tg:c,click:!1},a.preventclick=pc)}}};a.ontouchend=function(b){if(!a.rail.drag)return!0;if(2==a.rail.drag.pt){if(b.pointerType&&2!=b.pointerType&&"touch"!=b.pointerType)return!1;
|
45 |
+
a.scrollmom.doMomentum();a.rail.drag=!1;if(a.hasmoving&&(a.lastmouseup=!0,a.hideCursor(),e.hasmousecapture&&document.releaseCapture(),!e.cantouch))return a.cancelEvent(b)}else if(1==a.rail.drag.pt)return a.onmouseup(b)};var n=a.opt.touchbehavior&&a.isiframe&&!e.hasmousecapture;a.ontouchmove=function(b,c){if(!a.rail.drag||b.targetTouches&&a.opt.preventmultitouchscrolling&&1<b.targetTouches.length||b.pointerType&&2!=b.pointerType&&"touch"!=b.pointerType)return!1;if(2==a.rail.drag.pt){if(e.cantouch&&
|
46 |
+
e.isios&&"undefined"==typeof b.original)return!0;a.hasmoving=!0;a.preventclick&&!a.preventclick.click&&(a.preventclick.click=a.preventclick.tg.onclick||!1,a.preventclick.tg.onclick=a.onpreventclick);b=f.extend({original:b},b);"changedTouches"in b&&(b.clientX=b.changedTouches[0].clientX,b.clientY=b.changedTouches[0].clientY);if(a.forcescreen){var g=b;b={original:b.original?b.original:b};b.clientX=g.screenX;b.clientY=g.screenY}var d,g=d=0;n&&!c&&(d=a.win.position(),g=-d.left,d=-d.top);var q=b.clientY+
|
47 |
+
d;d=q-a.rail.drag.y;var h=b.clientX+g,u=h-a.rail.drag.x,k=a.rail.drag.st-d;a.ishwscroll&&a.opt.bouncescroll?0>k?k=Math.round(k/2):k>a.page.maxh&&(k=a.page.maxh+Math.round((k-a.page.maxh)/2)):(0>k&&(q=k=0),k>a.page.maxh&&(k=a.page.maxh,q=0));var l;a.railh&&a.railh.scrollable&&(l=a.isrtlmode?u-a.rail.drag.sl:a.rail.drag.sl-u,a.ishwscroll&&a.opt.bouncescroll?0>l?l=Math.round(l/2):l>a.page.maxw&&(l=a.page.maxw+Math.round((l-a.page.maxw)/2)):(0>l&&(h=l=0),l>a.page.maxw&&(l=a.page.maxw,h=0)));g=!1;if(a.rail.drag.dl)g=
|
48 |
+
!0,"v"==a.rail.drag.dl?l=a.rail.drag.sl:"h"==a.rail.drag.dl&&(k=a.rail.drag.st);else{d=Math.abs(d);var u=Math.abs(u),z=a.opt.directionlockdeadzone;if("v"==a.rail.drag.ck){if(d>z&&u<=.3*d)return a.rail.drag=!1,!0;u>z&&(a.rail.drag.dl="f",f("body").scrollTop(f("body").scrollTop()))}else if("h"==a.rail.drag.ck){if(u>z&&d<=.3*u)return a.rail.drag=!1,!0;d>z&&(a.rail.drag.dl="f",f("body").scrollLeft(f("body").scrollLeft()))}}a.synched("touchmove",function(){a.rail.drag&&2==a.rail.drag.pt&&(a.prepareTransition&&
|
49 |
+
a.prepareTransition(0),a.rail.scrollable&&a.setScrollTop(k),a.scrollmom.update(h,q),a.railh&&a.railh.scrollable?(a.setScrollLeft(l),a.showCursor(k,l)):a.showCursor(k),e.isie10&&document.selection.clear())});e.ischrome&&a.istouchcapable&&(g=!1);if(g)return a.cancelEvent(b)}else if(1==a.rail.drag.pt)return a.onmousemove(b)}}a.onmousedown=function(b,c){if(!a.rail.drag||1==a.rail.drag.pt){if(a.railslocked)return a.cancelEvent(b);a.cancelScroll();a.rail.drag={x:b.clientX,y:b.clientY,sx:a.scroll.x,sy:a.scroll.y,
|
50 |
+
pt:1,hr:!!c};var g=a.getTarget(b);!a.ispage&&e.hasmousecapture&&g.setCapture();a.isiframe&&!e.hasmousecapture&&(a.saved.csspointerevents=a.doc.css("pointer-events"),a.css(a.doc,{"pointer-events":"none"}));a.hasmoving=!1;return a.cancelEvent(b)}};a.onmouseup=function(b){if(a.rail.drag){if(1!=a.rail.drag.pt)return!0;e.hasmousecapture&&document.releaseCapture();a.isiframe&&!e.hasmousecapture&&a.doc.css("pointer-events",a.saved.csspointerevents);a.rail.drag=!1;a.hasmoving&&a.triggerScrollEnd();return a.cancelEvent(b)}};
|
51 |
+
a.onmousemove=function(b){if(a.rail.drag&&1==a.rail.drag.pt){if(e.ischrome&&0==b.which)return a.onmouseup(b);a.cursorfreezed=!0;a.hasmoving=!0;if(a.rail.drag.hr){a.scroll.x=a.rail.drag.sx+(b.clientX-a.rail.drag.x);0>a.scroll.x&&(a.scroll.x=0);var c=a.scrollvaluemaxw;a.scroll.x>c&&(a.scroll.x=c)}else a.scroll.y=a.rail.drag.sy+(b.clientY-a.rail.drag.y),0>a.scroll.y&&(a.scroll.y=0),c=a.scrollvaluemax,a.scroll.y>c&&(a.scroll.y=c);a.synched("mousemove",function(){a.rail.drag&&1==a.rail.drag.pt&&(a.showCursor(),
|
52 |
+
a.rail.drag.hr?a.hasreversehr?a.doScrollLeft(a.scrollvaluemaxw-Math.round(a.scroll.x*a.scrollratio.x),a.opt.cursordragspeed):a.doScrollLeft(Math.round(a.scroll.x*a.scrollratio.x),a.opt.cursordragspeed):a.doScrollTop(Math.round(a.scroll.y*a.scrollratio.y),a.opt.cursordragspeed))});return a.cancelEvent(b)}};if(e.cantouch||a.opt.touchbehavior)a.onpreventclick=function(b){if(a.preventclick)return a.preventclick.tg.onclick=a.preventclick.click,a.preventclick=!1,a.cancelEvent(b)},a.bind(a.win,"mousedown",
|
53 |
+
a.ontouchstart),a.onclick=e.isios?!1:function(b){return a.lastmouseup?(a.lastmouseup=!1,a.cancelEvent(b)):!0},a.opt.grabcursorenabled&&e.cursorgrabvalue&&(a.css(a.ispage?a.doc:a.win,{cursor:e.cursorgrabvalue}),a.css(a.rail,{cursor:e.cursorgrabvalue}));else{var p=function(b){if(a.selectiondrag){if(b){var c=a.win.outerHeight();b=b.pageY-a.selectiondrag.top;0<b&&b<c&&(b=0);b>=c&&(b-=c);a.selectiondrag.df=b}0!=a.selectiondrag.df&&(a.doScrollBy(2*-Math.floor(a.selectiondrag.df/6)),a.debounced("doselectionscroll",
|
54 |
+
function(){p()},50))}};a.hasTextSelected="getSelection"in document?function(){return 0<document.getSelection().rangeCount}:"selection"in document?function(){return"None"!=document.selection.type}:function(){return!1};a.onselectionstart=function(b){a.ispage||(a.selectiondrag=a.win.offset())};a.onselectionend=function(b){a.selectiondrag=!1};a.onselectiondrag=function(b){a.selectiondrag&&a.hasTextSelected()&&a.debounced("selectionscroll",function(){p(b)},250)}}e.hasw3ctouch?(a.css(a.rail,{"touch-action":"none"}),
|
55 |
+
a.css(a.cursor,{"touch-action":"none"}),a.bind(a.win,"pointerdown",a.ontouchstart),a.bind(document,"pointerup",a.ontouchend),a.bind(document,"pointermove",a.ontouchmove)):e.hasmstouch?(a.css(a.rail,{"-ms-touch-action":"none"}),a.css(a.cursor,{"-ms-touch-action":"none"}),a.bind(a.win,"MSPointerDown",a.ontouchstart),a.bind(document,"MSPointerUp",a.ontouchend),a.bind(document,"MSPointerMove",a.ontouchmove),a.bind(a.cursor,"MSGestureHold",function(a){a.preventDefault()}),a.bind(a.cursor,"contextmenu",
|
56 |
+
function(a){a.preventDefault()})):this.istouchcapable&&(a.bind(a.win,"touchstart",a.ontouchstart),a.bind(document,"touchend",a.ontouchend),a.bind(document,"touchcancel",a.ontouchend),a.bind(document,"touchmove",a.ontouchmove));if(a.opt.cursordragontouch||!e.cantouch&&!a.opt.touchbehavior)a.rail.css({cursor:"default"}),a.railh&&a.railh.css({cursor:"default"}),a.jqbind(a.rail,"mouseenter",function(){if(!a.ispage&&!a.win.is(":visible"))return!1;a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),
|
57 |
+
a.jqbind(a.rail,"mouseleave",function(){a.rail.active=!1;a.rail.drag||a.hideCursor()}),a.opt.sensitiverail&&(a.bind(a.rail,"click",function(b){a.doRailClick(b,!1,!1)}),a.bind(a.rail,"dblclick",function(b){a.doRailClick(b,!0,!1)}),a.bind(a.cursor,"click",function(b){a.cancelEvent(b)}),a.bind(a.cursor,"dblclick",function(b){a.cancelEvent(b)})),a.railh&&(a.jqbind(a.railh,"mouseenter",function(){if(!a.ispage&&!a.win.is(":visible"))return!1;a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),a.jqbind(a.railh,
|
58 |
+
"mouseleave",function(){a.rail.active=!1;a.rail.drag||a.hideCursor()}),a.opt.sensitiverail&&(a.bind(a.railh,"click",function(b){a.doRailClick(b,!1,!0)}),a.bind(a.railh,"dblclick",function(b){a.doRailClick(b,!0,!0)}),a.bind(a.cursorh,"click",function(b){a.cancelEvent(b)}),a.bind(a.cursorh,"dblclick",function(b){a.cancelEvent(b)})));e.cantouch||a.opt.touchbehavior?(a.bind(e.hasmousecapture?a.win:document,"mouseup",a.ontouchend),a.bind(document,"mousemove",a.ontouchmove),a.onclick&&a.bind(document,"click",
|
59 |
+
a.onclick),a.opt.cursordragontouch&&(a.bind(a.cursor,"mousedown",a.onmousedown),a.bind(a.cursor,"mouseup",a.onmouseup),a.cursorh&&a.bind(a.cursorh,"mousedown",function(b){a.onmousedown(b,!0)}),a.cursorh&&a.bind(a.cursorh,"mouseup",a.onmouseup))):(a.bind(e.hasmousecapture?a.win:document,"mouseup",a.onmouseup),a.bind(document,"mousemove",a.onmousemove),a.onclick&&a.bind(document,"click",a.onclick),a.bind(a.cursor,"mousedown",a.onmousedown),a.bind(a.cursor,"mouseup",a.onmouseup),a.railh&&(a.bind(a.cursorh,
|
60 |
+
"mousedown",function(b){a.onmousedown(b,!0)}),a.bind(a.cursorh,"mouseup",a.onmouseup)),!a.ispage&&a.opt.enablescrollonselection&&(a.bind(a.win[0],"mousedown",a.onselectionstart),a.bind(document,"mouseup",a.onselectionend),a.bind(a.cursor,"mouseup",a.onselectionend),a.cursorh&&a.bind(a.cursorh,"mouseup",a.onselectionend),a.bind(document,"mousemove",a.onselectiondrag)),a.zoom&&(a.jqbind(a.zoom,"mouseenter",function(){a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),a.jqbind(a.zoom,"mouseleave",
|
61 |
+
function(){a.rail.active=!1;a.rail.drag||a.hideCursor()})));a.opt.enablemousewheel&&(a.isiframe||a.bind(e.isie&&a.ispage?document:a.win,"mousewheel",a.onmousewheel),a.bind(a.rail,"mousewheel",a.onmousewheel),a.railh&&a.bind(a.railh,"mousewheel",a.onmousewheelhr));a.ispage||e.cantouch||/HTML|^BODY/.test(a.win[0].nodeName)||(a.win.attr("tabindex")||a.win.attr({tabindex:N++}),a.jqbind(a.win,"focus",function(b){y=a.getTarget(b).id||!0;a.hasfocus=!0;a.canshowonmouseevent&&a.noticeCursor()}),a.jqbind(a.win,
|
62 |
+
"blur",function(b){y=!1;a.hasfocus=!1}),a.jqbind(a.win,"mouseenter",function(b){D=a.getTarget(b).id||!0;a.hasmousefocus=!0;a.canshowonmouseevent&&a.noticeCursor()}),a.jqbind(a.win,"mouseleave",function(){D=!1;a.hasmousefocus=!1;a.rail.drag||a.hideCursor()}))}a.onkeypress=function(b){if(a.railslocked&&0==a.page.maxh)return!0;b=b?b:window.e;var c=a.getTarget(b);if(c&&/INPUT|TEXTAREA|SELECT|OPTION/.test(c.nodeName)&&(!c.getAttribute("type")&&!c.type||!/submit|button|cancel/i.tp)||f(c).attr("contenteditable"))return!0;
|
63 |
+
if(a.hasfocus||a.hasmousefocus&&!y||a.ispage&&!y&&!D){c=b.keyCode;if(a.railslocked&&27!=c)return a.cancelEvent(b);var g=b.ctrlKey||!1,d=b.shiftKey||!1,e=!1;switch(c){case 38:case 63233:a.doScrollBy(72);e=!0;break;case 40:case 63235:a.doScrollBy(-72);e=!0;break;case 37:case 63232:a.railh&&(g?a.doScrollLeft(0):a.doScrollLeftBy(72),e=!0);break;case 39:case 63234:a.railh&&(g?a.doScrollLeft(a.page.maxw):a.doScrollLeftBy(-72),e=!0);break;case 33:case 63276:a.doScrollBy(a.view.h);e=!0;break;case 34:case 63277:a.doScrollBy(-a.view.h);
|
64 |
+
e=!0;break;case 36:case 63273:a.railh&&g?a.doScrollPos(0,0):a.doScrollTo(0);e=!0;break;case 35:case 63275:a.railh&&g?a.doScrollPos(a.page.maxw,a.page.maxh):a.doScrollTo(a.page.maxh);e=!0;break;case 32:a.opt.spacebarenabled&&(d?a.doScrollBy(a.view.h):a.doScrollBy(-a.view.h),e=!0);break;case 27:a.zoomactive&&(a.doZoom(),e=!0)}if(e)return a.cancelEvent(b)}};a.opt.enablekeyboard&&a.bind(document,e.isopera&&!e.isopera12?"keypress":"keydown",a.onkeypress);a.bind(document,"keydown",function(b){b.ctrlKey&&
|
65 |
+
(a.wheelprevented=!0)});a.bind(document,"keyup",function(b){b.ctrlKey||(a.wheelprevented=!1)});a.bind(window,"blur",function(b){a.wheelprevented=!1});a.bind(window,"resize",a.lazyResize);a.bind(window,"orientationchange",a.lazyResize);a.bind(window,"load",a.lazyResize);if(e.ischrome&&!a.ispage&&!a.haswrapper){var r=a.win.attr("style"),c=parseFloat(a.win.css("width"))+1;a.win.css("width",c);a.synched("chromefix",function(){a.win.attr("style",r)})}a.onAttributeChange=function(b){a.lazyResize(a.isieold?
|
66 |
+
250:30)};!1!==v&&(a.observerbody=new v(function(b){b.forEach(function(b){if("attributes"==b.type)return f("body").hasClass("modal-open")?a.hide():a.show()});if(document.body.scrollHeight!=a.page.maxh)return a.lazyResize(30)}),a.observerbody.observe(document.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]}));a.ispage||a.haswrapper||(!1!==v?(a.observer=new v(function(b){b.forEach(a.onAttributeChange)}),a.observer.observe(a.win[0],{childList:!0,characterData:!1,
|
67 |
+
attributes:!0,subtree:!1}),a.observerremover=new v(function(b){b.forEach(function(b){if(0<b.removedNodes.length)for(var c in b.removedNodes)if(a&&b.removedNodes[c]==a.win[0])return a.remove()})}),a.observerremover.observe(a.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(a.bind(a.win,e.isie&&!e.isie9?"propertychange":"DOMAttrModified",a.onAttributeChange),e.isie9&&a.win[0].attachEvent("onpropertychange",a.onAttributeChange),a.bind(a.win,"DOMNodeRemoved",function(b){b.target==
|
68 |
+
a.win[0]&&a.remove()})));!a.ispage&&a.opt.boxzoom&&a.bind(window,"resize",a.resizeZoom);a.istextarea&&a.bind(a.win,"mouseup",a.lazyResize);a.lazyResize(30)}if("IFRAME"==this.doc[0].nodeName){var M=function(){a.iframexd=!1;var b;try{b="contentDocument"in this?this.contentDocument:this.contentWindow.document}catch(c){a.iframexd=!0,b=!1}if(a.iframexd)return"console"in window&&console.log("NiceScroll error: policy restriced iframe"),!0;a.forcescreen=!0;a.isiframe&&(a.iframe={doc:f(b),html:a.doc.contents().find("html")[0],
|
69 |
+
body:a.doc.contents().find("body")[0]},a.getContentSize=function(){return{w:Math.max(a.iframe.html.scrollWidth,a.iframe.body.scrollWidth),h:Math.max(a.iframe.html.scrollHeight,a.iframe.body.scrollHeight)}},a.docscroll=f(a.iframe.body));if(!e.isios&&a.opt.iframeautoresize&&!a.isiframe){a.win.scrollTop(0);a.doc.height("");var g=Math.max(b.getElementsByTagName("html")[0].scrollHeight,b.body.scrollHeight);a.doc.height(g)}a.lazyResize(30);e.isie7&&a.css(f(a.iframe.html),{"overflow-y":"hidden"});a.css(f(a.iframe.body),
|
70 |
+
{"overflow-y":"hidden"});e.isios&&a.haswrapper&&a.css(f(b.body),{"-webkit-transform":"translate3d(0,0,0)"});"contentWindow"in this?a.bind(this.contentWindow,"scroll",a.onscroll):a.bind(b,"scroll",a.onscroll);a.opt.enablemousewheel&&a.bind(b,"mousewheel",a.onmousewheel);a.opt.enablekeyboard&&a.bind(b,e.isopera?"keypress":"keydown",a.onkeypress);if(e.cantouch||a.opt.touchbehavior)a.bind(b,"mousedown",a.ontouchstart),a.bind(b,"mousemove",function(b){return a.ontouchmove(b,!0)}),a.opt.grabcursorenabled&&
|
71 |
+
e.cursorgrabvalue&&a.css(f(b.body),{cursor:e.cursorgrabvalue});a.bind(b,"mouseup",a.ontouchend);a.zoom&&(a.opt.dblclickzoom&&a.bind(b,"dblclick",a.doZoom),a.ongesturezoom&&a.bind(b,"gestureend",a.ongesturezoom))};this.doc[0].readyState&&"complete"==this.doc[0].readyState&&setTimeout(function(){M.call(a.doc[0],!1)},500);a.bind(this.doc,"load",M)}};this.showCursor=function(b,c){a.cursortimeout&&(clearTimeout(a.cursortimeout),a.cursortimeout=0);if(a.rail){a.autohidedom&&(a.autohidedom.stop().css({opacity:a.opt.cursoropacitymax}),
|
72 |
+
a.cursoractive=!0);a.rail.drag&&1==a.rail.drag.pt||("undefined"!=typeof b&&!1!==b&&(a.scroll.y=Math.round(1*b/a.scrollratio.y)),"undefined"!=typeof c&&(a.scroll.x=Math.round(1*c/a.scrollratio.x)));a.cursor.css({height:a.cursorheight,top:a.scroll.y});if(a.cursorh){var d=a.hasreversehr?a.scrollvaluemaxw-a.scroll.x:a.scroll.x;!a.rail.align&&a.rail.visibility?a.cursorh.css({width:a.cursorwidth,left:d+a.rail.width}):a.cursorh.css({width:a.cursorwidth,left:d});a.cursoractive=!0}a.zoom&&a.zoom.stop().css({opacity:a.opt.cursoropacitymax})}};
|
73 |
+
this.hideCursor=function(b){a.cursortimeout||!a.rail||!a.autohidedom||a.hasmousefocus&&"leave"==a.opt.autohidemode||(a.cursortimeout=setTimeout(function(){a.rail.active&&a.showonmouseevent||(a.autohidedom.stop().animate({opacity:a.opt.cursoropacitymin}),a.zoom&&a.zoom.stop().animate({opacity:a.opt.cursoropacitymin}),a.cursoractive=!1);a.cursortimeout=0},b||a.opt.hidecursordelay))};this.noticeCursor=function(b,c,d){a.showCursor(c,d);a.rail.active||a.hideCursor(b)};this.getContentSize=a.ispage?function(){return{w:Math.max(document.body.scrollWidth,
|
74 |
+
document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:a.haswrapper?function(){return{w:a.doc.outerWidth()+parseInt(a.win.css("paddingLeft"))+parseInt(a.win.css("paddingRight")),h:a.doc.outerHeight()+parseInt(a.win.css("paddingTop"))+parseInt(a.win.css("paddingBottom"))}}:function(){return{w:a.docscroll[0].scrollWidth,h:a.docscroll[0].scrollHeight}};this.onResize=function(b,c){if(!a||!a.win)return!1;if(!a.haswrapper&&!a.ispage){if("none"==
|
75 |
+
a.win.css("display"))return a.visibility&&a.hideRail().hideRailHr(),!1;a.hidden||a.visibility||a.showRail().showRailHr()}var d=a.page.maxh,e=a.page.maxw,f=a.view.h,h=a.view.w;a.view={w:a.ispage?a.win.width():parseInt(a.win[0].clientWidth),h:a.ispage?a.win.height():parseInt(a.win[0].clientHeight)};a.page=c?c:a.getContentSize();a.page.maxh=Math.max(0,a.page.h-a.view.h);a.page.maxw=Math.max(0,a.page.w-a.view.w);if(a.page.maxh==d&&a.page.maxw==e&&a.view.w==h&&a.view.h==f){if(a.ispage)return a;d=a.win.offset();
|
76 |
+
if(a.lastposition&&(e=a.lastposition,e.top==d.top&&e.left==d.left))return a;a.lastposition=d}0==a.page.maxh?(a.hideRail(),a.scrollvaluemax=0,a.scroll.y=0,a.scrollratio.y=0,a.cursorheight=0,a.setScrollTop(0),a.rail.scrollable=!1):(a.page.maxh-=a.opt.railpadding.top+a.opt.railpadding.bottom,a.rail.scrollable=!0);0==a.page.maxw?(a.hideRailHr(),a.scrollvaluemaxw=0,a.scroll.x=0,a.scrollratio.x=0,a.cursorwidth=0,a.setScrollLeft(0),a.railh.scrollable=!1):(a.page.maxw-=a.opt.railpadding.left+a.opt.railpadding.right,
|
77 |
+
a.railh.scrollable=!0);a.railslocked=a.locked||0==a.page.maxh&&0==a.page.maxw;if(a.railslocked)return a.ispage||a.updateScrollBar(a.view),!1;a.hidden||a.visibility?a.hidden||a.railh.visibility||a.showRailHr():a.showRail().showRailHr();a.istextarea&&a.win.css("resize")&&"none"!=a.win.css("resize")&&(a.view.h-=20);a.cursorheight=Math.min(a.view.h,Math.round(a.view.h/a.page.h*a.view.h));a.cursorheight=a.opt.cursorfixedheight?a.opt.cursorfixedheight:Math.max(a.opt.cursorminheight,a.cursorheight);a.cursorwidth=
|
78 |
+
Math.min(a.view.w,Math.round(a.view.w/a.page.w*a.view.w));a.cursorwidth=a.opt.cursorfixedheight?a.opt.cursorfixedheight:Math.max(a.opt.cursorminheight,a.cursorwidth);a.scrollvaluemax=a.view.h-a.cursorheight-a.cursor.hborder-(a.opt.railpadding.top+a.opt.railpadding.bottom);a.railh&&(a.railh.width=0<a.page.maxh?a.view.w-a.rail.width:a.view.w,a.scrollvaluemaxw=a.railh.width-a.cursorwidth-a.cursorh.wborder-(a.opt.railpadding.left+a.opt.railpadding.right));a.ispage||a.updateScrollBar(a.view);a.scrollratio=
|
79 |
+
{x:a.page.maxw/a.scrollvaluemaxw,y:a.page.maxh/a.scrollvaluemax};a.getScrollTop()>a.page.maxh?a.doScrollTop(a.page.maxh):(a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y)),a.scroll.x=Math.round(a.getScrollLeft()*(1/a.scrollratio.x)),a.cursoractive&&a.noticeCursor());a.scroll.y&&0==a.getScrollTop()&&a.doScrollTo(Math.floor(a.scroll.y*a.scrollratio.y));return a};this.resize=a.onResize;this.lazyResize=function(b){b=isNaN(b)?30:b;a.debounced("resize",a.resize,b);return a};this.jqbind=function(b,
|
80 |
+
c,d){a.events.push({e:b,n:c,f:d,q:!0});f(b).bind(c,d)};this.bind=function(b,c,d,f){var h="jquery"in b?b[0]:b;"mousewheel"==c?window.addEventListener||"onwheel"in document?a._bind(h,"wheel",d,f||!1):(b="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll",n(h,b,d,f||!1),"DOMMouseScroll"==b&&n(h,"MozMousePixelScroll",d,f||!1)):h.addEventListener?(e.cantouch&&/mouseup|mousedown|mousemove/.test(c)&&a._bind(h,"mousedown"==c?"touchstart":"mouseup"==c?"touchend":"touchmove",function(a){if(a.touches){if(2>
|
81 |
+
a.touches.length){var b=a.touches.length?a.touches[0]:a;b.original=a;d.call(this,b)}}else a.changedTouches&&(b=a.changedTouches[0],b.original=a,d.call(this,b))},f||!1),a._bind(h,c,d,f||!1),e.cantouch&&"mouseup"==c&&a._bind(h,"touchcancel",d,f||!1)):a._bind(h,c,function(b){(b=b||window.event||!1)&&b.srcElement&&(b.target=b.srcElement);"pageY"in b||(b.pageX=b.clientX+document.documentElement.scrollLeft,b.pageY=b.clientY+document.documentElement.scrollTop);return!1===d.call(h,b)||!1===f?a.cancelEvent(b):
|
82 |
+
!0})};e.haseventlistener?(this._bind=function(b,c,d,e){a.events.push({e:b,n:c,f:d,b:e,q:!1});b.addEventListener(c,d,e||!1)},this.cancelEvent=function(a){if(!a)return!1;a=a.original?a.original:a;a.preventDefault();a.stopPropagation();a.preventManipulation&&a.preventManipulation();return!1},this.stopPropagation=function(a){if(!a)return!1;a=a.original?a.original:a;a.stopPropagation();return!1},this._unbind=function(a,c,d,e){a.removeEventListener(c,d,e)}):(this._bind=function(b,c,d,e){a.events.push({e:b,
|
83 |
+
n:c,f:d,b:e,q:!1});b.attachEvent?b.attachEvent("on"+c,d):b["on"+c]=d},this.cancelEvent=function(a){a=window.event||!1;if(!a)return!1;a.cancelBubble=!0;a.cancel=!0;return a.returnValue=!1},this.stopPropagation=function(a){a=window.event||!1;if(!a)return!1;a.cancelBubble=!0;return!1},this._unbind=function(a,c,d,e){a.detachEvent?a.detachEvent("on"+c,d):a["on"+c]=!1});this.unbindAll=function(){for(var b=0;b<a.events.length;b++){var c=a.events[b];c.q?c.e.unbind(c.n,c.f):a._unbind(c.e,c.n,c.f,c.b)}};this.showRail=
|
84 |
+
function(){0==a.page.maxh||!a.ispage&&"none"==a.win.css("display")||(a.visibility=!0,a.rail.visibility=!0,a.rail.css("display","block"));return a};this.showRailHr=function(){if(!a.railh)return a;0==a.page.maxw||!a.ispage&&"none"==a.win.css("display")||(a.railh.visibility=!0,a.railh.css("display","block"));return a};this.hideRail=function(){a.visibility=!1;a.rail.visibility=!1;a.rail.css("display","none");return a};this.hideRailHr=function(){if(!a.railh)return a;a.railh.visibility=!1;a.railh.css("display",
|
85 |
+
"none");return a};this.show=function(){a.hidden=!1;a.railslocked=!1;return a.showRail().showRailHr()};this.hide=function(){a.hidden=!0;a.railslocked=!0;return a.hideRail().hideRailHr()};this.toggle=function(){return a.hidden?a.show():a.hide()};this.remove=function(){a.stop();a.cursortimeout&&clearTimeout(a.cursortimeout);a.doZoomOut();a.unbindAll();e.isie9&&a.win[0].detachEvent("onpropertychange",a.onAttributeChange);!1!==a.observer&&a.observer.disconnect();!1!==a.observerremover&&a.observerremover.disconnect();
|
86 |
+
!1!==a.observerbody&&a.observerbody.disconnect();a.events=null;a.cursor&&a.cursor.remove();a.cursorh&&a.cursorh.remove();a.rail&&a.rail.remove();a.railh&&a.railh.remove();a.zoom&&a.zoom.remove();for(var b=0;b<a.saved.css.length;b++){var c=a.saved.css[b];c[0].css(c[1],"undefined"==typeof c[2]?"":c[2])}a.saved=!1;a.me.data("__nicescroll","");var d=f.nicescroll;d.each(function(b){if(this&&this.id===a.id){delete d[b];for(var c=++b;c<d.length;c++,b++)d[b]=d[c];d.length--;d.length&&delete d[d.length]}});
|
87 |
+
for(var h in a)a[h]=null,delete a[h];a=null};this.scrollstart=function(b){this.onscrollstart=b;return a};this.scrollend=function(b){this.onscrollend=b;return a};this.scrollcancel=function(b){this.onscrollcancel=b;return a};this.zoomin=function(b){this.onzoomin=b;return a};this.zoomout=function(b){this.onzoomout=b;return a};this.isScrollable=function(a){a=a.target?a.target:a;if("OPTION"==a.nodeName)return!0;for(;a&&1==a.nodeType&&!/^BODY|HTML/.test(a.nodeName);){var c=f(a),c=c.css("overflowY")||c.css("overflowX")||
|
88 |
+
c.css("overflow")||"";if(/scroll|auto/.test(c))return a.clientHeight!=a.scrollHeight;a=a.parentNode?a.parentNode:!1}return!1};this.getViewport=function(a){for(a=a&&a.parentNode?a.parentNode:!1;a&&1==a.nodeType&&!/^BODY|HTML/.test(a.nodeName);){var c=f(a);if(/fixed|absolute/.test(c.css("position")))return c;var d=c.css("overflowY")||c.css("overflowX")||c.css("overflow")||"";if(/scroll|auto/.test(d)&&a.clientHeight!=a.scrollHeight||0<c.getNiceScroll().length)return c;a=a.parentNode?a.parentNode:!1}return!1};
|
89 |
+
this.triggerScrollEnd=function(){if(a.onscrollend){var b=a.getScrollLeft(),c=a.getScrollTop();a.onscrollend.call(a,{type:"scrollend",current:{x:b,y:c},end:{x:b,y:c}})}};this.onmousewheel=function(b){if(!a.wheelprevented){if(a.railslocked)return a.debounced("checkunlock",a.resize,250),!0;if(a.rail.drag)return a.cancelEvent(b);"auto"==a.opt.oneaxismousemode&&0!=b.deltaX&&(a.opt.oneaxismousemode=!1);if(a.opt.oneaxismousemode&&0==b.deltaX&&!a.rail.scrollable)return a.railh&&a.railh.scrollable?a.onmousewheelhr(b):
|
90 |
+
!0;var c=+new Date,d=!1;a.opt.preservenativescrolling&&a.checkarea+600<c&&(a.nativescrollingarea=a.isScrollable(b),d=!0);a.checkarea=c;if(a.nativescrollingarea)return!0;if(b=p(b,!1,d))a.checkarea=0;return b}};this.onmousewheelhr=function(b){if(!a.wheelprevented){if(a.railslocked||!a.railh.scrollable)return!0;if(a.rail.drag)return a.cancelEvent(b);var c=+new Date,d=!1;a.opt.preservenativescrolling&&a.checkarea+600<c&&(a.nativescrollingarea=a.isScrollable(b),d=!0);a.checkarea=c;return a.nativescrollingarea?
|
91 |
+
!0:a.railslocked?a.cancelEvent(b):p(b,!0,d)}};this.stop=function(){a.cancelScroll();a.scrollmon&&a.scrollmon.stop();a.cursorfreezed=!1;a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y));a.noticeCursor();return a};this.getTransitionSpeed=function(b){var c=Math.round(10*a.opt.scrollspeed);b=Math.min(c,Math.round(b/20*a.opt.scrollspeed));return 20<b?b:0};a.opt.smoothscroll?a.ishwscroll&&e.hastransition&&a.opt.usetransition&&a.opt.smoothscroll?(this.prepareTransition=function(b,c){var d=c?20<
|
92 |
+
b?b:0:a.getTransitionSpeed(b),f=d?e.prefixstyle+"transform "+d+"ms ease-out":"";a.lasttransitionstyle&&a.lasttransitionstyle==f||(a.lasttransitionstyle=f,a.doc.css(e.transitionstyle,f));return d},this.doScrollLeft=function(b,c){var d=a.scrollrunning?a.newscrolly:a.getScrollTop();a.doScrollPos(b,d,c)},this.doScrollTop=function(b,c){var d=a.scrollrunning?a.newscrollx:a.getScrollLeft();a.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,d){var f=a.getScrollTop(),h=a.getScrollLeft();(0>(a.newscrolly-
|
93 |
+
f)*(c-f)||0>(a.newscrollx-h)*(b-h))&&a.cancelScroll();0==a.opt.bouncescroll&&(0>c?c=0:c>a.page.maxh&&(c=a.page.maxh),0>b?b=0:b>a.page.maxw&&(b=a.page.maxw));if(a.scrollrunning&&b==a.newscrollx&&c==a.newscrolly)return!1;a.newscrolly=c;a.newscrollx=b;a.newscrollspeed=d||!1;if(a.timer)return!1;a.timer=setTimeout(function(){var d=a.getScrollTop(),f=a.getScrollLeft(),h,k;h=b-f;k=c-d;h=Math.round(Math.sqrt(Math.pow(h,2)+Math.pow(k,2)));h=a.newscrollspeed&&1<a.newscrollspeed?a.newscrollspeed:a.getTransitionSpeed(h);
|
94 |
+
a.newscrollspeed&&1>=a.newscrollspeed&&(h*=a.newscrollspeed);a.prepareTransition(h,!0);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm);0<h&&(!a.scrollrunning&&a.onscrollstart&&a.onscrollstart.call(a,{type:"scrollstart",current:{x:f,y:d},request:{x:b,y:c},end:{x:a.newscrollx,y:a.newscrolly},speed:h}),e.transitionend?a.scrollendtrapped||(a.scrollendtrapped=!0,a.bind(a.doc,e.transitionend,a.onScrollTransitionEnd,!1)):(a.scrollendtrapped&&clearTimeout(a.scrollendtrapped),a.scrollendtrapped=
|
95 |
+
setTimeout(a.onScrollTransitionEnd,h)),a.timerscroll={bz:new A(d,a.newscrolly,h,0,0,.58,1),bh:new A(f,a.newscrollx,h,0,0,.58,1)},a.cursorfreezed||(a.timerscroll.tm=setInterval(function(){a.showCursor(a.getScrollTop(),a.getScrollLeft())},60)));a.synched("doScroll-set",function(){a.timer=0;a.scrollendtrapped&&(a.scrollrunning=!0);a.setScrollTop(a.newscrolly);a.setScrollLeft(a.newscrollx);if(!a.scrollendtrapped)a.onScrollTransitionEnd()})},50)},this.cancelScroll=function(){if(!a.scrollendtrapped)return!0;
|
96 |
+
var b=a.getScrollTop(),c=a.getScrollLeft();a.scrollrunning=!1;e.transitionend||clearTimeout(e.transitionend);a.scrollendtrapped=!1;a._unbind(a.doc[0],e.transitionend,a.onScrollTransitionEnd);a.prepareTransition(0);a.setScrollTop(b);a.railh&&a.setScrollLeft(c);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm);a.timerscroll=!1;a.cursorfreezed=!1;a.showCursor(b,c);return a},this.onScrollTransitionEnd=function(){a.scrollendtrapped&&a._unbind(a.doc[0],e.transitionend,a.onScrollTransitionEnd);
|
97 |
+
a.scrollendtrapped=!1;a.prepareTransition(0);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm);a.timerscroll=!1;var b=a.getScrollTop(),c=a.getScrollLeft();a.setScrollTop(b);a.railh&&a.setScrollLeft(c);a.noticeCursor(!1,b,c);a.cursorfreezed=!1;0>b?b=0:b>a.page.maxh&&(b=a.page.maxh);0>c?c=0:c>a.page.maxw&&(c=a.page.maxw);if(b!=a.newscrolly||c!=a.newscrollx)return a.doScrollPos(c,b,a.opt.snapbackspeed);a.onscrollend&&a.scrollrunning&&a.triggerScrollEnd();a.scrollrunning=!1}):(this.doScrollLeft=
|
98 |
+
function(b,c){var d=a.scrollrunning?a.newscrolly:a.getScrollTop();a.doScrollPos(b,d,c)},this.doScrollTop=function(b,c){var d=a.scrollrunning?a.newscrollx:a.getScrollLeft();a.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,d){function e(){if(a.cancelAnimationFrame)return!0;a.scrollrunning=!0;if(n=1-n)return a.timer=s(e)||1;var b=0,c,d,g=d=a.getScrollTop();if(a.dst.ay){g=a.bzscroll?a.dst.py+a.bzscroll.getNow()*a.dst.ay:a.newscrolly;c=g-d;if(0>c&&g<a.newscrolly||0<c&&g>a.newscrolly)g=a.newscrolly;
|
99 |
+
a.setScrollTop(g);g==a.newscrolly&&(b=1)}else b=1;d=c=a.getScrollLeft();if(a.dst.ax){d=a.bzscroll?a.dst.px+a.bzscroll.getNow()*a.dst.ax:a.newscrollx;c=d-c;if(0>c&&d<a.newscrollx||0<c&&d>a.newscrollx)d=a.newscrollx;a.setScrollLeft(d);d==a.newscrollx&&(b+=1)}else b+=1;2==b?(a.timer=0,a.cursorfreezed=!1,a.bzscroll=!1,a.scrollrunning=!1,0>g?g=0:g>a.page.maxh&&(g=a.page.maxh),0>d?d=0:d>a.page.maxw&&(d=a.page.maxw),d!=a.newscrollx||g!=a.newscrolly?a.doScrollPos(d,g):a.onscrollend&&a.triggerScrollEnd()):
|
100 |
+
a.timer=s(e)||1}c="undefined"==typeof c||!1===c?a.getScrollTop(!0):c;if(a.timer&&a.newscrolly==c&&a.newscrollx==b)return!0;a.timer&&t(a.timer);a.timer=0;var f=a.getScrollTop(),h=a.getScrollLeft();(0>(a.newscrolly-f)*(c-f)||0>(a.newscrollx-h)*(b-h))&&a.cancelScroll();a.newscrolly=c;a.newscrollx=b;a.bouncescroll&&a.rail.visibility||(0>a.newscrolly?a.newscrolly=0:a.newscrolly>a.page.maxh&&(a.newscrolly=a.page.maxh));a.bouncescroll&&a.railh.visibility||(0>a.newscrollx?a.newscrollx=0:a.newscrollx>a.page.maxw&&
|
101 |
+
(a.newscrollx=a.page.maxw));a.dst={};a.dst.x=b-h;a.dst.y=c-f;a.dst.px=h;a.dst.py=f;var k=Math.round(Math.sqrt(Math.pow(a.dst.x,2)+Math.pow(a.dst.y,2)));a.dst.ax=a.dst.x/k;a.dst.ay=a.dst.y/k;var l=0,m=k;0==a.dst.x?(l=f,m=c,a.dst.ay=1,a.dst.py=0):0==a.dst.y&&(l=h,m=b,a.dst.ax=1,a.dst.px=0);k=a.getTransitionSpeed(k);d&&1>=d&&(k*=d);a.bzscroll=0<k?a.bzscroll?a.bzscroll.update(m,k):new A(l,m,k,0,1,0,1):!1;if(!a.timer){(f==a.page.maxh&&c>=a.page.maxh||h==a.page.maxw&&b>=a.page.maxw)&&a.checkContentSize();
|
102 |
+
var n=1;a.cancelAnimationFrame=!1;a.timer=1;a.onscrollstart&&!a.scrollrunning&&a.onscrollstart.call(a,{type:"scrollstart",current:{x:h,y:f},request:{x:b,y:c},end:{x:a.newscrollx,y:a.newscrolly},speed:k});e();(f==a.page.maxh&&c>=f||h==a.page.maxw&&b>=h)&&a.checkContentSize();a.noticeCursor()}},this.cancelScroll=function(){a.timer&&t(a.timer);a.timer=0;a.bzscroll=!1;a.scrollrunning=!1;return a}):(this.doScrollLeft=function(b,c){var d=a.getScrollTop();a.doScrollPos(b,d,c)},this.doScrollTop=function(b,
|
103 |
+
c){var d=a.getScrollLeft();a.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,d){var e=b>a.page.maxw?a.page.maxw:b;0>e&&(e=0);var f=c>a.page.maxh?a.page.maxh:c;0>f&&(f=0);a.synched("scroll",function(){a.setScrollTop(f);a.setScrollLeft(e)})},this.cancelScroll=function(){});this.doScrollBy=function(b,c){var d=0,d=c?Math.floor((a.scroll.y-b)*a.scrollratio.y):(a.timer?a.newscrolly:a.getScrollTop(!0))-b;if(a.bouncescroll){var e=Math.round(a.view.h/2);d<-e?d=-e:d>a.page.maxh+e&&(d=a.page.maxh+e)}a.cursorfreezed=
|
104 |
+
!1;e=a.getScrollTop(!0);if(0>d&&0>=e)return a.noticeCursor();if(d>a.page.maxh&&e>=a.page.maxh)return a.checkContentSize(),a.noticeCursor();a.doScrollTop(d)};this.doScrollLeftBy=function(b,c){var d=0,d=c?Math.floor((a.scroll.x-b)*a.scrollratio.x):(a.timer?a.newscrollx:a.getScrollLeft(!0))-b;if(a.bouncescroll){var e=Math.round(a.view.w/2);d<-e?d=-e:d>a.page.maxw+e&&(d=a.page.maxw+e)}a.cursorfreezed=!1;e=a.getScrollLeft(!0);if(0>d&&0>=e||d>a.page.maxw&&e>=a.page.maxw)return a.noticeCursor();a.doScrollLeft(d)};
|
105 |
+
this.doScrollTo=function(b,c){c&&Math.round(b*a.scrollratio.y);a.cursorfreezed=!1;a.doScrollTop(b)};this.checkContentSize=function(){var b=a.getContentSize();b.h==a.page.h&&b.w==a.page.w||a.resize(!1,b)};a.onscroll=function(b){a.rail.drag||a.cursorfreezed||a.synched("scroll",function(){a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y));a.railh&&(a.scroll.x=Math.round(a.getScrollLeft()*(1/a.scrollratio.x)));a.noticeCursor()})};a.bind(a.docscroll,"scroll",a.onscroll);this.doZoomIn=function(b){if(!a.zoomactive){a.zoomactive=
|
106 |
+
!0;a.zoomrestore={style:{}};var c="position top left zIndex backgroundColor marginTop marginBottom marginLeft marginRight".split(" "),d=a.win[0].style,h;for(h in c){var k=c[h];a.zoomrestore.style[k]="undefined"!=typeof d[k]?d[k]:""}a.zoomrestore.style.width=a.win.css("width");a.zoomrestore.style.height=a.win.css("height");a.zoomrestore.padding={w:a.win.outerWidth()-a.win.width(),h:a.win.outerHeight()-a.win.height()};e.isios4&&(a.zoomrestore.scrollTop=f(window).scrollTop(),f(window).scrollTop(0));
|
107 |
+
a.win.css({position:e.isios4?"absolute":"fixed",top:0,left:0,"z-index":x+100,margin:"0px"});c=a.win.css("backgroundColor");(""==c||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(c))&&a.win.css("backgroundColor","#fff");a.rail.css({"z-index":x+101});a.zoom.css({"z-index":x+102});a.zoom.css("backgroundPosition","0px -18px");a.resizeZoom();a.onzoomin&&a.onzoomin.call(a);return a.cancelEvent(b)}};this.doZoomOut=function(b){if(a.zoomactive)return a.zoomactive=!1,a.win.css("margin",""),a.win.css(a.zoomrestore.style),
|
108 |
+
e.isios4&&f(window).scrollTop(a.zoomrestore.scrollTop),a.rail.css({"z-index":a.zindex}),a.zoom.css({"z-index":a.zindex}),a.zoomrestore=!1,a.zoom.css("backgroundPosition","0px 0px"),a.onResize(),a.onzoomout&&a.onzoomout.call(a),a.cancelEvent(b)};this.doZoom=function(b){return a.zoomactive?a.doZoomOut(b):a.doZoomIn(b)};this.resizeZoom=function(){if(a.zoomactive){var b=a.getScrollTop();a.win.css({width:f(window).width()-a.zoomrestore.padding.w+"px",height:f(window).height()-a.zoomrestore.padding.h+"px"});
|
109 |
+
a.onResize();a.setScrollTop(Math.min(a.page.maxh,b))}};this.init();f.nicescroll.push(this)},L=function(f){var c=this;this.nc=f;this.steptime=this.lasttime=this.speedy=this.speedx=this.lasty=this.lastx=0;this.snapy=this.snapx=!1;this.demuly=this.demulx=0;this.lastscrolly=this.lastscrollx=-1;this.timer=this.chky=this.chkx=0;this.time=function(){return+new Date};this.reset=function(f,k){c.stop();var d=c.time();c.steptime=0;c.lasttime=d;c.speedx=0;c.speedy=0;c.lastx=f;c.lasty=k;c.lastscrollx=-1;c.lastscrolly=
|
110 |
+
-1};this.update=function(f,k){var d=c.time();c.steptime=d-c.lasttime;c.lasttime=d;var d=k-c.lasty,n=f-c.lastx,p=c.nc.getScrollTop(),a=c.nc.getScrollLeft(),p=p+d,a=a+n;c.snapx=0>a||a>c.nc.page.maxw;c.snapy=0>p||p>c.nc.page.maxh;c.speedx=n;c.speedy=d;c.lastx=f;c.lasty=k};this.stop=function(){c.nc.unsynched("domomentum2d");c.timer&&clearTimeout(c.timer);c.timer=0;c.lastscrollx=-1;c.lastscrolly=-1};this.doSnapy=function(f,k){var d=!1;0>k?(k=0,d=!0):k>c.nc.page.maxh&&(k=c.nc.page.maxh,d=!0);0>f?(f=0,d=
|
111 |
+
!0):f>c.nc.page.maxw&&(f=c.nc.page.maxw,d=!0);d?c.nc.doScrollPos(f,k,c.nc.opt.snapbackspeed):c.nc.triggerScrollEnd()};this.doMomentum=function(f){var k=c.time(),d=f?k+f:c.lasttime;f=c.nc.getScrollLeft();var n=c.nc.getScrollTop(),p=c.nc.page.maxh,a=c.nc.page.maxw;c.speedx=0<a?Math.min(60,c.speedx):0;c.speedy=0<p?Math.min(60,c.speedy):0;d=d&&60>=k-d;if(0>n||n>p||0>f||f>a)d=!1;f=c.speedx&&d?c.speedx:!1;if(c.speedy&&d&&c.speedy||f){var s=Math.max(16,c.steptime);50<s&&(f=s/50,c.speedx*=f,c.speedy*=f,s=
|
112 |
+
50);c.demulxy=0;c.lastscrollx=c.nc.getScrollLeft();c.chkx=c.lastscrollx;c.lastscrolly=c.nc.getScrollTop();c.chky=c.lastscrolly;var e=c.lastscrollx,r=c.lastscrolly,t=function(){var d=600<c.time()-k?.04:.02;c.speedx&&(e=Math.floor(c.lastscrollx-c.speedx*(1-c.demulxy)),c.lastscrollx=e,0>e||e>a)&&(d=.1);c.speedy&&(r=Math.floor(c.lastscrolly-c.speedy*(1-c.demulxy)),c.lastscrolly=r,0>r||r>p)&&(d=.1);c.demulxy=Math.min(1,c.demulxy+d);c.nc.synched("domomentum2d",function(){c.speedx&&(c.nc.getScrollLeft()!=
|
113 |
+
c.chkx&&c.stop(),c.chkx=e,c.nc.setScrollLeft(e));c.speedy&&(c.nc.getScrollTop()!=c.chky&&c.stop(),c.chky=r,c.nc.setScrollTop(r));c.timer||(c.nc.hideCursor(),c.doSnapy(e,r))});1>c.demulxy?c.timer=setTimeout(t,s):(c.stop(),c.nc.hideCursor(),c.doSnapy(e,r))};t()}else c.doSnapy(c.nc.getScrollLeft(),c.nc.getScrollTop())}},w=f.fn.scrollTop;f.cssHooks.pageYOffset={get:function(k,c,h){return(c=f.data(k,"__nicescroll")||!1)&&c.ishwscroll?c.getScrollTop():w.call(k)},set:function(k,c){var h=f.data(k,"__nicescroll")||
|
114 |
+
!1;h&&h.ishwscroll?h.setScrollTop(parseInt(c)):w.call(k,c);return this}};f.fn.scrollTop=function(k){if("undefined"==typeof k){var c=this[0]?f.data(this[0],"__nicescroll")||!1:!1;return c&&c.ishwscroll?c.getScrollTop():w.call(this)}return this.each(function(){var c=f.data(this,"__nicescroll")||!1;c&&c.ishwscroll?c.setScrollTop(parseInt(k)):w.call(f(this),k)})};var B=f.fn.scrollLeft;f.cssHooks.pageXOffset={get:function(k,c,h){return(c=f.data(k,"__nicescroll")||!1)&&c.ishwscroll?c.getScrollLeft():B.call(k)},
|
115 |
+
set:function(k,c){var h=f.data(k,"__nicescroll")||!1;h&&h.ishwscroll?h.setScrollLeft(parseInt(c)):B.call(k,c);return this}};f.fn.scrollLeft=function(k){if("undefined"==typeof k){var c=this[0]?f.data(this[0],"__nicescroll")||!1:!1;return c&&c.ishwscroll?c.getScrollLeft():B.call(this)}return this.each(function(){var c=f.data(this,"__nicescroll")||!1;c&&c.ishwscroll?c.setScrollLeft(parseInt(k)):B.call(f(this),k)})};var C=function(k){var c=this;this.length=0;this.name="nicescrollarray";this.each=function(d){for(var f=
|
116 |
+
0,h=0;f<c.length;f++)d.call(c[f],h++);return c};this.push=function(d){c[c.length]=d;c.length++};this.eq=function(d){return c[d]};if(k)for(var h=0;h<k.length;h++){var m=f.data(k[h],"__nicescroll")||!1;m&&(this[this.length]=m,this.length++)}return this};(function(f,c,h){for(var m=0;m<c.length;m++)h(f,c[m])})(C.prototype,"show hide toggle onResize resize remove stop doScrollPos".split(" "),function(f,c){f[c]=function(){var f=arguments;return this.each(function(){this[c].apply(this,f)})}});f.fn.getNiceScroll=
|
117 |
+
function(k){return"undefined"==typeof k?new C(this):this[k]&&f.data(this[k],"__nicescroll")||!1};f.extend(f.expr[":"],{nicescroll:function(k){return f.data(k,"__nicescroll")?!0:!1}});f.fn.niceScroll=function(k,c){"undefined"!=typeof c||"object"!=typeof k||"jquery"in k||(c=k,k=!1);c=f.extend({},c);var h=new C;"undefined"==typeof c&&(c={});k&&(c.doc=f(k),c.win=f(this));var m=!("doc"in c);m||"win"in c||(c.win=f(this));this.each(function(){var d=f(this).data("__nicescroll")||!1;d||(c.doc=m?f(this):c.doc,
|
118 |
+
d=new R(c,f(this)),f(this).data("__nicescroll",d));h.push(d)});return 1==h.length?h[0]:h};window.NiceScroll={getjQuery:function(){return f}};f.nicescroll||(f.nicescroll=new C,f.nicescroll.options=I)});
|
templates/4/index.php
CHANGED
@@ -11,11 +11,7 @@ if(is_numeric($favicon_attach_id))
|
|
11 |
$fav_icon_attachment_url = parse_url( wp_get_attachment_url($favicon_attach_id) );
|
12 |
$acx_csma_favicon = $fav_icon_attachment_url [ 'scheme' ] . '://' .rawurlencode( basename( $fav_icon_attachment_url[ 'host' ])). $fav_icon_attachment_url[ 'path' ];
|
13 |
}
|
14 |
-
$acx_csma_appearence_array_4=
|
15 |
-
if(is_serialized($acx_csma_appearence_array_4 ))
|
16 |
-
{
|
17 |
-
$acx_csma_appearence_array_4 = unserialize($acx_csma_appearence_array_4);
|
18 |
-
}
|
19 |
$acx_csma_start_date_time=get_option('acx_csma_start_date_time');
|
20 |
$acx_csma_date_time=get_option('acx_csma_date_time');
|
21 |
$acx_csma_timestamp=current_time('timestamp');
|
@@ -70,15 +66,20 @@ if(is_numeric($acx_csma_background_image4_id))
|
|
70 |
<body style="background:url('<?php echo $bg_image4_url; ?>')no-repeat fixed center center transparent; background-size:cover; ">
|
71 |
<?php
|
72 |
do_action('acx_csma_top_inside_body_tag',$acx_csma_template_id);
|
73 |
-
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_4[$acx_csma_template_id]))
|
74 |
{
|
75 |
-
$
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
80 |
{
|
81 |
-
$new_class="";
|
82 |
}
|
83 |
?>
|
84 |
<div class="wrapper <?php echo $new_class; ?>">
|
@@ -96,33 +97,59 @@ $new_class="";
|
|
96 |
}
|
97 |
?>
|
98 |
<img src="<?php echo $logo4_url; ?>" alt="Logo">
|
99 |
-
<?php } else if($acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_logo_choice']=="text"){
|
100 |
-
|
|
|
|
|
|
|
101 |
<?php } } ?>
|
102 |
</div><!-- header -->
|
103 |
<div class="inline_block mg_top" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_inside_bg_color4']; ?>">
|
104 |
-
<h2 style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_title_color4']; ?>"><?php
|
|
|
|
|
|
|
105 |
|
106 |
<?php
|
107 |
$acx_csma_custom_html_top_temp4 = $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_custom_html_top_temp4'];
|
108 |
if($acx_csma_custom_html_top_temp4 != "") { ?>
|
109 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_4" id="acx_csma_top_1">
|
110 |
-
<?php echo $acx_csma_custom_html_top_temp4; ?>
|
111 |
</div>
|
112 |
<?php } ?>
|
113 |
|
114 |
<?php if($acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_show_timer4']==1)
|
115 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
<div class="inline_block timer_holder">
|
117 |
<div class="timer_box days">
|
118 |
-
<p
|
119 |
<ul>
|
120 |
<li id="weeks_0" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
121 |
<li id="weeks_1" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
122 |
</ul>
|
123 |
</div><!-- timer_box -->
|
124 |
<div class="timer_box days">
|
125 |
-
<p
|
126 |
<ul>
|
127 |
<li id="days_0" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
128 |
<!-- li id="days_1" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>">0</li>
|
@@ -130,21 +157,21 @@ $new_class="";
|
|
130 |
</ul>
|
131 |
</div><!-- timer_box -->
|
132 |
<div class="timer_box">
|
133 |
-
<p
|
134 |
<ul>
|
135 |
<li id="hours_0" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
136 |
<li id="hours_1" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
137 |
</ul>
|
138 |
</div><!-- timer_box -->
|
139 |
<div class="timer_box days">
|
140 |
-
<p
|
141 |
<ul>
|
142 |
<li id="minutes_0" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
143 |
<li id="minutes_1" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
144 |
</ul>
|
145 |
</div><!-- timer_box -->
|
146 |
<div class="timer_box last_one">
|
147 |
-
<p
|
148 |
<ul>
|
149 |
<li id="seconds_0" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
150 |
<li id="seconds_1" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
@@ -165,7 +192,7 @@ $new_class="";
|
|
165 |
$acx_csma_custom_html_bottom_temp4 = $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_custom_html_bottom_temp4'];
|
166 |
if($acx_csma_custom_html_bottom_temp4 != "") { ?>
|
167 |
<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_4" id="acx_csma_top_1">
|
168 |
-
<?php echo $acx_csma_custom_html_bottom_temp4; ?>
|
169 |
</div>
|
170 |
<?php } ?>
|
171 |
|
@@ -277,17 +304,56 @@ function updateCounter()
|
|
277 |
seconds = (end_date - current);
|
278 |
|
279 |
weeks=Math.floor(seconds / (60 *60 * 24*7));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
seconds -= weeks * 60 * 60 * 24* 7;
|
281 |
|
282 |
days = Math.floor(seconds / (60 * 60 * 24));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
seconds -= days * 60 * 60 * 24;
|
284 |
|
285 |
hours = Math.floor(seconds / (60 * 60));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
seconds -= hours * 60 * 60;
|
287 |
|
288 |
minutes = Math.floor(seconds / 60);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
seconds -= minutes * 60;
|
290 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
digit_updater("seconds",seconds,60);
|
292 |
digit_updater("minutes",minutes,60);
|
293 |
digit_updater("hours",hours,60);
|
11 |
$fav_icon_attachment_url = parse_url( wp_get_attachment_url($favicon_attach_id) );
|
12 |
$acx_csma_favicon = $fav_icon_attachment_url [ 'scheme' ] . '://' .rawurlencode( basename( $fav_icon_attachment_url[ 'host' ])). $fav_icon_attachment_url[ 'path' ];
|
13 |
}
|
14 |
+
$acx_csma_appearence_array_4=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
15 |
$acx_csma_start_date_time=get_option('acx_csma_start_date_time');
|
16 |
$acx_csma_date_time=get_option('acx_csma_date_time');
|
17 |
$acx_csma_timestamp=current_time('timestamp');
|
66 |
<body style="background:url('<?php echo $bg_image4_url; ?>')no-repeat fixed center center transparent; background-size:cover; ">
|
67 |
<?php
|
68 |
do_action('acx_csma_top_inside_body_tag',$acx_csma_template_id);
|
69 |
+
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_4[$acx_csma_template_id]))
|
70 |
{
|
71 |
+
if($acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
|
72 |
+
{
|
73 |
+
$new_class="text_logo";
|
74 |
+
}
|
75 |
+
else
|
76 |
+
{
|
77 |
+
$new_class="";
|
78 |
+
}
|
79 |
+
}
|
80 |
+
else
|
81 |
{
|
82 |
+
$new_class="";
|
83 |
}
|
84 |
?>
|
85 |
<div class="wrapper <?php echo $new_class; ?>">
|
97 |
}
|
98 |
?>
|
99 |
<img src="<?php echo $logo4_url; ?>" alt="Logo">
|
100 |
+
<?php } else if($acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_logo_choice']=="text"){
|
101 |
+
$acx_csma_logo_text4 = $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_logo_text4'];
|
102 |
+
$acx_csma_logo_text4 = acx_csma_text_after_save_hook_fn($acx_csma_logo_text4);
|
103 |
+
?>
|
104 |
+
<div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_logo_text_color4']; ?>"><?php echo $acx_csma_logo_text4; ?></div>
|
105 |
<?php } } ?>
|
106 |
</div><!-- header -->
|
107 |
<div class="inline_block mg_top" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_inside_bg_color4']; ?>">
|
108 |
+
<h2 style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_title_color4']; ?>"><?php
|
109 |
+
$acx_csma_title4 = $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_title4'];
|
110 |
+
$acx_csma_title4 = acx_csma_text_after_save_hook_fn($acx_csma_title4);
|
111 |
+
echo $acx_csma_title4; ?></h2>
|
112 |
|
113 |
<?php
|
114 |
$acx_csma_custom_html_top_temp4 = $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_custom_html_top_temp4'];
|
115 |
if($acx_csma_custom_html_top_temp4 != "") { ?>
|
116 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_4" id="acx_csma_top_1">
|
117 |
+
<?php echo $acx_csma_custom_html_top_temp4 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp4); ?>
|
118 |
</div>
|
119 |
<?php } ?>
|
120 |
|
121 |
<?php if($acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_show_timer4']==1)
|
122 |
+
{
|
123 |
+
$acx_second_arr=acx_csma_disp_var_to_show("second");
|
124 |
+
$acx_sec_singular=$acx_second_arr['singular'];
|
125 |
+
$acx_sec_plural=$acx_second_arr['plural'];
|
126 |
+
|
127 |
+
$acx_minute_arr=acx_csma_disp_var_to_show("minute");
|
128 |
+
$acx_minute_singular=$acx_minute_arr['singular'];
|
129 |
+
$acx_minute_plural=$acx_minute_arr['plural'];
|
130 |
+
|
131 |
+
$acx_hour_arr=acx_csma_disp_var_to_show("hour");
|
132 |
+
$acx_hour_singular=$acx_hour_arr['singular'];
|
133 |
+
$acx_hour_plural=$acx_hour_arr['plural'];
|
134 |
+
|
135 |
+
$acx_day_arr=acx_csma_disp_var_to_show("day");
|
136 |
+
$acx_day_singular=$acx_day_arr['singular'];
|
137 |
+
$acx_day_plural=$acx_day_arr['plural'];
|
138 |
+
|
139 |
+
$acx_week_arr=acx_csma_disp_var_to_show("week");
|
140 |
+
$acx_week_singular=$acx_week_arr['singular'];
|
141 |
+
$acx_week_plural=$acx_week_arr['plural'];
|
142 |
+
?>
|
143 |
<div class="inline_block timer_holder">
|
144 |
<div class="timer_box days">
|
145 |
+
<p id="acx_week_disp"><?php echo $acx_week_singular; ?></p>
|
146 |
<ul>
|
147 |
<li id="weeks_0" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
148 |
<li id="weeks_1" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
149 |
</ul>
|
150 |
</div><!-- timer_box -->
|
151 |
<div class="timer_box days">
|
152 |
+
<p id="acx_day_disp"><?php echo $acx_day_singular; ?></p>
|
153 |
<ul>
|
154 |
<li id="days_0" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
155 |
<!-- li id="days_1" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>">0</li>
|
157 |
</ul>
|
158 |
</div><!-- timer_box -->
|
159 |
<div class="timer_box">
|
160 |
+
<p id="acx_hour_disp"><?php echo $acx_hour_singular; ?></p>
|
161 |
<ul>
|
162 |
<li id="hours_0" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
163 |
<li id="hours_1" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
164 |
</ul>
|
165 |
</div><!-- timer_box -->
|
166 |
<div class="timer_box days">
|
167 |
+
<p id="acx_min_disp"><?php echo $acx_minute_singular; ?></p>
|
168 |
<ul>
|
169 |
<li id="minutes_0" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
170 |
<li id="minutes_1" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
171 |
</ul>
|
172 |
</div><!-- timer_box -->
|
173 |
<div class="timer_box last_one">
|
174 |
+
<p id="acx_sec_disp"><?php echo $acx_sec_singular; ?></p>
|
175 |
<ul>
|
176 |
<li id="seconds_0" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
177 |
<li id="seconds_1" style="color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
|
192 |
$acx_csma_custom_html_bottom_temp4 = $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_custom_html_bottom_temp4'];
|
193 |
if($acx_csma_custom_html_bottom_temp4 != "") { ?>
|
194 |
<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_4" id="acx_csma_top_1">
|
195 |
+
<?php echo $acx_csma_custom_html_bottom_temp4 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_temp4); ?>
|
196 |
</div>
|
197 |
<?php } ?>
|
198 |
|
304 |
seconds = (end_date - current);
|
305 |
|
306 |
weeks=Math.floor(seconds / (60 *60 * 24*7));
|
307 |
+
if(weeks < 2)
|
308 |
+
{
|
309 |
+
jQuery('#acx_week_disp').html('<?php echo $acx_week_singular; ?>');
|
310 |
+
}
|
311 |
+
else
|
312 |
+
{
|
313 |
+
jQuery('#acx_week_disp').html('<?php echo $acx_week_plural; ?>');
|
314 |
+
}
|
315 |
seconds -= weeks * 60 * 60 * 24* 7;
|
316 |
|
317 |
days = Math.floor(seconds / (60 * 60 * 24));
|
318 |
+
if(days < 2)
|
319 |
+
{
|
320 |
+
jQuery('#acx_day_disp').html('<?php echo $acx_day_singular; ?>');
|
321 |
+
}
|
322 |
+
else
|
323 |
+
{
|
324 |
+
jQuery('#acx_day_disp').html('<?php echo $acx_day_plural; ?>');
|
325 |
+
}
|
326 |
seconds -= days * 60 * 60 * 24;
|
327 |
|
328 |
hours = Math.floor(seconds / (60 * 60));
|
329 |
+
if(hours < 2)
|
330 |
+
{
|
331 |
+
jQuery('#acx_hour_disp').html('<?php echo $acx_hour_singular; ?>');
|
332 |
+
}
|
333 |
+
else
|
334 |
+
{
|
335 |
+
jQuery('#acx_hour_disp').html('<?php echo $acx_hour_plural; ?>');
|
336 |
+
}
|
337 |
seconds -= hours * 60 * 60;
|
338 |
|
339 |
minutes = Math.floor(seconds / 60);
|
340 |
+
if(minutes < 2)
|
341 |
+
{
|
342 |
+
jQuery('#acx_min_disp').html('<?php echo $acx_minute_singular; ?>');
|
343 |
+
}
|
344 |
+
else
|
345 |
+
{
|
346 |
+
jQuery('#acx_min_disp').html('<?php echo $acx_minute_plural; ?>');
|
347 |
+
}
|
348 |
seconds -= minutes * 60;
|
349 |
+
if(seconds < 2)
|
350 |
+
{
|
351 |
+
jQuery('#acx_sec_disp').html('<?php echo $acx_sec_singular; ?>');
|
352 |
+
}
|
353 |
+
else
|
354 |
+
{
|
355 |
+
jQuery('#acx_sec_disp').html('<?php echo $acx_sec_plural; ?>');
|
356 |
+
}
|
357 |
digit_updater("seconds",seconds,60);
|
358 |
digit_updater("minutes",minutes,60);
|
359 |
digit_updater("hours",hours,60);
|
templates/5/index.php
CHANGED
@@ -13,11 +13,7 @@ if(is_numeric($favicon_attach_id))
|
|
13 |
}
|
14 |
$acx_csma_start_date_time=get_option('acx_csma_start_date_time');
|
15 |
$acx_csma_date_time=get_option('acx_csma_date_time');
|
16 |
-
$acx_csma_appearence_array_5=
|
17 |
-
if(is_serialized($acx_csma_appearence_array_5 ))
|
18 |
-
{
|
19 |
-
$acx_csma_appearence_array_5 = unserialize($acx_csma_appearence_array_5);
|
20 |
-
}
|
21 |
$acx_csma_timestamp=current_time('timestamp');
|
22 |
?>
|
23 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
@@ -59,15 +55,19 @@ do_action('acx_csma_bottom_inside_head_tag',$acx_csma_template_id);
|
|
59 |
<body style="background:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_bgcolor5']; ?>">
|
60 |
<?php
|
61 |
do_action('acx_csma_top_inside_body_tag',$acx_csma_template_id);
|
62 |
-
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_5[$acx_csma_template_id]))
|
63 |
{
|
64 |
-
$
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
|
|
|
|
|
|
|
|
69 |
{
|
70 |
-
$new_class="";
|
71 |
}
|
72 |
?>
|
73 |
<div class="wrapper <?php echo $new_class; ?>">
|
@@ -85,24 +85,51 @@ $new_class="";
|
|
85 |
?>
|
86 |
<img src="<?php echo $logo5_url; ?>" alt="Logo">
|
87 |
<?php } else if($acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
|
88 |
-
{
|
89 |
-
|
|
|
|
|
|
|
90 |
<?php } } ?>
|
91 |
</div><!-- header -->
|
92 |
<div class="inline_block mg_top" style="background:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_inside_bg_color5']; ?>">
|
93 |
-
<h2 style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_title_color5']; ?>"><?php
|
|
|
|
|
|
|
94 |
|
95 |
|
96 |
<?php
|
97 |
$acx_csma_custom_html_top_temp5 = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_custom_html_top_temp5'];
|
98 |
if($acx_csma_custom_html_top_temp5 != "") { ?>
|
99 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_5" id="acx_csma_top_1">
|
100 |
-
<?php echo $acx_csma_custom_html_top_temp5
|
101 |
</div>
|
102 |
<?php } ?>
|
103 |
|
104 |
<?php if($acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_show_timer5']==1)
|
105 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
<div class="inline_block timer_holder">
|
107 |
<!-- Start: The Countdown -->
|
108 |
<div class="custom-container">
|
@@ -110,27 +137,27 @@ $new_class="";
|
|
110 |
<ul id="countdown" class="count_down">
|
111 |
<li>
|
112 |
<div class="weeks" id="week" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_iptext_color5']; ?>">00</div>
|
113 |
-
<div class="textWeeks" id="names" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_head_color5']; ?>"
|
114 |
</li>
|
115 |
|
116 |
<li>
|
117 |
<div class="days" id="day" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_iptext_color5']; ?>">00</div>
|
118 |
-
<div class="textDays" id="names" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_head_color5']; ?>"
|
119 |
</li>
|
120 |
|
121 |
<li>
|
122 |
<div class="hours" id="hour" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_iptext_color5']; ?>">00</div>
|
123 |
-
<div class="textHours" id="names" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_head_color5']; ?>"
|
124 |
</li>
|
125 |
|
126 |
<li>
|
127 |
<div class="minutes" id="minute" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_iptext_color5']; ?>">00</div>
|
128 |
-
<div class="textMinutes" id="names" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_head_color5']; ?>"
|
129 |
</li>
|
130 |
|
131 |
<li>
|
132 |
<div class="seconds" id="second" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_iptext_color5']; ?>">00</div>
|
133 |
-
<div class="textSeconds" id="names" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_head_color5']; ?>"
|
134 |
</li>
|
135 |
|
136 |
</ul> <!-- /#countdown -->
|
@@ -139,10 +166,17 @@ $new_class="";
|
|
139 |
<!-- End: The Countdown -->
|
140 |
</div><!-- timer_holder -->
|
141 |
<?php
|
142 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
<?php if($acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_show_progressbar5']==1)
|
144 |
{?>
|
145 |
-
<div class="pre_loader" style="border: 1px solid <?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_progress_bar_color5'];
|
146 |
<div class="pre_loader_inside" id="pre_loader_inside" style="background:green;position:absolute;top: 0; left: 0; width:0%; height:inherit;">
|
147 |
</div><!-- pre_loader_inside -->
|
148 |
<div class="pre_loader_text" id="pre_loader_text" style=" z-index:10px;top: 0; left: 0; width: 100%; height: 100%; color: black; font-weight: bold; text-align: center;position:absolute;">0%</div><!-- pre_loader_text -->
|
@@ -152,16 +186,27 @@ $new_class="";
|
|
152 |
$acx_csma_custom_html_bottom_temp5 = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_custom_html_bottom_temp5'];
|
153 |
if($acx_csma_custom_html_bottom_temp5 != "") { ?>
|
154 |
<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_5" id="acx_csma_top_1">
|
155 |
-
<?php echo $acx_csma_custom_html_bottom_temp5; ?>
|
156 |
</div>
|
157 |
-
<?php }
|
158 |
|
159 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
|
161 |
</div><!-- inline_block -->
|
162 |
<div class="footer" style="background:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_subscribe_bg_color5']; ?>">
|
163 |
<?php
|
164 |
-
|
165 |
$acx_csma_custom_html_top_sub = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_custom_html_top_sub'];
|
166 |
$acx_csma_custom_html_bottom_sub = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_custom_html_bottom_sub'];
|
167 |
if($acx_csma_custom_html_top_sub != "" || $acx_csma_custom_html_bottom_sub != "" || $acx_csma_show_subscription5 == 1)
|
@@ -170,21 +215,28 @@ $new_class="";
|
|
170 |
{
|
171 |
?>
|
172 |
<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_5" id="acx_csma_top_1">
|
173 |
-
<?php echo $acx_csma_custom_html_top_sub; ?>
|
174 |
</div>
|
175 |
<?php
|
176 |
}
|
177 |
|
178 |
if($acx_csma_show_subscription5 == 1)
|
179 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
?>
|
181 |
<form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']); ?>">
|
182 |
-
<div id="acx_csma_success" name="acx_csma_success"style="display:none;color:white;" ><?php echo $
|
183 |
-
<div id="acx_csma_invalid" name="acx_csma_invalid"style="display:none;color:white;" ><?php echo
|
184 |
<div id="acx_csma_error" style="color:white;"></div>
|
185 |
<input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
|
186 |
<input type="hidden" id="acx_csma_email" name="email" placeholder="Enter your e-mail address" >
|
187 |
-
<input type="button" value="
|
188 |
</form>
|
189 |
<?php
|
190 |
}
|
@@ -193,7 +245,7 @@ $new_class="";
|
|
193 |
{
|
194 |
?>
|
195 |
<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_5" id="acx_csma_top_1">
|
196 |
-
<?php echo $acx_csma_custom_html_bottom_sub; ?>
|
197 |
</div>
|
198 |
<?php
|
199 |
}
|
@@ -225,6 +277,7 @@ $new_class="";
|
|
225 |
</div><!-- footer -->
|
226 |
</div><!-- canvas1000 -->
|
227 |
</div><!-- wrapper -->
|
|
|
228 |
<script>
|
229 |
jQuery(document).ready(function() {
|
230 |
jQuery(window).keydown(function(event){
|
@@ -244,6 +297,7 @@ return false;
|
|
244 |
<?php
|
245 |
if($acx_csma_show_subscription5 == 1)
|
246 |
{
|
|
|
247 |
?>
|
248 |
var acx_csma_form_status=1;
|
249 |
function acx_csma_validate_email()
|
@@ -261,7 +315,7 @@ function acx_csma_validate_email()
|
|
261 |
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
262 |
document.getElementById('acx_csma_email').type = 'email';
|
263 |
jQuery("#acx_csma_email").show();
|
264 |
-
document.getElementById('acx_csma_submit').value="
|
265 |
acx_csma_form_status=2;
|
266 |
return false;
|
267 |
}
|
@@ -286,7 +340,7 @@ function acx_csma_validate_email()
|
|
286 |
{
|
287 |
jQuery("#acx_csma_invalid").hide();
|
288 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
289 |
-
document.getElementById('acx_csma_submit').value="
|
290 |
jQuery("#acx_csma_submit").show();
|
291 |
acx_csma_form_status=1;
|
292 |
|
@@ -319,7 +373,7 @@ function acx_csma_validate_email()
|
|
319 |
{
|
320 |
jQuery("#acx_csma_success").hide();
|
321 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
322 |
-
document.getElementById('acx_csma_submit').value="
|
323 |
jQuery("#acx_csma_submit").show();
|
324 |
acx_csma_form_status=1;
|
325 |
|
@@ -336,7 +390,7 @@ function acx_csma_validate_email()
|
|
336 |
jQuery("#acx_csma_error").html('');
|
337 |
jQuery("#acx_csma_error").hide();
|
338 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
339 |
-
document.getElementById('acx_csma_submit').value="
|
340 |
jQuery("#acx_csma_submit").show();
|
341 |
acx_csma_form_status=1;
|
342 |
|
@@ -395,17 +449,56 @@ function updateCounter()
|
|
395 |
seconds = (end_date - current);
|
396 |
|
397 |
weeks=Math.floor(seconds / (60 *60 * 24*7));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
398 |
seconds -= weeks * 60 * 60 * 24* 7;
|
399 |
|
400 |
days = Math.floor(seconds / (60 * 60 * 24));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
seconds -= days * 60 * 60 * 24;
|
402 |
|
403 |
hours = Math.floor(seconds / (60 * 60));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
404 |
seconds -= hours * 60 * 60;
|
405 |
|
406 |
minutes = Math.floor(seconds / 60);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
seconds -= minutes * 60;
|
408 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
409 |
document.getElementById("second").innerHTML = seconds;
|
410 |
document.getElementById("minute").innerHTML = minutes;
|
411 |
document.getElementById("hour").innerHTML = hours;
|
13 |
}
|
14 |
$acx_csma_start_date_time=get_option('acx_csma_start_date_time');
|
15 |
$acx_csma_date_time=get_option('acx_csma_date_time');
|
16 |
+
$acx_csma_appearence_array_5=acx_csma_get_db_array_value();
|
|
|
|
|
|
|
|
|
17 |
$acx_csma_timestamp=current_time('timestamp');
|
18 |
?>
|
19 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
55 |
<body style="background:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_bgcolor5']; ?>">
|
56 |
<?php
|
57 |
do_action('acx_csma_top_inside_body_tag',$acx_csma_template_id);
|
58 |
+
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_5[$acx_csma_template_id]))
|
59 |
{
|
60 |
+
if($acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
|
61 |
+
{
|
62 |
+
$new_class="text_logo";
|
63 |
+
} else
|
64 |
+
{
|
65 |
+
$new_class="";
|
66 |
+
}
|
67 |
+
}
|
68 |
+
else
|
69 |
{
|
70 |
+
$new_class="";
|
71 |
}
|
72 |
?>
|
73 |
<div class="wrapper <?php echo $new_class; ?>">
|
85 |
?>
|
86 |
<img src="<?php echo $logo5_url; ?>" alt="Logo">
|
87 |
<?php } else if($acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
|
88 |
+
{
|
89 |
+
$acx_csma_logo_text5 = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_logo_text5'];
|
90 |
+
$acx_csma_logo_text5 = acx_csma_text_after_save_hook_fn($acx_csma_logo_text5);
|
91 |
+
?>
|
92 |
+
<div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_logo_text_color5']; ?>"><?php echo $acx_csma_logo_text5; ?></div>
|
93 |
<?php } } ?>
|
94 |
</div><!-- header -->
|
95 |
<div class="inline_block mg_top" style="background:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_inside_bg_color5']; ?>">
|
96 |
+
<h2 style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_title_color5']; ?>"><?php
|
97 |
+
$acx_csma_title5 = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_title5'];
|
98 |
+
$acx_csma_title5 = acx_csma_text_after_save_hook_fn($acx_csma_title5);
|
99 |
+
echo $acx_csma_title5; ?></h2>
|
100 |
|
101 |
|
102 |
<?php
|
103 |
$acx_csma_custom_html_top_temp5 = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_custom_html_top_temp5'];
|
104 |
if($acx_csma_custom_html_top_temp5 != "") { ?>
|
105 |
<div class="acx_csma_content_div acx_csma_top acx_csma_top_5" id="acx_csma_top_1">
|
106 |
+
<?php echo $acx_csma_custom_html_top_temp5 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp5);?>
|
107 |
</div>
|
108 |
<?php } ?>
|
109 |
|
110 |
<?php if($acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_show_timer5']==1)
|
111 |
+
{
|
112 |
+
|
113 |
+
$acx_second_arr=acx_csma_disp_var_to_show("second");
|
114 |
+
$acx_sec_singular=$acx_second_arr['singular'];
|
115 |
+
$acx_sec_plural=$acx_second_arr['plural'];
|
116 |
+
|
117 |
+
$acx_minute_arr=acx_csma_disp_var_to_show("minute");
|
118 |
+
$acx_minute_singular=$acx_minute_arr['singular'];
|
119 |
+
$acx_minute_plural=$acx_minute_arr['plural'];
|
120 |
+
|
121 |
+
$acx_hour_arr=acx_csma_disp_var_to_show("hour");
|
122 |
+
$acx_hour_singular=$acx_hour_arr['singular'];
|
123 |
+
$acx_hour_plural=$acx_hour_arr['plural'];
|
124 |
+
|
125 |
+
$acx_day_arr=acx_csma_disp_var_to_show("day");
|
126 |
+
$acx_day_singular=$acx_day_arr['singular'];
|
127 |
+
$acx_day_plural=$acx_day_arr['plural'];
|
128 |
+
|
129 |
+
$acx_week_arr=acx_csma_disp_var_to_show("week");
|
130 |
+
$acx_week_singular=$acx_week_arr['singular'];
|
131 |
+
$acx_week_plural=$acx_week_arr['plural'];
|
132 |
+
?>
|
133 |
<div class="inline_block timer_holder">
|
134 |
<!-- Start: The Countdown -->
|
135 |
<div class="custom-container">
|
137 |
<ul id="countdown" class="count_down">
|
138 |
<li>
|
139 |
<div class="weeks" id="week" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_iptext_color5']; ?>">00</div>
|
140 |
+
<div class="textWeeks" id="names" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_head_color5']; ?>"><?php echo $acx_week_singular; ?></div>
|
141 |
</li>
|
142 |
|
143 |
<li>
|
144 |
<div class="days" id="day" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_iptext_color5']; ?>">00</div>
|
145 |
+
<div class="textDays" id="names" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_head_color5']; ?>"><?php echo $acx_day_singular; ?></div>
|
146 |
</li>
|
147 |
|
148 |
<li>
|
149 |
<div class="hours" id="hour" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_iptext_color5']; ?>">00</div>
|
150 |
+
<div class="textHours" id="names" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_head_color5']; ?>"><?php echo $acx_hour_singular; ?></div>
|
151 |
</li>
|
152 |
|
153 |
<li>
|
154 |
<div class="minutes" id="minute" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_iptext_color5']; ?>">00</div>
|
155 |
+
<div class="textMinutes" id="names" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_head_color5']; ?>"><?php echo $acx_minute_singular; ?></div>
|
156 |
</li>
|
157 |
|
158 |
<li>
|
159 |
<div class="seconds" id="second" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_iptext_color5']; ?>">00</div>
|
160 |
+
<div class="textSeconds" id="names" style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_timer_head_color5']; ?>"><?php echo $acx_sec_singular; ?></div>
|
161 |
</li>
|
162 |
|
163 |
</ul> <!-- /#countdown -->
|
166 |
<!-- End: The Countdown -->
|
167 |
</div><!-- timer_holder -->
|
168 |
<?php
|
169 |
+
}
|
170 |
+
$acx_csma_show_subscription5 = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_show_subscription5'];
|
171 |
+
$acx_cls = '';
|
172 |
+
if($acx_csma_show_subscription5 == 0)
|
173 |
+
{
|
174 |
+
$acx_cls = 'margin-bottom: 25px; ';
|
175 |
+
}
|
176 |
+
?>
|
177 |
<?php if($acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_show_progressbar5']==1)
|
178 |
{?>
|
179 |
+
<div class="pre_loader" style="<?php echo $acx_cls; ?>border: 1px solid <?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_progress_bar_color5']; ?>;clear:both;">
|
180 |
<div class="pre_loader_inside" id="pre_loader_inside" style="background:green;position:absolute;top: 0; left: 0; width:0%; height:inherit;">
|
181 |
</div><!-- pre_loader_inside -->
|
182 |
<div class="pre_loader_text" id="pre_loader_text" style=" z-index:10px;top: 0; left: 0; width: 100%; height: 100%; color: black; font-weight: bold; text-align: center;position:absolute;">0%</div><!-- pre_loader_text -->
|
186 |
$acx_csma_custom_html_bottom_temp5 = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_custom_html_bottom_temp5'];
|
187 |
if($acx_csma_custom_html_bottom_temp5 != "") { ?>
|
188 |
<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_5" id="acx_csma_top_1">
|
189 |
+
<?php echo $acx_csma_custom_html_bottom_temp5 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_temp5); ?>
|
190 |
</div>
|
191 |
+
<?php }
|
192 |
|
193 |
+
if($acx_csma_show_subscription5 == 1)
|
194 |
+
{
|
195 |
+
$acx_csma_subscribe_main_title5 = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_subscribe_main_title5'];
|
196 |
+
$acx_csma_subscribe_main_title5 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_main_title5);
|
197 |
+
$acx_csma_subscribe_title5 = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_subscribe_title5'];
|
198 |
+
$acx_csma_subscribe_title5 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_title5);
|
199 |
+
?>
|
200 |
+
|
201 |
+
<h3 style="color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_launch_title_color5']; ?>;clear:both;"><?php echo $acx_csma_subscribe_main_title5; ?> <br/> <?php echo $acx_csma_subscribe_title5; ?></h3>
|
202 |
+
<?php
|
203 |
+
}
|
204 |
+
?>
|
205 |
|
206 |
</div><!-- inline_block -->
|
207 |
<div class="footer" style="background:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_subscribe_bg_color5']; ?>">
|
208 |
<?php
|
209 |
+
|
210 |
$acx_csma_custom_html_top_sub = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_custom_html_top_sub'];
|
211 |
$acx_csma_custom_html_bottom_sub = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_custom_html_bottom_sub'];
|
212 |
if($acx_csma_custom_html_top_sub != "" || $acx_csma_custom_html_bottom_sub != "" || $acx_csma_show_subscription5 == 1)
|
215 |
{
|
216 |
?>
|
217 |
<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_5" id="acx_csma_top_1">
|
218 |
+
<?php echo $acx_csma_custom_html_top_sub = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_sub); ?>
|
219 |
</div>
|
220 |
<?php
|
221 |
}
|
222 |
|
223 |
if($acx_csma_show_subscription5 == 1)
|
224 |
{
|
225 |
+
$acx_csma_subscribe_success5 = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_subscribe_success5'];
|
226 |
+
$acx_csma_subscribe_success5 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_success5);
|
227 |
+
$acx_csma_subscribe_invalid5 = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_subscribe_invalid5'];
|
228 |
+
$acx_csma_subscribe_invalid5 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_invalid5);
|
229 |
+
$acx_subs_next_arr=acx_csma_disp_var_to_show("next");
|
230 |
+
$acx_next_singular=$acx_subs_next_arr['singular'];
|
231 |
+
|
232 |
?>
|
233 |
<form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']); ?>">
|
234 |
+
<div id="acx_csma_success" name="acx_csma_success"style="display:none;color:white;" ><?php echo $acx_csma_subscribe_success5; ?></div>
|
235 |
+
<div id="acx_csma_invalid" name="acx_csma_invalid"style="display:none;color:white;" ><?php echo$acx_csma_subscribe_invalid5; ?></div>
|
236 |
<div id="acx_csma_error" style="color:white;"></div>
|
237 |
<input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
|
238 |
<input type="hidden" id="acx_csma_email" name="email" placeholder="Enter your e-mail address" >
|
239 |
+
<input type="button" value="<?php echo $acx_next_singular; ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
|
240 |
</form>
|
241 |
<?php
|
242 |
}
|
245 |
{
|
246 |
?>
|
247 |
<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_5" id="acx_csma_top_1">
|
248 |
+
<?php echo $acx_csma_custom_html_bottom_sub = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_sub); ?>
|
249 |
</div>
|
250 |
<?php
|
251 |
}
|
277 |
</div><!-- footer -->
|
278 |
</div><!-- canvas1000 -->
|
279 |
</div><!-- wrapper -->
|
280 |
+
|
281 |
<script>
|
282 |
jQuery(document).ready(function() {
|
283 |
jQuery(window).keydown(function(event){
|
297 |
<?php
|
298 |
if($acx_csma_show_subscription5 == 1)
|
299 |
{
|
300 |
+
$acx_csma_subscribe_btn_text5 = $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_subscribe_btn_text5'];
|
301 |
?>
|
302 |
var acx_csma_form_status=1;
|
303 |
function acx_csma_validate_email()
|
315 |
document.getElementById('acx_csma_name_hidden').type = 'hidden';
|
316 |
document.getElementById('acx_csma_email').type = 'email';
|
317 |
jQuery("#acx_csma_email").show();
|
318 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_subscribe_btn_text5; ?>";
|
319 |
acx_csma_form_status=2;
|
320 |
return false;
|
321 |
}
|
340 |
{
|
341 |
jQuery("#acx_csma_invalid").hide();
|
342 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
343 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
|
344 |
jQuery("#acx_csma_submit").show();
|
345 |
acx_csma_form_status=1;
|
346 |
|
373 |
{
|
374 |
jQuery("#acx_csma_success").hide();
|
375 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
376 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
|
377 |
jQuery("#acx_csma_submit").show();
|
378 |
acx_csma_form_status=1;
|
379 |
|
390 |
jQuery("#acx_csma_error").html('');
|
391 |
jQuery("#acx_csma_error").hide();
|
392 |
document.getElementById('acx_csma_name_hidden').type = 'text';
|
393 |
+
document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
|
394 |
jQuery("#acx_csma_submit").show();
|
395 |
acx_csma_form_status=1;
|
396 |
|
449 |
seconds = (end_date - current);
|
450 |
|
451 |
weeks=Math.floor(seconds / (60 *60 * 24*7));
|
452 |
+
if(weeks < 2)
|
453 |
+
{
|
454 |
+
jQuery('.textWeeks').html('<?php echo $acx_week_singular; ?>');
|
455 |
+
}
|
456 |
+
else
|
457 |
+
{
|
458 |
+
jQuery('.textWeeks').html('<?php echo $acx_week_plural; ?>');
|
459 |
+
}
|
460 |
seconds -= weeks * 60 * 60 * 24* 7;
|
461 |
|
462 |
days = Math.floor(seconds / (60 * 60 * 24));
|
463 |
+
if(days < 2)
|
464 |
+
{
|
465 |
+
jQuery('.textDays').html('<?php echo $acx_day_singular; ?>');
|
466 |
+
}
|
467 |
+
else
|
468 |
+
{
|
469 |
+
jQuery('.textDays').html('<?php echo $acx_day_plural; ?>');
|
470 |
+
}
|
471 |
seconds -= days * 60 * 60 * 24;
|
472 |
|
473 |
hours = Math.floor(seconds / (60 * 60));
|
474 |
+
if(hours < 2)
|
475 |
+
{
|
476 |
+
jQuery('.textHours').html('<?php echo $acx_hour_singular; ?>');
|
477 |
+
}
|
478 |
+
else
|
479 |
+
{
|
480 |
+
jQuery('.textHours').html('<?php echo $acx_hour_plural; ?>');
|
481 |
+
}
|
482 |
seconds -= hours * 60 * 60;
|
483 |
|
484 |
minutes = Math.floor(seconds / 60);
|
485 |
+
if(minutes < 2)
|
486 |
+
{
|
487 |
+
jQuery('.textMinutes').html('<?php echo $acx_minute_singular; ?>');
|
488 |
+
}
|
489 |
+
else
|
490 |
+
{
|
491 |
+
jQuery('.textMinutes').html('<?php echo $acx_minute_plural; ?>');
|
492 |
+
}
|
493 |
seconds -= minutes * 60;
|
494 |
+
if(seconds < 2)
|
495 |
+
{
|
496 |
+
jQuery('.textSeconds').html('<?php echo $acx_sec_singular; ?>');
|
497 |
+
}
|
498 |
+
else
|
499 |
+
{
|
500 |
+
jQuery('.textSeconds').html('<?php echo $acx_sec_plural; ?>');
|
501 |
+
}
|
502 |
document.getElementById("second").innerHTML = seconds;
|
503 |
document.getElementById("minute").innerHTML = minutes;
|
504 |
document.getElementById("hour").innerHTML = hours;
|