Under Construction / Maintenance Mode from Acurax - Version 1.1

Version Description

  • Aug 26, 2015
  • Code Optimization
  • Now you can have text instead of Logo
  • Fixed time zone related issues
  • Fixed count down timer issues
  • Security Improvements
  • Compatibility Fixes
  • Stable Release

=

Download this release

Release Info

Developer Acurax
Plugin Icon 128x128 Under Construction / Maintenance Mode from Acurax
Version 1.1
Comparing to
See all releases

Code changes from version 1.0 to 1.1

acx_csma.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Coming Soon / Maintenance Mode From Acurax
4
  Plugin URI: http://www.acurax.com/Products/
5
  Description: Simple and the best Coming Soon or Maintenance Mode Plugin Which Supports Practically Unlimited Responsive Designs.
6
  Author: Acurax
7
- Version: 1.0
8
  Author URI: http://www.acurax.com
9
  License: GPLv2 or later
10
  */
@@ -26,6 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26
  ?>
27
  <?php
28
  /*************** Admin function ***************/
 
29
  define("ACX_CSMA_TOTAL_THEMES",5);
30
  define("ACX_CSMA_BASE_LOCATION",plugin_dir_url( __FILE__ ));
31
  include_once('function.php');
@@ -72,4 +73,23 @@ include_once('includes/hook_functions.php');
72
  {
73
  add_action('admin_menu', 'acx_csma_admin_actions');
74
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  ?>
4
  Plugin URI: http://www.acurax.com/Products/
5
  Description: Simple and the best Coming Soon or Maintenance Mode Plugin Which Supports Practically Unlimited Responsive Designs.
6
  Author: Acurax
7
+ Version: 1.1
8
  Author URI: http://www.acurax.com
9
  License: GPLv2 or later
10
  */
26
  ?>
27
  <?php
28
  /*************** Admin function ***************/
29
+ define("ACX_CSMA_CURRENT_VERSION",1.1);
30
  define("ACX_CSMA_TOTAL_THEMES",5);
31
  define("ACX_CSMA_BASE_LOCATION",plugin_dir_url( __FILE__ ));
32
  include_once('function.php');
73
  {
74
  add_action('admin_menu', 'acx_csma_admin_actions');
75
  }
76
+
77
+ $acx_csma_version=get_option('acx_csma_version');
78
+ if($acx_csma_version =='' || $acx_csma_version < ACX_CSMA_CURRENT_VERSION)
79
+ {
80
+ add_action('admin_head','acx_csma_migration');
81
+ }
82
+ function acx_csma_migration()
83
+ {
84
+ $acx_csma_start_timestamp_from = get_option('acx_csma_start_date_time');
85
+ $acx_csma_cur_date_time_from=get_option('acx_csma_date_time');
86
+ $acx_csma_wp_time= current_time('timestamp');
87
+ $acx_csma_server_time=time();
88
+ $diff=$acx_csma_wp_time-$acx_csma_server_time;
89
+ $acx_csma_start_timestamp = $acx_csma_start_timestamp_from + ($diff);
90
+ $acx_csma_date_time = $acx_csma_cur_date_time_from + ($diff);
91
+ update_option('acx_csma_start_date_time',$acx_csma_start_timestamp);
92
+ update_option('acx_csma_date_time',$acx_csma_date_time);
93
+ update_option('acx_csma_version',ACX_CSMA_CURRENT_VERSION);
94
+ }
95
  ?>
css/acx_csma_box.css CHANGED
@@ -147,3 +147,25 @@
147
  padding: 4px;
148
  text-decoration: none;
149
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  padding: 4px;
148
  text-decoration: none;
149
  }
150
+ /* ------------------------------------------------------------------ */
151
+ .acx_csmap_q_and_a_inside .acx_csma_logo_main{
152
+ width:200px;
153
+ float:left;
154
+ }
155
+ .acx_csmap_q_and_a_inside .acx_csma_logo_block{
156
+ clear:both;
157
+ }
158
+ .acx_csmap_q_and_a_inside input.acx_csma_logo {
159
+ margin: 2px 0 0 !important;
160
+ padding: 0 !important;
161
+ width: 6px !important;
162
+ }
163
+ .acx_csmap_q_and_a_inside p{
164
+ display: inline-block;
165
+ margin: 0 !important;
166
+ padding-left: 11px;
167
+ }
168
+ .acx_csmap_q_and_a_inside table{
169
+ height: 24px; width: 234px;
170
+ }
171
+
function.php CHANGED
@@ -20,7 +20,7 @@ function acx_csma_colorpicker_scripts()
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))
@@ -67,7 +67,7 @@ function acx_csma_color_pick()
67
  }
68
  if($acx_csma_page == "Acurax-Coming-Soon-Maintenance-Mode-Settings")
69
  {
70
- add_action('admin_head','acx_csma_color_pick');
71
  }
72
 
73
  $acx_csma_template=get_option('acx_csma_template');
@@ -96,12 +96,7 @@ else
96
  if($acx_csma_display_template == true)
97
  {
98
  $acx_csma_max_date = get_option('acx_csma_date_time');
99
- $acx_csma_current_date_time=date("Y/m/d H:i");
100
- $acx_csma_current_date_time1 =explode(" ",$acx_csma_current_date_time);
101
- $acx_csma_current_date=explode("/",$acx_csma_current_date_time1[0]);
102
- $acx_csma_current_time=explode(":",$acx_csma_current_date_time1[1]);
103
- $acx_csma_timestamp=mktime($acx_csma_current_time[0],$acx_csma_current_time[1],0,$acx_csma_current_date[1],$acx_csma_current_date[2],$acx_csma_current_date[0]);//mktime(hour,minute,second,month,day,year);
104
-
105
  $acx_csma_auto_launch=get_option('acx_csma_auto_launch');
106
 
107
  if($acx_csma_timestamp > $acx_csma_max_date)
@@ -170,6 +165,16 @@ function acx_csma_plugin_activation()
170
  }
171
  if($acx_csma_display_template == true)
172
  {
 
 
 
 
 
 
 
 
 
 
173
  include_once($acx_csma_template_path);
174
  exit;
175
  }
@@ -185,6 +190,16 @@ function acx_csma_template_preview()
185
  $acx_csma_preview=$_GET['acx_csma_preview'];
186
  if(in_array($acx_csma_preview,$acx_csma_temp_array))
187
  {
 
 
 
 
 
 
 
 
 
 
188
  include_once("templates/".$acx_csma_preview."/index.php");
189
  exit;
190
  }
@@ -268,10 +283,19 @@ function acx_csma_quick_request_submit_callback()
268
  $acx_name = $_POST['acx_name'];
269
  $acx_email = $_POST['acx_email'];
270
  $acx_phone = $_POST['acx_phone'];
 
271
  $acx_weburl = $_POST['acx_weburl'];
272
  $acx_subject = stripslashes($_POST['acx_subject']);
273
  $acx_question = stripslashes($_POST['acx_question']);
274
- if($acx_name == "" || $acx_email == "" || $acx_weburl == "" || $acx_subject == "" || $acx_question == "")
 
 
 
 
 
 
 
 
275
  {
276
  echo 2;
277
  }
@@ -353,7 +377,20 @@ function acx_csma_subscribe_email()
353
  $timestamp=$_POST['timestamp'];
354
  }
355
  else{
356
- $timestamp="";
 
 
 
 
 
 
 
 
 
 
 
 
 
357
  }
358
  $acx_csma_subscribe_details=get_option('acx_csma_subscribe_user_details');
359
  if($acx_csma_subscribe_details != "")
@@ -381,7 +418,7 @@ function acx_csma_subscribe_email()
381
  else{
382
  $acx_csma_subscribe_details[]= array (
383
  'name'=> $name,
384
- 'email' => $email,
385
  'ip' => $ip,
386
  'timestamp' => $timestamp
387
  );
@@ -391,7 +428,7 @@ function acx_csma_subscribe_email()
391
  }
392
  update_option('acx_csma_subscribe_user_details',$acx_csma_subscribe_details);
393
  echo "success";
394
- }
395
  die(); // this is required to return a proper result
396
  }
397
  add_action( 'wp_ajax_nopriv_acx_csma_subscribe_email', 'acx_csma_subscribe_email' );
@@ -415,8 +452,9 @@ function acx_csma_subscribe_ajax()
415
  unset($acx_csma_subscribe_details[$item]['ip']);
416
  }
417
  if(ISSET($value['timestamp']))
418
- {
419
- $acx_csma_subscribe_details[$item]['timestamp']=date( 'Y-m-d H:i:s', $acx_csma_subscribe_details[$item]['timestamp'] );
 
420
  }
421
  }
422
  foreach ($acx_csma_subscribe_details as $item=> $value) {
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))
67
  }
68
  if($acx_csma_page == "Acurax-Coming-Soon-Maintenance-Mode-Settings")
69
  {
70
+ add_action('admin_head','acx_csma_color_pick');
71
  }
72
 
73
  $acx_csma_template=get_option('acx_csma_template');
96
  if($acx_csma_display_template == true)
97
  {
98
  $acx_csma_max_date = get_option('acx_csma_date_time');
99
+ $acx_csma_timestamp=current_time('timestamp');
 
 
 
 
 
100
  $acx_csma_auto_launch=get_option('acx_csma_auto_launch');
101
 
102
  if($acx_csma_timestamp > $acx_csma_max_date)
165
  }
166
  if($acx_csma_display_template == true)
167
  {
168
+ $protocol = "HTTP/1.0";
169
+ if ( "HTTP/1.1" == $_SERVER["SERVER_PROTOCOL"] )
170
+ $protocol = "HTTP/1.1";
171
+ header( "$protocol 503 Service Unavailable", true, 503 );
172
+ $end_time = get_option('acx_csma_date_time');
173
+ if($end_time != "")
174
+ {
175
+ $end_time = date_i18n("D, j M Y H:i:s e", $end_time);
176
+ header( "Retry-After: $end_time" );
177
+ }
178
  include_once($acx_csma_template_path);
179
  exit;
180
  }
190
  $acx_csma_preview=$_GET['acx_csma_preview'];
191
  if(in_array($acx_csma_preview,$acx_csma_temp_array))
192
  {
193
+ $protocol = "HTTP/1.0";
194
+ if ( "HTTP/1.1" == $_SERVER["SERVER_PROTOCOL"] )
195
+ $protocol = "HTTP/1.1";
196
+ header( "$protocol 503 Service Unavailable", true, 503 );
197
+ $end_time = get_option('acx_csma_date_time');
198
+ if($end_time != "")
199
+ {
200
+ $end_time = date_i18n("D, j M Y H:i:s e", $end_time);
201
+ header( "Retry-After: $end_time" );
202
+ }
203
  include_once("templates/".$acx_csma_preview."/index.php");
204
  exit;
205
  }
283
  $acx_name = $_POST['acx_name'];
284
  $acx_email = $_POST['acx_email'];
285
  $acx_phone = $_POST['acx_phone'];
286
+ $acx_csma_es = $_POST['acx_csma_es'];
287
  $acx_weburl = $_POST['acx_weburl'];
288
  $acx_subject = stripslashes($_POST['acx_subject']);
289
  $acx_question = stripslashes($_POST['acx_question']);
290
+ if (!wp_verify_nonce($acx_csma_es,'acx_csma_es'))
291
+ {
292
+ $acx_csma_es == "";
293
+ }
294
+ if(!current_user_can('manage_options'))
295
+ {
296
+ $acx_csma_es == "";
297
+ }
298
+ if($acx_csma_es == "" || $acx_name == "" || $acx_email == "" || $acx_weburl == "" || $acx_subject == "" || $acx_question == "")
299
  {
300
  echo 2;
301
  }
377
  $timestamp=$_POST['timestamp'];
378
  }
379
  else{
380
+ $timestamp = "";
381
+ }
382
+ $acx_csma_subscribe_es = $_POST['acx_csma_subscribe_es'];
383
+ if (!wp_verify_nonce($acx_csma_subscribe_es,'acx_csma_subscribe_es'))
384
+ {
385
+ $acx_csma_subscribe_es == "";
386
+ }
387
+ if(!current_user_can('manage_options'))
388
+ {
389
+ $acx_csma_subscribe_es == "";
390
+ }
391
+ if($acx_csma_subscribe_es ="")
392
+ {
393
+ echo 2;
394
  }
395
  $acx_csma_subscribe_details=get_option('acx_csma_subscribe_user_details');
396
  if($acx_csma_subscribe_details != "")
418
  else{
419
  $acx_csma_subscribe_details[]= array (
420
  'name'=> $name,
421
+ 'email' => sanitize_email($email),
422
  'ip' => $ip,
423
  'timestamp' => $timestamp
424
  );
428
  }
429
  update_option('acx_csma_subscribe_user_details',$acx_csma_subscribe_details);
430
  echo "success";
431
+ }
432
  die(); // this is required to return a proper result
433
  }
434
  add_action( 'wp_ajax_nopriv_acx_csma_subscribe_email', 'acx_csma_subscribe_email' );
452
  unset($acx_csma_subscribe_details[$item]['ip']);
453
  }
454
  if(ISSET($value['timestamp']))
455
+ {
456
+ $format="Y-m-d H:i:s";
457
+ $acx_csma_subscribe_details[$item]['timestamp']=date_i18n($format, $acx_csma_subscribe_details[$item]['timestamp']);
458
  }
459
  }
460
  foreach ($acx_csma_subscribe_details as $item=> $value) {
includes/acx_csma_admin.php CHANGED
@@ -35,11 +35,13 @@ if($acx_csma_appearence_array != "")
35
  $acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
36
  }
37
  }
38
-
39
  //set default values to database
40
  //******************template 1**********************
41
  $acx_csma_background_image1= ACX_CSMA_BASE_LOCATION . 'templates/1/images/body_bg.jpg';
42
  $acx_csma_logo1=ACX_CSMA_BASE_LOCATION . 'templates/1/images/logo.png';
 
 
 
43
  $acx_csma_title1="Something New Is Coming";
44
  $acx_csma_title_color1="#ffffff";
45
  $acx_csma_subtitle_text1="We are Working on Our Website";
@@ -70,6 +72,9 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_set_default_template_1');
70
  // *******************template2*********************
71
  $acx_csma_bg_color2="#e4e4e4";
72
  $acx_csma_logo2= ACX_CSMA_BASE_LOCATION . 'templates/2/images/logo.png';
 
 
 
73
  $acx_csma_title2="Hello";
74
  $acx_csma_title_color2="#000000";
75
  $acx_csma_subtitle_text2="We are Coming Very Soon";
@@ -92,6 +97,9 @@ $acx_csma_linkedin_link2="";
92
  acx_csma_hook_function('acx_csma_hook_mainoptions_set_default_template_2');
93
  //*******************template 3*******************
94
  $acx_csma_logo3= ACX_CSMA_BASE_LOCATION . 'templates/3/images/logo.png';
 
 
 
95
  $acx_csma_title3="Hello";
96
  $acx_csma_title_color3="#ffffff";
97
  $acx_csma_subtitle_text3="We are Coming Very Soon";
@@ -124,6 +132,9 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_set_default_template_3');
124
  // ******************template 4*******************
125
  $acx_csma_background_image4 = ACX_CSMA_BASE_LOCATION . 'templates/4/images/body_bg.jpg';
126
  $acx_csma_logo4 = ACX_CSMA_BASE_LOCATION . 'templates/4/images/logo.png';
 
 
 
127
  $acx_csma_inside_bg_color4="#ebebeb";
128
  $acx_csma_title4="Our Website is Under Construction";
129
  $acx_csma_custom_html_top_temp4="";
@@ -141,6 +152,9 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_set_default_template_4');
141
  //*******************template 5********************
142
  $acx_csma_bgcolor5="#e9eaec";
143
  $acx_csma_logo5= ACX_CSMA_BASE_LOCATION . 'templates/5/images/logo.png';
 
 
 
144
  $acx_csma_inside_bg_color5="#f5f5f5";
145
  $acx_csma_title5="Our Website is Under Construction";
146
  $acx_csma_custom_html_top_temp5="";
@@ -163,126 +177,141 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_set_default_template_5');
163
  if($acx_csma_appearence_array=="" || !is_array($acx_csma_appearence_array))
164
  {
165
  $acx_csma_appearence_array['1'] = array(
166
- 'acx_csma_background_image1'=>$acx_csma_background_image1,
167
- 'acx_csma_logo1'=>$acx_csma_logo1,
168
- 'acx_csma_title1'=>$acx_csma_title1,
169
- 'acx_csma_title_color1'=>$acx_csma_title_color1,
170
- 'acx_csma_subtitle_text1'=>$acx_csma_subtitle_text1,
171
- 'acx_csma_subtitle_color1'=>$acx_csma_subtitle_color1,
 
 
 
172
  'acx_csma_custom_html_top_temp1'=>$acx_csma_custom_html_top_temp1,
173
- 'acx_csma_inside_bg_color1'=>$acx_csma_inside_bg_color1,
174
- 'acx_csma_inside_title1'=>$acx_csma_inside_title1,
175
- 'acx_csma_inside_title_color1'=>$acx_csma_inside_title_color1,
176
  'acx_csma_custom_html_bottom_temp1'=>$acx_csma_custom_html_bottom_temp1,
177
- 'acx_csma_show_timer1'=>$acx_csma_show_timer1,
178
- 'acx_csma_timer_bg_color1'=>$acx_csma_timer_bg_color1,
179
- 'acx_csma_timer_iptext_color1'=>$acx_csma_timer_iptext_color1,
180
- 'acx_csma_timer_head_color1'=>$acx_csma_timer_head_color1,
181
- 'acx_csma_subscribe_bg_color1'=>$acx_csma_subscribe_bg_color1,
182
- 'acx_csma_subscribe_btn_text1'=>$acx_csma_subscribe_btn_text1,
183
- 'acx_csma_subscribe_btn_text_color1'=>$acx_csma_subscribe_btn_text_color1,
184
- 'acx_csma_subscribe_btn_color1'=>$acx_csma_subscribe_btn_color1,
185
- 'acx_csma_subscribe_btn_hover_color1'=>$acx_csma_subscribe_btn_hover_color1,
186
- 'acx_csma_subscribe_btn_hover_bgcolor1'=>$acx_csma_subscribe_btn_hover_bgcolor1,
187
- 'acx_csma_subscribe_title1'=>$acx_csma_subscribe_title1,
188
- 'acx_csma_subscribe_title_color1'=>$acx_csma_subscribe_title_color1,
189
- 'acx_csma_subscribe_success1'=>$acx_csma_subscribe_success1,
190
- 'acx_csma_subscribe_invalid1'=>$acx_csma_subscribe_invalid1,
191
- 'acx_csma_footer_bgcolor1'=>$acx_csma_footer_bgcolor1,
192
- 'acx_csma_footer_text1'=>$acx_csma_footer_text1,
193
- 'acx_csma_footer_text_color1'=>$acx_csma_footer_text_color1
194
  );
195
  $acx_csma_appearence_array['2'] = array(
196
- 'acx_csma_bg_color2'=>$acx_csma_bg_color2,
197
- 'acx_csma_logo2'=>$acx_csma_logo2,
198
- 'acx_csma_title2'=>$acx_csma_title2,
199
- 'acx_csma_title_color2'=>$acx_csma_title_color2,
200
- 'acx_csma_subtitle_text2'=>$acx_csma_subtitle_text2,
201
- 'acx_csma_subtitle_color2'=>$acx_csma_subtitle_color2,
202
- 'acx_csma_inside_bg_color2'=>$acx_csma_inside_bg_color2,
203
- 'acx_csma_timer_title2'=>$acx_csma_timer_title2,
204
- 'acx_csma_subscribe_btn_color2'=>$acx_csma_subscribe_btn_color2,
205
- 'acx_csma_subscribe_success2'=>$acx_csma_subscribe_success2,
206
- 'acx_csma_subscribe_invalid2'=>$acx_csma_subscribe_invalid2,
207
- 'acx_csma_timer_input_bg_color2'=>$acx_csma_timer_input_bg_color2,
208
- 'acx_csma_timer_iptext_color2'=>$acx_csma_timer_iptext_color2,
209
- 'acx_csma_timer_head_color2'=>$acx_csma_timer_head_color2,
 
 
 
210
  'acx_csma_custom_html_top_temp2'=>$acx_csma_custom_html_top_temp2,
211
- 'acx_csma_desc_title2'=>$acx_csma_desc_title2,
212
- 'acx_csma_desc_subtitle2'=>$acx_csma_desc_subtitle2,
213
- 'acx_csma_desc_text_color2'=>$acx_csma_desc_text_color2,
214
- 'acx_csma_fb_link2'=>$acx_csma_fb_link2,
215
- 'acx_csma_twitter_link2'=>$acx_csma_twitter_link2,
216
- 'acx_csma_linkedin_link2'=>$acx_csma_linkedin_link2
217
  );
218
  $acx_csma_appearence_array['3'] =array(
219
- 'acx_csma_logo3'=>$acx_csma_logo3,
220
- 'acx_csma_title3'=>$acx_csma_title3,
221
- 'acx_csma_title_color3'=>$acx_csma_title_color3,
222
- 'acx_csma_subtitle_text3'=>$acx_csma_subtitle_text3,
223
- 'acx_csma_subtitle_color3'=>$acx_csma_subtitle_color3,
224
- 'acx_csma_subscribe_title3'=>$acx_csma_subscribe_title3,
225
- 'acx_csma_subscribe_title_color3'=>$acx_csma_subscribe_title_color3,
226
- 'acx_csma_subscribe_btn_text3'=>$acx_csma_subscribe_btn_text3,
227
- 'acx_csma_subscribe_btn_text_color3'=>$acx_csma_subscribe_btn_text_color3,
228
- 'acx_csma_subscribe_btn_color3'=>$acx_csma_subscribe_btn_color3,
229
- 'acx_csma_subscribe_btn_hover_color3'=>$acx_csma_subscribe_btn_hover_color3,
230
- 'acx_csma_subscribe_btn_hover_bgcolor3'=>$acx_csma_subscribe_btn_hover_bgcolor3,
231
- 'acx_csma_subscribe_success3'=>$acx_csma_subscribe_success3,
232
- 'acx_csma_subscribe_invalid3'=>$acx_csma_subscribe_invalid3,
233
- 'acx_csma_inside_title3'=>$acx_csma_inside_title3,
234
- 'acx_csma_inside_title_color3'=>$acx_csma_inside_title_color3,
235
- 'acx_csma_timer_iptext_color3'=>$acx_csma_timer_iptext_color3,
236
- 'acx_csma_timer_head_color3'=>$acx_csma_timer_head_color3,
 
 
 
237
  'acx_csma_custom_html_top_temp3'=>$acx_csma_custom_html_top_temp3,
238
- 'acx_csma_desc_title3'=>$acx_csma_desc_title3,
239
- 'acx_csma_desc_subtitle3'=>$acx_csma_desc_subtitle3,
240
- 'acx_csma_desc_text_color3'=>$acx_csma_desc_text_color3,
241
- 'acx_csma_footer_text3'=>$acx_csma_footer_text3,
242
- 'acx_csma_footer_color3'=>$acx_csma_footer_color3,
243
- 'acx_csma_social_link_title3'=>$acx_csma_social_link_title3,
244
- 'acx_csma_social_link_title_color3'=>$acx_csma_social_link_title_color3,
245
- 'acx_csma_fb_link3'=>$acx_csma_fb_link3,
246
- 'acx_csma_twitter_link3'=>$acx_csma_twitter_link3,
247
- 'acx_csma_linkedin_link3'=>$acx_csma_linkedin_link3
248
  );
249
  $acx_csma_appearence_array['4'] =array(
250
- 'acx_csma_background_image4'=>$acx_csma_background_image4,
251
- 'acx_csma_logo4'=>$acx_csma_logo4,
252
- 'acx_csma_inside_bg_color4'=>$acx_csma_inside_bg_color4,
253
- 'acx_csma_title4'=>$acx_csma_title4,
 
 
 
254
  'acx_csma_custom_html_top_temp4'=>$acx_csma_custom_html_top_temp4,
255
- 'acx_csma_title_color4'=>$acx_csma_title_color4,
256
- 'acx_csma_show_timer4'=>$acx_csma_show_timer4,
257
- 'acx_csma_timer_iptext_color4'=>$acx_csma_timer_iptext_color4,
258
- 'acx_csma_timer_head_color4'=>$acx_csma_timer_head_color4,
259
  'acx_csma_show_progressbar4'=>$acx_csma_show_progressbar4,
260
- 'acx_csma_progress_bar_color4'=>$acx_csma_progress_bar_color4,
261
  'acx_csma_custom_html_bottom_temp4'=>$acx_csma_custom_html_bottom_temp4,
262
- 'acx_csma_fb_link4'=>$acx_csma_fb_link4,
263
- 'acx_csma_twitter_link4'=>$acx_csma_twitter_link4,
264
- 'acx_csma_linkedin_link4'=>$acx_csma_linkedin_link4
265
  );
266
  $acx_csma_appearence_array['5'] =array(
267
- 'acx_csma_bgcolor5'=>$acx_csma_bgcolor5,
268
- 'acx_csma_logo5'=>$acx_csma_logo5,
269
- 'acx_csma_inside_bg_color5'=>$acx_csma_inside_bg_color5,
270
- 'acx_csma_title5'=>$acx_csma_title5,
 
 
 
271
  'acx_csma_custom_html_top_temp5'=>$acx_csma_custom_html_top_temp5,
272
- 'acx_csma_title_color5'=>$acx_csma_title_color5,
273
- 'acx_csma_show_timer5'=>$acx_csma_show_timer5,
274
- 'acx_csma_timer_iptext_color5'=>$acx_csma_timer_iptext_color5,
275
- 'acx_csma_timer_head_color5'=>$acx_csma_timer_head_color5,
276
  'acx_csma_show_progressbar5'=>$acx_csma_show_progressbar5,
277
- 'acx_csma_progress_bar_color5'=>$acx_csma_progress_bar_color5,
278
  'acx_csma_custom_html_bottom_temp5'=>$acx_csma_custom_html_bottom_temp5,
279
- 'acx_csma_subscribe_bg_color5'=>$acx_csma_subscribe_bg_color5,
280
- 'acx_csma_subscribe_title5'=>$acx_csma_subscribe_title5,
281
- 'acx_csma_subscribe_success5'=>$acx_csma_subscribe_success5,
282
- 'acx_csma_subscribe_invalid5'=>$acx_csma_subscribe_invalid5,
283
- 'acx_csma_fb_link5'=>$acx_csma_fb_link5,
284
- 'acx_csma_twitter_link5'=>$acx_csma_twitter_link5,
285
- 'acx_csma_linkedin_link5'=>$acx_csma_linkedin_link5
286
  );
287
 
288
  if(!is_serialized($acx_csma_appearence_array))
@@ -302,23 +331,26 @@ else
302
  }
303
  if($acx_csma_hidden == 'Y')
304
  {
 
 
 
305
  //Form data sent
306
  acx_csma_hook_function('acx_csma_hook_mainoptions_inside_if_submit');
307
  $acx_csma_activation_status =$_POST['acx_csma_activate'];
308
  update_option('acx_csma_activation_status',$acx_csma_activation_status);
309
- $acx_csma_meta_title=$_POST['acx_csma_meta_title'];
310
  update_option('acx_csma_meta_title',$acx_csma_meta_title);
311
- $acx_csma_meta_description=$_POST['acx_csma_meta_description'];
312
  update_option('acx_csma_meta_description',$acx_csma_meta_description);
313
- $acx_csma_meta_keywords=$_POST['acx_csma_meta_keywords'];
314
  update_option('acx_csma_meta_keywords',$acx_csma_meta_keywords);
315
  $acx_csma_favicon=$_POST['acx_csma_favicon_field'];
316
- update_option('acx_csma_favicon',$acx_csma_favicon);
317
  $acx_csma_date_time=$_POST['acx_csma_date_time'];
318
- $acx_csma_date_time =explode(" ",$acx_csma_date_time);
319
  $acx_csma_t1=explode("/",$acx_csma_date_time[0]);
320
  $acx_csma_t2=explode(":",$acx_csma_date_time[1]);
321
- $timestamp =mktime($acx_csma_t2[0],$acx_csma_t2[1],0,$acx_csma_t1[1],$acx_csma_t1[2],$acx_csma_t1[0]);//mktime(hour,minute,second,month,day,year);
322
  update_option('acx_csma_date_time',$timestamp);
323
  if(ISSET($_POST['acx_csma_ip_list']))
324
  {
@@ -354,125 +386,193 @@ if(is_serialized($acx_csma_appearence_array))
354
  $acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
355
  }
356
 
357
- $acx_csma_background_image1=$_POST['acx_csma_background_image1'];
358
  if($acx_csma_background_image1==""){$acx_csma_background_image1=$acx_csma_appearence_array['1']['acx_csma_background_image1'] ;}
359
- $acx_csma_logo1=$_POST['acx_csma_logo1'];if($acx_csma_logo1==""){$acx_csma_logo1=$acx_csma_appearence_array['1']['acx_csma_logo1'];}
360
- $acx_csma_title1=$_POST['acx_csma_title1'];if($acx_csma_title1==""){$acx_csma_title1=$acx_csma_appearence_array['1']['acx_csma_title1'];}
361
- $acx_csma_title_color1=$_POST['acx_csma_title_color1'];if($acx_csma_title_color1==""){$acx_csma_title_color1=$acx_csma_appearence_array['1']['acx_csma_title_color1'];}
362
- $acx_csma_subtitle_text1=$_POST['acx_csma_subtitle_text1'];
363
- $acx_csma_subtitle_color1=$_POST['acx_csma_subtitle_color1'];if($acx_csma_subtitle_color1==""){$acx_csma_subtitle_color1=$acx_csma_appearence_array['1']['acx_csma_subtitle_color1'];}
 
 
 
 
 
 
 
 
 
 
 
 
 
364
  $acx_csma_custom_html_top_temp1=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_top_temp1'])));
365
  $acx_csma_custom_html_bottom_temp1=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_bottom_temp1'])));
366
- $acx_csma_inside_bg_color1=$_POST['acx_csma_inside_bg_color1'];if($acx_csma_inside_bg_color1==""){$acx_csma_inside_bg_color1=$acx_csma_appearence_array['1']['acx_csma_inside_bg_color1'];}
367
- $acx_csma_inside_title1=$_POST['acx_csma_inside_title1'];
368
- $acx_csma_inside_title_color1=$_POST['acx_csma_inside_title_color1'];if($acx_csma_inside_title_color1==""){ $acx_csma_inside_title_color1=$acx_csma_appearence_array['1']['acx_csma_inside_title_color1'];}
369
- $acx_csma_show_timer1=$_POST['acx_csma_show_timer1'];if($acx_csma_show_timer1==""){ $acx_csma_show_timer1=$acx_csma_appearence_array['1']['acx_csma_show_timer1'];}
370
- $acx_csma_timer_bg_color1=$_POST['acx_csma_timer_bg_color1'];if($acx_csma_timer_bg_color1==""){ $acx_csma_timer_bg_color1=$acx_csma_appearence_array['1']['acx_csma_timer_bg_color1'];}
371
- $acx_csma_timer_iptext_color1=$_POST['acx_csma_timer_iptext_color1'];if($acx_csma_timer_iptext_color1==""){$acx_csma_timer_iptext_color1=$acx_csma_appearence_array['1']['acx_csma_timer_iptext_color1'];}
372
- $acx_csma_timer_head_color1=$_POST['acx_csma_timer_head_color1'];if($acx_csma_timer_head_color1==""){$acx_csma_timer_head_color1=$acx_csma_appearence_array['1']['acx_csma_timer_head_color1'];}
373
- $acx_csma_subscribe_bg_color1=$_POST['acx_csma_subscribe_bg_color1'];if($acx_csma_subscribe_bg_color1==""){$acx_csma_subscribe_bg_color1=$acx_csma_appearence_array['1']['acx_csma_subscribe_bg_color1'];}
374
- $acx_csma_subscribe_btn_text1=$_POST['acx_csma_subscribe_btn_text1'];if($acx_csma_subscribe_btn_text1==""){$acx_csma_subscribe_btn_text1=$acx_csma_appearence_array['1']['acx_csma_subscribe_btn_text1'];}
375
- $acx_csma_subscribe_btn_text_color1=$_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'];}
376
- $acx_csma_subscribe_btn_color1=$_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'];}
377
- $acx_csma_subscribe_btn_hover_color1=$_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'];}
378
- $acx_csma_subscribe_btn_hover_bgcolor1=$_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'];}
379
- $acx_csma_subscribe_title1=$_POST['acx_csma_subscribe_title1'];if($acx_csma_subscribe_title1==""){$acx_csma_subscribe_title1=$acx_csma_appearence_array['1']['acx_csma_subscribe_title1'];}
380
- $acx_csma_subscribe_title_color1=$_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'];}
381
- $acx_csma_subscribe_success1=$_POST['acx_csma_subscribe_success1'];if($acx_csma_subscribe_success1==""){$acx_csma_subscribe_success1=$acx_csma_appearence_array['1']['acx_csma_subscribe_success1'];}
382
- $acx_csma_subscribe_invalid1=$_POST['acx_csma_subscribe_invalid1'];if($acx_csma_subscribe_invalid1==""){$acx_csma_subscribe_invalid1=$acx_csma_appearence_array['1']['acx_csma_subscribe_invalid1'];}
383
- $acx_csma_footer_bgcolor1=$_POST['acx_csma_footer_bgcolor1'];if($acx_csma_footer_bgcolor1==""){$acx_csma_footer_bgcolor1=$acx_csma_appearence_array['1']['acx_csma_footer_bgcolor1'];}
384
- $acx_csma_footer_text1=$_POST['acx_csma_footer_text1'];if($acx_csma_footer_text1==""){$acx_csma_footer_text1=$acx_csma_appearence_array['1']['acx_csma_footer_text1'];}
385
- $acx_csma_footer_text_color1=$_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'];}
386
  // **************************************template 2**************************************
387
- $acx_csma_bg_color2 = $_POST['acx_csma_bg_color2'];if($acx_csma_bg_color2==""){$acx_csma_bg_color2=$acx_csma_appearence_array['2']['acx_csma_bg_color2'];}
388
- $acx_csma_logo2 = $_POST['acx_csma_logo2'];if($acx_csma_logo2==""){$acx_csma_logo2= $acx_csma_appearence_array['2']['acx_csma_logo2'];}
389
- $acx_csma_title2=$_POST['acx_csma_title2'];if($acx_csma_title2==""){$acx_csma_title2=$acx_csma_appearence_array['2']['acx_csma_title2'];}
390
- $acx_csma_title_color2=$_POST['acx_csma_title_color2'];if($acx_csma_title_color2==""){$acx_csma_title_color2=$acx_csma_appearence_array['2']['acx_csma_title_color2'];}
391
- $acx_csma_subtitle_text2=$_POST['acx_csma_subtitle_text2'];if($acx_csma_subtitle_text2==""){$acx_csma_subtitle_text2=$acx_csma_appearence_array['2']['acx_csma_subtitle_text2'];}
392
- $acx_csma_subtitle_color2=$_POST['acx_csma_subtitle_color2'];if($acx_csma_subtitle_color2==""){$acx_csma_subtitle_color2=$acx_csma_appearence_array['2']['acx_csma_subtitle_color2'];}
393
- $acx_csma_inside_bg_color2=$_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'];}
394
- $acx_csma_timer_title2=$_POST['acx_csma_timer_title2'];if($acx_csma_timer_title2==""){$acx_csma_timer_title2=$acx_csma_appearence_array['2']['acx_csma_timer_title2'];}
395
- $acx_csma_subscribe_btn_color2=$_POST['acx_csma_subscribe_btn_color2'];if($acx_csma_subscribe_btn_color2==""){$acx_csma_subscribe_btn_color2=$acx_csma_appearence_array['2']['acx_csma_subscribe_btn_color2'];}
396
- $acx_csma_subscribe_success2=$_POST['acx_csma_subscribe_success2'];if($acx_csma_subscribe_success2==""){$acx_csma_subscribe_success2=$acx_csma_appearence_array['2']['acx_csma_subscribe_success2'];}
397
- $acx_csma_subscribe_invalid2=$_POST['acx_csma_subscribe_invalid2'];if($acx_csma_subscribe_invalid2==""){$acx_csma_subscribe_invalid2=$acx_csma_appearence_array['2']['acx_csma_subscribe_invalid2'];}
398
- $acx_csma_timer_input_bg_color2=$_POST['acx_csma_timer_input_bg_color2'];if($acx_csma_timer_input_bg_color2==""){$acx_csma_timer_input_bg_color2=$acx_csma_appearence_array['2']['acx_csma_timer_input_bg_color2'];}
399
- $acx_csma_timer_iptext_color2=$_POST['acx_csma_timer_iptext_color2'];if($acx_csma_timer_iptext_color2==""){$acx_csma_timer_iptext_color2=$acx_csma_appearence_array['2']['acx_csma_timer_iptext_color2'];}
400
- $acx_csma_timer_head_color2=$_POST['acx_csma_timer_head_color2'];if($acx_csma_timer_head_color2==""){$acx_csma_timer_head_color2=$acx_csma_appearence_array['2']['acx_csma_timer_head_color2'];}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
401
  $acx_csma_custom_html_top_temp2=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_top_temp2'])));
402
- $acx_csma_desc_title2=$_POST['acx_csma_desc_title2'];
403
  $acx_csma_desc_subtitle2=base64_encode(stripslashes(trim($_POST['acx_csma_desc_subtitle2'])));
404
- $acx_csma_desc_text_color2=$_POST['acx_csma_desc_text_color2'];if($acx_csma_desc_text_color2==""){$acx_csma_desc_text_color2=$acx_csma_appearence_array['2']['acx_csma_desc_text_color2'];}
405
- $acx_csma_fb_link2=$_POST['acx_csma_fb_link2'];if($acx_csma_fb_link2==""){$acx_csma_fb_link2=$acx_csma_appearence_array['2']['acx_csma_fb_link2'];}
406
- $acx_csma_twitter_link2=$_POST['acx_csma_twitter_link2'];if($acx_csma_twitter_link2==""){$acx_csma_twitter_link2=$acx_csma_appearence_array['2']['acx_csma_twitter_link2'];}
407
- $acx_csma_linkedin_link2=$_POST['acx_csma_linkedin_link2'];if($acx_csma_linkedin_link2==""){$acx_csma_linkedin_link2=$acx_csma_appearence_array['2']['acx_csma_linkedin_link2'];}
408
  //***********************************template 3*************************
409
- $acx_csma_logo3=$_POST['acx_csma_logo3'];if($acx_csma_logo3==""){$acx_csma_logo3= $acx_csma_appearence_array['3']['acx_csma_logo3'];}
410
- $acx_csma_title3=$_POST['acx_csma_title3'];if($acx_csma_title3==""){$acx_csma_title3=$acx_csma_appearence_array['3']['acx_csma_title3'];}
411
- $acx_csma_title_color3= $_POST['acx_csma_title_color3'];if($acx_csma_title_color3==""){$acx_csma_title_color3=$acx_csma_appearence_array['3']['acx_csma_title_color3'];}
412
- $acx_csma_subtitle_text3= $_POST['acx_csma_subtitle_text3'];if($acx_csma_subtitle_text3==""){$acx_csma_subtitle_text3=$acx_csma_appearence_array['3']['acx_csma_subtitle_text3'];}
413
- $acx_csma_subtitle_color3= $_POST['acx_csma_subtitle_color3'];if($acx_csma_subtitle_color3==""){$acx_csma_subtitle_color3=$acx_csma_appearence_array['3']['acx_csma_subtitle_color3'];}
414
- $acx_csma_subscribe_title3= $_POST['acx_csma_subscribe_title3'];if($acx_csma_subscribe_title3==""){$acx_csma_subscribe_title3=$acx_csma_appearence_array['3']['acx_csma_subscribe_title3'];}
415
- $acx_csma_subscribe_title_color3= $_POST['acx_csma_subscribe_title_color3'];if($acx_csma_subscribe_title_color3==""){$acx_csma_subscribe_title_color3=$acx_csma_appearence_array['3']['acx_csma_subscribe_title_color3'];}
416
- $acx_csma_subscribe_btn_text3=$_POST['acx_csma_subscribe_btn_text3'];if($acx_csma_subscribe_btn_text3==""){$acx_csma_subscribe_btn_text3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_text3'];}
417
- $acx_csma_subscribe_btn_text_color3=$_POST['acx_csma_subscribe_btn_text_color3'];if($acx_csma_subscribe_btn_text_color3==""){$acx_csma_subscribe_btn_text_color3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_text_color3'];}
418
- $acx_csma_subscribe_btn_color3=$_POST['acx_csma_subscribe_btn_color3'];if($acx_csma_subscribe_btn_color3==""){$acx_csma_subscribe_btn_color3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_color3'];}
419
- $acx_csma_subscribe_btn_hover_color3=$_POST['acx_csma_subscribe_btn_hover_color3'];if($acx_csma_subscribe_btn_hover_color3==""){$acx_csma_subscribe_btn_hover_color3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_hover_color3'];}
420
- $acx_csma_subscribe_btn_hover_bgcolor3=$_POST['acx_csma_subscribe_btn_hover_bgcolor3'];if($acx_csma_subscribe_btn_hover_bgcolor3==""){$acx_csma_subscribe_btn_hover_bgcolor3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_hover_bgcolor3'];}
421
- $acx_csma_subscribe_success3=$_POST['acx_csma_subscribe_success3'];if($acx_csma_subscribe_success3==""){$acx_csma_subscribe_success3=$acx_csma_appearence_array['3']['acx_csma_subscribe_success3'];}
422
- $acx_csma_subscribe_invalid3=$_POST['acx_csma_subscribe_invalid3'];if($acx_csma_subscribe_invalid3==""){$acx_csma_subscribe_invalid3=$acx_csma_appearence_array['3']['acx_csma_subscribe_invalid3'];}
423
- $acx_csma_inside_title3= $_POST['acx_csma_inside_title3'];if($acx_csma_inside_title3==""){$acx_csma_inside_title3=$acx_csma_appearence_array['3']['acx_csma_inside_title3'];}
424
- $acx_csma_inside_title_color3= $_POST['acx_csma_inside_title_color3'];if($acx_csma_inside_title_color3==""){$acx_csma_inside_title_color3=$acx_csma_appearence_array['3']['acx_csma_inside_title_color3'];}
425
- $acx_csma_timer_iptext_color3= $_POST['acx_csma_timer_iptext_color3'];if($acx_csma_timer_iptext_color3==""){$acx_csma_timer_iptext_color3=$acx_csma_appearence_array['3']['acx_csma_timer_iptext_color3'];}
426
- $acx_csma_timer_head_color3= $_POST['acx_csma_timer_head_color3'];if($acx_csma_timer_head_color3==""){$acx_csma_timer_head_color3=$acx_csma_appearence_array['3']['acx_csma_timer_head_color3'];}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
427
  $acx_csma_custom_html_top_temp3=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_top_temp3'])));
428
- $acx_csma_desc_title3= $_POST['acx_csma_desc_title3'];
429
  $acx_csma_desc_subtitle3=base64_encode(stripslashes(trim($_POST['acx_csma_desc_subtitle3'])));
430
- $acx_csma_desc_text_color3= $_POST['acx_csma_desc_text_color3'];if($acx_csma_desc_text_color3==""){$acx_csma_desc_text_color3=$acx_csma_appearence_array['3']['acx_csma_desc_text_color3'];}
431
- $acx_csma_footer_text3= $_POST['acx_csma_footer_text3'];if($acx_csma_footer_text3==""){$acx_csma_footer_text3=$acx_csma_appearence_array['3']['acx_csma_footer_text3'];}
432
- $acx_csma_footer_color3=$_POST['acx_csma_footer_color3'];if($acx_csma_footer_color3==""){$acx_csma_footer_color3=$acx_csma_appearence_array['3']['acx_csma_footer_color3'];}
433
- $acx_csma_social_link_title3=$_POST['acx_csma_social_link_title3'];if($acx_csma_social_link_title3==""){$acx_csma_social_link_title3=$acx_csma_appearence_array['3']['acx_csma_social_link_title3'];}
434
- $acx_csma_social_link_title_color3=$_POST['acx_csma_social_link_title_color3'];if($acx_csma_social_link_title_color3==""){$acx_csma_social_link_title_color3=$acx_csma_appearence_array['3']['acx_csma_social_link_title_color3'];}
435
- $acx_csma_fb_link3=$_POST['acx_csma_fb_link3'];if($acx_csma_fb_link3==""){$acx_csma_fb_link3=$acx_csma_appearence_array['3']['acx_csma_fb_link3'];}
436
- $acx_csma_twitter_link3=$_POST['acx_csma_twitter_link3'];if($acx_csma_twitter_link3==""){$acx_csma_twitter_link3=$acx_csma_appearence_array['3']['acx_csma_twitter_link3'];}
437
- $acx_csma_linkedin_link3=$_POST['acx_csma_linkedin_link3'];if($acx_csma_linkedin_link3==""){$acx_csma_linkedin_link3=$acx_csma_appearence_array['3']['acx_csma_linkedin_link3'];}
438
 
439
  //********************************template 4***********************************
440
- $acx_csma_background_image4=$_POST['acx_csma_background_image4'];if($acx_csma_background_image4==""){$acx_csma_background_image4=$acx_csma_appearence_array['4']['acx_csma_background_image4'];}
441
- $acx_csma_logo4=$_POST['acx_csma_logo4'];if($acx_csma_logo4==""){$acx_csma_logo4=$acx_csma_appearence_array['4']['acx_csma_logo4'];}
442
- $acx_csma_inside_bg_color4=$_POST['acx_csma_inside_bg_color4'];if($acx_csma_inside_bg_color4==""){$acx_csma_inside_bg_color4=$acx_csma_appearence_array['4']['acx_csma_inside_bg_color4'];}
443
- $acx_csma_title4=$_POST['acx_csma_title4'];if($acx_csma_title4==""){$acx_csma_title4=$acx_csma_appearence_array['4']['acx_csma_title4'];}
 
 
 
 
 
 
 
 
 
 
 
 
 
444
  $acx_csma_custom_html_top_temp4=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_top_temp4'])));
445
- $acx_csma_title_color4=$_POST['acx_csma_title_color4'];if($acx_csma_title_color4==""){$acx_csma_title_color4=$acx_csma_appearence_array['4']['acx_csma_title_color4'];}
446
- $acx_csma_show_timer4=$_POST['acx_csma_show_timer4'];if($acx_csma_show_timer4==""){ $acx_csma_show_timer4=$acx_csma_appearence_array['1']['acx_csma_show_timer4'];}
447
- $acx_csma_timer_iptext_color4=$_POST['acx_csma_timer_iptext_color4'];if($acx_csma_timer_iptext_color4==""){$acx_csma_timer_iptext_color4=$acx_csma_appearence_array['4']['acx_csma_timer_iptext_color4'];;}
448
- $acx_csma_timer_head_color4=$_POST['acx_csma_timer_head_color4'];if($acx_csma_timer_head_color4==""){$acx_csma_timer_head_color4=$acx_csma_appearence_array['4']['acx_csma_timer_head_color4'];}
449
- $acx_csma_show_progressbar4=$_POST['acx_csma_show_progressbar4'];if($acx_csma_show_progressbar4==""){ $acx_csma_show_progressbar4=$acx_csma_appearence_array['1']['acx_csma_show_progressbar4'];}
450
- $acx_csma_progress_bar_color4=$_POST['acx_csma_progress_bar_color4'];if($acx_csma_progress_bar_color4==""){$acx_csma_progress_bar_color4=$acx_csma_appearence_array['4']['acx_csma_progress_bar_color4'];}
451
  $acx_csma_custom_html_bottom_temp4=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_bottom_temp4'])));
452
- $acx_csma_fb_link4=$_POST['acx_csma_fb_link4'];if($acx_csma_fb_link4==""){$acx_csma_fb_link4=$acx_csma_appearence_array['4']['acx_csma_fb_link4'];}
453
- $acx_csma_twitter_link4=$_POST['acx_csma_twitter_link4'];if($acx_csma_twitter_link4==""){$acx_csma_twitter_link4=$acx_csma_appearence_array['4']['acx_csma_twitter_link4'];}
454
- $acx_csma_linkedin_link4=$_POST['acx_csma_linkedin_link4'];if($acx_csma_linkedin_link4==""){$acx_csma_linkedin_link4=$acx_csma_appearence_array['4']['acx_csma_linkedin_link4'];}
455
 
456
  //********************************template5*********************************
457
- $acx_csma_bgcolor5=$_POST['acx_csma_bgcolor5'];if($acx_csma_bgcolor5==""){$acx_csma_bgcolor5=$acx_csma_appearence_array['5']['acx_csma_bgcolor5'];}
458
- $acx_csma_logo5=$_POST['acx_csma_logo5'];if($acx_csma_logo5==""){$acx_csma_logo5=$acx_csma_appearence_array['5']['acx_csma_logo5'];}
459
- $acx_csma_inside_bg_color5=$_POST['acx_csma_inside_bg_color5'];if($acx_csma_inside_bg_color5==""){$acx_csma_inside_bg_color5=$acx_csma_appearence_array['5']['acx_csma_inside_bg_color5'];}
460
- $acx_csma_title5=$_POST['acx_csma_title5'];if($acx_csma_title5==""){$acx_csma_title5=$acx_csma_appearence_array['5']['acx_csma_title5'];}
461
- $acx_csma_title_color5=$_POST['acx_csma_title_color5'];if($acx_csma_title_color5==""){$acx_csma_title_color5=$acx_csma_appearence_array['5']['acx_csma_title_color5'];}
 
 
 
 
 
 
 
 
 
 
 
 
 
462
  $acx_csma_custom_html_top_temp5=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_top_temp5'])));
463
- $acx_csma_show_timer5=$_POST['acx_csma_show_timer5'];if($acx_csma_show_timer5==""){$acx_csma_show_timer5=$acx_csma_show_timer5['5']['acx_csma_show_timer5'];}
464
- $acx_csma_timer_iptext_color5=$_POST['acx_csma_timer_iptext_color5'];if($acx_csma_timer_iptext_color5==""){$acx_csma_timer_iptext_color5=$acx_csma_appearence_array['5']['acx_csma_timer_iptext_color5'];}
465
- $acx_csma_timer_head_color5=$_POST['acx_csma_timer_head_color5'];if($acx_csma_timer_head_color5==""){$acx_csma_timer_head_color5=$acx_csma_appearence_array['5']['acx_csma_timer_head_color5'];}
466
- $acx_csma_show_progressbar5=$acx_csma_show_progressbar5=$_POST['acx_csma_show_progressbar5'];if($acx_csma_show_progressbar5==""){$acx_csma_show_progressbar5=$acx_csma_appearence_array['5']['acx_csma_show_progressbar5'];}
467
- $acx_csma_progress_bar_color5=$_POST['acx_csma_progress_bar_color5'];if($acx_csma_progress_bar_color5==""){$acx_csma_progress_bar_color5=$acx_csma_appearence_array['5']['acx_csma_progress_bar_color5'];}
468
  $acx_csma_custom_html_bottom_temp5=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_bottom_temp5'])));
469
- $acx_csma_subscribe_bg_color5=$_POST['acx_csma_subscribe_bg_color5'];if($acx_csma_subscribe_bg_color5==""){$acx_csma_subscribe_bg_color5=$acx_csma_appearence_array['5']['acx_csma_subscribe_bg_color5'];}
470
- $acx_csma_subscribe_title5=$_POST['acx_csma_subscribe_title5'];if($acx_csma_subscribe_title5==""){$acx_csma_subscribe_title5=$acx_csma_appearence_array['5']['acx_csma_subscribe_title5'];}
471
- $acx_csma_subscribe_success5=$_POST['acx_csma_subscribe_success5'];if($acx_csma_subscribe_success5==""){$acx_csma_subscribe_success5=$acx_csma_appearence_array['5']['acx_csma_subscribe_success5'];}
472
- $acx_csma_subscribe_invalid5=$_POST['acx_csma_subscribe_invalid5'];if($acx_csma_subscribe_invalid5==""){$acx_csma_subscribe_invalid5=$acx_csma_appearence_array['5']['acx_csma_subscribe_invalid5'];}
473
- $acx_csma_fb_link5=$_POST['acx_csma_fb_link5'];if($acx_csma_fb_link5==""){$acx_csma_fb_link5=$acx_csma_appearence_array['5']['acx_csma_fb_link5'];}
474
- $acx_csma_twitter_link5=$_POST['acx_csma_twitter_link5'];if($acx_csma_twitter_link5==""){$acx_csma_twitter_link5=$acx_csma_appearence_array['5']['acx_csma_twitter_link5'];}
475
- $acx_csma_linkedin_link5=$_POST['acx_csma_linkedin_link5'];if($acx_csma_linkedin_link5==""){$acx_csma_linkedin_link5=$acx_csma_appearence_array['5']['acx_csma_linkedin_link5'];}
476
 
477
  $acx_csma_template=$_POST['acx_csma_template'];
478
  if($acx_csma_template==""){$acx_csma_template=1;}
@@ -497,7 +597,10 @@ if(is_serialized($acx_csma_appearence_array))
497
  $acx_csma_appearence_array[$acx_csma_template] =
498
  array(
499
  'acx_csma_background_image1'=>$acx_csma_background_image1,
 
500
  'acx_csma_logo1'=>$acx_csma_logo1,
 
 
501
  'acx_csma_title1'=>$acx_csma_title1,
502
  'acx_csma_title_color1'=>$acx_csma_title_color1,
503
  'acx_csma_subtitle_text1'=>$acx_csma_subtitle_text1,
@@ -544,7 +647,10 @@ if(is_serialized($acx_csma_appearence_array))
544
  $acx_csma_appearence_array[$acx_csma_template] =
545
  array(
546
  'acx_csma_bg_color2'=>$acx_csma_bg_color2,
 
547
  'acx_csma_logo2'=>$acx_csma_logo2,
 
 
548
  'acx_csma_title2'=>$acx_csma_title2,
549
  'acx_csma_title_color2'=>$acx_csma_title_color2,
550
  'acx_csma_subtitle_text2'=>$acx_csma_subtitle_text2,
@@ -583,7 +689,10 @@ if(is_serialized($acx_csma_appearence_array))
583
  {
584
  $acx_csma_appearence_array[$acx_csma_template] =
585
  array(
 
586
  'acx_csma_logo3'=>$acx_csma_logo3,
 
 
587
  'acx_csma_title3'=>$acx_csma_title3,
588
  'acx_csma_title_color3'=>$acx_csma_title_color3,
589
  'acx_csma_subtitle_text3'=>$acx_csma_subtitle_text3,
@@ -632,7 +741,10 @@ if(is_serialized($acx_csma_appearence_array))
632
  $acx_csma_appearence_array[$acx_csma_template] =
633
  array(
634
  'acx_csma_background_image4'=>$acx_csma_background_image4,
 
635
  'acx_csma_logo4'=>$acx_csma_logo4,
 
 
636
  'acx_csma_inside_bg_color4'=>$acx_csma_inside_bg_color4,
637
  'acx_csma_title4'=>$acx_csma_title4,
638
  'acx_csma_custom_html_top_temp4'=>$acx_csma_custom_html_top_temp4,
@@ -666,7 +778,10 @@ if(is_serialized($acx_csma_appearence_array))
666
  $acx_csma_appearence_array[$acx_csma_template]=
667
  array(
668
  'acx_csma_bgcolor5'=>$acx_csma_bgcolor5,
 
669
  'acx_csma_logo5'=>$acx_csma_logo5,
 
 
670
  'acx_csma_inside_bg_color5'=>$acx_csma_inside_bg_color5,
671
  'acx_csma_title5'=>$acx_csma_title5,
672
  'acx_csma_custom_html_top_temp5'=>$acx_csma_custom_html_top_temp5,
@@ -692,10 +807,8 @@ if(is_serialized($acx_csma_appearence_array))
692
  }
693
  update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
694
  }
695
-
696
-
697
  ?>
698
- <div class="updated"><p><strong><?php _e('Coming Soon/Maintenance From Acurax Settings Saved!.');?></strong></p></div>
699
  <script type="text/javascript">
700
  setTimeout(function(){
701
  jQuery('.updated').fadeOut('slow');
@@ -734,21 +847,12 @@ else
734
  $acx_csma_favicon = ACX_CSMA_BASE_LOCATION . 'images/favicon.png';
735
  update_option('acx_csma_favicon',$acx_csma_favicon);
736
  }
737
-
738
- $acx_csma_start_date_time=date("Y/m/d H:i");
739
- $acx_csma_start_date_time1 =explode(" ",$acx_csma_start_date_time);
740
- $acx_csma_start_date1=explode("/",$acx_csma_start_date_time1[0]);
741
- $acx_csma_start_time1=explode(":",$acx_csma_start_date_time1[1]);
742
- $start_timestamp =mktime($acx_csma_start_time1[0],$acx_csma_start_time1[1],0,$acx_csma_start_date1[1],$acx_csma_start_date1[2],$acx_csma_start_date1[0]);//mktime(hour,minute,second,month,day,year);
743
  update_option('acx_csma_start_date_time',$start_timestamp);
744
  $acx_csma_date_time=get_option('acx_csma_date_time');
745
  if($acx_csma_date_time =="")
746
  {
747
- $acx_csma_date_time=date("Y/m/d H:i", strtotime("+30 days"));
748
- $acx_csma_date_time1 =explode(" ",$acx_csma_date_time);
749
- $acx_csma_date1=explode("/",$acx_csma_date_time1[0]);
750
- $acx_csma_time1=explode(":",$acx_csma_date_time1[1]);
751
- $timestamp1 =mktime($acx_csma_time1[0],$acx_csma_time1[1],0,$acx_csma_date1[1],$acx_csma_date1[2],$acx_csma_date1[0]);//mktime(hour,minute,second,month,day,year);
752
  update_option('acx_csma_date_time',$timestamp1);
753
  }
754
  $acx_csma_ip_list=get_option('acx_csma_ip_list');
@@ -828,69 +932,71 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
828
  <div class="wrap">
829
  <div style='background: none repeat scroll 0% 0% white; height: 100%; display: inline-block; padding: 8px; margin-top: 5px; border-radius: 15px; min-height: 450px; width: 100%;'>
830
  <?php acx_csma_hook_function('acx_csma_hook_mainoptions_above_title'); ?>
831
- <?php echo "<h2>" . __( 'Acurax Coming soon / Maintenance Options','acx_csma_config' ) . "</h2>";?>
832
- <form name="acx_csma_form" id="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']);?>"><hr/>
833
  <table>
834
  <tr>
835
  <td><input type="hidden" name="acx_csma_hidden" value="Y"/></td>
836
  </tr>
837
  <tr>
838
  <td><a id="acx_csma_tab_1" class="acx_csma_tab" onclick="javascript:acx_csma_show_div(1);">General Settings</a></td>
839
- <td><a id="acx_csma_tab_2" class="acx_csma_tab" onclick="javascript:acx_csma_show_div(2);">Appearence Settings</a></td>
840
- <?php acx_csma_hook_function('acx_csma_hook_mainoptions_add_settings');?>
841
  </tr>
842
  </table><hr/>
843
  <div id="acx_csma_tab_block_1" class="acx_csma_tab_block acx_csma_general" style="margin-left:20px;">
844
- <?php echo "<h3>" . __( 'General Settings','acx_csma_config' ) . "</h3>";?>
845
  <table>
846
  <tr>
847
  <?php $acx_csma_activation_status=get_option('acx_csma_activation_status');
848
  ?>
849
- <td><?php _e('Status:', 'acx_csma_config');?></td>
850
- <td><input type="radio" id="acx_csma_activate" name="acx_csma_activate" value="1"<?php if($acx_csma_activation_status=="1"){echo "checked='checked'";}?> />&nbsp;<?php _e('Activate', 'acx_csma_config');?>&nbsp;&nbsp;&nbsp;<input type="radio" id="acx_csma_activate" name="acx_csma_activate" value="0"<?php if($acx_csma_activation_status =="0"){echo "checked='checked'";}?>/>&nbsp;<?php _e('Deactivate', 'acx_csma_config');?></td></tr>
851
  <tr><td><p><?php _e("Page Meta Title: " ); ?></p></td>
852
- <td><input type="text" name="acx_csma_meta_title" value="<?php echo get_option('acx_csma_meta_title');?>" size="20"/></td>
853
  </tr>
854
- <tr><td><p><?php _e("Page Meta Description: " );?></p></td>
855
- <td><input type="text" name="acx_csma_meta_description" value="<?php echo get_option('acx_csma_meta_description');?>" size="20"/></td></tr>
856
- <tr><td><p><?php _e("Page Meta Keywords: " );?></p></td>
857
- <td><input type="text" name="acx_csma_meta_keywords" value="<?php echo get_option('acx_csma_meta_keywords');?>" size="20"/></td></tr>
858
  <tr><td><?php _e("Upload Favicon: " ); ?></td>
859
  <td>
860
- <img id="acx_csma_favicon" src="<?php echo $acx_csma_favicon;?>" style="width:20px;height:auto;">
861
- <input type="hidden" id="acx_csma_favicon_field" name="acx_csma_favicon_field" value="<?php echo $acx_csma_favicon;?>" size="20">
 
862
  <a id="acx_csma_favicon_button" class="button">Pick a Favicon</a>&nbsp;&nbsp;&nbsp;&nbsp;
863
  <span><?php _e("Recommended size 16 X 16 " ); ?> </span>
864
  </td>
865
  </tr>
866
- <tr><td><?php _e("Expected Date and Time to end Maintenance mode: " );?></td>
867
  <td>
868
- <input type="text" value="<?php $timestamp1=get_option('acx_csma_date_time');echo $actual_time1=date('Y/m/d H:i',$timestamp1);?>" id="datetimepicker" name="acx_csma_date_time"/><br><br></td></tr>
 
869
  <tr>
870
- <td><?php _e("Would you like to end the maintenance mode automatically on the above specified time?: " );?></td>
871
  <?php $acx_csma_auto_launch=get_option('acx_csma_auto_launch');
872
  ?>
873
- <td><input type="radio" id="acx_csma_auto_launch" name="acx_csma_auto_launch" value="1"<?php if($acx_csma_auto_launch=="1"){echo "checked='checked'";}?> />&nbsp;<?php _e('YES', 'acx_csma_config');?>&nbsp;&nbsp;&nbsp;<input type="radio" id="acx_csma_auto_launch" name="acx_csma_auto_launch" value="0"<?php if($acx_csma_auto_launch =="0"){echo "checked='checked'";}?>/>&nbsp;<?php _e('NO', 'acx_csma_config');?></td></tr>
874
 
875
- <tr><td><b><?php echo "<h4>" . __( 'Access Settings', 'acx_csma_config' ) . "</h4>";?></b></td></tr>
876
  </table>
877
  <table>
878
- <tr><td><?php _e("Do not show maintenance page for the following IPs:");?></td></tr>
879
  <tr>
880
  <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);}?>
881
  <select name="acx_csma_ip_list[]" id="acx_csma_ip_list1" multiple>
882
  <?php foreach($acx_csma_ip_list as $key =>$value)
883
  {?>
884
- <option selected><?php echo $value;?></option><?php }?>
885
  </select><br/><br/>
886
- <input type="text" name="acx_csma_txt_ip" id="acx_csma_txt_ip" value="<?php echo $_SERVER['REMOTE_ADDR'];?>"/>
887
  <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);"/>
888
  <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>
889
  </td></tr>
890
  </table>
891
 
892
  <table>
893
- <tr><td><?php _e("Do not show maintenance page for the following Roles:");?></td></tr>
894
  <?php
895
  $acx_csma_restrict_role=get_option('acx_csma_restrict_role');
896
  if($acx_csma_restrict_role =="")
@@ -908,17 +1014,17 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
908
  {
909
  if($role!="Administrator")
910
  {?>
911
- <tr><td><input type="checkbox" name="acx_csma_restrict_role[]" size="20" value="<?php echo $role;?>"<?php if(is_array($acx_csma_restrict_role) && in_array($role,$acx_csma_restrict_role)){echo "checked='checked'"; }?>/><?php echo $role;?></td><tr>
912
  <?php }
913
  }?>
914
  </table>
915
- <?php acx_csma_hook_function('acx_csma_hook_mainoptions_below_general_settings');?>
916
  </div><!--acx_csma_tab_block_1-->
917
  <div id="acx_csma_tab_block_2" class="acx_csma_tab_block acx_csma_appearence" style="display:none;">
918
  <table>
919
- <tr><td><?php echo "<h3>" . __( 'Appearance Settings', 'acx_csma_config' ) . "</h3>";?></td></tr></table>
920
  <div class="acx_csmap_q_and_a_h_info">
921
- <?php $acx_csmap_open_all_boxes_default=get_option('acx_csmap_open_all_boxes_default');?>
922
  Configuration Box Actions:
923
  <a href="javascript:acx_csmap_easy_qa_expandall();">Open/Close All Configuration Boxes</a><br><br>
924
  Open All Boxes Always? <input type="radio" name="acx_csmap_open_all_boxes_default" value="yes" <?php if($acx_csmap_open_all_boxes_default == "yes") { echo "checked"; } ?>>Yes<input type="radio" name="acx_csmap_open_all_boxes_default" value="no" <?php if($acx_csmap_open_all_boxes_default != "yes") { echo "checked"; } ?>>No <input type="submit" style="width: auto; border: 1px solid lightgray; margin-top: -5px; margin-left: 5px; padding-right: 12px; padding-left: 12px;" value="Save" name="acx_csma_Submit" class="button"><br>
@@ -927,33 +1033,33 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
927
  </div> <!-- acx_csmap_q_and_a_h_info -->
928
 
929
  <div id="main">
930
- <?php $acx_csma_template = get_option('acx_csma_template');?>
931
  <div id="img_holder">
932
  <label for="acx_csma_template1">
933
- <img src="<?php echo ACX_CSMA_BASE_LOCATION . 'images/template1 .png';?>"></label><br /><input type="radio" name="acx_csma_template" id="acx_csma_template1" value="1" <?php if ($acx_csma_template=="1") {echo "checked=checked";}?> onclick="acx_csma_rdbtn_show_div(1);"/>Template 1 &nbsp;&nbsp;&nbsp;<a href="<?php echo get_site_url();?>?acx_csma_preview=1" target="_blank">Preview</a>
934
  </div> <!-- img_holder -->
935
  <div id="img_holder">
936
  <label for="acx_csma_template2">
937
- <img src="<?php echo ACX_CSMA_BASE_LOCATION . 'images/template2.png';?>"></label><br /><input type="radio" name="acx_csma_template" id="acx_csma_template2" value="2" <?php if ($acx_csma_template=="2") {echo "checked=checked";}?> onclick="acx_csma_rdbtn_show_div(2);"/>Template 2 &nbsp;&nbsp;&nbsp;<a href="<?php echo get_site_url();?>?acx_csma_preview=2" target="_blank">Preview</a>
938
  </div> <!-- img_holder -->
939
  <div id="img_holder">
940
  <label for="acx_csma_template3">
941
- <img src="<?php echo ACX_CSMA_BASE_LOCATION . 'images/template3.png';?>"></label><br /><input type="radio" name="acx_csma_template" id="acx_csma_template3" value="3" <?php if ($acx_csma_template=="3") {echo "checked=checked";}?> onclick="acx_csma_rdbtn_show_div(3);"/>Template 3 &nbsp;&nbsp;&nbsp;<a href="<?php echo get_site_url();?>?acx_csma_preview=3" target="_blank">Preview</a>
942
  </div> <!-- img_holder -->
943
  <div id="img_holder">
944
  <label for="acx_csma_template4">
945
- <img src="<?php echo ACX_CSMA_BASE_LOCATION . 'images/template4.png';?>"></label><br /><input type="radio" name="acx_csma_template" id="acx_csma_template4" value="4" <?php if ($acx_csma_template=="4") {echo "checked=checked";}?> onclick="acx_csma_rdbtn_show_div(4);"/>Template 4 &nbsp;&nbsp;&nbsp;<a href="<?php echo get_site_url();?>?acx_csma_preview=4" target="_blank" >Preview</a>
946
  </div> <!-- img_holder -->
947
  <div id="img_holder">
948
  <label for="acx_csma_template5">
949
- <img src="<?php echo ACX_CSMA_BASE_LOCATION . 'images/template5.png';?>"></label><br /><input type="radio" name="acx_csma_template" id="acx_csma_template5" value="5" <?php if ($acx_csma_template=="5") {echo "checked=checked";}?> onclick="acx_csma_rdbtn_show_div(5);"/>Template 5 &nbsp;&nbsp;&nbsp;<a href="<?php echo get_site_url();?>?acx_csma_preview=5" target="_blank">Preview</a>
950
  </div> <!-- img_holder -->
951
  <div id="img_holder">
952
  <label for="acx_csma_custom_template">
953
- <img src="<?php echo ACX_CSMA_BASE_LOCATION . 'images/html-img.png';?>"></label><br />
954
- <input type="radio" name="acx_csma_template" id="acx_csma_custom_template" value="0" <?php if ($acx_csma_template =="0") {echo "checked=checked";}?> onclick="acx_csma_rdbtn_show_div(0);"/>Custom Html &nbsp;&nbsp;&nbsp;<a href="<?php echo get_site_url();?>?acx_csma_preview=0" target="_blank">Preview</a>
955
  </div> <!-- img_holder -->
956
- <?php acx_csma_hook_function('acx_csma_hook_mainoptions_below_add_template');?>
957
  </div> <!-- main -->
958
 
959
  <?php
@@ -961,82 +1067,119 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
961
  if(is_serialized($acx_csma_appearence_array))
962
  {
963
  $acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
964
- } ?>
 
965
  <div id="acx_csma_template_1" style="display:none;" class="acx_csma_template_option_holder">
966
  <div id="acx_csma_1_p_q_and_a_h_main_holder">
967
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE #########################################-->
968
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
969
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
970
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">1)
971
  Would you like to change Background image
972
  </span>
973
- <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>
974
- <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;">
975
  <div class="acx_csmap_q_and_a_inside">
976
  <label>Background Image:</label>
977
  <div class="acx_qa_field">
978
- <img id="custom_uploader_template_1_img_field_preview" src="<?php echo $acx_csma_appearence_array['1']['acx_csma_background_image1'] ;?>" style="width:100px;height:auto;">
979
- <input type="hidden" id="custom_uploader_template_1_img_field" name="acx_csma_background_image1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_background_image1'];?>" size="20">
980
  <a id="acx_upload_button_img1" class="button">Choose Image</a>
981
- <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>
982
  </div> <!-- acx_qa_field -->
983
  </div> <!-- acx_csmap_q_and_a_inside -->
984
  </div> <!-- acx_csmap_q_and_a -->
985
  </div> <!-- acx_csmap_q_and_a_h -->
986
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################# -->
987
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
988
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
989
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
990
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">2)
991
  Would you like to change the default logo
992
  </span>
993
- <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>
994
- <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;">
995
  <div class="acx_csmap_q_and_a_inside">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
996
  <label>
997
- Logo: <span id="acx_csma_span">(Recommended size 231x67)</span>
998
  </label>
999
  <div class="acx_qa_field">
1000
- <img id="custom_uploader_template_1_logo_field_preview" src="<?php echo $acx_csma_appearence_array['1']['acx_csma_logo1'];?>" style="width:100px;height:auto;">
1001
- <input type="hidden" id="custom_uploader_template_1_logo_field" name="acx_csma_logo1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_logo1'];?>" size="20"><a id="acx_upload_button_logo1" class="button">Pick a Logo</a>
1002
- <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>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1003
  </div> <!-- acx_qa_field -->
 
1004
  </div> <!-- acx_csmap_q_and_a_inside -->
1005
  </div> <!-- acx_csmap_q_and_a -->
1006
  </div> <!-- acx_csmap_q_and_a_h -->
1007
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################# -->
1008
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1009
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1010
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1011
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">3)
1012
  Would you like to change the default title properties </span>
1013
- <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>
1014
- <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;">
1015
  <div class="acx_csmap_q_and_a_inside">
1016
  <label>
1017
  Title Text:
1018
  </label>
1019
  <div class="acx_qa_field">
1020
- <input type="text" name="acx_csma_title1" id="acx_csma_title1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_title1'];?>" size="20"/>
1021
  </div> <!-- acx_qa_field -->
1022
  <label>
1023
  Title Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_title_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1024
  </label>
1025
  <div class="acx_qa_field">
1026
- <input type="text" name="acx_csma_title_color1" id="acx_csma_title_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_title_color1'];?>" size="20" />
1027
  <div style="position: absolute;" id="acx_csma_title_color1_div"></div>
1028
  </div> <!-- acx_qa_field -->
1029
  <label>
1030
  Subtitle Text:
1031
  </label>
1032
  <div class="acx_qa_field">
1033
- <input type="text" name="acx_csma_subtitle_text1" id="acx_csma_subtitle_text1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subtitle_text1'];?>" size="20"/>
1034
  </div> <!-- acx_qa_field -->
1035
  <label>
1036
  Subtitle Color:<a onclick="acx_csma_restore_default('','#fffaa9','acx_csma_subtitle_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1037
  </label>
1038
  <div class="acx_qa_field">
1039
- <input type="text" name="acx_csma_subtitle_color1" id="acx_csma_subtitle_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subtitle_color1'];?>" size="20"/>
1040
  <div style="position: absolute;" id="acx_csma_subtitle_color1_div"></div>
1041
  </div> <!-- acx_qa_field -->
1042
  </div> <!-- acx_csmap_q_and_a_inside -->
@@ -1045,38 +1188,38 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1045
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################# -->
1046
 
1047
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1048
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1049
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1050
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">4)
1051
  Would you like to change the Inside block properties </span>
1052
- <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>
1053
- <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;">
1054
  <div class="acx_csmap_q_and_a_inside">
1055
  <label>
1056
  Custom HTML Block Above Countdown Timer
1057
  </label>
1058
  <div class="acx_qa_field">
1059
  <?php $acx_csma_custom_html_top_temp1 = base64_decode($acx_csma_appearence_array['1']['acx_csma_custom_html_top_temp1']); ?>
1060
- <textarea id="acx_csma_custom_html_top_temp1" name="acx_csma_custom_html_top_temp1" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_top_temp1;?></textarea>
1061
  </div><!-- acx_qa_field -->
1062
  <label>
1063
  Background Color:<a onclick="acx_csma_restore_default('','#ff7800','acx_csma_inside_bg_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1064
  </label>
1065
  <div class="acx_qa_field">
1066
- <input type="text" name="acx_csma_inside_bg_color1" id="acx_csma_inside_bg_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_inside_bg_color1'];?>" size="20"/>
1067
  <div style="position: absolute;" id="acx_csma_inside_bg_color1_div"></div>
1068
  </div> <!-- acx_qa_field -->
1069
  <label>
1070
  Title:
1071
  </label>
1072
  <div class="acx_qa_field">
1073
- <input type="text" name="acx_csma_inside_title1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_inside_title1'];?>" size="20"/>
1074
  </div> <!-- acx_qa_field -->
1075
  <label>
1076
  Title Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_inside_title_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1077
  </label>
1078
  <div class="acx_qa_field">
1079
- <input type="text" name="acx_csma_inside_title_color1" id="acx_csma_inside_title_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_inside_title_color1'];?>" size="20"/>
1080
  <div style="position: absolute;" id="acx_csma_inside_title_color1_div"></div>
1081
  </div> <!-- acx_qa_field -->
1082
  <label>
@@ -1084,7 +1227,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1084
  </label>
1085
  <div class="acx_qa_field">
1086
  <?php $acx_csma_custom_html_bottom_temp1 =base64_decode($acx_csma_appearence_array['1']['acx_csma_custom_html_bottom_temp1']); ?>
1087
- <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;?></textarea>
1088
  </div><!-- acx_qa_field -->
1089
  </div> <!-- acx_csmap_q_and_a_inside -->
1090
  </div> <!-- acx_csmap_q_and_a -->
@@ -1092,43 +1235,43 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1092
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################# -->
1093
 
1094
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1095
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1096
 
1097
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1098
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">5)
1099
  Would you like to change the Timer block properties
1100
  </span>
1101
- <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>
1102
- <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;">
1103
  <div class="acx_csmap_q_and_a_inside">
1104
  <label>
1105
  Would you like to show Timer?
1106
  </label>
1107
  <div class="acx_qa_field">
1108
  <select name="acx_csma_show_timer1">
1109
- <option value="1"<?php if ($acx_csma_show_timer1 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
1110
- <option value="0"<?php if ($acx_csma_show_timer1 == "0") { echo 'selected="selected"'; } ?>>No</option>
1111
  </select>
1112
  </div>
1113
  <label>
1114
  Background Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_timer_bg_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1115
  </label>
1116
  <div class="acx_qa_field">
1117
- <input type="text" name="acx_csma_timer_bg_color1" id="acx_csma_timer_bg_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_timer_bg_color1'];?>" size="20"/></td>
1118
  <td><div style="position: absolute;" id="acx_csma_timer_bg_color1_div"></div>
1119
  </div> <!-- acx_qa_field -->
1120
  <label>
1121
  Input text Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_timer_iptext_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1122
  </label>
1123
  <div class="acx_qa_field">
1124
- <input type="text" name="acx_csma_timer_iptext_color1" id="acx_csma_timer_iptext_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_timer_iptext_color1'];?>" size="20"/>
1125
  <div style="position: absolute;" id="acx_csma_timer_iptext_color1_div"></div>
1126
  </div> <!-- acx_qa_field -->
1127
  <label>
1128
  Heading Color:<a onclick="acx_csma_restore_default('','#ff7800','acx_csma_timer_head_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1129
  </label>
1130
  <div class="acx_qa_field">
1131
- <input type="text" name="acx_csma_timer_head_color1" id="acx_csma_timer_head_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_timer_head_color1'];?>" size="20"/>
1132
  <div style="position: absolute;" id="acx_csma_timer_head_color1_div"></div>
1133
  </div> <!-- acx_qa_field -->
1134
  </div> <!-- acx_csmap_q_and_a_inside -->
@@ -1137,81 +1280,81 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1137
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################# -->
1138
 
1139
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1140
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1141
 
1142
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1143
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">6)
1144
  Would you like to change the Subscribe block properties
1145
  </span>
1146
- <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>
1147
- <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;">
1148
  <div class="acx_csmap_q_and_a_inside">
1149
  <label>
1150
  Background Color:<a onclick="acx_csma_restore_default('','#0b1c2c','acx_csma_subscribe_bg_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1151
  </label>
1152
  <div class="acx_qa_field">
1153
- <input type="text" name="acx_csma_subscribe_bg_color1" id="acx_csma_subscribe_bg_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_bg_color1'];?>" size="20"/>
1154
  <div style="position: absolute;" id="acx_csma_subscribe_bg_color1_div"></div>
1155
  </div> <!-- acx_qa_field -->
1156
  <label>
1157
  Button Text
1158
  </label>
1159
  <div class="acx_qa_field">
1160
- <input type="text" name="acx_csma_subscribe_btn_text1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_btn_text1'];?>" size="20"/>
1161
  </div> <!-- acx_qa_field -->
1162
 
1163
  <label>
1164
  Button Text Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_subscribe_btn_text_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1165
  </label>
1166
  <div class="acx_qa_field">
1167
- <input type="text" name="acx_csma_subscribe_btn_text_color1" id="acx_csma_subscribe_btn_text_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_btn_text_color1'];?>" size="20"/>
1168
  <div style="position: absolute;" id="acx_csma_subscribe_btn_text_color1_div"></div>
1169
  </div> <!-- acx_qa_field -->
1170
  <label>
1171
  Button Color:<a onclick="acx_csma_restore_default('','#ff7800','acx_csma_subscribe_btn_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1172
  </label>
1173
  <div class="acx_qa_field">
1174
- <input type="text" name="acx_csma_subscribe_btn_color1" id="acx_csma_subscribe_btn_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_btn_color1'];?>" size="20"/>
1175
  <div style="position: absolute;" id="acx_csma_subscribe_btn_color1_div"></div>
1176
  </div> <!-- acx_qa_field -->
1177
  <label>
1178
  Button Hover Text Color:<a onclick="acx_csma_restore_default('','#0b1c2c','acx_csma_subscribe_btn_hover_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1179
  </label>
1180
  <div class="acx_qa_field">
1181
- <input type="text" name="acx_csma_subscribe_btn_hover_color1" id="acx_csma_subscribe_btn_hover_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_btn_hover_color1'];?>" size="20"/>
1182
  <div style="position: absolute;" id="acx_csma_subscribe_btn_hover_color1_div"></div>
1183
  </div> <!-- acx_qa_field -->
1184
  <label>
1185
  Button Hover Background Color:<a onclick="acx_csma_restore_default('','#ff881e','acx_csma_subscribe_btn_hover_bgcolor1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1186
  </label>
1187
  <div class="acx_qa_field">
1188
- <input type="text" name="acx_csma_subscribe_btn_hover_bgcolor1" id="acx_csma_subscribe_btn_hover_bgcolor1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_btn_hover_bgcolor1'];?>" size="20"/>
1189
  <div style="position: absolute;" id="acx_csma_subscribe_btn_hover_bgcolor1_div"></div>
1190
  </div> <!-- acx_qa_field -->
1191
  <label>
1192
  Subscribe Title:
1193
  </label>
1194
  <div class="acx_qa_field">
1195
- <input type="text" name="acx_csma_subscribe_title1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_title1'];?>" size="20"/>
1196
  </div> <!-- acx_qa_field -->
1197
  <label>
1198
  Subscribe Title Color:<a onclick="acx_csma_restore_default('','#ff7800','acx_csma_subscribe_title_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1199
  </label>
1200
  <div class="acx_qa_field">
1201
- <input type="text" name="acx_csma_subscribe_title_color1" id="acx_csma_subscribe_title_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_title_color1'];?>" size="20"/>
1202
  <div style="position: absolute;" id="acx_csma_subscribe_title_color1_div"></div>
1203
  </div> <!-- acx_qa_field -->
1204
  <label>
1205
  Subscribe Success Message:
1206
  </label>
1207
  <div class="acx_qa_field">
1208
- <input type="text" name="acx_csma_subscribe_success1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_success1'];?>" size="20"/>
1209
  </div> <!-- acx_qa_field -->
1210
  <label>
1211
  Subscribe Invalid Message:
1212
  </label>
1213
  <div class="acx_qa_field">
1214
- <input type="text" name="acx_csma_subscribe_invalid1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_invalid1'];?>" size="20"/>
1215
  </div> <!-- acx_qa_field -->
1216
 
1217
  </div> <!-- acx_csmap_q_and_a_inside -->
@@ -1220,33 +1363,33 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1220
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################# -->
1221
 
1222
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1223
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1224
 
1225
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1226
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">7)
1227
  Would you like to change the Footer block properties
1228
  </span>
1229
- <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>
1230
- <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;">
1231
  <div class="acx_csmap_q_and_a_inside">
1232
 
1233
  <label>
1234
  Footer Background:<a onclick="acx_csma_restore_default('','#ff7800','acx_csma_footer_bgcolor1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1235
  </label>
1236
  <div class="acx_qa_field">
1237
- <input type="text" name="acx_csma_footer_bgcolor1" id="acx_csma_footer_bgcolor1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_footer_bgcolor1'];?>" size="20"/>
1238
  <div style="position: absolute;" id="acx_csma_footer_bgcolor1_div"></div></div> <!-- acx_qa_field -->
1239
  <label>
1240
  Footer Text:
1241
  </label>
1242
  <div class="acx_qa_field">
1243
- <input type="text" name="acx_csma_footer_text1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_footer_text1'];?>" size="20"/>
1244
  </div> <!-- acx_qa_field -->
1245
  <label>
1246
  Footer Text Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_footer_text_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1247
  </label>
1248
  <div class="acx_qa_field">
1249
- <input type="text" name="acx_csma_footer_text_color1" id="acx_csma_footer_text_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_footer_text_color1'];?>" size="20"/>
1250
  <div style="position: absolute;" id="acx_csma_footer_text_color1_div"></div></div> <!-- acx_qa_field -->
1251
  </div> <!-- acx_csmap_q_and_a_inside -->
1252
  </div> <!-- acx_csmap_q_and_a -->
@@ -1258,19 +1401,19 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1258
  <div id="acx_csma_template_2" style="display:none;" class="acx_csma_template_option_holder">
1259
  <div id="acx_csma_2_p_q_and_a_h_main_holder">
1260
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1261
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1262
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1263
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">1)
1264
  Would you like to change the default background color
1265
  </span>
1266
- <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>
1267
- <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;">
1268
  <div class="acx_csmap_q_and_a_inside">
1269
  <label>Background Color:
1270
  <a onclick="acx_csma_restore_default('','#e4e4e4','acx_csma_bg_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1271
  </label>
1272
  <div class="acx_qa_field">
1273
- <input type="text" name="acx_csma_bg_color2" id="acx_csma_bg_color2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_bg_color2'];?>" onblur="acx_csma_validate(this.value);" size="20"/>
1274
  <div style="position: absolute;" id="acx_csma_bg_color2_div"></div>
1275
  </div> <!-- acx_qa_field -->
1276
  </div> <!-- acx_csmap_q_and_a_inside -->
@@ -1280,40 +1423,76 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1280
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################ -->
1281
 
1282
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
1283
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1284
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1285
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">2)
1286
  Would you like to change the default logo
1287
  </span>
1288
- <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>
1289
- <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;">
1290
  <div class="acx_csmap_q_and_a_inside">
 
 
 
 
 
 
 
1291
  <label>
1292
  Logo:<span id="acx_csma_span">(Recommended size 99x27,Image must be png and transparent)</span>
1293
  </label>
1294
  <div class="acx_qa_field">
1295
- <img id="custom_uploader_template_2_logo_field_preview" src="<?php echo $acx_csma_appearence_array['2']['acx_csma_logo2'];?>" style="width:100px;height:auto;">
1296
- <input type="hidden" id="custom_uploader_template_2_logo_field" name="acx_csma_logo2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_logo2'];?>" size="20"><a id="acx_upload_button_logo2" class="button">Pick a Logo</a>
1297
- <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>
1298
  </div> <!-- acx_qa_field -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1299
  </div> <!-- acx_csmap_q_and_a_inside -->
1300
  </div> <!-- acx_csmap_q_and_a -->
1301
  </div> <!-- acx_csmap_q_and_a_h -->
1302
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1303
 
1304
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1305
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1306
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1307
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">3)
1308
  Would you like to change the Title properties </span>
1309
- <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>
1310
- <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;">
1311
  <div class="acx_csmap_q_and_a_inside">
1312
  <label>
1313
  Title Text :
1314
  </label>
1315
  <div class="acx_qa_field">
1316
- <input type="text" name="acx_csma_title2" id="acx_csma_title2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_title2'];?>" size="20"/>
1317
  </div> <!-- acx_qa_field -->
1318
  <label>
1319
  Title Color:
@@ -1321,28 +1500,28 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1321
 
1322
  </label>
1323
  <div class="acx_qa_field">
1324
- <input type="text" name="acx_csma_title_color2" id="acx_csma_title_color2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_title_color2'];?>" onblur="acx_csma_validate(this.value);" size="20"/>
1325
  <div style="position: absolute;" id="acx_csma_title_color2_div"></div>
1326
  </div> <!-- acx_qa_field -->
1327
  <label>
1328
  Subtitle Text:
1329
  </label>
1330
  <div class="acx_qa_field">
1331
- <input type="text" name="acx_csma_subtitle_text2" id="acx_csma_subtitle_text2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_subtitle_text2'];?>" size="20"/>
1332
  </div> <!-- acx_qa_field -->
1333
  <label>
1334
  Subtitle Color:
1335
  <a onclick="acx_csma_restore_default('','#000000','acx_csma_subtitle_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1336
  </label>
1337
  <div class="acx_qa_field">
1338
- <input type="text" name="acx_csma_subtitle_color2" id="acx_csma_subtitle_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_subtitle_color2'];?>" size="20"/>
1339
  <div style="position: absolute;" id="acx_csma_subtitle_color2_div"></div>
1340
  </div> <!-- acx_qa_field -->
1341
  <label>
1342
  Background Color:<a onclick="acx_csma_restore_default('','#ffd800','acx_csma_inside_bg_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1343
  </label>
1344
  <div class="acx_qa_field">
1345
- <input type="text" name="acx_csma_inside_bg_color2" id="acx_csma_inside_bg_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_inside_bg_color2'];?>" size="20"/>
1346
  <div style="position: absolute;" id="acx_csma_inside_bg_color2_div"></div>
1347
  </div> <!-- acx_qa_field -->
1348
  </div> <!-- acx_csmap_q_and_a_inside -->
@@ -1351,58 +1530,58 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1351
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################-->
1352
 
1353
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1354
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1355
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1356
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">4)
1357
  Would you like to change the Timer block properties </span>
1358
- <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>
1359
- <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;">
1360
  <div class="acx_csmap_q_and_a_inside">
1361
  <label>
1362
  Timer Block Title
1363
  </label>
1364
  <div class="acx_qa_field">
1365
- <input type="text" name="acx_csma_timer_title2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_timer_title2'];?>" size="20"/>
1366
  </div> <!-- acx_qa_field -->
1367
  <label>
1368
  Subscribe Button TextColor:<a onclick="acx_csma_restore_default('','#ffd800','acx_csma_subscribe_btn_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1369
 
1370
  </label>
1371
  <div class="acx_qa_field">
1372
- <input type="text" name="acx_csma_subscribe_btn_color2" id="acx_csma_subscribe_btn_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_subscribe_btn_color2'];?>" size="20"/>
1373
  <div style="position: absolute;" id="acx_csma_subscribe_btn_color2_div"></div>
1374
  </div> <!-- acx_qa_field -->
1375
  <label>
1376
  Subscribe Success Message:
1377
  </label>
1378
  <div class="acx_qa_field">
1379
- <input type="text" name="acx_csma_subscribe_success2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_subscribe_success2'];?>" size="20"/>
1380
  </div> <!-- acx_qa_field -->
1381
  <label>
1382
  Subscribe Invalid Message:
1383
  </label>
1384
  <div class="acx_qa_field">
1385
- <input type="text" name="acx_csma_subscribe_invalid2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_subscribe_invalid2'];?>" size="20"/>
1386
  </div> <!-- acx_qa_field -->
1387
  <label>
1388
  Timer Input BackgroundColor:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_timer_input_bg_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1389
  </label>
1390
  <div class="acx_qa_field">
1391
- <input type="text" name="acx_csma_timer_input_bg_color2" id="acx_csma_timer_input_bg_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_timer_input_bg_color2'];?>" size="20"/>
1392
  <div style="position: absolute;" id="acx_csma_timer_input_bg_color2_div"></div>
1393
  </div> <!-- acx_qa_field -->
1394
  <label>
1395
  Input TextColor:<a onclick="acx_csma_restore_default('','#000000','acx_csma_timer_iptext_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1396
  </label>
1397
  <div class="acx_qa_field">
1398
- <input type="text" name="acx_csma_timer_iptext_color2" id="acx_csma_timer_iptext_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_timer_iptext_color2'];?>" size="20"/>
1399
  <div style="position: absolute;" id="acx_csma_timer_iptext_color2_div"></div>
1400
  </div> <!-- acx_qa_field -->
1401
  <label>
1402
  Heading Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_timer_head_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1403
  </label>
1404
  <div class="acx_qa_field">
1405
- <input type="text" name="acx_csma_timer_head_color2" id="acx_csma_timer_head_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_timer_head_color2'];?>" size="20"/>
1406
  <div style="position: absolute;" id="acx_csma_timer_head_color2_div"></div>
1407
  </div> <!-- acx_qa_field -->
1408
  <label>
@@ -1410,25 +1589,25 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1410
  </label>
1411
  <div class="acx_qa_field">
1412
  <?php $acx_csma_custom_html_top_temp2 =base64_decode($acx_csma_appearence_array['2']['acx_csma_custom_html_top_temp2']); ?>
1413
- <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;?></textarea>
1414
  </div><!-- acx_qa_field -->
1415
  <label>
1416
  Description Title:
1417
  </label>
1418
  <div class="acx_qa_field">
1419
- <input type="text" name="acx_csma_desc_title2" id="acx_csma_desc_title2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_desc_title2'];?>" size="20"/>
1420
  </div> <!-- acx_qa_field -->
1421
  <label>
1422
  Description Content:
1423
  </label>
1424
  <div class="acx_qa_field">
1425
- <textarea name="acx_csma_desc_subtitle2" id="acx_csma_desc_subtitle2"><?php echo base64_decode($acx_csma_appearence_array['2']['acx_csma_desc_subtitle2']);?> </textarea>
1426
  </div> <!-- acx_qa_field -->
1427
  <label>
1428
  Description TextColor:<a onclick="acx_csma_restore_default('','#000000','acx_csma_desc_text_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1429
  </label>
1430
  <div class="acx_qa_field">
1431
- <input type="text" name="acx_csma_desc_text_color2" id="acx_csma_desc_text_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_desc_text_color2'];?>" size="20"/>
1432
  <div style="position: absolute;" id="acx_csma_desc_text_color2_div"></div>
1433
  </div> <!-- acx_qa_field -->
1434
 
@@ -1437,31 +1616,31 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1437
  </div> <!-- acx_csmap_q_and_a_h -->
1438
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################-->
1439
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
1440
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1441
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1442
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">5)
1443
  Would you like to Add Social Media Icons Links
1444
  </span>
1445
- <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>
1446
- <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;">
1447
  <div class="acx_csmap_q_and_a_inside">
1448
  <label>
1449
  Facebook Link
1450
  </label>
1451
  <div class="acx_qa_field">
1452
- <input type="text" name="acx_csma_fb_link2" id="acx_csma_fb_link2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_fb_link2'];?>" size="20"/>
1453
  </div> <!-- acx_qa_field -->
1454
  <label>
1455
  Twitter Link
1456
  </label>
1457
  <div class="acx_qa_field">
1458
- <input type="text" name="acx_csma_twitter_link2" id="acx_csma_twitter_link2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_twitter_link2'];?>" size="20"/>
1459
  </div> <!-- acx_qa_field -->
1460
  <label>
1461
  LinkedIn Link
1462
  </label>
1463
  <div class="acx_qa_field">
1464
- <input type="text" name="acx_csma_linkedin_link2" id="acx_csma_linkedin_link2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_linkedin_link2'];?>" size="20"/>
1465
  </div> <!-- acx_qa_field -->
1466
  </div> <!-- acx_csmap_q_and_a_inside -->
1467
  </div> <!-- acx_csmap_q_and_a -->
@@ -1474,62 +1653,99 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1474
  <div id="acx_csma_template_3" style="display:none;" class="acx_csma_template_option_holder">
1475
  <div id="acx_csma_3_p_q_and_a_h_main_holder">
1476
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1477
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1478
 
1479
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1480
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">1)
1481
  Would you like to change the Logo
1482
  </span>
1483
- <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>
1484
- <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;">
1485
  <div class="acx_csmap_q_and_a_inside">
 
 
 
 
 
 
 
1486
  <label>
1487
  Logo:<span id="acx_csma_span">(Recommended size 161x38)</span>
1488
  </label>
1489
  <div class="acx_qa_field">
1490
- <img id="custom_uploader_template_3_logo_field_preview" src="<?php echo $acx_csma_appearence_array['3']['acx_csma_logo3'];?>" style="width:100px;height:auto;">
1491
- <input type="hidden" id="custom_uploader_template_3_logo_field" name="acx_csma_logo3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_logo3'];?>" size="20"><a id="acx_upload_button_logo3" class="button">Pick a Logo</a>
1492
- <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>
1493
 
1494
  </div> <!-- acx_qa_field -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1495
  </div> <!-- acx_csmap_q_and_a_inside -->
1496
  </div> <!-- acx_csmap_q_and_a -->
1497
  </div> <!-- acx_csmap_q_and_a_h -->
1498
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1499
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1500
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1501
 
1502
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1503
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">2)
1504
  Would you like to change the Title properties
1505
  </span>
1506
- <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>
1507
- <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;">
1508
  <div class="acx_csmap_q_and_a_inside">
1509
  <label>
1510
  Title:
1511
  </label>
1512
  <div class="acx_qa_field">
1513
- <input type="text" name="acx_csma_title3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_title3'];?>" size="20"/></td></tr>
1514
  </div> <!-- acx_qa_field -->
1515
  <label>
1516
  Title Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1517
  </label>
1518
  <div class="acx_qa_field">
1519
- <input type="text" name="acx_csma_title_color3" id="acx_csma_title_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_title_color3'];?>" size="20" /></td>
1520
  <div style="position: absolute;" id="acx_csma_title_color3_div"></div>
1521
  </div> <!-- acx_qa_field -->
1522
  <label>
1523
  Sub Title:
1524
  </label>
1525
  <div class="acx_qa_field">
1526
- <input type="text" name="acx_csma_subtitle_text3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subtitle_text3'];?>" size="20"/>
1527
  </div> <!-- acx_qa_field -->
1528
  <label>
1529
  SubTitle Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_subtitle_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1530
  </label>
1531
  <div class="acx_qa_field">
1532
- <input type="text" name="acx_csma_subtitle_color3" id="acx_csma_subtitle_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subtitle_color3'];?>" size="20" />
1533
  <div style="position: absolute;" id="acx_csma_subtitle_color3_div"></div>
1534
  </div> <!-- acx_qa_field -->
1535
  </div> <!-- acx_csmap_q_and_a_inside -->
@@ -1537,100 +1753,100 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1537
  </div> <!-- acx_csmap_q_and_a_h -->
1538
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1539
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1540
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1541
 
1542
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1543
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">3)
1544
  Would you like to change the Inside Block1 properties
1545
  </span>
1546
- <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>
1547
- <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;">
1548
  <div class="acx_csmap_q_and_a_inside">
1549
 
1550
  <label>
1551
  Title:
1552
  </label>
1553
  <div class="acx_qa_field">
1554
- <input type="text" name="acx_csma_subscribe_title3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_title3'];?>" size="20"/>
1555
  </div> <!-- acx_qa_field -->
1556
  <label>
1557
  Title Color:<a onclick="acx_csma_restore_default('','#fe7e01','acx_csma_subscribe_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1558
  </label>
1559
  <div class="acx_qa_field">
1560
- <input type="text" name="acx_csma_subscribe_title_color3" id="acx_csma_subscribe_title_color3" onblur="acx_csma_validate(this.value);"value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_title_color3'];?>" size="20"/>
1561
  <div style="position: absolute;" id="acx_csma_subscribe_title_color3_div"></div>
1562
  </div> <!-- acx_qa_field -->
1563
  <label>
1564
  Button Text
1565
  </label>
1566
  <div class="acx_qa_field">
1567
- <input type="text" name="acx_csma_subscribe_btn_text3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_btn_text3'];?>" size="20"/>
1568
  </div> <!-- acx_qa_field -->
1569
  <label>
1570
  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>
1571
  </label>
1572
  <div class="acx_qa_field">
1573
- <input type="text" name="acx_csma_subscribe_btn_text_color3" id="acx_csma_subscribe_btn_text_color3" onblur="acx_csma_validate(this.value);"value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_btn_text_color3'];?>" size="20"/>
1574
  <div style="position: absolute;" id="acx_csma_subscribe_btn_text_color3_div"></div>
1575
  </div> <!-- acx_qa_field -->
1576
  <label>
1577
  Button Color:<a onclick="acx_csma_restore_default('','#fe7e01','acx_csma_subscribe_btn_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1578
  </label>
1579
  <div class="acx_qa_field">
1580
- <input type="text" name="acx_csma_subscribe_btn_color3" id="acx_csma_subscribe_btn_color3" onblur="acx_csma_validate(this.value);"value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_btn_color3'];?>" size="20"/>
1581
  <div style="position: absolute;" id="acx_csma_subscribe_btn_color3_div"></div>
1582
  </div> <!-- acx_qa_field -->
1583
  <label>
1584
  Button Hover Text Color:<a onclick="acx_csma_restore_default('','#0b1c2c','acx_csma_subscribe_btn_hover_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1585
  </label>
1586
  <div class="acx_qa_field">
1587
- <input type="text" name="acx_csma_subscribe_btn_hover_color3" id="acx_csma_subscribe_btn_hover_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_btn_hover_color3'];?>" size="20"/>
1588
  <div style="position: absolute;" id="acx_csma_subscribe_btn_hover_color3_div"></div>
1589
  </div> <!-- acx_qa_field -->
1590
  <label>
1591
  Button Hover Background Color:<a onclick="acx_csma_restore_default('','#fe6001','acx_csma_subscribe_btn_hover_bgcolor3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1592
  </label>
1593
  <div class="acx_qa_field">
1594
- <input type="text" name="acx_csma_subscribe_btn_hover_bgcolor3" id="acx_csma_subscribe_btn_hover_bgcolor3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_btn_hover_bgcolor3'];?>" size="20"/>
1595
  <div style="position: absolute;" id="acx_csma_subscribe_btn_hover_bgcolor3_div"></div>
1596
  </div> <!-- acx_qa_field -->
1597
  <label>
1598
  Subscribe Success Message:
1599
  </label>
1600
  <div class="acx_qa_field">
1601
- <input type="text" name="acx_csma_subscribe_success3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_success3'];?>" size="20"/>
1602
  </div> <!-- acx_qa_field -->
1603
  <label>
1604
  Subscribe Invalid Message:
1605
  </label>
1606
  <div class="acx_qa_field">
1607
- <input type="text" name="acx_csma_subscribe_invalid3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_invalid3'];?>" size="20"/>
1608
  </div> <!-- acx_qa_field -->
1609
  </div> <!-- acx_csmap_q_and_a_inside -->
1610
  </div> <!-- acx_csmap_q_and_a -->
1611
  </div> <!-- acx_csmap_q_and_a_h -->
1612
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1613
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1614
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1615
 
1616
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1617
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">4)
1618
  Would you like to change the Inside Block2 properties
1619
  </span>
1620
- <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>
1621
- <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;">
1622
  <div class="acx_csmap_q_and_a_inside">
1623
  <label>
1624
  Title:
1625
  </label>
1626
  <div class="acx_qa_field">
1627
- <input type="text" name="acx_csma_inside_title3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_inside_title3'];?>" size="20"/>
1628
  </div> <!-- acx_qa_field -->
1629
  <label>
1630
  Title Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_inside_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1631
  </label>
1632
  <div class="acx_qa_field">
1633
- <input type="text" name="acx_csma_inside_title_color3" id="acx_csma_inside_title_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_inside_title_color3'];?>" size="20"/>
1634
  <div style="position: absolute;" id="acx_csma_inside_title_color3_div"></div>
1635
  </div> <!-- acx_qa_field -->
1636
  </div> <!-- acx_csmap_q_and_a_inside -->
@@ -1638,27 +1854,27 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1638
  </div> <!-- acx_csmap_q_and_a_h -->
1639
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1640
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1641
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1642
 
1643
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1644
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">5)
1645
  Would you like to change the Timer properties
1646
  </span>
1647
- <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>
1648
- <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;">
1649
  <div class="acx_csmap_q_and_a_inside">
1650
  <label>
1651
  Input Text Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_timer_iptext_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1652
  </label>
1653
  <div class="acx_qa_field">
1654
- <input type="text" name="acx_csma_timer_iptext_color3" id="acx_csma_timer_iptext_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_timer_iptext_color3'];?>" size="20"/>
1655
  <div style="position: absolute;" id="acx_csma_timer_iptext_color3_div"></div>
1656
  </div> <!-- acx_qa_field -->
1657
  <label>
1658
  Heading Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_timer_head_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1659
  </label>
1660
  <div class="acx_qa_field">
1661
- <input type="text" name="acx_csma_timer_head_color3" id="acx_csma_timer_head_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_timer_head_color3'];?>" size="20"/>
1662
  <div style="position: absolute;" id="acx_csma_timer_head_color3_div"></div>
1663
  </div> <!-- acx_qa_field -->
1664
  <label>
@@ -1666,25 +1882,25 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1666
  </label>
1667
  <div class="acx_qa_field">
1668
  <?php $acx_csma_custom_html_top_temp3 =base64_decode($acx_csma_appearence_array['3']['acx_csma_custom_html_top_temp3']); ?>
1669
- <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;?></textarea>
1670
  </div><!-- acx_qa_field -->
1671
  <label>
1672
  Description Title:
1673
  </label>
1674
  <div class="acx_qa_field">
1675
- <input type="text" name="acx_csma_desc_title3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_desc_title3'];?>" size="20"/>
1676
  </div> <!-- acx_qa_field -->
1677
  <label>
1678
  Description Sub Title:
1679
  </label>
1680
  <div class="acx_qa_field">
1681
- <textarea name="acx_csma_desc_subtitle3" id="acx_csma_desc_subtitle3" ><?php echo base64_decode($acx_csma_appearence_array['3']['acx_csma_desc_subtitle3']);?></textarea>
1682
  </div> <!-- acx_qa_field -->
1683
  <label>
1684
  Description Text Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_desc_text_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1685
  </label>
1686
  <div class="acx_qa_field">
1687
- <input type="text" name="acx_csma_desc_text_color3" id="acx_csma_desc_text_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_desc_text_color3'];?>" size="20"/>
1688
  <div style="position: absolute;" id="acx_csma_desc_text_color3_div"></div>
1689
  </div> <!-- acx_qa_field -->
1690
  </div> <!-- acx_csmap_q_and_a_inside -->
@@ -1692,25 +1908,25 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1692
  </div> <!-- acx_csmap_q_and_a_h -->
1693
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1694
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ###########################################-->
1695
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1696
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1697
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">6)
1698
  Would you like to change the Footer
1699
  </span>
1700
- <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>
1701
- <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;">
1702
  <div class="acx_csmap_q_and_a_inside">
1703
  <label>
1704
  Footer Text:
1705
  </label>
1706
  <div class="acx_qa_field">
1707
- <input type="text" name="acx_csma_footer_text3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_footer_text3'];?>" size="20"/>
1708
  </div> <!-- acx_qa_field -->
1709
  <label>
1710
  Footer Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_footer_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1711
  </label>
1712
  <div class="acx_qa_field">
1713
- <input type="text" name="acx_csma_footer_color3" id="acx_csma_footer_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_footer_color3'];?>" size="20"/>
1714
  <div style="position: absolute;" id="acx_csma_footer_color3_div"></div>
1715
  </div> <!-- acx_qa_field -->
1716
 
@@ -1720,44 +1936,44 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1720
  </div> <!-- acx_csmap_q_and_a_h -->
1721
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################ -->
1722
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
1723
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1724
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1725
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">7)
1726
  Would you like to Add Social Media Icons Links
1727
  </span>
1728
- <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>
1729
- <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;">
1730
  <div class="acx_csmap_q_and_a_inside">
1731
  <label>
1732
  Social Media Text:
1733
  </label>
1734
  <div class="acx_qa_field">
1735
- <input type="text" name="acx_csma_social_link_title3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_social_link_title3'];?>" size="20"/>
1736
  </div> <!-- acx_qa_field -->
1737
  <label>
1738
  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>
1739
  </label>
1740
  <div class="acx_qa_field">
1741
- <input type="text" name="acx_csma_social_link_title_color3" id="acx_csma_social_link_title_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_social_link_title_color3'];?>" size="20"/>
1742
  <div style="position: absolute;" id="acx_csma_social_link_title_color3_div"></div>
1743
  </div> <!-- acx_qa_field -->
1744
  <label>
1745
  Facebook Link:
1746
  </label>
1747
  <div class="acx_qa_field">
1748
- <input type="text" name="acx_csma_fb_link3" id="acx_csma_fb_link3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_fb_link3'];?>" size="20"/>
1749
  </div> <!-- acx_qa_field -->
1750
  <label>
1751
  Twitter Link:
1752
  </label>
1753
  <div class="acx_qa_field">
1754
- <input type="text" name="acx_csma_twitter_link3" id="acx_csma_twitter_link3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_twitter_link3'];?>" size="20"/>
1755
  </div> <!-- acx_qa_field -->
1756
  <label>
1757
  LinkedIn Link:
1758
  </label>
1759
  <div class="acx_qa_field">
1760
- <input type="text" name="acx_csma_linkedin_link3" id="acx_csma_linkedin_link3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_linkedin_link3'];?>" size="20"/>
1761
  </div> <!-- acx_qa_field -->
1762
  </div> <!-- acx_csmap_q_and_a_inside -->
1763
  </div> <!-- acx_csmap_q_and_a -->
@@ -1772,21 +1988,21 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1772
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ###########################################-->
1773
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1774
 
1775
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1776
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">1)
1777
  Would you like to change the default background Image
1778
  </span>
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
  Background Image:
1784
  </label>
1785
  <div class="acx_qa_field">
1786
- <img id="custom_uploader_template_4_img_field_preview" src="<?php echo $acx_csma_appearence_array['4']['acx_csma_background_image4'];?>" style="width:100px;height:auto;">
1787
- <input type="hidden" id="custom_uploader_template_4_img_field" name="acx_csma_background_image4" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_background_image4'];?>" size="20">
1788
  <a id="acx_upload_button_img4" class="button">Choose Image</a>
1789
- <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>
1790
  </div> <!-- acx_qa_field -->
1791
  </div> <!-- acx_csmap_q_and_a_inside -->
1792
  </div> <!-- acx_csmap_q_and_a -->
@@ -1795,59 +2011,97 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1795
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
1796
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1797
 
1798
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1799
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">2)
1800
  Are you sure to change the default logo
1801
  </span>
1802
- <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>
1803
- <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;">
1804
  <div class="acx_csmap_q_and_a_inside">
 
 
 
 
 
 
 
1805
  <label>
1806
  Logo:<span id="acx_csma_span">(Recommended size 326x138)</span>
1807
  </label>
1808
  <div class="acx_qa_field">
1809
- <img id="custom_uploader_template_4_logo_field_preview" src="<?php echo $acx_csma_appearence_array['4']['acx_csma_logo4'];?>" style="width:100px;height:auto;">
1810
- <input type="hidden" id="custom_uploader_template_4_logo_field" name="acx_csma_logo4" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_logo4'];?>" size="20"><a id="acx_upload_button_logo4" class="button">Pick a Logo</a>
1811
- <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>
1812
  </div> <!-- acx_qa_field -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1813
  </div> <!-- acx_csmap_q_and_a_inside -->
1814
  </div> <!-- acx_csmap_q_and_a -->
1815
  </div> <!-- acx_csmap_q_and_a_h -->
1816
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################ -->
1817
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
1818
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1819
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1820
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">3)
1821
  Would you like to change the Inside block properties
1822
  </span>
1823
- <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>
1824
- <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;">
1825
  <div class="acx_csmap_q_and_a_inside">
1826
  <label>
1827
  Background Color:<a onclick="acx_csma_restore_default('','#ebebeb','acx_csma_inside_bg_color4');" class="acx_csmap_button_reset">[Reset To Default]</a>
1828
  </label>
1829
  <div class="acx_qa_field">
1830
- <input type="text" name="acx_csma_inside_bg_color4" id="acx_csma_inside_bg_color4" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_inside_bg_color4'];?>" size="20"/>
1831
  <div style="position: absolute;" id="acx_csma_inside_bg_color4_div"></div>
1832
  </div> <!-- acx_qa_field -->
1833
  <label>
1834
  Title Text:
1835
  </label>
1836
  <div class="acx_qa_field">
1837
- <input type="text" name="acx_csma_title4" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_title4'];?>" size="20"/>
1838
  </div> <!-- acx_qa_field -->
1839
  <label>
1840
  Custom HTML Block Above Countdown Timer
1841
  </label>
1842
  <div class="acx_qa_field">
1843
  <?php $acx_csma_custom_html_top_temp4 =base64_decode($acx_csma_appearence_array['4']['acx_csma_custom_html_top_temp4']); ?>
1844
- <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;?></textarea>
1845
  </div><!-- acx_qa_field -->
1846
  <label>
1847
  Title Text color:<a onclick="acx_csma_restore_default('','#717171','acx_csma_title_color4');" class="acx_csmap_button_reset">[Reset To Default]</a>
1848
  </label>
1849
  <div class="acx_qa_field">
1850
- <input type="text" name="acx_csma_title_color4" id="acx_csma_title_color4" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_title_color4'];?>" size="20"/>
1851
  <div style="position: absolute;" id="acx_csma_title_color4_div"></div>
1852
  </div> <!-- acx_qa_field -->
1853
  </div> <!-- acx_csmap_q_and_a_inside -->
@@ -1857,27 +2111,27 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1857
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1858
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1859
 
1860
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1861
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">4)
1862
  Would you like to change the Timer block properties
1863
  </span>
1864
- <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>
1865
- <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;">
1866
  <div class="acx_csmap_q_and_a_inside">
1867
  <label>
1868
  Would you like to show Timer?
1869
  </label>
1870
  <div class="acx_qa_field">
1871
  <select name="acx_csma_show_timer4">
1872
- <option value="1"<?php if ($acx_csma_show_timer4 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
1873
- <option value="0"<?php if ($acx_csma_show_timer4 == "0") { echo 'selected="selected"'; } ?>>No</option>
1874
  </select>
1875
  </div>
1876
  <label>
1877
  Input Text Color:<a onclick="acx_csma_restore_default('','#717171','acx_csma_timer_iptext_color4');" class="acx_csmap_button_reset">[Reset To Default]</a>
1878
  </label>
1879
  <div class="acx_qa_field">
1880
- <input type="text" name="acx_csma_timer_iptext_color4" id="acx_csma_timer_iptext_color4" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_timer_iptext_color4'];?>" size="20"/>
1881
  <div style="position: absolute;" id="acx_csma_timer_iptext_color4_div"></div>
1882
  </div> <!-- acx_qa_field -->
1883
 
@@ -1885,7 +2139,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1885
  Heading Color:<a onclick="acx_csma_restore_default('','#717171','acx_csma_timer_head_color4');" class="acx_csmap_button_reset">[Reset To Default]</a>
1886
  </label>
1887
  <div class="acx_qa_field">
1888
- <input type="text" name="acx_csma_timer_head_color4" id="acx_csma_timer_head_color4" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_timer_head_color4'];?>" size="20"/>
1889
  <div style="position: absolute;" id="acx_csma_timer_head_color4_div"></div>
1890
  </div> <!-- acx_qa_field -->
1891
  <label>
@@ -1893,15 +2147,15 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1893
  </label>
1894
  <div class="acx_qa_field">
1895
  <select name="acx_csma_show_progressbar4">
1896
- <option value="1"<?php if ($acx_csma_show_progressbar4 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
1897
- <option value="0"<?php if ($acx_csma_show_progressbar4 == "0") { echo 'selected="selected"'; } ?>>No</option>
1898
  </select>
1899
  </div>
1900
  <label>
1901
  Progress Bar Color:<a onclick="acx_csma_restore_default('','#717171','acx_csma_progress_bar_color4');" class="acx_csmap_button_reset">[Reset To Default]</a>
1902
  </label>
1903
  <div class="acx_qa_field">
1904
- <input type="text" name="acx_csma_progress_bar_color4" id="acx_csma_progress_bar_color4" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_progress_bar_color4'];?>" size="20"/>
1905
  <div style="position: absolute;" id="acx_csma_progress_bar_color4_div"></div>
1906
  </div> <!-- acx_qa_field -->
1907
  <label>
@@ -1909,38 +2163,38 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1909
  </label>
1910
  <div class="acx_qa_field">
1911
  <?php $acx_csma_custom_html_bottom_temp4 =base64_decode($acx_csma_appearence_array['4']['acx_csma_custom_html_bottom_temp4']); ?>
1912
- <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;?></textarea>
1913
  </div><!-- acx_qa_field -->
1914
  </div> <!-- acx_csmap_q_and_a_inside -->
1915
  </div> <!-- acx_csmap_q_and_a -->
1916
  </div> <!-- acx_csmap_q_and_a_h -->
1917
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1918
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
1919
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1920
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1921
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">5)
1922
  Would you like to Add Social Media Icons Links
1923
  </span>
1924
- <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>
1925
- <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;">
1926
  <div class="acx_csmap_q_and_a_inside">
1927
  <label>
1928
  Facebook Link
1929
  </label>
1930
  <div class="acx_qa_field">
1931
- <input type="text" name="acx_csma_fb_link4" id="acx_csma_fb_link4" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_fb_link4'];?>" size="20"/>
1932
  </div> <!-- acx_qa_field -->
1933
  <label>
1934
  Twitter Link
1935
  </label>
1936
  <div class="acx_qa_field">
1937
- <input type="text" name="acx_csma_twitter_link4" id="acx_csma_twitter_link4" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_twitter_link4'];?>" size="20"/>
1938
  </div> <!-- acx_qa_field -->
1939
  <label>
1940
  LinkedIn Link
1941
  </label>
1942
  <div class="acx_qa_field">
1943
- <input type="text" name="acx_csma_linkedin_link4" id="acx_csma_linkedin_link4" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_linkedin_link4'];?>" size="20"/>
1944
  </div> <!-- acx_qa_field -->
1945
  </div> <!-- acx_csmap_q_and_a_inside -->
1946
  </div> <!-- acx_csmap_q_and_a -->
@@ -1952,20 +2206,20 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1952
  <div id="acx_csma_template_5" style="display:none;" class="acx_csma_template_option_holder">
1953
  <div id="acx_csma_5_p_q_and_a_h_main_holder">
1954
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1955
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1956
 
1957
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1958
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">1)
1959
  Would you like to change the Background
1960
  </span>
1961
- <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>
1962
- <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;">
1963
  <div class="acx_csmap_q_and_a_inside">
1964
  <label>
1965
  Background Color:<a onclick="acx_csma_restore_default('','#e9eaec','acx_csma_bgcolor5');" class="acx_csmap_button_reset">[Reset To Default]</a>
1966
  </label>
1967
  <div class="acx_qa_field">
1968
- <input type="text" name="acx_csma_bgcolor5" id="acx_csma_bgcolor5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_bgcolor5'];?>" size="20"/>
1969
  <div style="position: absolute;" id="acx_csma_bgcolor5_div"></div>
1970
  </div> <!-- acx_qa_field -->
1971
  </div><!-- acx_csmap_q_and_a_inside -->
@@ -1973,40 +2227,75 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1973
  </div> <!-- acx_csmap_q_and_a_h -->
1974
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1975
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1976
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1977
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1978
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">2)
1979
  Are you sure to change the Logo
1980
  </span>
1981
- <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>
1982
- <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;">
1983
  <div class="acx_csmap_q_and_a_inside">
 
 
 
 
 
 
 
1984
  <label>
1985
  Logo: <span id="acx_csma_span">(Recommended size 315x94)</span>
1986
  </label>
1987
  <div class="acx_qa_field">
1988
- <img id="custom_uploader_template_5_logo_field_preview" src="<?php echo $acx_csma_appearence_array['5']['acx_csma_logo5'];?>" style="width:100px;height:auto;">
1989
- <input type="hidden" id="custom_uploader_template_5_logo_field" name="acx_csma_logo5" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_logo5'];?>" size="20"><a id="acx_upload_button_logo5" class="button">Pick a Logo</a>
1990
- <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>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1991
  </div> <!-- acx_qa_field -->
 
 
 
 
 
 
 
 
 
 
 
 
 
1992
  </div><!-- acx_csmap_q_and_a_inside -->
1993
  </div> <!-- acx_csmap_q_and_a -->
1994
  </div> <!-- acx_csmap_q_and_a_h -->
1995
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1996
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1997
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
1998
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
1999
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">3)
2000
  Would you like to change the Background color
2001
  </span>
2002
- <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>
2003
- <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;">
2004
  <div class="acx_csmap_q_and_a_inside">
2005
  <label>
2006
  Background Color:<a onclick="acx_csma_restore_default('','#f5f5f5','acx_csma_inside_bg_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2007
  </label>
2008
  <div class="acx_qa_field">
2009
- <input type="text" name="acx_csma_inside_bg_color5" id="acx_csma_inside_bg_color5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_inside_bg_color5'];?>" size="20"/>
2010
  <div style="position: absolute;" id="acx_csma_inside_bg_color5_div"></div>
2011
  </div> <!-- acx_qa_field -->
2012
  </div><!-- acx_csmap_q_and_a_inside -->
@@ -2014,32 +2303,32 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
2014
  </div> <!-- acx_csmap_q_and_a_h -->
2015
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2016
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
2017
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
2018
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
2019
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">4)
2020
  Would you like to change the default Title properties
2021
  </span>
2022
- <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>
2023
- <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;">
2024
  <div class="acx_csmap_q_and_a_inside">
2025
  <label>
2026
  Title Text:
2027
  </label>
2028
  <div class="acx_qa_field">
2029
- <input type="text" name="acx_csma_title5" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_title5'];?>" size="20"/>
2030
  </div> <!-- acx_qa_field -->
2031
  <label>
2032
  Custom HTML Block Above Countdown Timer
2033
  </label>
2034
  <div class="acx_qa_field">
2035
  <?php $acx_csma_custom_html_top_temp5 =base64_decode($acx_csma_appearence_array['5']['acx_csma_custom_html_top_temp5']); ?>
2036
- <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;?></textarea>
2037
  </div><!-- acx_qa_field -->
2038
  <label>
2039
  Title Text Color:<a onclick="acx_csma_restore_default('','#4b4b4b','acx_csma_title_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2040
  </label>
2041
  <div class="acx_qa_field">
2042
- <input type="text" name="acx_csma_title_color5" id="acx_csma_title_color5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_title_color5'];?>" size="20"/>
2043
  <div style="position: absolute;" id="acx_csma_title_color5_div"></div>
2044
  </div> <!-- acx_qa_field -->
2045
  </div><!-- acx_csmap_q_and_a_inside -->
@@ -2047,35 +2336,35 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
2047
  </div> <!-- acx_csmap_q_and_a_h -->
2048
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2049
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
2050
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
2051
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
2052
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">5)
2053
  Would you like to change the Timer block
2054
  </span>
2055
- <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>
2056
- <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;">
2057
  <div class="acx_csmap_q_and_a_inside">
2058
  <label>
2059
  Would you like to show Timer?
2060
  </label>
2061
  <div class="acx_qa_field">
2062
  <select name="acx_csma_show_timer5">
2063
- <option value="1"<?php if ($acx_csma_show_timer5 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
2064
- <option value="0"<?php if ($acx_csma_show_timer5 == "0") { echo 'selected="selected"'; } ?>>No</option>
2065
  </select>
2066
  </div>
2067
  <label>
2068
  Input Text Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_timer_iptext_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2069
  </label>
2070
  <div class="acx_qa_field">
2071
- <input type="text" name="acx_csma_timer_iptext_color5" id="acx_csma_timer_iptext_color5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_timer_iptext_color5'];?>" size="20"/>
2072
  <div style="position: absolute;" id="acx_csma_timer_iptext_color5_div"></div>
2073
  </div> <!-- acx_qa_field -->
2074
  <label>
2075
  Heading Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_timer_head_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2076
  </label>
2077
  <div class="acx_qa_field">
2078
- <input type="text" name="acx_csma_timer_head_color5" id="acx_csma_timer_head_color5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_timer_head_color5'];?>" size="20"/>
2079
  <div style="position: absolute;" id="acx_csma_timer_head_color5_div"></div>
2080
  </div> <!-- acx_qa_field -->
2081
  <label>
@@ -2083,15 +2372,15 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
2083
  </label>
2084
  <div class="acx_qa_field">
2085
  <select name="acx_csma_show_progressbar5">
2086
- <option value="1"<?php if ($acx_csma_show_progressbar5 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
2087
- <option value="0"<?php if ($acx_csma_show_progressbar5 == "0") { echo 'selected="selected"'; } ?>>No</option>
2088
  </select>
2089
  </div>
2090
  <label>
2091
  Progress Bar Color:<a onclick="acx_csma_restore_default('','#717171','acx_csma_progress_bar_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2092
  </label>
2093
  <div class="acx_qa_field">
2094
- <input type="text" name="acx_csma_progress_bar_color5" id="acx_csma_progress_bar_color5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_progress_bar_color5'];?>" size="20"/>
2095
  <div style="position: absolute;" id="acx_csma_progress_bar_color5_div"></div>
2096
  </div> <!-- acx_qa_field -->
2097
  <label>
@@ -2099,76 +2388,76 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
2099
  </label>
2100
  <div class="acx_qa_field">
2101
  <?php $acx_csma_custom_html_bottom_temp5 =base64_decode($acx_csma_appearence_array['5']['acx_csma_custom_html_bottom_temp5']); ?>
2102
- <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;?></textarea>
2103
  </div><!-- acx_qa_field -->
2104
  </div><!-- acx_csmap_q_and_a_inside -->
2105
  </div> <!-- acx_csmap_q_and_a -->
2106
  </div> <!-- acx_csmap_q_and_a_h -->
2107
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2108
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
2109
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
2110
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
2111
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">6)
2112
  Would you like to change the Subscribe block
2113
  </span>
2114
- <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>
2115
- <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;">
2116
  <div class="acx_csmap_q_and_a_inside">
2117
  <label>
2118
  Background Color:<a onclick="acx_csma_restore_default('','#2f2f2f','acx_csma_subscribe_bg_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2119
  </label>
2120
  <div class="acx_qa_field">
2121
- <input type="text" name="acx_csma_subscribe_bg_color5" id="acx_csma_subscribe_bg_color5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_subscribe_bg_color5'];?>" size="20"/>
2122
  <div style="position: absolute;" id="acx_csma_subscribe_bg_color5_div"></div>
2123
  </div> <!-- acx_qa_field -->
2124
  <label>
2125
  Title:
2126
  </label>
2127
  <div class="acx_qa_field">
2128
- <input type="text" name="acx_csma_subscribe_title5" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_subscribe_title5'];?>" size="20"/>
2129
  </div> <!-- acx_qa_field -->
2130
  <label>
2131
  Subscribe Success Message:
2132
  </label>
2133
  <div class="acx_qa_field">
2134
- <input type="text" name="acx_csma_subscribe_success5" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_subscribe_success5'];?>" size="20"/>
2135
  </div> <!-- acx_qa_field -->
2136
  <label>
2137
  Subscribe Invalid Message:
2138
  </label>
2139
  <div class="acx_qa_field">
2140
- <input type="text" name="acx_csma_subscribe_invalid5" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_subscribe_invalid5'];?>" size="20"/>
2141
  </div> <!-- acx_qa_field -->
2142
  </div><!-- acx_csmap_q_and_a_inside -->
2143
  </div> <!-- acx_csmap_q_and_a -->
2144
  </div> <!-- acx_csmap_q_and_a_h -->
2145
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2146
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
2147
- <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1;?>
2148
- <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id;?>">
2149
- <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id;?>);">7)
2150
  Would you like to Add Social Media Icons Links
2151
  </span>
2152
- <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>
2153
- <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;">
2154
  <div class="acx_csmap_q_and_a_inside">
2155
  <label>
2156
  Facebook Link
2157
  </label>
2158
  <div class="acx_qa_field">
2159
- <input type="text" name="acx_csma_fb_link5" id="acx_csma_fb_link5" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_fb_link5'];?>" size="20"/>
2160
  </div> <!-- acx_qa_field -->
2161
  <label>
2162
  Twitter Link
2163
  </label>
2164
  <div class="acx_qa_field">
2165
- <input type="text" name="acx_csma_twitter_link5" id="acx_csma_twitter_link5" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_twitter_link5'];?>" size="20"/>
2166
  </div> <!-- acx_qa_field -->
2167
  <label>
2168
  LinkedIn Link
2169
  </label>
2170
  <div class="acx_qa_field">
2171
- <input type="text" name="acx_csma_linkedin_link5" id="acx_csma_linkedin_link5" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_linkedin_link5'];?>" size="20"/>
2172
  </div> <!-- acx_qa_field -->
2173
  </div> <!-- acx_csmap_q_and_a_inside -->
2174
  </div> <!-- acx_csmap_q_and_a -->
@@ -2177,7 +2466,7 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
2177
 
2178
  </div> <!-- acx_csma_5_p_q_and_a_h_main_holder -->
2179
  </div><!--acx_csma_template_5-->
2180
- <?php acx_csma_hook_function('acx_csma_hook_mainoptions_below_appearence_settings');?>
2181
  <div id="acx_csma_template_0" style="display:none;" class="acx_csma_template_option_holder">
2182
  <table>
2183
  <tr><td>
@@ -2185,14 +2474,16 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
2185
  Custom HTML content
2186
  </label></td>
2187
  <td><?php $acx_csma_custom_html_val =base64_decode(get_option('acx_csma_custom_html_val')); ?>
2188
- <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;?></textarea>
2189
  </td>
2190
  </tr>
2191
  </table>
2192
  </div><!-- acx_csma_template_0-->
2193
  </div><!--acx_csma_tab_block_2-->
2194
  <table>
2195
- <tr><td colspan="3"><p><a onclick="acx_csma_save_settings('acx_csma_ip_list1');" name="Submit" id="Submit" class="button button-primary" style="margin-left:20px;"><?php _e('Save Settings','acx_csma_config');?></a></p></td></tr>
 
 
2196
  </table>
2197
  </form>
2198
  </div>
@@ -2200,11 +2491,13 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
2200
  <?php
2201
  if($acx_csma_template == "") { $acx_csma_template = "1"; }
2202
  if($acx_csma_template != "")
2203
- {?>
 
2204
  <script type="text/javascript">
2205
  jQuery(document).ready(function()
2206
  {
2207
- acx_csma_rdbtn_show_div('<?php echo $acx_csma_template;?>');
 
2208
  });
2209
  </script>
2210
  <?php
@@ -2228,6 +2521,15 @@ jQuery(document).ready(function()
2228
 
2229
  acx_csma_upload_images_template_loader("acx_upload_button_logo5","Choose Logo","Choose Image","custom_uploader_template_5_logo_field","custom_uploader_template_5_logo_field_preview");
2230
  });
 
 
 
 
 
 
 
 
 
2231
 
2232
  //form submit
2233
  function acx_csma_save_settings(acx_csma_selectbox_id)
@@ -2311,18 +2613,21 @@ function acx_csma_removeItem(acx_csma_selectbox)
2311
 
2312
  // add date picker
2313
  jQuery('#datetimepicker').datetimepicker({
2314
- dayOfWeekStart : 1,
2315
- lang:'en',
2316
-
 
 
2317
  });
2318
  // show template div
2319
  function acx_csma_rdbtn_show_div(temp)
2320
  {
2321
- jQuery(".acx_csma_template_option_holder").removeClass("acx_csma_temp_active");
2322
  jQuery('.acx_csma_template_option_holder').fadeOut();
2323
 
2324
- jQuery('#acx_csma_template_'+temp).addClass("acx_csma_temp_active");
2325
  jQuery('#acx_csma_template_'+temp).fadeIn();
 
2326
  }
2327
  function acx_csmap_easy_qa_toggle(id)
2328
  { var acx_csma_toggle_common = ".acx_csma_toggle";
@@ -2350,21 +2655,29 @@ function acx_csma_restore_default(img_id,default_value,text_id,set_bg)
2350
  {
2351
  var text_id_j="#"+text_id;
2352
  jQuery(text_id_j).css('background',default_value);
2353
- /* var a = FFFFFF - 7FFFFF ;
2354
- alert(a); */
2355
  }
2356
  if(img_id!="")
2357
  {
2358
  var acx_csma_bg_img_id=document.getElementById(img_id);
2359
  acx_csma_bg_img_id.src = default_value;
2360
  }
2361
- //alert(default_value);
2362
  document.getElementById(text_id).value = default_value;
2363
  }
2364
  jQuery(document).ready(function()
2365
  {
2366
  var acx_csma_cookie = getCookie("acx_csma_cookie");
2367
- acx_csma_show_div(acx_csma_cookie) ;
 
 
 
 
 
 
 
 
 
 
 
2368
  });
2369
  function acx_csmap_easy_qa_expandall()
2370
  {<?php for ($i = 1; $i <= $acx_csmap_qa_id; $i++) { ?>
@@ -2376,5 +2689,5 @@ acx_csmap_easy_qa_toggle(<?php echo $i; ?>);
2376
  { ?>
2377
  acx_csmap_easy_qa_expandall();
2378
  <?php }?>
2379
- <?php acx_csma_hook_function('acx_csma_hook_mainoptions_below_javascript');?>
2380
  </script>
35
  $acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
36
  }
37
  }
 
38
  //set default values to database
39
  //******************template 1**********************
40
  $acx_csma_background_image1= ACX_CSMA_BASE_LOCATION . 'templates/1/images/body_bg.jpg';
41
  $acx_csma_logo1=ACX_CSMA_BASE_LOCATION . 'templates/1/images/logo.png';
42
+ $acx_csma_logo_choice1="image";
43
+ $acx_csma_logo_text1=get_bloginfo('name');
44
+ $acx_csma_logo_text_color1="#ffffff";
45
  $acx_csma_title1="Something New Is Coming";
46
  $acx_csma_title_color1="#ffffff";
47
  $acx_csma_subtitle_text1="We are Working on Our Website";
72
  // *******************template2*********************
73
  $acx_csma_bg_color2="#e4e4e4";
74
  $acx_csma_logo2= ACX_CSMA_BASE_LOCATION . 'templates/2/images/logo.png';
75
+ $acx_csma_logo_choice2="image";
76
+ $acx_csma_logo_text2=get_bloginfo('name');
77
+ $acx_csma_logo_text_color2="#ffffff";
78
  $acx_csma_title2="Hello";
79
  $acx_csma_title_color2="#000000";
80
  $acx_csma_subtitle_text2="We are Coming Very Soon";
97
  acx_csma_hook_function('acx_csma_hook_mainoptions_set_default_template_2');
98
  //*******************template 3*******************
99
  $acx_csma_logo3= ACX_CSMA_BASE_LOCATION . 'templates/3/images/logo.png';
100
+ $acx_csma_logo_choice3="image";
101
+ $acx_csma_logo_text3=get_bloginfo('name');
102
+ $acx_csma_logo_text_color3="#ffffff";
103
  $acx_csma_title3="Hello";
104
  $acx_csma_title_color3="#ffffff";
105
  $acx_csma_subtitle_text3="We are Coming Very Soon";
132
  // ******************template 4*******************
133
  $acx_csma_background_image4 = ACX_CSMA_BASE_LOCATION . 'templates/4/images/body_bg.jpg';
134
  $acx_csma_logo4 = ACX_CSMA_BASE_LOCATION . 'templates/4/images/logo.png';
135
+ $acx_csma_logo_choice4="image";
136
+ $acx_csma_logo_text4=get_bloginfo('name');
137
+ $acx_csma_logo_text_color4="#ffffff";
138
  $acx_csma_inside_bg_color4="#ebebeb";
139
  $acx_csma_title4="Our Website is Under Construction";
140
  $acx_csma_custom_html_top_temp4="";
152
  //*******************template 5********************
153
  $acx_csma_bgcolor5="#e9eaec";
154
  $acx_csma_logo5= ACX_CSMA_BASE_LOCATION . 'templates/5/images/logo.png';
155
+ $acx_csma_logo_choice5="image";
156
+ $acx_csma_logo_text5=get_bloginfo('name');
157
+ $acx_csma_logo_text_color5="#000000";
158
  $acx_csma_inside_bg_color5="#f5f5f5";
159
  $acx_csma_title5="Our Website is Under Construction";
160
  $acx_csma_custom_html_top_temp5="";
177
  if($acx_csma_appearence_array=="" || !is_array($acx_csma_appearence_array))
178
  {
179
  $acx_csma_appearence_array['1'] = array(
180
+ 'acx_csma_background_image1'=>esc_url_raw($acx_csma_background_image1),
181
+ 'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice1),
182
+ 'acx_csma_logo1'=>esc_url_raw($acx_csma_logo1),
183
+ 'acx_csma_logo_text1' =>sanitize_text_field($acx_csma_logo_text1),
184
+ 'acx_csma_logo_text_color1' =>sanitize_text_field($acx_csma_logo_text_color1),
185
+ 'acx_csma_title1'=>sanitize_text_field($acx_csma_title1),
186
+ 'acx_csma_title_color1'=>sanitize_text_field($acx_csma_title_color1),
187
+ 'acx_csma_subtitle_text1'=>sanitize_text_field($acx_csma_subtitle_text1),
188
+ 'acx_csma_subtitle_color1'=>sanitize_text_field($acx_csma_subtitle_color1),
189
  'acx_csma_custom_html_top_temp1'=>$acx_csma_custom_html_top_temp1,
190
+ 'acx_csma_inside_bg_color1'=>sanitize_text_field($acx_csma_inside_bg_color1),
191
+ 'acx_csma_inside_title1'=>sanitize_text_field($acx_csma_inside_title1),
192
+ 'acx_csma_inside_title_color1'=>sanitize_text_field($acx_csma_inside_title_color1),
193
  'acx_csma_custom_html_bottom_temp1'=>$acx_csma_custom_html_bottom_temp1,
194
+ 'acx_csma_show_timer1'=>sanitize_text_field($acx_csma_show_timer1),
195
+ 'acx_csma_timer_bg_color1'=>sanitize_text_field($acx_csma_timer_bg_color1),
196
+ 'acx_csma_timer_iptext_color1'=>sanitize_text_field($acx_csma_timer_iptext_color1),
197
+ 'acx_csma_timer_head_color1'=>sanitize_text_field($acx_csma_timer_head_color1),
198
+ 'acx_csma_subscribe_bg_color1'=>sanitize_text_field($acx_csma_subscribe_bg_color1),
199
+ 'acx_csma_subscribe_btn_text1'=>sanitize_text_field($acx_csma_subscribe_btn_text1),
200
+ 'acx_csma_subscribe_btn_text_color1'=>sanitize_text_field($acx_csma_subscribe_btn_text_color1),
201
+ 'acx_csma_subscribe_btn_color1'=>sanitize_text_field($acx_csma_subscribe_btn_color1),
202
+ 'acx_csma_subscribe_btn_hover_color1'=>sanitize_text_field($acx_csma_subscribe_btn_hover_color1),
203
+ 'acx_csma_subscribe_btn_hover_bgcolor1'=>sanitize_text_field($acx_csma_subscribe_btn_hover_bgcolor1),
204
+ 'acx_csma_subscribe_title1'=>sanitize_text_field($acx_csma_subscribe_title1),
205
+ 'acx_csma_subscribe_title_color1'=>sanitize_text_field($acx_csma_subscribe_title_color1),
206
+ 'acx_csma_subscribe_success1'=>sanitize_text_field($acx_csma_subscribe_success1),
207
+ 'acx_csma_subscribe_invalid1'=>sanitize_text_field($acx_csma_subscribe_invalid1),
208
+ 'acx_csma_footer_bgcolor1'=>sanitize_text_field($acx_csma_footer_bgcolor1),
209
+ 'acx_csma_footer_text1'=>sanitize_text_field($acx_csma_footer_text1),
210
+ 'acx_csma_footer_text_color1'=>sanitize_text_field($acx_csma_footer_text_color1)
211
  );
212
  $acx_csma_appearence_array['2'] = array(
213
+ 'acx_csma_bg_color2'=>sanitize_text_field($acx_csma_bg_color2),
214
+ 'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice2),
215
+ 'acx_csma_logo2'=>esc_url_raw($acx_csma_logo2),
216
+ 'acx_csma_logo_text2' =>sanitize_text_field($acx_csma_logo_text2),
217
+ 'acx_csma_logo_text_color2' =>sanitize_text_field($acx_csma_logo_text_color2),
218
+ 'acx_csma_title2'=>sanitize_text_field($acx_csma_title2),
219
+ 'acx_csma_title_color2'=>sanitize_text_field($acx_csma_title_color2),
220
+ 'acx_csma_subtitle_text2'=>sanitize_text_field($acx_csma_subtitle_text2),
221
+ 'acx_csma_subtitle_color2'=>sanitize_text_field($acx_csma_subtitle_color2),
222
+ 'acx_csma_inside_bg_color2'=>sanitize_text_field($acx_csma_inside_bg_color2),
223
+ 'acx_csma_timer_title2'=>sanitize_text_field($acx_csma_timer_title2),
224
+ 'acx_csma_subscribe_btn_color2'=>sanitize_text_field($acx_csma_subscribe_btn_color2),
225
+ 'acx_csma_subscribe_success2'=>sanitize_text_field($acx_csma_subscribe_success2),
226
+ 'acx_csma_subscribe_invalid2'=>sanitize_text_field($acx_csma_subscribe_invalid2),
227
+ 'acx_csma_timer_input_bg_color2'=>sanitize_text_field($acx_csma_timer_input_bg_color2),
228
+ 'acx_csma_timer_iptext_color2'=>sanitize_text_field($acx_csma_timer_iptext_color2),
229
+ 'acx_csma_timer_head_color2'=>sanitize_text_field($acx_csma_timer_head_color2),
230
  'acx_csma_custom_html_top_temp2'=>$acx_csma_custom_html_top_temp2,
231
+ 'acx_csma_desc_title2'=>sanitize_text_field($acx_csma_desc_title2),
232
+ 'acx_csma_desc_subtitle2'=>sanitize_text_field($acx_csma_desc_subtitle2),
233
+ 'acx_csma_desc_text_color2'=>sanitize_text_field($acx_csma_desc_text_color2),
234
+ 'acx_csma_fb_link2'=>esc_url_raw($acx_csma_fb_link2),
235
+ 'acx_csma_twitter_link2'=>esc_url_raw($acx_csma_twitter_link2),
236
+ 'acx_csma_linkedin_link2'=>esc_url_raw($acx_csma_linkedin_link2)
237
  );
238
  $acx_csma_appearence_array['3'] =array(
239
+ 'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice3),
240
+ 'acx_csma_logo3'=>esc_url_raw($acx_csma_logo3),
241
+ 'acx_csma_logo_text3' =>sanitize_text_field($acx_csma_logo_text3),
242
+ 'acx_csma_logo_text_color3' =>sanitize_text_field($acx_csma_logo_text_color3),
243
+ 'acx_csma_title3'=>sanitize_text_field($acx_csma_title3),
244
+ 'acx_csma_title_color3'=>sanitize_text_field($acx_csma_title_color3),
245
+ 'acx_csma_subtitle_text3'=>sanitize_text_field($acx_csma_subtitle_text3),
246
+ 'acx_csma_subtitle_color3'=>sanitize_text_field($acx_csma_subtitle_color3),
247
+ 'acx_csma_subscribe_title3'=>sanitize_text_field($acx_csma_subscribe_title3),
248
+ 'acx_csma_subscribe_title_color3'=>sanitize_text_field($acx_csma_subscribe_title_color3),
249
+ 'acx_csma_subscribe_btn_text3'=>sanitize_text_field($acx_csma_subscribe_btn_text3),
250
+ 'acx_csma_subscribe_btn_text_color3'=>sanitize_text_field($acx_csma_subscribe_btn_text_color3),
251
+ 'acx_csma_subscribe_btn_color3'=>sanitize_text_field($acx_csma_subscribe_btn_color3),
252
+ 'acx_csma_subscribe_btn_hover_color3'=>sanitize_text_field($acx_csma_subscribe_btn_hover_color3),
253
+ 'acx_csma_subscribe_btn_hover_bgcolor3'=>sanitize_text_field($acx_csma_subscribe_btn_hover_bgcolor3),
254
+ 'acx_csma_subscribe_success3'=>sanitize_text_field($acx_csma_subscribe_success3),
255
+ 'acx_csma_subscribe_invalid3'=>sanitize_text_field($acx_csma_subscribe_invalid3),
256
+ 'acx_csma_inside_title3'=>sanitize_text_field($acx_csma_inside_title3),
257
+ 'acx_csma_inside_title_color3'=>sanitize_text_field($acx_csma_inside_title_color3),
258
+ 'acx_csma_timer_iptext_color3'=>sanitize_text_field($acx_csma_timer_iptext_color3),
259
+ 'acx_csma_timer_head_color3'=>sanitize_text_field($acx_csma_timer_head_color3),
260
  'acx_csma_custom_html_top_temp3'=>$acx_csma_custom_html_top_temp3,
261
+ 'acx_csma_desc_title3'=>sanitize_text_field($acx_csma_desc_title3),
262
+ 'acx_csma_desc_subtitle3'=>sanitize_text_field($acx_csma_desc_subtitle3),
263
+ 'acx_csma_desc_text_color3'=>sanitize_text_field($acx_csma_desc_text_color3),
264
+ 'acx_csma_footer_text3'=>sanitize_text_field($acx_csma_footer_text3),
265
+ 'acx_csma_footer_color3'=>sanitize_text_field($acx_csma_footer_color3),
266
+ 'acx_csma_social_link_title3'=>sanitize_text_field($acx_csma_social_link_title3),
267
+ 'acx_csma_social_link_title_color3'=>sanitize_text_field($acx_csma_social_link_title_color3),
268
+ 'acx_csma_fb_link3'=>esc_url_raw($acx_csma_fb_link3),
269
+ 'acx_csma_twitter_link3'=>esc_url_raw($acx_csma_twitter_link3),
270
+ 'acx_csma_linkedin_link3'=>esc_url_raw($acx_csma_linkedin_link3)
271
  );
272
  $acx_csma_appearence_array['4'] =array(
273
+ 'acx_csma_background_image4'=>esc_url_raw($acx_csma_background_image4),
274
+ 'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice4),
275
+ 'acx_csma_logo4'=>esc_url_raw($acx_csma_logo4),
276
+ 'acx_csma_logo_text4' =>sanitize_text_field($acx_csma_logo_text4),
277
+ 'acx_csma_logo_text_color4' =>sanitize_text_field($acx_csma_logo_text_color4),
278
+ 'acx_csma_inside_bg_color4'=>sanitize_text_field($acx_csma_inside_bg_color4),
279
+ 'acx_csma_title4'=>sanitize_text_field($acx_csma_title4),
280
  'acx_csma_custom_html_top_temp4'=>$acx_csma_custom_html_top_temp4,
281
+ 'acx_csma_title_color4'=>sanitize_text_field($acx_csma_title_color4),
282
+ 'acx_csma_show_timer4'=>sanitize_text_field($acx_csma_show_timer4),
283
+ 'acx_csma_timer_iptext_color4'=>sanitize_text_field($acx_csma_timer_iptext_color4),
284
+ 'acx_csma_timer_head_color4'=>sanitize_text_field($acx_csma_timer_head_color4),
285
  'acx_csma_show_progressbar4'=>$acx_csma_show_progressbar4,
286
+ 'acx_csma_progress_bar_color4'=>sanitize_text_field($acx_csma_progress_bar_color4),
287
  'acx_csma_custom_html_bottom_temp4'=>$acx_csma_custom_html_bottom_temp4,
288
+ 'acx_csma_fb_link4'=>esc_url_raw($acx_csma_fb_link4),
289
+ 'acx_csma_twitter_link4'=>esc_url_raw($acx_csma_twitter_link4),
290
+ 'acx_csma_linkedin_link4'=>esc_url_raw($acx_csma_linkedin_link4)
291
  );
292
  $acx_csma_appearence_array['5'] =array(
293
+ 'acx_csma_bgcolor5'=>sanitize_text_field($acx_csma_bgcolor5),
294
+ 'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice5),
295
+ 'acx_csma_logo5'=>esc_url_raw($acx_csma_logo5),
296
+ 'acx_csma_logo_text5' =>sanitize_text_field($acx_csma_logo_text5),
297
+ 'acx_csma_logo_text_color5' =>sanitize_text_field($acx_csma_logo_text_color5),
298
+ 'acx_csma_inside_bg_color5'=>sanitize_text_field($acx_csma_inside_bg_color5),
299
+ 'acx_csma_title5'=>sanitize_text_field($acx_csma_title5),
300
  'acx_csma_custom_html_top_temp5'=>$acx_csma_custom_html_top_temp5,
301
+ 'acx_csma_title_color5'=>sanitize_text_field($acx_csma_title_color5),
302
+ 'acx_csma_show_timer5'=>sanitize_text_field($acx_csma_show_timer5),
303
+ 'acx_csma_timer_iptext_color5'=>sanitize_text_field($acx_csma_timer_iptext_color5),
304
+ 'acx_csma_timer_head_color5'=>sanitize_text_field($acx_csma_timer_head_color5),
305
  'acx_csma_show_progressbar5'=>$acx_csma_show_progressbar5,
306
+ 'acx_csma_progress_bar_color5'=>sanitize_text_field($acx_csma_progress_bar_color5),
307
  'acx_csma_custom_html_bottom_temp5'=>$acx_csma_custom_html_bottom_temp5,
308
+ 'acx_csma_subscribe_bg_color5'=>sanitize_text_field($acx_csma_subscribe_bg_color5),
309
+ 'acx_csma_subscribe_title5'=>sanitize_text_field($acx_csma_subscribe_title5),
310
+ 'acx_csma_subscribe_success5'=>sanitize_text_field($acx_csma_subscribe_success5),
311
+ 'acx_csma_subscribe_invalid5'=>sanitize_text_field($acx_csma_subscribe_invalid5),
312
+ 'acx_csma_fb_link5'=>esc_url_raw($acx_csma_fb_link5),
313
+ 'acx_csma_twitter_link5'=>esc_url_raw($acx_csma_twitter_link5),
314
+ 'acx_csma_linkedin_link5'=>esc_url_raw($acx_csma_linkedin_link5)
315
  );
316
 
317
  if(!is_serialized($acx_csma_appearence_array))
331
  }
332
  if($acx_csma_hidden == 'Y')
333
  {
334
+ if (!isset($_POST['acx_csma_save_config'])) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
335
+ if (!wp_verify_nonce($_POST['acx_csma_save_config'],'acx_csma_save_config')) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
336
+ if(!current_user_can('manage_options')) die("<br><br>Sorry, You have no permission to do this action...</a>");
337
  //Form data sent
338
  acx_csma_hook_function('acx_csma_hook_mainoptions_inside_if_submit');
339
  $acx_csma_activation_status =$_POST['acx_csma_activate'];
340
  update_option('acx_csma_activation_status',$acx_csma_activation_status);
341
+ $acx_csma_meta_title=sanitize_text_field($_POST['acx_csma_meta_title']);
342
  update_option('acx_csma_meta_title',$acx_csma_meta_title);
343
+ $acx_csma_meta_description=sanitize_text_field($_POST['acx_csma_meta_description']);
344
  update_option('acx_csma_meta_description',$acx_csma_meta_description);
345
+ $acx_csma_meta_keywords=sanitize_text_field($_POST['acx_csma_meta_keywords']);
346
  update_option('acx_csma_meta_keywords',$acx_csma_meta_keywords);
347
  $acx_csma_favicon=$_POST['acx_csma_favicon_field'];
348
+ update_option('acx_csma_favicon',esc_url_raw($acx_csma_favicon));
349
  $acx_csma_date_time=$_POST['acx_csma_date_time'];
350
+ $acx_csma_date_time = explode(" ",$acx_csma_date_time);
351
  $acx_csma_t1=explode("/",$acx_csma_date_time[0]);
352
  $acx_csma_t2=explode(":",$acx_csma_date_time[1]);
353
+ $timestamp = mktime($acx_csma_t2[0],$acx_csma_t2[1],0,$acx_csma_t1[1],$acx_csma_t1[2],$acx_csma_t1[0]);//mktime(hour,minute,second,month,day,year);
354
  update_option('acx_csma_date_time',$timestamp);
355
  if(ISSET($_POST['acx_csma_ip_list']))
356
  {
386
  $acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
387
  }
388
 
389
+ $acx_csma_background_image1=esc_url_raw($_POST['acx_csma_background_image1']);
390
  if($acx_csma_background_image1==""){$acx_csma_background_image1=$acx_csma_appearence_array['1']['acx_csma_background_image1'] ;}
391
+ if(ISSET($_POST['acx_csma_logo_choice1']))
392
+ {
393
+ $acx_csma_logo_choice1=sanitize_text_field($_POST['acx_csma_logo_choice1']);
394
+ }
395
+ else{
396
+ if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['1'])){
397
+ $acx_csma_logo_choice1=$acx_csma_appearence_array['1']['acx_csma_logo_choice'];
398
+ }else{
399
+ $acx_csma_logo_choice1='image';
400
+ }
401
+ }
402
+ $acx_csma_logo1=esc_url($_POST['acx_csma_logo1']);if($acx_csma_logo1==""){$acx_csma_logo1=$acx_csma_appearence_array['1']['acx_csma_logo1'];}
403
+ $acx_csma_logo_text1=sanitize_text_field($_POST['acx_csma_logo_text1']);
404
+ $acx_csma_logo_text_color1=sanitize_text_field($_POST['acx_csma_logo_text_color1']);if($acx_csma_logo_text_color1==""){$acx_csma_logo_text_color1=$acx_csma_appearence_array['1']['acx_csma_logo_text_color1'];}
405
+ $acx_csma_title1=sanitize_text_field($_POST['acx_csma_title1']);if($acx_csma_title1==""){$acx_csma_title1=$acx_csma_appearence_array['1']['acx_csma_title1'];}
406
+ $acx_csma_title_color1=sanitize_text_field($_POST['acx_csma_title_color1']);if($acx_csma_title_color1==""){$acx_csma_title_color1=$acx_csma_appearence_array['1']['acx_csma_title_color1'];}
407
+ $acx_csma_subtitle_text1=sanitize_text_field($_POST['acx_csma_subtitle_text1']);
408
+ $acx_csma_subtitle_color1=sanitize_text_field($_POST['acx_csma_subtitle_color1']);if($acx_csma_subtitle_color1==""){$acx_csma_subtitle_color1=$acx_csma_appearence_array['1']['acx_csma_subtitle_color1'];}
409
  $acx_csma_custom_html_top_temp1=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_top_temp1'])));
410
  $acx_csma_custom_html_bottom_temp1=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_bottom_temp1'])));
411
+ $acx_csma_inside_bg_color1=sanitize_text_field($_POST['acx_csma_inside_bg_color1']);if($acx_csma_inside_bg_color1==""){$acx_csma_inside_bg_color1=$acx_csma_appearence_array['1']['acx_csma_inside_bg_color1'];}
412
+ $acx_csma_inside_title1=sanitize_text_field($_POST['acx_csma_inside_title1']);
413
+ $acx_csma_inside_title_color1=sanitize_text_field($_POST['acx_csma_inside_title_color1']);if($acx_csma_inside_title_color1==""){ $acx_csma_inside_title_color1=$acx_csma_appearence_array['1']['acx_csma_inside_title_color1'];}
414
+ $acx_csma_show_timer1=sanitize_text_field($_POST['acx_csma_show_timer1']);if($acx_csma_show_timer1==""){ $acx_csma_show_timer1=$acx_csma_appearence_array['1']['acx_csma_show_timer1'];}
415
+ $acx_csma_timer_bg_color1=sanitize_text_field($_POST['acx_csma_timer_bg_color1']);if($acx_csma_timer_bg_color1==""){ $acx_csma_timer_bg_color1=$acx_csma_appearence_array['1']['acx_csma_timer_bg_color1'];}
416
+ $acx_csma_timer_iptext_color1=sanitize_text_field($_POST['acx_csma_timer_iptext_color1']);if($acx_csma_timer_iptext_color1==""){$acx_csma_timer_iptext_color1=$acx_csma_appearence_array['1']['acx_csma_timer_iptext_color1'];}
417
+ $acx_csma_timer_head_color1=sanitize_text_field($_POST['acx_csma_timer_head_color1']);if($acx_csma_timer_head_color1==""){$acx_csma_timer_head_color1=$acx_csma_appearence_array['1']['acx_csma_timer_head_color1'];}
418
+ $acx_csma_subscribe_bg_color1=sanitize_text_field($_POST['acx_csma_subscribe_bg_color1']);if($acx_csma_subscribe_bg_color1==""){$acx_csma_subscribe_bg_color1=$acx_csma_appearence_array['1']['acx_csma_subscribe_bg_color1'];}
419
+ $acx_csma_subscribe_btn_text1=sanitize_text_field($_POST['acx_csma_subscribe_btn_text1']);if($acx_csma_subscribe_btn_text1==""){$acx_csma_subscribe_btn_text1=$acx_csma_appearence_array['1']['acx_csma_subscribe_btn_text1'];}
420
+ $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'];}
421
+ $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'];}
422
+ $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'];}
423
+ $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'];}
424
+ $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'];}
425
+ $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'];}
426
+ $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'];}
427
+ $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'];}
428
+ $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'];}
429
+ $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'];}
430
+ $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'];}
431
  // **************************************template 2**************************************
432
+ $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'];}
433
+
434
+ if(ISSET($_POST['acx_csma_logo_choice2']))
435
+ {
436
+ $acx_csma_logo_choice2=sanitize_text_field($_POST['acx_csma_logo_choice2']);
437
+ }
438
+ else{
439
+ if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['2'])){
440
+ $acx_csma_logo_choice2=$acx_csma_appearence_array['2']['acx_csma_logo_choice'];
441
+ }else{
442
+ $acx_csma_logo_choice2='image';
443
+ }
444
+ }
445
+
446
+ $acx_csma_logo2 = esc_url_raw($_POST['acx_csma_logo2']);if($acx_csma_logo2==""){$acx_csma_logo2= $acx_csma_appearence_array['2']['acx_csma_logo2'];}
447
+ $acx_csma_logo_text2=sanitize_text_field($_POST['acx_csma_logo_text2']);
448
+ $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'];}
449
+ $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'];}
450
+ $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'];}
451
+ $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'];}
452
+ $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'];}
453
+ $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'];}
454
+ $acx_csma_timer_title2=sanitize_text_field($_POST['acx_csma_timer_title2']);if($acx_csma_timer_title2==""){$acx_csma_timer_title2=$acx_csma_appearence_array['2']['acx_csma_timer_title2'];}
455
+ $acx_csma_subscribe_btn_color2=sanitize_text_field($_POST['acx_csma_subscribe_btn_color2']);if($acx_csma_subscribe_btn_color2==""){$acx_csma_subscribe_btn_color2=$acx_csma_appearence_array['2']['acx_csma_subscribe_btn_color2'];}
456
+ $acx_csma_subscribe_success2=sanitize_text_field($_POST['acx_csma_subscribe_success2']);if($acx_csma_subscribe_success2==""){$acx_csma_subscribe_success2=$acx_csma_appearence_array['2']['acx_csma_subscribe_success2'];}
457
+ $acx_csma_subscribe_invalid2=sanitize_text_field($_POST['acx_csma_subscribe_invalid2']);if($acx_csma_subscribe_invalid2==""){$acx_csma_subscribe_invalid2=$acx_csma_appearence_array['2']['acx_csma_subscribe_invalid2'];}
458
+ $acx_csma_timer_input_bg_color2=sanitize_text_field($_POST['acx_csma_timer_input_bg_color2']);if($acx_csma_timer_input_bg_color2==""){$acx_csma_timer_input_bg_color2=$acx_csma_appearence_array['2']['acx_csma_timer_input_bg_color2'];}
459
+ $acx_csma_timer_iptext_color2=sanitize_text_field($_POST['acx_csma_timer_iptext_color2']);if($acx_csma_timer_iptext_color2==""){$acx_csma_timer_iptext_color2=$acx_csma_appearence_array['2']['acx_csma_timer_iptext_color2'];}
460
+ $acx_csma_timer_head_color2=sanitize_text_field($_POST['acx_csma_timer_head_color2']);if($acx_csma_timer_head_color2==""){$acx_csma_timer_head_color2=$acx_csma_appearence_array['2']['acx_csma_timer_head_color2'];}
461
  $acx_csma_custom_html_top_temp2=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_top_temp2'])));
462
+ $acx_csma_desc_title2=sanitize_text_field($_POST['acx_csma_desc_title2']);
463
  $acx_csma_desc_subtitle2=base64_encode(stripslashes(trim($_POST['acx_csma_desc_subtitle2'])));
464
+ $acx_csma_desc_text_color2=sanitize_text_field($_POST['acx_csma_desc_text_color2']);if($acx_csma_desc_text_color2==""){$acx_csma_desc_text_color2=$acx_csma_appearence_array['2']['acx_csma_desc_text_color2'];}
465
+ $acx_csma_fb_link2=esc_url_raw($_POST['acx_csma_fb_link2']);if($acx_csma_fb_link2==""){$acx_csma_fb_link2=$acx_csma_appearence_array['2']['acx_csma_fb_link2'];}
466
+ $acx_csma_twitter_link2=esc_url_raw($_POST['acx_csma_twitter_link2']);if($acx_csma_twitter_link2==""){$acx_csma_twitter_link2=$acx_csma_appearence_array['2']['acx_csma_twitter_link2'];}
467
+ $acx_csma_linkedin_link2=esc_url_raw($_POST['acx_csma_linkedin_link2']);if($acx_csma_linkedin_link2==""){$acx_csma_linkedin_link2=$acx_csma_appearence_array['2']['acx_csma_linkedin_link2'];}
468
  //***********************************template 3*************************
469
+ if(ISSET($_POST['acx_csma_logo_choice3']))
470
+ {
471
+ $acx_csma_logo_choice3=sanitize_text_field($_POST['acx_csma_logo_choice3']);
472
+ }
473
+ else{
474
+ if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['3'])){
475
+ $acx_csma_logo_choice3=$acx_csma_appearence_array['3']['acx_csma_logo_choice'];
476
+ }else{
477
+ $acx_csma_logo_choice3='image';
478
+ }
479
+ }
480
+
481
+ $acx_csma_logo3=esc_url_raw($_POST['acx_csma_logo3']);if($acx_csma_logo3==""){$acx_csma_logo3= $acx_csma_appearence_array['3']['acx_csma_logo3'];}
482
+ $acx_csma_logo_text3=sanitize_text_field($_POST['acx_csma_logo_text3']);
483
+ $acx_csma_logo_text_color3=sanitize_text_field($_POST['acx_csma_logo_text_color3']);if($acx_csma_logo_text_color3==""){$acx_csma_logo_text_color3=$acx_csma_appearence_array['3']['acx_csma_logo_text_color3'];}
484
+ $acx_csma_title3=sanitize_text_field($_POST['acx_csma_title3']);if($acx_csma_title3==""){$acx_csma_title3=$acx_csma_appearence_array['3']['acx_csma_title3'];}
485
+ $acx_csma_title_color3= sanitize_text_field($_POST['acx_csma_title_color3']);if($acx_csma_title_color3==""){$acx_csma_title_color3=$acx_csma_appearence_array['3']['acx_csma_title_color3'];}
486
+ $acx_csma_subtitle_text3= sanitize_text_field($_POST['acx_csma_subtitle_text3']);if($acx_csma_subtitle_text3==""){$acx_csma_subtitle_text3=$acx_csma_appearence_array['3']['acx_csma_subtitle_text3'];}
487
+ $acx_csma_subtitle_color3= sanitize_text_field($_POST['acx_csma_subtitle_color3']);if($acx_csma_subtitle_color3==""){$acx_csma_subtitle_color3=$acx_csma_appearence_array['3']['acx_csma_subtitle_color3'];}
488
+ $acx_csma_subscribe_title3= sanitize_text_field($_POST['acx_csma_subscribe_title3']);if($acx_csma_subscribe_title3==""){$acx_csma_subscribe_title3=$acx_csma_appearence_array['3']['acx_csma_subscribe_title3'];}
489
+ $acx_csma_subscribe_title_color3= sanitize_text_field($_POST['acx_csma_subscribe_title_color3']);if($acx_csma_subscribe_title_color3==""){$acx_csma_subscribe_title_color3=$acx_csma_appearence_array['3']['acx_csma_subscribe_title_color3'];}
490
+ $acx_csma_subscribe_btn_text3=sanitize_text_field($_POST['acx_csma_subscribe_btn_text3']);if($acx_csma_subscribe_btn_text3==""){$acx_csma_subscribe_btn_text3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_text3'];}
491
+ $acx_csma_subscribe_btn_text_color3=sanitize_text_field($_POST['acx_csma_subscribe_btn_text_color3']);if($acx_csma_subscribe_btn_text_color3==""){$acx_csma_subscribe_btn_text_color3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_text_color3'];}
492
+ $acx_csma_subscribe_btn_color3=sanitize_text_field($_POST['acx_csma_subscribe_btn_color3']);if($acx_csma_subscribe_btn_color3==""){$acx_csma_subscribe_btn_color3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_color3'];}
493
+ $acx_csma_subscribe_btn_hover_color3=sanitize_text_field($_POST['acx_csma_subscribe_btn_hover_color3']);if($acx_csma_subscribe_btn_hover_color3==""){$acx_csma_subscribe_btn_hover_color3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_hover_color3'];}
494
+ $acx_csma_subscribe_btn_hover_bgcolor3=sanitize_text_field($_POST['acx_csma_subscribe_btn_hover_bgcolor3']);if($acx_csma_subscribe_btn_hover_bgcolor3==""){$acx_csma_subscribe_btn_hover_bgcolor3=$acx_csma_appearence_array['3']['acx_csma_subscribe_btn_hover_bgcolor3'];}
495
+ $acx_csma_subscribe_success3=sanitize_text_field($_POST['acx_csma_subscribe_success3']);if($acx_csma_subscribe_success3==""){$acx_csma_subscribe_success3=$acx_csma_appearence_array['3']['acx_csma_subscribe_success3'];}
496
+ $acx_csma_subscribe_invalid3=sanitize_text_field($_POST['acx_csma_subscribe_invalid3']);if($acx_csma_subscribe_invalid3==""){$acx_csma_subscribe_invalid3=$acx_csma_appearence_array['3']['acx_csma_subscribe_invalid3'];}
497
+ $acx_csma_inside_title3= sanitize_text_field($_POST['acx_csma_inside_title3']);if($acx_csma_inside_title3==""){$acx_csma_inside_title3=$acx_csma_appearence_array['3']['acx_csma_inside_title3'];}
498
+ $acx_csma_inside_title_color3= sanitize_text_field($_POST['acx_csma_inside_title_color3']);if($acx_csma_inside_title_color3==""){$acx_csma_inside_title_color3=$acx_csma_appearence_array['3']['acx_csma_inside_title_color3'];}
499
+ $acx_csma_timer_iptext_color3= sanitize_text_field($_POST['acx_csma_timer_iptext_color3']);if($acx_csma_timer_iptext_color3==""){$acx_csma_timer_iptext_color3=$acx_csma_appearence_array['3']['acx_csma_timer_iptext_color3'];}
500
+ $acx_csma_timer_head_color3= sanitize_text_field($_POST['acx_csma_timer_head_color3']);if($acx_csma_timer_head_color3==""){$acx_csma_timer_head_color3=$acx_csma_appearence_array['3']['acx_csma_timer_head_color3'];}
501
  $acx_csma_custom_html_top_temp3=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_top_temp3'])));
502
+ $acx_csma_desc_title3= sanitize_text_field($_POST['acx_csma_desc_title3']);
503
  $acx_csma_desc_subtitle3=base64_encode(stripslashes(trim($_POST['acx_csma_desc_subtitle3'])));
504
+ $acx_csma_desc_text_color3= sanitize_text_field($_POST['acx_csma_desc_text_color3']);if($acx_csma_desc_text_color3==""){$acx_csma_desc_text_color3=$acx_csma_appearence_array['3']['acx_csma_desc_text_color3'];}
505
+ $acx_csma_footer_text3= sanitize_text_field($_POST['acx_csma_footer_text3']);if($acx_csma_footer_text3==""){$acx_csma_footer_text3=$acx_csma_appearence_array['3']['acx_csma_footer_text3'];}
506
+ $acx_csma_footer_color3=sanitize_text_field($_POST['acx_csma_footer_color3']);if($acx_csma_footer_color3==""){$acx_csma_footer_color3=$acx_csma_appearence_array['3']['acx_csma_footer_color3'];}
507
+ $acx_csma_social_link_title3=sanitize_text_field($_POST['acx_csma_social_link_title3']);if($acx_csma_social_link_title3==""){$acx_csma_social_link_title3=$acx_csma_appearence_array['3']['acx_csma_social_link_title3'];}
508
+ $acx_csma_social_link_title_color3=sanitize_text_field($_POST['acx_csma_social_link_title_color3']);if($acx_csma_social_link_title_color3==""){$acx_csma_social_link_title_color3=$acx_csma_appearence_array['3']['acx_csma_social_link_title_color3'];}
509
+ $acx_csma_fb_link3=esc_url_raw($_POST['acx_csma_fb_link3']);if($acx_csma_fb_link3==""){$acx_csma_fb_link3=$acx_csma_appearence_array['3']['acx_csma_fb_link3'];}
510
+ $acx_csma_twitter_link3=esc_url_raw($_POST['acx_csma_twitter_link3']);if($acx_csma_twitter_link3==""){$acx_csma_twitter_link3=$acx_csma_appearence_array['3']['acx_csma_twitter_link3'];}
511
+ $acx_csma_linkedin_link3=esc_url_raw($_POST['acx_csma_linkedin_link3']);if($acx_csma_linkedin_link3==""){$acx_csma_linkedin_link3=$acx_csma_appearence_array['3']['acx_csma_linkedin_link3'];}
512
 
513
  //********************************template 4***********************************
514
+ $acx_csma_background_image4=esc_url_raw($_POST['acx_csma_background_image4']);if($acx_csma_background_image4==""){$acx_csma_background_image4=$acx_csma_appearence_array['4']['acx_csma_background_image4'];}
515
+ if(ISSET($_POST['acx_csma_logo_choice4']))
516
+ {
517
+ $acx_csma_logo_choice4=sanitize_text_field($_POST['acx_csma_logo_choice4']);
518
+ }
519
+ else{
520
+ if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['4'])){
521
+ $acx_csma_logo_choice4=$acx_csma_appearence_array['4']['acx_csma_logo_choice'];
522
+ }else{
523
+ $acx_csma_logo_choice4='image';
524
+ }
525
+ }
526
+ $acx_csma_logo4=esc_url_raw($_POST['acx_csma_logo4']);if($acx_csma_logo4==""){$acx_csma_logo4=$acx_csma_appearence_array['4']['acx_csma_logo4'];}
527
+ $acx_csma_logo_text4=$_POST['acx_csma_logo_text4'];
528
+ $acx_csma_logo_text_color4=sanitize_text_field($_POST['acx_csma_logo_text_color4']);if($acx_csma_logo_text_color4==""){$acx_csma_logo_text_color4=$acx_csma_appearence_array['4']['acx_csma_logo_text_color4'];}
529
+ $acx_csma_inside_bg_color4=sanitize_text_field($_POST['acx_csma_inside_bg_color4']);if($acx_csma_inside_bg_color4==""){$acx_csma_inside_bg_color4=$acx_csma_appearence_array['4']['acx_csma_inside_bg_color4'];}
530
+ $acx_csma_title4=sanitize_text_field($_POST['acx_csma_title4']);if($acx_csma_title4==""){$acx_csma_title4=$acx_csma_appearence_array['4']['acx_csma_title4'];}
531
  $acx_csma_custom_html_top_temp4=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_top_temp4'])));
532
+ $acx_csma_title_color4=sanitize_text_field($_POST['acx_csma_title_color4']);if($acx_csma_title_color4==""){$acx_csma_title_color4=$acx_csma_appearence_array['4']['acx_csma_title_color4'];}
533
+ $acx_csma_show_timer4=sanitize_text_field($_POST['acx_csma_show_timer4']);if($acx_csma_show_timer4==""){ $acx_csma_show_timer4=$acx_csma_appearence_array['1']['acx_csma_show_timer4'];}
534
+ $acx_csma_timer_iptext_color4=sanitize_text_field($_POST['acx_csma_timer_iptext_color4']);if($acx_csma_timer_iptext_color4==""){$acx_csma_timer_iptext_color4=$acx_csma_appearence_array['4']['acx_csma_timer_iptext_color4'];;}
535
+ $acx_csma_timer_head_color4=sanitize_text_field($_POST['acx_csma_timer_head_color4']);if($acx_csma_timer_head_color4==""){$acx_csma_timer_head_color4=$acx_csma_appearence_array['4']['acx_csma_timer_head_color4'];}
536
+ $acx_csma_show_progressbar4=sanitize_text_field($_POST['acx_csma_show_progressbar4']);if($acx_csma_show_progressbar4==""){ $acx_csma_show_progressbar4=$acx_csma_appearence_array['1']['acx_csma_show_progressbar4'];}
537
+ $acx_csma_progress_bar_color4=sanitize_text_field($_POST['acx_csma_progress_bar_color4']);if($acx_csma_progress_bar_color4==""){$acx_csma_progress_bar_color4=$acx_csma_appearence_array['4']['acx_csma_progress_bar_color4'];}
538
  $acx_csma_custom_html_bottom_temp4=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_bottom_temp4'])));
539
+ $acx_csma_fb_link4=esc_url_raw($_POST['acx_csma_fb_link4']);if($acx_csma_fb_link4==""){$acx_csma_fb_link4=$acx_csma_appearence_array['4']['acx_csma_fb_link4'];}
540
+ $acx_csma_twitter_link4=esc_url_raw($_POST['acx_csma_twitter_link4']);if($acx_csma_twitter_link4==""){$acx_csma_twitter_link4=$acx_csma_appearence_array['4']['acx_csma_twitter_link4'];}
541
+ $acx_csma_linkedin_link4=esc_url_raw($_POST['acx_csma_linkedin_link4']);if($acx_csma_linkedin_link4==""){$acx_csma_linkedin_link4=$acx_csma_appearence_array['4']['acx_csma_linkedin_link4'];}
542
 
543
  //********************************template5*********************************
544
+ $acx_csma_bgcolor5=sanitize_text_field($_POST['acx_csma_bgcolor5']);if($acx_csma_bgcolor5==""){$acx_csma_bgcolor5=$acx_csma_appearence_array['5']['acx_csma_bgcolor5'];}
545
+ if(ISSET($_POST['acx_csma_logo_choice5']))
546
+ {
547
+ $acx_csma_logo_choice5=sanitize_text_field($_POST['acx_csma_logo_choice5']);
548
+ }
549
+ else{
550
+ if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['5'])){
551
+ $acx_csma_logo_choice5=$acx_csma_appearence_array['5']['acx_csma_logo_choice'];
552
+ }else{
553
+ $acx_csma_logo_choice5='image';
554
+ }
555
+ }
556
+ $acx_csma_logo5=esc_url_raw($_POST['acx_csma_logo5']);if($acx_csma_logo5==""){$acx_csma_logo5=$acx_csma_appearence_array['5']['acx_csma_logo5'];}
557
+ $acx_csma_logo_text5=sanitize_text_field($_POST['acx_csma_logo_text5']);
558
+ $acx_csma_logo_text_color5=sanitize_text_field($_POST['acx_csma_logo_text_color5']);if($acx_csma_logo_text_color5==""){$acx_csma_logo_text_color5=$acx_csma_appearence_array['5']['acx_csma_logo_text_color5'];}
559
+ $acx_csma_inside_bg_color5=sanitize_text_field($_POST['acx_csma_inside_bg_color5']);if($acx_csma_inside_bg_color5==""){$acx_csma_inside_bg_color5=$acx_csma_appearence_array['5']['acx_csma_inside_bg_color5'];}
560
+ $acx_csma_title5=sanitize_text_field($_POST['acx_csma_title5']);if($acx_csma_title5==""){$acx_csma_title5=$acx_csma_appearence_array['5']['acx_csma_title5'];}
561
+ $acx_csma_title_color5=sanitize_text_field($_POST['acx_csma_title_color5']);if($acx_csma_title_color5==""){$acx_csma_title_color5=$acx_csma_appearence_array['5']['acx_csma_title_color5'];}
562
  $acx_csma_custom_html_top_temp5=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_top_temp5'])));
563
+ $acx_csma_show_timer5=sanitize_text_field($_POST['acx_csma_show_timer5']);if($acx_csma_show_timer5==""){$acx_csma_show_timer5=$acx_csma_show_timer5['5']['acx_csma_show_timer5'];}
564
+ $acx_csma_timer_iptext_color5=sanitize_text_field($_POST['acx_csma_timer_iptext_color5']);if($acx_csma_timer_iptext_color5==""){$acx_csma_timer_iptext_color5=$acx_csma_appearence_array['5']['acx_csma_timer_iptext_color5'];}
565
+ $acx_csma_timer_head_color5=sanitize_text_field($_POST['acx_csma_timer_head_color5']);if($acx_csma_timer_head_color5==""){$acx_csma_timer_head_color5=$acx_csma_appearence_array['5']['acx_csma_timer_head_color5'];}
566
+ $acx_csma_show_progressbar5=sanitize_text_field($_POST['acx_csma_show_progressbar5']);if($acx_csma_show_progressbar5==""){$acx_csma_show_progressbar5=$acx_csma_appearence_array['5']['acx_csma_show_progressbar5'];}
567
+ $acx_csma_progress_bar_color5=sanitize_text_field($_POST['acx_csma_progress_bar_color5']);if($acx_csma_progress_bar_color5==""){$acx_csma_progress_bar_color5=$acx_csma_appearence_array['5']['acx_csma_progress_bar_color5'];}
568
  $acx_csma_custom_html_bottom_temp5=base64_encode(stripslashes(trim($_POST['acx_csma_custom_html_bottom_temp5'])));
569
+ $acx_csma_subscribe_bg_color5=sanitize_text_field($_POST['acx_csma_subscribe_bg_color5']);if($acx_csma_subscribe_bg_color5==""){$acx_csma_subscribe_bg_color5=$acx_csma_appearence_array['5']['acx_csma_subscribe_bg_color5'];}
570
+ $acx_csma_subscribe_title5=sanitize_text_field($_POST['acx_csma_subscribe_title5']);if($acx_csma_subscribe_title5==""){$acx_csma_subscribe_title5=$acx_csma_appearence_array['5']['acx_csma_subscribe_title5'];}
571
+ $acx_csma_subscribe_success5=sanitize_text_field($_POST['acx_csma_subscribe_success5']);if($acx_csma_subscribe_success5==""){$acx_csma_subscribe_success5=$acx_csma_appearence_array['5']['acx_csma_subscribe_success5'];}
572
+ $acx_csma_subscribe_invalid5=sanitize_text_field($_POST['acx_csma_subscribe_invalid5']);if($acx_csma_subscribe_invalid5==""){$acx_csma_subscribe_invalid5=$acx_csma_appearence_array['5']['acx_csma_subscribe_invalid5'];}
573
+ $acx_csma_fb_link5=esc_url_raw($_POST['acx_csma_fb_link5']);if($acx_csma_fb_link5==""){$acx_csma_fb_link5=$acx_csma_appearence_array['5']['acx_csma_fb_link5'];}
574
+ $acx_csma_twitter_link5=esc_url_raw($_POST['acx_csma_twitter_link5']);if($acx_csma_twitter_link5==""){$acx_csma_twitter_link5=$acx_csma_appearence_array['5']['acx_csma_twitter_link5'];}
575
+ $acx_csma_linkedin_link5=esc_url_raw($_POST['acx_csma_linkedin_link5']);if($acx_csma_linkedin_link5==""){$acx_csma_linkedin_link5=$acx_csma_appearence_array['5']['acx_csma_linkedin_link5'];}
576
 
577
  $acx_csma_template=$_POST['acx_csma_template'];
578
  if($acx_csma_template==""){$acx_csma_template=1;}
597
  $acx_csma_appearence_array[$acx_csma_template] =
598
  array(
599
  'acx_csma_background_image1'=>$acx_csma_background_image1,
600
+ 'acx_csma_logo_choice'=>$acx_csma_logo_choice1,
601
  'acx_csma_logo1'=>$acx_csma_logo1,
602
+ 'acx_csma_logo_text1' =>$acx_csma_logo_text1,
603
+ 'acx_csma_logo_text_color1' =>$acx_csma_logo_text_color1,
604
  'acx_csma_title1'=>$acx_csma_title1,
605
  'acx_csma_title_color1'=>$acx_csma_title_color1,
606
  'acx_csma_subtitle_text1'=>$acx_csma_subtitle_text1,
647
  $acx_csma_appearence_array[$acx_csma_template] =
648
  array(
649
  'acx_csma_bg_color2'=>$acx_csma_bg_color2,
650
+ 'acx_csma_logo_choice'=>$acx_csma_logo_choice2,
651
  'acx_csma_logo2'=>$acx_csma_logo2,
652
+ 'acx_csma_logo_text2' =>$acx_csma_logo_text2,
653
+ 'acx_csma_logo_text_color2' =>$acx_csma_logo_text_color2,
654
  'acx_csma_title2'=>$acx_csma_title2,
655
  'acx_csma_title_color2'=>$acx_csma_title_color2,
656
  'acx_csma_subtitle_text2'=>$acx_csma_subtitle_text2,
689
  {
690
  $acx_csma_appearence_array[$acx_csma_template] =
691
  array(
692
+ 'acx_csma_logo_choice'=>$acx_csma_logo_choice3,
693
  'acx_csma_logo3'=>$acx_csma_logo3,
694
+ 'acx_csma_logo_text3' =>$acx_csma_logo_text3,
695
+ 'acx_csma_logo_text_color3' =>$acx_csma_logo_text_color3,
696
  'acx_csma_title3'=>$acx_csma_title3,
697
  'acx_csma_title_color3'=>$acx_csma_title_color3,
698
  'acx_csma_subtitle_text3'=>$acx_csma_subtitle_text3,
741
  $acx_csma_appearence_array[$acx_csma_template] =
742
  array(
743
  'acx_csma_background_image4'=>$acx_csma_background_image4,
744
+ 'acx_csma_logo_choice'=>$acx_csma_logo_choice4,
745
  'acx_csma_logo4'=>$acx_csma_logo4,
746
+ 'acx_csma_logo_text4' =>$acx_csma_logo_text4,
747
+ 'acx_csma_logo_text_color4' =>$acx_csma_logo_text_color4,
748
  'acx_csma_inside_bg_color4'=>$acx_csma_inside_bg_color4,
749
  'acx_csma_title4'=>$acx_csma_title4,
750
  'acx_csma_custom_html_top_temp4'=>$acx_csma_custom_html_top_temp4,
778
  $acx_csma_appearence_array[$acx_csma_template]=
779
  array(
780
  'acx_csma_bgcolor5'=>$acx_csma_bgcolor5,
781
+ 'acx_csma_logo_choice'=>$acx_csma_logo_choice5,
782
  'acx_csma_logo5'=>$acx_csma_logo5,
783
+ 'acx_csma_logo_text5' =>$acx_csma_logo_text5,
784
+ 'acx_csma_logo_text_color5' =>$acx_csma_logo_text_color5,
785
  'acx_csma_inside_bg_color5'=>$acx_csma_inside_bg_color5,
786
  'acx_csma_title5'=>$acx_csma_title5,
787
  'acx_csma_custom_html_top_temp5'=>$acx_csma_custom_html_top_temp5,
807
  }
808
  update_option('acx_csma_appearence_array',$acx_csma_appearence_array);
809
  }
 
 
810
  ?>
811
+ <div class="updated"><p><strong><?php _e('Coming Soon/Maintenance From Acurax Settings Saved!.'); ?></strong></p></div>
812
  <script type="text/javascript">
813
  setTimeout(function(){
814
  jQuery('.updated').fadeOut('slow');
847
  $acx_csma_favicon = ACX_CSMA_BASE_LOCATION . 'images/favicon.png';
848
  update_option('acx_csma_favicon',$acx_csma_favicon);
849
  }
850
+ $start_timestamp=current_time('timestamp');
 
 
 
 
 
851
  update_option('acx_csma_start_date_time',$start_timestamp);
852
  $acx_csma_date_time=get_option('acx_csma_date_time');
853
  if($acx_csma_date_time =="")
854
  {
855
+ $timestamp1=current_time('timestamp')+(60*60*24*30); // 30 days
 
 
 
 
856
  update_option('acx_csma_date_time',$timestamp1);
857
  }
858
  $acx_csma_ip_list=get_option('acx_csma_ip_list');
932
  <div class="wrap">
933
  <div style='background: none repeat scroll 0% 0% white; height: 100%; display: inline-block; padding: 8px; margin-top: 5px; border-radius: 15px; min-height: 450px; width: 100%;'>
934
  <?php acx_csma_hook_function('acx_csma_hook_mainoptions_above_title'); ?>
935
+ <?php echo "<h2>" . __( 'Acurax Coming soon / Maintenance Options','acx_csma_config' ) . "</h2>"; ?>
936
+ <form name="acx_csma_form" id="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']); ?>"><hr/>
937
  <table>
938
  <tr>
939
  <td><input type="hidden" name="acx_csma_hidden" value="Y"/></td>
940
  </tr>
941
  <tr>
942
  <td><a id="acx_csma_tab_1" class="acx_csma_tab" onclick="javascript:acx_csma_show_div(1);">General Settings</a></td>
943
+ <td><a id="acx_csma_tab_2" class="acx_csma_tab" onclick="javascript:acx_csma_show_div(2);">Appearance Settings</a></td>
944
+ <?php acx_csma_hook_function('acx_csma_hook_mainoptions_add_settings'); ?>
945
  </tr>
946
  </table><hr/>
947
  <div id="acx_csma_tab_block_1" class="acx_csma_tab_block acx_csma_general" style="margin-left:20px;">
948
+ <?php echo "<h3>" . __( 'General Settings','acx_csma_config' ) . "</h3>"; ?>
949
  <table>
950
  <tr>
951
  <?php $acx_csma_activation_status=get_option('acx_csma_activation_status');
952
  ?>
953
+ <td><?php _e('Status:', 'acx_csma_config'); ?></td>
954
+ <td><input type="radio" id="acx_csma_activate" name="acx_csma_activate" value="1" <?php if($acx_csma_activation_status=="1"){echo "checked='checked'";}?> />&nbsp;<?php _e('Activate', 'acx_csma_config'); ?>&nbsp;&nbsp;&nbsp;<input type="radio" id="acx_csma_activate" name="acx_csma_activate" value="0"<?php if($acx_csma_activation_status =="0"){echo "checked='checked'";}?>/>&nbsp;<?php _e('Deactivate', 'acx_csma_config'); ?></td></tr>
955
  <tr><td><p><?php _e("Page Meta Title: " ); ?></p></td>
956
+ <td><input type="text" name="acx_csma_meta_title" value="<?php echo get_option('acx_csma_meta_title'); ?>" size="20"/></td>
957
  </tr>
958
+ <tr><td><p><?php _e("Page Meta Description: " ); ?></p></td>
959
+ <td><input type="text" name="acx_csma_meta_description" value="<?php echo get_option('acx_csma_meta_description'); ?>" size="20"/></td></tr>
960
+ <tr><td><p><?php _e("Page Meta Keywords: " ); ?></p></td>
961
+ <td><input type="text" name="acx_csma_meta_keywords" value="<?php echo get_option('acx_csma_meta_keywords'); ?>" size="20"/></td></tr>
962
  <tr><td><?php _e("Upload Favicon: " ); ?></td>
963
  <td>
964
+ <img id="acx_csma_favicon" src="<?php echo esc_url(get_option('acx_csma_favicon')); ?>" style="width:20px;height:auto;">
965
+ <input type="hidden" id="acx_csma_favicon_field" name="acx_csma_favicon_field" value="<?php echo esc_url(get_option('acx_csma_favicon')); ?>" size="20">
966
+
967
  <a id="acx_csma_favicon_button" class="button">Pick a Favicon</a>&nbsp;&nbsp;&nbsp;&nbsp;
968
  <span><?php _e("Recommended size 16 X 16 " ); ?> </span>
969
  </td>
970
  </tr>
971
+ <tr><td><?php _e("Expected Date and Time to end Maintenance mode: " ); $format = "Y/m/d H:i"; ?></td>
972
  <td>
973
+ <input type="text" value="<?php $timestamp1=get_option('acx_csma_date_time'); echo date_i18n($format, $timestamp1); ?>" id="datetimepicker" name="acx_csma_date_time"/>&nbsp;&nbsp; Current Wordpress Time:
974
+ <?php print date_i18n($format, current_time('timestamp')); ?><br><br></td></tr>
975
  <tr>
976
+ <td><?php _e("Would you like to end the maintenance mode automatically on the above specified time?: " ); ?></td>
977
  <?php $acx_csma_auto_launch=get_option('acx_csma_auto_launch');
978
  ?>
979
+ <td><input type="radio" id="acx_csma_auto_launch" name="acx_csma_auto_launch" value="1" <?php if($acx_csma_auto_launch=="1"){echo "checked='checked'";}?> />&nbsp;<?php _e('YES', 'acx_csma_config'); ?>&nbsp;&nbsp;&nbsp;<input type="radio" id="acx_csma_auto_launch" name="acx_csma_auto_launch" value="0"<?php if($acx_csma_auto_launch =="0"){echo "checked='checked'";}?>/>&nbsp;<?php _e('NO', 'acx_csma_config'); ?></td></tr>
980
 
981
+ <tr><td><b><?php echo "<h4>" . __( 'Access Settings', 'acx_csma_config' ) . "</h4>"; ?></b></td></tr>
982
  </table>
983
  <table>
984
+ <tr><td><?php _e("Do not show maintenance page for the following IPs:"); ?></td></tr>
985
  <tr>
986
  <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);}?>
987
  <select name="acx_csma_ip_list[]" id="acx_csma_ip_list1" multiple>
988
  <?php foreach($acx_csma_ip_list as $key =>$value)
989
  {?>
990
+ <option selected><?php echo $value; ?></option><?php }?>
991
  </select><br/><br/>
992
+ <input type="text" name="acx_csma_txt_ip" id="acx_csma_txt_ip" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>"/>
993
  <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);"/>
994
  <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>
995
  </td></tr>
996
  </table>
997
 
998
  <table>
999
+ <tr><td><?php _e("Do not show maintenance page for the following Roles:"); ?></td></tr>
1000
  <?php
1001
  $acx_csma_restrict_role=get_option('acx_csma_restrict_role');
1002
  if($acx_csma_restrict_role =="")
1014
  {
1015
  if($role!="Administrator")
1016
  {?>
1017
+ <tr><td><input type="checkbox" name="acx_csma_restrict_role[]" size="20" value="<?php echo $role; ?>"<?php if(is_array($acx_csma_restrict_role) && in_array($role,$acx_csma_restrict_role)){echo "checked='checked'"; }?>/><?php echo $role; ?></td><tr>
1018
  <?php }
1019
  }?>
1020
  </table>
1021
+ <?php acx_csma_hook_function('acx_csma_hook_mainoptions_below_general_settings'); ?>
1022
  </div><!--acx_csma_tab_block_1-->
1023
  <div id="acx_csma_tab_block_2" class="acx_csma_tab_block acx_csma_appearence" style="display:none;">
1024
  <table>
1025
+ <tr><td><?php echo "<h3>" . __( 'Appearance Settings', 'acx_csma_config' ) . "</h3>"; ?></td></tr></table>
1026
  <div class="acx_csmap_q_and_a_h_info">
1027
+ <?php $acx_csmap_open_all_boxes_default=get_option('acx_csmap_open_all_boxes_default'); ?>
1028
  Configuration Box Actions:
1029
  <a href="javascript:acx_csmap_easy_qa_expandall();">Open/Close All Configuration Boxes</a><br><br>
1030
  Open All Boxes Always? <input type="radio" name="acx_csmap_open_all_boxes_default" value="yes" <?php if($acx_csmap_open_all_boxes_default == "yes") { echo "checked"; } ?>>Yes<input type="radio" name="acx_csmap_open_all_boxes_default" value="no" <?php if($acx_csmap_open_all_boxes_default != "yes") { echo "checked"; } ?>>No <input type="submit" style="width: auto; border: 1px solid lightgray; margin-top: -5px; margin-left: 5px; padding-right: 12px; padding-left: 12px;" value="Save" name="acx_csma_Submit" class="button"><br>
1033
  </div> <!-- acx_csmap_q_and_a_h_info -->
1034
 
1035
  <div id="main">
1036
+ <?php $acx_csma_template = get_option('acx_csma_template'); ?>
1037
  <div id="img_holder">
1038
  <label for="acx_csma_template1">
1039
+ <img src="<?php echo ACX_CSMA_BASE_LOCATION . 'images/template1 .png'; ?>"></label><br /><input type="radio" name="acx_csma_template" id="acx_csma_template1" value="1" <?php if ($acx_csma_template=="1") {echo "checked=checked";}?> onclick="acx_csma_rdbtn_show_div(1);"/>Template 1 &nbsp;&nbsp;&nbsp;<a href="<?php echo get_site_url(); ?>?acx_csma_preview=1" target="_blank">Preview</a>
1040
  </div> <!-- img_holder -->
1041
  <div id="img_holder">
1042
  <label for="acx_csma_template2">
1043
+ <img src="<?php echo ACX_CSMA_BASE_LOCATION . 'images/template2.png'; ?>"></label><br /><input type="radio" name="acx_csma_template" id="acx_csma_template2" value="2" <?php if ($acx_csma_template=="2") {echo "checked=checked";}?> onclick="acx_csma_rdbtn_show_div(2);"/>Template 2 &nbsp;&nbsp;&nbsp;<a href="<?php echo get_site_url(); ?>?acx_csma_preview=2" target="_blank">Preview</a>
1044
  </div> <!-- img_holder -->
1045
  <div id="img_holder">
1046
  <label for="acx_csma_template3">
1047
+ <img src="<?php echo ACX_CSMA_BASE_LOCATION . 'images/template3.png'; ?>"></label><br /><input type="radio" name="acx_csma_template" id="acx_csma_template3" value="3" <?php if ($acx_csma_template=="3") {echo "checked=checked";}?> onclick="acx_csma_rdbtn_show_div(3);"/>Template 3 &nbsp;&nbsp;&nbsp;<a href="<?php echo get_site_url(); ?>?acx_csma_preview=3" target="_blank">Preview</a>
1048
  </div> <!-- img_holder -->
1049
  <div id="img_holder">
1050
  <label for="acx_csma_template4">
1051
+ <img src="<?php echo ACX_CSMA_BASE_LOCATION . 'images/template4.png'; ?>"></label><br /><input type="radio" name="acx_csma_template" id="acx_csma_template4" value="4" <?php if ($acx_csma_template=="4") {echo "checked=checked";}?> onclick="acx_csma_rdbtn_show_div(4);"/>Template 4 &nbsp;&nbsp;&nbsp;<a href="<?php echo get_site_url(); ?>?acx_csma_preview=4" target="_blank" >Preview</a>
1052
  </div> <!-- img_holder -->
1053
  <div id="img_holder">
1054
  <label for="acx_csma_template5">
1055
+ <img src="<?php echo ACX_CSMA_BASE_LOCATION . 'images/template5.png'; ?>"></label><br /><input type="radio" name="acx_csma_template" id="acx_csma_template5" value="5" <?php if ($acx_csma_template=="5") {echo "checked=checked";}?> onclick="acx_csma_rdbtn_show_div(5);"/>Template 5 &nbsp;&nbsp;&nbsp;<a href="<?php echo get_site_url(); ?>?acx_csma_preview=5" target="_blank">Preview</a>
1056
  </div> <!-- img_holder -->
1057
  <div id="img_holder">
1058
  <label for="acx_csma_custom_template">
1059
+ <img src="<?php echo ACX_CSMA_BASE_LOCATION . 'images/html-img.png'; ?>"></label><br />
1060
+ <input type="radio" name="acx_csma_template" id="acx_csma_custom_template" value="0" <?php if ($acx_csma_template =="0") {echo "checked=checked";}?> onclick="acx_csma_rdbtn_show_div(0);"/>Custom Html &nbsp;&nbsp;&nbsp;<a href="<?php echo get_site_url(); ?>?acx_csma_preview=0" target="_blank">Preview</a>
1061
  </div> <!-- img_holder -->
1062
+ <?php acx_csma_hook_function('acx_csma_hook_mainoptions_below_add_template'); ?>
1063
  </div> <!-- main -->
1064
 
1065
  <?php
1067
  if(is_serialized($acx_csma_appearence_array))
1068
  {
1069
  $acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
1070
+ }
1071
+ ?>
1072
  <div id="acx_csma_template_1" style="display:none;" class="acx_csma_template_option_holder">
1073
  <div id="acx_csma_1_p_q_and_a_h_main_holder">
1074
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE #########################################-->
1075
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1076
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1077
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">1)
1078
  Would you like to change Background image
1079
  </span>
1080
+ <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>
1081
+ <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;">
1082
  <div class="acx_csmap_q_and_a_inside">
1083
  <label>Background Image:</label>
1084
  <div class="acx_qa_field">
1085
+ <img id="custom_uploader_template_1_img_field_preview" src="<?php echo esc_url($acx_csma_appearence_array['1']['acx_csma_background_image1']); ?>" style="width:100px;height:auto;">
1086
+ <input type="hidden" id="custom_uploader_template_1_img_field" name="acx_csma_background_image1" value="<?php echo esc_url($acx_csma_appearence_array['1']['acx_csma_background_image1']); ?>" size="20">
1087
  <a id="acx_upload_button_img1" class="button">Choose Image</a>
1088
+ <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>
1089
  </div> <!-- acx_qa_field -->
1090
  </div> <!-- acx_csmap_q_and_a_inside -->
1091
  </div> <!-- acx_csmap_q_and_a -->
1092
  </div> <!-- acx_csmap_q_and_a_h -->
1093
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################# -->
1094
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1095
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1096
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1097
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">2)
1098
  Would you like to change the default logo
1099
  </span>
1100
+ <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>
1101
+ <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;">
1102
  <div class="acx_csmap_q_and_a_inside">
1103
+ <div class="acx_csma_logo_main" >
1104
+ <table cellspacing="10">
1105
+ <tr><td>
1106
+ <input type="radio" name="acx_csma_logo_choice1" class="acx_csma_logo" id="acx_csma_logo_image1" value="image" onclick="acx_csma_rdbtn_show_logo('image','1');" <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['1'])){if($acx_csma_appearence_array['1']['acx_csma_logo_choice'] == 'image' || $acx_csma_appearence_array['1']['acx_csma_logo_choice']==''){echo "checked='checked'";}} else{ echo "checked='checked'";} ?>/><p>Logo Image</p></td><td>
1107
+ <input type="radio" name="acx_csma_logo_choice1" class="acx_csma_logo" id="acx_csma_logo_text1" value="text" onclick="acx_csma_rdbtn_show_logo('text','1');" <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['1'])){if($acx_csma_appearence_array['1']['acx_csma_logo_choice'] == 'text'){echo "checked='checked'";}}?>/><p>Logo Text</p></td></tr>
1108
+ </table>
1109
+ </div><!--acx_csma_logo_main -->
1110
+ <div id="acx_show_logo_image_1" class="acx_csma_logo_block acx_csma_logo_block_1">
1111
+ <label>
1112
+ Logo Image: <span id="acx_csma_span">(Recommended size 231x67)</span>
1113
+ </label>
1114
+ <div class="acx_qa_field">
1115
+ <img id="custom_uploader_template_1_logo_field_preview" src="<?php echo esc_url($acx_csma_appearence_array['1']['acx_csma_logo1']); ?>" style="width:100px;height:auto;">
1116
+ <input type="hidden" id="custom_uploader_template_1_logo_field" name="acx_csma_logo1" value="<?php echo esc_url($acx_csma_appearence_array['1']['acx_csma_logo1']); ?>" size="20"><a id="acx_upload_button_logo1" class="button">Pick a Logo</a>
1117
+ <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>
1118
+ </div> <!-- acx_qa_field -->
1119
+ </div> <!-- acx_show_logo_image-->
1120
+ <div id="acx_show_logo_text_1" class="acx_csma_logo_block acx_csma_logo_block_1">
1121
  <label>
1122
+ Logo Text:
1123
  </label>
1124
  <div class="acx_qa_field">
1125
+ <?php if(is_array($acx_csma_appearence_array['1']) && array_key_exists('acx_csma_logo_text1',$acx_csma_appearence_array['1'])){$acx_csma_logo_text1=$acx_csma_appearence_array['1']['acx_csma_logo_text1'];
1126
+ if($acx_csma_logo_text1 == "")
1127
+ {
1128
+ $acx_csma_logo_text1=get_bloginfo('name');
1129
+ }}else{
1130
+ $acx_csma_logo_text1=get_bloginfo('name');
1131
+ }?>
1132
+ <input type="text" name="acx_csma_logo_text1" placeholder="Logo Text Here" value="<?php echo $acx_csma_logo_text1; ?>" size="20"/>
1133
+ </div> <!-- acx_qa_field -->
1134
+ <label>
1135
+ Logo Text Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_logo_text_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1136
+ </label>
1137
+ <div class="acx_qa_field">
1138
+ <?php if(is_array($acx_csma_appearence_array['1']) && array_key_exists('acx_csma_logo_text_color1',$acx_csma_appearence_array['1'])){$acx_csma_logo_text_color1=$acx_csma_appearence_array['1']['acx_csma_logo_text_color1'];
1139
+ if($acx_csma_logo_text_color1 == "")
1140
+ {
1141
+ $acx_csma_logo_text_color1="#ffffff";
1142
+ }}else{$acx_csma_logo_text_color1="#ffffff";;}?>
1143
+ <input type="text" name="acx_csma_logo_text_color1" id="acx_csma_logo_text_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_logo_text_color1; ?>" size="20" />
1144
+ <div style="position: absolute;" id="acx_csma_logo_text_color1_div"></div>
1145
  </div> <!-- acx_qa_field -->
1146
+ </div> <!--acx_show_logo_text -->
1147
  </div> <!-- acx_csmap_q_and_a_inside -->
1148
  </div> <!-- acx_csmap_q_and_a -->
1149
  </div> <!-- acx_csmap_q_and_a_h -->
1150
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################# -->
1151
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1152
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1153
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1154
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">3)
1155
  Would you like to change the default title properties </span>
1156
+ <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>
1157
+ <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;">
1158
  <div class="acx_csmap_q_and_a_inside">
1159
  <label>
1160
  Title Text:
1161
  </label>
1162
  <div class="acx_qa_field">
1163
+ <input type="text" name="acx_csma_title1" id="acx_csma_title1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_title1']; ?>" size="20"/>
1164
  </div> <!-- acx_qa_field -->
1165
  <label>
1166
  Title Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_title_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1167
  </label>
1168
  <div class="acx_qa_field">
1169
+ <input type="text" name="acx_csma_title_color1" id="acx_csma_title_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_title_color1']; ?>" size="20" />
1170
  <div style="position: absolute;" id="acx_csma_title_color1_div"></div>
1171
  </div> <!-- acx_qa_field -->
1172
  <label>
1173
  Subtitle Text:
1174
  </label>
1175
  <div class="acx_qa_field">
1176
+ <input type="text" name="acx_csma_subtitle_text1" id="acx_csma_subtitle_text1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subtitle_text1']; ?>" size="20"/>
1177
  </div> <!-- acx_qa_field -->
1178
  <label>
1179
  Subtitle Color:<a onclick="acx_csma_restore_default('','#fffaa9','acx_csma_subtitle_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1180
  </label>
1181
  <div class="acx_qa_field">
1182
+ <input type="text" name="acx_csma_subtitle_color1" id="acx_csma_subtitle_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subtitle_color1']; ?>" size="20"/>
1183
  <div style="position: absolute;" id="acx_csma_subtitle_color1_div"></div>
1184
  </div> <!-- acx_qa_field -->
1185
  </div> <!-- acx_csmap_q_and_a_inside -->
1188
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################# -->
1189
 
1190
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1191
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1192
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1193
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">4)
1194
  Would you like to change the Inside block properties </span>
1195
+ <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>
1196
+ <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;">
1197
  <div class="acx_csmap_q_and_a_inside">
1198
  <label>
1199
  Custom HTML Block Above Countdown Timer
1200
  </label>
1201
  <div class="acx_qa_field">
1202
  <?php $acx_csma_custom_html_top_temp1 = base64_decode($acx_csma_appearence_array['1']['acx_csma_custom_html_top_temp1']); ?>
1203
+ <textarea id="acx_csma_custom_html_top_temp1" name="acx_csma_custom_html_top_temp1" placeholder="HTML Code Here"><?php echo $acx_csma_custom_html_top_temp1; ?></textarea>
1204
  </div><!-- acx_qa_field -->
1205
  <label>
1206
  Background Color:<a onclick="acx_csma_restore_default('','#ff7800','acx_csma_inside_bg_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1207
  </label>
1208
  <div class="acx_qa_field">
1209
+ <input type="text" name="acx_csma_inside_bg_color1" id="acx_csma_inside_bg_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_inside_bg_color1']; ?>" size="20"/>
1210
  <div style="position: absolute;" id="acx_csma_inside_bg_color1_div"></div>
1211
  </div> <!-- acx_qa_field -->
1212
  <label>
1213
  Title:
1214
  </label>
1215
  <div class="acx_qa_field">
1216
+ <input type="text" name="acx_csma_inside_title1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_inside_title1']; ?>" size="20"/>
1217
  </div> <!-- acx_qa_field -->
1218
  <label>
1219
  Title Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_inside_title_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1220
  </label>
1221
  <div class="acx_qa_field">
1222
+ <input type="text" name="acx_csma_inside_title_color1" id="acx_csma_inside_title_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_inside_title_color1']; ?>" size="20"/>
1223
  <div style="position: absolute;" id="acx_csma_inside_title_color1_div"></div>
1224
  </div> <!-- acx_qa_field -->
1225
  <label>
1227
  </label>
1228
  <div class="acx_qa_field">
1229
  <?php $acx_csma_custom_html_bottom_temp1 =base64_decode($acx_csma_appearence_array['1']['acx_csma_custom_html_bottom_temp1']); ?>
1230
+ <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; ?></textarea>
1231
  </div><!-- acx_qa_field -->
1232
  </div> <!-- acx_csmap_q_and_a_inside -->
1233
  </div> <!-- acx_csmap_q_and_a -->
1235
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################# -->
1236
 
1237
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1238
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1239
 
1240
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1241
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">5)
1242
  Would you like to change the Timer block properties
1243
  </span>
1244
+ <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>
1245
+ <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;">
1246
  <div class="acx_csmap_q_and_a_inside">
1247
  <label>
1248
  Would you like to show Timer?
1249
  </label>
1250
  <div class="acx_qa_field">
1251
  <select name="acx_csma_show_timer1">
1252
+ <option value="1" <?php if ($acx_csma_show_timer1 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
1253
+ <option value="0" <?php if ($acx_csma_show_timer1 == "0") { echo 'selected="selected"'; } ?>>No</option>
1254
  </select>
1255
  </div>
1256
  <label>
1257
  Background Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_timer_bg_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1258
  </label>
1259
  <div class="acx_qa_field">
1260
+ <input type="text" name="acx_csma_timer_bg_color1" id="acx_csma_timer_bg_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_timer_bg_color1']; ?>" size="20"/></td>
1261
  <td><div style="position: absolute;" id="acx_csma_timer_bg_color1_div"></div>
1262
  </div> <!-- acx_qa_field -->
1263
  <label>
1264
  Input text Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_timer_iptext_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1265
  </label>
1266
  <div class="acx_qa_field">
1267
+ <input type="text" name="acx_csma_timer_iptext_color1" id="acx_csma_timer_iptext_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_timer_iptext_color1']; ?>" size="20"/>
1268
  <div style="position: absolute;" id="acx_csma_timer_iptext_color1_div"></div>
1269
  </div> <!-- acx_qa_field -->
1270
  <label>
1271
  Heading Color:<a onclick="acx_csma_restore_default('','#ff7800','acx_csma_timer_head_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1272
  </label>
1273
  <div class="acx_qa_field">
1274
+ <input type="text" name="acx_csma_timer_head_color1" id="acx_csma_timer_head_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_timer_head_color1']; ?>" size="20"/>
1275
  <div style="position: absolute;" id="acx_csma_timer_head_color1_div"></div>
1276
  </div> <!-- acx_qa_field -->
1277
  </div> <!-- acx_csmap_q_and_a_inside -->
1280
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################# -->
1281
 
1282
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1283
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1284
 
1285
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1286
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">6)
1287
  Would you like to change the Subscribe block properties
1288
  </span>
1289
+ <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>
1290
+ <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;">
1291
  <div class="acx_csmap_q_and_a_inside">
1292
  <label>
1293
  Background Color:<a onclick="acx_csma_restore_default('','#0b1c2c','acx_csma_subscribe_bg_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1294
  </label>
1295
  <div class="acx_qa_field">
1296
+ <input type="text" name="acx_csma_subscribe_bg_color1" id="acx_csma_subscribe_bg_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_bg_color1']; ?>" size="20"/>
1297
  <div style="position: absolute;" id="acx_csma_subscribe_bg_color1_div"></div>
1298
  </div> <!-- acx_qa_field -->
1299
  <label>
1300
  Button Text
1301
  </label>
1302
  <div class="acx_qa_field">
1303
+ <input type="text" name="acx_csma_subscribe_btn_text1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_btn_text1']; ?>" size="20"/>
1304
  </div> <!-- acx_qa_field -->
1305
 
1306
  <label>
1307
  Button Text Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_subscribe_btn_text_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1308
  </label>
1309
  <div class="acx_qa_field">
1310
+ <input type="text" name="acx_csma_subscribe_btn_text_color1" id="acx_csma_subscribe_btn_text_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_btn_text_color1']; ?>" size="20"/>
1311
  <div style="position: absolute;" id="acx_csma_subscribe_btn_text_color1_div"></div>
1312
  </div> <!-- acx_qa_field -->
1313
  <label>
1314
  Button Color:<a onclick="acx_csma_restore_default('','#ff7800','acx_csma_subscribe_btn_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1315
  </label>
1316
  <div class="acx_qa_field">
1317
+ <input type="text" name="acx_csma_subscribe_btn_color1" id="acx_csma_subscribe_btn_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_btn_color1']; ?>" size="20"/>
1318
  <div style="position: absolute;" id="acx_csma_subscribe_btn_color1_div"></div>
1319
  </div> <!-- acx_qa_field -->
1320
  <label>
1321
  Button Hover Text Color:<a onclick="acx_csma_restore_default('','#0b1c2c','acx_csma_subscribe_btn_hover_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1322
  </label>
1323
  <div class="acx_qa_field">
1324
+ <input type="text" name="acx_csma_subscribe_btn_hover_color1" id="acx_csma_subscribe_btn_hover_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_btn_hover_color1']; ?>" size="20"/>
1325
  <div style="position: absolute;" id="acx_csma_subscribe_btn_hover_color1_div"></div>
1326
  </div> <!-- acx_qa_field -->
1327
  <label>
1328
  Button Hover Background Color:<a onclick="acx_csma_restore_default('','#ff881e','acx_csma_subscribe_btn_hover_bgcolor1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1329
  </label>
1330
  <div class="acx_qa_field">
1331
+ <input type="text" name="acx_csma_subscribe_btn_hover_bgcolor1" id="acx_csma_subscribe_btn_hover_bgcolor1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_btn_hover_bgcolor1']; ?>" size="20"/>
1332
  <div style="position: absolute;" id="acx_csma_subscribe_btn_hover_bgcolor1_div"></div>
1333
  </div> <!-- acx_qa_field -->
1334
  <label>
1335
  Subscribe Title:
1336
  </label>
1337
  <div class="acx_qa_field">
1338
+ <input type="text" name="acx_csma_subscribe_title1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_title1']; ?>" size="20"/>
1339
  </div> <!-- acx_qa_field -->
1340
  <label>
1341
  Subscribe Title Color:<a onclick="acx_csma_restore_default('','#ff7800','acx_csma_subscribe_title_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1342
  </label>
1343
  <div class="acx_qa_field">
1344
+ <input type="text" name="acx_csma_subscribe_title_color1" id="acx_csma_subscribe_title_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_title_color1']; ?>" size="20"/>
1345
  <div style="position: absolute;" id="acx_csma_subscribe_title_color1_div"></div>
1346
  </div> <!-- acx_qa_field -->
1347
  <label>
1348
  Subscribe Success Message:
1349
  </label>
1350
  <div class="acx_qa_field">
1351
+ <input type="text" name="acx_csma_subscribe_success1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_success1']; ?>" size="20"/>
1352
  </div> <!-- acx_qa_field -->
1353
  <label>
1354
  Subscribe Invalid Message:
1355
  </label>
1356
  <div class="acx_qa_field">
1357
+ <input type="text" name="acx_csma_subscribe_invalid1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_subscribe_invalid1']; ?>" size="20"/>
1358
  </div> <!-- acx_qa_field -->
1359
 
1360
  </div> <!-- acx_csmap_q_and_a_inside -->
1363
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################# -->
1364
 
1365
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1366
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1367
 
1368
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1369
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">7)
1370
  Would you like to change the Footer block properties
1371
  </span>
1372
+ <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>
1373
+ <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;">
1374
  <div class="acx_csmap_q_and_a_inside">
1375
 
1376
  <label>
1377
  Footer Background:<a onclick="acx_csma_restore_default('','#ff7800','acx_csma_footer_bgcolor1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1378
  </label>
1379
  <div class="acx_qa_field">
1380
+ <input type="text" name="acx_csma_footer_bgcolor1" id="acx_csma_footer_bgcolor1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_footer_bgcolor1']; ?>" size="20"/>
1381
  <div style="position: absolute;" id="acx_csma_footer_bgcolor1_div"></div></div> <!-- acx_qa_field -->
1382
  <label>
1383
  Footer Text:
1384
  </label>
1385
  <div class="acx_qa_field">
1386
+ <input type="text" name="acx_csma_footer_text1" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_footer_text1']; ?>" size="20"/>
1387
  </div> <!-- acx_qa_field -->
1388
  <label>
1389
  Footer Text Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_footer_text_color1');" class="acx_csmap_button_reset">[Reset To Default]</a>
1390
  </label>
1391
  <div class="acx_qa_field">
1392
+ <input type="text" name="acx_csma_footer_text_color1" id="acx_csma_footer_text_color1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_footer_text_color1']; ?>" size="20"/>
1393
  <div style="position: absolute;" id="acx_csma_footer_text_color1_div"></div></div> <!-- acx_qa_field -->
1394
  </div> <!-- acx_csmap_q_and_a_inside -->
1395
  </div> <!-- acx_csmap_q_and_a -->
1401
  <div id="acx_csma_template_2" style="display:none;" class="acx_csma_template_option_holder">
1402
  <div id="acx_csma_2_p_q_and_a_h_main_holder">
1403
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1404
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1405
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1406
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">1)
1407
  Would you like to change the default background color
1408
  </span>
1409
+ <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>
1410
+ <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;">
1411
  <div class="acx_csmap_q_and_a_inside">
1412
  <label>Background Color:
1413
  <a onclick="acx_csma_restore_default('','#e4e4e4','acx_csma_bg_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1414
  </label>
1415
  <div class="acx_qa_field">
1416
+ <input type="text" name="acx_csma_bg_color2" id="acx_csma_bg_color2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_bg_color2']; ?>" onblur="acx_csma_validate(this.value);" size="20"/>
1417
  <div style="position: absolute;" id="acx_csma_bg_color2_div"></div>
1418
  </div> <!-- acx_qa_field -->
1419
  </div> <!-- acx_csmap_q_and_a_inside -->
1423
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################ -->
1424
 
1425
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
1426
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1427
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1428
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">2)
1429
  Would you like to change the default logo
1430
  </span>
1431
+ <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>
1432
+ <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;">
1433
  <div class="acx_csmap_q_and_a_inside">
1434
+ <div class="acx_csma_logo_main">
1435
+ <table cellspacing="10">
1436
+ <tr><td>
1437
+ <input type="radio" name="acx_csma_logo_choice2" class="acx_csma_logo" id="acx_csma_logo_image2" value="image" onclick="acx_csma_rdbtn_show_logo('image','2');" <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['2'])){if($acx_csma_appearence_array['2']['acx_csma_logo_choice'] == 'image' || $acx_csma_appearence_array['2']['acx_csma_logo_choice']==''){echo "checked='checked'";}}else{ echo "checked='checked'";} ?>/>Logo Image</td><td>
1438
+ <input type="radio" name="acx_csma_logo_choice2" class="acx_csma_logo" id="acx_csma_logo_text2" value="text" onclick="acx_csma_rdbtn_show_logo('text','2');" <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['2'])){if($acx_csma_appearence_array['2']['acx_csma_logo_choice'] == 'text'){echo "checked='checked'";}}?>/>Logo Text</td></tr></table>
1439
+ </div><!--acx_csma_logo_main -->
1440
+ <div id="acx_show_logo_image_2" class="acx_csma_logo_block acx_csma_logo_block_2" style="display:none;">
1441
  <label>
1442
  Logo:<span id="acx_csma_span">(Recommended size 99x27,Image must be png and transparent)</span>
1443
  </label>
1444
  <div class="acx_qa_field">
1445
+ <img id="custom_uploader_template_2_logo_field_preview" src="<?php echo esc_url($acx_csma_appearence_array['2']['acx_csma_logo2']); ?>" style="width:100px;height:auto;">
1446
+ <input type="hidden" id="custom_uploader_template_2_logo_field" name="acx_csma_logo2" value="<?php echo esc_url($acx_csma_appearence_array['2']['acx_csma_logo2']); ?>" size="20"><a id="acx_upload_button_logo2" class="button">Pick a Logo</a>
1447
+ <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>
1448
  </div> <!-- acx_qa_field -->
1449
+ </div><!--acx_show_logo_image-->
1450
+ <div id="acx_show_logo_text_2" class="acx_csma_logo_block acx_csma_logo_block_2" style="display:none;">
1451
+ <label>
1452
+ Logo Text:
1453
+ </label>
1454
+ <div class="acx_qa_field">
1455
+ <?php if(array_key_exists('acx_csma_logo_text2',$acx_csma_appearence_array['2'])){$acx_csma_logo_text2=$acx_csma_appearence_array['2']['acx_csma_logo_text2'];
1456
+ if($acx_csma_logo_text2 == "")
1457
+ {
1458
+ $acx_csma_logo_text2=get_bloginfo('name');
1459
+ }}else{
1460
+ $acx_csma_logo_text2=get_bloginfo('name');
1461
+ }?>
1462
+ <input type="text" name="acx_csma_logo_text2" placeholder="Logo Text Here" value="<?php echo $acx_csma_logo_text2; ?>" size="20"/>
1463
+ </div> <!-- acx_qa_field -->
1464
+ <label>
1465
+ Logo Text Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_logo_text_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1466
+ </label>
1467
+ <div class="acx_qa_field">
1468
+ <?php if(array_key_exists('acx_csma_logo_text_color2',$acx_csma_appearence_array['2'])){$acx_csma_logo_text_color2=$acx_csma_appearence_array['2']['acx_csma_logo_text_color2'];
1469
+ if($acx_csma_logo_text_color2 == "")
1470
+ {
1471
+ $acx_csma_logo_text_color2="#ffffff";
1472
+ }}$acx_csma_logo_text_color2="#ffffff"; ?>
1473
+ <input type="text" name="acx_csma_logo_text_color2" id="acx_csma_logo_text_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_logo_text_color2; ?>" size="20" />
1474
+ <div style="position: absolute;" id="acx_csma_logo_text_color2_div"></div>
1475
+ </div> <!-- acx_qa_field -->
1476
+ </div> <!-- acx_show_logo_text -->
1477
+
1478
  </div> <!-- acx_csmap_q_and_a_inside -->
1479
  </div> <!-- acx_csmap_q_and_a -->
1480
  </div> <!-- acx_csmap_q_and_a_h -->
1481
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1482
 
1483
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1484
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1485
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1486
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">3)
1487
  Would you like to change the Title properties </span>
1488
+ <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>
1489
+ <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;">
1490
  <div class="acx_csmap_q_and_a_inside">
1491
  <label>
1492
  Title Text :
1493
  </label>
1494
  <div class="acx_qa_field">
1495
+ <input type="text" name="acx_csma_title2" id="acx_csma_title2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_title2']; ?>" size="20"/>
1496
  </div> <!-- acx_qa_field -->
1497
  <label>
1498
  Title Color:
1500
 
1501
  </label>
1502
  <div class="acx_qa_field">
1503
+ <input type="text" name="acx_csma_title_color2" id="acx_csma_title_color2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_title_color2']; ?>" onblur="acx_csma_validate(this.value);" size="20"/>
1504
  <div style="position: absolute;" id="acx_csma_title_color2_div"></div>
1505
  </div> <!-- acx_qa_field -->
1506
  <label>
1507
  Subtitle Text:
1508
  </label>
1509
  <div class="acx_qa_field">
1510
+ <input type="text" name="acx_csma_subtitle_text2" id="acx_csma_subtitle_text2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_subtitle_text2']; ?>" size="20"/>
1511
  </div> <!-- acx_qa_field -->
1512
  <label>
1513
  Subtitle Color:
1514
  <a onclick="acx_csma_restore_default('','#000000','acx_csma_subtitle_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1515
  </label>
1516
  <div class="acx_qa_field">
1517
+ <input type="text" name="acx_csma_subtitle_color2" id="acx_csma_subtitle_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_subtitle_color2']; ?>" size="20"/>
1518
  <div style="position: absolute;" id="acx_csma_subtitle_color2_div"></div>
1519
  </div> <!-- acx_qa_field -->
1520
  <label>
1521
  Background Color:<a onclick="acx_csma_restore_default('','#ffd800','acx_csma_inside_bg_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1522
  </label>
1523
  <div class="acx_qa_field">
1524
+ <input type="text" name="acx_csma_inside_bg_color2" id="acx_csma_inside_bg_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_inside_bg_color2']; ?>" size="20"/>
1525
  <div style="position: absolute;" id="acx_csma_inside_bg_color2_div"></div>
1526
  </div> <!-- acx_qa_field -->
1527
  </div> <!-- acx_csmap_q_and_a_inside -->
1530
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################-->
1531
 
1532
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1533
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1534
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1535
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">4)
1536
  Would you like to change the Timer block properties </span>
1537
+ <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>
1538
+ <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;">
1539
  <div class="acx_csmap_q_and_a_inside">
1540
  <label>
1541
  Timer Block Title
1542
  </label>
1543
  <div class="acx_qa_field">
1544
+ <input type="text" name="acx_csma_timer_title2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_timer_title2']; ?>" size="20"/>
1545
  </div> <!-- acx_qa_field -->
1546
  <label>
1547
  Subscribe Button TextColor:<a onclick="acx_csma_restore_default('','#ffd800','acx_csma_subscribe_btn_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1548
 
1549
  </label>
1550
  <div class="acx_qa_field">
1551
+ <input type="text" name="acx_csma_subscribe_btn_color2" id="acx_csma_subscribe_btn_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_subscribe_btn_color2']; ?>" size="20"/>
1552
  <div style="position: absolute;" id="acx_csma_subscribe_btn_color2_div"></div>
1553
  </div> <!-- acx_qa_field -->
1554
  <label>
1555
  Subscribe Success Message:
1556
  </label>
1557
  <div class="acx_qa_field">
1558
+ <input type="text" name="acx_csma_subscribe_success2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_subscribe_success2']; ?>" size="20"/>
1559
  </div> <!-- acx_qa_field -->
1560
  <label>
1561
  Subscribe Invalid Message:
1562
  </label>
1563
  <div class="acx_qa_field">
1564
+ <input type="text" name="acx_csma_subscribe_invalid2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_subscribe_invalid2']; ?>" size="20"/>
1565
  </div> <!-- acx_qa_field -->
1566
  <label>
1567
  Timer Input BackgroundColor:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_timer_input_bg_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1568
  </label>
1569
  <div class="acx_qa_field">
1570
+ <input type="text" name="acx_csma_timer_input_bg_color2" id="acx_csma_timer_input_bg_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_timer_input_bg_color2']; ?>" size="20"/>
1571
  <div style="position: absolute;" id="acx_csma_timer_input_bg_color2_div"></div>
1572
  </div> <!-- acx_qa_field -->
1573
  <label>
1574
  Input TextColor:<a onclick="acx_csma_restore_default('','#000000','acx_csma_timer_iptext_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1575
  </label>
1576
  <div class="acx_qa_field">
1577
+ <input type="text" name="acx_csma_timer_iptext_color2" id="acx_csma_timer_iptext_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_timer_iptext_color2']; ?>" size="20"/>
1578
  <div style="position: absolute;" id="acx_csma_timer_iptext_color2_div"></div>
1579
  </div> <!-- acx_qa_field -->
1580
  <label>
1581
  Heading Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_timer_head_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1582
  </label>
1583
  <div class="acx_qa_field">
1584
+ <input type="text" name="acx_csma_timer_head_color2" id="acx_csma_timer_head_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_timer_head_color2']; ?>" size="20"/>
1585
  <div style="position: absolute;" id="acx_csma_timer_head_color2_div"></div>
1586
  </div> <!-- acx_qa_field -->
1587
  <label>
1589
  </label>
1590
  <div class="acx_qa_field">
1591
  <?php $acx_csma_custom_html_top_temp2 =base64_decode($acx_csma_appearence_array['2']['acx_csma_custom_html_top_temp2']); ?>
1592
+ <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; ?></textarea>
1593
  </div><!-- acx_qa_field -->
1594
  <label>
1595
  Description Title:
1596
  </label>
1597
  <div class="acx_qa_field">
1598
+ <input type="text" name="acx_csma_desc_title2" id="acx_csma_desc_title2" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_desc_title2']; ?>" size="20"/>
1599
  </div> <!-- acx_qa_field -->
1600
  <label>
1601
  Description Content:
1602
  </label>
1603
  <div class="acx_qa_field">
1604
+ <textarea name="acx_csma_desc_subtitle2" id="acx_csma_desc_subtitle2"><?php echo base64_decode($acx_csma_appearence_array['2']['acx_csma_desc_subtitle2']); ?> </textarea>
1605
  </div> <!-- acx_qa_field -->
1606
  <label>
1607
  Description TextColor:<a onclick="acx_csma_restore_default('','#000000','acx_csma_desc_text_color2');" class="acx_csmap_button_reset">[Reset To Default]</a>
1608
  </label>
1609
  <div class="acx_qa_field">
1610
+ <input type="text" name="acx_csma_desc_text_color2" id="acx_csma_desc_text_color2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_desc_text_color2']; ?>" size="20"/>
1611
  <div style="position: absolute;" id="acx_csma_desc_text_color2_div"></div>
1612
  </div> <!-- acx_qa_field -->
1613
 
1616
  </div> <!-- acx_csmap_q_and_a_h -->
1617
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################-->
1618
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
1619
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1620
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1621
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">5)
1622
  Would you like to Add Social Media Icons Links
1623
  </span>
1624
+ <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>
1625
+ <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;">
1626
  <div class="acx_csmap_q_and_a_inside">
1627
  <label>
1628
  Facebook Link
1629
  </label>
1630
  <div class="acx_qa_field">
1631
+ <input type="text" name="acx_csma_fb_link2" id="acx_csma_fb_link2" value="<?php echo esc_url($acx_csma_appearence_array['2']['acx_csma_fb_link2']); ?>" size="20"/>
1632
  </div> <!-- acx_qa_field -->
1633
  <label>
1634
  Twitter Link
1635
  </label>
1636
  <div class="acx_qa_field">
1637
+ <input type="text" name="acx_csma_twitter_link2" id="acx_csma_twitter_link2" value="<?php echo esc_url($acx_csma_appearence_array['2']['acx_csma_twitter_link2']); ?>" size="20"/>
1638
  </div> <!-- acx_qa_field -->
1639
  <label>
1640
  LinkedIn Link
1641
  </label>
1642
  <div class="acx_qa_field">
1643
+ <input type="text" name="acx_csma_linkedin_link2" id="acx_csma_linkedin_link2" value="<?php echo esc_url($acx_csma_appearence_array['2']['acx_csma_linkedin_link2']); ?>" size="20"/>
1644
  </div> <!-- acx_qa_field -->
1645
  </div> <!-- acx_csmap_q_and_a_inside -->
1646
  </div> <!-- acx_csmap_q_and_a -->
1653
  <div id="acx_csma_template_3" style="display:none;" class="acx_csma_template_option_holder">
1654
  <div id="acx_csma_3_p_q_and_a_h_main_holder">
1655
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1656
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1657
 
1658
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1659
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">1)
1660
  Would you like to change the Logo
1661
  </span>
1662
+ <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>
1663
+ <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;">
1664
  <div class="acx_csmap_q_and_a_inside">
1665
+ <div class="acx_csma_logo_main">
1666
+ <table cellspacing="10">
1667
+ <tr><td>
1668
+ <input type="radio" name="acx_csma_logo_choice3" class="acx_csma_logo" id="acx_csma_logo_image3" value="image" onclick="acx_csma_rdbtn_show_logo('image','3');" <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['3'])){if($acx_csma_appearence_array['3']['acx_csma_logo_choice'] == 'image' || $acx_csma_appearence_array['3']['acx_csma_logo_choice']==''){echo "checked='checked'";}}else{ echo "checked='checked'";} ?>/>Logo Image</td><td>
1669
+ <input type="radio" name="acx_csma_logo_choice3" class="acx_csma_logo" id="acx_csma_logo_text3" value="text" onclick="acx_csma_rdbtn_show_logo('text','3');" <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['3'])){ if($acx_csma_appearence_array['3']['acx_csma_logo_choice'] == 'text'){echo "checked='checked'";}}?>/>Logo Text</td></tr></table>
1670
+ </div><!--acx_csma_logo_main -->
1671
+ <div id="acx_show_logo_image_3" class="acx_csma_logo_block acx_csma_logo_block_3" style="display:none;">
1672
  <label>
1673
  Logo:<span id="acx_csma_span">(Recommended size 161x38)</span>
1674
  </label>
1675
  <div class="acx_qa_field">
1676
+ <img id="custom_uploader_template_3_logo_field_preview" src="<?php echo esc_url($acx_csma_appearence_array['3']['acx_csma_logo3']); ?>" style="width:100px;height:auto;">
1677
+ <input type="hidden" id="custom_uploader_template_3_logo_field" name="acx_csma_logo3" value="<?php echo esc_url($acx_csma_appearence_array['3']['acx_csma_logo3']); ?>" size="20"><a id="acx_upload_button_logo3" class="button">Pick a Logo</a>
1678
+ <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>
1679
 
1680
  </div> <!-- acx_qa_field -->
1681
+ </div><!--acx_show_logo_image -->
1682
+ <div id="acx_show_logo_text_3" class="acx_csma_logo_block acx_csma_logo_block_3" style="display:none;">
1683
+ <label>
1684
+ Logo Text:
1685
+ </label>
1686
+ <div class="acx_qa_field">
1687
+ <?php if(array_key_exists('acx_csma_logo_text3',$acx_csma_appearence_array['3'])){ $acx_csma_logo_text3=$acx_csma_appearence_array['3']['acx_csma_logo_text3'];
1688
+ if($acx_csma_logo_text3 == "")
1689
+ {
1690
+ $acx_csma_logo_text3=get_bloginfo('name');
1691
+ }}else{
1692
+ $acx_csma_logo_text3=get_bloginfo('name');
1693
+ }?>
1694
+ <input type="text" name="acx_csma_logo_text3" placeholder="Logo Text Here" value="<?php echo $acx_csma_logo_text3; ?>" size="20"/>
1695
+ </div> <!-- acx_qa_field -->
1696
+ <label>
1697
+ Logo Text Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_logo_text_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1698
+ </label>
1699
+ <div class="acx_qa_field">
1700
+ <?php if(array_key_exists('acx_csma_logo_text_color3',$acx_csma_appearence_array['3'])){$acx_csma_logo_text_color3=$acx_csma_appearence_array['3']['acx_csma_logo_text_color3'];
1701
+ if($acx_csma_logo_text_color3 == "")
1702
+ {
1703
+ $acx_csma_logo_text_color3="#ffffff";
1704
+ }}else{
1705
+ $acx_csma_logo_text_color3="#ffffff";
1706
+ }?>
1707
+ <input type="text" name="acx_csma_logo_text_color3" id="acx_csma_logo_text_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_logo_text_color3; ?>" size="20" />
1708
+ <div style="position: absolute;" id="acx_csma_logo_text_color3_div"></div>
1709
+ </div> <!-- acx_qa_field -->
1710
+ </div><!--acx_show_logo_text -->
1711
  </div> <!-- acx_csmap_q_and_a_inside -->
1712
  </div> <!-- acx_csmap_q_and_a -->
1713
  </div> <!-- acx_csmap_q_and_a_h -->
1714
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1715
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1716
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1717
 
1718
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1719
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">2)
1720
  Would you like to change the Title properties
1721
  </span>
1722
+ <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>
1723
+ <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;">
1724
  <div class="acx_csmap_q_and_a_inside">
1725
  <label>
1726
  Title:
1727
  </label>
1728
  <div class="acx_qa_field">
1729
+ <input type="text" name="acx_csma_title3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_title3']; ?>" size="20"/>
1730
  </div> <!-- acx_qa_field -->
1731
  <label>
1732
  Title Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1733
  </label>
1734
  <div class="acx_qa_field">
1735
+ <input type="text" name="acx_csma_title_color3" id="acx_csma_title_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_title_color3']; ?>" size="20" />
1736
  <div style="position: absolute;" id="acx_csma_title_color3_div"></div>
1737
  </div> <!-- acx_qa_field -->
1738
  <label>
1739
  Sub Title:
1740
  </label>
1741
  <div class="acx_qa_field">
1742
+ <input type="text" name="acx_csma_subtitle_text3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subtitle_text3']; ?>" size="20"/>
1743
  </div> <!-- acx_qa_field -->
1744
  <label>
1745
  SubTitle Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_subtitle_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1746
  </label>
1747
  <div class="acx_qa_field">
1748
+ <input type="text" name="acx_csma_subtitle_color3" id="acx_csma_subtitle_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subtitle_color3']; ?>" size="20" />
1749
  <div style="position: absolute;" id="acx_csma_subtitle_color3_div"></div>
1750
  </div> <!-- acx_qa_field -->
1751
  </div> <!-- acx_csmap_q_and_a_inside -->
1753
  </div> <!-- acx_csmap_q_and_a_h -->
1754
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1755
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1756
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1757
 
1758
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1759
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">3)
1760
  Would you like to change the Inside Block1 properties
1761
  </span>
1762
+ <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>
1763
+ <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;">
1764
  <div class="acx_csmap_q_and_a_inside">
1765
 
1766
  <label>
1767
  Title:
1768
  </label>
1769
  <div class="acx_qa_field">
1770
+ <input type="text" name="acx_csma_subscribe_title3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_title3']; ?>" size="20"/>
1771
  </div> <!-- acx_qa_field -->
1772
  <label>
1773
  Title Color:<a onclick="acx_csma_restore_default('','#fe7e01','acx_csma_subscribe_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1774
  </label>
1775
  <div class="acx_qa_field">
1776
+ <input type="text" name="acx_csma_subscribe_title_color3" id="acx_csma_subscribe_title_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_title_color3']; ?>" size="20"/>
1777
  <div style="position: absolute;" id="acx_csma_subscribe_title_color3_div"></div>
1778
  </div> <!-- acx_qa_field -->
1779
  <label>
1780
  Button Text
1781
  </label>
1782
  <div class="acx_qa_field">
1783
+ <input type="text" name="acx_csma_subscribe_btn_text3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_btn_text3']; ?>" size="20"/>
1784
  </div> <!-- acx_qa_field -->
1785
  <label>
1786
  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>
1787
  </label>
1788
  <div class="acx_qa_field">
1789
+ <input type="text" name="acx_csma_subscribe_btn_text_color3" id="acx_csma_subscribe_btn_text_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_btn_text_color3']; ?>" size="20"/>
1790
  <div style="position: absolute;" id="acx_csma_subscribe_btn_text_color3_div"></div>
1791
  </div> <!-- acx_qa_field -->
1792
  <label>
1793
  Button Color:<a onclick="acx_csma_restore_default('','#fe7e01','acx_csma_subscribe_btn_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1794
  </label>
1795
  <div class="acx_qa_field">
1796
+ <input type="text" name="acx_csma_subscribe_btn_color3" id="acx_csma_subscribe_btn_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_btn_color3']; ?>" size="20"/>
1797
  <div style="position: absolute;" id="acx_csma_subscribe_btn_color3_div"></div>
1798
  </div> <!-- acx_qa_field -->
1799
  <label>
1800
  Button Hover Text Color:<a onclick="acx_csma_restore_default('','#0b1c2c','acx_csma_subscribe_btn_hover_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1801
  </label>
1802
  <div class="acx_qa_field">
1803
+ <input type="text" name="acx_csma_subscribe_btn_hover_color3" id="acx_csma_subscribe_btn_hover_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_btn_hover_color3']; ?>" size="20"/>
1804
  <div style="position: absolute;" id="acx_csma_subscribe_btn_hover_color3_div"></div>
1805
  </div> <!-- acx_qa_field -->
1806
  <label>
1807
  Button Hover Background Color:<a onclick="acx_csma_restore_default('','#fe6001','acx_csma_subscribe_btn_hover_bgcolor3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1808
  </label>
1809
  <div class="acx_qa_field">
1810
+ <input type="text" name="acx_csma_subscribe_btn_hover_bgcolor3" id="acx_csma_subscribe_btn_hover_bgcolor3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_btn_hover_bgcolor3']; ?>" size="20"/>
1811
  <div style="position: absolute;" id="acx_csma_subscribe_btn_hover_bgcolor3_div"></div>
1812
  </div> <!-- acx_qa_field -->
1813
  <label>
1814
  Subscribe Success Message:
1815
  </label>
1816
  <div class="acx_qa_field">
1817
+ <input type="text" name="acx_csma_subscribe_success3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_success3']; ?>" size="20"/>
1818
  </div> <!-- acx_qa_field -->
1819
  <label>
1820
  Subscribe Invalid Message:
1821
  </label>
1822
  <div class="acx_qa_field">
1823
+ <input type="text" name="acx_csma_subscribe_invalid3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_subscribe_invalid3']; ?>" size="20"/>
1824
  </div> <!-- acx_qa_field -->
1825
  </div> <!-- acx_csmap_q_and_a_inside -->
1826
  </div> <!-- acx_csmap_q_and_a -->
1827
  </div> <!-- acx_csmap_q_and_a_h -->
1828
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1829
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1830
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1831
 
1832
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1833
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">4)
1834
  Would you like to change the Inside Block2 properties
1835
  </span>
1836
+ <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>
1837
+ <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;">
1838
  <div class="acx_csmap_q_and_a_inside">
1839
  <label>
1840
  Title:
1841
  </label>
1842
  <div class="acx_qa_field">
1843
+ <input type="text" name="acx_csma_inside_title3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_inside_title3']; ?>" size="20"/>
1844
  </div> <!-- acx_qa_field -->
1845
  <label>
1846
  Title Color:<a onclick="acx_csma_restore_default('','#ffffff','acx_csma_inside_title_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1847
  </label>
1848
  <div class="acx_qa_field">
1849
+ <input type="text" name="acx_csma_inside_title_color3" id="acx_csma_inside_title_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_inside_title_color3']; ?>" size="20"/>
1850
  <div style="position: absolute;" id="acx_csma_inside_title_color3_div"></div>
1851
  </div> <!-- acx_qa_field -->
1852
  </div> <!-- acx_csmap_q_and_a_inside -->
1854
  </div> <!-- acx_csmap_q_and_a_h -->
1855
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1856
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
1857
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1858
 
1859
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1860
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">5)
1861
  Would you like to change the Timer properties
1862
  </span>
1863
+ <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>
1864
+ <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;">
1865
  <div class="acx_csmap_q_and_a_inside">
1866
  <label>
1867
  Input Text Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_timer_iptext_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1868
  </label>
1869
  <div class="acx_qa_field">
1870
+ <input type="text" name="acx_csma_timer_iptext_color3" id="acx_csma_timer_iptext_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_timer_iptext_color3']; ?>" size="20"/>
1871
  <div style="position: absolute;" id="acx_csma_timer_iptext_color3_div"></div>
1872
  </div> <!-- acx_qa_field -->
1873
  <label>
1874
  Heading Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_timer_head_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1875
  </label>
1876
  <div class="acx_qa_field">
1877
+ <input type="text" name="acx_csma_timer_head_color3" id="acx_csma_timer_head_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_timer_head_color3']; ?>" size="20"/>
1878
  <div style="position: absolute;" id="acx_csma_timer_head_color3_div"></div>
1879
  </div> <!-- acx_qa_field -->
1880
  <label>
1882
  </label>
1883
  <div class="acx_qa_field">
1884
  <?php $acx_csma_custom_html_top_temp3 =base64_decode($acx_csma_appearence_array['3']['acx_csma_custom_html_top_temp3']); ?>
1885
+ <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; ?></textarea>
1886
  </div><!-- acx_qa_field -->
1887
  <label>
1888
  Description Title:
1889
  </label>
1890
  <div class="acx_qa_field">
1891
+ <input type="text" name="acx_csma_desc_title3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_desc_title3']; ?>" size="20"/>
1892
  </div> <!-- acx_qa_field -->
1893
  <label>
1894
  Description Sub Title:
1895
  </label>
1896
  <div class="acx_qa_field">
1897
+ <textarea name="acx_csma_desc_subtitle3" id="acx_csma_desc_subtitle3" ><?php echo base64_decode($acx_csma_appearence_array['3']['acx_csma_desc_subtitle3']); ?></textarea>
1898
  </div> <!-- acx_qa_field -->
1899
  <label>
1900
  Description Text Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_desc_text_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1901
  </label>
1902
  <div class="acx_qa_field">
1903
+ <input type="text" name="acx_csma_desc_text_color3" id="acx_csma_desc_text_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_desc_text_color3']; ?>" size="20"/>
1904
  <div style="position: absolute;" id="acx_csma_desc_text_color3_div"></div>
1905
  </div> <!-- acx_qa_field -->
1906
  </div> <!-- acx_csmap_q_and_a_inside -->
1908
  </div> <!-- acx_csmap_q_and_a_h -->
1909
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
1910
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ###########################################-->
1911
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1912
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1913
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">6)
1914
  Would you like to change the Footer
1915
  </span>
1916
+ <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>
1917
+ <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;">
1918
  <div class="acx_csmap_q_and_a_inside">
1919
  <label>
1920
  Footer Text:
1921
  </label>
1922
  <div class="acx_qa_field">
1923
+ <input type="text" name="acx_csma_footer_text3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_footer_text3']; ?>" size="20"/>
1924
  </div> <!-- acx_qa_field -->
1925
  <label>
1926
  Footer Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_footer_color3');" class="acx_csmap_button_reset">[Reset To Default]</a>
1927
  </label>
1928
  <div class="acx_qa_field">
1929
+ <input type="text" name="acx_csma_footer_color3" id="acx_csma_footer_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_footer_color3']; ?>" size="20"/>
1930
  <div style="position: absolute;" id="acx_csma_footer_color3_div"></div>
1931
  </div> <!-- acx_qa_field -->
1932
 
1936
  </div> <!-- acx_csmap_q_and_a_h -->
1937
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################ -->
1938
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
1939
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1940
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1941
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">7)
1942
  Would you like to Add Social Media Icons Links
1943
  </span>
1944
+ <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>
1945
+ <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;">
1946
  <div class="acx_csmap_q_and_a_inside">
1947
  <label>
1948
  Social Media Text:
1949
  </label>
1950
  <div class="acx_qa_field">
1951
+ <input type="text" name="acx_csma_social_link_title3" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_social_link_title3']; ?>" size="20"/>
1952
  </div> <!-- acx_qa_field -->
1953
  <label>
1954
  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>
1955
  </label>
1956
  <div class="acx_qa_field">
1957
+ <input type="text" name="acx_csma_social_link_title_color3" id="acx_csma_social_link_title_color3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_social_link_title_color3']; ?>" size="20"/>
1958
  <div style="position: absolute;" id="acx_csma_social_link_title_color3_div"></div>
1959
  </div> <!-- acx_qa_field -->
1960
  <label>
1961
  Facebook Link:
1962
  </label>
1963
  <div class="acx_qa_field">
1964
+ <input type="text" name="acx_csma_fb_link3" id="acx_csma_fb_link3" value="<?php echo esc_url($acx_csma_appearence_array['3']['acx_csma_fb_link3']); ?>" size="20"/>
1965
  </div> <!-- acx_qa_field -->
1966
  <label>
1967
  Twitter Link:
1968
  </label>
1969
  <div class="acx_qa_field">
1970
+ <input type="text" name="acx_csma_twitter_link3" id="acx_csma_twitter_link3" value="<?php echo esc_url($acx_csma_appearence_array['3']['acx_csma_twitter_link3']); ?>" size="20"/>
1971
  </div> <!-- acx_qa_field -->
1972
  <label>
1973
  LinkedIn Link:
1974
  </label>
1975
  <div class="acx_qa_field">
1976
+ <input type="text" name="acx_csma_linkedin_link3" id="acx_csma_linkedin_link3" value="<?php echo esc_url($acx_csma_appearence_array['3']['acx_csma_linkedin_link3']); ?>" size="20"/>
1977
  </div> <!-- acx_qa_field -->
1978
  </div> <!-- acx_csmap_q_and_a_inside -->
1979
  </div> <!-- acx_csmap_q_and_a -->
1988
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ###########################################-->
1989
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1990
 
1991
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
1992
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">1)
1993
  Would you like to change the default background Image
1994
  </span>
1995
+ <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>
1996
+ <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;">
1997
  <div class="acx_csmap_q_and_a_inside">
1998
  <label>
1999
  Background Image:
2000
  </label>
2001
  <div class="acx_qa_field">
2002
+ <img id="custom_uploader_template_4_img_field_preview" src="<?php echo esc_url($acx_csma_appearence_array['4']['acx_csma_background_image4']); ?>" style="width:100px;height:auto;">
2003
+ <input type="hidden" id="custom_uploader_template_4_img_field" name="acx_csma_background_image4" value="<?php echo esc_url($acx_csma_appearence_array['4']['acx_csma_background_image4']); ?>" size="20">
2004
  <a id="acx_upload_button_img4" class="button">Choose Image</a>
2005
+ <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>
2006
  </div> <!-- acx_qa_field -->
2007
  </div> <!-- acx_csmap_q_and_a_inside -->
2008
  </div> <!-- acx_csmap_q_and_a -->
2011
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
2012
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2013
 
2014
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
2015
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">2)
2016
  Are you sure to change the default logo
2017
  </span>
2018
+ <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>
2019
+ <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;">
2020
  <div class="acx_csmap_q_and_a_inside">
2021
+ <div class="acx_csma_logo_main">
2022
+ <table cellspacing="10">
2023
+ <tr><td>
2024
+ <input type="radio" name="acx_csma_logo_choice4" class="acx_csma_logo" id="acx_csma_logo_image4" value="image" onclick="acx_csma_rdbtn_show_logo('image','4');" <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['4'])){if($acx_csma_appearence_array['4']['acx_csma_logo_choice'] == 'image' || $acx_csma_appearence_array['4']['acx_csma_logo_choice']==''){echo "checked='checked'";}}else{ echo "checked='checked'";} ?>/>Logo Image</td><td>
2025
+ <input type="radio" name="acx_csma_logo_choice4" class="acx_csma_logo" id="acx_csma_logo_text4" value="text" onclick="acx_csma_rdbtn_show_logo('text','4');" <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['4'])){if($acx_csma_appearence_array['4']['acx_csma_logo_choice'] == 'text'){echo "checked='checked'";}}?>/>Logo Text</td></tr></table>
2026
+ </div><!--acx_csma_logo_main -->
2027
+ <div id="acx_show_logo_image_4" class="acx_csma_logo_block acx_csma_logo_block_4" style="display:none;">
2028
  <label>
2029
  Logo:<span id="acx_csma_span">(Recommended size 326x138)</span>
2030
  </label>
2031
  <div class="acx_qa_field">
2032
+ <img id="custom_uploader_template_4_logo_field_preview" src="<?php echo esc_url($acx_csma_appearence_array['4']['acx_csma_logo4']); ?>" style="width:100px;height:auto;">
2033
+ <input type="hidden" id="custom_uploader_template_4_logo_field" name="acx_csma_logo4" value="<?php echo esc_url($acx_csma_appearence_array['4']['acx_csma_logo4']); ?>" size="20"><a id="acx_upload_button_logo4" class="button">Pick a Logo</a>
2034
+ <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>
2035
  </div> <!-- acx_qa_field -->
2036
+ </div><!--acx_show_logo_image-->
2037
+ <div id="acx_show_logo_text_4" class="acx_csma_logo_block acx_csma_logo_block_4" style="display:none;">
2038
+ <label>
2039
+ Logo Text:
2040
+ </label>
2041
+ <div class="acx_qa_field">
2042
+ <?php if(array_key_exists('acx_csma_logo_text4',$acx_csma_appearence_array['4'])){ $acx_csma_logo_text4=$acx_csma_appearence_array['4']['acx_csma_logo_text4'];
2043
+ if($acx_csma_logo_text4 == "")
2044
+ {
2045
+ $acx_csma_logo_text4=get_bloginfo('name');
2046
+ }}
2047
+ else{
2048
+ $acx_csma_logo_text4=get_bloginfo('name');
2049
+ }?>
2050
+ <input type="text" name="acx_csma_logo_text4" placeholder="Logo Text Here" value="<?php echo $acx_csma_logo_text4; ?>" size="20"/>
2051
+ </div> <!-- acx_qa_field -->
2052
+ <label>
2053
+ Logo Text Color: <a onclick="acx_csma_restore_default('','#ffffff','acx_csma_logo_text_color4');" class="acx_csmap_button_reset">[Reset To Default]</a>
2054
+ </label>
2055
+ <div class="acx_qa_field">
2056
+ <?php if(array_key_exists('acx_csma_logo_text_color4',$acx_csma_appearence_array['4'])){ $acx_csma_logo_text_color4=$acx_csma_appearence_array['4']['acx_csma_logo_text_color4'];
2057
+ if($acx_csma_logo_text_color4 == "")
2058
+ {
2059
+ $acx_csma_logo_text_color4="#ffffff";
2060
+ }}else{
2061
+ $acx_csma_logo_text_color4="#ffffff";
2062
+ }?>
2063
+ <input type="text" name="acx_csma_logo_text_color4" id="acx_csma_logo_text_color4" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_logo_text_color4; ?>" size="20" />
2064
+ <div style="position: absolute;" id="acx_csma_logo_text_color4_div"></div>
2065
+ </div> <!-- acx_qa_field -->
2066
+ </div><!--acx_show_logo_text-->
2067
  </div> <!-- acx_csmap_q_and_a_inside -->
2068
  </div> <!-- acx_csmap_q_and_a -->
2069
  </div> <!-- acx_csmap_q_and_a_h -->
2070
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################ -->
2071
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
2072
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2073
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
2074
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">3)
2075
  Would you like to change the Inside block properties
2076
  </span>
2077
+ <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>
2078
+ <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;">
2079
  <div class="acx_csmap_q_and_a_inside">
2080
  <label>
2081
  Background Color:<a onclick="acx_csma_restore_default('','#ebebeb','acx_csma_inside_bg_color4');" class="acx_csmap_button_reset">[Reset To Default]</a>
2082
  </label>
2083
  <div class="acx_qa_field">
2084
+ <input type="text" name="acx_csma_inside_bg_color4" id="acx_csma_inside_bg_color4" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_inside_bg_color4']; ?>" size="20"/>
2085
  <div style="position: absolute;" id="acx_csma_inside_bg_color4_div"></div>
2086
  </div> <!-- acx_qa_field -->
2087
  <label>
2088
  Title Text:
2089
  </label>
2090
  <div class="acx_qa_field">
2091
+ <input type="text" name="acx_csma_title4" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_title4']; ?>" size="20"/>
2092
  </div> <!-- acx_qa_field -->
2093
  <label>
2094
  Custom HTML Block Above Countdown Timer
2095
  </label>
2096
  <div class="acx_qa_field">
2097
  <?php $acx_csma_custom_html_top_temp4 =base64_decode($acx_csma_appearence_array['4']['acx_csma_custom_html_top_temp4']); ?>
2098
+ <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; ?></textarea>
2099
  </div><!-- acx_qa_field -->
2100
  <label>
2101
  Title Text color:<a onclick="acx_csma_restore_default('','#717171','acx_csma_title_color4');" class="acx_csmap_button_reset">[Reset To Default]</a>
2102
  </label>
2103
  <div class="acx_qa_field">
2104
+ <input type="text" name="acx_csma_title_color4" id="acx_csma_title_color4" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_title_color4']; ?>" size="20"/>
2105
  <div style="position: absolute;" id="acx_csma_title_color4_div"></div>
2106
  </div> <!-- acx_qa_field -->
2107
  </div> <!-- acx_csmap_q_and_a_inside -->
2111
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
2112
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2113
 
2114
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
2115
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">4)
2116
  Would you like to change the Timer block properties
2117
  </span>
2118
+ <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>
2119
+ <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;">
2120
  <div class="acx_csmap_q_and_a_inside">
2121
  <label>
2122
  Would you like to show Timer?
2123
  </label>
2124
  <div class="acx_qa_field">
2125
  <select name="acx_csma_show_timer4">
2126
+ <option value="1" <?php if ($acx_csma_show_timer4 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
2127
+ <option value="0" <?php if ($acx_csma_show_timer4 == "0") { echo 'selected="selected"'; } ?>>No</option>
2128
  </select>
2129
  </div>
2130
  <label>
2131
  Input Text Color:<a onclick="acx_csma_restore_default('','#717171','acx_csma_timer_iptext_color4');" class="acx_csmap_button_reset">[Reset To Default]</a>
2132
  </label>
2133
  <div class="acx_qa_field">
2134
+ <input type="text" name="acx_csma_timer_iptext_color4" id="acx_csma_timer_iptext_color4" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_timer_iptext_color4']; ?>" size="20"/>
2135
  <div style="position: absolute;" id="acx_csma_timer_iptext_color4_div"></div>
2136
  </div> <!-- acx_qa_field -->
2137
 
2139
  Heading Color:<a onclick="acx_csma_restore_default('','#717171','acx_csma_timer_head_color4');" class="acx_csmap_button_reset">[Reset To Default]</a>
2140
  </label>
2141
  <div class="acx_qa_field">
2142
+ <input type="text" name="acx_csma_timer_head_color4" id="acx_csma_timer_head_color4" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_timer_head_color4']; ?>" size="20"/>
2143
  <div style="position: absolute;" id="acx_csma_timer_head_color4_div"></div>
2144
  </div> <!-- acx_qa_field -->
2145
  <label>
2147
  </label>
2148
  <div class="acx_qa_field">
2149
  <select name="acx_csma_show_progressbar4">
2150
+ <option value="1" <?php if ($acx_csma_show_progressbar4 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
2151
+ <option value="0" <?php if ($acx_csma_show_progressbar4 == "0") { echo 'selected="selected"'; } ?>>No</option>
2152
  </select>
2153
  </div>
2154
  <label>
2155
  Progress Bar Color:<a onclick="acx_csma_restore_default('','#717171','acx_csma_progress_bar_color4');" class="acx_csmap_button_reset">[Reset To Default]</a>
2156
  </label>
2157
  <div class="acx_qa_field">
2158
+ <input type="text" name="acx_csma_progress_bar_color4" id="acx_csma_progress_bar_color4" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_progress_bar_color4']; ?>" size="20"/>
2159
  <div style="position: absolute;" id="acx_csma_progress_bar_color4_div"></div>
2160
  </div> <!-- acx_qa_field -->
2161
  <label>
2163
  </label>
2164
  <div class="acx_qa_field">
2165
  <?php $acx_csma_custom_html_bottom_temp4 =base64_decode($acx_csma_appearence_array['4']['acx_csma_custom_html_bottom_temp4']); ?>
2166
+ <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; ?></textarea>
2167
  </div><!-- acx_qa_field -->
2168
  </div> <!-- acx_csmap_q_and_a_inside -->
2169
  </div> <!-- acx_csmap_q_and_a -->
2170
  </div> <!-- acx_csmap_q_and_a_h -->
2171
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2172
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
2173
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2174
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
2175
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">5)
2176
  Would you like to Add Social Media Icons Links
2177
  </span>
2178
+ <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>
2179
+ <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;">
2180
  <div class="acx_csmap_q_and_a_inside">
2181
  <label>
2182
  Facebook Link
2183
  </label>
2184
  <div class="acx_qa_field">
2185
+ <input type="text" name="acx_csma_fb_link4" id="acx_csma_fb_link4" value="<?php echo esc_url($acx_csma_appearence_array['4']['acx_csma_fb_link4']); ?>" size="20"/>
2186
  </div> <!-- acx_qa_field -->
2187
  <label>
2188
  Twitter Link
2189
  </label>
2190
  <div class="acx_qa_field">
2191
+ <input type="text" name="acx_csma_twitter_link4" id="acx_csma_twitter_link4" value="<?php echo esc_url($acx_csma_appearence_array['4']['acx_csma_twitter_link4']); ?>" size="20"/>
2192
  </div> <!-- acx_qa_field -->
2193
  <label>
2194
  LinkedIn Link
2195
  </label>
2196
  <div class="acx_qa_field">
2197
+ <input type="text" name="acx_csma_linkedin_link4" id="acx_csma_linkedin_link4" value="<?php echo esc_url($acx_csma_appearence_array['4']['acx_csma_linkedin_link4']); ?>" size="20"/>
2198
  </div> <!-- acx_qa_field -->
2199
  </div> <!-- acx_csmap_q_and_a_inside -->
2200
  </div> <!-- acx_csmap_q_and_a -->
2206
  <div id="acx_csma_template_5" style="display:none;" class="acx_csma_template_option_holder">
2207
  <div id="acx_csma_5_p_q_and_a_h_main_holder">
2208
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
2209
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2210
 
2211
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
2212
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">1)
2213
  Would you like to change the Background
2214
  </span>
2215
+ <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>
2216
+ <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;">
2217
  <div class="acx_csmap_q_and_a_inside">
2218
  <label>
2219
  Background Color:<a onclick="acx_csma_restore_default('','#e9eaec','acx_csma_bgcolor5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2220
  </label>
2221
  <div class="acx_qa_field">
2222
+ <input type="text" name="acx_csma_bgcolor5" id="acx_csma_bgcolor5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_bgcolor5']; ?>" size="20"/>
2223
  <div style="position: absolute;" id="acx_csma_bgcolor5_div"></div>
2224
  </div> <!-- acx_qa_field -->
2225
  </div><!-- acx_csmap_q_and_a_inside -->
2227
  </div> <!-- acx_csmap_q_and_a_h -->
2228
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2229
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
2230
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2231
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
2232
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">2)
2233
  Are you sure to change the Logo
2234
  </span>
2235
+ <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>
2236
+ <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;">
2237
  <div class="acx_csmap_q_and_a_inside">
2238
+ <div class="acx_csma_logo_main">
2239
+ <table cellspacing="10">
2240
+ <tr><td>
2241
+ <input type="radio" name="acx_csma_logo_choice5" class="acx_csma_logo" id="acx_csma_logo_image5" value="image" onclick="acx_csma_rdbtn_show_logo('image','5');" <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['5'])){if($acx_csma_appearence_array['5']['acx_csma_logo_choice'] == 'image' || $acx_csma_appearence_array['5']['acx_csma_logo_choice']==''){echo "checked='checked'";}}else{ echo "checked='checked'";} ?>/>Logo Image</td><td>
2242
+ <input type="radio" name="acx_csma_logo_choice5" class="acx_csma_logo" id="acx_csma_logo_text5" value="text" onclick="acx_csma_rdbtn_show_logo('text','5');" <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array['5'])){if($acx_csma_appearence_array['5']['acx_csma_logo_choice'] == 'text'){echo "checked='checked'";}}?>/>Logo Text</td></tr></table>
2243
+ </div><!--acx_csma_logo_main -->
2244
+ <div id="acx_show_logo_image_5" class="acx_csma_logo_block acx_csma_logo_block_5" style="display:none;">
2245
  <label>
2246
  Logo: <span id="acx_csma_span">(Recommended size 315x94)</span>
2247
  </label>
2248
  <div class="acx_qa_field">
2249
+ <img id="custom_uploader_template_5_logo_field_preview" src="<?php echo esc_url($acx_csma_appearence_array['5']['acx_csma_logo5']); ?>" style="width:100px;height:auto;">
2250
+ <input type="hidden" id="custom_uploader_template_5_logo_field" name="acx_csma_logo5" value="<?php echo esc_url($acx_csma_appearence_array['5']['acx_csma_logo5']); ?>" size="20"><a id="acx_upload_button_logo5" class="button">Pick a Logo</a>
2251
+ <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>
2252
+ </div> <!-- acx_qa_field -->
2253
+ </div> <!-- acx_show_logo_image -->
2254
+ <div id="acx_show_logo_text_5" class="acx_csma_logo_block acx_csma_logo_block_5" style="display:none;">
2255
+ <label>
2256
+ Logo Text:
2257
+ </label>
2258
+ <div class="acx_qa_field">
2259
+ <?php if(array_key_exists('acx_csma_logo_text5',$acx_csma_appearence_array['5'])){$acx_csma_logo_text5=$acx_csma_appearence_array['5']['acx_csma_logo_text5'];
2260
+ if($acx_csma_logo_text5 == "")
2261
+ {
2262
+ $acx_csma_logo_text5=get_bloginfo('name');
2263
+ }}else{
2264
+ $acx_csma_logo_text5=get_bloginfo('name');
2265
+ }?>
2266
+ <input type="text" name="acx_csma_logo_text5" placeholder="Logo Text Here" value="<?php echo $acx_csma_logo_text5; ?>" size="20"/>
2267
  </div> <!-- acx_qa_field -->
2268
+ <label>
2269
+ Logo Text Color: <a onclick="acx_csma_restore_default('','#000000','acx_csma_logo_text_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2270
+ </label>
2271
+ <div class="acx_qa_field">
2272
+ <?php if(array_key_exists('acx_csma_logo_text_color5',$acx_csma_appearence_array['5'])){$acx_csma_logo_text_color5=$acx_csma_appearence_array['5']['acx_csma_logo_text_color5'];
2273
+ if($acx_csma_logo_text_color5 == "")
2274
+ {
2275
+ $acx_csma_logo_text_color5="#000000";
2276
+ }}$acx_csma_logo_text_color5="#000000"; ?>
2277
+ <input type="text" name="acx_csma_logo_text_color5" id="acx_csma_logo_text_color5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_logo_text_color5; ?>" size="20" />
2278
+ <div style="position: absolute;" id="acx_csma_logo_text_color5_div"></div>
2279
+ </div> <!-- acx_qa_field -->
2280
+ </div> <!-- acx_show_logo_text -->
2281
  </div><!-- acx_csmap_q_and_a_inside -->
2282
  </div> <!-- acx_csmap_q_and_a -->
2283
  </div> <!-- acx_csmap_q_and_a_h -->
2284
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2285
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
2286
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2287
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
2288
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">3)
2289
  Would you like to change the Background color
2290
  </span>
2291
+ <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>
2292
+ <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;">
2293
  <div class="acx_csmap_q_and_a_inside">
2294
  <label>
2295
  Background Color:<a onclick="acx_csma_restore_default('','#f5f5f5','acx_csma_inside_bg_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2296
  </label>
2297
  <div class="acx_qa_field">
2298
+ <input type="text" name="acx_csma_inside_bg_color5" id="acx_csma_inside_bg_color5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_inside_bg_color5']; ?>" size="20"/>
2299
  <div style="position: absolute;" id="acx_csma_inside_bg_color5_div"></div>
2300
  </div> <!-- acx_qa_field -->
2301
  </div><!-- acx_csmap_q_and_a_inside -->
2303
  </div> <!-- acx_csmap_q_and_a_h -->
2304
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2305
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
2306
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2307
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
2308
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">4)
2309
  Would you like to change the default Title properties
2310
  </span>
2311
+ <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>
2312
+ <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;">
2313
  <div class="acx_csmap_q_and_a_inside">
2314
  <label>
2315
  Title Text:
2316
  </label>
2317
  <div class="acx_qa_field">
2318
+ <input type="text" name="acx_csma_title5" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_title5']; ?>" size="20"/>
2319
  </div> <!-- acx_qa_field -->
2320
  <label>
2321
  Custom HTML Block Above Countdown Timer
2322
  </label>
2323
  <div class="acx_qa_field">
2324
  <?php $acx_csma_custom_html_top_temp5 =base64_decode($acx_csma_appearence_array['5']['acx_csma_custom_html_top_temp5']); ?>
2325
+ <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; ?></textarea>
2326
  </div><!-- acx_qa_field -->
2327
  <label>
2328
  Title Text Color:<a onclick="acx_csma_restore_default('','#4b4b4b','acx_csma_title_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2329
  </label>
2330
  <div class="acx_qa_field">
2331
+ <input type="text" name="acx_csma_title_color5" id="acx_csma_title_color5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_title_color5']; ?>" size="20"/>
2332
  <div style="position: absolute;" id="acx_csma_title_color5_div"></div>
2333
  </div> <!-- acx_qa_field -->
2334
  </div><!-- acx_csmap_q_and_a_inside -->
2336
  </div> <!-- acx_csmap_q_and_a_h -->
2337
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2338
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
2339
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2340
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
2341
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">5)
2342
  Would you like to change the Timer block
2343
  </span>
2344
+ <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>
2345
+ <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;">
2346
  <div class="acx_csmap_q_and_a_inside">
2347
  <label>
2348
  Would you like to show Timer?
2349
  </label>
2350
  <div class="acx_qa_field">
2351
  <select name="acx_csma_show_timer5">
2352
+ <option value="1" <?php if ($acx_csma_show_timer5 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
2353
+ <option value="0" <?php if ($acx_csma_show_timer5 == "0") { echo 'selected="selected"'; } ?>>No</option>
2354
  </select>
2355
  </div>
2356
  <label>
2357
  Input Text Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_timer_iptext_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2358
  </label>
2359
  <div class="acx_qa_field">
2360
+ <input type="text" name="acx_csma_timer_iptext_color5" id="acx_csma_timer_iptext_color5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_timer_iptext_color5']; ?>" size="20"/>
2361
  <div style="position: absolute;" id="acx_csma_timer_iptext_color5_div"></div>
2362
  </div> <!-- acx_qa_field -->
2363
  <label>
2364
  Heading Color:<a onclick="acx_csma_restore_default('','#000000','acx_csma_timer_head_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2365
  </label>
2366
  <div class="acx_qa_field">
2367
+ <input type="text" name="acx_csma_timer_head_color5" id="acx_csma_timer_head_color5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_timer_head_color5']; ?>" size="20"/>
2368
  <div style="position: absolute;" id="acx_csma_timer_head_color5_div"></div>
2369
  </div> <!-- acx_qa_field -->
2370
  <label>
2372
  </label>
2373
  <div class="acx_qa_field">
2374
  <select name="acx_csma_show_progressbar5">
2375
+ <option value="1" <?php if ($acx_csma_show_progressbar5 == "1") { echo 'selected="selected"'; } ?>>Yes </option>
2376
+ <option value="0" <?php if ($acx_csma_show_progressbar5 == "0") { echo 'selected="selected"'; } ?>>No</option>
2377
  </select>
2378
  </div>
2379
  <label>
2380
  Progress Bar Color:<a onclick="acx_csma_restore_default('','#717171','acx_csma_progress_bar_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2381
  </label>
2382
  <div class="acx_qa_field">
2383
+ <input type="text" name="acx_csma_progress_bar_color5" id="acx_csma_progress_bar_color5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_progress_bar_color5']; ?>" size="20"/>
2384
  <div style="position: absolute;" id="acx_csma_progress_bar_color5_div"></div>
2385
  </div> <!-- acx_qa_field -->
2386
  <label>
2388
  </label>
2389
  <div class="acx_qa_field">
2390
  <?php $acx_csma_custom_html_bottom_temp5 =base64_decode($acx_csma_appearence_array['5']['acx_csma_custom_html_bottom_temp5']); ?>
2391
+ <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; ?></textarea>
2392
  </div><!-- acx_qa_field -->
2393
  </div><!-- acx_csmap_q_and_a_inside -->
2394
  </div> <!-- acx_csmap_q_and_a -->
2395
  </div> <!-- acx_csmap_q_and_a_h -->
2396
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2397
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################-->
2398
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2399
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
2400
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">6)
2401
  Would you like to change the Subscribe block
2402
  </span>
2403
+ <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>
2404
+ <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;">
2405
  <div class="acx_csmap_q_and_a_inside">
2406
  <label>
2407
  Background Color:<a onclick="acx_csma_restore_default('','#2f2f2f','acx_csma_subscribe_bg_color5');" class="acx_csmap_button_reset">[Reset To Default]</a>
2408
  </label>
2409
  <div class="acx_qa_field">
2410
+ <input type="text" name="acx_csma_subscribe_bg_color5" id="acx_csma_subscribe_bg_color5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_subscribe_bg_color5']; ?>" size="20"/>
2411
  <div style="position: absolute;" id="acx_csma_subscribe_bg_color5_div"></div>
2412
  </div> <!-- acx_qa_field -->
2413
  <label>
2414
  Title:
2415
  </label>
2416
  <div class="acx_qa_field">
2417
+ <input type="text" name="acx_csma_subscribe_title5" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_subscribe_title5']; ?>" size="20"/>
2418
  </div> <!-- acx_qa_field -->
2419
  <label>
2420
  Subscribe Success Message:
2421
  </label>
2422
  <div class="acx_qa_field">
2423
+ <input type="text" name="acx_csma_subscribe_success5" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_subscribe_success5']; ?>" size="20"/>
2424
  </div> <!-- acx_qa_field -->
2425
  <label>
2426
  Subscribe Invalid Message:
2427
  </label>
2428
  <div class="acx_qa_field">
2429
+ <input type="text" name="acx_csma_subscribe_invalid5" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_subscribe_invalid5']; ?>" size="20"/>
2430
  </div> <!-- acx_qa_field -->
2431
  </div><!-- acx_csmap_q_and_a_inside -->
2432
  </div> <!-- acx_csmap_q_and_a -->
2433
  </div> <!-- acx_csmap_q_and_a_h -->
2434
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2435
  <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ########################################### -->
2436
+ <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2437
+ <div id="acx_csmap_q_and_a_h" class="acx_csmap_q_and_a_h_common acx_csmap_q_and_a_h_<?php echo $acx_csmap_qa_id; ?>">
2438
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">7)
2439
  Would you like to Add Social Media Icons Links
2440
  </span>
2441
+ <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>
2442
+ <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;">
2443
  <div class="acx_csmap_q_and_a_inside">
2444
  <label>
2445
  Facebook Link
2446
  </label>
2447
  <div class="acx_qa_field">
2448
+ <input type="text" name="acx_csma_fb_link5" id="acx_csma_fb_link5" value="<?php echo esc_url($acx_csma_appearence_array['5']['acx_csma_fb_link5']); ?>" size="20"/>
2449
  </div> <!-- acx_qa_field -->
2450
  <label>
2451
  Twitter Link
2452
  </label>
2453
  <div class="acx_qa_field">
2454
+ <input type="text" name="acx_csma_twitter_link5" id="acx_csma_twitter_link5" value="<?php echo esc_url($acx_csma_appearence_array['5']['acx_csma_twitter_link5']); ?>" size="20"/>
2455
  </div> <!-- acx_qa_field -->
2456
  <label>
2457
  LinkedIn Link
2458
  </label>
2459
  <div class="acx_qa_field">
2460
+ <input type="text" name="acx_csma_linkedin_link5" id="acx_csma_linkedin_link5" value="<?php echo esc_url($acx_csma_appearence_array['5']['acx_csma_linkedin_link5']); ?>" size="20"/>
2461
  </div> <!-- acx_qa_field -->
2462
  </div> <!-- acx_csmap_q_and_a_inside -->
2463
  </div> <!-- acx_csmap_q_and_a -->
2466
 
2467
  </div> <!-- acx_csma_5_p_q_and_a_h_main_holder -->
2468
  </div><!--acx_csma_template_5-->
2469
+ <?php acx_csma_hook_function('acx_csma_hook_mainoptions_below_appearence_settings'); ?>
2470
  <div id="acx_csma_template_0" style="display:none;" class="acx_csma_template_option_holder">
2471
  <table>
2472
  <tr><td>
2474
  Custom HTML content
2475
  </label></td>
2476
  <td><?php $acx_csma_custom_html_val =base64_decode(get_option('acx_csma_custom_html_val')); ?>
2477
+ <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; ?></textarea>
2478
  </td>
2479
  </tr>
2480
  </table>
2481
  </div><!-- acx_csma_template_0-->
2482
  </div><!--acx_csma_tab_block_2-->
2483
  <table>
2484
+ <tr><td colspan="3"><p><a onclick="acx_csma_save_settings('acx_csma_ip_list1');" name="Submit" id="Submit" class="button button-primary" style="margin-left:20px;"><?php _e('Save Settings','acx_csma_config'); ?></a></p>
2485
+ <input name="acx_csma_save_config" type="hidden" value="<?php echo wp_create_nonce('acx_csma_save_config'); ?>" />
2486
+ </td></tr>
2487
  </table>
2488
  </form>
2489
  </div>
2491
  <?php
2492
  if($acx_csma_template == "") { $acx_csma_template = "1"; }
2493
  if($acx_csma_template != "")
2494
+ {
2495
+ ?>
2496
  <script type="text/javascript">
2497
  jQuery(document).ready(function()
2498
  {
2499
+ acx_csma_rdbtn_show_div('<?php echo $acx_csma_template; ?>');
2500
+
2501
  });
2502
  </script>
2503
  <?php
2521
 
2522
  acx_csma_upload_images_template_loader("acx_upload_button_logo5","Choose Logo","Choose Image","custom_uploader_template_5_logo_field","custom_uploader_template_5_logo_field_preview");
2523
  });
2524
+ //show logo div
2525
+ function acx_csma_rdbtn_show_logo(value,id)
2526
+ {
2527
+ jQuery('.acx_csma_logo_block_'+id).removeClass('acx_csma_logo_active');
2528
+ jQuery('.acx_csma_logo_block_'+id).fadeOut();
2529
+
2530
+ jQuery('#acx_show_logo_'+value+'_'+id).addClass('acx_csma_logo_active');
2531
+ jQuery('#acx_show_logo_'+value+'_'+id).fadeIn();
2532
+ }
2533
 
2534
  //form submit
2535
  function acx_csma_save_settings(acx_csma_selectbox_id)
2613
 
2614
  // add date picker
2615
  jQuery('#datetimepicker').datetimepicker({
2616
+ dayOfWeekStart : 1,
2617
+ lang:'en',
2618
+ defaultTime: "<?php $format = "H:i"; echo date_i18n($format, current_time('timestamp')); ?>",
2619
+ defaultDate: "<?php $format = "Y/m/d"; echo date_i18n($format, (current_time('timestamp'))); ?>",
2620
+ allowBlank: false,
2621
  });
2622
  // show template div
2623
  function acx_csma_rdbtn_show_div(temp)
2624
  {
2625
+ jQuery('.acx_csma_template_option_holder').removeClass('acx_csma_temp_active');
2626
  jQuery('.acx_csma_template_option_holder').fadeOut();
2627
 
2628
+ jQuery('#acx_csma_template_'+temp).addClass('acx_csma_temp_active');
2629
  jQuery('#acx_csma_template_'+temp).fadeIn();
2630
+
2631
  }
2632
  function acx_csmap_easy_qa_toggle(id)
2633
  { var acx_csma_toggle_common = ".acx_csma_toggle";
2655
  {
2656
  var text_id_j="#"+text_id;
2657
  jQuery(text_id_j).css('background',default_value);
 
 
2658
  }
2659
  if(img_id!="")
2660
  {
2661
  var acx_csma_bg_img_id=document.getElementById(img_id);
2662
  acx_csma_bg_img_id.src = default_value;
2663
  }
 
2664
  document.getElementById(text_id).value = default_value;
2665
  }
2666
  jQuery(document).ready(function()
2667
  {
2668
  var acx_csma_cookie = getCookie("acx_csma_cookie");
2669
+ acx_csma_show_div(acx_csma_cookie);
2670
+ <?php
2671
+ foreach($acx_csma_appearence_array as $key =>$value)
2672
+ {
2673
+ if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array[$key]))
2674
+ {
2675
+ $acx_csma_logo_choice = $value['acx_csma_logo_choice'];
2676
+ if($acx_csma_logo_choice == "") { $acx_csma_logo_choice = "image"; }}else{
2677
+ $acx_csma_logo_choice = "image";
2678
+ } ?>
2679
+ acx_csma_rdbtn_show_logo('<?php echo $acx_csma_logo_choice; ?>','<?php echo $key; ?>');
2680
+ <?php } ?>
2681
  });
2682
  function acx_csmap_easy_qa_expandall()
2683
  {<?php for ($i = 1; $i <= $acx_csmap_qa_id; $i++) { ?>
2689
  { ?>
2690
  acx_csmap_easy_qa_expandall();
2691
  <?php }?>
2692
+ <?php acx_csma_hook_function('acx_csma_hook_mainoptions_below_javascript'); ?>
2693
  </script>
includes/acx_csma_expert_support.php CHANGED
@@ -50,7 +50,7 @@ var acx_phone = jQuery("#acx_phone").val();
50
  var acx_weburl = jQuery("#acx_weburl").val();
51
  var acx_subject = jQuery("#acx_subject").val();
52
  var acx_question = jQuery("#acx_question").val();
53
- var order = '&action=acx_csma_quick_request_submit&acx_name='+acx_name+'&acx_email='+acx_email+'&acx_phone='+acx_phone+'&acx_weburl='+acx_weburl+'&acx_subject='+acx_subject+'&acx_question='+acx_question;
54
  if(request_acx_form_status == 0)
55
  {
56
  request_acx_form_status = 1;
50
  var acx_weburl = jQuery("#acx_weburl").val();
51
  var acx_subject = jQuery("#acx_subject").val();
52
  var acx_question = jQuery("#acx_question").val();
53
+ var order = '&action=acx_csma_quick_request_submit&acx_name='+acx_name+'&acx_email='+acx_email+'&acx_phone='+acx_phone+'&acx_weburl='+acx_weburl+'&acx_subject='+acx_subject+'&acx_question='+acx_question+'&acx_csma_es=<?php echo wp_create_nonce("acx_csma_es"); ?>';
54
  if(request_acx_form_status == 0)
55
  {
56
  request_acx_form_status = 1;
includes/acx_csma_misc.php CHANGED
@@ -13,7 +13,6 @@ $acx_csma_service_banners = $_POST['acx_csma_service_banners'];
13
  update_option('acx_csma_service_banners', $acx_csma_service_banners);
14
  $acx_csma_hide_expert_support_menu = $_POST['acx_csma_hide_expert_support_menu'];
15
  update_option('acx_csma_hide_expert_support_menu', $acx_csma_hide_expert_support_menu);
16
-
17
  ?>
18
  <div class="updated"><p><strong><?php _e('Misc Settings Saved!.' ); ?></strong></p></div>
19
  <?php
@@ -70,15 +69,15 @@ if ($acx_csma_service_banners != "no") { ?>
70
  <input type="hidden" name="acx_csma_misc_hidden" value="Y">
71
  <p class="widefat" style="padding:8px;width:99%;margin-top:8px;"> <?php _e("Acurax Service Banners: " ); ?>
72
  <select name="acx_csma_service_banners">
73
- <option value="yes"<?php if ($acx_csma_service_banners == "yes") { echo 'selected="selected"'; } ?>>Yes, Show Them </option>
74
- <option value="no"<?php if ($acx_csma_service_banners == "no") { echo 'selected="selected"'; } ?>>No, Hide Them </option>
75
  </select>
76
  <?php _e("Show Acurax Service Banners On Plugin Settings Page?" ); ?>
77
  </p>
78
  <p class="widefat" style="padding:8px;width:99%;margin-top:8px;"> <?php _e("Hide Expert Support Menu?: " ); ?>
79
  <select name="acx_csma_hide_expert_support_menu">
80
- <option value="yes"<?php if ($acx_csma_hide_expert_support_menu == "yes") { echo 'selected="selected"'; } ?>>Yes </option>
81
- <option value="no"<?php if ($acx_csma_hide_expert_support_menu == "no") { echo 'selected="selected"'; } ?>>No </option>
82
  </select>
83
  <?php _e("Would you like to hide the expert support sub menu?" ); ?>
84
  </p>
13
  update_option('acx_csma_service_banners', $acx_csma_service_banners);
14
  $acx_csma_hide_expert_support_menu = $_POST['acx_csma_hide_expert_support_menu'];
15
  update_option('acx_csma_hide_expert_support_menu', $acx_csma_hide_expert_support_menu);
 
16
  ?>
17
  <div class="updated"><p><strong><?php _e('Misc Settings Saved!.' ); ?></strong></p></div>
18
  <?php
69
  <input type="hidden" name="acx_csma_misc_hidden" value="Y">
70
  <p class="widefat" style="padding:8px;width:99%;margin-top:8px;"> <?php _e("Acurax Service Banners: " ); ?>
71
  <select name="acx_csma_service_banners">
72
+ <option value="yes" <?php if ($acx_csma_service_banners == "yes") { echo 'selected="selected"'; } ?>>Yes, Show Them </option>
73
+ <option value="no" <?php if ($acx_csma_service_banners == "no") { echo 'selected="selected"'; } ?>>No, Hide Them </option>
74
  </select>
75
  <?php _e("Show Acurax Service Banners On Plugin Settings Page?" ); ?>
76
  </p>
77
  <p class="widefat" style="padding:8px;width:99%;margin-top:8px;"> <?php _e("Hide Expert Support Menu?: " ); ?>
78
  <select name="acx_csma_hide_expert_support_menu">
79
+ <option value="yes" <?php if ($acx_csma_hide_expert_support_menu == "yes") { echo 'selected="selected"'; } ?>>Yes </option>
80
+ <option value="no" <?php if ($acx_csma_hide_expert_support_menu == "no") { echo 'selected="selected"'; } ?>>No </option>
81
  </select>
82
  <?php _e("Would you like to hide the expert support sub menu?" ); ?>
83
  </p>
includes/acx_csma_subscribers.php CHANGED
@@ -101,6 +101,14 @@ class Acx_Csma_My_List_Table extends WP_List_Table
101
  'ajax' => false //does this table support ajax?
102
  ) );
103
  }
 
 
 
 
 
 
 
 
104
  function acx_csma_data()
105
  {
106
  $acx_csma_subscribe_details=get_option('acx_csma_subscribe_user_details');
@@ -125,13 +133,13 @@ class Acx_Csma_My_List_Table extends WP_List_Table
125
  $acx_csma_subscribe_details_new = array();
126
 
127
  foreach($acx_csma_subscribe_details as $key => $value)
128
- {
129
- $acx_time=date('Y-m-d', $value['timestamp']);
130
-
131
  $acx_csma_subscribe_details_new[]=array(
132
  'ID'=>$key+1,
133
  'NAME'=>$value['name'],
134
- 'EMAIL'=>$value['email'],
135
  'IP'=>$value['ip'],
136
  'TIME'=>$acx_time
137
  );
@@ -183,8 +191,7 @@ class Acx_Csma_My_List_Table extends WP_List_Table
183
  }
184
  function get_bulk_actions() {
185
  $actions = array(
186
- 'bulk_delete' => 'Delete',
187
- 'download' => 'Download'
188
  );
189
  return $actions;
190
  }
@@ -235,10 +242,10 @@ $acx_csma = str_replace( '%7E', '~', $_SERVER['REQUEST_URI']);
235
  if($acx_csma != "")
236
  {
237
  $acx_csma = str_replace("action=delete&ID","acurax",$acx_csma);
238
- }?>
239
- <form name="acurax_popunder_subscribe_form" method="post" action="<?php echo $acx_csma;?>">
240
  <p>
241
- <?php acx_csma_render_list_page();?>
242
  </p>
243
  </form>
244
  </div>
101
  'ajax' => false //does this table support ajax?
102
  ) );
103
  }
104
+
105
+ // here for compatibility with 4.3
106
+ function get_columns()
107
+ {
108
+ // Get options
109
+ return $this->acx_csma_get_columns();
110
+ }
111
+
112
  function acx_csma_data()
113
  {
114
  $acx_csma_subscribe_details=get_option('acx_csma_subscribe_user_details');
133
  $acx_csma_subscribe_details_new = array();
134
 
135
  foreach($acx_csma_subscribe_details as $key => $value)
136
+ {
137
+ $format="Y-m-d";
138
+ $acx_time=date_i18n($format, $value['timestamp']);
139
  $acx_csma_subscribe_details_new[]=array(
140
  'ID'=>$key+1,
141
  'NAME'=>$value['name'],
142
+ 'EMAIL'=>sanitize_email($value['email']),
143
  'IP'=>$value['ip'],
144
  'TIME'=>$acx_time
145
  );
191
  }
192
  function get_bulk_actions() {
193
  $actions = array(
194
+ 'bulk_delete' => 'Delete'
 
195
  );
196
  return $actions;
197
  }
242
  if($acx_csma != "")
243
  {
244
  $acx_csma = str_replace("action=delete&ID","acurax",$acx_csma);
245
+ } ?>
246
+ <form name="acurax_popunder_subscribe_form" method="post" action="<?php echo $acx_csma; ?>">
247
  <p>
248
+ <?php acx_csma_render_list_page(); ?>
249
  </p>
250
  </form>
251
  </div>
js/color.js CHANGED
@@ -1,6 +1,11 @@
1
  jQuery(document).ready(function($)
2
  {
3
  // Template 1
 
 
 
 
 
4
  jQuery('#acx_csma_title_color1_div').hide();
5
  jQuery('#acx_csma_title_color1_div').farbtastic('#acx_csma_title_color1');
6
  jQuery('#acx_csma_title_color1').click(function(){jQuery('#acx_csma_title_color1_div').slideDown()});
@@ -78,6 +83,11 @@ jQuery(document).ready(function($)
78
  jQuery('#acx_csma_footer_text_color1').blur(function(){jQuery('#acx_csma_footer_text_color1_div').slideUp()});
79
 
80
  // Template 2
 
 
 
 
 
81
  jQuery('#acx_csma_bg_color2_div').hide();
82
  jQuery('#acx_csma_bg_color2_div').farbtastic('#acx_csma_bg_color2');
83
  jQuery('#acx_csma_bg_color2').click(function(){jQuery('#acx_csma_bg_color2_div').slideDown()});
@@ -124,6 +134,11 @@ jQuery(document).ready(function($)
124
  jQuery('#acx_csma_desc_text_color2').blur(function(){jQuery('#acx_csma_desc_text_color2_div').slideUp()});
125
 
126
  // Template 3
 
 
 
 
 
127
  jQuery('#acx_csma_title_color3_div').hide();
128
  jQuery('#acx_csma_title_color3_div').farbtastic('#acx_csma_title_color3');
129
  jQuery('#acx_csma_title_color3').click(function(){jQuery('#acx_csma_title_color3_div').slideDown()});
@@ -190,6 +205,11 @@ jQuery(document).ready(function($)
190
  jQuery('#acx_csma_social_link_title_color3').click(function(){jQuery('#acx_csma_social_link_title_color3_div').slideDown()});
191
  jQuery('#acx_csma_social_link_title_color3').blur(function(){jQuery('#acx_csma_social_link_title_color3_div').slideUp()});
192
  // Template 4
 
 
 
 
 
193
  jQuery('#acx_csma_inside_bg_color4_div').hide();
194
  jQuery('#acx_csma_inside_bg_color4_div').farbtastic('#acx_csma_inside_bg_color4');
195
  jQuery('#acx_csma_inside_bg_color4').click(function(){jQuery('#acx_csma_inside_bg_color4_div').slideDown()});
@@ -216,6 +236,11 @@ jQuery(document).ready(function($)
216
  jQuery('#acx_csma_progress_bar_color4').blur(function(){jQuery('#acx_csma_progress_bar_color4_div').slideUp()});
217
 
218
  // Template 5
 
 
 
 
 
219
  jQuery('#acx_csma_bgcolor5_div').hide();
220
  jQuery('#acx_csma_bgcolor5_div').farbtastic('#acx_csma_bgcolor5');
221
  jQuery('#acx_csma_bgcolor5').click(function(){jQuery('#acx_csma_bgcolor5_div').slideDown()});
1
  jQuery(document).ready(function($)
2
  {
3
  // Template 1
4
+ jQuery('#acx_csma_logo_text_color1_div').hide();
5
+ jQuery('#acx_csma_logo_text_color1_div').farbtastic('#acx_csma_logo_text_color1');
6
+ jQuery('#acx_csma_logo_text_color1').click(function(){jQuery('#acx_csma_logo_text_color1_div').slideDown()});
7
+ jQuery('#acx_csma_logo_text_color1').blur(function(){jQuery('#acx_csma_logo_text_color1_div').slideUp()});
8
+
9
  jQuery('#acx_csma_title_color1_div').hide();
10
  jQuery('#acx_csma_title_color1_div').farbtastic('#acx_csma_title_color1');
11
  jQuery('#acx_csma_title_color1').click(function(){jQuery('#acx_csma_title_color1_div').slideDown()});
83
  jQuery('#acx_csma_footer_text_color1').blur(function(){jQuery('#acx_csma_footer_text_color1_div').slideUp()});
84
 
85
  // Template 2
86
+ jQuery('#acx_csma_logo_text_color2_div').hide();
87
+ jQuery('#acx_csma_logo_text_color2_div').farbtastic('#acx_csma_logo_text_color2');
88
+ jQuery('#acx_csma_logo_text_color2').click(function(){jQuery('#acx_csma_logo_text_color2_div').slideDown()});
89
+ jQuery('#acx_csma_logo_text_color2').blur(function(){jQuery('#acx_csma_logo_text_color2_div').slideUp()});
90
+
91
  jQuery('#acx_csma_bg_color2_div').hide();
92
  jQuery('#acx_csma_bg_color2_div').farbtastic('#acx_csma_bg_color2');
93
  jQuery('#acx_csma_bg_color2').click(function(){jQuery('#acx_csma_bg_color2_div').slideDown()});
134
  jQuery('#acx_csma_desc_text_color2').blur(function(){jQuery('#acx_csma_desc_text_color2_div').slideUp()});
135
 
136
  // Template 3
137
+ jQuery('#acx_csma_logo_text_color3_div').hide();
138
+ jQuery('#acx_csma_logo_text_color3_div').farbtastic('#acx_csma_logo_text_color3');
139
+ jQuery('#acx_csma_logo_text_color3').click(function(){jQuery('#acx_csma_logo_text_color3_div').slideDown()});
140
+ jQuery('#acx_csma_logo_text_color3').blur(function(){jQuery('#acx_csma_logo_text_color3_div').slideUp()});
141
+
142
  jQuery('#acx_csma_title_color3_div').hide();
143
  jQuery('#acx_csma_title_color3_div').farbtastic('#acx_csma_title_color3');
144
  jQuery('#acx_csma_title_color3').click(function(){jQuery('#acx_csma_title_color3_div').slideDown()});
205
  jQuery('#acx_csma_social_link_title_color3').click(function(){jQuery('#acx_csma_social_link_title_color3_div').slideDown()});
206
  jQuery('#acx_csma_social_link_title_color3').blur(function(){jQuery('#acx_csma_social_link_title_color3_div').slideUp()});
207
  // Template 4
208
+ jQuery('#acx_csma_logo_text_color4_div').hide();
209
+ jQuery('#acx_csma_logo_text_color4_div').farbtastic('#acx_csma_logo_text_color4');
210
+ jQuery('#acx_csma_logo_text_color4').click(function(){jQuery('#acx_csma_logo_text_color4_div').slideDown()});
211
+ jQuery('#acx_csma_logo_text_color4').blur(function(){jQuery('#acx_csma_logo_text_color4_div').slideUp()});
212
+
213
  jQuery('#acx_csma_inside_bg_color4_div').hide();
214
  jQuery('#acx_csma_inside_bg_color4_div').farbtastic('#acx_csma_inside_bg_color4');
215
  jQuery('#acx_csma_inside_bg_color4').click(function(){jQuery('#acx_csma_inside_bg_color4_div').slideDown()});
236
  jQuery('#acx_csma_progress_bar_color4').blur(function(){jQuery('#acx_csma_progress_bar_color4_div').slideUp()});
237
 
238
  // Template 5
239
+ jQuery('#acx_csma_logo_text_color5_div').hide();
240
+ jQuery('#acx_csma_logo_text_color5_div').farbtastic('#acx_csma_logo_text_color5');
241
+ jQuery('#acx_csma_logo_text_color5').click(function(){jQuery('#acx_csma_logo_text_color5_div').slideDown()});
242
+ jQuery('#acx_csma_logo_text_color5').blur(function(){jQuery('#acx_csma_logo_text_color5_div').slideUp()});
243
+
244
  jQuery('#acx_csma_bgcolor5_div').hide();
245
  jQuery('#acx_csma_bgcolor5_div').farbtastic('#acx_csma_bgcolor5');
246
  jQuery('#acx_csma_bgcolor5').click(function(){jQuery('#acx_csma_bgcolor5_div').slideDown()});
js/moment.js ADDED
@@ -0,0 +1,3195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //! moment.js
2
+ //! version : 2.10.6
3
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
+ //! license : MIT
5
+ //! momentjs.com
6
+
7
+ (function (global, factory) {
8
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
9
+ typeof define === 'function' && define.amd ? define(factory) :
10
+ global.moment = factory()
11
+ }(this, function () { 'use strict';
12
+
13
+ var hookCallback;
14
+
15
+ function utils_hooks__hooks () {
16
+ return hookCallback.apply(null, arguments);
17
+ }
18
+
19
+ // This is done to register the method called with moment()
20
+ // without creating circular dependencies.
21
+ function setHookCallback (callback) {
22
+ hookCallback = callback;
23
+ }
24
+
25
+ function isArray(input) {
26
+ return Object.prototype.toString.call(input) === '[object Array]';
27
+ }
28
+
29
+ function isDate(input) {
30
+ return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
31
+ }
32
+
33
+ function map(arr, fn) {
34
+ var res = [], i;
35
+ for (i = 0; i < arr.length; ++i) {
36
+ res.push(fn(arr[i], i));
37
+ }
38
+ return res;
39
+ }
40
+
41
+ function hasOwnProp(a, b) {
42
+ return Object.prototype.hasOwnProperty.call(a, b);
43
+ }
44
+
45
+ function extend(a, b) {
46
+ for (var i in b) {
47
+ if (hasOwnProp(b, i)) {
48
+ a[i] = b[i];
49
+ }
50
+ }
51
+
52
+ if (hasOwnProp(b, 'toString')) {
53
+ a.toString = b.toString;
54
+ }
55
+
56
+ if (hasOwnProp(b, 'valueOf')) {
57
+ a.valueOf = b.valueOf;
58
+ }
59
+
60
+ return a;
61
+ }
62
+
63
+ function create_utc__createUTC (input, format, locale, strict) {
64
+ return createLocalOrUTC(input, format, locale, strict, true).utc();
65
+ }
66
+
67
+ function defaultParsingFlags() {
68
+ // We need to deep clone this object.
69
+ return {
70
+ empty : false,
71
+ unusedTokens : [],
72
+ unusedInput : [],
73
+ overflow : -2,
74
+ charsLeftOver : 0,
75
+ nullInput : false,
76
+ invalidMonth : null,
77
+ invalidFormat : false,
78
+ userInvalidated : false,
79
+ iso : false
80
+ };
81
+ }
82
+
83
+ function getParsingFlags(m) {
84
+ if (m._pf == null) {
85
+ m._pf = defaultParsingFlags();
86
+ }
87
+ return m._pf;
88
+ }
89
+
90
+ function valid__isValid(m) {
91
+ if (m._isValid == null) {
92
+ var flags = getParsingFlags(m);
93
+ m._isValid = !isNaN(m._d.getTime()) &&
94
+ flags.overflow < 0 &&
95
+ !flags.empty &&
96
+ !flags.invalidMonth &&
97
+ !flags.invalidWeekday &&
98
+ !flags.nullInput &&
99
+ !flags.invalidFormat &&
100
+ !flags.userInvalidated;
101
+
102
+ if (m._strict) {
103
+ m._isValid = m._isValid &&
104
+ flags.charsLeftOver === 0 &&
105
+ flags.unusedTokens.length === 0 &&
106
+ flags.bigHour === undefined;
107
+ }
108
+ }
109
+ return m._isValid;
110
+ }
111
+
112
+ function valid__createInvalid (flags) {
113
+ var m = create_utc__createUTC(NaN);
114
+ if (flags != null) {
115
+ extend(getParsingFlags(m), flags);
116
+ }
117
+ else {
118
+ getParsingFlags(m).userInvalidated = true;
119
+ }
120
+
121
+ return m;
122
+ }
123
+
124
+ var momentProperties = utils_hooks__hooks.momentProperties = [];
125
+
126
+ function copyConfig(to, from) {
127
+ var i, prop, val;
128
+
129
+ if (typeof from._isAMomentObject !== 'undefined') {
130
+ to._isAMomentObject = from._isAMomentObject;
131
+ }
132
+ if (typeof from._i !== 'undefined') {
133
+ to._i = from._i;
134
+ }
135
+ if (typeof from._f !== 'undefined') {
136
+ to._f = from._f;
137
+ }
138
+ if (typeof from._l !== 'undefined') {
139
+ to._l = from._l;
140
+ }
141
+ if (typeof from._strict !== 'undefined') {
142
+ to._strict = from._strict;
143
+ }
144
+ if (typeof from._tzm !== 'undefined') {
145
+ to._tzm = from._tzm;
146
+ }
147
+ if (typeof from._isUTC !== 'undefined') {
148
+ to._isUTC = from._isUTC;
149
+ }
150
+ if (typeof from._offset !== 'undefined') {
151
+ to._offset = from._offset;
152
+ }
153
+ if (typeof from._pf !== 'undefined') {
154
+ to._pf = getParsingFlags(from);
155
+ }
156
+ if (typeof from._locale !== 'undefined') {
157
+ to._locale = from._locale;
158
+ }
159
+
160
+ if (momentProperties.length > 0) {
161
+ for (i in momentProperties) {
162
+ prop = momentProperties[i];
163
+ val = from[prop];
164
+ if (typeof val !== 'undefined') {
165
+ to[prop] = val;
166
+ }
167
+ }
168
+ }
169
+
170
+ return to;
171
+ }
172
+
173
+ var updateInProgress = false;
174
+
175
+ // Moment prototype object
176
+ function Moment(config) {
177
+ copyConfig(this, config);
178
+ this._d = new Date(config._d != null ? config._d.getTime() : NaN);
179
+ // Prevent infinite loop in case updateOffset creates new moment
180
+ // objects.
181
+ if (updateInProgress === false) {
182
+ updateInProgress = true;
183
+ utils_hooks__hooks.updateOffset(this);
184
+ updateInProgress = false;
185
+ }
186
+ }
187
+
188
+ function isMoment (obj) {
189
+ return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
190
+ }
191
+
192
+ function absFloor (number) {
193
+ if (number < 0) {
194
+ return Math.ceil(number);
195
+ } else {
196
+ return Math.floor(number);
197
+ }
198
+ }
199
+
200
+ function toInt(argumentForCoercion) {
201
+ var coercedNumber = +argumentForCoercion,
202
+ value = 0;
203
+
204
+ if (coercedNumber !== 0 && isFinite(coercedNumber)) {
205
+ value = absFloor(coercedNumber);
206
+ }
207
+
208
+ return value;
209
+ }
210
+
211
+ function compareArrays(array1, array2, dontConvert) {
212
+ var len = Math.min(array1.length, array2.length),
213
+ lengthDiff = Math.abs(array1.length - array2.length),
214
+ diffs = 0,
215
+ i;
216
+ for (i = 0; i < len; i++) {
217
+ if ((dontConvert && array1[i] !== array2[i]) ||
218
+ (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
219
+ diffs++;
220
+ }
221
+ }
222
+ return diffs + lengthDiff;
223
+ }
224
+
225
+ function Locale() {
226
+ }
227
+
228
+ var locales = {};
229
+ var globalLocale;
230
+
231
+ function normalizeLocale(key) {
232
+ return key ? key.toLowerCase().replace('_', '-') : key;
233
+ }
234
+
235
+ // pick the locale from the array
236
+ // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
237
+ // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
238
+ function chooseLocale(names) {
239
+ var i = 0, j, next, locale, split;
240
+
241
+ while (i < names.length) {
242
+ split = normalizeLocale(names[i]).split('-');
243
+ j = split.length;
244
+ next = normalizeLocale(names[i + 1]);
245
+ next = next ? next.split('-') : null;
246
+ while (j > 0) {
247
+ locale = loadLocale(split.slice(0, j).join('-'));
248
+ if (locale) {
249
+ return locale;
250
+ }
251
+ if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
252
+ //the next array item is better than a shallower substring of this one
253
+ break;
254
+ }
255
+ j--;
256
+ }
257
+ i++;
258
+ }
259
+ return null;
260
+ }
261
+
262
+ function loadLocale(name) {
263
+ var oldLocale = null;
264
+ // TODO: Find a better way to register and load all the locales in Node
265
+ if (!locales[name] && typeof module !== 'undefined' &&
266
+ module && module.exports) {
267
+ try {
268
+ oldLocale = globalLocale._abbr;
269
+ require('./locale/' + name);
270
+ // because defineLocale currently also sets the global locale, we
271
+ // want to undo that for lazy loaded locales
272
+ locale_locales__getSetGlobalLocale(oldLocale);
273
+ } catch (e) { }
274
+ }
275
+ return locales[name];
276
+ }
277
+
278
+ // This function will load locale and then set the global locale. If
279
+ // no arguments are passed in, it will simply return the current global
280
+ // locale key.
281
+ function locale_locales__getSetGlobalLocale (key, values) {
282
+ var data;
283
+ if (key) {
284
+ if (typeof values === 'undefined') {
285
+ data = locale_locales__getLocale(key);
286
+ }
287
+ else {
288
+ data = defineLocale(key, values);
289
+ }
290
+
291
+ if (data) {
292
+ // moment.duration._locale = moment._locale = data;
293
+ globalLocale = data;
294
+ }
295
+ }
296
+
297
+ return globalLocale._abbr;
298
+ }
299
+
300
+ function defineLocale (name, values) {
301
+ if (values !== null) {
302
+ values.abbr = name;
303
+ locales[name] = locales[name] || new Locale();
304
+ locales[name].set(values);
305
+
306
+ // backwards compat for now: also set the locale
307
+ locale_locales__getSetGlobalLocale(name);
308
+
309
+ return locales[name];
310
+ } else {
311
+ // useful for testing
312
+ delete locales[name];
313
+ return null;
314
+ }
315
+ }
316
+
317
+ // returns locale data
318
+ function locale_locales__getLocale (key) {
319
+ var locale;
320
+
321
+ if (key && key._locale && key._locale._abbr) {
322
+ key = key._locale._abbr;
323
+ }
324
+
325
+ if (!key) {
326
+ return globalLocale;
327
+ }
328
+
329
+ if (!isArray(key)) {
330
+ //short-circuit everything else
331
+ locale = loadLocale(key);
332
+ if (locale) {
333
+ return locale;
334
+ }
335
+ key = [key];
336
+ }
337
+
338
+ return chooseLocale(key);
339
+ }
340
+
341
+ var aliases = {};
342
+
343
+ function addUnitAlias (unit, shorthand) {
344
+ var lowerCase = unit.toLowerCase();
345
+ aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
346
+ }
347
+
348
+ function normalizeUnits(units) {
349
+ return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
350
+ }
351
+
352
+ function normalizeObjectUnits(inputObject) {
353
+ var normalizedInput = {},
354
+ normalizedProp,
355
+ prop;
356
+
357
+ for (prop in inputObject) {
358
+ if (hasOwnProp(inputObject, prop)) {
359
+ normalizedProp = normalizeUnits(prop);
360
+ if (normalizedProp) {
361
+ normalizedInput[normalizedProp] = inputObject[prop];
362
+ }
363
+ }
364
+ }
365
+
366
+ return normalizedInput;
367
+ }
368
+
369
+ function makeGetSet (unit, keepTime) {
370
+ return function (value) {
371
+ if (value != null) {
372
+ get_set__set(this, unit, value);
373
+ utils_hooks__hooks.updateOffset(this, keepTime);
374
+ return this;
375
+ } else {
376
+ return get_set__get(this, unit);
377
+ }
378
+ };
379
+ }
380
+
381
+ function get_set__get (mom, unit) {
382
+ return mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]();
383
+ }
384
+
385
+ function get_set__set (mom, unit, value) {
386
+ return mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
387
+ }
388
+
389
+ // MOMENTS
390
+
391
+ function getSet (units, value) {
392
+ var unit;
393
+ if (typeof units === 'object') {
394
+ for (unit in units) {
395
+ this.set(unit, units[unit]);
396
+ }
397
+ } else {
398
+ units = normalizeUnits(units);
399
+ if (typeof this[units] === 'function') {
400
+ return this[units](value);
401
+ }
402
+ }
403
+ return this;
404
+ }
405
+
406
+ function zeroFill(number, targetLength, forceSign) {
407
+ var absNumber = '' + Math.abs(number),
408
+ zerosToFill = targetLength - absNumber.length,
409
+ sign = number >= 0;
410
+ return (sign ? (forceSign ? '+' : '') : '-') +
411
+ Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
412
+ }
413
+
414
+ var formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
415
+
416
+ var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
417
+
418
+ var formatFunctions = {};
419
+
420
+ var formatTokenFunctions = {};
421
+
422
+ // token: 'M'
423
+ // padded: ['MM', 2]
424
+ // ordinal: 'Mo'
425
+ // callback: function () { this.month() + 1 }
426
+ function addFormatToken (token, padded, ordinal, callback) {
427
+ var func = callback;
428
+ if (typeof callback === 'string') {
429
+ func = function () {
430
+ return this[callback]();
431
+ };
432
+ }
433
+ if (token) {
434
+ formatTokenFunctions[token] = func;
435
+ }
436
+ if (padded) {
437
+ formatTokenFunctions[padded[0]] = function () {
438
+ return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
439
+ };
440
+ }
441
+ if (ordinal) {
442
+ formatTokenFunctions[ordinal] = function () {
443
+ return this.localeData().ordinal(func.apply(this, arguments), token);
444
+ };
445
+ }
446
+ }
447
+
448
+ function removeFormattingTokens(input) {
449
+ if (input.match(/\[[\s\S]/)) {
450
+ return input.replace(/^\[|\]$/g, '');
451
+ }
452
+ return input.replace(/\\/g, '');
453
+ }
454
+
455
+ function makeFormatFunction(format) {
456
+ var array = format.match(formattingTokens), i, length;
457
+
458
+ for (i = 0, length = array.length; i < length; i++) {
459
+ if (formatTokenFunctions[array[i]]) {
460
+ array[i] = formatTokenFunctions[array[i]];
461
+ } else {
462
+ array[i] = removeFormattingTokens(array[i]);
463
+ }
464
+ }
465
+
466
+ return function (mom) {
467
+ var output = '';
468
+ for (i = 0; i < length; i++) {
469
+ output += array[i] instanceof Function ? array[i].call(mom, format) : array[i];
470
+ }
471
+ return output;
472
+ };
473
+ }
474
+
475
+ // format date using native date object
476
+ function formatMoment(m, format) {
477
+ if (!m.isValid()) {
478
+ return m.localeData().invalidDate();
479
+ }
480
+
481
+ format = expandFormat(format, m.localeData());
482
+ formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
483
+
484
+ return formatFunctions[format](m);
485
+ }
486
+
487
+ function expandFormat(format, locale) {
488
+ var i = 5;
489
+
490
+ function replaceLongDateFormatTokens(input) {
491
+ return locale.longDateFormat(input) || input;
492
+ }
493
+
494
+ localFormattingTokens.lastIndex = 0;
495
+ while (i >= 0 && localFormattingTokens.test(format)) {
496
+ format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
497
+ localFormattingTokens.lastIndex = 0;
498
+ i -= 1;
499
+ }
500
+
501
+ return format;
502
+ }
503
+
504
+ var match1 = /\d/; // 0 - 9
505
+ var match2 = /\d\d/; // 00 - 99
506
+ var match3 = /\d{3}/; // 000 - 999
507
+ var match4 = /\d{4}/; // 0000 - 9999
508
+ var match6 = /[+-]?\d{6}/; // -999999 - 999999
509
+ var match1to2 = /\d\d?/; // 0 - 99
510
+ var match1to3 = /\d{1,3}/; // 0 - 999
511
+ var match1to4 = /\d{1,4}/; // 0 - 9999
512
+ var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
513
+
514
+ var matchUnsigned = /\d+/; // 0 - inf
515
+ var matchSigned = /[+-]?\d+/; // -inf - inf
516
+
517
+ var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
518
+
519
+ var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
520
+
521
+ // any word (or two) characters or numbers including two/three word month in arabic.
522
+ var matchWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
523
+
524
+ var regexes = {};
525
+
526
+ function isFunction (sth) {
527
+ // https://github.com/moment/moment/issues/2325
528
+ return typeof sth === 'function' &&
529
+ Object.prototype.toString.call(sth) === '[object Function]';
530
+ }
531
+
532
+
533
+ function addRegexToken (token, regex, strictRegex) {
534
+ regexes[token] = isFunction(regex) ? regex : function (isStrict) {
535
+ return (isStrict && strictRegex) ? strictRegex : regex;
536
+ };
537
+ }
538
+
539
+ function getParseRegexForToken (token, config) {
540
+ if (!hasOwnProp(regexes, token)) {
541
+ return new RegExp(unescapeFormat(token));
542
+ }
543
+
544
+ return regexes[token](config._strict, config._locale);
545
+ }
546
+
547
+ // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
548
+ function unescapeFormat(s) {
549
+ return s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
550
+ return p1 || p2 || p3 || p4;
551
+ }).replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
552
+ }
553
+
554
+ var tokens = {};
555
+
556
+ function addParseToken (token, callback) {
557
+ var i, func = callback;
558
+ if (typeof token === 'string') {
559
+ token = [token];
560
+ }
561
+ if (typeof callback === 'number') {
562
+ func = function (input, array) {
563
+ array[callback] = toInt(input);
564
+ };
565
+ }
566
+ for (i = 0; i < token.length; i++) {
567
+ tokens[token[i]] = func;
568
+ }
569
+ }
570
+
571
+ function addWeekParseToken (token, callback) {
572
+ addParseToken(token, function (input, array, config, token) {
573
+ config._w = config._w || {};
574
+ callback(input, config._w, config, token);
575
+ });
576
+ }
577
+
578
+ function addTimeToArrayFromToken(token, input, config) {
579
+ if (input != null && hasOwnProp(tokens, token)) {
580
+ tokens[token](input, config._a, config, token);
581
+ }
582
+ }
583
+
584
+ var YEAR = 0;
585
+ var MONTH = 1;
586
+ var DATE = 2;
587
+ var HOUR = 3;
588
+ var MINUTE = 4;
589
+ var SECOND = 5;
590
+ var MILLISECOND = 6;
591
+
592
+ function daysInMonth(year, month) {
593
+ return new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
594
+ }
595
+
596
+ // FORMATTING
597
+
598
+ addFormatToken('M', ['MM', 2], 'Mo', function () {
599
+ return this.month() + 1;
600
+ });
601
+
602
+ addFormatToken('MMM', 0, 0, function (format) {
603
+ return this.localeData().monthsShort(this, format);
604
+ });
605
+
606
+ addFormatToken('MMMM', 0, 0, function (format) {
607
+ return this.localeData().months(this, format);
608
+ });
609
+
610
+ // ALIASES
611
+
612
+ addUnitAlias('month', 'M');
613
+
614
+ // PARSING
615
+
616
+ addRegexToken('M', match1to2);
617
+ addRegexToken('MM', match1to2, match2);
618
+ addRegexToken('MMM', matchWord);
619
+ addRegexToken('MMMM', matchWord);
620
+
621
+ addParseToken(['M', 'MM'], function (input, array) {
622
+ array[MONTH] = toInt(input) - 1;
623
+ });
624
+
625
+ addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
626
+ var month = config._locale.monthsParse(input, token, config._strict);
627
+ // if we didn't find a month name, mark the date as invalid.
628
+ if (month != null) {
629
+ array[MONTH] = month;
630
+ } else {
631
+ getParsingFlags(config).invalidMonth = input;
632
+ }
633
+ });
634
+
635
+ // LOCALES
636
+
637
+ var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
638
+ function localeMonths (m) {
639
+ return this._months[m.month()];
640
+ }
641
+
642
+ var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
643
+ function localeMonthsShort (m) {
644
+ return this._monthsShort[m.month()];
645
+ }
646
+
647
+ function localeMonthsParse (monthName, format, strict) {
648
+ var i, mom, regex;
649
+
650
+ if (!this._monthsParse) {
651
+ this._monthsParse = [];
652
+ this._longMonthsParse = [];
653
+ this._shortMonthsParse = [];
654
+ }
655
+
656
+ for (i = 0; i < 12; i++) {
657
+ // make the regex if we don't have it already
658
+ mom = create_utc__createUTC([2000, i]);
659
+ if (strict && !this._longMonthsParse[i]) {
660
+ this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
661
+ this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
662
+ }
663
+ if (!strict && !this._monthsParse[i]) {
664
+ regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
665
+ this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
666
+ }
667
+ // test the regex
668
+ if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
669
+ return i;
670
+ } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
671
+ return i;
672
+ } else if (!strict && this._monthsParse[i].test(monthName)) {
673
+ return i;
674
+ }
675
+ }
676
+ }
677
+
678
+ // MOMENTS
679
+
680
+ function setMonth (mom, value) {
681
+ var dayOfMonth;
682
+
683
+ // TODO: Move this out of here!
684
+ if (typeof value === 'string') {
685
+ value = mom.localeData().monthsParse(value);
686
+ // TODO: Another silent failure?
687
+ if (typeof value !== 'number') {
688
+ return mom;
689
+ }
690
+ }
691
+
692
+ dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
693
+ mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
694
+ return mom;
695
+ }
696
+
697
+ function getSetMonth (value) {
698
+ if (value != null) {
699
+ setMonth(this, value);
700
+ utils_hooks__hooks.updateOffset(this, true);
701
+ return this;
702
+ } else {
703
+ return get_set__get(this, 'Month');
704
+ }
705
+ }
706
+
707
+ function getDaysInMonth () {
708
+ return daysInMonth(this.year(), this.month());
709
+ }
710
+
711
+ function checkOverflow (m) {
712
+ var overflow;
713
+ var a = m._a;
714
+
715
+ if (a && getParsingFlags(m).overflow === -2) {
716
+ overflow =
717
+ a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
718
+ a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
719
+ a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
720
+ a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
721
+ a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
722
+ a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
723
+ -1;
724
+
725
+ if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
726
+ overflow = DATE;
727
+ }
728
+
729
+ getParsingFlags(m).overflow = overflow;
730
+ }
731
+
732
+ return m;
733
+ }
734
+
735
+ function warn(msg) {
736
+ if (utils_hooks__hooks.suppressDeprecationWarnings === false && typeof console !== 'undefined' && console.warn) {
737
+ console.warn('Deprecation warning: ' + msg);
738
+ }
739
+ }
740
+
741
+ function deprecate(msg, fn) {
742
+ var firstTime = true;
743
+
744
+ return extend(function () {
745
+ if (firstTime) {
746
+ warn(msg + '\n' + (new Error()).stack);
747
+ firstTime = false;
748
+ }
749
+ return fn.apply(this, arguments);
750
+ }, fn);
751
+ }
752
+
753
+ var deprecations = {};
754
+
755
+ function deprecateSimple(name, msg) {
756
+ if (!deprecations[name]) {
757
+ warn(msg);
758
+ deprecations[name] = true;
759
+ }
760
+ }
761
+
762
+ utils_hooks__hooks.suppressDeprecationWarnings = false;
763
+
764
+ var from_string__isoRegex = /^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
765
+
766
+ var isoDates = [
767
+ ['YYYYYY-MM-DD', /[+-]\d{6}-\d{2}-\d{2}/],
768
+ ['YYYY-MM-DD', /\d{4}-\d{2}-\d{2}/],
769
+ ['GGGG-[W]WW-E', /\d{4}-W\d{2}-\d/],
770
+ ['GGGG-[W]WW', /\d{4}-W\d{2}/],
771
+ ['YYYY-DDD', /\d{4}-\d{3}/]
772
+ ];
773
+
774
+ // iso time formats and regexes
775
+ var isoTimes = [
776
+ ['HH:mm:ss.SSSS', /(T| )\d\d:\d\d:\d\d\.\d+/],
777
+ ['HH:mm:ss', /(T| )\d\d:\d\d:\d\d/],
778
+ ['HH:mm', /(T| )\d\d:\d\d/],
779
+ ['HH', /(T| )\d\d/]
780
+ ];
781
+
782
+ var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
783
+
784
+ // date from iso format
785
+ function configFromISO(config) {
786
+ var i, l,
787
+ string = config._i,
788
+ match = from_string__isoRegex.exec(string);
789
+
790
+ if (match) {
791
+ getParsingFlags(config).iso = true;
792
+ for (i = 0, l = isoDates.length; i < l; i++) {
793
+ if (isoDates[i][1].exec(string)) {
794
+ config._f = isoDates[i][0];
795
+ break;
796
+ }
797
+ }
798
+ for (i = 0, l = isoTimes.length; i < l; i++) {
799
+ if (isoTimes[i][1].exec(string)) {
800
+ // match[6] should be 'T' or space
801
+ config._f += (match[6] || ' ') + isoTimes[i][0];
802
+ break;
803
+ }
804
+ }
805
+ if (string.match(matchOffset)) {
806
+ config._f += 'Z';
807
+ }
808
+ configFromStringAndFormat(config);
809
+ } else {
810
+ config._isValid = false;
811
+ }
812
+ }
813
+
814
+ // date from iso format or fallback
815
+ function configFromString(config) {
816
+ var matched = aspNetJsonRegex.exec(config._i);
817
+
818
+ if (matched !== null) {
819
+ config._d = new Date(+matched[1]);
820
+ return;
821
+ }
822
+
823
+ configFromISO(config);
824
+ if (config._isValid === false) {
825
+ delete config._isValid;
826
+ utils_hooks__hooks.createFromInputFallback(config);
827
+ }
828
+ }
829
+
830
+ utils_hooks__hooks.createFromInputFallback = deprecate(
831
+ 'moment construction falls back to js Date. This is ' +
832
+ 'discouraged and will be removed in upcoming major ' +
833
+ 'release. Please refer to ' +
834
+ 'https://github.com/moment/moment/issues/1407 for more info.',
835
+ function (config) {
836
+ config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
837
+ }
838
+ );
839
+
840
+ function createDate (y, m, d, h, M, s, ms) {
841
+ //can't just apply() to create a date:
842
+ //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply
843
+ var date = new Date(y, m, d, h, M, s, ms);
844
+
845
+ //the date constructor doesn't accept years < 1970
846
+ if (y < 1970) {
847
+ date.setFullYear(y);
848
+ }
849
+ return date;
850
+ }
851
+
852
+ function createUTCDate (y) {
853
+ var date = new Date(Date.UTC.apply(null, arguments));
854
+ if (y < 1970) {
855
+ date.setUTCFullYear(y);
856
+ }
857
+ return date;
858
+ }
859
+
860
+ addFormatToken(0, ['YY', 2], 0, function () {
861
+ return this.year() % 100;
862
+ });
863
+
864
+ addFormatToken(0, ['YYYY', 4], 0, 'year');
865
+ addFormatToken(0, ['YYYYY', 5], 0, 'year');
866
+ addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
867
+
868
+ // ALIASES
869
+
870
+ addUnitAlias('year', 'y');
871
+
872
+ // PARSING
873
+
874
+ addRegexToken('Y', matchSigned);
875
+ addRegexToken('YY', match1to2, match2);
876
+ addRegexToken('YYYY', match1to4, match4);
877
+ addRegexToken('YYYYY', match1to6, match6);
878
+ addRegexToken('YYYYYY', match1to6, match6);
879
+
880
+ addParseToken(['YYYYY', 'YYYYYY'], YEAR);
881
+ addParseToken('YYYY', function (input, array) {
882
+ array[YEAR] = input.length === 2 ? utils_hooks__hooks.parseTwoDigitYear(input) : toInt(input);
883
+ });
884
+ addParseToken('YY', function (input, array) {
885
+ array[YEAR] = utils_hooks__hooks.parseTwoDigitYear(input);
886
+ });
887
+
888
+ // HELPERS
889
+
890
+ function daysInYear(year) {
891
+ return isLeapYear(year) ? 366 : 365;
892
+ }
893
+
894
+ function isLeapYear(year) {
895
+ return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
896
+ }
897
+
898
+ // HOOKS
899
+
900
+ utils_hooks__hooks.parseTwoDigitYear = function (input) {
901
+ return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
902
+ };
903
+
904
+ // MOMENTS
905
+
906
+ var getSetYear = makeGetSet('FullYear', false);
907
+
908
+ function getIsLeapYear () {
909
+ return isLeapYear(this.year());
910
+ }
911
+
912
+ addFormatToken('w', ['ww', 2], 'wo', 'week');
913
+ addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
914
+
915
+ // ALIASES
916
+
917
+ addUnitAlias('week', 'w');
918
+ addUnitAlias('isoWeek', 'W');
919
+
920
+ // PARSING
921
+
922
+ addRegexToken('w', match1to2);
923
+ addRegexToken('ww', match1to2, match2);
924
+ addRegexToken('W', match1to2);
925
+ addRegexToken('WW', match1to2, match2);
926
+
927
+ addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
928
+ week[token.substr(0, 1)] = toInt(input);
929
+ });
930
+
931
+ // HELPERS
932
+
933
+ // firstDayOfWeek 0 = sun, 6 = sat
934
+ // the day of the week that starts the week
935
+ // (usually sunday or monday)
936
+ // firstDayOfWeekOfYear 0 = sun, 6 = sat
937
+ // the first week is the week that contains the first
938
+ // of this day of the week
939
+ // (eg. ISO weeks use thursday (4))
940
+ function weekOfYear(mom, firstDayOfWeek, firstDayOfWeekOfYear) {
941
+ var end = firstDayOfWeekOfYear - firstDayOfWeek,
942
+ daysToDayOfWeek = firstDayOfWeekOfYear - mom.day(),
943
+ adjustedMoment;
944
+
945
+
946
+ if (daysToDayOfWeek > end) {
947
+ daysToDayOfWeek -= 7;
948
+ }
949
+
950
+ if (daysToDayOfWeek < end - 7) {
951
+ daysToDayOfWeek += 7;
952
+ }
953
+
954
+ adjustedMoment = local__createLocal(mom).add(daysToDayOfWeek, 'd');
955
+ return {
956
+ week: Math.ceil(adjustedMoment.dayOfYear() / 7),
957
+ year: adjustedMoment.year()
958
+ };
959
+ }
960
+
961
+ // LOCALES
962
+
963
+ function localeWeek (mom) {
964
+ return weekOfYear(mom, this._week.dow, this._week.doy).week;
965
+ }
966
+
967
+ var defaultLocaleWeek = {
968
+ dow : 0, // Sunday is the first day of the week.
969
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
970
+ };
971
+
972
+ function localeFirstDayOfWeek () {
973
+ return this._week.dow;
974
+ }
975
+
976
+ function localeFirstDayOfYear () {
977
+ return this._week.doy;
978
+ }
979
+
980
+ // MOMENTS
981
+
982
+ function getSetWeek (input) {
983
+ var week = this.localeData().week(this);
984
+ return input == null ? week : this.add((input - week) * 7, 'd');
985
+ }
986
+
987
+ function getSetISOWeek (input) {
988
+ var week = weekOfYear(this, 1, 4).week;
989
+ return input == null ? week : this.add((input - week) * 7, 'd');
990
+ }
991
+
992
+ addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
993
+
994
+ // ALIASES
995
+
996
+ addUnitAlias('dayOfYear', 'DDD');
997
+
998
+ // PARSING
999
+
1000
+ addRegexToken('DDD', match1to3);
1001
+ addRegexToken('DDDD', match3);
1002
+ addParseToken(['DDD', 'DDDD'], function (input, array, config) {
1003
+ config._dayOfYear = toInt(input);
1004
+ });
1005
+
1006
+ // HELPERS
1007
+
1008
+ //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
1009
+ function dayOfYearFromWeeks(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek) {
1010
+ var week1Jan = 6 + firstDayOfWeek - firstDayOfWeekOfYear, janX = createUTCDate(year, 0, 1 + week1Jan), d = janX.getUTCDay(), dayOfYear;
1011
+ if (d < firstDayOfWeek) {
1012
+ d += 7;
1013
+ }
1014
+
1015
+ weekday = weekday != null ? 1 * weekday : firstDayOfWeek;
1016
+
1017
+ dayOfYear = 1 + week1Jan + 7 * (week - 1) - d + weekday;
1018
+
1019
+ return {
1020
+ year: dayOfYear > 0 ? year : year - 1,
1021
+ dayOfYear: dayOfYear > 0 ? dayOfYear : daysInYear(year - 1) + dayOfYear
1022
+ };
1023
+ }
1024
+
1025
+ // MOMENTS
1026
+
1027
+ function getSetDayOfYear (input) {
1028
+ var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
1029
+ return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
1030
+ }
1031
+
1032
+ // Pick the first defined of two or three arguments.
1033
+ function defaults(a, b, c) {
1034
+ if (a != null) {
1035
+ return a;
1036
+ }
1037
+ if (b != null) {
1038
+ return b;
1039
+ }
1040
+ return c;
1041
+ }
1042
+
1043
+ function currentDateArray(config) {
1044
+ var now = new Date();
1045
+ if (config._useUTC) {
1046
+ return [now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate()];
1047
+ }
1048
+ return [now.getFullYear(), now.getMonth(), now.getDate()];
1049
+ }
1050
+
1051
+ // convert an array to a date.
1052
+ // the array should mirror the parameters below
1053
+ // note: all values past the year are optional and will default to the lowest possible value.
1054
+ // [year, month, day , hour, minute, second, millisecond]
1055
+ function configFromArray (config) {
1056
+ var i, date, input = [], currentDate, yearToUse;
1057
+
1058
+ if (config._d) {
1059
+ return;
1060
+ }
1061
+
1062
+ currentDate = currentDateArray(config);
1063
+
1064
+ //compute day of the year from weeks and weekdays
1065
+ if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
1066
+ dayOfYearFromWeekInfo(config);
1067
+ }
1068
+
1069
+ //if the day of the year is set, figure out what it is
1070
+ if (config._dayOfYear) {
1071
+ yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
1072
+
1073
+ if (config._dayOfYear > daysInYear(yearToUse)) {
1074
+ getParsingFlags(config)._overflowDayOfYear = true;
1075
+ }
1076
+
1077
+ date = createUTCDate(yearToUse, 0, config._dayOfYear);
1078
+ config._a[MONTH] = date.getUTCMonth();
1079
+ config._a[DATE] = date.getUTCDate();
1080
+ }
1081
+
1082
+ // Default to current date.
1083
+ // * if no year, month, day of month are given, default to today
1084
+ // * if day of month is given, default month and year
1085
+ // * if month is given, default only year
1086
+ // * if year is given, don't default anything
1087
+ for (i = 0; i < 3 && config._a[i] == null; ++i) {
1088
+ config._a[i] = input[i] = currentDate[i];
1089
+ }
1090
+
1091
+ // Zero out whatever was not defaulted, including time
1092
+ for (; i < 7; i++) {
1093
+ config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
1094
+ }
1095
+
1096
+ // Check for 24:00:00.000
1097
+ if (config._a[HOUR] === 24 &&
1098
+ config._a[MINUTE] === 0 &&
1099
+ config._a[SECOND] === 0 &&
1100
+ config._a[MILLISECOND] === 0) {
1101
+ config._nextDay = true;
1102
+ config._a[HOUR] = 0;
1103
+ }
1104
+
1105
+ config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
1106
+ // Apply timezone offset from input. The actual utcOffset can be changed
1107
+ // with parseZone.
1108
+ if (config._tzm != null) {
1109
+ config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
1110
+ }
1111
+
1112
+ if (config._nextDay) {
1113
+ config._a[HOUR] = 24;
1114
+ }
1115
+ }
1116
+
1117
+ function dayOfYearFromWeekInfo(config) {
1118
+ var w, weekYear, week, weekday, dow, doy, temp;
1119
+
1120
+ w = config._w;
1121
+ if (w.GG != null || w.W != null || w.E != null) {
1122
+ dow = 1;
1123
+ doy = 4;
1124
+
1125
+ // TODO: We need to take the current isoWeekYear, but that depends on
1126
+ // how we interpret now (local, utc, fixed offset). So create
1127
+ // a now version of current config (take local/utc/offset flags, and
1128
+ // create now).
1129
+ weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(local__createLocal(), 1, 4).year);
1130
+ week = defaults(w.W, 1);
1131
+ weekday = defaults(w.E, 1);
1132
+ } else {
1133
+ dow = config._locale._week.dow;
1134
+ doy = config._locale._week.doy;
1135
+
1136
+ weekYear = defaults(w.gg, config._a[YEAR], weekOfYear(local__createLocal(), dow, doy).year);
1137
+ week = defaults(w.w, 1);
1138
+
1139
+ if (w.d != null) {
1140
+ // weekday -- low day numbers are considered next week
1141
+ weekday = w.d;
1142
+ if (weekday < dow) {
1143
+ ++week;
1144
+ }
1145
+ } else if (w.e != null) {
1146
+ // local weekday -- counting starts from begining of week
1147
+ weekday = w.e + dow;
1148
+ } else {
1149
+ // default to begining of week
1150
+ weekday = dow;
1151
+ }
1152
+ }
1153
+ temp = dayOfYearFromWeeks(weekYear, week, weekday, doy, dow);
1154
+
1155
+ config._a[YEAR] = temp.year;
1156
+ config._dayOfYear = temp.dayOfYear;
1157
+ }
1158
+
1159
+ utils_hooks__hooks.ISO_8601 = function () {};
1160
+
1161
+ // date from string and format string
1162
+ function configFromStringAndFormat(config) {
1163
+ // TODO: Move this to another part of the creation flow to prevent circular deps
1164
+ if (config._f === utils_hooks__hooks.ISO_8601) {
1165
+ configFromISO(config);
1166
+ return;
1167
+ }
1168
+
1169
+ config._a = [];
1170
+ getParsingFlags(config).empty = true;
1171
+
1172
+ // This array is used to make a Date, either with `new Date` or `Date.UTC`
1173
+ var string = '' + config._i,
1174
+ i, parsedInput, tokens, token, skipped,
1175
+ stringLength = string.length,
1176
+ totalParsedInputLength = 0;
1177
+
1178
+ tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
1179
+
1180
+ for (i = 0; i < tokens.length; i++) {
1181
+ token = tokens[i];
1182
+ parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
1183
+ if (parsedInput) {
1184
+ skipped = string.substr(0, string.indexOf(parsedInput));
1185
+ if (skipped.length > 0) {
1186
+ getParsingFlags(config).unusedInput.push(skipped);
1187
+ }
1188
+ string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
1189
+ totalParsedInputLength += parsedInput.length;
1190
+ }
1191
+ // don't parse if it's not a known token
1192
+ if (formatTokenFunctions[token]) {
1193
+ if (parsedInput) {
1194
+ getParsingFlags(config).empty = false;
1195
+ }
1196
+ else {
1197
+ getParsingFlags(config).unusedTokens.push(token);
1198
+ }
1199
+ addTimeToArrayFromToken(token, parsedInput, config);
1200
+ }
1201
+ else if (config._strict && !parsedInput) {
1202
+ getParsingFlags(config).unusedTokens.push(token);
1203
+ }
1204
+ }
1205
+
1206
+ // add remaining unparsed input length to the string
1207
+ getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
1208
+ if (string.length > 0) {
1209
+ getParsingFlags(config).unusedInput.push(string);
1210
+ }
1211
+
1212
+ // clear _12h flag if hour is <= 12
1213
+ if (getParsingFlags(config).bigHour === true &&
1214
+ config._a[HOUR] <= 12 &&
1215
+ config._a[HOUR] > 0) {
1216
+ getParsingFlags(config).bigHour = undefined;
1217
+ }
1218
+ // handle meridiem
1219
+ config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
1220
+
1221
+ configFromArray(config);
1222
+ checkOverflow(config);
1223
+ }
1224
+
1225
+
1226
+ function meridiemFixWrap (locale, hour, meridiem) {
1227
+ var isPm;
1228
+
1229
+ if (meridiem == null) {
1230
+ // nothing to do
1231
+ return hour;
1232
+ }
1233
+ if (locale.meridiemHour != null) {
1234
+ return locale.meridiemHour(hour, meridiem);
1235
+ } else if (locale.isPM != null) {
1236
+ // Fallback
1237
+ isPm = locale.isPM(meridiem);
1238
+ if (isPm && hour < 12) {
1239
+ hour += 12;
1240
+ }
1241
+ if (!isPm && hour === 12) {
1242
+ hour = 0;
1243
+ }
1244
+ return hour;
1245
+ } else {
1246
+ // this is not supposed to happen
1247
+ return hour;
1248
+ }
1249
+ }
1250
+
1251
+ function configFromStringAndArray(config) {
1252
+ var tempConfig,
1253
+ bestMoment,
1254
+
1255
+ scoreToBeat,
1256
+ i,
1257
+ currentScore;
1258
+
1259
+ if (config._f.length === 0) {
1260
+ getParsingFlags(config).invalidFormat = true;
1261
+ config._d = new Date(NaN);
1262
+ return;
1263
+ }
1264
+
1265
+ for (i = 0; i < config._f.length; i++) {
1266
+ currentScore = 0;
1267
+ tempConfig = copyConfig({}, config);
1268
+ if (config._useUTC != null) {
1269
+ tempConfig._useUTC = config._useUTC;
1270
+ }
1271
+ tempConfig._f = config._f[i];
1272
+ configFromStringAndFormat(tempConfig);
1273
+
1274
+ if (!valid__isValid(tempConfig)) {
1275
+ continue;
1276
+ }
1277
+
1278
+ // if there is any input that was not parsed add a penalty for that format
1279
+ currentScore += getParsingFlags(tempConfig).charsLeftOver;
1280
+
1281
+ //or tokens
1282
+ currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
1283
+
1284
+ getParsingFlags(tempConfig).score = currentScore;
1285
+
1286
+ if (scoreToBeat == null || currentScore < scoreToBeat) {
1287
+ scoreToBeat = currentScore;
1288
+ bestMoment = tempConfig;
1289
+ }
1290
+ }
1291
+
1292
+ extend(config, bestMoment || tempConfig);
1293
+ }
1294
+
1295
+ function configFromObject(config) {
1296
+ if (config._d) {
1297
+ return;
1298
+ }
1299
+
1300
+ var i = normalizeObjectUnits(config._i);
1301
+ config._a = [i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond];
1302
+
1303
+ configFromArray(config);
1304
+ }
1305
+
1306
+ function createFromConfig (config) {
1307
+ var res = new Moment(checkOverflow(prepareConfig(config)));
1308
+ if (res._nextDay) {
1309
+ // Adding is smart enough around DST
1310
+ res.add(1, 'd');
1311
+ res._nextDay = undefined;
1312
+ }
1313
+
1314
+ return res;
1315
+ }
1316
+
1317
+ function prepareConfig (config) {
1318
+ var input = config._i,
1319
+ format = config._f;
1320
+
1321
+ config._locale = config._locale || locale_locales__getLocale(config._l);
1322
+
1323
+ if (input === null || (format === undefined && input === '')) {
1324
+ return valid__createInvalid({nullInput: true});
1325
+ }
1326
+
1327
+ if (typeof input === 'string') {
1328
+ config._i = input = config._locale.preparse(input);
1329
+ }
1330
+
1331
+ if (isMoment(input)) {
1332
+ return new Moment(checkOverflow(input));
1333
+ } else if (isArray(format)) {
1334
+ configFromStringAndArray(config);
1335
+ } else if (format) {
1336
+ configFromStringAndFormat(config);
1337
+ } else if (isDate(input)) {
1338
+ config._d = input;
1339
+ } else {
1340
+ configFromInput(config);
1341
+ }
1342
+
1343
+ return config;
1344
+ }
1345
+
1346
+ function configFromInput(config) {
1347
+ var input = config._i;
1348
+ if (input === undefined) {
1349
+ config._d = new Date();
1350
+ } else if (isDate(input)) {
1351
+ config._d = new Date(+input);
1352
+ } else if (typeof input === 'string') {
1353
+ configFromString(config);
1354
+ } else if (isArray(input)) {
1355
+ config._a = map(input.slice(0), function (obj) {
1356
+ return parseInt(obj, 10);
1357
+ });
1358
+ configFromArray(config);
1359
+ } else if (typeof(input) === 'object') {
1360
+ configFromObject(config);
1361
+ } else if (typeof(input) === 'number') {
1362
+ // from milliseconds
1363
+ config._d = new Date(input);
1364
+ } else {
1365
+ utils_hooks__hooks.createFromInputFallback(config);
1366
+ }
1367
+ }
1368
+
1369
+ function createLocalOrUTC (input, format, locale, strict, isUTC) {
1370
+ var c = {};
1371
+
1372
+ if (typeof(locale) === 'boolean') {
1373
+ strict = locale;
1374
+ locale = undefined;
1375
+ }
1376
+ // object construction must be done this way.
1377
+ // https://github.com/moment/moment/issues/1423
1378
+ c._isAMomentObject = true;
1379
+ c._useUTC = c._isUTC = isUTC;
1380
+ c._l = locale;
1381
+ c._i = input;
1382
+ c._f = format;
1383
+ c._strict = strict;
1384
+
1385
+ return createFromConfig(c);
1386
+ }
1387
+
1388
+ function local__createLocal (input, format, locale, strict) {
1389
+ return createLocalOrUTC(input, format, locale, strict, false);
1390
+ }
1391
+
1392
+ var prototypeMin = deprecate(
1393
+ 'moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548',
1394
+ function () {
1395
+ var other = local__createLocal.apply(null, arguments);
1396
+ return other < this ? this : other;
1397
+ }
1398
+ );
1399
+
1400
+ var prototypeMax = deprecate(
1401
+ 'moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548',
1402
+ function () {
1403
+ var other = local__createLocal.apply(null, arguments);
1404
+ return other > this ? this : other;
1405
+ }
1406
+ );
1407
+
1408
+ // Pick a moment m from moments so that m[fn](other) is true for all
1409
+ // other. This relies on the function fn to be transitive.
1410
+ //
1411
+ // moments should either be an array of moment objects or an array, whose
1412
+ // first element is an array of moment objects.
1413
+ function pickBy(fn, moments) {
1414
+ var res, i;
1415
+ if (moments.length === 1 && isArray(moments[0])) {
1416
+ moments = moments[0];
1417
+ }
1418
+ if (!moments.length) {
1419
+ return local__createLocal();
1420
+ }
1421
+ res = moments[0];
1422
+ for (i = 1; i < moments.length; ++i) {
1423
+ if (!moments[i].isValid() || moments[i][fn](res)) {
1424
+ res = moments[i];
1425
+ }
1426
+ }
1427
+ return res;
1428
+ }
1429
+
1430
+ // TODO: Use [].sort instead?
1431
+ function min () {
1432
+ var args = [].slice.call(arguments, 0);
1433
+
1434
+ return pickBy('isBefore', args);
1435
+ }
1436
+
1437
+ function max () {
1438
+ var args = [].slice.call(arguments, 0);
1439
+
1440
+ return pickBy('isAfter', args);
1441
+ }
1442
+
1443
+ function Duration (duration) {
1444
+ var normalizedInput = normalizeObjectUnits(duration),
1445
+ years = normalizedInput.year || 0,
1446
+ quarters = normalizedInput.quarter || 0,
1447
+ months = normalizedInput.month || 0,
1448
+ weeks = normalizedInput.week || 0,
1449
+ days = normalizedInput.day || 0,
1450
+ hours = normalizedInput.hour || 0,
1451
+ minutes = normalizedInput.minute || 0,
1452
+ seconds = normalizedInput.second || 0,
1453
+ milliseconds = normalizedInput.millisecond || 0;
1454
+
1455
+ // representation for dateAddRemove
1456
+ this._milliseconds = +milliseconds +
1457
+ seconds * 1e3 + // 1000
1458
+ minutes * 6e4 + // 1000 * 60
1459
+ hours * 36e5; // 1000 * 60 * 60
1460
+ // Because of dateAddRemove treats 24 hours as different from a
1461
+ // day when working around DST, we need to store them separately
1462
+ this._days = +days +
1463
+ weeks * 7;
1464
+ // It is impossible translate months into days without knowing
1465
+ // which months you are are talking about, so we have to store
1466
+ // it separately.
1467
+ this._months = +months +
1468
+ quarters * 3 +
1469
+ years * 12;
1470
+
1471
+ this._data = {};
1472
+
1473
+ this._locale = locale_locales__getLocale();
1474
+
1475
+ this._bubble();
1476
+ }
1477
+
1478
+ function isDuration (obj) {
1479
+ return obj instanceof Duration;
1480
+ }
1481
+
1482
+ function offset (token, separator) {
1483
+ addFormatToken(token, 0, 0, function () {
1484
+ var offset = this.utcOffset();
1485
+ var sign = '+';
1486
+ if (offset < 0) {
1487
+ offset = -offset;
1488
+ sign = '-';
1489
+ }
1490
+ return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
1491
+ });
1492
+ }
1493
+
1494
+ offset('Z', ':');
1495
+ offset('ZZ', '');
1496
+
1497
+ // PARSING
1498
+
1499
+ addRegexToken('Z', matchOffset);
1500
+ addRegexToken('ZZ', matchOffset);
1501
+ addParseToken(['Z', 'ZZ'], function (input, array, config) {
1502
+ config._useUTC = true;
1503
+ config._tzm = offsetFromString(input);
1504
+ });
1505
+
1506
+ // HELPERS
1507
+
1508
+ // timezone chunker
1509
+ // '+10:00' > ['10', '00']
1510
+ // '-1530' > ['-15', '30']
1511
+ var chunkOffset = /([\+\-]|\d\d)/gi;
1512
+
1513
+ function offsetFromString(string) {
1514
+ var matches = ((string || '').match(matchOffset) || []);
1515
+ var chunk = matches[matches.length - 1] || [];
1516
+ var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
1517
+ var minutes = +(parts[1] * 60) + toInt(parts[2]);
1518
+
1519
+ return parts[0] === '+' ? minutes : -minutes;
1520
+ }
1521
+
1522
+ // Return a moment from input, that is local/utc/zone equivalent to model.
1523
+ function cloneWithOffset(input, model) {
1524
+ var res, diff;
1525
+ if (model._isUTC) {
1526
+ res = model.clone();
1527
+ diff = (isMoment(input) || isDate(input) ? +input : +local__createLocal(input)) - (+res);
1528
+ // Use low-level api, because this fn is low-level api.
1529
+ res._d.setTime(+res._d + diff);
1530
+ utils_hooks__hooks.updateOffset(res, false);
1531
+ return res;
1532
+ } else {
1533
+ return local__createLocal(input).local();
1534
+ }
1535
+ }
1536
+
1537
+ function getDateOffset (m) {
1538
+ // On Firefox.24 Date#getTimezoneOffset returns a floating point.
1539
+ // https://github.com/moment/moment/pull/1871
1540
+ return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
1541
+ }
1542
+
1543
+ // HOOKS
1544
+
1545
+ // This function will be called whenever a moment is mutated.
1546
+ // It is intended to keep the offset in sync with the timezone.
1547
+ utils_hooks__hooks.updateOffset = function () {};
1548
+
1549
+ // MOMENTS
1550
+
1551
+ // keepLocalTime = true means only change the timezone, without
1552
+ // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
1553
+ // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
1554
+ // +0200, so we adjust the time as needed, to be valid.
1555
+ //
1556
+ // Keeping the time actually adds/subtracts (one hour)
1557
+ // from the actual represented time. That is why we call updateOffset
1558
+ // a second time. In case it wants us to change the offset again
1559
+ // _changeInProgress == true case, then we have to adjust, because
1560
+ // there is no such time in the given timezone.
1561
+ function getSetOffset (input, keepLocalTime) {
1562
+ var offset = this._offset || 0,
1563
+ localAdjust;
1564
+ if (input != null) {
1565
+ if (typeof input === 'string') {
1566
+ input = offsetFromString(input);
1567
+ }
1568
+ if (Math.abs(input) < 16) {
1569
+ input = input * 60;
1570
+ }
1571
+ if (!this._isUTC && keepLocalTime) {
1572
+ localAdjust = getDateOffset(this);
1573
+ }
1574
+ this._offset = input;
1575
+ this._isUTC = true;
1576
+ if (localAdjust != null) {
1577
+ this.add(localAdjust, 'm');
1578
+ }
1579
+ if (offset !== input) {
1580
+ if (!keepLocalTime || this._changeInProgress) {
1581
+ add_subtract__addSubtract(this, create__createDuration(input - offset, 'm'), 1, false);
1582
+ } else if (!this._changeInProgress) {
1583
+ this._changeInProgress = true;
1584
+ utils_hooks__hooks.updateOffset(this, true);
1585
+ this._changeInProgress = null;
1586
+ }
1587
+ }
1588
+ return this;
1589
+ } else {
1590
+ return this._isUTC ? offset : getDateOffset(this);
1591
+ }
1592
+ }
1593
+
1594
+ function getSetZone (input, keepLocalTime) {
1595
+ if (input != null) {
1596
+ if (typeof input !== 'string') {
1597
+ input = -input;
1598
+ }
1599
+
1600
+ this.utcOffset(input, keepLocalTime);
1601
+
1602
+ return this;
1603
+ } else {
1604
+ return -this.utcOffset();
1605
+ }
1606
+ }
1607
+
1608
+ function setOffsetToUTC (keepLocalTime) {
1609
+ return this.utcOffset(0, keepLocalTime);
1610
+ }
1611
+
1612
+ function setOffsetToLocal (keepLocalTime) {
1613
+ if (this._isUTC) {
1614
+ this.utcOffset(0, keepLocalTime);
1615
+ this._isUTC = false;
1616
+
1617
+ if (keepLocalTime) {
1618
+ this.subtract(getDateOffset(this), 'm');
1619
+ }
1620
+ }
1621
+ return this;
1622
+ }
1623
+
1624
+ function setOffsetToParsedOffset () {
1625
+ if (this._tzm) {
1626
+ this.utcOffset(this._tzm);
1627
+ } else if (typeof this._i === 'string') {
1628
+ this.utcOffset(offsetFromString(this._i));
1629
+ }
1630
+ return this;
1631
+ }
1632
+
1633
+ function hasAlignedHourOffset (input) {
1634
+ input = input ? local__createLocal(input).utcOffset() : 0;
1635
+
1636
+ return (this.utcOffset() - input) % 60 === 0;
1637
+ }
1638
+
1639
+ function isDaylightSavingTime () {
1640
+ return (
1641
+ this.utcOffset() > this.clone().month(0).utcOffset() ||
1642
+ this.utcOffset() > this.clone().month(5).utcOffset()
1643
+ );
1644
+ }
1645
+
1646
+ function isDaylightSavingTimeShifted () {
1647
+ if (typeof this._isDSTShifted !== 'undefined') {
1648
+ return this._isDSTShifted;
1649
+ }
1650
+
1651
+ var c = {};
1652
+
1653
+ copyConfig(c, this);
1654
+ c = prepareConfig(c);
1655
+
1656
+ if (c._a) {
1657
+ var other = c._isUTC ? create_utc__createUTC(c._a) : local__createLocal(c._a);
1658
+ this._isDSTShifted = this.isValid() &&
1659
+ compareArrays(c._a, other.toArray()) > 0;
1660
+ } else {
1661
+ this._isDSTShifted = false;
1662
+ }
1663
+
1664
+ return this._isDSTShifted;
1665
+ }
1666
+
1667
+ function isLocal () {
1668
+ return !this._isUTC;
1669
+ }
1670
+
1671
+ function isUtcOffset () {
1672
+ return this._isUTC;
1673
+ }
1674
+
1675
+ function isUtc () {
1676
+ return this._isUTC && this._offset === 0;
1677
+ }
1678
+
1679
+ var aspNetRegex = /(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/;
1680
+
1681
+ // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
1682
+ // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
1683
+ var create__isoRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;
1684
+
1685
+ function create__createDuration (input, key) {
1686
+ var duration = input,
1687
+ // matching against regexp is expensive, do it on demand
1688
+ match = null,
1689
+ sign,
1690
+ ret,
1691
+ diffRes;
1692
+
1693
+ if (isDuration(input)) {
1694
+ duration = {
1695
+ ms : input._milliseconds,
1696
+ d : input._days,
1697
+ M : input._months
1698
+ };
1699
+ } else if (typeof input === 'number') {
1700
+ duration = {};
1701
+ if (key) {
1702
+ duration[key] = input;
1703
+ } else {
1704
+ duration.milliseconds = input;
1705
+ }
1706
+ } else if (!!(match = aspNetRegex.exec(input))) {
1707
+ sign = (match[1] === '-') ? -1 : 1;
1708
+ duration = {
1709
+ y : 0,
1710
+ d : toInt(match[DATE]) * sign,
1711
+ h : toInt(match[HOUR]) * sign,
1712
+ m : toInt(match[MINUTE]) * sign,
1713
+ s : toInt(match[SECOND]) * sign,
1714
+ ms : toInt(match[MILLISECOND]) * sign
1715
+ };
1716
+ } else if (!!(match = create__isoRegex.exec(input))) {
1717
+ sign = (match[1] === '-') ? -1 : 1;
1718
+ duration = {
1719
+ y : parseIso(match[2], sign),
1720
+ M : parseIso(match[3], sign),
1721
+ d : parseIso(match[4], sign),
1722
+ h : parseIso(match[5], sign),
1723
+ m : parseIso(match[6], sign),
1724
+ s : parseIso(match[7], sign),
1725
+ w : parseIso(match[8], sign)
1726
+ };
1727
+ } else if (duration == null) {// checks for null or undefined
1728
+ duration = {};
1729
+ } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
1730
+ diffRes = momentsDifference(local__createLocal(duration.from), local__createLocal(duration.to));
1731
+
1732
+ duration = {};
1733
+ duration.ms = diffRes.milliseconds;
1734
+ duration.M = diffRes.months;
1735
+ }
1736
+
1737
+ ret = new Duration(duration);
1738
+
1739
+ if (isDuration(input) && hasOwnProp(input, '_locale')) {
1740
+ ret._locale = input._locale;
1741
+ }
1742
+
1743
+ return ret;
1744
+ }
1745
+
1746
+ create__createDuration.fn = Duration.prototype;
1747
+
1748
+ function parseIso (inp, sign) {
1749
+ // We'd normally use ~~inp for this, but unfortunately it also
1750
+ // converts floats to ints.
1751
+ // inp may be undefined, so careful calling replace on it.
1752
+ var res = inp && parseFloat(inp.replace(',', '.'));
1753
+ // apply sign while we're at it
1754
+ return (isNaN(res) ? 0 : res) * sign;
1755
+ }
1756
+
1757
+ function positiveMomentsDifference(base, other) {
1758
+ var res = {milliseconds: 0, months: 0};
1759
+
1760
+ res.months = other.month() - base.month() +
1761
+ (other.year() - base.year()) * 12;
1762
+ if (base.clone().add(res.months, 'M').isAfter(other)) {
1763
+ --res.months;
1764
+ }
1765
+
1766
+ res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
1767
+
1768
+ return res;
1769
+ }
1770
+
1771
+ function momentsDifference(base, other) {
1772
+ var res;
1773
+ other = cloneWithOffset(other, base);
1774
+ if (base.isBefore(other)) {
1775
+ res = positiveMomentsDifference(base, other);
1776
+ } else {
1777
+ res = positiveMomentsDifference(other, base);
1778
+ res.milliseconds = -res.milliseconds;
1779
+ res.months = -res.months;
1780
+ }
1781
+
1782
+ return res;
1783
+ }
1784
+
1785
+ function createAdder(direction, name) {
1786
+ return function (val, period) {
1787
+ var dur, tmp;
1788
+ //invert the arguments, but complain about it
1789
+ if (period !== null && !isNaN(+period)) {
1790
+ deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period).');
1791
+ tmp = val; val = period; period = tmp;
1792
+ }
1793
+
1794
+ val = typeof val === 'string' ? +val : val;
1795
+ dur = create__createDuration(val, period);
1796
+ add_subtract__addSubtract(this, dur, direction);
1797
+ return this;
1798
+ };
1799
+ }
1800
+
1801
+ function add_subtract__addSubtract (mom, duration, isAdding, updateOffset) {
1802
+ var milliseconds = duration._milliseconds,
1803
+ days = duration._days,
1804
+ months = duration._months;
1805
+ updateOffset = updateOffset == null ? true : updateOffset;
1806
+
1807
+ if (milliseconds) {
1808
+ mom._d.setTime(+mom._d + milliseconds * isAdding);
1809
+ }
1810
+ if (days) {
1811
+ get_set__set(mom, 'Date', get_set__get(mom, 'Date') + days * isAdding);
1812
+ }
1813
+ if (months) {
1814
+ setMonth(mom, get_set__get(mom, 'Month') + months * isAdding);
1815
+ }
1816
+ if (updateOffset) {
1817
+ utils_hooks__hooks.updateOffset(mom, days || months);
1818
+ }
1819
+ }
1820
+
1821
+ var add_subtract__add = createAdder(1, 'add');
1822
+ var add_subtract__subtract = createAdder(-1, 'subtract');
1823
+
1824
+ function moment_calendar__calendar (time, formats) {
1825
+ // We want to compare the start of today, vs this.
1826
+ // Getting start-of-today depends on whether we're local/utc/offset or not.
1827
+ var now = time || local__createLocal(),
1828
+ sod = cloneWithOffset(now, this).startOf('day'),
1829
+ diff = this.diff(sod, 'days', true),
1830
+ format = diff < -6 ? 'sameElse' :
1831
+ diff < -1 ? 'lastWeek' :
1832
+ diff < 0 ? 'lastDay' :
1833
+ diff < 1 ? 'sameDay' :
1834
+ diff < 2 ? 'nextDay' :
1835
+ diff < 7 ? 'nextWeek' : 'sameElse';
1836
+ return this.format(formats && formats[format] || this.localeData().calendar(format, this, local__createLocal(now)));
1837
+ }
1838
+
1839
+ function clone () {
1840
+ return new Moment(this);
1841
+ }
1842
+
1843
+ function isAfter (input, units) {
1844
+ var inputMs;
1845
+ units = normalizeUnits(typeof units !== 'undefined' ? units : 'millisecond');
1846
+ if (units === 'millisecond') {
1847
+ input = isMoment(input) ? input : local__createLocal(input);
1848
+ return +this > +input;
1849
+ } else {
1850
+ inputMs = isMoment(input) ? +input : +local__createLocal(input);
1851
+ return inputMs < +this.clone().startOf(units);
1852
+ }
1853
+ }
1854
+
1855
+ function isBefore (input, units) {
1856
+ var inputMs;
1857
+ units = normalizeUnits(typeof units !== 'undefined' ? units : 'millisecond');
1858
+ if (units === 'millisecond') {
1859
+ input = isMoment(input) ? input : local__createLocal(input);
1860
+ return +this < +input;
1861
+ } else {
1862
+ inputMs = isMoment(input) ? +input : +local__createLocal(input);
1863
+ return +this.clone().endOf(units) < inputMs;
1864
+ }
1865
+ }
1866
+
1867
+ function isBetween (from, to, units) {
1868
+ return this.isAfter(from, units) && this.isBefore(to, units);
1869
+ }
1870
+
1871
+ function isSame (input, units) {
1872
+ var inputMs;
1873
+ units = normalizeUnits(units || 'millisecond');
1874
+ if (units === 'millisecond') {
1875
+ input = isMoment(input) ? input : local__createLocal(input);
1876
+ return +this === +input;
1877
+ } else {
1878
+ inputMs = +local__createLocal(input);
1879
+ return +(this.clone().startOf(units)) <= inputMs && inputMs <= +(this.clone().endOf(units));
1880
+ }
1881
+ }
1882
+
1883
+ function diff (input, units, asFloat) {
1884
+ var that = cloneWithOffset(input, this),
1885
+ zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4,
1886
+ delta, output;
1887
+
1888
+ units = normalizeUnits(units);
1889
+
1890
+ if (units === 'year' || units === 'month' || units === 'quarter') {
1891
+ output = monthDiff(this, that);
1892
+ if (units === 'quarter') {
1893
+ output = output / 3;
1894
+ } else if (units === 'year') {
1895
+ output = output / 12;
1896
+ }
1897
+ } else {
1898
+ delta = this - that;
1899
+ output = units === 'second' ? delta / 1e3 : // 1000
1900
+ units === 'minute' ? delta / 6e4 : // 1000 * 60
1901
+ units === 'hour' ? delta / 36e5 : // 1000 * 60 * 60
1902
+ units === 'day' ? (delta - zoneDelta) / 864e5 : // 1000 * 60 * 60 * 24, negate dst
1903
+ units === 'week' ? (delta - zoneDelta) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst
1904
+ delta;
1905
+ }
1906
+ return asFloat ? output : absFloor(output);
1907
+ }
1908
+
1909
+ function monthDiff (a, b) {
1910
+ // difference in months
1911
+ var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
1912
+ // b is in (anchor - 1 month, anchor + 1 month)
1913
+ anchor = a.clone().add(wholeMonthDiff, 'months'),
1914
+ anchor2, adjust;
1915
+
1916
+ if (b - anchor < 0) {
1917
+ anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
1918
+ // linear across the month
1919
+ adjust = (b - anchor) / (anchor - anchor2);
1920
+ } else {
1921
+ anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
1922
+ // linear across the month
1923
+ adjust = (b - anchor) / (anchor2 - anchor);
1924
+ }
1925
+
1926
+ return -(wholeMonthDiff + adjust);
1927
+ }
1928
+
1929
+ utils_hooks__hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
1930
+
1931
+ function toString () {
1932
+ return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
1933
+ }
1934
+
1935
+ function moment_format__toISOString () {
1936
+ var m = this.clone().utc();
1937
+ if (0 < m.year() && m.year() <= 9999) {
1938
+ if ('function' === typeof Date.prototype.toISOString) {
1939
+ // native implementation is ~50x faster, use it when we can
1940
+ return this.toDate().toISOString();
1941
+ } else {
1942
+ return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
1943
+ }
1944
+ } else {
1945
+ return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
1946
+ }
1947
+ }
1948
+
1949
+ function format (inputString) {
1950
+ var output = formatMoment(this, inputString || utils_hooks__hooks.defaultFormat);
1951
+ return this.localeData().postformat(output);
1952
+ }
1953
+
1954
+ function from (time, withoutSuffix) {
1955
+ if (!this.isValid()) {
1956
+ return this.localeData().invalidDate();
1957
+ }
1958
+ return create__createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
1959
+ }
1960
+
1961
+ function fromNow (withoutSuffix) {
1962
+ return this.from(local__createLocal(), withoutSuffix);
1963
+ }
1964
+
1965
+ function to (time, withoutSuffix) {
1966
+ if (!this.isValid()) {
1967
+ return this.localeData().invalidDate();
1968
+ }
1969
+ return create__createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
1970
+ }
1971
+
1972
+ function toNow (withoutSuffix) {
1973
+ return this.to(local__createLocal(), withoutSuffix);
1974
+ }
1975
+
1976
+ function locale (key) {
1977
+ var newLocaleData;
1978
+
1979
+ if (key === undefined) {
1980
+ return this._locale._abbr;
1981
+ } else {
1982
+ newLocaleData = locale_locales__getLocale(key);
1983
+ if (newLocaleData != null) {
1984
+ this._locale = newLocaleData;
1985
+ }
1986
+ return this;
1987
+ }
1988
+ }
1989
+
1990
+ var lang = deprecate(
1991
+ 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
1992
+ function (key) {
1993
+ if (key === undefined) {
1994
+ return this.localeData();
1995
+ } else {
1996
+ return this.locale(key);
1997
+ }
1998
+ }
1999
+ );
2000
+
2001
+ function localeData () {
2002
+ return this._locale;
2003
+ }
2004
+
2005
+ function startOf (units) {
2006
+ units = normalizeUnits(units);
2007
+ // the following switch intentionally omits break keywords
2008
+ // to utilize falling through the cases.
2009
+ switch (units) {
2010
+ case 'year':
2011
+ this.month(0);
2012
+ /* falls through */
2013
+ case 'quarter':
2014
+ case 'month':
2015
+ this.date(1);
2016
+ /* falls through */
2017
+ case 'week':
2018
+ case 'isoWeek':
2019
+ case 'day':
2020
+ this.hours(0);
2021
+ /* falls through */
2022
+ case 'hour':
2023
+ this.minutes(0);
2024
+ /* falls through */
2025
+ case 'minute':
2026
+ this.seconds(0);
2027
+ /* falls through */
2028
+ case 'second':
2029
+ this.milliseconds(0);
2030
+ }
2031
+
2032
+ // weeks are a special case
2033
+ if (units === 'week') {
2034
+ this.weekday(0);
2035
+ }
2036
+ if (units === 'isoWeek') {
2037
+ this.isoWeekday(1);
2038
+ }
2039
+
2040
+ // quarters are also special
2041
+ if (units === 'quarter') {
2042
+ this.month(Math.floor(this.month() / 3) * 3);
2043
+ }
2044
+
2045
+ return this;
2046
+ }
2047
+
2048
+ function endOf (units) {
2049
+ units = normalizeUnits(units);
2050
+ if (units === undefined || units === 'millisecond') {
2051
+ return this;
2052
+ }
2053
+ return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
2054
+ }
2055
+
2056
+ function to_type__valueOf () {
2057
+ return +this._d - ((this._offset || 0) * 60000);
2058
+ }
2059
+
2060
+ function unix () {
2061
+ return Math.floor(+this / 1000);
2062
+ }
2063
+
2064
+ function toDate () {
2065
+ return this._offset ? new Date(+this) : this._d;
2066
+ }
2067
+
2068
+ function toArray () {
2069
+ var m = this;
2070
+ return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
2071
+ }
2072
+
2073
+ function toObject () {
2074
+ var m = this;
2075
+ return {
2076
+ years: m.year(),
2077
+ months: m.month(),
2078
+ date: m.date(),
2079
+ hours: m.hours(),
2080
+ minutes: m.minutes(),
2081
+ seconds: m.seconds(),
2082
+ milliseconds: m.milliseconds()
2083
+ };
2084
+ }
2085
+
2086
+ function moment_valid__isValid () {
2087
+ return valid__isValid(this);
2088
+ }
2089
+
2090
+ function parsingFlags () {
2091
+ return extend({}, getParsingFlags(this));
2092
+ }
2093
+
2094
+ function invalidAt () {
2095
+ return getParsingFlags(this).overflow;
2096
+ }
2097
+
2098
+ addFormatToken(0, ['gg', 2], 0, function () {
2099
+ return this.weekYear() % 100;
2100
+ });
2101
+
2102
+ addFormatToken(0, ['GG', 2], 0, function () {
2103
+ return this.isoWeekYear() % 100;
2104
+ });
2105
+
2106
+ function addWeekYearFormatToken (token, getter) {
2107
+ addFormatToken(0, [token, token.length], 0, getter);
2108
+ }
2109
+
2110
+ addWeekYearFormatToken('gggg', 'weekYear');
2111
+ addWeekYearFormatToken('ggggg', 'weekYear');
2112
+ addWeekYearFormatToken('GGGG', 'isoWeekYear');
2113
+ addWeekYearFormatToken('GGGGG', 'isoWeekYear');
2114
+
2115
+ // ALIASES
2116
+
2117
+ addUnitAlias('weekYear', 'gg');
2118
+ addUnitAlias('isoWeekYear', 'GG');
2119
+
2120
+ // PARSING
2121
+
2122
+ addRegexToken('G', matchSigned);
2123
+ addRegexToken('g', matchSigned);
2124
+ addRegexToken('GG', match1to2, match2);
2125
+ addRegexToken('gg', match1to2, match2);
2126
+ addRegexToken('GGGG', match1to4, match4);
2127
+ addRegexToken('gggg', match1to4, match4);
2128
+ addRegexToken('GGGGG', match1to6, match6);
2129
+ addRegexToken('ggggg', match1to6, match6);
2130
+
2131
+ addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
2132
+ week[token.substr(0, 2)] = toInt(input);
2133
+ });
2134
+
2135
+ addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
2136
+ week[token] = utils_hooks__hooks.parseTwoDigitYear(input);
2137
+ });
2138
+
2139
+ // HELPERS
2140
+
2141
+ function weeksInYear(year, dow, doy) {
2142
+ return weekOfYear(local__createLocal([year, 11, 31 + dow - doy]), dow, doy).week;
2143
+ }
2144
+
2145
+ // MOMENTS
2146
+
2147
+ function getSetWeekYear (input) {
2148
+ var year = weekOfYear(this, this.localeData()._week.dow, this.localeData()._week.doy).year;
2149
+ return input == null ? year : this.add((input - year), 'y');
2150
+ }
2151
+
2152
+ function getSetISOWeekYear (input) {
2153
+ var year = weekOfYear(this, 1, 4).year;
2154
+ return input == null ? year : this.add((input - year), 'y');
2155
+ }
2156
+
2157
+ function getISOWeeksInYear () {
2158
+ return weeksInYear(this.year(), 1, 4);
2159
+ }
2160
+
2161
+ function getWeeksInYear () {
2162
+ var weekInfo = this.localeData()._week;
2163
+ return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
2164
+ }
2165
+
2166
+ addFormatToken('Q', 0, 0, 'quarter');
2167
+
2168
+ // ALIASES
2169
+
2170
+ addUnitAlias('quarter', 'Q');
2171
+
2172
+ // PARSING
2173
+
2174
+ addRegexToken('Q', match1);
2175
+ addParseToken('Q', function (input, array) {
2176
+ array[MONTH] = (toInt(input) - 1) * 3;
2177
+ });
2178
+
2179
+ // MOMENTS
2180
+
2181
+ function getSetQuarter (input) {
2182
+ return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
2183
+ }
2184
+
2185
+ addFormatToken('D', ['DD', 2], 'Do', 'date');
2186
+
2187
+ // ALIASES
2188
+
2189
+ addUnitAlias('date', 'D');
2190
+
2191
+ // PARSING
2192
+
2193
+ addRegexToken('D', match1to2);
2194
+ addRegexToken('DD', match1to2, match2);
2195
+ addRegexToken('Do', function (isStrict, locale) {
2196
+ return isStrict ? locale._ordinalParse : locale._ordinalParseLenient;
2197
+ });
2198
+
2199
+ addParseToken(['D', 'DD'], DATE);
2200
+ addParseToken('Do', function (input, array) {
2201
+ array[DATE] = toInt(input.match(match1to2)[0], 10);
2202
+ });
2203
+
2204
+ // MOMENTS
2205
+
2206
+ var getSetDayOfMonth = makeGetSet('Date', true);
2207
+
2208
+ addFormatToken('d', 0, 'do', 'day');
2209
+
2210
+ addFormatToken('dd', 0, 0, function (format) {
2211
+ return this.localeData().weekdaysMin(this, format);
2212
+ });
2213
+
2214
+ addFormatToken('ddd', 0, 0, function (format) {
2215
+ return this.localeData().weekdaysShort(this, format);
2216
+ });
2217
+
2218
+ addFormatToken('dddd', 0, 0, function (format) {
2219
+ return this.localeData().weekdays(this, format);
2220
+ });
2221
+
2222
+ addFormatToken('e', 0, 0, 'weekday');
2223
+ addFormatToken('E', 0, 0, 'isoWeekday');
2224
+
2225
+ // ALIASES
2226
+
2227
+ addUnitAlias('day', 'd');
2228
+ addUnitAlias('weekday', 'e');
2229
+ addUnitAlias('isoWeekday', 'E');
2230
+
2231
+ // PARSING
2232
+
2233
+ addRegexToken('d', match1to2);
2234
+ addRegexToken('e', match1to2);
2235
+ addRegexToken('E', match1to2);
2236
+ addRegexToken('dd', matchWord);
2237
+ addRegexToken('ddd', matchWord);
2238
+ addRegexToken('dddd', matchWord);
2239
+
2240
+ addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config) {
2241
+ var weekday = config._locale.weekdaysParse(input);
2242
+ // if we didn't get a weekday name, mark the date as invalid
2243
+ if (weekday != null) {
2244
+ week.d = weekday;
2245
+ } else {
2246
+ getParsingFlags(config).invalidWeekday = input;
2247
+ }
2248
+ });
2249
+
2250
+ addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
2251
+ week[token] = toInt(input);
2252
+ });
2253
+
2254
+ // HELPERS
2255
+
2256
+ function parseWeekday(input, locale) {
2257
+ if (typeof input !== 'string') {
2258
+ return input;
2259
+ }
2260
+
2261
+ if (!isNaN(input)) {
2262
+ return parseInt(input, 10);
2263
+ }
2264
+
2265
+ input = locale.weekdaysParse(input);
2266
+ if (typeof input === 'number') {
2267
+ return input;
2268
+ }
2269
+
2270
+ return null;
2271
+ }
2272
+
2273
+ // LOCALES
2274
+
2275
+ var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
2276
+ function localeWeekdays (m) {
2277
+ return this._weekdays[m.day()];
2278
+ }
2279
+
2280
+ var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
2281
+ function localeWeekdaysShort (m) {
2282
+ return this._weekdaysShort[m.day()];
2283
+ }
2284
+
2285
+ var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
2286
+ function localeWeekdaysMin (m) {
2287
+ return this._weekdaysMin[m.day()];
2288
+ }
2289
+
2290
+ function localeWeekdaysParse (weekdayName) {
2291
+ var i, mom, regex;
2292
+
2293
+ this._weekdaysParse = this._weekdaysParse || [];
2294
+
2295
+ for (i = 0; i < 7; i++) {
2296
+ // make the regex if we don't have it already
2297
+ if (!this._weekdaysParse[i]) {
2298
+ mom = local__createLocal([2000, 1]).day(i);
2299
+ regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
2300
+ this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
2301
+ }
2302
+ // test the regex
2303
+ if (this._weekdaysParse[i].test(weekdayName)) {
2304
+ return i;
2305
+ }
2306
+ }
2307
+ }
2308
+
2309
+ // MOMENTS
2310
+
2311
+ function getSetDayOfWeek (input) {
2312
+ var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
2313
+ if (input != null) {
2314
+ input = parseWeekday(input, this.localeData());
2315
+ return this.add(input - day, 'd');
2316
+ } else {
2317
+ return day;
2318
+ }
2319
+ }
2320
+
2321
+ function getSetLocaleDayOfWeek (input) {
2322
+ var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
2323
+ return input == null ? weekday : this.add(input - weekday, 'd');
2324
+ }
2325
+
2326
+ function getSetISODayOfWeek (input) {
2327
+ // behaves the same as moment#day except
2328
+ // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
2329
+ // as a setter, sunday should belong to the previous week.
2330
+ return input == null ? this.day() || 7 : this.day(this.day() % 7 ? input : input - 7);
2331
+ }
2332
+
2333
+ addFormatToken('H', ['HH', 2], 0, 'hour');
2334
+ addFormatToken('h', ['hh', 2], 0, function () {
2335
+ return this.hours() % 12 || 12;
2336
+ });
2337
+
2338
+ function meridiem (token, lowercase) {
2339
+ addFormatToken(token, 0, 0, function () {
2340
+ return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
2341
+ });
2342
+ }
2343
+
2344
+ meridiem('a', true);
2345
+ meridiem('A', false);
2346
+
2347
+ // ALIASES
2348
+
2349
+ addUnitAlias('hour', 'h');
2350
+
2351
+ // PARSING
2352
+
2353
+ function matchMeridiem (isStrict, locale) {
2354
+ return locale._meridiemParse;
2355
+ }
2356
+
2357
+ addRegexToken('a', matchMeridiem);
2358
+ addRegexToken('A', matchMeridiem);
2359
+ addRegexToken('H', match1to2);
2360
+ addRegexToken('h', match1to2);
2361
+ addRegexToken('HH', match1to2, match2);
2362
+ addRegexToken('hh', match1to2, match2);
2363
+
2364
+ addParseToken(['H', 'HH'], HOUR);
2365
+ addParseToken(['a', 'A'], function (input, array, config) {
2366
+ config._isPm = config._locale.isPM(input);
2367
+ config._meridiem = input;
2368
+ });
2369
+ addParseToken(['h', 'hh'], function (input, array, config) {
2370
+ array[HOUR] = toInt(input);
2371
+ getParsingFlags(config).bigHour = true;
2372
+ });
2373
+
2374
+ // LOCALES
2375
+
2376
+ function localeIsPM (input) {
2377
+ // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
2378
+ // Using charAt should be more compatible.
2379
+ return ((input + '').toLowerCase().charAt(0) === 'p');
2380
+ }
2381
+
2382
+ var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
2383
+ function localeMeridiem (hours, minutes, isLower) {
2384
+ if (hours > 11) {
2385
+ return isLower ? 'pm' : 'PM';
2386
+ } else {
2387
+ return isLower ? 'am' : 'AM';
2388
+ }
2389
+ }
2390
+
2391
+
2392
+ // MOMENTS
2393
+
2394
+ // Setting the hour should keep the time, because the user explicitly
2395
+ // specified which hour he wants. So trying to maintain the same hour (in
2396
+ // a new timezone) makes sense. Adding/subtracting hours does not follow
2397
+ // this rule.
2398
+ var getSetHour = makeGetSet('Hours', true);
2399
+
2400
+ addFormatToken('m', ['mm', 2], 0, 'minute');
2401
+
2402
+ // ALIASES
2403
+
2404
+ addUnitAlias('minute', 'm');
2405
+
2406
+ // PARSING
2407
+
2408
+ addRegexToken('m', match1to2);
2409
+ addRegexToken('mm', match1to2, match2);
2410
+ addParseToken(['m', 'mm'], MINUTE);
2411
+
2412
+ // MOMENTS
2413
+
2414
+ var getSetMinute = makeGetSet('Minutes', false);
2415
+
2416
+ addFormatToken('s', ['ss', 2], 0, 'second');
2417
+
2418
+ // ALIASES
2419
+
2420
+ addUnitAlias('second', 's');
2421
+
2422
+ // PARSING
2423
+
2424
+ addRegexToken('s', match1to2);
2425
+ addRegexToken('ss', match1to2, match2);
2426
+ addParseToken(['s', 'ss'], SECOND);
2427
+
2428
+ // MOMENTS
2429
+
2430
+ var getSetSecond = makeGetSet('Seconds', false);
2431
+
2432
+ addFormatToken('S', 0, 0, function () {
2433
+ return ~~(this.millisecond() / 100);
2434
+ });
2435
+
2436
+ addFormatToken(0, ['SS', 2], 0, function () {
2437
+ return ~~(this.millisecond() / 10);
2438
+ });
2439
+
2440
+ addFormatToken(0, ['SSS', 3], 0, 'millisecond');
2441
+ addFormatToken(0, ['SSSS', 4], 0, function () {
2442
+ return this.millisecond() * 10;
2443
+ });
2444
+ addFormatToken(0, ['SSSSS', 5], 0, function () {
2445
+ return this.millisecond() * 100;
2446
+ });
2447
+ addFormatToken(0, ['SSSSSS', 6], 0, function () {
2448
+ return this.millisecond() * 1000;
2449
+ });
2450
+ addFormatToken(0, ['SSSSSSS', 7], 0, function () {
2451
+ return this.millisecond() * 10000;
2452
+ });
2453
+ addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
2454
+ return this.millisecond() * 100000;
2455
+ });
2456
+ addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
2457
+ return this.millisecond() * 1000000;
2458
+ });
2459
+
2460
+
2461
+ // ALIASES
2462
+
2463
+ addUnitAlias('millisecond', 'ms');
2464
+
2465
+ // PARSING
2466
+
2467
+ addRegexToken('S', match1to3, match1);
2468
+ addRegexToken('SS', match1to3, match2);
2469
+ addRegexToken('SSS', match1to3, match3);
2470
+
2471
+ var token;
2472
+ for (token = 'SSSS'; token.length <= 9; token += 'S') {
2473
+ addRegexToken(token, matchUnsigned);
2474
+ }
2475
+
2476
+ function parseMs(input, array) {
2477
+ array[MILLISECOND] = toInt(('0.' + input) * 1000);
2478
+ }
2479
+
2480
+ for (token = 'S'; token.length <= 9; token += 'S') {
2481
+ addParseToken(token, parseMs);
2482
+ }
2483
+ // MOMENTS
2484
+
2485
+ var getSetMillisecond = makeGetSet('Milliseconds', false);
2486
+
2487
+ addFormatToken('z', 0, 0, 'zoneAbbr');
2488
+ addFormatToken('zz', 0, 0, 'zoneName');
2489
+
2490
+ // MOMENTS
2491
+
2492
+ function getZoneAbbr () {
2493
+ return this._isUTC ? 'UTC' : '';
2494
+ }
2495
+
2496
+ function getZoneName () {
2497
+ return this._isUTC ? 'Coordinated Universal Time' : '';
2498
+ }
2499
+
2500
+ var momentPrototype__proto = Moment.prototype;
2501
+
2502
+ momentPrototype__proto.add = add_subtract__add;
2503
+ momentPrototype__proto.calendar = moment_calendar__calendar;
2504
+ momentPrototype__proto.clone = clone;
2505
+ momentPrototype__proto.diff = diff;
2506
+ momentPrototype__proto.endOf = endOf;
2507
+ momentPrototype__proto.format = format;
2508
+ momentPrototype__proto.from = from;
2509
+ momentPrototype__proto.fromNow = fromNow;
2510
+ momentPrototype__proto.to = to;
2511
+ momentPrototype__proto.toNow = toNow;
2512
+ momentPrototype__proto.get = getSet;
2513
+ momentPrototype__proto.invalidAt = invalidAt;
2514
+ momentPrototype__proto.isAfter = isAfter;
2515
+ momentPrototype__proto.isBefore = isBefore;
2516
+ momentPrototype__proto.isBetween = isBetween;
2517
+ momentPrototype__proto.isSame = isSame;
2518
+ momentPrototype__proto.isValid = moment_valid__isValid;
2519
+ momentPrototype__proto.lang = lang;
2520
+ momentPrototype__proto.locale = locale;
2521
+ momentPrototype__proto.localeData = localeData;
2522
+ momentPrototype__proto.max = prototypeMax;
2523
+ momentPrototype__proto.min = prototypeMin;
2524
+ momentPrototype__proto.parsingFlags = parsingFlags;
2525
+ momentPrototype__proto.set = getSet;
2526
+ momentPrototype__proto.startOf = startOf;
2527
+ momentPrototype__proto.subtract = add_subtract__subtract;
2528
+ momentPrototype__proto.toArray = toArray;
2529
+ momentPrototype__proto.toObject = toObject;
2530
+ momentPrototype__proto.toDate = toDate;
2531
+ momentPrototype__proto.toISOString = moment_format__toISOString;
2532
+ momentPrototype__proto.toJSON = moment_format__toISOString;
2533
+ momentPrototype__proto.toString = toString;
2534
+ momentPrototype__proto.unix = unix;
2535
+ momentPrototype__proto.valueOf = to_type__valueOf;
2536
+
2537
+ // Year
2538
+ momentPrototype__proto.year = getSetYear;
2539
+ momentPrototype__proto.isLeapYear = getIsLeapYear;
2540
+
2541
+ // Week Year
2542
+ momentPrototype__proto.weekYear = getSetWeekYear;
2543
+ momentPrototype__proto.isoWeekYear = getSetISOWeekYear;
2544
+
2545
+ // Quarter
2546
+ momentPrototype__proto.quarter = momentPrototype__proto.quarters = getSetQuarter;
2547
+
2548
+ // Month
2549
+ momentPrototype__proto.month = getSetMonth;
2550
+ momentPrototype__proto.daysInMonth = getDaysInMonth;
2551
+
2552
+ // Week
2553
+ momentPrototype__proto.week = momentPrototype__proto.weeks = getSetWeek;
2554
+ momentPrototype__proto.isoWeek = momentPrototype__proto.isoWeeks = getSetISOWeek;
2555
+ momentPrototype__proto.weeksInYear = getWeeksInYear;
2556
+ momentPrototype__proto.isoWeeksInYear = getISOWeeksInYear;
2557
+
2558
+ // Day
2559
+ momentPrototype__proto.date = getSetDayOfMonth;
2560
+ momentPrototype__proto.day = momentPrototype__proto.days = getSetDayOfWeek;
2561
+ momentPrototype__proto.weekday = getSetLocaleDayOfWeek;
2562
+ momentPrototype__proto.isoWeekday = getSetISODayOfWeek;
2563
+ momentPrototype__proto.dayOfYear = getSetDayOfYear;
2564
+
2565
+ // Hour
2566
+ momentPrototype__proto.hour = momentPrototype__proto.hours = getSetHour;
2567
+
2568
+ // Minute
2569
+ momentPrototype__proto.minute = momentPrototype__proto.minutes = getSetMinute;
2570
+
2571
+ // Second
2572
+ momentPrototype__proto.second = momentPrototype__proto.seconds = getSetSecond;
2573
+
2574
+ // Millisecond
2575
+ momentPrototype__proto.millisecond = momentPrototype__proto.milliseconds = getSetMillisecond;
2576
+
2577
+ // Offset
2578
+ momentPrototype__proto.utcOffset = getSetOffset;
2579
+ momentPrototype__proto.utc = setOffsetToUTC;
2580
+ momentPrototype__proto.local = setOffsetToLocal;
2581
+ momentPrototype__proto.parseZone = setOffsetToParsedOffset;
2582
+ momentPrototype__proto.hasAlignedHourOffset = hasAlignedHourOffset;
2583
+ momentPrototype__proto.isDST = isDaylightSavingTime;
2584
+ momentPrototype__proto.isDSTShifted = isDaylightSavingTimeShifted;
2585
+ momentPrototype__proto.isLocal = isLocal;
2586
+ momentPrototype__proto.isUtcOffset = isUtcOffset;
2587
+ momentPrototype__proto.isUtc = isUtc;
2588
+ momentPrototype__proto.isUTC = isUtc;
2589
+
2590
+ // Timezone
2591
+ momentPrototype__proto.zoneAbbr = getZoneAbbr;
2592
+ momentPrototype__proto.zoneName = getZoneName;
2593
+
2594
+ // Deprecations
2595
+ momentPrototype__proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
2596
+ momentPrototype__proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
2597
+ momentPrototype__proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
2598
+ momentPrototype__proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779', getSetZone);
2599
+
2600
+ var momentPrototype = momentPrototype__proto;
2601
+
2602
+ function moment__createUnix (input) {
2603
+ return local__createLocal(input * 1000);
2604
+ }
2605
+
2606
+ function moment__createInZone () {
2607
+ return local__createLocal.apply(null, arguments).parseZone();
2608
+ }
2609
+
2610
+ var defaultCalendar = {
2611
+ sameDay : '[Today at] LT',
2612
+ nextDay : '[Tomorrow at] LT',
2613
+ nextWeek : 'dddd [at] LT',
2614
+ lastDay : '[Yesterday at] LT',
2615
+ lastWeek : '[Last] dddd [at] LT',
2616
+ sameElse : 'L'
2617
+ };
2618
+
2619
+ function locale_calendar__calendar (key, mom, now) {
2620
+ var output = this._calendar[key];
2621
+ return typeof output === 'function' ? output.call(mom, now) : output;
2622
+ }
2623
+
2624
+ var defaultLongDateFormat = {
2625
+ LTS : 'h:mm:ss A',
2626
+ LT : 'h:mm A',
2627
+ L : 'MM/DD/YYYY',
2628
+ LL : 'MMMM D, YYYY',
2629
+ LLL : 'MMMM D, YYYY h:mm A',
2630
+ LLLL : 'dddd, MMMM D, YYYY h:mm A'
2631
+ };
2632
+
2633
+ function longDateFormat (key) {
2634
+ var format = this._longDateFormat[key],
2635
+ formatUpper = this._longDateFormat[key.toUpperCase()];
2636
+
2637
+ if (format || !formatUpper) {
2638
+ return format;
2639
+ }
2640
+
2641
+ this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
2642
+ return val.slice(1);
2643
+ });
2644
+
2645
+ return this._longDateFormat[key];
2646
+ }
2647
+
2648
+ var defaultInvalidDate = 'Invalid date';
2649
+
2650
+ function invalidDate () {
2651
+ return this._invalidDate;
2652
+ }
2653
+
2654
+ var defaultOrdinal = '%d';
2655
+ var defaultOrdinalParse = /\d{1,2}/;
2656
+
2657
+ function ordinal (number) {
2658
+ return this._ordinal.replace('%d', number);
2659
+ }
2660
+
2661
+ function preParsePostFormat (string) {
2662
+ return string;
2663
+ }
2664
+
2665
+ var defaultRelativeTime = {
2666
+ future : 'in %s',
2667
+ past : '%s ago',
2668
+ s : 'a few seconds',
2669
+ m : 'a minute',
2670
+ mm : '%d minutes',
2671
+ h : 'an hour',
2672
+ hh : '%d hours',
2673
+ d : 'a day',
2674
+ dd : '%d days',
2675
+ M : 'a month',
2676
+ MM : '%d months',
2677
+ y : 'a year',
2678
+ yy : '%d years'
2679
+ };
2680
+
2681
+ function relative__relativeTime (number, withoutSuffix, string, isFuture) {
2682
+ var output = this._relativeTime[string];
2683
+ return (typeof output === 'function') ?
2684
+ output(number, withoutSuffix, string, isFuture) :
2685
+ output.replace(/%d/i, number);
2686
+ }
2687
+
2688
+ function pastFuture (diff, output) {
2689
+ var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
2690
+ return typeof format === 'function' ? format(output) : format.replace(/%s/i, output);
2691
+ }
2692
+
2693
+ function locale_set__set (config) {
2694
+ var prop, i;
2695
+ for (i in config) {
2696
+ prop = config[i];
2697
+ if (typeof prop === 'function') {
2698
+ this[i] = prop;
2699
+ } else {
2700
+ this['_' + i] = prop;
2701
+ }
2702
+ }
2703
+ // Lenient ordinal parsing accepts just a number in addition to
2704
+ // number + (possibly) stuff coming from _ordinalParseLenient.
2705
+ this._ordinalParseLenient = new RegExp(this._ordinalParse.source + '|' + (/\d{1,2}/).source);
2706
+ }
2707
+
2708
+ var prototype__proto = Locale.prototype;
2709
+
2710
+ prototype__proto._calendar = defaultCalendar;
2711
+ prototype__proto.calendar = locale_calendar__calendar;
2712
+ prototype__proto._longDateFormat = defaultLongDateFormat;
2713
+ prototype__proto.longDateFormat = longDateFormat;
2714
+ prototype__proto._invalidDate = defaultInvalidDate;
2715
+ prototype__proto.invalidDate = invalidDate;
2716
+ prototype__proto._ordinal = defaultOrdinal;
2717
+ prototype__proto.ordinal = ordinal;
2718
+ prototype__proto._ordinalParse = defaultOrdinalParse;
2719
+ prototype__proto.preparse = preParsePostFormat;
2720
+ prototype__proto.postformat = preParsePostFormat;
2721
+ prototype__proto._relativeTime = defaultRelativeTime;
2722
+ prototype__proto.relativeTime = relative__relativeTime;
2723
+ prototype__proto.pastFuture = pastFuture;
2724
+ prototype__proto.set = locale_set__set;
2725
+
2726
+ // Month
2727
+ prototype__proto.months = localeMonths;
2728
+ prototype__proto._months = defaultLocaleMonths;
2729
+ prototype__proto.monthsShort = localeMonthsShort;
2730
+ prototype__proto._monthsShort = defaultLocaleMonthsShort;
2731
+ prototype__proto.monthsParse = localeMonthsParse;
2732
+
2733
+ // Week
2734
+ prototype__proto.week = localeWeek;
2735
+ prototype__proto._week = defaultLocaleWeek;
2736
+ prototype__proto.firstDayOfYear = localeFirstDayOfYear;
2737
+ prototype__proto.firstDayOfWeek = localeFirstDayOfWeek;
2738
+
2739
+ // Day of Week
2740
+ prototype__proto.weekdays = localeWeekdays;
2741
+ prototype__proto._weekdays = defaultLocaleWeekdays;
2742
+ prototype__proto.weekdaysMin = localeWeekdaysMin;
2743
+ prototype__proto._weekdaysMin = defaultLocaleWeekdaysMin;
2744
+ prototype__proto.weekdaysShort = localeWeekdaysShort;
2745
+ prototype__proto._weekdaysShort = defaultLocaleWeekdaysShort;
2746
+ prototype__proto.weekdaysParse = localeWeekdaysParse;
2747
+
2748
+ // Hours
2749
+ prototype__proto.isPM = localeIsPM;
2750
+ prototype__proto._meridiemParse = defaultLocaleMeridiemParse;
2751
+ prototype__proto.meridiem = localeMeridiem;
2752
+
2753
+ function lists__get (format, index, field, setter) {
2754
+ var locale = locale_locales__getLocale();
2755
+ var utc = create_utc__createUTC().set(setter, index);
2756
+ return locale[field](utc, format);
2757
+ }
2758
+
2759
+ function list (format, index, field, count, setter) {
2760
+ if (typeof format === 'number') {
2761
+ index = format;
2762
+ format = undefined;
2763
+ }
2764
+
2765
+ format = format || '';
2766
+
2767
+ if (index != null) {
2768
+ return lists__get(format, index, field, setter);
2769
+ }
2770
+
2771
+ var i;
2772
+ var out = [];
2773
+ for (i = 0; i < count; i++) {
2774
+ out[i] = lists__get(format, i, field, setter);
2775
+ }
2776
+ return out;
2777
+ }
2778
+
2779
+ function lists__listMonths (format, index) {
2780
+ return list(format, index, 'months', 12, 'month');
2781
+ }
2782
+
2783
+ function lists__listMonthsShort (format, index) {
2784
+ return list(format, index, 'monthsShort', 12, 'month');
2785
+ }
2786
+
2787
+ function lists__listWeekdays (format, index) {
2788
+ return list(format, index, 'weekdays', 7, 'day');
2789
+ }
2790
+
2791
+ function lists__listWeekdaysShort (format, index) {
2792
+ return list(format, index, 'weekdaysShort', 7, 'day');
2793
+ }
2794
+
2795
+ function lists__listWeekdaysMin (format, index) {
2796
+ return list(format, index, 'weekdaysMin', 7, 'day');
2797
+ }
2798
+
2799
+ locale_locales__getSetGlobalLocale('en', {
2800
+ ordinalParse: /\d{1,2}(th|st|nd|rd)/,
2801
+ ordinal : function (number) {
2802
+ var b = number % 10,
2803
+ output = (toInt(number % 100 / 10) === 1) ? 'th' :
2804
+ (b === 1) ? 'st' :
2805
+ (b === 2) ? 'nd' :
2806
+ (b === 3) ? 'rd' : 'th';
2807
+ return number + output;
2808
+ }
2809
+ });
2810
+
2811
+ // Side effect imports
2812
+ utils_hooks__hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', locale_locales__getSetGlobalLocale);
2813
+ utils_hooks__hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', locale_locales__getLocale);
2814
+
2815
+ var mathAbs = Math.abs;
2816
+
2817
+ function duration_abs__abs () {
2818
+ var data = this._data;
2819
+
2820
+ this._milliseconds = mathAbs(this._milliseconds);
2821
+ this._days = mathAbs(this._days);
2822
+ this._months = mathAbs(this._months);
2823
+
2824
+ data.milliseconds = mathAbs(data.milliseconds);
2825
+ data.seconds = mathAbs(data.seconds);
2826
+ data.minutes = mathAbs(data.minutes);
2827
+ data.hours = mathAbs(data.hours);
2828
+ data.months = mathAbs(data.months);
2829
+ data.years = mathAbs(data.years);
2830
+
2831
+ return this;
2832
+ }
2833
+
2834
+ function duration_add_subtract__addSubtract (duration, input, value, direction) {
2835
+ var other = create__createDuration(input, value);
2836
+
2837
+ duration._milliseconds += direction * other._milliseconds;
2838
+ duration._days += direction * other._days;
2839
+ duration._months += direction * other._months;
2840
+
2841
+ return duration._bubble();
2842
+ }
2843
+
2844
+ // supports only 2.0-style add(1, 's') or add(duration)
2845
+ function duration_add_subtract__add (input, value) {
2846
+ return duration_add_subtract__addSubtract(this, input, value, 1);
2847
+ }
2848
+
2849
+ // supports only 2.0-style subtract(1, 's') or subtract(duration)
2850
+ function duration_add_subtract__subtract (input, value) {
2851
+ return duration_add_subtract__addSubtract(this, input, value, -1);
2852
+ }
2853
+
2854
+ function absCeil (number) {
2855
+ if (number < 0) {
2856
+ return Math.floor(number);
2857
+ } else {
2858
+ return Math.ceil(number);
2859
+ }
2860
+ }
2861
+
2862
+ function bubble () {
2863
+ var milliseconds = this._milliseconds;
2864
+ var days = this._days;
2865
+ var months = this._months;
2866
+ var data = this._data;
2867
+ var seconds, minutes, hours, years, monthsFromDays;
2868
+
2869
+ // if we have a mix of positive and negative values, bubble down first
2870
+ // check: https://github.com/moment/moment/issues/2166
2871
+ if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
2872
+ (milliseconds <= 0 && days <= 0 && months <= 0))) {
2873
+ milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
2874
+ days = 0;
2875
+ months = 0;
2876
+ }
2877
+
2878
+ // The following code bubbles up values, see the tests for
2879
+ // examples of what that means.
2880
+ data.milliseconds = milliseconds % 1000;
2881
+
2882
+ seconds = absFloor(milliseconds / 1000);
2883
+ data.seconds = seconds % 60;
2884
+
2885
+ minutes = absFloor(seconds / 60);
2886
+ data.minutes = minutes % 60;
2887
+
2888
+ hours = absFloor(minutes / 60);
2889
+ data.hours = hours % 24;
2890
+
2891
+ days += absFloor(hours / 24);
2892
+
2893
+ // convert days to months
2894
+ monthsFromDays = absFloor(daysToMonths(days));
2895
+ months += monthsFromDays;
2896
+ days -= absCeil(monthsToDays(monthsFromDays));
2897
+
2898
+ // 12 months -> 1 year
2899
+ years = absFloor(months / 12);
2900
+ months %= 12;
2901
+
2902
+ data.days = days;
2903
+ data.months = months;
2904
+ data.years = years;
2905
+
2906
+ return this;
2907
+ }
2908
+
2909
+ function daysToMonths (days) {
2910
+ // 400 years have 146097 days (taking into account leap year rules)
2911
+ // 400 years have 12 months === 4800
2912
+ return days * 4800 / 146097;
2913
+ }
2914
+
2915
+ function monthsToDays (months) {
2916
+ // the reverse of daysToMonths
2917
+ return months * 146097 / 4800;
2918
+ }
2919
+
2920
+ function as (units) {
2921
+ var days;
2922
+ var months;
2923
+ var milliseconds = this._milliseconds;
2924
+
2925
+ units = normalizeUnits(units);
2926
+
2927
+ if (units === 'month' || units === 'year') {
2928
+ days = this._days + milliseconds / 864e5;
2929
+ months = this._months + daysToMonths(days);
2930
+ return units === 'month' ? months : months / 12;
2931
+ } else {
2932
+ // handle milliseconds separately because of floating point math errors (issue #1867)
2933
+ days = this._days + Math.round(monthsToDays(this._months));
2934
+ switch (units) {
2935
+ case 'week' : return days / 7 + milliseconds / 6048e5;
2936
+ case 'day' : return days + milliseconds / 864e5;
2937
+ case 'hour' : return days * 24 + milliseconds / 36e5;
2938
+ case 'minute' : return days * 1440 + milliseconds / 6e4;
2939
+ case 'second' : return days * 86400 + milliseconds / 1000;
2940
+ // Math.floor prevents floating point math errors here
2941
+ case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
2942
+ default: throw new Error('Unknown unit ' + units);
2943
+ }
2944
+ }
2945
+ }
2946
+
2947
+ // TODO: Use this.as('ms')?
2948
+ function duration_as__valueOf () {
2949
+ return (
2950
+ this._milliseconds +
2951
+ this._days * 864e5 +
2952
+ (this._months % 12) * 2592e6 +
2953
+ toInt(this._months / 12) * 31536e6
2954
+ );
2955
+ }
2956
+
2957
+ function makeAs (alias) {
2958
+ return function () {
2959
+ return this.as(alias);
2960
+ };
2961
+ }
2962
+
2963
+ var asMilliseconds = makeAs('ms');
2964
+ var asSeconds = makeAs('s');
2965
+ var asMinutes = makeAs('m');
2966
+ var asHours = makeAs('h');
2967
+ var asDays = makeAs('d');
2968
+ var asWeeks = makeAs('w');
2969
+ var asMonths = makeAs('M');
2970
+ var asYears = makeAs('y');
2971
+
2972
+ function duration_get__get (units) {
2973
+ units = normalizeUnits(units);
2974
+ return this[units + 's']();
2975
+ }
2976
+
2977
+ function makeGetter(name) {
2978
+ return function () {
2979
+ return this._data[name];
2980
+ };
2981
+ }
2982
+
2983
+ var milliseconds = makeGetter('milliseconds');
2984
+ var seconds = makeGetter('seconds');
2985
+ var minutes = makeGetter('minutes');
2986
+ var hours = makeGetter('hours');
2987
+ var days = makeGetter('days');
2988
+ var months = makeGetter('months');
2989
+ var years = makeGetter('years');
2990
+
2991
+ function weeks () {
2992
+ return absFloor(this.days() / 7);
2993
+ }
2994
+
2995
+ var round = Math.round;
2996
+ var thresholds = {
2997
+ s: 45, // seconds to minute
2998
+ m: 45, // minutes to hour
2999
+ h: 22, // hours to day
3000
+ d: 26, // days to month
3001
+ M: 11 // months to year
3002
+ };
3003
+
3004
+ // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
3005
+ function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
3006
+ return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
3007
+ }
3008
+
3009
+ function duration_humanize__relativeTime (posNegDuration, withoutSuffix, locale) {
3010
+ var duration = create__createDuration(posNegDuration).abs();
3011
+ var seconds = round(duration.as('s'));
3012
+ var minutes = round(duration.as('m'));
3013
+ var hours = round(duration.as('h'));
3014
+ var days = round(duration.as('d'));
3015
+ var months = round(duration.as('M'));
3016
+ var years = round(duration.as('y'));
3017
+
3018
+ var a = seconds < thresholds.s && ['s', seconds] ||
3019
+ minutes === 1 && ['m'] ||
3020
+ minutes < thresholds.m && ['mm', minutes] ||
3021
+ hours === 1 && ['h'] ||
3022
+ hours < thresholds.h && ['hh', hours] ||
3023
+ days === 1 && ['d'] ||
3024
+ days < thresholds.d && ['dd', days] ||
3025
+ months === 1 && ['M'] ||
3026
+ months < thresholds.M && ['MM', months] ||
3027
+ years === 1 && ['y'] || ['yy', years];
3028
+
3029
+ a[2] = withoutSuffix;
3030
+ a[3] = +posNegDuration > 0;
3031
+ a[4] = locale;
3032
+ return substituteTimeAgo.apply(null, a);
3033
+ }
3034
+
3035
+ // This function allows you to set a threshold for relative time strings
3036
+ function duration_humanize__getSetRelativeTimeThreshold (threshold, limit) {
3037
+ if (thresholds[threshold] === undefined) {
3038
+ return false;
3039
+ }
3040
+ if (limit === undefined) {
3041
+ return thresholds[threshold];
3042
+ }
3043
+ thresholds[threshold] = limit;
3044
+ return true;
3045
+ }
3046
+
3047
+ function humanize (withSuffix) {
3048
+ var locale = this.localeData();
3049
+ var output = duration_humanize__relativeTime(this, !withSuffix, locale);
3050
+
3051
+ if (withSuffix) {
3052
+ output = locale.pastFuture(+this, output);
3053
+ }
3054
+
3055
+ return locale.postformat(output);
3056
+ }
3057
+
3058
+ var iso_string__abs = Math.abs;
3059
+
3060
+ function iso_string__toISOString() {
3061
+ // for ISO strings we do not use the normal bubbling rules:
3062
+ // * milliseconds bubble up until they become hours
3063
+ // * days do not bubble at all
3064
+ // * months bubble up until they become years
3065
+ // This is because there is no context-free conversion between hours and days
3066
+ // (think of clock changes)
3067
+ // and also not between days and months (28-31 days per month)
3068
+ var seconds = iso_string__abs(this._milliseconds) / 1000;
3069
+ var days = iso_string__abs(this._days);
3070
+ var months = iso_string__abs(this._months);
3071
+ var minutes, hours, years;
3072
+
3073
+ // 3600 seconds -> 60 minutes -> 1 hour
3074
+ minutes = absFloor(seconds / 60);
3075
+ hours = absFloor(minutes / 60);
3076
+ seconds %= 60;
3077
+ minutes %= 60;
3078
+
3079
+ // 12 months -> 1 year
3080
+ years = absFloor(months / 12);
3081
+ months %= 12;
3082
+
3083
+
3084
+ // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
3085
+ var Y = years;
3086
+ var M = months;
3087
+ var D = days;
3088
+ var h = hours;
3089
+ var m = minutes;
3090
+ var s = seconds;
3091
+ var total = this.asSeconds();
3092
+
3093
+ if (!total) {
3094
+ // this is the same as C#'s (Noda) and python (isodate)...
3095
+ // but not other JS (goog.date)
3096
+ return 'P0D';
3097
+ }
3098
+
3099
+ return (total < 0 ? '-' : '') +
3100
+ 'P' +
3101
+ (Y ? Y + 'Y' : '') +
3102
+ (M ? M + 'M' : '') +
3103
+ (D ? D + 'D' : '') +
3104
+ ((h || m || s) ? 'T' : '') +
3105
+ (h ? h + 'H' : '') +
3106
+ (m ? m + 'M' : '') +
3107
+ (s ? s + 'S' : '');
3108
+ }
3109
+
3110
+ var duration_prototype__proto = Duration.prototype;
3111
+
3112
+ duration_prototype__proto.abs = duration_abs__abs;
3113
+ duration_prototype__proto.add = duration_add_subtract__add;
3114
+ duration_prototype__proto.subtract = duration_add_subtract__subtract;
3115
+ duration_prototype__proto.as = as;
3116
+ duration_prototype__proto.asMilliseconds = asMilliseconds;
3117
+ duration_prototype__proto.asSeconds = asSeconds;
3118
+ duration_prototype__proto.asMinutes = asMinutes;
3119
+ duration_prototype__proto.asHours = asHours;
3120
+ duration_prototype__proto.asDays = asDays;
3121
+ duration_prototype__proto.asWeeks = asWeeks;
3122
+ duration_prototype__proto.asMonths = asMonths;
3123
+ duration_prototype__proto.asYears = asYears;
3124
+ duration_prototype__proto.valueOf = duration_as__valueOf;
3125
+ duration_prototype__proto._bubble = bubble;
3126
+ duration_prototype__proto.get = duration_get__get;
3127
+ duration_prototype__proto.milliseconds = milliseconds;
3128
+ duration_prototype__proto.seconds = seconds;
3129
+ duration_prototype__proto.minutes = minutes;
3130
+ duration_prototype__proto.hours = hours;
3131
+ duration_prototype__proto.days = days;
3132
+ duration_prototype__proto.weeks = weeks;
3133
+ duration_prototype__proto.months = months;
3134
+ duration_prototype__proto.years = years;
3135
+ duration_prototype__proto.humanize = humanize;
3136
+ duration_prototype__proto.toISOString = iso_string__toISOString;
3137
+ duration_prototype__proto.toString = iso_string__toISOString;
3138
+ duration_prototype__proto.toJSON = iso_string__toISOString;
3139
+ duration_prototype__proto.locale = locale;
3140
+ duration_prototype__proto.localeData = localeData;
3141
+
3142
+ // Deprecations
3143
+ duration_prototype__proto.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', iso_string__toISOString);
3144
+ duration_prototype__proto.lang = lang;
3145
+
3146
+ // Side effect imports
3147
+
3148
+ addFormatToken('X', 0, 0, 'unix');
3149
+ addFormatToken('x', 0, 0, 'valueOf');
3150
+
3151
+ // PARSING
3152
+
3153
+ addRegexToken('x', matchSigned);
3154
+ addRegexToken('X', matchTimestamp);
3155
+ addParseToken('X', function (input, array, config) {
3156
+ config._d = new Date(parseFloat(input, 10) * 1000);
3157
+ });
3158
+ addParseToken('x', function (input, array, config) {
3159
+ config._d = new Date(toInt(input));
3160
+ });
3161
+
3162
+ // Side effect imports
3163
+
3164
+
3165
+ utils_hooks__hooks.version = '2.10.6';
3166
+
3167
+ setHookCallback(local__createLocal);
3168
+
3169
+ utils_hooks__hooks.fn = momentPrototype;
3170
+ utils_hooks__hooks.min = min;
3171
+ utils_hooks__hooks.max = max;
3172
+ utils_hooks__hooks.utc = create_utc__createUTC;
3173
+ utils_hooks__hooks.unix = moment__createUnix;
3174
+ utils_hooks__hooks.months = lists__listMonths;
3175
+ utils_hooks__hooks.isDate = isDate;
3176
+ utils_hooks__hooks.locale = locale_locales__getSetGlobalLocale;
3177
+ utils_hooks__hooks.invalid = valid__createInvalid;
3178
+ utils_hooks__hooks.duration = create__createDuration;
3179
+ utils_hooks__hooks.isMoment = isMoment;
3180
+ utils_hooks__hooks.weekdays = lists__listWeekdays;
3181
+ utils_hooks__hooks.parseZone = moment__createInZone;
3182
+ utils_hooks__hooks.localeData = locale_locales__getLocale;
3183
+ utils_hooks__hooks.isDuration = isDuration;
3184
+ utils_hooks__hooks.monthsShort = lists__listMonthsShort;
3185
+ utils_hooks__hooks.weekdaysMin = lists__listWeekdaysMin;
3186
+ utils_hooks__hooks.defineLocale = defineLocale;
3187
+ utils_hooks__hooks.weekdaysShort = lists__listWeekdaysShort;
3188
+ utils_hooks__hooks.normalizeUnits = normalizeUnits;
3189
+ utils_hooks__hooks.relativeTimeThreshold = duration_humanize__getSetRelativeTimeThreshold;
3190
+
3191
+ var _moment = utils_hooks__hooks;
3192
+
3193
+ return _moment;
3194
+
3195
+ }));
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Coming Soon / Maintenance Mode from Acurax ===
2
  Contributors: Acurax
3
- Donate link: http://www.acurax.com/home.php
4
 
5
  Tags: coming soon,under maintenance,maintenance mode,under construction,site offline,work in progress,website launch,launching page
6
  Requires at least: 2.8
7
- Tested up to: 4.2.4
8
  Stable tag: trunk
9
  License: GPLv2 or later
10
 
@@ -127,4 +127,28 @@ Its because you selected the option “Would you like to end the maintenance mod
127
  10. Template 5 Preview
128
  11. Template 5 Customization Options
129
  12. Template Custom HTML Options
130
- 13. Maintenance Mode Subscribers List
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  === Coming Soon / Maintenance Mode from Acurax ===
2
  Contributors: Acurax
3
+ Donate link: http://www.acurax.com/happy-clients.php
4
 
5
  Tags: coming soon,under maintenance,maintenance mode,under construction,site offline,work in progress,website launch,launching page
6
  Requires at least: 2.8
7
+ Tested up to: 4.3
8
  Stable tag: trunk
9
  License: GPLv2 or later
10
 
127
  10. Template 5 Preview
128
  11. Template 5 Customization Options
129
  12. Template Custom HTML Options
130
+ 13. Maintenance Mode Subscribers List
131
+
132
+ == Upgrade Notice ==
133
+
134
+ = 1.1 =
135
+ * Aug 26, 2015
136
+ * Code Optimization
137
+ * Now you can have text instead of Logo
138
+ * Fixed time zone related issues
139
+ * Fixed count down timer issues
140
+ * Security Improvements
141
+ * Compatibility Fixes
142
+ * Stable Release
143
+
144
+ == Changelog ==
145
+
146
+ = 1.1 =
147
+ * Aug 26, 2015
148
+ * Code Optimization
149
+ * Now you can have text instead of Logo
150
+ * Fixed time zone related issues
151
+ * Fixed count down timer issues
152
+ * Security Improvements
153
+ * Compatibility Fixes
154
+ * Stable Release
templates/1/index.php CHANGED
@@ -10,11 +10,7 @@ if(is_serialized($acx_csma_appearence_array_1 ))
10
  $acx_csma_favicon = get_option('acx_csma_favicon');
11
  $acx_csma_date_time = get_option('acx_csma_date_time');
12
  $acx_csma_start_date_time = get_option('acx_csma_start_date_time');
13
- $acx_csma_current_date_time = date("Y/m/d H:i");
14
- $acx_csma_current_date_time1 = explode(" ",$acx_csma_current_date_time);
15
- $acx_csma_current_date = explode("/",$acx_csma_current_date_time1[0]);
16
- $acx_csma_current_time = explode(":",$acx_csma_current_date_time1[1]);
17
- $acx_csma_timestamp = mktime($acx_csma_current_time[0],$acx_csma_current_time[1],0,$acx_csma_current_date[1],$acx_csma_current_date[2],$acx_csma_current_date[0]);//mktime(hour,minute,second,month,day,year);
18
  ?>
19
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
20
  <html xmlns="http://www.w3.org/1999/xhtml">
@@ -26,53 +22,71 @@ if(is_serialized($acx_csma_appearence_array_1 ))
26
  if($acx_csma_meta_title!="")
27
  {
28
  ?>
29
- <title><?php echo $acx_csma_meta_title;?></title>
30
  <?php
31
  }
32
  if($acx_csma_meta_description!="")
33
  {
34
  ?>
35
- <meta name="description" content="<?php echo $acx_csma_meta_description;?>">
36
  <?php
37
  }
38
  if($acx_csma_meta_keywords!="")
39
  {
40
  ?>
41
- <meta name="keywords" content="<?php echo $acx_csma_meta_keywords;?>">
42
  <?php
43
  }
44
  ?>
45
  <style>
46
  .submit:hover
47
  {
48
- color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_btn_hover_color1'];?>;
49
- background:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_btn_hover_bgcolor1'];?>;
50
  }
51
  .submit{
52
- background:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_btn_color1'];?>;
53
- color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_btn_text_color1'];?>;
54
  }
55
  </style>
56
- <link href="<?php echo plugins_url('style.css', __FILE__);?>" rel="stylesheet" type="text/css" />
57
- <link rel="icon" href="<?php echo $acx_csma_favicon;?>" type="image/png">
58
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
59
  </head>
60
 
61
 
62
- <body style="background: url('<?php echo $acx_csma_appearence_array_1['1']['acx_csma_background_image1'];?>') no-repeat fixed center center transparent; background-size:cover; ">
63
 
64
- <div class="wrapper" >
65
- <div class="canvas960">
66
- <div id="header"> <img src="<?php echo $acx_csma_appearence_array_1['1']['acx_csma_logo1'];?>" alt="Logo"> </div><!-- header -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  <div class="inline_block">
68
- <h2 style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_title_color1'];?>"><?php echo $acx_csma_appearence_array_1['1']['acx_csma_title1'];?></h2>
69
- <h3 style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_subtitle_color1'];?>"><?php echo $acx_csma_appearence_array_1['1']['acx_csma_subtitle_text1'];?></h3>
70
  </div><!-- inline_block -->
71
 
72
  <div class="inline_block mg_top">
73
- <div class="timer_head" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_1['1']['acx_csma_inside_bg_color1'];?>; color: <?php echo $acx_csma_appearence_array_1['1']['acx_csma_inside_title_color1'];?>">
74
- <p><?php echo $acx_csma_appearence_array_1['1']['acx_csma_inside_title1'];?></p></div><!-- timer_head -->
75
- <div class="inline_block timer_holder" style=" background: <?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_bg_color1'];?>">
76
  <?php
77
  $acx_csma_custom_html_top_temp1 = base64_decode($acx_csma_appearence_array_1['1']['acx_csma_custom_html_top_temp1']);
78
  if($acx_csma_custom_html_top_temp1 != "") { ?>
@@ -83,32 +97,32 @@ if($acx_csma_meta_keywords!="")
83
  <?php if($acx_csma_appearence_array_1['1']['acx_csma_show_timer1']==1)
84
  {?>
85
  <div class="timer_box days">
86
- <p style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_head_color1'];?>">Days</p>
87
  <ul>
88
- <li id="days_0" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1'];?>">0</li>
89
- <li id="days_1" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1'];?>">0</li>
90
- <li id="days_2" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1'];?>">0</li>
91
  </ul>
92
  </div><!-- timer_box -->
93
  <div class="timer_box">
94
- <p style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_head_color1'];?>">Hours</p>
95
  <ul>
96
- <li id="hours_0" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1'];?>">0</li>
97
- <li id="hours_1" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1'];?>">0</li>
98
  </ul>
99
  </div><!-- timer_box -->
100
  <div class="timer_box">
101
- <p style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_head_color1'];?>">Minutes</p>
102
  <ul>
103
- <li id="minutes_0" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1'];?>">0</li>
104
- <li id="minutes_1" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1'];?>">0</li>
105
  </ul>
106
  </div><!-- timer_box -->
107
  <div class="timer_box last_one">
108
- <p style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_head_color1'];?>">Seconds</p>
109
  <ul>
110
- <li id="seconds_0" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1'];?>">0</li>
111
- <li id="seconds_1" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1'];?>">0</li>
112
  </ul>
113
  </div><!-- timer_box -->
114
  <?php }?>
@@ -121,18 +135,18 @@ if($acx_csma_meta_keywords!="")
121
  <?php } ?>
122
 
123
  </div><!-- timer_holder -->
124
- <div class="inline_block form" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_bg_color1'];?>">
125
- <h4><span style="color: <?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_title_color1'];?>;"><?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_title1'];?></span></h4>
126
- <form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']);?>">
127
- <div id="acx_csma_success" name="acx_csma_success" style="display:none; color:white;" ><?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_success1'];?></div>
128
- <div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none; color:white;" ><?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_invalid1'];?></div>
129
  <div id="acx_csma_error" style="color:white;"></div>
130
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
131
  <input type="hidden" id="acx_csma_email" name="email" placeholder="Enter Your Email Here" ><br/>
132
  <input type="button" id="acx_csma_submit" onclick="acx_csma_validate_email();" value="NEXT" class="submit" >
133
  </form>
134
  </div><!-- form -->
135
- <div class="timer_head footer" style="background:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_footer_bgcolor1'];?>;color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_footer_text_color1'];?>"><?php echo $acx_csma_appearence_array_1['1']['acx_csma_footer_text1'];?></div><!-- timer_head -->
136
  </div><!-- inline_block -->
137
  </div><!-- canvas960 -->
138
  </div><!-- wrapper -->
@@ -153,7 +167,7 @@ function acx_csma_validate_email()
153
  else{
154
  document.getElementById('acx_csma_name_hidden').type = 'hidden';
155
  document.getElementById('acx_csma_email').type = 'email';
156
- document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_btn_text1'];?>";
157
  acx_csma_form_status=2;
158
  return false;
159
  }
@@ -178,10 +192,10 @@ function acx_csma_validate_email()
178
  }
179
  else
180
  {
181
- var timestamp = "<?php echo time();?>";
182
- var ip="<?php echo $_SERVER['REMOTE_ADDR'];?>";
183
  var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
184
- var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'&timestamp='+timestamp+'&action=acx_csma_subscribe_email';
185
  jQuery.post(acx_csma_ajaxurl, order, function(theResponse)
186
  {
187
  if(theResponse == "success")
@@ -208,13 +222,14 @@ function acx_csma_validate_email()
208
  {
209
  if($acx_csma_timestamp < $acx_csma_date_time)
210
  {?>
211
- var start_date = <?php echo $acx_csma_start_date_time;?>;
212
- var end_date =<?php echo $acx_csma_date_time;?>;
213
- var d1 = new Date();
214
- var current=Math.floor(d1.getTime()/ 1000);
215
  updateCounter();
216
  function updateCounter()
217
  {
 
 
218
  current = current+1;
219
  seconds = (end_date - current);
220
 
@@ -228,69 +243,94 @@ function updateCounter()
228
  seconds -= minutes * 60;
229
 
230
 
231
- for(var i=0;i< seconds.toString().length;i++)
232
- {
233
- var res_sec = seconds.toString().charAt(i);
234
- if(seconds.toString().length == 1)
235
- {
236
- var a=i+1;
237
- document.getElementById("seconds_"+a).innerHTML = res_sec;
238
- }
239
- else if(seconds.toString().length == 2)
240
- {
241
- document.getElementById("seconds_"+i).innerHTML = res_sec;
242
- }
243
- }
244
- for(var j=0;j< minutes.toString().length;j++)
245
- {
246
- var res_min = minutes.toString().charAt(j);
247
- if(minutes.toString().length == 1)
248
- {
249
- var b=j+1;
250
- document.getElementById("minutes_"+b).innerHTML = res_min;
251
- }
252
- else if(minutes.toString().length == 2)
253
- {
254
- document.getElementById("minutes_"+j).innerHTML = res_min;
255
- }
256
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
 
258
- for(var k=0;k< hours.toString().length;k++)
259
- {
260
- var res_hour = hours.toString().charAt(k);
261
- if(hours.toString().length == 1)
262
- {
263
- var c=k+1;
264
- document.getElementById("hours_"+c).innerHTML = res_hour;
265
- }
266
- else if(hours.toString().length == 2)
267
- {
268
- document.getElementById("hours_"+k).innerHTML = res_hour;
269
- }
270
- }
271
-
272
- for(var m = 0; m < days.toString().length; m++)
273
- {
274
- var res_day = days.toString().charAt(m);
275
- if(days.toString().length == 1)
276
- {
277
- var n=m+2;
278
- document.getElementById("days_"+n).innerHTML = res_day;
279
- }
280
- else if(days.toString().length == 2)
281
- {
282
- var n=m+1;
283
- document.getElementById("days_"+n).innerHTML = res_day;
284
- }
285
- else if(days.toString().length == 3)
286
- {
287
- document.getElementById("days_"+m).innerHTML = res_day;
288
- }
289
- }
290
- setTimeout( function(){
291
- updateCounter();
292
- }, 1000 );
293
- }
 
 
 
 
 
 
 
 
 
294
  <?php
295
  }
296
  }
10
  $acx_csma_favicon = get_option('acx_csma_favicon');
11
  $acx_csma_date_time = get_option('acx_csma_date_time');
12
  $acx_csma_start_date_time = get_option('acx_csma_start_date_time');
13
+ $acx_csma_timestamp=current_time('timestamp');
 
 
 
 
14
  ?>
15
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
16
  <html xmlns="http://www.w3.org/1999/xhtml">
22
  if($acx_csma_meta_title!="")
23
  {
24
  ?>
25
+ <title><?php echo $acx_csma_meta_title; ?></title>
26
  <?php
27
  }
28
  if($acx_csma_meta_description!="")
29
  {
30
  ?>
31
+ <meta name="description" content="<?php echo $acx_csma_meta_description; ?>">
32
  <?php
33
  }
34
  if($acx_csma_meta_keywords!="")
35
  {
36
  ?>
37
+ <meta name="keywords" content="<?php echo $acx_csma_meta_keywords; ?>">
38
  <?php
39
  }
40
  ?>
41
  <style>
42
  .submit:hover
43
  {
44
+ color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_btn_hover_color1']; ?>;
45
+ background:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_btn_hover_bgcolor1']; ?>;
46
  }
47
  .submit{
48
+ background:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_btn_color1']; ?>;
49
+ color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_btn_text_color1']; ?>;
50
  }
51
  </style>
52
+ <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
53
+ <link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>" type="image/png">
54
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
55
  </head>
56
 
57
 
58
+ <body style="background: url('<?php echo esc_url($acx_csma_appearence_array_1['1']['acx_csma_background_image1']); ?>') no-repeat fixed center center transparent; background-size:cover; ">
59
 
60
+ <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_1['1'])){
61
+ if($acx_csma_appearence_array_1['1']['acx_csma_logo_choice']=="text")
62
+ {
63
+ $new_class="text_logo";
64
+ } else
65
+ {
66
+ $new_class="";
67
+ }} else
68
+ {
69
+ $new_class="";}
70
+ ?> <div class="wrapper" >
71
+ <div class="canvas960 <?php echo $new_class; ?>">
72
+ <div id="header">
73
+ <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_1['1']))
74
+ {if($acx_csma_appearence_array_1['1']['acx_csma_logo_choice']=="image" || $acx_csma_appearence_array_1['1']['acx_csma_logo_choice']==""){ ?>
75
+ <img src="<?php echo esc_url($acx_csma_appearence_array_1['1']['acx_csma_logo1']); ?>" alt="Logo">
76
+ <?php } else if($acx_csma_appearence_array_1['1']['acx_csma_logo_choice']=="text")
77
+ { ?>
78
+ <div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_logo_text_color1']; ?>"><?php echo $acx_csma_appearence_array_1['1']['acx_csma_logo_text1']; ?></div>
79
+ <?php } }?>
80
+ </div><!-- header -->
81
  <div class="inline_block">
82
+ <h2 style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_title_color1']; ?>"><?php echo $acx_csma_appearence_array_1['1']['acx_csma_title1']; ?></h2>
83
+ <h3 style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_subtitle_color1']; ?>"><?php echo $acx_csma_appearence_array_1['1']['acx_csma_subtitle_text1']; ?></h3>
84
  </div><!-- inline_block -->
85
 
86
  <div class="inline_block mg_top">
87
+ <div class="timer_head" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_1['1']['acx_csma_inside_bg_color1']; ?>; color: <?php echo $acx_csma_appearence_array_1['1']['acx_csma_inside_title_color1']; ?>">
88
+ <p><?php echo $acx_csma_appearence_array_1['1']['acx_csma_inside_title1']; ?></p></div><!-- timer_head -->
89
+ <div class="inline_block timer_holder" style=" background: <?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_bg_color1']; ?>">
90
  <?php
91
  $acx_csma_custom_html_top_temp1 = base64_decode($acx_csma_appearence_array_1['1']['acx_csma_custom_html_top_temp1']);
92
  if($acx_csma_custom_html_top_temp1 != "") { ?>
97
  <?php if($acx_csma_appearence_array_1['1']['acx_csma_show_timer1']==1)
98
  {?>
99
  <div class="timer_box days">
100
+ <p style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_head_color1']; ?>">Days</p>
101
  <ul>
102
+ <li id="days_0" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1']; ?>">0</li>
103
+ <li id="days_1" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1']; ?>">0</li>
104
+ <li id="days_2" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1']; ?>">0</li>
105
  </ul>
106
  </div><!-- timer_box -->
107
  <div class="timer_box">
108
+ <p style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_head_color1']; ?>">Hours</p>
109
  <ul>
110
+ <li id="hours_0" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1']; ?>">0</li>
111
+ <li id="hours_1" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1']; ?>">0</li>
112
  </ul>
113
  </div><!-- timer_box -->
114
  <div class="timer_box">
115
+ <p style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_head_color1']; ?>">Minutes</p>
116
  <ul>
117
+ <li id="minutes_0" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1']; ?>">0</li>
118
+ <li id="minutes_1" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1']; ?>">0</li>
119
  </ul>
120
  </div><!-- timer_box -->
121
  <div class="timer_box last_one">
122
+ <p style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_head_color1']; ?>">Seconds</p>
123
  <ul>
124
+ <li id="seconds_0" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1']; ?>">0</li>
125
+ <li id="seconds_1" style="color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_timer_iptext_color1']; ?>">0</li>
126
  </ul>
127
  </div><!-- timer_box -->
128
  <?php }?>
135
  <?php } ?>
136
 
137
  </div><!-- timer_holder -->
138
+ <div class="inline_block form" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_bg_color1']; ?>">
139
+ <h4><span style="color: <?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_title_color1']; ?>;"><?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_title1']; ?></span></h4>
140
+ <form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']); ?>">
141
+ <div id="acx_csma_success" name="acx_csma_success" style="display:none; color:white;" ><?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_success1']; ?></div>
142
+ <div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none; color:white;" ><?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_invalid1']; ?></div>
143
  <div id="acx_csma_error" style="color:white;"></div>
144
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
145
  <input type="hidden" id="acx_csma_email" name="email" placeholder="Enter Your Email Here" ><br/>
146
  <input type="button" id="acx_csma_submit" onclick="acx_csma_validate_email();" value="NEXT" class="submit" >
147
  </form>
148
  </div><!-- form -->
149
+ <div class="timer_head footer" style="background:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_footer_bgcolor1']; ?>;color:<?php echo $acx_csma_appearence_array_1['1']['acx_csma_footer_text_color1']; ?>"><?php echo $acx_csma_appearence_array_1['1']['acx_csma_footer_text1']; ?></div><!-- timer_head -->
150
  </div><!-- inline_block -->
151
  </div><!-- canvas960 -->
152
  </div><!-- wrapper -->
167
  else{
168
  document.getElementById('acx_csma_name_hidden').type = 'hidden';
169
  document.getElementById('acx_csma_email').type = 'email';
170
+ document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_appearence_array_1['1']['acx_csma_subscribe_btn_text1']; ?>";
171
  acx_csma_form_status=2;
172
  return false;
173
  }
192
  }
193
  else
194
  {
195
+ var timestamp = Math.floor(<?php echo current_time('timestamp'); ?>);
196
+ var ip="<?php echo $_SERVER['REMOTE_ADDR']; ?>";
197
  var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
198
+ var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'&timestamp='+timestamp+'&action=acx_csma_subscribe_email'+'&acx_csma_subscribe_es=<?php echo wp_create_nonce("acx_csma_subscribe_es"); ?>';
199
  jQuery.post(acx_csma_ajaxurl, order, function(theResponse)
200
  {
201
  if(theResponse == "success")
222
  {
223
  if($acx_csma_timestamp < $acx_csma_date_time)
224
  {?>
225
+ var start_date = <?php echo $acx_csma_start_date_time; ?>;
226
+ var end_date =<?php echo $acx_csma_date_time; ?>;
227
+ var current = Math.floor(<?php echo current_time('timestamp'); ?>);
 
228
  updateCounter();
229
  function updateCounter()
230
  {
231
+ if(current < end_date)
232
+ {
233
  current = current+1;
234
  seconds = (end_date - current);
235
 
243
  seconds -= minutes * 60;
244
 
245
 
246
+ for(var i=0;i< seconds.toString().length;i++)
247
+ {
248
+ if(seconds < 10 && seconds.toString().length == 1 )
249
+ {
250
+ seconds = "0"+seconds;
251
+ }
252
+ if(seconds > 60)
253
+ {
254
+ seconds = 60;
255
+ }
256
+ var res_sec = seconds.toString().charAt(i);
257
+ if(seconds.toString().length == 1)
258
+ {
259
+ var a=i+1;
260
+ document.getElementById("seconds_"+a).innerHTML = res_sec;
261
+ }
262
+ else if(seconds.toString().length == 2)
263
+ {
264
+ document.getElementById("seconds_"+i).innerHTML = res_sec;
265
+ }
266
+ }
267
+ for(var j=0;j< minutes.toString().length;j++)
268
+ {
269
+ if(minutes < 10 && minutes.toString().length == 1 )
270
+ {
271
+ minutes = "0"+minutes;
272
+ }
273
+ if(minutes > 60)
274
+ {
275
+ minutes = 60;
276
+ }
277
+ var res_min = minutes.toString().charAt(j);
278
+ if(minutes.toString().length == 1)
279
+ {
280
+ var b=j+1;
281
+ document.getElementById("minutes_"+b).innerHTML = res_min;
282
+ }
283
+ else if(minutes.toString().length == 2)
284
+ {
285
+ document.getElementById("minutes_"+j).innerHTML = res_min;
286
+ }
287
+ }
288
 
289
+ for(var k=0;k< hours.toString().length;k++)
290
+ {
291
+ if(hours < 10 && hours.toString().length == 1 )
292
+ {
293
+ hours = "0"+hours;
294
+ }
295
+ if(hours > 60)
296
+ {
297
+ hours = 60;
298
+ }
299
+ var res_hour = hours.toString().charAt(k);
300
+ if(hours.toString().length == 1)
301
+ {
302
+ var c=k+1;
303
+ document.getElementById("hours_"+c).innerHTML = res_hour;
304
+ }
305
+ else if(hours.toString().length == 2)
306
+ {
307
+ document.getElementById("hours_"+k).innerHTML = res_hour;
308
+ }
309
+ }
310
+
311
+ for(var m = 0; m < days.toString().length; m++)
312
+ {
313
+ var res_day = days.toString().charAt(m);
314
+ if(days.toString().length == 1)
315
+ {
316
+ var n=m+2;
317
+ document.getElementById("days_"+n).innerHTML = res_day;
318
+ }
319
+ else if(days.toString().length == 2)
320
+ {
321
+ var n=m+1;
322
+ document.getElementById("days_"+n).innerHTML = res_day;
323
+ }
324
+ else if(days.toString().length == 3)
325
+ {
326
+ document.getElementById("days_"+m).innerHTML = res_day;
327
+ }
328
+ }
329
+ setTimeout( function(){
330
+ updateCounter();
331
+ }, 1000 );
332
+ }
333
+ }
334
  <?php
335
  }
336
  }
templates/1/style.css CHANGED
@@ -17,6 +17,14 @@ body
17
  font-weight: normal;
18
  font-style: normal;
19
  }
 
 
 
 
 
 
 
 
20
  p, img, h1, h2, h3, h4, ol, ul, li, a
21
  {
22
  margin: 0;
17
  font-weight: normal;
18
  font-style: normal;
19
  }
20
+ .logo_text
21
+ {
22
+ font-size: 45px;
23
+ }
24
+ .text_logo #header
25
+ {
26
+ padding-top: 30px;
27
+ }
28
  p, img, h1, h2, h3, h4, ol, ul, li, a
29
  {
30
  margin: 0;
templates/2/index.php CHANGED
@@ -10,11 +10,7 @@ if(is_serialized($acx_csma_appearence_array_2 ))
10
  }
11
  $acx_csma_start_date_time=get_option('acx_csma_start_date_time');
12
  $acx_csma_date_time=get_option('acx_csma_date_time');
13
- $acx_csma_current_date_time = date("Y/m/d H:i");
14
- $acx_csma_current_date_time1 = explode(" ",$acx_csma_current_date_time);
15
- $acx_csma_current_date = explode("/",$acx_csma_current_date_time1[0]);
16
- $acx_csma_current_time = explode(":",$acx_csma_current_date_time1[1]);
17
- $acx_csma_timestamp = mktime($acx_csma_current_time[0],$acx_csma_current_time[1],0,$acx_csma_current_date[1],$acx_csma_current_date[2],$acx_csma_current_date[0]);//mktime(hour,minute,second,month,day,year);
18
  ?>
19
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
20
  <html xmlns="http://www.w3.org/1999/xhtml">
@@ -24,72 +20,91 @@ $acx_csma_timestamp = mktime($acx_csma_current_time[0],$acx_csma_current_time[1]
24
  <?php if($acx_csma_meta_title!="")
25
  {
26
  ?>
27
- <title><?php echo $acx_csma_meta_title;?></title>
28
  <?php
29
  }
30
  if($acx_csma_meta_description!="")
31
  {
32
  ?>
33
- <meta name="description" content="<?php echo $acx_csma_meta_description;?>">
34
  <?php
35
  }
36
  if($acx_csma_meta_keywords!="")
37
  {
38
  ?>
39
- <meta name="keywords" content="<?php echo $acx_csma_meta_keywords;?>">
40
  <?php
41
  }
42
  ?>
43
- <link href="<?php echo plugins_url('style.css', __FILE__);?>" rel="stylesheet" type="text/css" />
44
- <link rel="icon" href="<?php echo $acx_csma_favicon;?>" type="image/png">
45
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
46
  </head>
47
- <body style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_bg_color2'];?>">
48
-
49
- <div class="wrapper">
 
 
 
 
 
 
 
 
 
 
 
 
50
  <div class="canvas960">
51
- <div class="inline_block mg_top">
52
- <div class="header"><img src="<?php echo $acx_csma_appearence_array_2['2']['acx_csma_logo2'];?>" alt="Logo"></div><!-- header -->
53
- <div class="inline_block yellow" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_2['2']['acx_csma_inside_bg_color2'];?>;">
 
 
 
 
 
 
 
54
  <div class="inline_block form">
55
- <h2 style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_subtitle_color2'];?>"><span class="inline_main_title" style="font-size:72px; color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_title_color2'];?>"><strong><?php echo $acx_csma_appearence_array_2['2']['acx_csma_title2'];?></strong></span><br> <?php echo $acx_csma_appearence_array_2['2']['acx_csma_subtitle_text2'];?> </h2>
56
- <form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']);?>">
57
- <div id="acx_csma_success" name="acx_csma_success" style="display:none;color:white;" ><?php echo $acx_csma_appearence_array_2['2']['acx_csma_subscribe_success2'];?></div>
58
- <div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none;color:white;" ><?php echo $acx_csma_appearence_array_2['2']['acx_csma_subscribe_invalid2'];?></div>
59
  <div id="acx_csma_error" style="color:white;"></div>
60
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
61
  <input type="hidden" id="acx_csma_email" name="email" placeholder="Get Notified (Email)">
62
- <input type="button" value="NEXT" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit" style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_subscribe_btn_color2'];?>">
63
  </form>
64
  </div><!-- form -->
65
  <div class="inline_block timer_holder">
66
- <h3><?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_title2'];?></h3>
67
  <div class="timer_box days">
68
  <ul>
69
- <li id="days" style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2'];?>">000</li>
70
- <li class="day_text" style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_head_color2'];?>">Days</li>
71
  </ul>
72
  </div><!-- timer_box -->
73
  <div class="timer_box">
74
  <ul>
75
- <li id="hours_0" style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_input_bg_color2'];?>;color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2'];?>">0</li>
76
- <li id="hours_1" style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_input_bg_color2'];?>;color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2'];?>">0</li>
77
  </ul>
78
- <p style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_head_color2'];?>">Hours</p>
79
  </div><!-- timer_box -->
80
  <div class="timer_box">
81
  <ul>
82
- <li id="minutes_0" style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_input_bg_color2'];?>;color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2'];?>">0</li>
83
- <li id="minutes_1" style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_input_bg_color2'];?>;color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2'];?>">0</li>
84
  </ul>
85
- <p style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_head_color2'];?>">Minutes</p>
86
  </div><!-- timer_box -->
87
  <div class="timer_box last_one">
88
  <ul>
89
- <li id="seconds_0" style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_input_bg_color2'];?>;color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2'];?>">0</li>
90
- <li id="seconds_1" style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_input_bg_color2'];?>;color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2'];?>">0</li>
91
  </ul>
92
- <p style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_head_color2'];?>">Seconds</p>
93
  </div><!-- timer_box -->
94
  </div><!-- timer_holder -->
95
 
@@ -102,18 +117,18 @@ if($acx_csma_meta_keywords!="")
102
  </div>
103
  <?php } ?>
104
 
105
- <h4 style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_desc_text_color2'];?>"><?php echo $acx_csma_appearence_array_2['2']['acx_csma_desc_title2'];?></h4>
106
- <p><?php echo base64_decode($acx_csma_appearence_array_2['2']['acx_csma_desc_subtitle2']);?></p>
107
  </div><!-- inline_block -->
108
  </div><!-- inline_block -->
109
  <div class="footer">
110
  <ul>
111
  <p>FOLLOW US ON</p>
112
- <li><a href="<?php echo $acx_csma_appearence_array_2['2']['acx_csma_fb_link2'];?>"><img src="<?php echo plugins_url('images/facebook.png', __FILE__);?>" alt="Logo"></a></li>
113
 
114
- <li><a href="<?php echo $acx_csma_appearence_array_2['2']['acx_csma_twitter_link2'];?>"><img src="<?php echo plugins_url('images/twitter.png', __FILE__);?>" alt="Logo"></a></li>
115
 
116
- <li><a href="<?php echo $acx_csma_appearence_array_2['2']['acx_csma_linkedin_link2'];?>"><img src="<?php echo plugins_url('images/linkedin.png', __FILE__);?>" alt="Logo"></a></li>
117
 
118
  </ul>
119
  </div><!-- footer -->
@@ -163,8 +178,8 @@ function acx_csma_validate_email()
163
  }
164
  else
165
  {
166
- var timestamp = "<?php echo time();?>";
167
- var ip="<?php echo $_SERVER['REMOTE_ADDR'];?>";
168
  var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
169
  var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'&timestamp='+timestamp+'&action=acx_csma_subscribe_email';
170
 
@@ -194,13 +209,15 @@ function acx_csma_validate_email()
194
  <?php
195
  if($acx_csma_timestamp < $acx_csma_date_time)
196
  {?>
197
- var start_date = <?php echo $acx_csma_start_date_time;?>;
198
- var end_date =<?php echo $acx_csma_date_time;?>;
199
- var d1 = new Date();
200
- var current=Math.floor(d1.getTime()/ 1000);
201
  updateCounter();
202
  function updateCounter()
203
  {
 
 
204
  current = current+1;
205
  seconds = (end_date - current);
206
  days = Math.floor(seconds / (60 * 60 * 24));
@@ -214,6 +231,14 @@ function updateCounter()
214
 
215
  for(var i=0;i< seconds.toString().length;i++)
216
  {
 
 
 
 
 
 
 
 
217
  var res_sec = seconds.toString().charAt(i);
218
  if(seconds.toString().length == 1)
219
  {
@@ -227,6 +252,14 @@ function updateCounter()
227
  }
228
  for(var j=0;j< minutes.toString().length;j++)
229
  {
 
 
 
 
 
 
 
 
230
  var res_min = minutes.toString().charAt(j);
231
  if(minutes.toString().length == 1)
232
  {
@@ -241,6 +274,14 @@ function updateCounter()
241
 
242
  for(var k=0;k< hours.toString().length;k++)
243
  {
 
 
 
 
 
 
 
 
244
  var res_hour = hours.toString().charAt(k);
245
  if(hours.toString().length == 1)
246
  {
@@ -257,6 +298,7 @@ function updateCounter()
257
  updateCounter();
258
  }, 1000 );
259
  }
 
260
  <?php
261
  }
262
  ?>
10
  }
11
  $acx_csma_start_date_time=get_option('acx_csma_start_date_time');
12
  $acx_csma_date_time=get_option('acx_csma_date_time');
13
+ $acx_csma_timestamp=current_time('timestamp');
 
 
 
 
14
  ?>
15
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
16
  <html xmlns="http://www.w3.org/1999/xhtml">
20
  <?php if($acx_csma_meta_title!="")
21
  {
22
  ?>
23
+ <title><?php echo $acx_csma_meta_title; ?></title>
24
  <?php
25
  }
26
  if($acx_csma_meta_description!="")
27
  {
28
  ?>
29
+ <meta name="description" content="<?php echo $acx_csma_meta_description; ?>">
30
  <?php
31
  }
32
  if($acx_csma_meta_keywords!="")
33
  {
34
  ?>
35
+ <meta name="keywords" content="<?php echo $acx_csma_meta_keywords; ?>">
36
  <?php
37
  }
38
  ?>
39
+ <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
40
+ <link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>" type="image/png">
41
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
42
  </head>
43
+ <body style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_bg_color2']; ?>">
44
+ <?php
45
+ if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_2['2'])){
46
+ if($acx_csma_appearence_array_2['2']['acx_csma_logo_choice']=="text")
47
+ {
48
+ $new_class="text_logo";
49
+ } else
50
+ {
51
+ $new_class="";
52
+ }}else
53
+ {
54
+ $new_class="";
55
+ }
56
+ ?>
57
+ <div class="wrapper <?php echo $new_class; ?>">
58
  <div class="canvas960">
59
+ <div class="inline_block mg_top"> <div class="header">
60
+ <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_2['2'])) {if($acx_csma_appearence_array_2['2']['acx_csma_logo_choice']=="image" || $acx_csma_appearence_array_2['2']['acx_csma_logo_choice']==""){ ?>
61
+
62
+ <img src="<?php echo esc_url($acx_csma_appearence_array_2['2']['acx_csma_logo2']); ?>" alt="Logo">
63
+
64
+ <?php } else if($acx_csma_appearence_array_2['2']['acx_csma_logo_choice']=="text")
65
+ { ?>
66
+ <div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_logo_text_color2']; ?>"><?php echo $acx_csma_appearence_array_2['2']['acx_csma_logo_text2']; ?></div><!-- logo_text-->
67
+ <?php }} ?></div><!-- header -->
68
+ <div class="inline_block yellow" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_2['2']['acx_csma_inside_bg_color2']; ?>;">
69
  <div class="inline_block form">
70
+ <h2 style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_subtitle_color2']; ?>"><span class="inline_main_title" style="font-size:72px; color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_title_color2']; ?>"><strong><?php echo $acx_csma_appearence_array_2['2']['acx_csma_title2']; ?></strong></span><br> <?php echo $acx_csma_appearence_array_2['2']['acx_csma_subtitle_text2']; ?> </h2>
71
+ <form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']); ?>">
72
+ <div id="acx_csma_success" name="acx_csma_success" style="display:none;color:white;" ><?php echo $acx_csma_appearence_array_2['2']['acx_csma_subscribe_success2']; ?></div>
73
+ <div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none;color:white;" ><?php echo $acx_csma_appearence_array_2['2']['acx_csma_subscribe_invalid2']; ?></div>
74
  <div id="acx_csma_error" style="color:white;"></div>
75
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
76
  <input type="hidden" id="acx_csma_email" name="email" placeholder="Get Notified (Email)">
77
+ <input type="button" value="NEXT" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit" style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_subscribe_btn_color2']; ?>">
78
  </form>
79
  </div><!-- form -->
80
  <div class="inline_block timer_holder">
81
+ <h3><?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_title2']; ?></h3>
82
  <div class="timer_box days">
83
  <ul>
84
+ <li id="days" style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2']; ?>">000</li>
85
+ <li class="day_text" style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_head_color2']; ?>">Days</li>
86
  </ul>
87
  </div><!-- timer_box -->
88
  <div class="timer_box">
89
  <ul>
90
+ <li id="hours_0" style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2']; ?>">0</li>
91
+ <li id="hours_1" style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2']; ?>">0</li>
92
  </ul>
93
+ <p style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_head_color2']; ?>">Hours</p>
94
  </div><!-- timer_box -->
95
  <div class="timer_box">
96
  <ul>
97
+ <li id="minutes_0" style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2']; ?>">0</li>
98
+ <li id="minutes_1" style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2']; ?>">0</li>
99
  </ul>
100
+ <p style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_head_color2']; ?>">Minutes</p>
101
  </div><!-- timer_box -->
102
  <div class="timer_box last_one">
103
  <ul>
104
+ <li id="seconds_0" style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2']; ?>">0</li>
105
+ <li id="seconds_1" style="background:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_input_bg_color2']; ?>;color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_iptext_color2']; ?>">0</li>
106
  </ul>
107
+ <p style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_timer_head_color2']; ?>">Seconds</p>
108
  </div><!-- timer_box -->
109
  </div><!-- timer_holder -->
110
 
117
  </div>
118
  <?php } ?>
119
 
120
+ <h4 style="color:<?php echo $acx_csma_appearence_array_2['2']['acx_csma_desc_text_color2']; ?>"><?php echo $acx_csma_appearence_array_2['2']['acx_csma_desc_title2']; ?></h4>
121
+ <p><?php echo base64_decode($acx_csma_appearence_array_2['2']['acx_csma_desc_subtitle2']); ?></p>
122
  </div><!-- inline_block -->
123
  </div><!-- inline_block -->
124
  <div class="footer">
125
  <ul>
126
  <p>FOLLOW US ON</p>
127
+ <li><a href="<?php echo esc_url($acx_csma_appearence_array_2['2']['acx_csma_fb_link2']); ?>"><img src="<?php echo plugins_url('images/facebook.png', __FILE__); ?>" alt="Logo"></a></li>
128
 
129
+ <li><a href="<?php echo esc_url($acx_csma_appearence_array_2['2']['acx_csma_twitter_link2']); ?>"><img src="<?php echo plugins_url('images/twitter.png', __FILE__); ?>" alt="Logo"></a></li>
130
 
131
+ <li><a href="<?php echo esc_url($acx_csma_appearence_array_2['2']['acx_csma_linkedin_link2']); ?>"><img src="<?php echo plugins_url('images/linkedin.png', __FILE__); ?>" alt="Logo"></a></li>
132
 
133
  </ul>
134
  </div><!-- footer -->
178
  }
179
  else
180
  {
181
+ var timestamp = Math.floor(<?php echo current_time('timestamp'); ?>);
182
+ var ip="<?php echo $_SERVER['REMOTE_ADDR']; ?>";
183
  var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
184
  var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'&timestamp='+timestamp+'&action=acx_csma_subscribe_email';
185
 
209
  <?php
210
  if($acx_csma_timestamp < $acx_csma_date_time)
211
  {?>
212
+ var start_date = <?php echo $acx_csma_start_date_time; ?>;
213
+ var end_date =<?php echo $acx_csma_date_time; ?>;
214
+ var current = Math.floor(<?php echo current_time('timestamp'); ?>);
215
+
216
  updateCounter();
217
  function updateCounter()
218
  {
219
+ if(current < end_date)
220
+ {
221
  current = current+1;
222
  seconds = (end_date - current);
223
  days = Math.floor(seconds / (60 * 60 * 24));
231
 
232
  for(var i=0;i< seconds.toString().length;i++)
233
  {
234
+ if(seconds < 10 && seconds.toString().length == 1 )
235
+ {
236
+ seconds = "0"+seconds;
237
+ }
238
+ if(seconds > 60)
239
+ {
240
+ seconds = 60;
241
+ }
242
  var res_sec = seconds.toString().charAt(i);
243
  if(seconds.toString().length == 1)
244
  {
252
  }
253
  for(var j=0;j< minutes.toString().length;j++)
254
  {
255
+ if(minutes < 10 && minutes.toString().length == 1 )
256
+ {
257
+ minutes = "0"+minutes;
258
+ }
259
+ if(minutes > 60)
260
+ {
261
+ minutes = 60;
262
+ }
263
  var res_min = minutes.toString().charAt(j);
264
  if(minutes.toString().length == 1)
265
  {
274
 
275
  for(var k=0;k< hours.toString().length;k++)
276
  {
277
+ if(hours < 10 && hours.toString().length == 1 )
278
+ {
279
+ hours = "0"+hours;
280
+ }
281
+ if(hours > 60)
282
+ {
283
+ hours = 60;
284
+ }
285
  var res_hour = hours.toString().charAt(k);
286
  if(hours.toString().length == 1)
287
  {
298
  updateCounter();
299
  }, 1000 );
300
  }
301
+ }
302
  <?php
303
  }
304
  ?>
templates/2/style.css CHANGED
@@ -6,6 +6,23 @@ body
6
  color: #000000;
7
  font-size: 12px;
8
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  p, img, h1, h2, h3, h4, ol, ul, li, a
10
  {
11
  margin: 0;
6
  color: #000000;
7
  font-size: 12px;
8
  }
9
+ .text_logo .header {
10
+ background: black none repeat scroll 0 0;
11
+ border-top-left-radius: 5px;
12
+ border-top-right-radius: 5px;
13
+ height: auto;
14
+ margin: 0 auto;
15
+ max-width: 85%;
16
+ padding-bottom: 0;
17
+ padding-top: 0;
18
+ width: 85%;
19
+ }
20
+ .text_logo .header .logo_text {
21
+ font-size: 35px;
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
  {
28
  margin: 0;
templates/3/index.php CHANGED
@@ -10,11 +10,7 @@ if(is_serialized($acx_csma_appearence_array_3 ))
10
  }
11
  $acx_csma_start_date_time=get_option('acx_csma_start_date_time');
12
  $acx_csma_date_time=get_option('acx_csma_date_time');
13
- $acx_csma_current_date_time = date("Y/m/d H:i");
14
- $acx_csma_current_date_time1 = explode(" ",$acx_csma_current_date_time);
15
- $acx_csma_current_date = explode("/",$acx_csma_current_date_time1[0]);
16
- $acx_csma_current_time = explode(":",$acx_csma_current_date_time1[1]);
17
- $acx_csma_timestamp = mktime($acx_csma_current_time[0],$acx_csma_current_time[1],0,$acx_csma_current_date[1],$acx_csma_current_date[2],$acx_csma_current_date[0]);//mktime(hour,minute,second,month,day,year);
18
  ?>
19
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
20
  <html xmlns="http://www.w3.org/1999/xhtml">
@@ -25,50 +21,67 @@ $acx_csma_timestamp = mktime($acx_csma_current_time[0],$acx_csma_current_time[1]
25
  if($acx_csma_meta_title!="")
26
  {
27
  ?>
28
- <title><?php echo $acx_csma_meta_title;?></title>
29
  <?php
30
  }
31
  if($acx_csma_meta_description!="")
32
  {
33
  ?>
34
- <meta name="description" content="<?php echo $acx_csma_meta_description;?>">
35
  <?php
36
  }
37
  if($acx_csma_meta_keywords!="")
38
  {
39
  ?>
40
- <meta name="keywords" content="<?php echo $acx_csma_meta_keywords;?>">
41
  <?php
42
  }
43
  ?>
44
  <style>
45
  .submit:hover
46
  {
47
- color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_btn_hover_color3'];?>;
48
- background:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_btn_hover_bgcolor3'];?>;
49
  }
50
  .submit
51
  {
52
- background:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_btn_color3'];?>;
53
- color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_btn_text_color3'];?>;
54
  }
55
  </style>
56
- <link href="<?php echo plugins_url('style.css', __FILE__);?>" rel="stylesheet" type="text/css" />
57
- <link rel="icon" href="<?php echo $acx_csma_favicon;?>" type="image/png">
58
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
59
  </head>
60
  <body>
61
- <div class="wrapper">
 
 
 
 
 
 
 
 
 
 
 
62
  <div class="canvas960">
63
  <div class="inline_block">
64
  <div class="inline_block form_holder">
65
- <div class="header"><img src="<?php echo $acx_csma_appearence_array_3['3']['acx_csma_logo3'];?>" alt="Logo"></div><!-- header -->
 
 
 
 
 
 
66
  <div class="form">
67
- <h2 style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_title_color3'];?>"><span style="font-size:74px; color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subtitle_color3'];?>"><strong><?php echo $acx_csma_appearence_array_3['3']['acx_csma_title3'];?></strong></span><br><?php echo $acx_csma_appearence_array_3['3']['acx_csma_subtitle_text3'];?></h2>
68
- <h4 style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_title_color3'];?>"><?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_title3'];?></h4>
69
- <form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']);?>">
70
- <div id="acx_csma_success" name="acx_csma_success" style="display:none;color:white;" ><?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_success3'];?></div>
71
- <div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none;color:white;" ><?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_invalid3'];?></div>
72
  <div id="acx_csma_error" style="color:white;"></div>
73
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
74
  <input type="hidden" id="acx_csma_email" name="email" placeholder="Get Notified (Email)"><br/>
@@ -84,7 +97,7 @@ if($acx_csma_meta_keywords!="")
84
  <li>
85
  <?php if($acx_csma_appearence_array_3['3']['acx_csma_fb_link3']!="" || $acx_csma_appearence_array_3['3']['acx_csma_twitter_link3']!="" || $acx_csma_appearence_array_3['3']['acx_csma_linkedin_link3']!="")
86
  { ?>
87
- <p style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_social_link_title_color3'];?>"><?php echo $acx_csma_appearence_array_3['3']['acx_csma_social_link_title3'];?></p>
88
  <?php } ?>
89
  </li>
90
  <?php
@@ -92,19 +105,19 @@ if($acx_csma_meta_keywords!="")
92
  if($acx_csma_appearence_array_3['3']['acx_csma_fb_link3']!="")
93
  {
94
  ?>
95
- <li><a href="<?php echo $acx_csma_appearence_array_3['3']['acx_csma_fb_link3'];?>"><img src="<?php echo plugins_url('images/facebook.png', __FILE__);?>" alt="Logo"></a></li>
96
  <?php
97
  }
98
  if($acx_csma_appearence_array_3['3']['acx_csma_twitter_link3']!="")
99
  {
100
  ?>
101
- <li><a href="<?php echo $acx_csma_appearence_array_3['3']['acx_csma_twitter_link3'];?>"><img src="<?php echo plugins_url('images/twitter.png', __FILE__);?>" alt="Logo"></a></li>
102
  <?php
103
  }
104
  if($acx_csma_appearence_array_3['3']['acx_csma_linkedin_link3']!="")
105
  {
106
  ?>
107
- <li><a href="<?php echo $acx_csma_appearence_array_3['3']['acx_csma_linkedin_link3'];?>"><img src="<?php echo plugins_url('images/linkedin.png', __FILE__);?>" alt="Logo"></a></li>
108
  <?php
109
  }
110
 
@@ -112,32 +125,32 @@ if($acx_csma_meta_keywords!="")
112
 
113
  </ul>
114
  </div><!-- scmi -->
115
- <h3 style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_inside_title_color3'];?>"><?php echo $acx_csma_appearence_array_3['3']['acx_csma_inside_title3'];?></h3>
116
  <div class="timer_box days">
117
  <ul>
118
- <li id="days" style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_iptext_color3'];?>">000 </li><li class="day_text" style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_head_color3'];?>">Days</li>
119
  </ul>
120
  </div><!-- timer_box -->
121
  <div class="timer_box">
122
- <ul style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_iptext_color3'];?>">
123
  <li id="hours_0">0</li>
124
  <li id="hours_1">0</li>
125
  </ul>
126
- <p style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_head_color3'];?>">Hours</p>
127
  </div><!-- timer_box -->
128
  <div class="timer_box">
129
- <ul style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_iptext_color3'];?>">
130
  <li id="minutes_0">0</li>
131
  <li id="minutes_1">0</li>
132
  </ul>
133
- <p style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_head_color3'];?>">Minutes</p>
134
  </div><!-- timer_box -->
135
  <div class="timer_box last_one">
136
- <ul style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_iptext_color3'];?>">
137
  <li id="seconds_0">0</li>
138
  <li id="seconds_1">0</li>
139
  </ul>
140
- <p style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_head_color3'];?>">Seconds</p>
141
  </div><!-- timer_box -->
142
 
143
  <div class="inline_block text_box" style="background: rgb(254, 126, 1) none repeat scroll 0% 0%; box-sizing: border-box; padding: 12px; border-bottom-right-radius: 6px; border-bottom-left-radius: 6px;">
@@ -149,11 +162,11 @@ if($acx_csma_meta_keywords!="")
149
  <?php echo $acx_csma_custom_html_top_temp3; ?>
150
  </div>
151
  <?php } ?>
152
- <h5 style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_desc_text_color3'];?>"><?php echo $acx_csma_appearence_array_3['3']['acx_csma_desc_title3'];?></h5>
153
- <p><?php echo base64_decode($acx_csma_appearence_array_3['3']['acx_csma_desc_subtitle3']);?></p>
154
  </div><!-- inline_block -->
155
 
156
- <div class="footer"> <p style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_footer_color3'];?>"><?php echo $acx_csma_appearence_array_3['3']['acx_csma_footer_text3'];?></p> </div><!-- footer -->
157
 
158
  </div><!-- timer_holder -->
159
  </div><!-- inline_block -->
@@ -177,7 +190,7 @@ function acx_csma_validate_email()
177
  document.getElementById('acx_csma_name_hidden').type = 'hidden';
178
  document.getElementById('acx_csma_email').type = 'email';
179
 
180
- document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_btn_text3'];?>";
181
  acx_csma_form_status=2;
182
  return false;
183
  }
@@ -202,8 +215,8 @@ function acx_csma_validate_email()
202
  }
203
  else
204
  {
205
- var timestamp = "<?php echo time();?>";
206
- var ip="<?php echo $_SERVER['REMOTE_ADDR'];?>";
207
  var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
208
  var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'&timestamp='+timestamp+'&action=acx_csma_subscribe_email';
209
  jQuery.post(acx_csma_ajaxurl, order, function(theResponse)
@@ -231,13 +244,14 @@ function acx_csma_validate_email()
231
  <?php
232
  if($acx_csma_timestamp < $acx_csma_date_time)
233
  {?>
234
- var start_date = <?php echo $acx_csma_start_date_time;?>;
235
- var end_date =<?php echo $acx_csma_date_time;?>;
236
- var d1 = new Date();
237
- var current=Math.floor(d1.getTime()/ 1000);
238
  updateCounter();
239
  function updateCounter()
240
  {
 
 
241
  current = current+1;
242
  seconds = (end_date - current);
243
  days = Math.floor(seconds / (60 * 60 * 24));
@@ -251,6 +265,14 @@ function updateCounter()
251
 
252
  for(var i=0;i< seconds.toString().length;i++)
253
  {
 
 
 
 
 
 
 
 
254
  var res_sec = seconds.toString().charAt(i);
255
  if(seconds.toString().length == 1)
256
  {
@@ -264,6 +286,14 @@ function updateCounter()
264
  }
265
  for(var j=0;j< minutes.toString().length;j++)
266
  {
 
 
 
 
 
 
 
 
267
  var res_min = minutes.toString().charAt(j);
268
  if(minutes.toString().length == 1)
269
  {
@@ -278,6 +308,14 @@ function updateCounter()
278
 
279
  for(var k=0;k< hours.toString().length;k++)
280
  {
 
 
 
 
 
 
 
 
281
  var res_hour = hours.toString().charAt(k);
282
  if(hours.toString().length == 1)
283
  {
@@ -291,11 +329,11 @@ function updateCounter()
291
  }
292
 
293
  document.getElementById("days").innerHTML = days;
294
-
295
  setTimeout( function(){
296
  updateCounter();
297
  }, 1000 );
298
  }
 
299
  <?php }?>
300
  </script>
301
  </body>
10
  }
11
  $acx_csma_start_date_time=get_option('acx_csma_start_date_time');
12
  $acx_csma_date_time=get_option('acx_csma_date_time');
13
+ $acx_csma_timestamp=current_time('timestamp');
 
 
 
 
14
  ?>
15
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
16
  <html xmlns="http://www.w3.org/1999/xhtml">
21
  if($acx_csma_meta_title!="")
22
  {
23
  ?>
24
+ <title><?php echo $acx_csma_meta_title; ?></title>
25
  <?php
26
  }
27
  if($acx_csma_meta_description!="")
28
  {
29
  ?>
30
+ <meta name="description" content="<?php echo $acx_csma_meta_description; ?>">
31
  <?php
32
  }
33
  if($acx_csma_meta_keywords!="")
34
  {
35
  ?>
36
+ <meta name="keywords" content="<?php echo $acx_csma_meta_keywords; ?>">
37
  <?php
38
  }
39
  ?>
40
  <style>
41
  .submit:hover
42
  {
43
+ color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_btn_hover_color3']; ?>;
44
+ background:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_btn_hover_bgcolor3']; ?>;
45
  }
46
  .submit
47
  {
48
+ background:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_btn_color3']; ?>;
49
+ color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_btn_text_color3']; ?>;
50
  }
51
  </style>
52
+ <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
53
+ <link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>" type="image/png">
54
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
55
  </head>
56
  <body>
57
+ <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_3['3'])){if($acx_csma_appearence_array_3['3']['acx_csma_logo_choice']=="text")
58
+ {
59
+ $new_class="text_logo";
60
+ } else
61
+ {
62
+ $new_class="";
63
+ }}else
64
+ {
65
+ $new_class="";
66
+ }
67
+ ?>
68
+ <div class="wrapper <?php echo $new_class; ?>">
69
  <div class="canvas960">
70
  <div class="inline_block">
71
  <div class="inline_block form_holder">
72
+ <div class="header">
73
+ <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_3['3'])){ if($acx_csma_appearence_array_3['3']['acx_csma_logo_choice']=="image" || $acx_csma_appearence_array_3['3']['acx_csma_logo_choice']==""){ ?>
74
+ <img src="<?php echo esc_url($acx_csma_appearence_array_3['3']['acx_csma_logo3']); ?>" alt="Logo">
75
+ <?php } else if($acx_csma_appearence_array_3['3']['acx_csma_logo_choice']=="text"){?>
76
+ <div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_logo_text_color3']; ?>"><?php echo $acx_csma_appearence_array_3['3']['acx_csma_logo_text3']; ?></div>
77
+ <?php } } ?>
78
+ </div><!-- header -->
79
  <div class="form">
80
+ <h2 style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_title_color3']; ?>"><span style="font-size:74px; color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subtitle_color3']; ?>"><strong><?php echo $acx_csma_appearence_array_3['3']['acx_csma_title3']; ?></strong></span><br><?php echo $acx_csma_appearence_array_3['3']['acx_csma_subtitle_text3']; ?></h2>
81
+ <h4 style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_title_color3']; ?>"><?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_title3']; ?></h4>
82
+ <form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']); ?>">
83
+ <div id="acx_csma_success" name="acx_csma_success" style="display:none;color:white;" ><?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_success3']; ?></div>
84
+ <div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none;color:white;" ><?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_invalid3']; ?></div>
85
  <div id="acx_csma_error" style="color:white;"></div>
86
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
87
  <input type="hidden" id="acx_csma_email" name="email" placeholder="Get Notified (Email)"><br/>
97
  <li>
98
  <?php if($acx_csma_appearence_array_3['3']['acx_csma_fb_link3']!="" || $acx_csma_appearence_array_3['3']['acx_csma_twitter_link3']!="" || $acx_csma_appearence_array_3['3']['acx_csma_linkedin_link3']!="")
99
  { ?>
100
+ <p style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_social_link_title_color3']; ?>"><?php echo $acx_csma_appearence_array_3['3']['acx_csma_social_link_title3']; ?></p>
101
  <?php } ?>
102
  </li>
103
  <?php
105
  if($acx_csma_appearence_array_3['3']['acx_csma_fb_link3']!="")
106
  {
107
  ?>
108
+ <li><a href="<?php echo esc_url($acx_csma_appearence_array_3['3']['acx_csma_fb_link3']); ?>"><img src="<?php echo plugins_url('images/facebook.png', __FILE__); ?>" alt="Logo"></a></li>
109
  <?php
110
  }
111
  if($acx_csma_appearence_array_3['3']['acx_csma_twitter_link3']!="")
112
  {
113
  ?>
114
+ <li><a href="<?php echo esc_url($acx_csma_appearence_array_3['3']['acx_csma_twitter_link3']); ?>"><img src="<?php echo plugins_url('images/twitter.png', __FILE__); ?>" alt="Logo"></a></li>
115
  <?php
116
  }
117
  if($acx_csma_appearence_array_3['3']['acx_csma_linkedin_link3']!="")
118
  {
119
  ?>
120
+ <li><a href="<?php echo esc_url($acx_csma_appearence_array_3['3']['acx_csma_linkedin_link3']); ?>"><img src="<?php echo plugins_url('images/linkedin.png', __FILE__); ?>" alt="Logo"></a></li>
121
  <?php
122
  }
123
 
125
 
126
  </ul>
127
  </div><!-- scmi -->
128
+ <h3 style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_inside_title_color3']; ?>"><?php echo $acx_csma_appearence_array_3['3']['acx_csma_inside_title3']; ?></h3>
129
  <div class="timer_box days">
130
  <ul>
131
+ <li id="days" style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_iptext_color3']; ?>">000 </li><li class="day_text" style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_head_color3']; ?>">Days</li>
132
  </ul>
133
  </div><!-- timer_box -->
134
  <div class="timer_box">
135
+ <ul style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_iptext_color3']; ?>">
136
  <li id="hours_0">0</li>
137
  <li id="hours_1">0</li>
138
  </ul>
139
+ <p style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_head_color3']; ?>">Hours</p>
140
  </div><!-- timer_box -->
141
  <div class="timer_box">
142
+ <ul style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_iptext_color3']; ?>">
143
  <li id="minutes_0">0</li>
144
  <li id="minutes_1">0</li>
145
  </ul>
146
+ <p style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_head_color3']; ?>">Minutes</p>
147
  </div><!-- timer_box -->
148
  <div class="timer_box last_one">
149
+ <ul style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_iptext_color3']; ?>">
150
  <li id="seconds_0">0</li>
151
  <li id="seconds_1">0</li>
152
  </ul>
153
+ <p style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_timer_head_color3']; ?>">Seconds</p>
154
  </div><!-- timer_box -->
155
 
156
  <div class="inline_block text_box" style="background: rgb(254, 126, 1) none repeat scroll 0% 0%; box-sizing: border-box; padding: 12px; border-bottom-right-radius: 6px; border-bottom-left-radius: 6px;">
162
  <?php echo $acx_csma_custom_html_top_temp3; ?>
163
  </div>
164
  <?php } ?>
165
+ <h5 style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_desc_text_color3']; ?>"><?php echo $acx_csma_appearence_array_3['3']['acx_csma_desc_title3']; ?></h5>
166
+ <p><?php echo base64_decode($acx_csma_appearence_array_3['3']['acx_csma_desc_subtitle3']); ?></p>
167
  </div><!-- inline_block -->
168
 
169
+ <div class="footer"> <p style="color:<?php echo $acx_csma_appearence_array_3['3']['acx_csma_footer_color3']; ?>"><?php echo $acx_csma_appearence_array_3['3']['acx_csma_footer_text3']; ?></p> </div><!-- footer -->
170
 
171
  </div><!-- timer_holder -->
172
  </div><!-- inline_block -->
190
  document.getElementById('acx_csma_name_hidden').type = 'hidden';
191
  document.getElementById('acx_csma_email').type = 'email';
192
 
193
+ document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_appearence_array_3['3']['acx_csma_subscribe_btn_text3']; ?>";
194
  acx_csma_form_status=2;
195
  return false;
196
  }
215
  }
216
  else
217
  {
218
+ var timestamp = Math.floor(<?php echo current_time('timestamp'); ?>);
219
+ var ip="<?php echo $_SERVER['REMOTE_ADDR']; ?>";
220
  var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
221
  var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'&timestamp='+timestamp+'&action=acx_csma_subscribe_email';
222
  jQuery.post(acx_csma_ajaxurl, order, function(theResponse)
244
  <?php
245
  if($acx_csma_timestamp < $acx_csma_date_time)
246
  {?>
247
+ var start_date = <?php echo $acx_csma_start_date_time; ?>;
248
+ var end_date =<?php echo $acx_csma_date_time; ?>;
249
+ var current = Math.floor(<?php echo current_time('timestamp'); ?>);
 
250
  updateCounter();
251
  function updateCounter()
252
  {
253
+ if(current < end_date)
254
+ {
255
  current = current+1;
256
  seconds = (end_date - current);
257
  days = Math.floor(seconds / (60 * 60 * 24));
265
 
266
  for(var i=0;i< seconds.toString().length;i++)
267
  {
268
+ if(seconds < 10 && seconds.toString().length == 1 )
269
+ {
270
+ seconds = "0"+seconds;
271
+ }
272
+ if(seconds > 60)
273
+ {
274
+ seconds = 60;
275
+ }
276
  var res_sec = seconds.toString().charAt(i);
277
  if(seconds.toString().length == 1)
278
  {
286
  }
287
  for(var j=0;j< minutes.toString().length;j++)
288
  {
289
+ if(minutes < 10 && minutes.toString().length == 1 )
290
+ {
291
+ minutes = "0"+minutes;
292
+ }
293
+ if(minutes > 60)
294
+ {
295
+ minutes = 60;
296
+ }
297
  var res_min = minutes.toString().charAt(j);
298
  if(minutes.toString().length == 1)
299
  {
308
 
309
  for(var k=0;k< hours.toString().length;k++)
310
  {
311
+ if(hours < 10 && hours.toString().length == 1 )
312
+ {
313
+ hours = "0"+hours;
314
+ }
315
+ if(hours > 60)
316
+ {
317
+ hours = 60;
318
+ }
319
  var res_hour = hours.toString().charAt(k);
320
  if(hours.toString().length == 1)
321
  {
329
  }
330
 
331
  document.getElementById("days").innerHTML = days;
 
332
  setTimeout( function(){
333
  updateCounter();
334
  }, 1000 );
335
  }
336
+ }
337
  <?php }?>
338
  </script>
339
  </body>
templates/3/style.css CHANGED
@@ -7,6 +7,13 @@ body
7
  font-size: 12px;
8
  background: none repeat scroll 0 0 #ececec;
9
  }
 
 
 
 
 
 
 
10
  p, img, h1, h2, h3, h4, h5, ol, ul, li, a
11
  {
12
  margin: 0;
7
  font-size: 12px;
8
  background: none repeat scroll 0 0 #ececec;
9
  }
10
+ .text_logo .logo_text {
11
+ float: left;
12
+ font-size: 30px;
13
+ margin-top: 71px;
14
+ max-height: 100%;
15
+ width: 100%;
16
+ }
17
  p, img, h1, h2, h3, h4, h5, ol, ul, li, a
18
  {
19
  margin: 0;
templates/4/images/animate.min.css ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ @charset "UTF-8";/*!
2
+ Animate.css - http://daneden.me/animate
3
+ Licensed under the MIT license - http://opensource.org/licenses/MIT
4
+
5
+ Copyright (c) 2015 Daniel Eden
6
+ */.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.hinge{-webkit-animation-duration:2s;animation-duration:2s}.animated.bounceIn,.animated.bounceOut,.animated.flipOutX,.animated.flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s}@-webkit-keyframes bounce{0%,100%,20%,53%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}@keyframes bounce{0%,100%,20%,53%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,100%,50%{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,100%,50%{opacity:1}25%,75%{opacity:0}}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse}@-webkit-keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(0.75,1.25,1);transform:scale3d(0.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(0.75,1.25,1);transform:scale3d(0.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shake{0%,100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shake{0%,100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}100%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}100%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}}.swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}100%{-webkit-transform:none;transform:none}}@keyframes wobble{0%{-webkit-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}100%{-webkit-transform:none;transform:none}}.wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes bounceIn{0%,100%,20%,40%,60%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}100%{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes bounceIn{0%,100%,20%,40%,60%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}100%{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.bounceIn{-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0);transform:translate3d(0,-3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0);transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}100%{-webkit-transform:none;transform:none}}@keyframes bounceInDown{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0);transform:translate3d(0,-3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0);transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}100%{-webkit-transform:none;transform:none}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}100%{-webkit-transform:none;transform:none}}@keyframes bounceInLeft{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}100%{-webkit-transform:none;transform:none}}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0);transform:translate3d(3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0);transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}100%{-webkit-transform:none;transform:none}}@keyframes bounceInRight{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0);transform:translate3d(3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0);transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}100%{-webkit-transform:none;transform:none}}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes bounceInUp{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}100%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}100%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.bounceOut{-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}100%{opacity:1;-webkit-transform:none;transform:none}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-360deg);transform:perspective(400px) rotate3d(0,1,0,-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95);transform:perspective(400px) scale3d(.95,.95,.95);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{-webkit-transform:perspective(400px);transform:perspective(400px);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-360deg);transform:perspective(400px) rotate3d(0,1,0,-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95);transform:perspective(400px) scale3d(.95,.95,.95);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{-webkit-transform:perspective(400px);transform:perspective(400px);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animated.flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}.flipOutX{-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}.flipOutY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedIn{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skewX(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg);opacity:1}100%{-webkit-transform:none;transform:none;opacity:1}}@keyframes lightSpeedIn{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skewX(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg);opacity:1}100%{-webkit-transform:none;transform:none;opacity:1}}.lightSpeedIn{-webkit-animation-name:lightSpeedIn;animation-name:lightSpeedIn;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOut{0%{opacity:1}100%{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg);opacity:0}}@keyframes lightSpeedOut{0%{opacity:1}100%{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg);opacity:0}}.lightSpeedOut{-webkit-animation-name:lightSpeedOut;animation-name:lightSpeedOut;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}100%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateIn{0%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}100%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:none;transform:none;opacity:1}}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight}@-webkit-keyframes rotateOut{0%{-webkit-transform-origin:center;transform-origin:center;opacity:1}100%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOut{0%{-webkit-transform-origin:center;transform-origin:center;opacity:1}100%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut}@-webkit-keyframes rotateOutDownLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft}@-webkit-keyframes rotateOutDownRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight}@-webkit-keyframes rotateOutUpLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft}@-webkit-keyframes rotateOutUpRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutUpRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight}@-webkit-keyframes hinge{0%{-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}100%{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}100%{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.hinge{-webkit-animation-name:hinge;animation-name:hinge}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}100%{opacity:1;-webkit-transform:none;transform:none}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes rollOut{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}100%{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}100%{opacity:0}}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0);-webkit-transform-origin:left center;transform-origin:left center}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0);-webkit-transform-origin:left center;transform-origin:left center}}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0);-webkit-transform-origin:right center;transform-origin:right center}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0);-webkit-transform-origin:right center;transform-origin:right center}}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}100%{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}
templates/4/images/timer_bg_plus.png ADDED
Binary file
templates/4/index.php CHANGED
@@ -10,12 +10,7 @@ if(is_serialized($acx_csma_appearence_array_4 ))
10
  }
11
  $acx_csma_start_date_time=get_option('acx_csma_start_date_time');
12
  $acx_csma_date_time=get_option('acx_csma_date_time');
13
- $acx_csma_current_date_time = date("Y/m/d H:i");
14
- $acx_csma_current_date_time1 = explode(" ",$acx_csma_current_date_time);
15
- $acx_csma_current_date = explode("/",$acx_csma_current_date_time1[0]);
16
- $acx_csma_current_time = explode(":",$acx_csma_current_date_time1[1]);
17
- $acx_csma_timestamp = mktime($acx_csma_current_time[0],$acx_csma_current_time[1],0,$acx_csma_current_date[1],$acx_csma_current_date[2],$acx_csma_current_date[0]);//mktime(hour,minute,second,month,day,year);
18
-
19
  ?>
20
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
21
  <html xmlns="http://www.w3.org/1999/xhtml">
@@ -26,34 +21,52 @@ $acx_csma_timestamp = mktime($acx_csma_current_time[0],$acx_csma_current_time[1]
26
  if($acx_csma_meta_title!="")
27
  {
28
  ?>
29
- <title><?php echo $acx_csma_meta_title;?></title>
30
  <?php
31
  }
32
  if($acx_csma_meta_description!="")
33
  {
34
  ?>
35
- <meta name="description" content="<?php echo $acx_csma_meta_description;?>">
36
  <?php
37
  }
38
  if($acx_csma_meta_keywords!="")
39
  {
40
  ?>
41
- <meta name="keywords" content="<?php echo $acx_csma_meta_keywords;?>">
42
  <?php
43
  }
44
  ?>
45
- <link href="<?php echo plugins_url('style.css', __FILE__);?>" rel="stylesheet" type="text/css" />
46
- <link rel="icon" href="<?php echo $acx_csma_favicon;?>" type="image/png">
47
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
 
48
  </head>
49
 
50
- <body style="background:url('<?php echo $acx_csma_appearence_array_4['4']['acx_csma_background_image4']; ?>')no-repeat fixed center center transparent; background-size:cover; ">
51
-
52
- <div class="wrapper">
 
 
 
 
 
 
 
 
 
 
53
  <div class="canvas1000">
54
- <div id="header"><img src="<?php echo $acx_csma_appearence_array_4['4']['acx_csma_logo4'];?>" alt="Logo"></div><!-- header -->
55
- <div class="inline_block mg_top" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_4['4']['acx_csma_inside_bg_color4'];?>">
56
- <h2 style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_title_color4'];?>"><?php echo $acx_csma_appearence_array_4['4']['acx_csma_title4'];?></h2>
 
 
 
 
 
 
 
57
 
58
  <?php
59
  $acx_csma_custom_html_top_temp4 = base64_decode($acx_csma_appearence_array_4['4']['acx_csma_custom_html_top_temp4']);
@@ -69,44 +82,44 @@ if($acx_csma_meta_keywords!="")
69
  <div class="timer_box days">
70
  <p>Weeks</p>
71
  <ul>
72
- <li id="weeks_0" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4'];?>">0</li>
73
- <li id="weeks_1" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4'];?>">0</li>
74
  </ul>
75
  </div><!-- timer_box -->
76
  <div class="timer_box days">
77
  <p>Days</p>
78
  <ul>
79
- <li id="days_0" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4'];?>">0</li>
80
- <li id="days_1" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4'];?>">0</li>
81
- <li id="days_2" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4'];?>">0</li>
82
  </ul>
83
  </div><!-- timer_box -->
84
  <div class="timer_box">
85
  <p>Hours</p>
86
  <ul>
87
- <li id="hours_0" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4'];?>">0</li>
88
- <li id="hours_1" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4'];?>">0</li>
89
  </ul>
90
  </div><!-- timer_box -->
91
  <div class="timer_box days">
92
  <p>Minutes</p>
93
  <ul>
94
- <li id="minutes_0" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4'];?>">0</li>
95
- <li id="minutes_1" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4'];?>">0</li>
96
  </ul>
97
  </div><!-- timer_box -->
98
  <div class="timer_box last_one">
99
  <p>Seconds</p>
100
  <ul>
101
- <li id="seconds_0" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4'];?>">0</li>
102
- <li id="seconds_1" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4'];?>">0</li>
103
  </ul>
104
  </div><!-- timer_box -->
105
  </div><!-- timer_holder -->
106
  <?php }?>
107
  <?php if($acx_csma_appearence_array_4['4']['acx_csma_show_progressbar4']== 1)
108
  {?>
109
- <div class="pre_loader" style="border: 1px solid <?php echo $acx_csma_appearence_array_4['4']['acx_csma_progress_bar_color4'];?>">
110
  <div class="pre_loader_inside" id="pre_loader_inside" style="background:green;position:absolute;top: 0; left: 0; width:0%; height:inherit;">
111
  </div><!-- pre_loader_inside -->
112
  <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 -->
@@ -128,19 +141,19 @@ if($acx_csma_meta_keywords!="")
128
  <?php if($acx_csma_appearence_array_4['4']['acx_csma_fb_link4']!="")
129
  {
130
  ?>
131
- <li><a href="<?php echo $acx_csma_appearence_array_4['4']['acx_csma_fb_link4'];?>"><img src="<?php echo plugins_url('images/facebook.png', __FILE__);?>" alt="Logo"></a></li>
132
  <?php
133
  }
134
  if($acx_csma_appearence_array_4['4']['acx_csma_twitter_link4']!="")
135
  {
136
  ?>
137
- <li><a href="<?php echo $acx_csma_appearence_array_4['4']['acx_csma_twitter_link4'];?>"><img src="<?php echo plugins_url('images/twitter.png', __FILE__);?>" alt="Logo"></a></li>
138
  <?php
139
  }
140
  if($acx_csma_appearence_array_4['4']['acx_csma_linkedin_link4']!="")
141
  {
142
  ?>
143
- <li><a href="<?php echo $acx_csma_appearence_array_4['4']['acx_csma_linkedin_link4'];?>"><img src="<?php echo plugins_url('images/linkedin.png', __FILE__);?>" alt="Logo"></a></li>
144
  <?php
145
  }?>
146
  </ul>
@@ -155,49 +168,83 @@ if($acx_csma_appearence_array_4['4']['acx_csma_show_progressbar4']==1)
155
  {
156
  if($acx_csma_timestamp < $acx_csma_date_time)
157
  {?>
158
- var startTime = <?php echo $acx_csma_start_date_time;?>;
159
-
160
- var maxTime = <?php echo $acx_csma_date_time;?>;
161
-
162
- var timeoutVal = Math.floor(maxTime/100000);
163
 
164
- showProgressUpdate();
165
  function updateProgress(percentage) {
166
 
167
  jQuery('#pre_loader_inside').css("width", percentage + "%");
168
  jQuery('#pre_loader_text').text(percentage + "%");
169
- }
170
- function showProgressUpdate() {
171
- var d1 = new Date();
172
- var current=Math.floor(d1.getTime()/ 1000);
173
- var perc = Math.round(((current-startTime) / (maxTime-startTime)) * 100);
174
-
175
- if (perc <= 100) {
176
-
177
- updateProgress(perc);
178
- setTimeout(showProgressUpdate, timeoutVal);
179
- }
180
- }
181
  <?php }
182
  }
183
  if($acx_csma_appearence_array_4['4']['acx_csma_show_timer4']==1)
184
  {
185
  if($acx_csma_timestamp < $acx_csma_date_time)
186
  {?>
187
- var start_date = <?php echo $acx_csma_start_date_time;?>;
188
- var end_date =<?php echo $acx_csma_date_time;?>;
189
- var d1 = new Date();
190
- var current=Math.floor(d1.getTime()/ 1000);
191
  updateCounter();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
  function updateCounter()
193
  {
 
 
 
 
194
  current = current+1;
195
  seconds = (end_date - current);
196
 
197
  weeks=Math.floor(seconds / (60 *60 * 24*7));
198
  seconds -= weeks * 60 * 60 * 24* 7;
199
 
200
- days = Math.floor(seconds / (60 * 60 * 24));
201
  seconds -= days * 60 * 60 * 24;
202
 
203
  hours = Math.floor(seconds / (60 * 60));
@@ -206,82 +253,16 @@ function updateCounter()
206
  minutes = Math.floor(seconds / 60);
207
  seconds -= minutes * 60;
208
 
209
- for(var k=0;k< seconds.toString().length;k++)
210
- {
211
- var res_sec = seconds.toString().charAt(k);
212
- if(seconds.toString().length == 1)
213
- {
214
- a=k+1;
215
- document.getElementById("seconds_"+a).innerHTML = res_sec;
216
- }
217
- else if(seconds.toString().length == 2)
218
- {
219
- document.getElementById("seconds_"+k).innerHTML = res_sec;
220
- }
221
- }
222
-
223
- for(var i=0;i< minutes.toString().length;i++)
224
- {
225
- var res_min = minutes.toString().charAt(i);
226
- if(minutes.toString().length == 1)
227
- {
228
- b=i+1;
229
- document.getElementById("minutes_"+b).innerHTML = res_min;
230
- }
231
- else if(minutes.toString().length == 2)
232
- {
233
- document.getElementById("minutes_"+i).innerHTML = res_min;
234
- }
235
- }
236
 
237
- for(var j=0;j< hours.toString().length;j++)
238
- {
239
- var res_hour = hours.toString().charAt(j);
240
- if(hours.toString().length == 1)
241
- {
242
- c=j+1;
243
- document.getElementById("hours_"+c).innerHTML = res_hour;
244
- }
245
- else if(hours.toString().length == 2)
246
- {
247
- document.getElementById("hours_"+j).innerHTML = res_hour;
248
- }
249
- }
250
-
251
- for(var l=0;l< days.toString().length;l++)
252
- {
253
- var res_day = days.toString().charAt(l);
254
- if(days.toString().length == 1)
255
- {
256
- d=l+2;
257
- document.getElementById("days_"+d).innerHTML = res_day;
258
- }
259
- else if(days.toString().length == 2)
260
- {
261
- d=l+1;
262
- document.getElementById("days_"+d).innerHTML = res_day;
263
- }
264
- else if(days.toString().length == 3)
265
- {
266
- document.getElementById("days_"+l).innerHTML = res_day;
267
- }
268
- }
269
- for(var m=0;m< weeks.toString().length;m++)
270
- {
271
- var res_week = weeks.toString().charAt(m);
272
- if(weeks.toString().length == 1)
273
- {
274
- n=m+1;
275
- document.getElementById("weeks_"+n).innerHTML = res_week;
276
- }
277
- else if(weeks.toString().length == 2)
278
- {
279
- document.getElementById("weeks_"+m).innerHTML = res_week;
280
- }
281
- }
282
  setTimeout( function(){
283
  updateCounter();
284
  }, 1000 );
 
285
  }
286
  <?php }
287
 
10
  }
11
  $acx_csma_start_date_time=get_option('acx_csma_start_date_time');
12
  $acx_csma_date_time=get_option('acx_csma_date_time');
13
+ $acx_csma_timestamp=current_time('timestamp');
 
 
 
 
 
14
  ?>
15
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
16
  <html xmlns="http://www.w3.org/1999/xhtml">
21
  if($acx_csma_meta_title!="")
22
  {
23
  ?>
24
+ <title><?php echo $acx_csma_meta_title; ?></title>
25
  <?php
26
  }
27
  if($acx_csma_meta_description!="")
28
  {
29
  ?>
30
+ <meta name="description" content="<?php echo $acx_csma_meta_description; ?>">
31
  <?php
32
  }
33
  if($acx_csma_meta_keywords!="")
34
  {
35
  ?>
36
+ <meta name="keywords" content="<?php echo $acx_csma_meta_keywords; ?>">
37
  <?php
38
  }
39
  ?>
40
+ <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
41
+ <link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>" type="image/png">
42
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
43
+ <link href="<?php echo plugins_url('images/animate.min.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
44
  </head>
45
 
46
+ <body style="background:url('<?php echo esc_url($acx_csma_appearence_array_4['4']['acx_csma_background_image4']); ?>')no-repeat fixed center center transparent; background-size:cover; ">
47
+ <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_4['4'])){if($acx_csma_appearence_array_4['4']['acx_csma_logo_choice']=="text")
48
+ {
49
+ $new_class="text_logo";
50
+ } else
51
+ {
52
+ $new_class="";
53
+ }}else
54
+ {
55
+ $new_class="";
56
+ }
57
+ ?>
58
+ <div class="wrapper <?php echo $new_class; ?>">
59
  <div class="canvas1000">
60
+ <div id="header">
61
+
62
+ <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_4['4'])){ if($acx_csma_appearence_array_4['4']['acx_csma_logo_choice']=="image" || $acx_csma_appearence_array_4['4']['acx_csma_logo_choice']==""){ ?>
63
+ <img src="<?php echo esc_url($acx_csma_appearence_array_4['4']['acx_csma_logo4']); ?>" alt="Logo">
64
+ <?php } else if($acx_csma_appearence_array_4['4']['acx_csma_logo_choice']=="text"){?>
65
+ <div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_logo_text_color4']; ?>"><?php echo $acx_csma_appearence_array_4['4']['acx_csma_logo_text4']; ?></div>
66
+ <?php } } ?>
67
+ </div><!-- header -->
68
+ <div class="inline_block mg_top" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_4['4']['acx_csma_inside_bg_color4']; ?>">
69
+ <h2 style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_title_color4']; ?>"><?php echo $acx_csma_appearence_array_4['4']['acx_csma_title4']; ?></h2>
70
 
71
  <?php
72
  $acx_csma_custom_html_top_temp4 = base64_decode($acx_csma_appearence_array_4['4']['acx_csma_custom_html_top_temp4']);
82
  <div class="timer_box days">
83
  <p>Weeks</p>
84
  <ul>
85
+ <li id="weeks_0" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
86
+ <li id="weeks_1" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
87
  </ul>
88
  </div><!-- timer_box -->
89
  <div class="timer_box days">
90
  <p>Days</p>
91
  <ul>
92
+ <li id="days_0" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
93
+ <!-- li id="days_1" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4']; ?>">0</li>
94
+ <li id="days_2" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4']; ?>">0</li -->
95
  </ul>
96
  </div><!-- timer_box -->
97
  <div class="timer_box">
98
  <p>Hours</p>
99
  <ul>
100
+ <li id="hours_0" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
101
+ <li id="hours_1" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
102
  </ul>
103
  </div><!-- timer_box -->
104
  <div class="timer_box days">
105
  <p>Minutes</p>
106
  <ul>
107
+ <li id="minutes_0" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
108
+ <li id="minutes_1" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
109
  </ul>
110
  </div><!-- timer_box -->
111
  <div class="timer_box last_one">
112
  <p>Seconds</p>
113
  <ul>
114
+ <li id="seconds_0" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
115
+ <li id="seconds_1" style="color:<?php echo $acx_csma_appearence_array_4['4']['acx_csma_timer_iptext_color4']; ?>"><span style="display:block;" class="animated">0</span></li>
116
  </ul>
117
  </div><!-- timer_box -->
118
  </div><!-- timer_holder -->
119
  <?php }?>
120
  <?php if($acx_csma_appearence_array_4['4']['acx_csma_show_progressbar4']== 1)
121
  {?>
122
+ <div class="pre_loader" style="border: 1px solid <?php echo $acx_csma_appearence_array_4['4']['acx_csma_progress_bar_color4']; ?>">
123
  <div class="pre_loader_inside" id="pre_loader_inside" style="background:green;position:absolute;top: 0; left: 0; width:0%; height:inherit;">
124
  </div><!-- pre_loader_inside -->
125
  <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 -->
141
  <?php if($acx_csma_appearence_array_4['4']['acx_csma_fb_link4']!="")
142
  {
143
  ?>
144
+ <li><a href="<?php echo esc_url($acx_csma_appearence_array_4['4']['acx_csma_fb_link4']); ?>"><img src="<?php echo plugins_url('images/facebook.png', __FILE__); ?>" alt="Logo"></a></li>
145
  <?php
146
  }
147
  if($acx_csma_appearence_array_4['4']['acx_csma_twitter_link4']!="")
148
  {
149
  ?>
150
+ <li><a href="<?php echo esc_url($acx_csma_appearence_array_4['4']['acx_csma_twitter_link4']); ?>"><img src="<?php echo plugins_url('images/twitter.png', __FILE__); ?>" alt="Logo"></a></li>
151
  <?php
152
  }
153
  if($acx_csma_appearence_array_4['4']['acx_csma_linkedin_link4']!="")
154
  {
155
  ?>
156
+ <li><a href="<?php echo esc_url($acx_csma_appearence_array_4['4']['acx_csma_linkedin_link4']); ?>"><img src="<?php echo plugins_url('images/linkedin.png', __FILE__); ?>" alt="Logo"></a></li>
157
  <?php
158
  }?>
159
  </ul>
168
  {
169
  if($acx_csma_timestamp < $acx_csma_date_time)
170
  {?>
171
+ var current_spu = Math.floor(<?php echo current_time('timestamp'); ?>);
172
+ var startTime=<?php echo $acx_csma_start_date_time; ?>;
173
+ var maxTime =<?php echo $acx_csma_date_time; ?>;
 
 
174
 
175
+ showProgressUpdate();
176
  function updateProgress(percentage) {
177
 
178
  jQuery('#pre_loader_inside').css("width", percentage + "%");
179
  jQuery('#pre_loader_text').text(percentage + "%");
180
+ }
181
+
182
+ function showProgressUpdate() {
183
+ current_spu = (current_spu+1);
184
+ var perc = Math.round(((current_spu-startTime) / (maxTime-startTime)) * 100);
185
+
186
+ if (perc <= 100) {
187
+
188
+ updateProgress(perc);
189
+ setTimeout(showProgressUpdate, 1000);
190
+ }
191
+ }
192
  <?php }
193
  }
194
  if($acx_csma_appearence_array_4['4']['acx_csma_show_timer4']==1)
195
  {
196
  if($acx_csma_timestamp < $acx_csma_date_time)
197
  {?>
198
+ var start_date = <?php echo $acx_csma_start_date_time; ?>;
199
+ var end_date =<?php echo $acx_csma_date_time; ?>;
200
+ var current = Math.floor(<?php echo current_time('timestamp'); ?>);
 
201
  updateCounter();
202
+ function digit_updater(element,value,maximum_value)
203
+ {
204
+ if(value < 10 && value.toString().length == 1 && element != "days")
205
+ {
206
+ value = "0"+value;
207
+ }
208
+ if(value > maximum_value)
209
+ {
210
+ value = maximum_value;
211
+ }
212
+
213
+ for(var i=0;i < value.toString().length;i++)
214
+ {
215
+ var res_sec = value.toString().charAt(i);
216
+
217
+ jQuery("#"+element+"_"+i+" span").removeClass(animate_class);
218
+
219
+ if(jQuery("#"+element+"_"+i+" span").text() != res_sec)
220
+ {
221
+ jQuery("#"+element+"_"+i+" span").hide();
222
+ jQuery("#"+element+"_"+i+" span").addClass(animate_class);
223
+ jQuery("#"+element+"_"+i+" span").show();
224
+ }
225
+ if(value >= maximum_value && i == (value.toString().length-1))
226
+ {
227
+ jQuery("#"+element+"_"+i+" span").text(res_sec).parent().addClass("plus");
228
+ } else
229
+ {
230
+ jQuery("#"+element+"_"+i+" span").text(res_sec);
231
+ jQuery("#"+element+"_"+i+" span").text(res_sec).parent().removeClass("plus");
232
+ }
233
+ }
234
+ } //-----------------------------------------------------------------------
235
  function updateCounter()
236
  {
237
+
238
+ if(current < end_date)
239
+ {
240
+ animate_class = "flipInX";
241
  current = current+1;
242
  seconds = (end_date - current);
243
 
244
  weeks=Math.floor(seconds / (60 *60 * 24*7));
245
  seconds -= weeks * 60 * 60 * 24* 7;
246
 
247
+ days = Math.floor(seconds / (60 * 60 * 24));
248
  seconds -= days * 60 * 60 * 24;
249
 
250
  hours = Math.floor(seconds / (60 * 60));
253
  minutes = Math.floor(seconds / 60);
254
  seconds -= minutes * 60;
255
 
256
+ digit_updater("seconds",seconds,60);
257
+ digit_updater("minutes",minutes,60);
258
+ digit_updater("hours",hours,60);
259
+ digit_updater("days",days,7);
260
+ digit_updater("weeks",weeks,99);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
261
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
262
  setTimeout( function(){
263
  updateCounter();
264
  }, 1000 );
265
+ }
266
  }
267
  <?php }
268
 
templates/4/style.css CHANGED
@@ -6,6 +6,15 @@ body
6
  color: #717171;
7
  font-size: 14px;
8
  }
 
 
 
 
 
 
 
 
 
9
  p, img, h2, ol, ul, li, a
10
  {
11
  margin: 0;
@@ -38,7 +47,7 @@ h2
38
  }
39
  #header
40
  {
41
- height: 139px;
42
  }
43
  .inline_block
44
  {
@@ -54,10 +63,11 @@ height:auto;
54
  border-radius: 20px;
55
  margin: 40px 0;
56
  }
 
57
  .timer_holder
58
  {
59
- padding: 50px 8% 70px;
60
- width: 84%;
61
  }
62
  .timer_box
63
  {
@@ -70,6 +80,10 @@ height:auto;
70
  margin: 0 0 20px;
71
  text-transform: uppercase;
72
  }
 
 
 
 
73
  .timer_box ul li
74
  {
75
  background: url("images/timer_bg.png") repeat scroll 0 0 transparent;
6
  color: #717171;
7
  font-size: 14px;
8
  }
9
+ .text_logo #header .logo_text {
10
+
11
+ font-size: 44px;
12
+ padding-top: 15px;
13
+ text-align: center;
14
+ }
15
+ .text_logo .mg_top {
16
+ margin-top: 15px;
17
+ }
18
  p, img, h2, ol, ul, li, a
19
  {
20
  margin: 0;
47
  }
48
  #header
49
  {
50
+ height: auto;
51
  }
52
  .inline_block
53
  {
63
  border-radius: 20px;
64
  margin: 40px 0;
65
  }
66
+
67
  .timer_holder
68
  {
69
+ padding: 50px 14% 70px;
70
+ width: 72%;
71
  }
72
  .timer_box
73
  {
80
  margin: 0 0 20px;
81
  text-transform: uppercase;
82
  }
83
+ .timer_box ul li.plus
84
+ {
85
+ background: url("images/timer_bg_plus.png") repeat scroll 0 0 transparent;
86
+ }
87
  .timer_box ul li
88
  {
89
  background: url("images/timer_bg.png") repeat scroll 0 0 transparent;
templates/5/index.php CHANGED
@@ -10,11 +10,7 @@ if(is_serialized($acx_csma_appearence_array_5 ))
10
  {
11
  $acx_csma_appearence_array_5 = unserialize($acx_csma_appearence_array_5);
12
  }
13
- $acx_csma_current_date_time = date("Y/m/d H:i");
14
- $acx_csma_current_date_time1 = explode(" ",$acx_csma_current_date_time);
15
- $acx_csma_current_date = explode("/",$acx_csma_current_date_time1[0]);
16
- $acx_csma_current_time = explode(":",$acx_csma_current_date_time1[1]);
17
- $acx_csma_timestamp = mktime($acx_csma_current_time[0],$acx_csma_current_time[1],0,$acx_csma_current_date[1],$acx_csma_current_date[2],$acx_csma_current_date[0]);//mktime(hour,minute,second,month,day,year);
18
  ?>
19
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
20
  <html xmlns="http://www.w3.org/1999/xhtml">
@@ -25,33 +21,52 @@ $acx_csma_timestamp = mktime($acx_csma_current_time[0],$acx_csma_current_time[1]
25
  if($acx_csma_meta_title!="")
26
  {
27
  ?>
28
- <title><?php echo $acx_csma_meta_title;?></title>
29
  <?php
30
  }
31
  if($acx_csma_meta_description!="")
32
  {
33
  ?>
34
- <meta name="description" content="<?php echo $acx_csma_meta_description;?>">
35
  <?php
36
  }
37
  if($acx_csma_meta_keywords!="")
38
  {
39
  ?>
40
- <meta name="keywords" content="<?php echo $acx_csma_meta_keywords;?>">
41
  <?php
42
  }
43
  ?>
44
- <link href="<?php echo plugins_url('style.css', __FILE__);?>" rel="stylesheet" type="text/css" />
45
- <link rel="icon" href="<?php echo $acx_csma_favicon;?>" type="image/png">
46
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
47
  </head>
48
 
49
- <body style="background:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_bgcolor5'];?>">
50
- <div class="wrapper">
 
 
 
 
 
 
 
 
 
 
 
51
  <div class="canvas1000">
52
- <div id="header"> <img src="<?php echo $acx_csma_appearence_array_5['5']['acx_csma_logo5'];?>" alt="Logo"> </div><!-- header -->
53
- <div class="inline_block mg_top" style="background:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_inside_bg_color5'];?>">
54
- <h2 style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_title_color5'];?>"><?php echo $acx_csma_appearence_array_5['5']['acx_csma_title5'];?></h2>
 
 
 
 
 
 
 
 
55
 
56
 
57
  <?php
@@ -70,28 +85,28 @@ if($acx_csma_meta_keywords!="")
70
 
71
  <ul id="countdown" class="count_down">
72
  <li>
73
- <div class="weeks" id="week" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_iptext_color5'];?>">00</div>
74
- <div class="textWeeks" id="names" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_head_color5'];?>">Weeks</div>
75
  </li>
76
 
77
  <li>
78
- <div class="days" id="day" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_iptext_color5'];?>">00</div>
79
- <div class="textDays" id="names" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_head_color5'];?>">Days</div>
80
  </li>
81
 
82
  <li>
83
- <div class="hours" id="hour" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_iptext_color5'];?>">00</div>
84
- <div class="textHours" id="names" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_head_color5'];?>">Hours</div>
85
  </li>
86
 
87
  <li>
88
- <div class="minutes" id="minute" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_iptext_color5'];?>">00</div>
89
- <div class="textMinutes" id="names" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_head_color5'];?>">Minutes</div>
90
  </li>
91
 
92
  <li>
93
- <div class="seconds" id="second" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_iptext_color5'];?>">00</div>
94
- <div class="textSeconds" id="names" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_head_color5'];?>">Seconds</div>
95
  </li>
96
 
97
  </ul> <!-- /#countdown -->
@@ -103,7 +118,7 @@ if($acx_csma_meta_keywords!="")
103
  }?>
104
  <?php if($acx_csma_appearence_array_5['5']['acx_csma_show_progressbar5']==1)
105
  {?>
106
- <div class="pre_loader" style="border: 1px solid <?php echo $acx_csma_appearence_array_5['5']['acx_csma_progress_bar_color5'];?>">
107
  <div class="pre_loader_inside" id="pre_loader_inside" style="background:green;position:absolute;top: 0; left: 0; width:0%; height:inherit;">
108
  </div><!-- pre_loader_inside -->
109
  <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 -->
@@ -117,13 +132,13 @@ if($acx_csma_meta_keywords!="")
117
  </div>
118
  <?php } ?>
119
 
120
- <h3>Want to know we launch? <br/> <?php echo $acx_csma_appearence_array_5['5']['acx_csma_subscribe_title5'];?></h3>
121
 
122
  </div><!-- inline_block -->
123
- <div class="footer" style="background:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_subscribe_bg_color5'];?>">
124
- <form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']);?>">
125
- <div id="acx_csma_success" name="acx_csma_success"style="display:none;color:white;" ><?php echo $acx_csma_appearence_array_5['5']['acx_csma_subscribe_success5'];?></div>
126
- <div id="acx_csma_invalid" name="acx_csma_invalid"style="display:none;color:white;" ><?php echo $acx_csma_appearence_array_5['5']['acx_csma_subscribe_invalid5'];?></div>
127
  <div id="acx_csma_error" style="color:white;"></div>
128
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
129
  <input type="hidden" id="acx_csma_email" name="email" placeholder="Enter your e-mail address" >
@@ -133,18 +148,18 @@ if($acx_csma_meta_keywords!="")
133
  <?php if($acx_csma_appearence_array_5['5']['acx_csma_fb_link5']!="")
134
  {
135
  ?>
136
- <li><a href="<?php echo $acx_csma_appearence_array_5['5']['acx_csma_fb_link5'];?>"><img src="<?php echo plugins_url('images/facebook.png', __FILE__);?>" alt="Logo"></a></li>
137
  <?php
138
  }
139
  if($acx_csma_appearence_array_5['5']['acx_csma_twitter_link5']!="")
140
  {
141
  ?>
142
- <li><a href="<?php echo $acx_csma_appearence_array_5['5']['acx_csma_twitter_link5'];?>"><img src="<?php echo plugins_url('images/twitter.png', __FILE__);?>" alt="Logo"></a></li>
143
  <?php
144
  }
145
  if($acx_csma_appearence_array_5['5']['acx_csma_linkedin_link5']!="")
146
  {?>
147
- <li style="margin-right: 0;"><a href="<?php echo $acx_csma_appearence_array_5['5']['acx_csma_linkedin_link5'];?>"><img src="<?php echo plugins_url('images/linkedin.png', __FILE__);?>" alt="Logo"></a></li>
148
  <?php
149
  }?>
150
 
@@ -195,8 +210,8 @@ function acx_csma_validate_email()
195
  }
196
  else
197
  {
198
- var timestamp = "<?php echo time();?>";
199
- var ip="<?php echo $_SERVER['REMOTE_ADDR'];?>";
200
  var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
201
  var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'&timestamp='+timestamp+'&action=acx_csma_subscribe_email';
202
  jQuery.post(acx_csma_ajaxurl, order, function(theResponse)
@@ -224,30 +239,28 @@ function acx_csma_validate_email()
224
  <?php if($acx_csma_appearence_array_5['5']['acx_csma_show_progressbar5']==1)
225
  {
226
  if($acx_csma_timestamp < $acx_csma_date_time)
227
- {?>
228
- var startTime=<?php echo $acx_csma_start_date_time;?>;
229
- var maxTime =<?php echo $acx_csma_date_time;?>;
230
- var timeoutVal = Math.floor(maxTime/100000);
231
-
232
- showProgressUpdate();
233
  function updateProgress(percentage) {
234
 
235
  jQuery('#pre_loader_inside').css("width", percentage + "%");
236
  jQuery('#pre_loader_text').text(percentage + "%");
237
- }
238
 
239
- function showProgressUpdate() {
240
- var d1 = new Date();
241
-
242
- var current=Math.floor(d1.getTime()/ 1000);
243
- var perc = Math.round(((current-startTime) / (maxTime-startTime)) * 100);
244
-
245
- if (perc <= 100) {
246
-
247
- updateProgress(perc);
248
- setTimeout(showProgressUpdate, timeoutVal);
249
- }
250
- }
251
  <?php }
252
 
253
  }
@@ -255,13 +268,15 @@ if($acx_csma_appearence_array_5['5']['acx_csma_show_timer5']==1)
255
  {
256
  if($acx_csma_timestamp < $acx_csma_date_time)
257
  { ?>
258
- var start_date = <?php echo $acx_csma_start_date_time;?>;
259
- var end_date =<?php echo $acx_csma_date_time;?>;
260
- var d1 = new Date();
261
- var current=Math.floor(d1.getTime()/ 1000);
262
  updateCounter();
263
  function updateCounter()
264
  {
 
 
265
  current = current+1;
266
  seconds = (end_date - current);
267
 
@@ -285,6 +300,7 @@ function updateCounter()
285
  setTimeout( function(){
286
  updateCounter();
287
  }, 1000 );
 
288
  }
289
  <?php }
290
  }?>
10
  {
11
  $acx_csma_appearence_array_5 = unserialize($acx_csma_appearence_array_5);
12
  }
13
+ $acx_csma_timestamp=current_time('timestamp');
 
 
 
 
14
  ?>
15
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
16
  <html xmlns="http://www.w3.org/1999/xhtml">
21
  if($acx_csma_meta_title!="")
22
  {
23
  ?>
24
+ <title><?php echo $acx_csma_meta_title; ?></title>
25
  <?php
26
  }
27
  if($acx_csma_meta_description!="")
28
  {
29
  ?>
30
+ <meta name="description" content="<?php echo $acx_csma_meta_description; ?>">
31
  <?php
32
  }
33
  if($acx_csma_meta_keywords!="")
34
  {
35
  ?>
36
+ <meta name="keywords" content="<?php echo $acx_csma_meta_keywords; ?>">
37
  <?php
38
  }
39
  ?>
40
+ <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
41
+ <link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>" type="image/png">
42
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
43
  </head>
44
 
45
+ <body style="background:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_bgcolor5']; ?>">
46
+ <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_5['5'])){ if($acx_csma_appearence_array_5['5']['acx_csma_logo_choice']=="text")
47
+ {
48
+ $new_class="text_logo";
49
+ } else
50
+ {
51
+ $new_class="";
52
+ }}else
53
+ {
54
+ $new_class="";
55
+ }
56
+ ?>
57
+ <div class="wrapper <?php echo $new_class; ?>">
58
  <div class="canvas1000">
59
+ <div id="header">
60
+
61
+ <?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_5['5'])){ if($acx_csma_appearence_array_5['5']['acx_csma_logo_choice']=="image" || $acx_csma_appearence_array_5['5']['acx_csma_logo_choice']==""){ ?>
62
+ <img src="<?php echo esc_url($acx_csma_appearence_array_5['5']['acx_csma_logo5']); ?>" alt="Logo">
63
+ <?php } else if($acx_csma_appearence_array_5['5']['acx_csma_logo_choice']=="text")
64
+ {?>
65
+ <div class="logo_text" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_logo_text_color5']; ?>"><?php echo $acx_csma_appearence_array_5['5']['acx_csma_logo_text5']; ?></div>
66
+ <?php } } ?>
67
+ </div><!-- header -->
68
+ <div class="inline_block mg_top" style="background:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_inside_bg_color5']; ?>">
69
+ <h2 style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_title_color5']; ?>"><?php echo $acx_csma_appearence_array_5['5']['acx_csma_title5']; ?></h2>
70
 
71
 
72
  <?php
85
 
86
  <ul id="countdown" class="count_down">
87
  <li>
88
+ <div class="weeks" id="week" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_iptext_color5']; ?>">00</div>
89
+ <div class="textWeeks" id="names" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_head_color5']; ?>">Weeks</div>
90
  </li>
91
 
92
  <li>
93
+ <div class="days" id="day" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_iptext_color5']; ?>">00</div>
94
+ <div class="textDays" id="names" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_head_color5']; ?>">Days</div>
95
  </li>
96
 
97
  <li>
98
+ <div class="hours" id="hour" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_iptext_color5']; ?>">00</div>
99
+ <div class="textHours" id="names" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_head_color5']; ?>">Hours</div>
100
  </li>
101
 
102
  <li>
103
+ <div class="minutes" id="minute" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_iptext_color5']; ?>">00</div>
104
+ <div class="textMinutes" id="names" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_head_color5']; ?>">Minutes</div>
105
  </li>
106
 
107
  <li>
108
+ <div class="seconds" id="second" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_iptext_color5']; ?>">00</div>
109
+ <div class="textSeconds" id="names" style="color:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_timer_head_color5']; ?>">Seconds</div>
110
  </li>
111
 
112
  </ul> <!-- /#countdown -->
118
  }?>
119
  <?php if($acx_csma_appearence_array_5['5']['acx_csma_show_progressbar5']==1)
120
  {?>
121
+ <div class="pre_loader" style="border: 1px solid <?php echo $acx_csma_appearence_array_5['5']['acx_csma_progress_bar_color5']; ?>">
122
  <div class="pre_loader_inside" id="pre_loader_inside" style="background:green;position:absolute;top: 0; left: 0; width:0%; height:inherit;">
123
  </div><!-- pre_loader_inside -->
124
  <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 -->
132
  </div>
133
  <?php } ?>
134
 
135
+ <h3>Want to know we launch? <br/> <?php echo $acx_csma_appearence_array_5['5']['acx_csma_subscribe_title5']; ?></h3>
136
 
137
  </div><!-- inline_block -->
138
+ <div class="footer" style="background:<?php echo $acx_csma_appearence_array_5['5']['acx_csma_subscribe_bg_color5']; ?>">
139
+ <form name="acx_csma_form" method="post" action="<?php echo str_replace( '%7E', '~',$_SERVER['REQUEST_URI']); ?>">
140
+ <div id="acx_csma_success" name="acx_csma_success"style="display:none;color:white;" ><?php echo $acx_csma_appearence_array_5['5']['acx_csma_subscribe_success5']; ?></div>
141
+ <div id="acx_csma_invalid" name="acx_csma_invalid"style="display:none;color:white;" ><?php echo $acx_csma_appearence_array_5['5']['acx_csma_subscribe_invalid5']; ?></div>
142
  <div id="acx_csma_error" style="color:white;"></div>
143
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="Enter Your Name Here"/>
144
  <input type="hidden" id="acx_csma_email" name="email" placeholder="Enter your e-mail address" >
148
  <?php if($acx_csma_appearence_array_5['5']['acx_csma_fb_link5']!="")
149
  {
150
  ?>
151
+ <li><a href="<?php echo esc_url($acx_csma_appearence_array_5['5']['acx_csma_fb_link5']); ?>"><img src="<?php echo plugins_url('images/facebook.png', __FILE__); ?>" alt="Logo"></a></li>
152
  <?php
153
  }
154
  if($acx_csma_appearence_array_5['5']['acx_csma_twitter_link5']!="")
155
  {
156
  ?>
157
+ <li><a href="<?php echo esc_url($acx_csma_appearence_array_5['5']['acx_csma_twitter_link5']); ?>"><img src="<?php echo plugins_url('images/twitter.png', __FILE__); ?>" alt="Logo"></a></li>
158
  <?php
159
  }
160
  if($acx_csma_appearence_array_5['5']['acx_csma_linkedin_link5']!="")
161
  {?>
162
+ <li style="margin-right: 0;"><a href="<?php echo esc_url($acx_csma_appearence_array_5['5']['acx_csma_linkedin_link5']); ?>"><img src="<?php echo plugins_url('images/linkedin.png', __FILE__); ?>" alt="Logo"></a></li>
163
  <?php
164
  }?>
165
 
210
  }
211
  else
212
  {
213
+ var timestamp = Math.floor(<?php echo current_time('timestamp'); ?>);
214
+ var ip="<?php echo $_SERVER['REMOTE_ADDR']; ?>";
215
  var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
216
  var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'&timestamp='+timestamp+'&action=acx_csma_subscribe_email';
217
  jQuery.post(acx_csma_ajaxurl, order, function(theResponse)
239
  <?php if($acx_csma_appearence_array_5['5']['acx_csma_show_progressbar5']==1)
240
  {
241
  if($acx_csma_timestamp < $acx_csma_date_time)
242
+ {?>
243
+ var current_spu = Math.floor(<?php echo current_time('timestamp'); ?>);
244
+ var startTime=<?php echo $acx_csma_start_date_time; ?>;
245
+ var maxTime =<?php echo $acx_csma_date_time; ?>;
246
+
247
+ showProgressUpdate();
248
  function updateProgress(percentage) {
249
 
250
  jQuery('#pre_loader_inside').css("width", percentage + "%");
251
  jQuery('#pre_loader_text').text(percentage + "%");
252
+ }
253
 
254
+ function showProgressUpdate() {
255
+ current_spu = (current_spu+1);
256
+ var perc = Math.round(((current_spu-startTime) / (maxTime-startTime)) * 100);
257
+
258
+ if (perc <= 100) {
259
+
260
+ updateProgress(perc);
261
+ setTimeout(showProgressUpdate, 1000);
262
+ }
263
+ }
 
 
264
  <?php }
265
 
266
  }
268
  {
269
  if($acx_csma_timestamp < $acx_csma_date_time)
270
  { ?>
271
+ var start_date = <?php echo $acx_csma_start_date_time; ?>;
272
+ var end_date =<?php echo $acx_csma_date_time; ?>;
273
+ var current = Math.floor(<?php echo current_time('timestamp'); ?>);
274
+
275
  updateCounter();
276
  function updateCounter()
277
  {
278
+ if(current < end_date)
279
+ {
280
  current = current+1;
281
  seconds = (end_date - current);
282
 
300
  setTimeout( function(){
301
  updateCounter();
302
  }, 1000 );
303
+ }
304
  }
305
  <?php }
306
  }?>
templates/5/style.css CHANGED
@@ -5,7 +5,14 @@ body
5
  font-family: "arial";
6
  color: #4b4b4b;
7
  font-size: 14px;
8
- //background: #e9eaec;
 
 
 
 
 
 
 
9
  }
10
  p, img, h2, ol, ul, li, a
11
  {
5
  font-family: "arial";
6
  color: #4b4b4b;
7
  font-size: 14px;
8
+
9
+ }
10
+ .text_logo #header .logo_text {
11
+ font-size: 29px;
12
+ text-align: center;
13
+ }
14
+ .text_logo #header {
15
+ padding: 20px;
16
  }
17
  p, img, h2, ol, ul, li, a
18
  {