Under Construction / Maintenance Mode from Acurax - Version 2.5.8

Version Description

Fix - Security Improvements Fix - Perfomance Improvements Fix - User Role Issue Added - GDPR Compliance Added - GDPR Compliance Privacy Options

Download this release

Release Info

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

Code changes from version 2.5.7 to 2.5.8

acx_csma.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Under Construction / Maintenance Mode From Acurax
4
  Plugin URI: http://www.acurax.com/products/under-construction-maintenance-mode-wordpress-plugin
5
  Description: Simple and the best Coming Soon or Maintenance Mode Plugin Which Supports Practically Unlimited Responsive Designs.
6
  Author: Acurax
7
- Version: 2.5.7
8
  Author URI: http://wordpress.acurax.com
9
  License: GPLv2 or later
10
  Text Domain: coming-soon-maintenance-mode-from-acurax
@@ -27,11 +27,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27
  ?>
28
  <?php
29
  /*************** Admin function ***************/
30
- define("ACX_CSMA_CURRENT_VERSION","2.5.7");
31
  define("ACX_CSMA_TOTAL_THEMES",5);
32
  define("ACX_CSMA_BASE_LOCATION",plugin_dir_url( __FILE__ ));
33
  define("ACX_CSMA_WP_SLUG","coming-soon-maintenance-mode-from-acurax");
34
-
35
 
36
  include_once(plugin_dir_path( __FILE__ ).'function.php');
37
  include_once(plugin_dir_path( __FILE__ ).'includes/defaults.php');
@@ -99,4 +99,29 @@ if ( is_admin() )
99
  add_action('admin_menu', 'acx_csma_admin_actions');
100
  }
101
  include_once(plugin_dir_path( __FILE__ ).'includes/updates.php');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  ?>
4
  Plugin URI: http://www.acurax.com/products/under-construction-maintenance-mode-wordpress-plugin
5
  Description: Simple and the best Coming Soon or Maintenance Mode Plugin Which Supports Practically Unlimited Responsive Designs.
6
  Author: Acurax
7
+ Version: 2.5.8
8
  Author URI: http://wordpress.acurax.com
9
  License: GPLv2 or later
10
  Text Domain: coming-soon-maintenance-mode-from-acurax
27
  ?>
28
  <?php
29
  /*************** Admin function ***************/
30
+ define("ACX_CSMA_CURRENT_VERSION","2.5.8");
31
  define("ACX_CSMA_TOTAL_THEMES",5);
32
  define("ACX_CSMA_BASE_LOCATION",plugin_dir_url( __FILE__ ));
33
  define("ACX_CSMA_WP_SLUG","coming-soon-maintenance-mode-from-acurax");
34
+ define('ACX_CSMA_LOG_DIR',WP_CONTENT_DIR . '/acx-csma-log');
35
 
36
  include_once(plugin_dir_path( __FILE__ ).'function.php');
37
  include_once(plugin_dir_path( __FILE__ ).'includes/defaults.php');
99
  add_action('admin_menu', 'acx_csma_admin_actions');
100
  }
101
  include_once(plugin_dir_path( __FILE__ ).'includes/updates.php');
102
+ /* Add settings link in plugin page */
103
+ if(!function_exists('acx_csma_plugin_add_settings_link'))
104
+ {
105
+ function acx_csma_plugin_add_settings_link( $links ) {
106
+ $acx_csma_settings_link = '<a href="'.esc_url(wp_nonce_url(admin_url('admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Settings'))).'">' . __( 'Settings' ) . '</a>';
107
+ array_unshift( $links, $acx_csma_settings_link );
108
+ return $links;
109
+ }
110
+ $plugin = plugin_basename( __FILE__ );
111
+ add_filter( "plugin_action_links_$plugin", 'acx_csma_plugin_add_settings_link' );
112
+
113
+ }
114
+ /* Add settings link in Plugin page */
115
+ /* redirect to settings page after activate plugin */
116
+ function acx_csma_plugin_activate() {
117
+ add_option('acx_csma_do_activation_redirect', true);
118
+ }
119
+ register_activation_hook(__FILE__, 'acx_csma_plugin_activate');
120
+ function acx_csma_redirect() {
121
+ if (get_option('acx_csma_do_activation_redirect', false)) {
122
+ delete_option('acx_csma_do_activation_redirect');
123
+ wp_redirect(esc_url(wp_nonce_url(admin_url('admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Settings'))));
124
+ }
125
+ }add_action('admin_init', 'acx_csma_redirect');
126
+ /* redirect to settings page after activate plugin */
127
  ?>
css/admin.css CHANGED
@@ -907,3 +907,24 @@ cursor:pointer;
907
  #acx_csma_display_variable_content #acx_disp_edit_link a, #acx_csma_display_variable_content #acx_disp_reset_link a {
908
  cursor: pointer;
909
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
907
  #acx_csma_display_variable_content #acx_disp_edit_link a, #acx_csma_display_variable_content #acx_disp_reset_link a {
908
  cursor: pointer;
909
  }
910
+ .acx_csma_download_log_cvr {
911
+ width: 30%;
912
+ float: right;
913
+ margin-top: 10px;
914
+ margin-right: 10px;
915
+ }
916
+ .acx_csma_download_log_cvr .acx_csma_download_log {
917
+ color: #333;
918
+ text-align: center;
919
+ float: right;
920
+ }
921
+ #acx_csma_gdpr_status {
922
+ margin-top: 4px;
923
+ }
924
+ #wp-acx_csma_privacy_policy_desc-wrap {
925
+ float: left;
926
+ width: 100%;
927
+ }
928
+ #qt_acx_csma_privacy_policy_desc_toolbar input {
929
+ width: auto;
930
+ }
function.php CHANGED
@@ -27,6 +27,10 @@ if(is_serialized($acx_csma_display_var_arr))
27
  {
28
  $acx_csma_display_var_arr = unserialize($acx_csma_display_var_arr);
29
  }
 
 
 
 
30
  if(empty($acx_csma_display_var_arr))
31
  {
32
  $acx_csma_display_var_arr=array(
@@ -111,7 +115,7 @@ function acx_csma_colorpicker_scripts()
111
  // color picker
112
  if(ISSET($_GET['page']))
113
  {
114
- $acx_csma_page=$_GET['page'];
115
  }
116
  else
117
  {
@@ -247,19 +251,26 @@ function acx_csma_plugin_activation()
247
  {
248
  $acx_csma_role_array = unserialize($acx_csma_role_array);
249
  }
 
 
 
 
250
  $current_user = wp_get_current_user();
251
  $roles = $current_user->roles; //$roles -array
 
252
  foreach($roles as $key=>$value)
253
  {
254
- $user_roles=$value;
255
  }
256
  if(is_array($acx_csma_role_array))
257
  {
 
258
  if(in_array($user_roles,$acx_csma_role_array)|| $user_roles=="administrator" || is_super_admin())
259
  {
260
  //do not display maintenance page.....
261
  $acx_csma_display_template=false;
262
  }
 
263
  }
264
  }
265
  }
@@ -274,6 +285,10 @@ function acx_csma_plugin_activation()
274
  {
275
  $acx_csma_ip_array = unserialize($acx_csma_ip_array);
276
  }
 
 
 
 
277
  $current_ip = acx_csma_getrealip();
278
 
279
  if(is_array($acx_csma_ip_array) && in_array($current_ip,$acx_csma_ip_array))
@@ -330,7 +345,7 @@ function acx_csma_template_preview()
330
  $acx_csma_send_header_option = get_option('acx_csma_send_header_option');
331
  if ($acx_csma_send_header_option == "") { $acx_csma_send_header_option = "yes"; }
332
  if(ISSET($_GET['acx_csma_preview']) && current_user_can( 'manage_options' )){
333
- $acx_csma_preview=$_GET['acx_csma_preview'];
334
  if(is_array($acx_csma_template_array) && array_key_exists($acx_csma_preview,$acx_csma_template_array))
335
  {
336
  $protocol = "HTTP/1.0";
@@ -442,13 +457,34 @@ add_action('admin_head', 'acx_csma_upload_images_template_1');
442
  function acx_csma_quick_request_submit_callback()
443
  {
444
  $acx_name = $acx_email = $acx_phone = $acx_csma_es = $acx_weburl = $acx_subject = $acx_question = "";
445
- $acx_name = $_POST['acx_name'];
446
- $acx_email = $_POST['acx_email'];
447
- $acx_phone = $_POST['acx_phone'];
448
- $acx_csma_es = $_POST['acx_csma_es'];
449
- $acx_weburl = $_POST['acx_weburl'];
450
- $acx_subject = stripslashes($_POST['acx_subject']);
451
- $acx_question = stripslashes($_POST['acx_question']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
452
  if (!wp_verify_nonce($acx_csma_es,'acx_csma_es'))
453
  {
454
  $acx_csma_es == "";
@@ -499,14 +535,14 @@ function acx_csma_add_items($admin_bar)
499
  'id' => 'acx_csma_activation_msg',
500
  'parent' => 'top-secondary',
501
  'title' => __('Maintenance Mode is Activated','coming-soon-maintenance-mode-from-acurax'),
502
- 'href' => wp_nonce_url(admin_url('admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Settings'))
503
  );
504
  if (!current_user_can('manage_options') ) {
505
  return;
506
  }
507
  $admin_bar->add_menu($args);
508
  }
509
- $acx_csma_activation_status=get_option('acx_csma_activation_status');
510
  if($acx_csma_activation_status == 1 && is_admin())
511
  {
512
  add_action('admin_bar_menu', 'acx_csma_add_items');
@@ -533,16 +569,16 @@ function acx_csma_subscribe_email()
533
  $timestamp = $_POST['timestamp'];
534
  }
535
  $acx_csma_subscribe_details = get_option('acx_csma_subscribe_user_details');
536
- if($acx_csma_subscribe_details != "")
 
 
 
 
 
537
  {
538
- if(is_serialized($acx_csma_subscribe_details))
539
- {
540
- $acx_csma_subscribe_details = unserialize($acx_csma_subscribe_details);
541
- }
542
- }
543
- else{
544
- $acx_csma_subscribe_details = array();
545
- }
546
  $found = 0;
547
  foreach($acx_csma_subscribe_details as $key => $value)
548
  {
@@ -580,6 +616,10 @@ function acx_csma_subscribe_ajax()
580
  {
581
  $acx_csma_subscribe_details = unserialize($acx_csma_subscribe_details);
582
  }
 
 
 
 
583
  if(!empty($acx_csma_subscribe_details)) {
584
  $filename = 'subscribers-list-' . date('Y-m-d') . '.csv';
585
  header('Content-Type: text/csv');
@@ -706,6 +746,14 @@ function acx_csma_updated_fields_content()
706
  {
707
  $acx_csma_appearence_array['1']['acx_csma_custom_html_top_temp1_title'] = "";
708
  }
 
 
 
 
 
 
 
 
709
  }
710
  if(ISSET($acx_csma_appearence_array['2']))
711
  {
@@ -733,6 +781,14 @@ function acx_csma_updated_fields_content()
733
  {
734
  $acx_csma_appearence_array['2']['acx_csma_custom_css_temp2'] = "";
735
  }
 
 
 
 
 
 
 
 
736
  }
737
  if(ISSET($acx_csma_appearence_array['3']))
738
  {
@@ -772,6 +828,14 @@ function acx_csma_updated_fields_content()
772
  {
773
  $acx_csma_appearence_array['3']['acx_csma_custom_css_temp3'] = "";
774
  }
 
 
 
 
 
 
 
 
775
  }
776
  if(ISSET($acx_csma_appearence_array['4']))
777
  {
@@ -779,6 +843,14 @@ function acx_csma_updated_fields_content()
779
  {
780
  $acx_csma_appearence_array['4']['acx_csma_custom_css_temp4'] = "";
781
  }
 
 
 
 
 
 
 
 
782
  }
783
  if(ISSET($acx_csma_appearence_array['5']))
784
  {
@@ -806,6 +878,14 @@ function acx_csma_updated_fields_content()
806
  {
807
  $acx_csma_appearence_array['5']['acx_csma_custom_css_temp5'] = "";
808
  }
 
 
 
 
 
 
 
 
809
  }
810
  }
811
  $acx_csma_appearence_array=acx_csma_get_db_array_value();
@@ -929,9 +1009,9 @@ function acx_csma_display_var_content()
929
  {
930
  $acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
931
  }
932
- if($acx_csma_display_var_arr=="")
933
  {
934
- $acx_csma_display_var_arr=array();
935
  }
936
  $display_content.="<hr />";
937
  ksort($acx_csma_display_var_arr);
@@ -1069,6 +1149,10 @@ function acx_csma_reset_disp_var_callback()
1069
  {
1070
  $acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
1071
  }
 
 
 
 
1072
  if(ISSET($acx_csma_display_var_arr[$acx_csma_reset_key]['default_singular']))
1073
  {
1074
  $acx_csma_display_var_arr[$acx_csma_reset_key]['singular']=$acx_csma_display_var_arr[$acx_csma_reset_key]['default_singular'];
@@ -1110,6 +1194,10 @@ function acx_csma_edit_disp_var_callback()
1110
  {
1111
  $acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
1112
  }
 
 
 
 
1113
  if(ISSET($acx_csma_display_var_arr[$acx_csma_edit_key]['default_singular']))
1114
  {
1115
  $acx_csma_display_var_arr[$acx_csma_edit_key]['singular']=$acx_csma_edit_singular;
@@ -1151,6 +1239,10 @@ function acx_csma_open_disp_var_callback()
1151
  {
1152
  $acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
1153
  }
 
 
 
 
1154
  $heading = ucfirst($acx_csma_key);
1155
  $response .= "<div id='acx_csma_edit_box'><div id='acx_csma_edit_box_inner'><span id='acx_csma_heading'><h3>".__('Edit Text for ','coming-soon-maintenance-mode-from-acurax') .$heading."</h3></span><hr><div id='acx_csma_disp_var_inside_cnt'>";
1156
  if(ISSET($acx_csma_display_var_arr[$acx_csma_key]['default_singular']))
@@ -1178,6 +1270,10 @@ if(!function_exists('acx_csma_disp_var_to_show'))
1178
  {
1179
  $acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
1180
  }
 
 
 
 
1181
  if(isset($acx_csma_display_var_arr[$acx_csma_disp_key]['singular']))
1182
  {
1183
  $acx_csma_edit_singular=$acx_csma_display_var_arr[$acx_csma_disp_key]['singular'];
@@ -1197,10 +1293,14 @@ function acx_csma_get_db_array_value()
1197
  $acx_csma_appearence_array = apply_filters('acx_csma_demo_get_array_filter',$acx_csma_appearence_array);
1198
  if($acx_csma_appearence_array != "")
1199
  {
1200
- if(is_serialized($acx_csma_appearence_array))
1201
- {
1202
- $acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
1203
- }
 
 
 
 
1204
  }
1205
  return $acx_csma_appearence_array;
1206
  }
@@ -1222,6 +1322,7 @@ function acx_csma_update_array_value($acx_csma_appearence_array)
1222
  function acx_csma_appearence_array_refresh()
1223
  {
1224
  global $acx_csma_appearence_array_default;
 
1225
  $acx_csma_appearence_array = acx_csma_get_db_array_value();
1226
  $changes_happened = false;
1227
  if($acx_csma_appearence_array == "")
@@ -1264,6 +1365,10 @@ function update_acx_csma_display_var_array()
1264
  {
1265
  $acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
1266
  }
 
 
 
 
1267
  if(is_array($acx_csma_display_var_arr))
1268
  {
1269
  if(!ISSET($acx_csma_display_var_arr['Subscription Name Placeholder']))
@@ -1467,6 +1572,119 @@ if ($acx_csma_send_header_option == "") { $acx_csma_send_header_option = "yes";
1467
  } add_action('acx_csma_misc_hook_option_after_else','acx_csma_send_header_after_else');
1468
 
1469
  /* Send Header Settings Settings HTML - Get - Set Default Logic Ends Here */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1470
 
1471
  /* Define Misc Submit Button Starts Here */
1472
  function acx_csma_misc_submit_button_html()
@@ -1476,7 +1694,7 @@ function acx_csma_misc_submit_button_html()
1476
  <?php
1477
  echo "<span class='acx_csma_q_sep'></span>";
1478
  }
1479
- add_action('acx_csma_misc_hook_option_fields','acx_csma_misc_submit_button_html',300);
1480
  /* Define Misc Submit Button Ends Here */
1481
  // refresh
1482
  function acx_csma_install_licence_refresh_callback()
@@ -1538,15 +1756,18 @@ function acx_csma_install_licence_refresh_callback()
1538
 
1539
  }
1540
  }
1541
-
1542
  }
 
 
 
1543
  $acx_csma_purchased_li_array[$licence]['status'] = $result['status'];
1544
  if(!is_serialized($acx_csma_purchased_li_array))
1545
  {
1546
  $acx_csma_purchased_li_array = serialize($acx_csma_purchased_li_array);
1547
  }
1548
  update_option('acx_csma_purchased_li_array',$acx_csma_purchased_li_array);
1549
- $response_stat = "success";
1550
  }
1551
  echo $response_stat;
1552
  die();
27
  {
28
  $acx_csma_display_var_arr = unserialize($acx_csma_display_var_arr);
29
  }
30
+ if($acx_csma_display_var_arr == "" || !is_array($acx_csma_display_var_arr))
31
+ {
32
+ $acx_csma_display_var_arr = array();
33
+ }
34
  if(empty($acx_csma_display_var_arr))
35
  {
36
  $acx_csma_display_var_arr=array(
115
  // color picker
116
  if(ISSET($_GET['page']))
117
  {
118
+ $acx_csma_page = sanitize_text_field(trim($_GET['page']));
119
  }
120
  else
121
  {
251
  {
252
  $acx_csma_role_array = unserialize($acx_csma_role_array);
253
  }
254
+ if($acx_csma_role_array == "" || !is_array($acx_csma_role_array))
255
+ {
256
+ $acx_csma_role_array = array();
257
+ }
258
  $current_user = wp_get_current_user();
259
  $roles = $current_user->roles; //$roles -array
260
+ $user_roles = "";
261
  foreach($roles as $key=>$value)
262
  {
263
+ $user_roles = $value;
264
  }
265
  if(is_array($acx_csma_role_array))
266
  {
267
+
268
  if(in_array($user_roles,$acx_csma_role_array)|| $user_roles=="administrator" || is_super_admin())
269
  {
270
  //do not display maintenance page.....
271
  $acx_csma_display_template=false;
272
  }
273
+
274
  }
275
  }
276
  }
285
  {
286
  $acx_csma_ip_array = unserialize($acx_csma_ip_array);
287
  }
288
+ if($acx_csma_ip_array == "" || !is_array($acx_csma_ip_array))
289
+ {
290
+ $acx_csma_ip_array = array();
291
+ }
292
  $current_ip = acx_csma_getrealip();
293
 
294
  if(is_array($acx_csma_ip_array) && in_array($current_ip,$acx_csma_ip_array))
345
  $acx_csma_send_header_option = get_option('acx_csma_send_header_option');
346
  if ($acx_csma_send_header_option == "") { $acx_csma_send_header_option = "yes"; }
347
  if(ISSET($_GET['acx_csma_preview']) && current_user_can( 'manage_options' )){
348
+ $acx_csma_preview = sanitize_text_field(trim($_GET['acx_csma_preview']));
349
  if(is_array($acx_csma_template_array) && array_key_exists($acx_csma_preview,$acx_csma_template_array))
350
  {
351
  $protocol = "HTTP/1.0";
457
  function acx_csma_quick_request_submit_callback()
458
  {
459
  $acx_name = $acx_email = $acx_phone = $acx_csma_es = $acx_weburl = $acx_subject = $acx_question = "";
460
+ if(ISSET($_POST['acx_name']))
461
+ {
462
+ $acx_name = $_POST['acx_name'];
463
+ }
464
+ if(ISSET($_POST['acx_email']))
465
+ {
466
+ $acx_email = $_POST['acx_email'];
467
+ }
468
+ if(ISSET($_POST['acx_phone']))
469
+ {
470
+ $acx_phone = $_POST['acx_phone'];
471
+ }
472
+ if(ISSET($_POST['acx_csma_es']))
473
+ {
474
+ $acx_csma_es = $_POST['acx_csma_es'];
475
+ }
476
+ if(ISSET($_POST['acx_weburl']))
477
+ {
478
+ $acx_weburl = $_POST['acx_weburl'];
479
+ }
480
+ if(ISSET($_POST['acx_subject']))
481
+ {
482
+ $acx_subject = stripslashes($_POST['acx_subject']);
483
+ }
484
+ if(ISSET($_POST['acx_question']))
485
+ {
486
+ $acx_question = stripslashes($_POST['acx_question']);
487
+ }
488
  if (!wp_verify_nonce($acx_csma_es,'acx_csma_es'))
489
  {
490
  $acx_csma_es == "";
535
  'id' => 'acx_csma_activation_msg',
536
  'parent' => 'top-secondary',
537
  'title' => __('Maintenance Mode is Activated','coming-soon-maintenance-mode-from-acurax'),
538
+ 'href' => esc_url(wp_nonce_url(admin_url('admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Settings')))
539
  );
540
  if (!current_user_can('manage_options') ) {
541
  return;
542
  }
543
  $admin_bar->add_menu($args);
544
  }
545
+ $acx_csma_activation_status = get_option('acx_csma_activation_status');
546
  if($acx_csma_activation_status == 1 && is_admin())
547
  {
548
  add_action('admin_bar_menu', 'acx_csma_add_items');
569
  $timestamp = $_POST['timestamp'];
570
  }
571
  $acx_csma_subscribe_details = get_option('acx_csma_subscribe_user_details');
572
+
573
+ if(is_serialized($acx_csma_subscribe_details))
574
+ {
575
+ $acx_csma_subscribe_details = unserialize($acx_csma_subscribe_details);
576
+ }
577
+ if($acx_csma_subscribe_details == "" || !is_array($acx_csma_subscribe_details))
578
  {
579
+ $acx_csma_subscribe_details = array();
580
+ }
581
+
 
 
 
 
 
582
  $found = 0;
583
  foreach($acx_csma_subscribe_details as $key => $value)
584
  {
616
  {
617
  $acx_csma_subscribe_details = unserialize($acx_csma_subscribe_details);
618
  }
619
+ if($acx_csma_subscribe_details == "" || !is_array($acx_csma_subscribe_details))
620
+ {
621
+ $acx_csma_subscribe_details = array();
622
+ }
623
  if(!empty($acx_csma_subscribe_details)) {
624
  $filename = 'subscribers-list-' . date('Y-m-d') . '.csv';
625
  header('Content-Type: text/csv');
746
  {
747
  $acx_csma_appearence_array['1']['acx_csma_custom_html_top_temp1_title'] = "";
748
  }
749
+ if(!array_key_exists('acx_csma_footer_gdprcolor1',$acx_csma_appearence_array['1']))
750
+ {
751
+ $acx_csma_appearence_array['1']['acx_csma_footer_gdprcolor1'] = "#ffffff";
752
+ }
753
+ if(!array_key_exists('acx_csma_footer_gdpr_hovercolor1',$acx_csma_appearence_array['1']))
754
+ {
755
+ $acx_csma_appearence_array['1']['acx_csma_footer_gdpr_hovercolor1'] = "#e3e3e3";
756
+ }
757
  }
758
  if(ISSET($acx_csma_appearence_array['2']))
759
  {
781
  {
782
  $acx_csma_appearence_array['2']['acx_csma_custom_css_temp2'] = "";
783
  }
784
+ if(!array_key_exists('acx_csma_footer_gdprcolor2',$acx_csma_appearence_array['2']))
785
+ {
786
+ $acx_csma_appearence_array['2']['acx_csma_footer_gdprcolor2'] = "#000000";
787
+ }
788
+ if(!array_key_exists('acx_csma_footer_gdpr_hovercolor2',$acx_csma_appearence_array['2']))
789
+ {
790
+ $acx_csma_appearence_array['2']['acx_csma_footer_gdpr_hovercolor2'] = "#8f8f8f";
791
+ }
792
  }
793
  if(ISSET($acx_csma_appearence_array['3']))
794
  {
828
  {
829
  $acx_csma_appearence_array['3']['acx_csma_custom_css_temp3'] = "";
830
  }
831
+ if(!array_key_exists('acx_csma_footer_gdprcolor3',$acx_csma_appearence_array['3']))
832
+ {
833
+ $acx_csma_appearence_array['3']['acx_csma_footer_gdprcolor3'] = "#ffffff";
834
+ }
835
+ if(!array_key_exists('acx_csma_footer_gdpr_hovercolor3',$acx_csma_appearence_array['3']))
836
+ {
837
+ $acx_csma_appearence_array['3']['acx_csma_footer_gdpr_hovercolor3'] = "#fe7e01";
838
+ }
839
  }
840
  if(ISSET($acx_csma_appearence_array['4']))
841
  {
843
  {
844
  $acx_csma_appearence_array['4']['acx_csma_custom_css_temp4'] = "";
845
  }
846
+ if(!array_key_exists('acx_csma_footer_gdprcolor4',$acx_csma_appearence_array['4']))
847
+ {
848
+ $acx_csma_appearence_array['4']['acx_csma_footer_gdprcolor4'] = "#000000";
849
+ }
850
+ if(!array_key_exists('acx_csma_footer_gdpr_hovercolor4',$acx_csma_appearence_array['4']))
851
+ {
852
+ $acx_csma_appearence_array['4']['acx_csma_footer_gdpr_hovercolor4'] = "#adadad";
853
+ }
854
  }
855
  if(ISSET($acx_csma_appearence_array['5']))
856
  {
878
  {
879
  $acx_csma_appearence_array['5']['acx_csma_custom_css_temp5'] = "";
880
  }
881
+ if(!array_key_exists('acx_csma_footer_gdprcolor5',$acx_csma_appearence_array['5']))
882
+ {
883
+ $acx_csma_appearence_array['5']['acx_csma_footer_gdprcolor5'] = "#ffffff";
884
+ }
885
+ if(!array_key_exists('acx_csma_footer_gdpr_hovercolor5',$acx_csma_appearence_array['5']))
886
+ {
887
+ $acx_csma_appearence_array['5']['acx_csma_footer_gdpr_hovercolor5'] = "#a19e99";
888
+ }
889
  }
890
  }
891
  $acx_csma_appearence_array=acx_csma_get_db_array_value();
1009
  {
1010
  $acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
1011
  }
1012
+ if($acx_csma_display_var_arr == "" || !is_array($acx_csma_display_var_arr))
1013
  {
1014
+ $acx_csma_display_var_arr = array();
1015
  }
1016
  $display_content.="<hr />";
1017
  ksort($acx_csma_display_var_arr);
1149
  {
1150
  $acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
1151
  }
1152
+ if($acx_csma_display_var_arr == "" || !is_array($acx_csma_display_var_arr))
1153
+ {
1154
+ $acx_csma_display_var_arr = array();
1155
+ }
1156
  if(ISSET($acx_csma_display_var_arr[$acx_csma_reset_key]['default_singular']))
1157
  {
1158
  $acx_csma_display_var_arr[$acx_csma_reset_key]['singular']=$acx_csma_display_var_arr[$acx_csma_reset_key]['default_singular'];
1194
  {
1195
  $acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
1196
  }
1197
+ if($acx_csma_display_var_arr == "" || !is_array($acx_csma_display_var_arr))
1198
+ {
1199
+ $acx_csma_display_var_arr = array();
1200
+ }
1201
  if(ISSET($acx_csma_display_var_arr[$acx_csma_edit_key]['default_singular']))
1202
  {
1203
  $acx_csma_display_var_arr[$acx_csma_edit_key]['singular']=$acx_csma_edit_singular;
1239
  {
1240
  $acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
1241
  }
1242
+ if($acx_csma_display_var_arr == "" || !is_array($acx_csma_display_var_arr))
1243
+ {
1244
+ $acx_csma_display_var_arr = array();
1245
+ }
1246
  $heading = ucfirst($acx_csma_key);
1247
  $response .= "<div id='acx_csma_edit_box'><div id='acx_csma_edit_box_inner'><span id='acx_csma_heading'><h3>".__('Edit Text for ','coming-soon-maintenance-mode-from-acurax') .$heading."</h3></span><hr><div id='acx_csma_disp_var_inside_cnt'>";
1248
  if(ISSET($acx_csma_display_var_arr[$acx_csma_key]['default_singular']))
1270
  {
1271
  $acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
1272
  }
1273
+ if($acx_csma_display_var_arr == "" || !is_array($acx_csma_display_var_arr))
1274
+ {
1275
+ $acx_csma_display_var_arr = array();
1276
+ }
1277
  if(isset($acx_csma_display_var_arr[$acx_csma_disp_key]['singular']))
1278
  {
1279
  $acx_csma_edit_singular=$acx_csma_display_var_arr[$acx_csma_disp_key]['singular'];
1293
  $acx_csma_appearence_array = apply_filters('acx_csma_demo_get_array_filter',$acx_csma_appearence_array);
1294
  if($acx_csma_appearence_array != "")
1295
  {
1296
+ if(is_serialized($acx_csma_appearence_array))
1297
+ {
1298
+ $acx_csma_appearence_array = unserialize($acx_csma_appearence_array);
1299
+ }
1300
+ if($acx_csma_appearence_array == "" || !is_array($acx_csma_appearence_array))
1301
+ {
1302
+ $acx_csma_appearence_array = array();
1303
+ }
1304
  }
1305
  return $acx_csma_appearence_array;
1306
  }
1322
  function acx_csma_appearence_array_refresh()
1323
  {
1324
  global $acx_csma_appearence_array_default;
1325
+
1326
  $acx_csma_appearence_array = acx_csma_get_db_array_value();
1327
  $changes_happened = false;
1328
  if($acx_csma_appearence_array == "")
1365
  {
1366
  $acx_csma_display_var_arr=unserialize($acx_csma_display_var_arr);
1367
  }
1368
+ if($acx_csma_display_var_arr == "" || !is_array($acx_csma_display_var_arr))
1369
+ {
1370
+ $acx_csma_display_var_arr = array();
1371
+ }
1372
  if(is_array($acx_csma_display_var_arr))
1373
  {
1374
  if(!ISSET($acx_csma_display_var_arr['Subscription Name Placeholder']))
1572
  } add_action('acx_csma_misc_hook_option_after_else','acx_csma_send_header_after_else');
1573
 
1574
  /* Send Header Settings Settings HTML - Get - Set Default Logic Ends Here */
1575
+ /* Acurax GDPR Settings HTML - Get - Set Default Logic Starts Here */
1576
+ function acx_csma_misc_gdpr_html()
1577
+ {
1578
+ $acx_string = __('GDPR Settings','coming-soon-maintenance-mode-from-acurax');
1579
+ print_acx_csma_option_block_start($acx_string);
1580
+ do_action('acx_csma_misc_gdpr_settings');
1581
+ echo "<span class='acx_csma_q_sep'></span>";
1582
+ print_acx_csma_option_block_end();
1583
+ } add_action('acx_csma_misc_hook_option_fields','acx_csma_misc_gdpr_html',700);
1584
+ function acx_csma_gdpr_info_option()
1585
+ {
1586
+ $acx_csma_gdpr_consent = '<b>Under Construction / Maintenance Mode From Acurax</b> can help users website to comply with GDPR, a regulation in European Union Law on Data Protection and Privacy. If you want to make <b>Under Construction / Maintenance Mode From Acurax</b> GDPR compliant, you need to include below information on your privacy policy statement.<br><br>We provide this Privacy Policy consent to inform you about our policies and procedures concerning the collection, use and disclosure of the personal information we receive and collect from users. By using Subscription form, we collects your submitted details like name email and your public IP Address, so that we can reach you back.<br><br>We are using/placing cookies at website back-end users for the proper functioning of plugin settings/options at the wp-admin of your website.';
1587
+ echo "<span class='label' style='width:100%;'>". __($acx_csma_gdpr_consent,'coming-soon-maintenance-mode-from-acurax')."</span>";
1588
+ echo "<span class='acx_csma_q_sep'></span>";
1589
+ do_action('acx_csma_misc_gdpr_consent_hook');
1590
+ }
1591
+ add_action('acx_csma_misc_gdpr_settings','acx_csma_gdpr_info_option',100);
1592
+
1593
+ function acx_csma_gdpr_info_check_option()
1594
+ {
1595
+ global $acx_csma_form_text,$acx_csma_privacy_policy_title,$acx_csma_privacy_policy_desc,$acx_csma_gdpr_status;
1596
+ echo "<span class='label' style='width:100%;'><input type='checkbox' style='width:4%;' name='acx_csma_gdpr_status' id='acx_csma_gdpr_status' value='yes' ";if($acx_csma_gdpr_status == "yes"){echo 'checked';}
1597
+ $acx_csma_consent_head = 'Yes, I would Like to Make this Plugin GDPR Compliant.';
1598
+ echo "><span class='check_label_txt'>". __($acx_csma_consent_head,'coming-soon-maintenance-mode-from-acurax')."</span></span>";?>
1599
+ <?php
1600
+ echo "<span class='acx_csma_q_sep'></span>";
1601
+ if($acx_csma_gdpr_status == "yes")
1602
+ {
1603
+ $acx_csma_display_style = "";
1604
+ }
1605
+ else{
1606
+ $acx_csma_display_style = "style='display:none;'";
1607
+ }
1608
+ echo "<div class='csma_gdpr_settings_cvr' ".$acx_csma_display_style.">";
1609
+ echo "<span class='label' style='width:50%;'>". __('What would you like to show as the cookie consent checkbox label on forms','coming-soon-maintenance-mode-from-acurax')."</span>";
1610
+ echo "<input type='text' style='width:49%;' name='acx_csma_form_text' value='".acx_csma_option_text_after_save_hook_fn($acx_csma_form_text)."'>";
1611
+ echo "<span class='acx_csma_q_sep'></span>";
1612
+ echo "<span class='label' style='width:50%;'>". __('Privacy Policy Heading','coming-soon-maintenance-mode-from-acurax')."</span>";
1613
+ echo "<input type='text' style='width:49%;' name='acx_csma_privacy_policy_title' value='".acx_csma_option_text_after_save_hook_fn($acx_csma_privacy_policy_title)."'>";
1614
+ echo "<span class='acx_csma_q_sep'></span>";
1615
+ echo "<span class='label' style='width:50%;'>". __('Privacy Policy Content','coming-soon-maintenance-mode-from-acurax')."</span>";
1616
+ echo "<span class='acx_csma_q_sep'></span>";
1617
+ $acx_csma_privacy_policy_desc = acx_csma_textarea_after_save_hook_function($acx_csma_privacy_policy_desc);
1618
+ $acx_csma_settings = array( 'wpautop' => false );
1619
+ wp_editor($acx_csma_privacy_policy_desc, "acx_csma_privacy_policy_desc", $acx_csma_settings );
1620
+ echo "</div>";
1621
+ echo "<span class='acx_csma_q_sep'></span>";
1622
+ ?>
1623
+ <script type="text/javascript">
1624
+ jQuery("#acx_csma_gdpr_status").change(function ()
1625
+ {
1626
+ if(this.checked) {
1627
+ if(jQuery(this).val() == "yes")
1628
+ {
1629
+ jQuery(".csma_gdpr_settings_cvr").fadeIn();
1630
+ }
1631
+ }
1632
+ else{
1633
+ jQuery(".csma_gdpr_settings_cvr").fadeOut();
1634
+ }
1635
+ });
1636
+ </script>
1637
+ <?php
1638
+ }
1639
+ add_action('acx_csma_misc_gdpr_settings','acx_csma_gdpr_info_check_option',500);
1640
+ function acx_csma_gdpr_info_if()
1641
+ {
1642
+ global $acx_csma_form_text,$acx_csma_privacy_policy_title,$acx_csma_privacy_policy_desc,$acx_csma_gdpr_status;
1643
+ $acx_csma_form_text = $_POST['acx_csma_form_text'];
1644
+ $acx_csma_form_text = acx_csma_text_before_save_hook_fn('acx_csma_form_text',$acx_csma_form_text);
1645
+ update_option('acx_csma_form_text', $acx_csma_form_text);
1646
+
1647
+ if(ISSET($_POST['acx_csma_gdpr_status']))
1648
+ {
1649
+ $acx_csma_gdpr_status = $_POST['acx_csma_gdpr_status'];
1650
+ }
1651
+ else{
1652
+ $acx_csma_gdpr_status = "no";
1653
+ }
1654
+ update_option('acx_csma_gdpr_status', $acx_csma_gdpr_status);
1655
+ $acx_csma_privacy_policy_title = $_POST['acx_csma_privacy_policy_title'];
1656
+ $acx_csma_privacy_policy_title = acx_csma_text_before_save_hook_fn('acx_csma_privacy_policy_title',$acx_csma_privacy_policy_title);
1657
+ update_option('acx_csma_privacy_policy_title', $acx_csma_privacy_policy_title);
1658
+
1659
+ $acx_csma_privacy_policy_desc = $_POST['acx_csma_privacy_policy_desc'];
1660
+ $acx_csma_privacy_policy_desc = acx_csma_textarea_before_save_hook_function('acx_csma_privacy_policy_desc',$acx_csma_privacy_policy_desc);
1661
+ update_option('acx_csma_privacy_policy_desc', $acx_csma_privacy_policy_desc);
1662
+ } add_action('acx_csma_misc_hook_option_onpost','acx_csma_gdpr_info_if');
1663
+
1664
+ function acx_csma_gdpr_info_else()
1665
+ {
1666
+ global $acx_csma_form_text,$acx_csma_privacy_policy_title,$acx_csma_privacy_policy_desc,$acx_csma_gdpr_status;
1667
+
1668
+ $acx_csma_form_text = get_option('acx_csma_form_text');
1669
+ $acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
1670
+ $acx_csma_privacy_policy_title = get_option('acx_csma_privacy_policy_title');
1671
+ $acx_csma_privacy_policy_desc = get_option('acx_csma_privacy_policy_desc');
1672
+ }
1673
+ add_action('acx_csma_misc_hook_option_postelse','acx_csma_gdpr_info_else');
1674
+ function acx_csma_gdpr_info_after_else()
1675
+ {
1676
+ global $acx_csma_form_text,$acx_csma_privacy_policy_title,$acx_csma_privacy_policy_desc,$acx_csma_gdpr_status;
1677
+
1678
+ if ($acx_csma_gdpr_status == "") { $acx_csma_gdpr_status = "no"; }
1679
+ if ($acx_csma_privacy_policy_title == "") { $acx_csma_privacy_policy_title = "Privacy Policy"; }
1680
+ if ($acx_csma_form_text == "") { $acx_csma_form_text = "I have read and agree with the sites privacy policy"; }
1681
+ if ($acx_csma_privacy_policy_desc == "") { $acx_csma_privacy_policy_desc = "This is to inform website visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.<br><br>If you choose to use our Service, then you agree to the collection and use of information in relation with this policy. The Personal Information that we collect are used for providing and improving the Service. We will not use or share your information with anyone.<br><br>We may update our Privacy Policy from time to time. Thus, we advise you to review this page periodically for any changes. We will notify you of any changes by posting the new Privacy Policy on this page. These changes are effective immediately, after they are posted on this page.<br><br>If you have any questions or suggestions about our Privacy Policy, do not hesitate to contact us."; }
1682
+
1683
+
1684
+ } add_action('acx_csma_misc_hook_option_after_else','acx_csma_gdpr_info_after_else');
1685
+
1686
+
1687
+ /* Acurax GDPR Settings HTML - Get - Set Default Logic Ends Here */
1688
 
1689
  /* Define Misc Submit Button Starts Here */
1690
  function acx_csma_misc_submit_button_html()
1694
  <?php
1695
  echo "<span class='acx_csma_q_sep'></span>";
1696
  }
1697
+ add_action('acx_csma_misc_hook_option_fields','acx_csma_misc_submit_button_html',900);
1698
  /* Define Misc Submit Button Ends Here */
1699
  // refresh
1700
  function acx_csma_install_licence_refresh_callback()
1756
 
1757
  }
1758
  }
1759
+ $response_stat = "success";
1760
  }
1761
+ else{
1762
+ $response_stat = $result["status"];
1763
+ }
1764
  $acx_csma_purchased_li_array[$licence]['status'] = $result['status'];
1765
  if(!is_serialized($acx_csma_purchased_li_array))
1766
  {
1767
  $acx_csma_purchased_li_array = serialize($acx_csma_purchased_li_array);
1768
  }
1769
  update_option('acx_csma_purchased_li_array',$acx_csma_purchased_li_array);
1770
+
1771
  }
1772
  echo $response_stat;
1773
  die();
includes/acx-csma-licence-activation.php CHANGED
@@ -3828,9 +3828,9 @@ function acx_csma_purachase_licence_form()
3828
  <table class="wp-list-table widefat fixed striped">
3829
  <tr>
3830
  <th class="manage-column"><?php _e('Plugin Name','coming-soon-maintenance-mode-from-acurax');?></th>
3831
- <th class="manage-column"><?php _e('Licence Code','coming-soon-maintenance-mode-from-acurax');?></th>
3832
  <th class="manage-column"><?php _e('Version','coming-soon-maintenance-mode-from-acurax');?></th>
3833
- <th class="manage-column"><?php _e('Licence Status','coming-soon-maintenance-mode-from-acurax');?></th>
3834
  <th class="manage-column"><?php _e('Plugin Status','coming-soon-maintenance-mode-from-acurax');?></th>
3835
  <th class="manage-column"><?php _e('Action','coming-soon-maintenance-mode-from-acurax');?></th>
3836
  </tr>
@@ -3839,7 +3839,7 @@ function acx_csma_purachase_licence_form()
3839
  if(empty($acx_csma_p_licence_array))
3840
  {
3841
  ?>
3842
- <tr><td colspan="5"><?php _e('No Licence found','coming-soon-maintenance-mode-from-acurax');?></td></tr>
3843
  <?php
3844
  }
3845
  foreach($acx_csma_p_licence_array as $key => $value)
@@ -4007,22 +4007,25 @@ function acx_csma_licnece_install_required_plugins() {
4007
  }
4008
  add_action( 'acx_csma_licence_tgmpa_register', 'acx_csma_licnece_install_required_plugins' );
4009
  // get plugin activation status
4010
- function acx_csma_get_active_plugin_status($acx_slug)
4011
  {
4012
- $acx_return = false;
4013
- if($acx_slug != "")
4014
  {
4015
- $acx_csma_active_plugin_arr = get_option('active_plugins');
4016
- foreach($acx_csma_active_plugin_arr as $key => $value)
4017
  {
4018
- if(strpos($value,$acx_slug) !== false)
 
4019
  {
4020
- $acx_return = true;
 
 
 
4021
  }
 
4022
  }
4023
-
4024
  }
4025
- return $acx_return;
4026
  }
4027
  function acx_csma_get_plugin_version_number($acx_slug)
4028
  {
@@ -4066,7 +4069,7 @@ function acx_csma_show_purchased_licence_html()
4066
  <div class="acx_csma_add_p_licence_light_cls"></div><!-- acx_csma_add_p_licence_light_cls -->
4067
  <div class="acx_csma_add_p_licence_light_content">
4068
  <span class="acx_csma_p_li_span">
4069
- <input type="text" id="acx_csma_purchased_licence" placeholder="<?php _e('Enter Your Licence Code','coming-soon-maintenance-mode-from-acurax');?>" value=""/>
4070
  <span class="acx_csma_pu_li_error"></span>
4071
  <a class="acx_csma_add_p_li_cls button button-primary"><?php _e('SUBMIT','coming-soon-maintenance-mode-from-acurax');?></a>
4072
  </span><!-- acx_csma_p_li_span -->
@@ -4090,7 +4093,7 @@ function acx_csma_show_purchased_licence_html()
4090
  var acx_csma_purchased_licence = jQuery("#acx_csma_purchased_licence").val();
4091
  if(acx_csma_purchased_licence == "")
4092
  {
4093
- jQuery(".acx_csma_pu_li_error").html('<?php _e('Invalid Licence Code','coming-soon-maintenance-mode-from-acurax');?>');
4094
  return false;
4095
  }
4096
 
@@ -4139,7 +4142,7 @@ function acx_csma_show_purchased_licence_html()
4139
  jQuery("#acx_csmap_loading_1").remove();
4140
  if(theResponse == "success")
4141
  {
4142
- alert('<?php _e('Successfully deleted the licence !!','coming-soon-maintenance-mode-from-acurax');?>');
4143
  var link = window.location.href;
4144
  if(link !== '')
4145
  {
@@ -4166,13 +4169,16 @@ function acx_csma_show_purchased_licence_html()
4166
  jQuery("#acx_csmap_loading_1").remove();
4167
  if(theResponse == "success")
4168
  {
4169
- alert('<?php _e('Successfully refreshed the licence !!','coming-soon-maintenance-mode-from-acurax');?>');
4170
  var link = window.location.href;
4171
  if(link !== '')
4172
  {
4173
  window.location=link;
4174
  }
4175
  }
 
 
 
4176
  });
4177
  }
4178
  });
@@ -4278,6 +4284,10 @@ function acx_csma_purchased_licence_add_callback()
4278
  {
4279
  $acx_csma_p_licence_array = unserialize($acx_csma_p_licence_array);
4280
  }
 
 
 
 
4281
  if($acx_csma_purchased_licence != "")
4282
  {
4283
  $licence_code_arr = explode('-',$acx_csma_purchased_licence);
@@ -4338,6 +4348,7 @@ function acx_csma_purchased_licence_add_callback()
4338
  }
4339
  if(!ISSET($response['response_status']) && !ISSET($response['status']))
4340
  {
 
4341
  if(ISSET($acx_csmap_retry_array[$acx_csma_purchased_licence]['activation_licence_check']))
4342
  {
4343
  $acx_csmap_retry_array[$acx_csma_purchased_licence]['activation_licence_check'] = $acx_csmap_retry_array[$acx_csma_purchased_licence]['activation_licence_check'] + 1;
@@ -4366,7 +4377,6 @@ function acx_csma_purchased_licence_add_callback()
4366
  'download_dynamic_url' => $response['download_dynamic_url']
4367
  );
4368
  // update licence array
4369
-
4370
  $acx_csma_p_licence_array[$acx_csma_unique_id]['addon_name'] = $response['name'];
4371
  $acx_csma_p_licence_array[$acx_csma_unique_id]['version'] = $response['new_version'];
4372
  $acx_csma_p_licence_array[$acx_csma_unique_id]['licence_code'] = $acx_csma_purchased_licence;
@@ -4401,11 +4411,12 @@ function acx_csma_purchased_licence_add_callback()
4401
  else
4402
  {
4403
  echo __("Sorry, Your license code is invalid, Please contact support","coming-soon-maintenance-mode-from-acurax");
 
4404
  }
4405
  }
4406
  else
4407
  {
4408
- echo __("Licence code is empty","coming-soon-maintenance-mode-from-acurax");
4409
  }
4410
  die();
4411
  }
3828
  <table class="wp-list-table widefat fixed striped">
3829
  <tr>
3830
  <th class="manage-column"><?php _e('Plugin Name','coming-soon-maintenance-mode-from-acurax');?></th>
3831
+ <th class="manage-column"><?php _e('License Code','coming-soon-maintenance-mode-from-acurax');?></th>
3832
  <th class="manage-column"><?php _e('Version','coming-soon-maintenance-mode-from-acurax');?></th>
3833
+ <th class="manage-column"><?php _e('License Status','coming-soon-maintenance-mode-from-acurax');?></th>
3834
  <th class="manage-column"><?php _e('Plugin Status','coming-soon-maintenance-mode-from-acurax');?></th>
3835
  <th class="manage-column"><?php _e('Action','coming-soon-maintenance-mode-from-acurax');?></th>
3836
  </tr>
3839
  if(empty($acx_csma_p_licence_array))
3840
  {
3841
  ?>
3842
+ <tr><td colspan="5"><?php _e('No License found','coming-soon-maintenance-mode-from-acurax');?></td></tr>
3843
  <?php
3844
  }
3845
  foreach($acx_csma_p_licence_array as $key => $value)
4007
  }
4008
  add_action( 'acx_csma_licence_tgmpa_register', 'acx_csma_licnece_install_required_plugins' );
4009
  // get plugin activation status
4010
+ if(!function_exists('acx_csma_get_active_plugin_status'))
4011
  {
4012
+ function acx_csma_get_active_plugin_status($acx_slug)
 
4013
  {
4014
+ $acx_return = false;
4015
+ if($acx_slug != "")
4016
  {
4017
+ $acx_csma_active_plugin_arr = get_option('active_plugins');
4018
+ foreach($acx_csma_active_plugin_arr as $key => $value)
4019
  {
4020
+ if(strpos($value,$acx_slug) !== false)
4021
+ {
4022
+ $acx_return = true;
4023
+ }
4024
  }
4025
+
4026
  }
4027
+ return $acx_return;
4028
  }
 
4029
  }
4030
  function acx_csma_get_plugin_version_number($acx_slug)
4031
  {
4069
  <div class="acx_csma_add_p_licence_light_cls"></div><!-- acx_csma_add_p_licence_light_cls -->
4070
  <div class="acx_csma_add_p_licence_light_content">
4071
  <span class="acx_csma_p_li_span">
4072
+ <input type="text" id="acx_csma_purchased_licence" placeholder="<?php _e('Enter Your License Code','coming-soon-maintenance-mode-from-acurax');?>" value=""/>
4073
  <span class="acx_csma_pu_li_error"></span>
4074
  <a class="acx_csma_add_p_li_cls button button-primary"><?php _e('SUBMIT','coming-soon-maintenance-mode-from-acurax');?></a>
4075
  </span><!-- acx_csma_p_li_span -->
4093
  var acx_csma_purchased_licence = jQuery("#acx_csma_purchased_licence").val();
4094
  if(acx_csma_purchased_licence == "")
4095
  {
4096
+ jQuery(".acx_csma_pu_li_error").html('<?php _e('Invalid License Code','coming-soon-maintenance-mode-from-acurax');?>');
4097
  return false;
4098
  }
4099
 
4142
  jQuery("#acx_csmap_loading_1").remove();
4143
  if(theResponse == "success")
4144
  {
4145
+ alert('<?php _e('Successfully deleted the license !!','coming-soon-maintenance-mode-from-acurax');?>');
4146
  var link = window.location.href;
4147
  if(link !== '')
4148
  {
4169
  jQuery("#acx_csmap_loading_1").remove();
4170
  if(theResponse == "success")
4171
  {
4172
+ alert('<?php _e('Successfully refreshed the license !!','coming-soon-maintenance-mode-from-acurax');?>');
4173
  var link = window.location.href;
4174
  if(link !== '')
4175
  {
4176
  window.location=link;
4177
  }
4178
  }
4179
+ else{
4180
+ alert('<?php _e('Failed to refresh the license !!','coming-soon-maintenance-mode-from-acurax');?>');
4181
+ }
4182
  });
4183
  }
4184
  });
4284
  {
4285
  $acx_csma_p_licence_array = unserialize($acx_csma_p_licence_array);
4286
  }
4287
+ if($acx_csma_p_licence_array == "" || !is_array($acx_csma_p_licence_array))
4288
+ {
4289
+ $acx_csma_p_licence_array = array();
4290
+ }
4291
  if($acx_csma_purchased_licence != "")
4292
  {
4293
  $licence_code_arr = explode('-',$acx_csma_purchased_licence);
4348
  }
4349
  if(!ISSET($response['response_status']) && !ISSET($response['status']))
4350
  {
4351
+
4352
  if(ISSET($acx_csmap_retry_array[$acx_csma_purchased_licence]['activation_licence_check']))
4353
  {
4354
  $acx_csmap_retry_array[$acx_csma_purchased_licence]['activation_licence_check'] = $acx_csmap_retry_array[$acx_csma_purchased_licence]['activation_licence_check'] + 1;
4377
  'download_dynamic_url' => $response['download_dynamic_url']
4378
  );
4379
  // update licence array
 
4380
  $acx_csma_p_licence_array[$acx_csma_unique_id]['addon_name'] = $response['name'];
4381
  $acx_csma_p_licence_array[$acx_csma_unique_id]['version'] = $response['new_version'];
4382
  $acx_csma_p_licence_array[$acx_csma_unique_id]['licence_code'] = $acx_csma_purchased_licence;
4411
  else
4412
  {
4413
  echo __("Sorry, Your license code is invalid, Please contact support","coming-soon-maintenance-mode-from-acurax");
4414
+
4415
  }
4416
  }
4417
  else
4418
  {
4419
+ echo __("License code is empty","coming-soon-maintenance-mode-from-acurax");
4420
  }
4421
  die();
4422
  }
includes/acx_csma_admin.php CHANGED
@@ -19,7 +19,7 @@ function setCookie (name, value){
19
  document.cookie = name + "=" + escape(value) + "; expires=" + expires_date.toGMTString() + "; path=/;";
20
  }
21
  var acx_csma_cookie = getCookie("acx_csma_cookie");
22
- if(!acx_csma_cookie)
23
  {
24
  setCookie("acx_csma_cookie",1);
25
  }
@@ -217,7 +217,20 @@ if($acx_csma_hidden == 'Y')
217
  $acx_csma_footer_text_color1=$_POST['acx_csma_footer_text_color1'];
218
  $acx_csma_footer_text_color1 = acx_csma_text_before_save_hook_fn('acx_csma_footer_text_color1',$acx_csma_footer_text_color1);
219
  if($acx_csma_footer_text_color1==""){$acx_csma_footer_text_color1=$acx_csma_appearence_array['1']['acx_csma_footer_text_color1'];}
220
-
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  $acx_csma_custom_css_temp1=$_POST['acx_csma_custom_css_temp1'];
222
  $acx_csma_custom_css_temp1 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp1', $acx_csma_custom_css_temp1);
223
  // **************************************template 2**************************************
@@ -340,6 +353,19 @@ if($acx_csma_hidden == 'Y')
340
  $acx_csma_linkedin_link2=esc_url_raw($_POST['acx_csma_linkedin_link2']);
341
  $acx_csma_custom_css_temp2=$_POST['acx_csma_custom_css_temp2'];
342
  $acx_csma_custom_css_temp2 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp2', $acx_csma_custom_css_temp2);
 
 
 
 
 
 
 
 
 
 
 
 
 
343
  //***********************************template 3*************************
344
  if(ISSET($_POST['acx_csma_logo_choice3']))
345
  {
@@ -470,6 +496,19 @@ if($acx_csma_hidden == 'Y')
470
  $acx_csma_linkedin_link3=esc_url_raw($_POST['acx_csma_linkedin_link3']);
471
  $acx_csma_custom_css_temp3=$_POST['acx_csma_custom_css_temp3'];
472
  $acx_csma_custom_css_temp3 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp3', $acx_csma_custom_css_temp3);
 
 
 
 
 
 
 
 
 
 
 
 
 
473
  //********************************template 4***********************************
474
  $acx_csma_background_image4=$_POST['acx_csma_background_image4'];
475
  $acx_csma_background_image4 = acx_csma_text_before_save_hook_fn('acx_csma_background_image4',$acx_csma_background_image4);
@@ -560,6 +599,20 @@ if($acx_csma_hidden == 'Y')
560
  $acx_csma_linkedin_link4=esc_url_raw($_POST['acx_csma_linkedin_link4']);
561
  $acx_csma_custom_css_temp4=$_POST['acx_csma_custom_css_temp4'];
562
  $acx_csma_custom_css_temp4 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp4', $acx_csma_custom_css_temp4);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
563
  //********************************template5*********************************
564
  $acx_csma_bgcolor5=$_POST['acx_csma_bgcolor5'];
565
  $acx_csma_bgcolor5 = acx_csma_text_before_save_hook_fn('acx_csma_bgcolor5',$acx_csma_bgcolor5);if($acx_csma_bgcolor5==""){$acx_csma_bgcolor5=$acx_csma_appearence_array['5']['acx_csma_bgcolor5'];}
@@ -650,6 +703,20 @@ if($acx_csma_hidden == 'Y')
650
  $acx_csma_linkedin_link5=esc_url_raw($_POST['acx_csma_linkedin_link5']);
651
  $acx_csma_custom_css_temp5=$_POST['acx_csma_custom_css_temp5'];
652
  $acx_csma_custom_css_temp5 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp5', $acx_csma_custom_css_temp5);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
653
 
654
  $acx_csma_template=$_POST['acx_csma_template'];
655
  if($acx_csma_template==""){$acx_csma_template=1;}
@@ -711,7 +778,9 @@ if($acx_csma_hidden == 'Y')
711
  'acx_csma_footer_bgcolor1'=>$acx_csma_footer_bgcolor1,
712
  'acx_csma_footer_text1'=>$acx_csma_footer_text1,
713
  'acx_csma_footer_text_color1'=>$acx_csma_footer_text_color1,
714
- 'acx_csma_custom_css_temp1'=>$acx_csma_custom_css_temp1
 
 
715
  );
716
  }
717
  acx_csma_update_array_value($acx_csma_appearence_array);
@@ -761,7 +830,9 @@ if($acx_csma_hidden == 'Y')
761
  'acx_csma_fb_link2'=>$acx_csma_fb_link2,
762
  'acx_csma_twitter_link2'=>$acx_csma_twitter_link2,
763
  'acx_csma_linkedin_link2'=>$acx_csma_linkedin_link2,
764
- 'acx_csma_custom_css_temp2'=>$acx_csma_custom_css_temp2
 
 
765
  );
766
  }
767
  acx_csma_update_array_value($acx_csma_appearence_array);
@@ -815,7 +886,9 @@ if($acx_csma_hidden == 'Y')
815
  'acx_csma_fb_link3'=>$acx_csma_fb_link3,
816
  'acx_csma_twitter_link3'=>$acx_csma_twitter_link3,
817
  'acx_csma_linkedin_link3'=>$acx_csma_linkedin_link3,
818
- 'acx_csma_custom_css_temp3'=>$acx_csma_custom_css_temp3
 
 
819
  );
820
  }
821
  acx_csma_update_array_value($acx_csma_appearence_array);
@@ -857,7 +930,9 @@ if($acx_csma_hidden == 'Y')
857
  'acx_csma_fb_link4'=>$acx_csma_fb_link4,
858
  'acx_csma_twitter_link4'=>$acx_csma_twitter_link4,
859
  'acx_csma_linkedin_link4'=>$acx_csma_linkedin_link4,
860
- 'acx_csma_custom_css_temp4'=>$acx_csma_custom_css_temp4
 
 
861
  );
862
  }
863
  acx_csma_update_array_value($acx_csma_appearence_array);
@@ -900,7 +975,9 @@ if($acx_csma_hidden == 'Y')
900
  'acx_csma_fb_link5'=>$acx_csma_fb_link5,
901
  'acx_csma_twitter_link5'=>$acx_csma_twitter_link5,
902
  'acx_csma_linkedin_link5'=>$acx_csma_linkedin_link5,
903
- 'acx_csma_custom_css_temp5'=>$acx_csma_custom_css_temp5
 
 
904
  );
905
  }
906
  acx_csma_update_array_value($acx_csma_appearence_array);
@@ -966,7 +1043,7 @@ else
966
  {
967
  $acx_csma_ip_list = unserialize($acx_csma_ip_list);
968
  }
969
- if(!is_array($acx_csma_ip_list))
970
  {
971
  $acx_csma_ip_list = array();
972
  }
@@ -1095,7 +1172,16 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1095
  <tr><td><b><?php echo "<h4>" . __( 'Access Settings', 'coming-soon-maintenance-mode-from-acurax' ) . "</h4>"; ?></b></td></tr>
1096
  <tr><td><?php _e("Do not show maintenance page for the following IPs:","coming-soon-maintenance-mode-from-acurax"); ?></td></tr>
1097
  <tr>
1098
- <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);}?>
 
 
 
 
 
 
 
 
 
1099
  <select name="acx_csma_ip_list[]" id="acx_csma_ip_list1" multiple>
1100
  <?php foreach($acx_csma_ip_list as $key =>$value)
1101
  {?>
@@ -1120,6 +1206,10 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1120
  {
1121
  $acx_csma_restrict_role = unserialize($acx_csma_restrict_role);
1122
  }
 
 
 
 
1123
  // get all roles
1124
  global $wp_roles;
1125
  $roles = $wp_roles->get_names();
@@ -1183,6 +1273,9 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1183
  </div> <!-- main -->
1184
  <?php
1185
  $acx_csma_appearence_array=acx_csma_get_db_array_value();
 
 
 
1186
  ?>
1187
  <div id="acx_csma_template_1" style="display:none;" class="acx_csma_template_option_holder">
1188
  <div id="acx_csma_1_p_q_and_a_h_main_holder">
@@ -1600,6 +1693,48 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
1600
  </div> <!-- acx_csmap_q_and_a_h -->
1601
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################-->
1602
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1603
  <!--################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1604
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1605
 
@@ -2012,6 +2147,47 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
2012
  </div> <!-- acx_csmap_q_and_a -->
2013
  </div> <!-- acx_csmap_q_and_a_h -->
2014
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2015
  <!--################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
2016
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2017
 
@@ -2498,6 +2674,46 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
2498
  </div> <!-- acx_csmap_q_and_a -->
2499
  </div> <!-- acx_csmap_q_and_a_h -->
2500
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2501
  <!--################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
2502
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2503
 
@@ -2871,7 +3087,46 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
2871
  </div> <!-- acx_csmap_q_and_a -->
2872
  </div> <!-- acx_csmap_q_and_a_h -->
2873
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2874
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2875
  <!--################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
2876
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2877
 
@@ -3245,6 +3500,46 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
3245
  </div> <!-- acx_csmap_q_and_a -->
3246
  </div> <!-- acx_csmap_q_and_a_h -->
3247
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3248
  <!--################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
3249
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
3250
 
@@ -3488,6 +3783,11 @@ function acx_csma_restore_default(img_id,default_value,text_id,set_bg)
3488
  jQuery(document).ready(function()
3489
  {
3490
  var acx_csma_cookie = getCookie("acx_csma_cookie");
 
 
 
 
 
3491
  acx_csma_show_div(acx_csma_cookie);
3492
  var acx_csma_temp_cookie = getCookie("acx_csma_temp_cookie");
3493
  acx_csma_rdbtn_show_div(acx_csma_temp_cookie);
19
  document.cookie = name + "=" + escape(value) + "; expires=" + expires_date.toGMTString() + "; path=/;";
20
  }
21
  var acx_csma_cookie = getCookie("acx_csma_cookie");
22
+ if(!acx_csma_cookie || acx_csma_cookie == "null")
23
  {
24
  setCookie("acx_csma_cookie",1);
25
  }
217
  $acx_csma_footer_text_color1=$_POST['acx_csma_footer_text_color1'];
218
  $acx_csma_footer_text_color1 = acx_csma_text_before_save_hook_fn('acx_csma_footer_text_color1',$acx_csma_footer_text_color1);
219
  if($acx_csma_footer_text_color1==""){$acx_csma_footer_text_color1=$acx_csma_appearence_array['1']['acx_csma_footer_text_color1'];}
220
+ $acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
221
+ if($acx_csma_gdpr_status == "yes")
222
+ {
223
+ $acx_csma_footer_gdprcolor1=$_POST['acx_csma_footer_gdprcolor1'];
224
+ $acx_csma_footer_gdprcolor1 = acx_csma_text_before_save_hook_fn('acx_csma_footer_gdprcolor1',$acx_csma_footer_gdprcolor1);
225
+ if($acx_csma_footer_gdprcolor1==""){$acx_csma_footer_gdprcolor1=$acx_csma_appearence_array['1']['acx_csma_footer_gdprcolor1'];}
226
+ $acx_csma_footer_gdpr_hovercolor1=$_POST['acx_csma_footer_gdpr_hovercolor1'];
227
+ $acx_csma_footer_gdpr_hovercolor1 = acx_csma_text_before_save_hook_fn('acx_csma_footer_gdpr_hovercolor1',$acx_csma_footer_gdpr_hovercolor1);
228
+ if($acx_csma_footer_gdpr_hovercolor1==""){$acx_csma_footer_gdpr_hovercolor1=$acx_csma_appearence_array['1']['acx_csma_footer_gdpr_hovercolor1'];}
229
+ }
230
+ else{
231
+ $acx_csma_footer_gdprcolor1="#ffffff";
232
+ $acx_csma_footer_gdpr_hovercolor1="#e3e3e3";
233
+ }
234
  $acx_csma_custom_css_temp1=$_POST['acx_csma_custom_css_temp1'];
235
  $acx_csma_custom_css_temp1 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp1', $acx_csma_custom_css_temp1);
236
  // **************************************template 2**************************************
353
  $acx_csma_linkedin_link2=esc_url_raw($_POST['acx_csma_linkedin_link2']);
354
  $acx_csma_custom_css_temp2=$_POST['acx_csma_custom_css_temp2'];
355
  $acx_csma_custom_css_temp2 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp2', $acx_csma_custom_css_temp2);
356
+ if($acx_csma_gdpr_status == "yes")
357
+ {
358
+ $acx_csma_footer_gdprcolor2=$_POST['acx_csma_footer_gdprcolor2'];
359
+ $acx_csma_footer_gdprcolor2 = acx_csma_text_before_save_hook_fn('acx_csma_footer_gdprcolor2',$acx_csma_footer_gdprcolor2);
360
+ if($acx_csma_footer_gdprcolor2==""){$acx_csma_footer_gdprcolor2=$acx_csma_appearence_array['2']['acx_csma_footer_gdprcolor2'];}
361
+ $acx_csma_footer_gdpr_hovercolor2=$_POST['acx_csma_footer_gdpr_hovercolor2'];
362
+ $acx_csma_footer_gdpr_hovercolor2 = acx_csma_text_before_save_hook_fn('acx_csma_footer_gdpr_hovercolor2',$acx_csma_footer_gdpr_hovercolor2);
363
+ if($acx_csma_footer_gdpr_hovercolor2==""){$acx_csma_footer_gdpr_hovercolor2=$acx_csma_appearence_array['2']['acx_csma_footer_gdpr_hovercolor2'];}
364
+ }
365
+ else{
366
+ $acx_csma_footer_gdprcolor2="#000000";
367
+ $acx_csma_footer_gdpr_hovercolor2="#8f8f8f";
368
+ }
369
  //***********************************template 3*************************
370
  if(ISSET($_POST['acx_csma_logo_choice3']))
371
  {
496
  $acx_csma_linkedin_link3=esc_url_raw($_POST['acx_csma_linkedin_link3']);
497
  $acx_csma_custom_css_temp3=$_POST['acx_csma_custom_css_temp3'];
498
  $acx_csma_custom_css_temp3 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp3', $acx_csma_custom_css_temp3);
499
+ if($acx_csma_gdpr_status == "yes")
500
+ {
501
+ $acx_csma_footer_gdprcolor3=$_POST['acx_csma_footer_gdprcolor3'];
502
+ $acx_csma_footer_gdprcolor3 = acx_csma_text_before_save_hook_fn('acx_csma_footer_gdprcolor3',$acx_csma_footer_gdprcolor3);
503
+ if($acx_csma_footer_gdprcolor3==""){$acx_csma_footer_gdprcolor3=$acx_csma_appearence_array['3']['acx_csma_footer_gdprcolor3'];}
504
+ $acx_csma_footer_gdpr_hovercolor3=$_POST['acx_csma_footer_gdpr_hovercolor3'];
505
+ $acx_csma_footer_gdpr_hovercolor3 = acx_csma_text_before_save_hook_fn('acx_csma_footer_gdpr_hovercolor3',$acx_csma_footer_gdpr_hovercolor3);
506
+ if($acx_csma_footer_gdpr_hovercolor3==""){$acx_csma_footer_gdpr_hovercolor3=$acx_csma_appearence_array['3']['acx_csma_footer_gdpr_hovercolor3'];}
507
+ }
508
+ else{
509
+ $acx_csma_footer_gdprcolor3="#ffffff";
510
+ $acx_csma_footer_gdpr_hovercolor3="#fe7e01";
511
+ }
512
  //********************************template 4***********************************
513
  $acx_csma_background_image4=$_POST['acx_csma_background_image4'];
514
  $acx_csma_background_image4 = acx_csma_text_before_save_hook_fn('acx_csma_background_image4',$acx_csma_background_image4);
599
  $acx_csma_linkedin_link4=esc_url_raw($_POST['acx_csma_linkedin_link4']);
600
  $acx_csma_custom_css_temp4=$_POST['acx_csma_custom_css_temp4'];
601
  $acx_csma_custom_css_temp4 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp4', $acx_csma_custom_css_temp4);
602
+ $acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
603
+ if($acx_csma_gdpr_status == "yes")
604
+ {
605
+ $acx_csma_footer_gdprcolor4=$_POST['acx_csma_footer_gdprcolor4'];
606
+ $acx_csma_footer_gdprcolor4 = acx_csma_text_before_save_hook_fn('acx_csma_footer_gdprcolor4',$acx_csma_footer_gdprcolor4);
607
+ if($acx_csma_footer_gdprcolor4==""){$acx_csma_footer_gdprcolor1=$acx_csma_appearence_array['4']['acx_csma_footer_gdprcolor4'];}
608
+ $acx_csma_footer_gdpr_hovercolor4=$_POST['acx_csma_footer_gdpr_hovercolor4'];
609
+ $acx_csma_footer_gdpr_hovercolor4 = acx_csma_text_before_save_hook_fn('acx_csma_footer_gdpr_hovercolor4',$acx_csma_footer_gdpr_hovercolor4);
610
+ if($acx_csma_footer_gdpr_hovercolor4==""){$acx_csma_footer_gdpr_hovercolor1=$acx_csma_appearence_array['4']['acx_csma_footer_gdpr_hovercolor4'];}
611
+ }
612
+ else{
613
+ $acx_csma_footer_gdprcolor4="#000000";
614
+ $acx_csma_footer_gdpr_hovercolor4="#adadad";
615
+ }
616
  //********************************template5*********************************
617
  $acx_csma_bgcolor5=$_POST['acx_csma_bgcolor5'];
618
  $acx_csma_bgcolor5 = acx_csma_text_before_save_hook_fn('acx_csma_bgcolor5',$acx_csma_bgcolor5);if($acx_csma_bgcolor5==""){$acx_csma_bgcolor5=$acx_csma_appearence_array['5']['acx_csma_bgcolor5'];}
703
  $acx_csma_linkedin_link5=esc_url_raw($_POST['acx_csma_linkedin_link5']);
704
  $acx_csma_custom_css_temp5=$_POST['acx_csma_custom_css_temp5'];
705
  $acx_csma_custom_css_temp5 = acx_csma_custom_html_before_save_hook_fn('acx_csma_custom_css_temp5', $acx_csma_custom_css_temp5);
706
+ if($acx_csma_gdpr_status == "yes")
707
+ {
708
+ $acx_csma_footer_gdprcolor5=$_POST['acx_csma_footer_gdprcolor5'];
709
+ $acx_csma_footer_gdprcolor5 = acx_csma_text_before_save_hook_fn('acx_csma_footer_gdprcolor5',$acx_csma_footer_gdprcolor5);
710
+ if($acx_csma_footer_gdprcolor5==""){$acx_csma_footer_gdprcolor5=$acx_csma_appearence_array['5']['acx_csma_footer_gdprcolor5'];}
711
+ $acx_csma_footer_gdpr_hovercolor5=$_POST['acx_csma_footer_gdpr_hovercolor5'];
712
+ $acx_csma_footer_gdpr_hovercolor5 = acx_csma_text_before_save_hook_fn('acx_csma_footer_gdpr_hovercolor5',$acx_csma_footer_gdpr_hovercolor5);
713
+ if($acx_csma_footer_gdpr_hovercolor5==""){$acx_csma_footer_gdpr_hovercolor5=$acx_csma_appearence_array['5']['acx_csma_footer_gdpr_hovercolor5'];}
714
+ }
715
+ else{
716
+ $acx_csma_footer_gdprcolor5="#ffffff";
717
+ $acx_csma_footer_gdpr_hovercolor5="#a19e99";
718
+ }
719
+
720
 
721
  $acx_csma_template=$_POST['acx_csma_template'];
722
  if($acx_csma_template==""){$acx_csma_template=1;}
778
  'acx_csma_footer_bgcolor1'=>$acx_csma_footer_bgcolor1,
779
  'acx_csma_footer_text1'=>$acx_csma_footer_text1,
780
  'acx_csma_footer_text_color1'=>$acx_csma_footer_text_color1,
781
+ 'acx_csma_custom_css_temp1'=>$acx_csma_custom_css_temp1,
782
+ 'acx_csma_footer_gdprcolor1' => $acx_csma_footer_gdprcolor1,
783
+ 'acx_csma_footer_gdpr_hovercolor1'=> $acx_csma_footer_gdpr_hovercolor1
784
  );
785
  }
786
  acx_csma_update_array_value($acx_csma_appearence_array);
830
  'acx_csma_fb_link2'=>$acx_csma_fb_link2,
831
  'acx_csma_twitter_link2'=>$acx_csma_twitter_link2,
832
  'acx_csma_linkedin_link2'=>$acx_csma_linkedin_link2,
833
+ 'acx_csma_custom_css_temp2'=>$acx_csma_custom_css_temp2,
834
+ 'acx_csma_footer_gdprcolor2' => $acx_csma_footer_gdprcolor2,
835
+ 'acx_csma_footer_gdpr_hovercolor2'=> $acx_csma_footer_gdpr_hovercolor2
836
  );
837
  }
838
  acx_csma_update_array_value($acx_csma_appearence_array);
886
  'acx_csma_fb_link3'=>$acx_csma_fb_link3,
887
  'acx_csma_twitter_link3'=>$acx_csma_twitter_link3,
888
  'acx_csma_linkedin_link3'=>$acx_csma_linkedin_link3,
889
+ 'acx_csma_custom_css_temp3'=>$acx_csma_custom_css_temp3,
890
+ 'acx_csma_footer_gdprcolor3' => $acx_csma_footer_gdprcolor3,
891
+ 'acx_csma_footer_gdpr_hovercolor3'=> $acx_csma_footer_gdpr_hovercolor3
892
  );
893
  }
894
  acx_csma_update_array_value($acx_csma_appearence_array);
930
  'acx_csma_fb_link4'=>$acx_csma_fb_link4,
931
  'acx_csma_twitter_link4'=>$acx_csma_twitter_link4,
932
  'acx_csma_linkedin_link4'=>$acx_csma_linkedin_link4,
933
+ 'acx_csma_custom_css_temp4'=>$acx_csma_custom_css_temp4,
934
+ 'acx_csma_footer_gdprcolor4' => $acx_csma_footer_gdprcolor4,
935
+ 'acx_csma_footer_gdpr_hovercolor4'=> $acx_csma_footer_gdpr_hovercolor4
936
  );
937
  }
938
  acx_csma_update_array_value($acx_csma_appearence_array);
975
  'acx_csma_fb_link5'=>$acx_csma_fb_link5,
976
  'acx_csma_twitter_link5'=>$acx_csma_twitter_link5,
977
  'acx_csma_linkedin_link5'=>$acx_csma_linkedin_link5,
978
+ 'acx_csma_custom_css_temp5'=>$acx_csma_custom_css_temp5,
979
+ 'acx_csma_footer_gdprcolor5' => $acx_csma_footer_gdprcolor5,
980
+ 'acx_csma_footer_gdpr_hovercolor5'=> $acx_csma_footer_gdpr_hovercolor5
981
  );
982
  }
983
  acx_csma_update_array_value($acx_csma_appearence_array);
1043
  {
1044
  $acx_csma_ip_list = unserialize($acx_csma_ip_list);
1045
  }
1046
+ if($acx_csma_ip_list == "" || !is_array($acx_csma_ip_list))
1047
  {
1048
  $acx_csma_ip_list = array();
1049
  }
1172
  <tr><td><b><?php echo "<h4>" . __( 'Access Settings', 'coming-soon-maintenance-mode-from-acurax' ) . "</h4>"; ?></b></td></tr>
1173
  <tr><td><?php _e("Do not show maintenance page for the following IPs:","coming-soon-maintenance-mode-from-acurax"); ?></td></tr>
1174
  <tr>
1175
+ <td><p><?php $acx_csma_ip_list=get_option('acx_csma_ip_list');
1176
+ if(is_serialized($acx_csma_ip_list))
1177
+ {
1178
+ $acx_csma_ip_list = unserialize($acx_csma_ip_list);
1179
+ if($acx_csma_ip_list == "" || !is_array($acx_csma_ip_list))
1180
+ {
1181
+ $acx_csma_ip_list = array();
1182
+ }
1183
+ }
1184
+ ?>
1185
  <select name="acx_csma_ip_list[]" id="acx_csma_ip_list1" multiple>
1186
  <?php foreach($acx_csma_ip_list as $key =>$value)
1187
  {?>
1206
  {
1207
  $acx_csma_restrict_role = unserialize($acx_csma_restrict_role);
1208
  }
1209
+ if($acx_csma_restrict_role == "" || !is_array($acx_csma_restrict_role))
1210
+ {
1211
+ $acx_csma_restrict_role = array();
1212
+ }
1213
  // get all roles
1214
  global $wp_roles;
1215
  $roles = $wp_roles->get_names();
1273
  </div> <!-- main -->
1274
  <?php
1275
  $acx_csma_appearence_array=acx_csma_get_db_array_value();
1276
+ /* echo "<pre>";
1277
+ print_r($acx_csma_appearence_array);
1278
+ echo "<pre>"; */
1279
  ?>
1280
  <div id="acx_csma_template_1" style="display:none;" class="acx_csma_template_option_holder">
1281
  <div id="acx_csma_1_p_q_and_a_h_main_holder">
1693
  </div> <!-- acx_csmap_q_and_a_h -->
1694
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################-->
1695
 
1696
+ <?php
1697
+ $acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
1698
+ if($acx_csma_gdpr_status == "yes")
1699
+ {
1700
+ ?>
1701
+ <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1702
+
1703
+ <?php
1704
+
1705
+ $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1706
+
1707
+ <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; ?>">
1708
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">
1709
+ <?php _e("GDPR Settings","coming-soon-maintenance-mode-from-acurax"); ?>
1710
+ </span>
1711
+ <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>
1712
+ <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;">
1713
+ <div class="acx_csmap_q_and_a_inside">
1714
+ <label>
1715
+ <?php _e("Notice Text Color:","coming-soon-maintenance-mode-from-acurax"); ?><a onclick="acx_csma_restore_default('','#ffffff','acx_csma_footer_gdprcolor1');" class="acx_csmap_button_reset">[<?php _e("Reset To Default","coming-soon-maintenance-mode-from-acurax"); ?>]</a>
1716
+ </label>
1717
+ <div class="acx_qa_field">
1718
+ <input type="text" name="acx_csma_footer_gdprcolor1" id="acx_csma_footer_gdprcolor1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_footer_gdprcolor1']; ?>" size="20"/>
1719
+ <div style="position: absolute;" id="acx_csma_footer_gdprcolor1_div"></div>
1720
+ </div> <!-- acx_qa_field -->
1721
+ <label>
1722
+ <?php _e("Notice Text Hover Color (If Privacy Policy Link Is Present):","coming-soon-maintenance-mode-from-acurax"); ?><a onclick="acx_csma_restore_default('','#ff7800','acx_csma_footer_gdpr_hovercolor1');" class="acx_csmap_button_reset">[<?php _e("Reset To Default","coming-soon-maintenance-mode-from-acurax"); ?>]</a>
1723
+ </label>
1724
+ <div class="acx_qa_field">
1725
+ <input type="text" name="acx_csma_footer_gdpr_hovercolor1" id="acx_csma_footer_gdpr_hovercolor1" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['1']['acx_csma_footer_gdpr_hovercolor1']; ?>" size="20"/>
1726
+ <div style="position: absolute;" id="acx_csma_footer_gdpr_hovercolor1_div"></div>
1727
+ </div> <!-- acx_qa_field -->
1728
+
1729
+ </div> <!-- acx_csmap_q_and_a_inside -->
1730
+ </div> <!-- acx_csmap_q_and_a -->
1731
+ </div> <!-- acx_csmap_q_and_a_h -->
1732
+
1733
+ <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################-->
1734
+ <?php
1735
+ }
1736
+ ?>
1737
+
1738
  <!--################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
1739
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
1740
 
2147
  </div> <!-- acx_csmap_q_and_a -->
2148
  </div> <!-- acx_csmap_q_and_a_h -->
2149
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2150
+ <?php
2151
+ $acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
2152
+ if($acx_csma_gdpr_status == "yes")
2153
+ {
2154
+ ?>
2155
+ <!-- ################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
2156
+
2157
+ <?php
2158
+
2159
+ $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2160
+
2161
+ <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; ?>">
2162
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">
2163
+ <?php _e("GDPR Settings","coming-soon-maintenance-mode-from-acurax"); ?>
2164
+ </span>
2165
+ <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>
2166
+ <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;">
2167
+ <div class="acx_csmap_q_and_a_inside">
2168
+ <label>
2169
+ <?php _e("Notice Text Color:","coming-soon-maintenance-mode-from-acurax"); ?><a onclick="acx_csma_restore_default('','#000000','acx_csma_footer_gdprcolor2');" class="acx_csmap_button_reset">[<?php _e("Reset To Default","coming-soon-maintenance-mode-from-acurax"); ?>]</a>
2170
+ </label>
2171
+ <div class="acx_qa_field">
2172
+ <input type="text" name="acx_csma_footer_gdprcolor2" id="acx_csma_footer_gdprcolor2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_footer_gdprcolor2']; ?>" size="20"/>
2173
+ <div style="position: absolute;" id="acx_csma_footer_gdprcolor2_div"></div>
2174
+ </div> <!-- acx_qa_field -->
2175
+ <label>
2176
+ <?php _e("Notice Text Hover Color (If Privacy Policy Link Is Present):","coming-soon-maintenance-mode-from-acurax"); ?><a onclick="acx_csma_restore_default('','#8f8f8f','acx_csma_footer_gdpr_hovercolor2');" class="acx_csmap_button_reset">[<?php _e("Reset To Default","coming-soon-maintenance-mode-from-acurax"); ?>]</a>
2177
+ </label>
2178
+ <div class="acx_qa_field">
2179
+ <input type="text" name="acx_csma_footer_gdpr_hovercolor2" id="acx_csma_footer_gdpr_hovercolor2" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['2']['acx_csma_footer_gdpr_hovercolor2']; ?>" size="20"/>
2180
+ <div style="position: absolute;" id="acx_csma_footer_gdpr_hovercolor2_div"></div>
2181
+ </div> <!-- acx_qa_field -->
2182
+
2183
+ </div> <!-- acx_csmap_q_and_a_inside -->
2184
+ </div> <!-- acx_csmap_q_and_a -->
2185
+ </div> <!-- acx_csmap_q_and_a_h -->
2186
+
2187
+ <!-- ################################# QUESTION AND ANSWER SET ENDS HERE ############################################-->
2188
+ <?php
2189
+ }
2190
+ ?>
2191
  <!--################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
2192
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2193
 
2674
  </div> <!-- acx_csmap_q_and_a -->
2675
  </div> <!-- acx_csmap_q_and_a_h -->
2676
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2677
+ <?php
2678
+ $acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
2679
+ if($acx_csma_gdpr_status == "yes")
2680
+ {
2681
+ ?>
2682
+ <!-- ################################# QUESTION AND ANSWER STARTS ENDS HERE #############################################-->
2683
+ <?php
2684
+
2685
+
2686
+ $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2687
+
2688
+ <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; ?>">
2689
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">
2690
+ <?php _e("GDPR Settings","coming-soon-maintenance-mode-from-acurax"); ?>
2691
+ </span>
2692
+ <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>
2693
+ <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;">
2694
+ <div class="acx_csmap_q_and_a_inside">
2695
+ <label>
2696
+ <?php _e("Notice Text Color:","coming-soon-maintenance-mode-from-acurax"); ?><a onclick="acx_csma_restore_default('','#ffffff','acx_csma_footer_gdprcolor3');" class="acx_csmap_button_reset">[<?php _e("Reset To Default","coming-soon-maintenance-mode-from-acurax"); ?>]</a>
2697
+ </label>
2698
+ <div class="acx_qa_field">
2699
+ <input type="text" name="acx_csma_footer_gdprcolor3" id="acx_csma_footer_gdprcolor3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_footer_gdprcolor3']; ?>" size="20"/>
2700
+ <div style="position: absolute;" id="acx_csma_footer_gdprcolor3_div"></div>
2701
+ </div> <!-- acx_qa_field -->
2702
+ <label>
2703
+ <?php _e("Notice Text Hover Color (If Privacy Policy Link Is Present):","coming-soon-maintenance-mode-from-acurax"); ?><a onclick="acx_csma_restore_default('','#fe7e01','acx_csma_footer_gdpr_hovercolor3');" class="acx_csmap_button_reset">[<?php _e("Reset To Default","coming-soon-maintenance-mode-from-acurax"); ?>]</a>
2704
+ </label>
2705
+ <div class="acx_qa_field">
2706
+ <input type="text" name="acx_csma_footer_gdpr_hovercolor3" id="acx_csma_footer_gdpr_hovercolor3" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['3']['acx_csma_footer_gdpr_hovercolor3']; ?>" size="20"/>
2707
+ <div style="position: absolute;" id="acx_csma_footer_gdpr_hovercolor3_div"></div>
2708
+ </div> <!-- acx_qa_field -->
2709
+
2710
+ </div> <!-- acx_csmap_q_and_a_inside -->
2711
+ </div> <!-- acx_csmap_q_and_a -->
2712
+ </div> <!-- acx_csmap_q_and_a_h -->
2713
+ <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
2714
+ <?php
2715
+ }
2716
+ ?>
2717
  <!--################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
2718
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
2719
 
3087
  </div> <!-- acx_csmap_q_and_a -->
3088
  </div> <!-- acx_csmap_q_and_a_h -->
3089
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
3090
+ <?php
3091
+
3092
+ $acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
3093
+ if($acx_csma_gdpr_status == "yes")
3094
+ {
3095
+ ?>
3096
+ <!-- ################################# QUESTION AND ANSWER STARTS ENDS HERE #############################################-->
3097
+
3098
+ <?php
3099
+ $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
3100
+
3101
+ <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; ?>">
3102
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">
3103
+ <?php _e("GDPR Settings","coming-soon-maintenance-mode-from-acurax"); ?>
3104
+ </span>
3105
+ <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>
3106
+ <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;">
3107
+ <div class="acx_csmap_q_and_a_inside">
3108
+ <label>
3109
+ <?php _e("Notice Text Color:","coming-soon-maintenance-mode-from-acurax"); ?><a onclick="acx_csma_restore_default('','#000000','acx_csma_footer_gdprcolor4');" class="acx_csmap_button_reset">[<?php _e("Reset To Default","coming-soon-maintenance-mode-from-acurax"); ?>]</a>
3110
+ </label>
3111
+ <div class="acx_qa_field">
3112
+ <input type="text" name="acx_csma_footer_gdprcolor4" id="acx_csma_footer_gdprcolor4" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_footer_gdprcolor4']; ?>" size="20"/>
3113
+ <div style="position: absolute;" id="acx_csma_footer_gdprcolor4_div"></div>
3114
+ </div> <!-- acx_qa_field -->
3115
+ <label>
3116
+ <?php _e("Notice Text Hover Color (If Privacy Policy Link Is Present):","coming-soon-maintenance-mode-from-acurax"); ?><a onclick="acx_csma_restore_default('','#adadad','acx_csma_footer_gdpr_hovercolor4');" class="acx_csmap_button_reset">[<?php _e("Reset To Default","coming-soon-maintenance-mode-from-acurax"); ?>]</a>
3117
+ </label>
3118
+ <div class="acx_qa_field">
3119
+ <input type="text" name="acx_csma_footer_gdpr_hovercolor4" id="acx_csma_footer_gdpr_hovercolor4" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['4']['acx_csma_footer_gdpr_hovercolor4']; ?>" size="20"/>
3120
+ <div style="position: absolute;" id="acx_csma_footer_gdpr_hovercolor4_div"></div>
3121
+ </div> <!-- acx_qa_field -->
3122
+
3123
+ </div> <!-- acx_csmap_q_and_a_inside -->
3124
+ </div> <!-- acx_csmap_q_and_a -->
3125
+ </div> <!-- acx_csmap_q_and_a_h -->
3126
+
3127
+ <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################--><?php
3128
+ }
3129
+ ?>
3130
  <!--################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
3131
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
3132
 
3500
  </div> <!-- acx_csmap_q_and_a -->
3501
  </div> <!-- acx_csmap_q_and_a_h -->
3502
  <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################-->
3503
+ <?php
3504
+
3505
+ $acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
3506
+ if($acx_csma_gdpr_status == "yes")
3507
+ {
3508
+ ?>
3509
+ <!-- ################################# QUESTION AND ANSWER STARTS ENDS HERE #############################################-->
3510
+
3511
+ <?php
3512
+ $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
3513
+
3514
+ <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; ?>">
3515
+ <span class="acx_csma_q" onclick="acx_csmap_easy_qa_toggle(<?php echo $acx_csmap_qa_id; ?>);">
3516
+ <?php _e("GDPR Settings","coming-soon-maintenance-mode-from-acurax"); ?>
3517
+ </span>
3518
+ <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>
3519
+ <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;">
3520
+ <div class="acx_csmap_q_and_a_inside">
3521
+ <label>
3522
+ <?php _e("Notice Text Color:","coming-soon-maintenance-mode-from-acurax"); ?><a onclick="acx_csma_restore_default('','#ffffff','acx_csma_footer_gdprcolor5');" class="acx_csmap_button_reset">[<?php _e("Reset To Default","coming-soon-maintenance-mode-from-acurax"); ?>]</a>
3523
+ </label>
3524
+ <div class="acx_qa_field">
3525
+ <input type="text" name="acx_csma_footer_gdprcolor5" id="acx_csma_footer_gdprcolor5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_footer_gdprcolor5']; ?>" size="20"/>
3526
+ <div style="position: absolute;" id="acx_csma_footer_gdprcolor5_div"></div>
3527
+ </div> <!-- acx_qa_field -->
3528
+ <label>
3529
+ <?php _e("Notice Text Hover Color (If Privacy Policy Link Is Present):","coming-soon-maintenance-mode-from-acurax"); ?><a onclick="acx_csma_restore_default('','#a19e99','acx_csma_footer_gdpr_hovercolor5');" class="acx_csmap_button_reset">[<?php _e("Reset To Default","coming-soon-maintenance-mode-from-acurax"); ?>]</a>
3530
+ </label>
3531
+ <div class="acx_qa_field">
3532
+ <input type="text" name="acx_csma_footer_gdpr_hovercolor5" id="acx_csma_footer_gdpr_hovercolor5" onblur="acx_csma_validate(this.value);" value="<?php echo $acx_csma_appearence_array['5']['acx_csma_footer_gdpr_hovercolor5']; ?>" size="20"/>
3533
+ <div style="position: absolute;" id="acx_csma_footer_gdpr_hovercolor5_div"></div>
3534
+ </div> <!-- acx_qa_field -->
3535
+
3536
+ </div> <!-- acx_csmap_q_and_a_inside -->
3537
+ </div> <!-- acx_csmap_q_and_a -->
3538
+ </div> <!-- acx_csmap_q_and_a_h -->
3539
+
3540
+ <!-- ################################# QUESTION AND ANSWER SET ENDS HERE #############################################--><?php
3541
+ }
3542
+ ?>
3543
  <!--################################ QUESTION AND ANSWER SET STARTS HERE ############################################ -->
3544
  <?php $acx_csmap_qa_id = $acx_csmap_qa_id+1; ?>
3545
 
3783
  jQuery(document).ready(function()
3784
  {
3785
  var acx_csma_cookie = getCookie("acx_csma_cookie");
3786
+ if(!acx_csma_cookie || acx_csma_cookie == "null")
3787
+ {
3788
+ setCookie("acx_csma_cookie",1);
3789
+ }
3790
+ acx_csma_cookie = getCookie("acx_csma_cookie");
3791
  acx_csma_show_div(acx_csma_cookie);
3792
  var acx_csma_temp_cookie = getCookie("acx_csma_temp_cookie");
3793
  acx_csma_rdbtn_show_div(acx_csma_temp_cookie);
includes/acx_csma_subscribers.php CHANGED
@@ -1,28 +1,18 @@
1
  <?php
2
  $acx_csma_message = "";
3
- $acx_csma_subscribe_details=get_option('acx_csma_subscribe_user_details');
4
- if($acx_csma_subscribe_details == "")
5
- {
6
- $acx_csma_subscribe_details = array();
7
- }
8
- else
9
- {
10
- if(is_serialized($acx_csma_subscribe_details))
11
- {
12
- $acx_csma_subscribe_details = unserialize($acx_csma_subscribe_details);
13
- }
14
- if(!is_array($acx_csma_subscribe_details))
15
- {
16
- $acx_csma_subscribe_details = array();
17
- }
18
- }
19
- if(is_serialized($acx_csma_subscribe_details ))
20
  {
21
  $acx_csma_subscribe_details = unserialize($acx_csma_subscribe_details);
 
 
 
 
22
  }
 
23
  if(ISSET($_GET['action']))
24
  {
25
- $del = $_GET['action'];
26
  }
27
  else
28
  {
@@ -30,7 +20,7 @@ else
30
  }
31
  if(ISSET($_GET['ID']))
32
  {
33
- $id = $_GET['ID'];
34
  }
35
  else
36
  {
@@ -58,7 +48,10 @@ $acx_csma_subscribe_details=get_option('acx_csma_subscribe_user_details');
58
  {
59
  $acx_csma_subscribe_details = unserialize($acx_csma_subscribe_details);
60
  }
61
-
 
 
 
62
  if ((ISSET( $_POST['action'] ) && $_POST['action'] == 'bulk_delete') || (ISSET( $_POST['action2'] ) && $_POST['action2'] == 'bulk_delete'))
63
  {
64
  $acx_csma_bulk_array=$_POST['acx_csma_checkbox'];
@@ -112,24 +105,15 @@ class Acx_Csma_My_List_Table extends WP_List_Table
112
  function acx_csma_data()
113
  {
114
  $acx_csma_subscribe_details=get_option('acx_csma_subscribe_user_details');
115
-
116
- if($acx_csma_subscribe_details == "")
117
- {
118
- $acx_csma_subscribe_details = array();
119
- }
120
- else
121
- {
122
- if(is_serialized($acx_csma_subscribe_details ))
123
- {
124
- $acx_csma_subscribe_details = unserialize($acx_csma_subscribe_details);
125
- }
126
- }
127
-
128
- if(is_serialized($acx_csma_subscribe_details ))
129
  {
130
  $acx_csma_subscribe_details = unserialize($acx_csma_subscribe_details);
131
- }
132
-
 
 
 
 
133
  $acx_csma_subscribe_details_new = array();
134
 
135
  foreach($acx_csma_subscribe_details as $key => $value)
1
  <?php
2
  $acx_csma_message = "";
3
+ $acx_csma_subscribe_details=get_option('acx_csma_subscribe_user_details');
4
+ if(is_serialized($acx_csma_subscribe_details))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  {
6
  $acx_csma_subscribe_details = unserialize($acx_csma_subscribe_details);
7
+ }
8
+ if($acx_csma_subscribe_details == "" || !is_array($acx_csma_subscribe_details))
9
+ {
10
+ $acx_csma_subscribe_details = array();
11
  }
12
+
13
  if(ISSET($_GET['action']))
14
  {
15
+ $del = sanitize_text_field(trim($_GET['action']));
16
  }
17
  else
18
  {
20
  }
21
  if(ISSET($_GET['ID']))
22
  {
23
+ $id = sanitize_text_field(trim($_GET['ID']));
24
  }
25
  else
26
  {
48
  {
49
  $acx_csma_subscribe_details = unserialize($acx_csma_subscribe_details);
50
  }
51
+ if($acx_csma_subscribe_details == "" || !is_array($acx_csma_subscribe_details))
52
+ {
53
+ $acx_csma_subscribe_details = array();
54
+ }
55
  if ((ISSET( $_POST['action'] ) && $_POST['action'] == 'bulk_delete') || (ISSET( $_POST['action2'] ) && $_POST['action2'] == 'bulk_delete'))
56
  {
57
  $acx_csma_bulk_array=$_POST['acx_csma_checkbox'];
105
  function acx_csma_data()
106
  {
107
  $acx_csma_subscribe_details=get_option('acx_csma_subscribe_user_details');
108
+ if(is_serialized($acx_csma_subscribe_details ))
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  {
110
  $acx_csma_subscribe_details = unserialize($acx_csma_subscribe_details);
111
+ }
112
+ if($acx_csma_subscribe_details == "" || !is_array($acx_csma_subscribe_details))
113
+ {
114
+ $acx_csma_subscribe_details = array();
115
+ }
116
+
117
  $acx_csma_subscribe_details_new = array();
118
 
119
  foreach($acx_csma_subscribe_details as $key => $value)
includes/defaults.php CHANGED
@@ -41,6 +41,8 @@ function acx_csma_appearence_array_default_value_setting($acx_csma_appearence_ar
41
  $acx_csma_footer_text1="&copy;". date("Y").__(" All rights reserved","coming-soon-maintenance-mode-from-acurax");
42
  $acx_csma_footer_text_color1="#ffffff";
43
  $acx_csma_custom_css_temp1= "";
 
 
44
  // *******************template2*********************
45
  $acx_csma_bg_color2="#e4e4e4";
46
  $acx_csma_logo2= ACX_CSMA_BASE_LOCATION . 'templates/2/images/logo.png';
@@ -81,6 +83,8 @@ function acx_csma_appearence_array_default_value_setting($acx_csma_appearence_ar
81
  $acx_csma_twitter_link2="";
82
  $acx_csma_linkedin_link2="";
83
  $acx_csma_custom_css_temp2="";
 
 
84
  //*******************template 3*******************
85
  $acx_csma_logo3= ACX_CSMA_BASE_LOCATION . 'templates/3/images/logo.png';
86
  $acx_csma_logo_choice3="image";
@@ -125,6 +129,9 @@ function acx_csma_appearence_array_default_value_setting($acx_csma_appearence_ar
125
  $acx_csma_twitter_link3="";
126
  $acx_csma_linkedin_link3="";
127
  $acx_csma_custom_css_temp3="";
 
 
 
128
  // ******************template 4*******************
129
  $acx_csma_background_image4 = ACX_CSMA_BASE_LOCATION . 'templates/4/images/body_bg.jpg';
130
  $acx_csma_logo4 = ACX_CSMA_BASE_LOCATION . 'templates/4/images/logo.png';
@@ -157,6 +164,8 @@ function acx_csma_appearence_array_default_value_setting($acx_csma_appearence_ar
157
  $acx_csma_twitter_link4="";
158
  $acx_csma_linkedin_link4="";
159
  $acx_csma_custom_css_temp4= "";
 
 
160
  //*******************template 5********************
161
  $acx_csma_bgcolor5="#e9eaec";
162
  $acx_csma_logo5= ACX_CSMA_BASE_LOCATION . 'templates/5/images/logo.png';
@@ -190,6 +199,9 @@ function acx_csma_appearence_array_default_value_setting($acx_csma_appearence_ar
190
  $acx_csma_twitter_link5="";
191
  $acx_csma_linkedin_link5="";
192
  $acx_csma_custom_css_temp5= "";
 
 
 
193
 
194
  $acx_csma_appearence_array_default['1'] = array(
195
  'acx_csma_background_image1'=>$acx_csma_background_image1,
@@ -229,6 +241,8 @@ $acx_csma_appearence_array_default['1'] = array(
229
  'acx_csma_footer_bgcolor1'=>sanitize_text_field($acx_csma_footer_bgcolor1),
230
  'acx_csma_footer_text1'=>sanitize_text_field($acx_csma_footer_text1),
231
  'acx_csma_footer_text_color1'=>sanitize_text_field($acx_csma_footer_text_color1),
 
 
232
  'acx_csma_custom_css_temp1'=>sanitize_text_field($acx_csma_custom_css_temp1)
233
  );
234
  $acx_csma_appearence_array_default['2'] = array(
@@ -270,7 +284,9 @@ $acx_csma_appearence_array_default['2'] = array(
270
  'acx_csma_fb_link2'=>esc_url_raw($acx_csma_fb_link2),
271
  'acx_csma_twitter_link2'=>esc_url_raw($acx_csma_twitter_link2),
272
  'acx_csma_linkedin_link2'=>esc_url_raw($acx_csma_linkedin_link2),
273
- 'acx_csma_custom_css_temp2'=>$acx_csma_custom_css_temp2
 
 
274
  );
275
  $acx_csma_appearence_array_default['3'] =array(
276
  'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice3),
@@ -315,7 +331,9 @@ $acx_csma_appearence_array_default['3'] =array(
315
  'acx_csma_fb_link3'=>esc_url_raw($acx_csma_fb_link3),
316
  'acx_csma_twitter_link3'=>esc_url_raw($acx_csma_twitter_link3),
317
  'acx_csma_linkedin_link3'=>esc_url_raw($acx_csma_linkedin_link3),
318
- 'acx_csma_custom_css_temp3'=>$acx_csma_custom_css_temp3
 
 
319
  );
320
  $acx_csma_appearence_array_default['4'] =array(
321
  'acx_csma_background_image4'=>$acx_csma_background_image4,
@@ -348,6 +366,8 @@ $acx_csma_appearence_array_default['4'] =array(
348
  'acx_csma_fb_link4'=>esc_url_raw($acx_csma_fb_link4),
349
  'acx_csma_twitter_link4'=>esc_url_raw($acx_csma_twitter_link4),
350
  'acx_csma_linkedin_link4'=>esc_url_raw($acx_csma_linkedin_link4),
 
 
351
  'acx_csma_custom_css_temp4'=>sanitize_text_field($acx_csma_custom_css_temp4)
352
  );
353
  $acx_csma_appearence_array_default['5'] =array(
@@ -382,6 +402,8 @@ $acx_csma_appearence_array_default['5'] =array(
382
  'acx_csma_fb_link5'=>esc_url_raw($acx_csma_fb_link5),
383
  'acx_csma_twitter_link5'=>esc_url_raw($acx_csma_twitter_link5),
384
  'acx_csma_linkedin_link5'=>esc_url_raw($acx_csma_linkedin_link5),
 
 
385
  'acx_csma_custom_css_temp5'=>sanitize_text_field($acx_csma_custom_css_temp5)
386
  );
387
  return $acx_csma_appearence_array_default;
41
  $acx_csma_footer_text1="&copy;". date("Y").__(" All rights reserved","coming-soon-maintenance-mode-from-acurax");
42
  $acx_csma_footer_text_color1="#ffffff";
43
  $acx_csma_custom_css_temp1= "";
44
+ $acx_csma_footer_gdprcolor1 = "#ffffff";
45
+ $acx_csma_footer_gdpr_hovercolor1 = "#e3e3e3";
46
  // *******************template2*********************
47
  $acx_csma_bg_color2="#e4e4e4";
48
  $acx_csma_logo2= ACX_CSMA_BASE_LOCATION . 'templates/2/images/logo.png';
83
  $acx_csma_twitter_link2="";
84
  $acx_csma_linkedin_link2="";
85
  $acx_csma_custom_css_temp2="";
86
+ $acx_csma_footer_gdprcolor2 = "#000000";
87
+ $acx_csma_footer_gdpr_hovercolor2 = "#8f8f8f";
88
  //*******************template 3*******************
89
  $acx_csma_logo3= ACX_CSMA_BASE_LOCATION . 'templates/3/images/logo.png';
90
  $acx_csma_logo_choice3="image";
129
  $acx_csma_twitter_link3="";
130
  $acx_csma_linkedin_link3="";
131
  $acx_csma_custom_css_temp3="";
132
+
133
+ $acx_csma_footer_gdprcolor3 = "#ffffff";
134
+ $acx_csma_footer_gdpr_hovercolor3 = "#fe7e01";
135
  // ******************template 4*******************
136
  $acx_csma_background_image4 = ACX_CSMA_BASE_LOCATION . 'templates/4/images/body_bg.jpg';
137
  $acx_csma_logo4 = ACX_CSMA_BASE_LOCATION . 'templates/4/images/logo.png';
164
  $acx_csma_twitter_link4="";
165
  $acx_csma_linkedin_link4="";
166
  $acx_csma_custom_css_temp4= "";
167
+ $acx_csma_footer_gdprcolor4 = "#000000";
168
+ $acx_csma_footer_gdpr_hovercolor4 = "#adadad";
169
  //*******************template 5********************
170
  $acx_csma_bgcolor5="#e9eaec";
171
  $acx_csma_logo5= ACX_CSMA_BASE_LOCATION . 'templates/5/images/logo.png';
199
  $acx_csma_twitter_link5="";
200
  $acx_csma_linkedin_link5="";
201
  $acx_csma_custom_css_temp5= "";
202
+
203
+ $acx_csma_footer_gdprcolor5 = "#ffffff";
204
+ $acx_csma_footer_gdpr_hovercolor5 = "#a19e99";
205
 
206
  $acx_csma_appearence_array_default['1'] = array(
207
  'acx_csma_background_image1'=>$acx_csma_background_image1,
241
  'acx_csma_footer_bgcolor1'=>sanitize_text_field($acx_csma_footer_bgcolor1),
242
  'acx_csma_footer_text1'=>sanitize_text_field($acx_csma_footer_text1),
243
  'acx_csma_footer_text_color1'=>sanitize_text_field($acx_csma_footer_text_color1),
244
+ 'acx_csma_footer_gdprcolor1'=>sanitize_text_field($acx_csma_footer_gdprcolor1),
245
+ 'acx_csma_footer_gdpr_hovercolor1'=>sanitize_text_field($acx_csma_footer_gdpr_hovercolor1),
246
  'acx_csma_custom_css_temp1'=>sanitize_text_field($acx_csma_custom_css_temp1)
247
  );
248
  $acx_csma_appearence_array_default['2'] = array(
284
  'acx_csma_fb_link2'=>esc_url_raw($acx_csma_fb_link2),
285
  'acx_csma_twitter_link2'=>esc_url_raw($acx_csma_twitter_link2),
286
  'acx_csma_linkedin_link2'=>esc_url_raw($acx_csma_linkedin_link2),
287
+ 'acx_csma_custom_css_temp2'=>$acx_csma_custom_css_temp2,
288
+ 'acx_csma_footer_gdprcolor2'=>sanitize_text_field($acx_csma_footer_gdprcolor2),
289
+ 'acx_csma_footer_gdpr_hovercolor2'=>sanitize_text_field($acx_csma_footer_gdpr_hovercolor2),
290
  );
291
  $acx_csma_appearence_array_default['3'] =array(
292
  'acx_csma_logo_choice'=>sanitize_text_field($acx_csma_logo_choice3),
331
  'acx_csma_fb_link3'=>esc_url_raw($acx_csma_fb_link3),
332
  'acx_csma_twitter_link3'=>esc_url_raw($acx_csma_twitter_link3),
333
  'acx_csma_linkedin_link3'=>esc_url_raw($acx_csma_linkedin_link3),
334
+ 'acx_csma_custom_css_temp3'=>$acx_csma_custom_css_temp3,
335
+ 'acx_csma_footer_gdprcolor3'=>sanitize_text_field($acx_csma_footer_gdprcolor3),
336
+ 'acx_csma_footer_gdpr_hovercolor3'=>sanitize_text_field($acx_csma_footer_gdpr_hovercolor3),
337
  );
338
  $acx_csma_appearence_array_default['4'] =array(
339
  'acx_csma_background_image4'=>$acx_csma_background_image4,
366
  'acx_csma_fb_link4'=>esc_url_raw($acx_csma_fb_link4),
367
  'acx_csma_twitter_link4'=>esc_url_raw($acx_csma_twitter_link4),
368
  'acx_csma_linkedin_link4'=>esc_url_raw($acx_csma_linkedin_link4),
369
+ 'acx_csma_footer_gdprcolor4'=>sanitize_text_field($acx_csma_footer_gdprcolor4),
370
+ 'acx_csma_footer_gdpr_hovercolor4'=>sanitize_text_field($acx_csma_footer_gdpr_hovercolor4),
371
  'acx_csma_custom_css_temp4'=>sanitize_text_field($acx_csma_custom_css_temp4)
372
  );
373
  $acx_csma_appearence_array_default['5'] =array(
402
  'acx_csma_fb_link5'=>esc_url_raw($acx_csma_fb_link5),
403
  'acx_csma_twitter_link5'=>esc_url_raw($acx_csma_twitter_link5),
404
  'acx_csma_linkedin_link5'=>esc_url_raw($acx_csma_linkedin_link5),
405
+ 'acx_csma_footer_gdprcolor5'=>sanitize_text_field($acx_csma_footer_gdprcolor5),
406
+ 'acx_csma_footer_gdpr_hovercolor5'=>sanitize_text_field($acx_csma_footer_gdpr_hovercolor5),
407
  'acx_csma_custom_css_temp5'=>sanitize_text_field($acx_csma_custom_css_temp5)
408
  );
409
  return $acx_csma_appearence_array_default;
js/color.js CHANGED
@@ -86,8 +86,21 @@ jQuery(document).ready(function($)
86
  jQuery('#acx_csma_footer_text_color1_div').hide();
87
  jQuery('#acx_csma_footer_text_color1_div').farbtastic('#acx_csma_footer_text_color1');
88
  jQuery('#acx_csma_footer_text_color1').click(function(){jQuery('#acx_csma_footer_text_color1_div').slideDown()});
89
- jQuery('#acx_csma_footer_text_color1').blur(function(){jQuery('#acx_csma_footer_text_color1_div').slideUp()});
90
-
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  // Template 2
92
  jQuery('#acx_csma_logo_text_color2_div').hide();
93
  jQuery('#acx_csma_logo_text_color2_div').farbtastic('#acx_csma_logo_text_color2');
@@ -173,6 +186,21 @@ jQuery(document).ready(function($)
173
  jQuery('#acx_csma_social_link_color2_div').farbtastic('#acx_csma_social_link_color2');
174
  jQuery('#acx_csma_social_link_color2').click(function(){jQuery('#acx_csma_social_link_color2_div').slideDown()});
175
  jQuery('#acx_csma_social_link_color2').blur(function(){jQuery('#acx_csma_social_link_color2_div').slideUp()});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  // Template 3
177
  jQuery('#acx_csma_logo_text_color3_div').hide();
178
  jQuery('#acx_csma_logo_text_color3_div').farbtastic('#acx_csma_logo_text_color3');
@@ -249,6 +277,20 @@ jQuery(document).ready(function($)
249
  jQuery('#acx_csma_social_link_title_color3_div').farbtastic('#acx_csma_social_link_title_color3');
250
  jQuery('#acx_csma_social_link_title_color3').click(function(){jQuery('#acx_csma_social_link_title_color3_div').slideDown()});
251
  jQuery('#acx_csma_social_link_title_color3').blur(function(){jQuery('#acx_csma_social_link_title_color3_div').slideUp()});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
252
  // Template 4
253
  jQuery('#acx_csma_logo_text_color4_div').hide();
254
  jQuery('#acx_csma_logo_text_color4_div').farbtastic('#acx_csma_logo_text_color4');
@@ -304,7 +346,20 @@ jQuery(document).ready(function($)
304
  jQuery('#acx_csma_subscription_btn_bg_color4_div').farbtastic('#acx_csma_subscription_btn_bg_color4');
305
  jQuery('#acx_csma_subscription_btn_bg_color4').click(function(){jQuery('#acx_csma_subscription_btn_bg_color4_div').slideDown()});
306
  jQuery('#acx_csma_subscription_btn_bg_color4').blur(function(){jQuery('#acx_csma_subscription_btn_bg_color4_div').slideUp()});
307
-
 
 
 
 
 
 
 
 
 
 
 
 
 
308
  // Template 5
309
  jQuery('#acx_csma_logo_text_color5_div').hide();
310
  jQuery('#acx_csma_logo_text_color5_div').farbtastic('#acx_csma_logo_text_color5');
@@ -381,6 +436,20 @@ jQuery(document).ready(function($)
381
  jQuery('#acx_csma_timer_color3').click(function(){jQuery('#acx_csma_timer_color3_div').slideDown()});
382
  jQuery('#acx_csma_timer_color3').blur(function(){jQuery('#acx_csma_timer_color3_div').slideUp()});
383
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
384
 
385
 
386
 
86
  jQuery('#acx_csma_footer_text_color1_div').hide();
87
  jQuery('#acx_csma_footer_text_color1_div').farbtastic('#acx_csma_footer_text_color1');
88
  jQuery('#acx_csma_footer_text_color1').click(function(){jQuery('#acx_csma_footer_text_color1_div').slideDown()});
89
+ jQuery('#acx_csma_footer_text_color1').blur(function(){jQuery('#acx_csma_footer_text_color1_div').slideUp()});
90
+ if(jQuery("#acx_csma_footer_gdprcolor1").length > 0)
91
+ {
92
+ jQuery('#acx_csma_footer_gdprcolor1_div').hide();
93
+ jQuery('#acx_csma_footer_gdprcolor1_div').farbtastic('#acx_csma_footer_gdprcolor1');
94
+ jQuery('#acx_csma_footer_gdprcolor1').click(function(){jQuery('#acx_csma_footer_gdprcolor1_div').slideDown()});
95
+ jQuery('#acx_csma_footer_gdprcolor1').blur(function(){jQuery('#acx_csma_footer_gdprcolor1_div').slideUp()});
96
+ }
97
+ if(jQuery("#acx_csma_footer_gdpr_hovercolor1").length > 0)
98
+ {
99
+ jQuery('#acx_csma_footer_gdpr_hovercolor1_div').hide();
100
+ jQuery('#acx_csma_footer_gdpr_hovercolor1_div').farbtastic('#acx_csma_footer_gdpr_hovercolor1');
101
+ jQuery('#acx_csma_footer_gdpr_hovercolor1').click(function(){jQuery('#acx_csma_footer_gdpr_hovercolor1_div').slideDown()});
102
+ jQuery('#acx_csma_footer_gdpr_hovercolor1').blur(function(){jQuery('#acx_csma_footer_gdpr_hovercolor1_div').slideUp()});
103
+ }
104
  // Template 2
105
  jQuery('#acx_csma_logo_text_color2_div').hide();
106
  jQuery('#acx_csma_logo_text_color2_div').farbtastic('#acx_csma_logo_text_color2');
186
  jQuery('#acx_csma_social_link_color2_div').farbtastic('#acx_csma_social_link_color2');
187
  jQuery('#acx_csma_social_link_color2').click(function(){jQuery('#acx_csma_social_link_color2_div').slideDown()});
188
  jQuery('#acx_csma_social_link_color2').blur(function(){jQuery('#acx_csma_social_link_color2_div').slideUp()});
189
+ if(jQuery("#acx_csma_footer_gdprcolor2").length > 0)
190
+ {
191
+ jQuery('#acx_csma_footer_gdprcolor2_div').hide();
192
+ jQuery('#acx_csma_footer_gdprcolor2_div').farbtastic('#acx_csma_footer_gdprcolor2');
193
+ jQuery('#acx_csma_footer_gdprcolor2').click(function(){jQuery('#acx_csma_footer_gdprcolor2_div').slideDown()});
194
+ jQuery('#acx_csma_footer_gdprcolor2').blur(function(){jQuery('#acx_csma_footer_gdprcolor2_div').slideUp()});
195
+ }
196
+ if(jQuery("#acx_csma_footer_gdpr_hovercolor2").length > 0)
197
+ {
198
+ jQuery('#acx_csma_footer_gdpr_hovercolor2_div').hide();
199
+ jQuery('#acx_csma_footer_gdpr_hovercolor2_div').farbtastic('#acx_csma_footer_gdpr_hovercolor2');
200
+ jQuery('#acx_csma_footer_gdpr_hovercolor2').click(function(){jQuery('#acx_csma_footer_gdpr_hovercolor2_div').slideDown()});
201
+ jQuery('#acx_csma_footer_gdpr_hovercolor2').blur(function(){jQuery('#acx_csma_footer_gdpr_hovercolor2_div').slideUp()});
202
+ }
203
+
204
  // Template 3
205
  jQuery('#acx_csma_logo_text_color3_div').hide();
206
  jQuery('#acx_csma_logo_text_color3_div').farbtastic('#acx_csma_logo_text_color3');
277
  jQuery('#acx_csma_social_link_title_color3_div').farbtastic('#acx_csma_social_link_title_color3');
278
  jQuery('#acx_csma_social_link_title_color3').click(function(){jQuery('#acx_csma_social_link_title_color3_div').slideDown()});
279
  jQuery('#acx_csma_social_link_title_color3').blur(function(){jQuery('#acx_csma_social_link_title_color3_div').slideUp()});
280
+ if(jQuery("#acx_csma_footer_gdprcolor3").length > 0)
281
+ {
282
+ jQuery('#acx_csma_footer_gdprcolor3_div').hide();
283
+ jQuery('#acx_csma_footer_gdprcolor3_div').farbtastic('#acx_csma_footer_gdprcolor3');
284
+ jQuery('#acx_csma_footer_gdprcolor3').click(function(){jQuery('#acx_csma_footer_gdprcolor3_div').slideDown()});
285
+ jQuery('#acx_csma_footer_gdprcolor3').blur(function(){jQuery('#acx_csma_footer_gdprcolor3_div').slideUp()});
286
+ }
287
+ if(jQuery("#acx_csma_footer_gdpr_hovercolor3").length > 0)
288
+ {
289
+ jQuery('#acx_csma_footer_gdpr_hovercolor3_div').hide();
290
+ jQuery('#acx_csma_footer_gdpr_hovercolor3_div').farbtastic('#acx_csma_footer_gdpr_hovercolor3');
291
+ jQuery('#acx_csma_footer_gdpr_hovercolor3').click(function(){jQuery('#acx_csma_footer_gdpr_hovercolor3_div').slideDown()});
292
+ jQuery('#acx_csma_footer_gdpr_hovercolor3').blur(function(){jQuery('#acx_csma_footer_gdpr_hovercolor3_div').slideUp()});
293
+ }
294
  // Template 4
295
  jQuery('#acx_csma_logo_text_color4_div').hide();
296
  jQuery('#acx_csma_logo_text_color4_div').farbtastic('#acx_csma_logo_text_color4');
346
  jQuery('#acx_csma_subscription_btn_bg_color4_div').farbtastic('#acx_csma_subscription_btn_bg_color4');
347
  jQuery('#acx_csma_subscription_btn_bg_color4').click(function(){jQuery('#acx_csma_subscription_btn_bg_color4_div').slideDown()});
348
  jQuery('#acx_csma_subscription_btn_bg_color4').blur(function(){jQuery('#acx_csma_subscription_btn_bg_color4_div').slideUp()});
349
+ if(jQuery("#acx_csma_footer_gdprcolor4").length > 0)
350
+ {
351
+ jQuery('#acx_csma_footer_gdprcolor4_div').hide();
352
+ jQuery('#acx_csma_footer_gdprcolor4_div').farbtastic('#acx_csma_footer_gdprcolor4');
353
+ jQuery('#acx_csma_footer_gdprcolor4').click(function(){jQuery('#acx_csma_footer_gdprcolor4_div').slideDown()});
354
+ jQuery('#acx_csma_footer_gdprcolor4').blur(function(){jQuery('#acx_csma_footer_gdprcolor4_div').slideUp()});
355
+ }
356
+ if(jQuery("#acx_csma_footer_gdpr_hovercolor4").length > 0)
357
+ {
358
+ jQuery('#acx_csma_footer_gdpr_hovercolor4_div').hide();
359
+ jQuery('#acx_csma_footer_gdpr_hovercolor4_div').farbtastic('#acx_csma_footer_gdpr_hovercolor4');
360
+ jQuery('#acx_csma_footer_gdpr_hovercolor4').click(function(){jQuery('#acx_csma_footer_gdpr_hovercolor4_div').slideDown()});
361
+ jQuery('#acx_csma_footer_gdpr_hovercolor4').blur(function(){jQuery('#acx_csma_footer_gdpr_hovercolor4_div').slideUp()});
362
+ }
363
  // Template 5
364
  jQuery('#acx_csma_logo_text_color5_div').hide();
365
  jQuery('#acx_csma_logo_text_color5_div').farbtastic('#acx_csma_logo_text_color5');
436
  jQuery('#acx_csma_timer_color3').click(function(){jQuery('#acx_csma_timer_color3_div').slideDown()});
437
  jQuery('#acx_csma_timer_color3').blur(function(){jQuery('#acx_csma_timer_color3_div').slideUp()});
438
 
439
+ if(jQuery("#acx_csma_footer_gdprcolor5").length > 0)
440
+ {
441
+ jQuery('#acx_csma_footer_gdprcolor5_div').hide();
442
+ jQuery('#acx_csma_footer_gdprcolor5_div').farbtastic('#acx_csma_footer_gdprcolor5');
443
+ jQuery('#acx_csma_footer_gdprcolor5').click(function(){jQuery('#acx_csma_footer_gdprcolor5_div').slideDown()});
444
+ jQuery('#acx_csma_footer_gdprcolor5').blur(function(){jQuery('#acx_csma_footer_gdprcolor5_div').slideUp()});
445
+ }
446
+ if(jQuery("#acx_csma_footer_gdpr_hovercolor5").length > 0)
447
+ {
448
+ jQuery('#acx_csma_footer_gdpr_hovercolor5_div').hide();
449
+ jQuery('#acx_csma_footer_gdpr_hovercolor5_div').farbtastic('#acx_csma_footer_gdpr_hovercolor5');
450
+ jQuery('#acx_csma_footer_gdpr_hovercolor5').click(function(){jQuery('#acx_csma_footer_gdpr_hovercolor5_div').slideDown()});
451
+ jQuery('#acx_csma_footer_gdpr_hovercolor5').blur(function(){jQuery('#acx_csma_footer_gdpr_hovercolor5_div').slideUp()});
452
+ }
453
 
454
 
455
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.acurax.com/
4
  Tags: under construction,coming soon,under maintenance,maintenance mode,site offline,work in progress,website launch,launching page
5
  Requires at least: 2.8
6
  Requires PHP: 5.3
7
- Tested up to: 4.9.4
8
  Stable tag: trunk
9
  License: GPLv2 or later
10
 
@@ -14,6 +14,8 @@ The easiest and feature-rich plugin to show under construction, coming soon, mai
14
 
15
  This [Under Construction or Maintenance Mode](http://www.acurax.com/products/under-construction-maintenance-mode-wordpress-plugin/ "Under Construction or Maintenance Mode") Plugin is a simple and easy to configure Coming Soon Landing Page plugin with the best available features and customizable options.
16
 
 
 
17
  Demo/Live Preview : [Template 1](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=1 "Template 1") | [Template 2](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=2 "Template 2") | [Template 3](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=3 "Template 3") | [Template 4](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=4 "Template 4") | [Template 5](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=5 "Template 5") | [Custom HTML](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=0 "Custom HTML")
18
 
19
  Plugin itself is packed with 5 Responsive Landing Page templates with social media icons, custom HTML blocks count down timer to show the date and time of website launch etc. Check screenshots for a clear picture.
@@ -34,11 +36,19 @@ Feature Highlights
34
 
35
  ★ SEO Configuration.
36
 
 
 
37
  ★ Advanced Access/Restriction Settings.
38
 
39
  ★ Custom HTML Page Support
40
 
41
 
 
 
 
 
 
 
42
  **Features in Detail**
43
 
44
  * Upload your own logo (image or text) : You can upload or choose logo from your media library, or can use text if you don't have a logo image.
@@ -167,26 +177,42 @@ Yes, From Version 2.5.1, you have the option in Misc page to enable/disable send
167
 
168
  == Screenshots ==
169
 
170
- 1. General Settings Page
171
- 2. Template 1 Preview - [Click Here for Live Preview](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=1 "Template 1 Live Preview")
172
- 3. Template 1 Customization Options
173
- 4. Template 2 Preview - [Click Here for Live Preview](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=2 "Template 2 Live Preview")
174
- 5. Template 2 Customization Options
175
- 6. Template 3 Preview - [Click Here for Live Preview](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=3 "Template 3 Live Preview")
176
- 7. Template 3 Customization Options
177
- 8. Template 4 Preview - [Click Here for Live Preview](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=4 "Template 4 Live Preview")
178
- 9. Template 4 Customization Options
179
- 10. Template 5 Preview - [Click Here for Live Preview](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=5 "Template 5 Live Preview")
180
- 11. Template 5 Customization Options
181
- 12. Template Custom HTML Options
182
- 13. Maintenance Mode Subscribers List
183
- 14. This is how Template A From Service Theme Pack 1 Premium Addon Looks Like - [Click Here for Live Preview](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=6 "Service Theme Pack 1 - Template A Live Preview")
184
- 15. This is how Template B From Service Theme Pack 1 Premium Addon Looks Like - [Click Here for Live Preview](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=7 "Service Theme Pack 1 - Template B Live Preview")
185
- 16. This is how Template C From Service Theme Pack 1 Premium Addon Looks Like - [Click Here for Live Preview](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=8 "Service Theme Pack 1 - Template C Live Preview")
186
- 17. This is how Template D From Service Theme Pack 1 Premium Addon Looks Like - [Click Here for Live Preview](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=9 "Service Theme Pack 1 - Template D Live Preview")
 
 
 
 
 
 
 
 
187
 
188
  == Upgrade Notice ==
189
 
 
 
 
 
 
 
 
 
190
  = 2.5.7 =
191
  Fix - Security Improvements
192
  Fix - Perfomance Improvements
@@ -286,6 +312,13 @@ Stable Release
286
 
287
  == Changelog ==
288
 
 
 
 
 
 
 
 
289
  = 2.5.7 =
290
  Fix - Security Improvements
291
  Fix - Perfomance Improvements
4
  Tags: under construction,coming soon,under maintenance,maintenance mode,site offline,work in progress,website launch,launching page
5
  Requires at least: 2.8
6
  Requires PHP: 5.3
7
+ Tested up to: 4.9.8
8
  Stable tag: trunk
9
  License: GPLv2 or later
10
 
14
 
15
  This [Under Construction or Maintenance Mode](http://www.acurax.com/products/under-construction-maintenance-mode-wordpress-plugin/ "Under Construction or Maintenance Mode") Plugin is a simple and easy to configure Coming Soon Landing Page plugin with the best available features and customizable options.
16
 
17
+ Check Screenshots to See How Your Coming Soon Page Looks In Multiple Devices
18
+
19
  Demo/Live Preview : [Template 1](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=1 "Template 1") | [Template 2](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=2 "Template 2") | [Template 3](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=3 "Template 3") | [Template 4](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=4 "Template 4") | [Template 5](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=5 "Template 5") | [Custom HTML](http://www.acurax.com/construction-maintenance-mode-acurax-demo.php?acx_csma_preview=0 "Custom HTML")
20
 
21
  Plugin itself is packed with 5 Responsive Landing Page templates with social media icons, custom HTML blocks count down timer to show the date and time of website launch etc. Check screenshots for a clear picture.
36
 
37
  ★ SEO Configuration.
38
 
39
+ ★ GDPR and Privacy Policy Options.
40
+
41
  ★ Advanced Access/Restriction Settings.
42
 
43
  ★ Custom HTML Page Support
44
 
45
 
46
+ GDPR compliance
47
+
48
+ This plugin is completely compliant with GDPR Policies,
49
+ Check Misc Page under our plugin settings menu for more info.
50
+
51
+
52
  **Features in Detail**
53
 
54
  * Upload your own logo (image or text) : You can upload or choose logo from your media library, or can use text if you don't have a logo image.
177
 
178
  == Screenshots ==
179
 
180
+ 1. Under Construction Page Theme 1 Preview on Multiple Devices
181
+ 2. Under Construction Page Theme 1 Preview on Desktop
182
+ 3. Under Construction Page Theme 1 Preview on Tablets
183
+ 4. Under Construction Page Theme 1 Preview on Mobile Devices
184
+ 5. Coming Soon Page Theme 2 Preview on Multiple Devices
185
+ 6. Coming Soon Page Theme 2 Preview on Desktop
186
+ 7. Coming Soon Page Theme 2 Preview on Tablets
187
+ 8. Coming Soon Page Theme 2 Preview on Mobile Devices
188
+ 9. Scheduled Maintenance Page Theme 3 Preview on Multiple Devices
189
+ 10. Scheduled Maintenance Page Theme 3 Preview on Desktop
190
+ 11. Scheduled Maintenance Page Theme 3 Preview on Tablets
191
+ 12. Scheduled Maintenance Page Theme 3 Preview on Mobile Devices
192
+ 13. Under Construction Page Theme 4 Preview on Multiple Devices
193
+ 14. Under Construction Page Theme 4 Preview on Desktop
194
+ 15. Under Construction Page Theme 4 Preview on Tablets
195
+ 16. Under Construction Page Theme 4 Preview on Mobile Devices
196
+ 17. Coming Soon Page Theme 5 Preview on Multiple Devices
197
+ 18. Coming Soon Page Theme 5 Preview on Desktop
198
+ 19. Coming Soon Page Theme 5 Preview on Tablets
199
+ 20. Coming Soon Page Theme 5 Preview on Mobile Devices
200
+ 21. This is how Template A From Service Theme Pack 1 Premium Addon Looks Like
201
+ 22. This is how Template B From Service Theme Pack 1 Premium Addon Looks Like
202
+ 23. This is how Template C From Service Theme Pack 1 Premium Addon Looks Like
203
+ 24. This is how Template D From Service Theme Pack 1 Premium Addon Looks Like
204
+
205
 
206
  == Upgrade Notice ==
207
 
208
+ = 2.5.8 =
209
+ Fix - Security Improvements
210
+ Fix - Perfomance Improvements
211
+ Fix - User Role Issue
212
+ Added - GDPR Compliance
213
+ Added - GDPR Compliance Privacy Options
214
+
215
+
216
  = 2.5.7 =
217
  Fix - Security Improvements
218
  Fix - Perfomance Improvements
312
 
313
  == Changelog ==
314
 
315
+ = 2.5.8 =
316
+ Fix - Security Improvements
317
+ Fix - Perfomance Improvements
318
+ Fix - User Role Issue
319
+ Added - GDPR Compliance
320
+ Added - GDPR Compliance Privacy Options
321
+
322
  = 2.5.7 =
323
  Fix - Security Improvements
324
  Fix - Perfomance Improvements
templates/1/images/close.png ADDED
Binary file
templates/1/index.php CHANGED
@@ -57,6 +57,10 @@ if($acx_csma_meta_keywords!="")
57
  {
58
  background-color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_input_bg_color1']; ?>;
59
  }
 
 
 
 
60
  </style>
61
  <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
62
  <link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>" type="image/png">
@@ -93,6 +97,10 @@ else
93
  {
94
  $new_class="";
95
  }
 
 
 
 
96
  ?> <div class="wrapper" >
97
  <div class="canvas960 <?php echo $new_class; ?>">
98
  <div id="header">
@@ -270,11 +278,75 @@ else
270
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="<?php echo $acx_s_name_singular; ?>">
271
  <input type="hidden" id="acx_csma_email" name="email" placeholder="<?php echo $acx_s_email_singular; ?>" >
272
  <br/>
273
- <input type="button" id="acx_csma_submit" onclick="acx_csma_validate_email();" value="<?php echo $acx_next_singular; ?>" class="submit" >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  <?php }
275
  else if($acx_csma_show_subscription_name == 0){ ?>
276
  <input type="text" id="acx_csma_email" name="email" placeholder="<?php echo $acx_s_email_singular; ?>" >
277
  <br/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
278
  <input type="button" id="acx_csma_submit" onclick="acx_csma_validate_email();" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_btn_text1']); ?>" class="submit" >
279
  <?php
280
  }
@@ -283,7 +355,6 @@ else
283
  </form>
284
  <?php
285
  }
286
-
287
  if($acx_csma_custom_html_bottom_sub1 != "")
288
  { ?>
289
  <div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_1" id="acx_csma_top_1">
@@ -298,7 +369,19 @@ else
298
  <?php $acx_csma_footer_text1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_text1'];
299
  $acx_csma_footer_text1 = acx_csma_text_after_save_hook_fn($acx_csma_footer_text1);
300
  ?>
301
- <div class="timer_head footer" style="background:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_bgcolor1']; ?>;color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_text_color1']; ?>"><?php echo $acx_csma_footer_text1; ?></div><!-- timer_head -->
 
 
 
 
 
 
 
 
 
 
 
 
302
  </div><!-- inline_block -->
303
  </div><!-- canvas960 -->
304
  </div><!-- wrapper -->
@@ -333,12 +416,21 @@ if($acx_csma_show_subscription == 1)
333
  $acx_next_singular=$acx_subs_next_arr['singular'];
334
  ?>
335
  var acx_csma_form_status=1;
 
 
 
 
 
 
 
 
336
  function acx_csma_validate_email()
337
  {
338
  <?php
339
  if($acx_csma_show_subscription_name == 0)
340
  {?>
341
 
 
342
  var acx_csma_email = document.getElementById('acx_csma_email').value;
343
  var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
344
  if (acx_csma_email=='')
@@ -352,18 +444,32 @@ function acx_csma_validate_email()
352
  jQuery("#acx_csma_invalid").show();
353
  jQuery("#acx_csma_email").hide();
354
  jQuery("#acx_csma_submit").hide();
 
355
  setTimeout(function()
356
  {
357
  jQuery("#acx_csma_invalid").hide();
358
  jQuery("#acx_csma_email").show();
359
- jQuery("#acx_csma_submit").show();
 
 
360
  }, 3000);
361
 
362
 
363
  return false;
364
  }
365
- else
366
  {
 
 
 
 
 
 
 
 
 
 
 
367
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
368
  jQuery('body').append(acx_load);
369
 
@@ -380,11 +486,14 @@ function acx_csma_validate_email()
380
  jQuery("#acx_csma_success").show();
381
  jQuery("#acx_csma_email").hide();
382
  jQuery("#acx_csma_submit").hide();
 
383
  setTimeout(function()
384
  {
385
  jQuery("#acx_csma_success").hide();
386
  jQuery("#acx_csma_email").show();
387
  jQuery("#acx_csma_submit").show();
 
 
388
  }, 3000);
389
  }
390
  else{
@@ -392,6 +501,7 @@ function acx_csma_validate_email()
392
  jQuery("#acx_csma_email").hide();
393
  jQuery("#acx_csma_submit").hide();
394
  jQuery("#acx_csma_error").show();
 
395
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
396
  setTimeout(function()
397
  {
@@ -399,6 +509,8 @@ function acx_csma_validate_email()
399
  jQuery("#acx_csma_error").hide();
400
  jQuery("#acx_csma_email").show();
401
  jQuery("#acx_csma_submit").show();
 
 
402
  }, 3000);
403
 
404
  }
@@ -412,20 +524,23 @@ function acx_csma_validate_email()
412
  var acx_csma_name_hidden=document.getElementById('acx_csma_name_hidden').value;
413
  if(acx_csma_form_status== 1)
414
  {
415
- if(acx_csma_name_hidden=="")
416
- {
417
- alert('<?php echo $acx_name_val_singular; ?>');
418
- acx_csma_form_status=1;
419
- return false;
420
- }
421
- else{
422
- document.getElementById('acx_csma_name_hidden').type = 'hidden';
423
- document.getElementById('acx_csma_email').type = 'email';
424
- jQuery("#acx_csma_email").show();
425
- document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_subscribe_btn_text1; ?>";
426
- acx_csma_form_status=2;
427
- return false;
428
- }
 
 
 
429
  }
430
  else if(acx_csma_form_status==2)
431
  {
@@ -443,19 +558,34 @@ function acx_csma_validate_email()
443
  jQuery("#acx_csma_email").hide();
444
  jQuery("#acx_csma_submit").hide();
445
  jQuery("#acx_csma_invalid").show();
 
446
  setTimeout(function()
447
  {
448
  jQuery("#acx_csma_invalid").hide();
449
  document.getElementById('acx_csma_name_hidden').type = 'text';
450
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
451
  jQuery("#acx_csma_submit").show();
 
452
  acx_csma_form_status=1;
453
 
454
  }, 3000);
455
  return false;
456
- }
457
  else
458
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
459
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
460
  jQuery('body').append(acx_load);
461
 
@@ -472,7 +602,7 @@ function acx_csma_validate_email()
472
  document.getElementById('acx_csma_name_hidden').value="";
473
  jQuery("#acx_csma_email").hide();
474
  jQuery("#acx_csma_submit").hide();
475
-
476
  jQuery("#acx_csma_success").show();
477
  setTimeout(function()
478
  {
@@ -491,6 +621,8 @@ function acx_csma_validate_email()
491
  jQuery("#acx_csma_submit").hide();
492
  jQuery("#acx_csma_error").show();
493
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
 
 
494
  setTimeout(function()
495
  {
496
  jQuery("#acx_csma_error").html('');
@@ -498,6 +630,8 @@ function acx_csma_validate_email()
498
  document.getElementById('acx_csma_name_hidden').type = 'text';
499
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
500
  jQuery("#acx_csma_submit").show();
 
 
501
  acx_csma_form_status=1;
502
 
503
  }, 3000);
@@ -658,6 +792,21 @@ function updateCounter()
658
  }
659
  }
660
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
661
  </script>
662
  <?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id); ?>
663
  </body>
57
  {
58
  background-color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_input_bg_color1']; ?>;
59
  }
60
+ .acx_csma_gdpr_notice .acx_csma_info_lb:hover
61
+ {
62
+ color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_gdpr_hovercolor1']; ?> !important;
63
+ }
64
  </style>
65
  <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
66
  <link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>" type="image/png">
97
  {
98
  $new_class="";
99
  }
100
+ $acx_csma_form_text = get_option('acx_csma_form_text');
101
+ $acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
102
+ $acx_csma_privacy_policy_title = get_option('acx_csma_privacy_policy_title');
103
+ $acx_csma_privacy_policy_desc = get_option('acx_csma_privacy_policy_desc');
104
  ?> <div class="wrapper" >
105
  <div class="canvas960 <?php echo $new_class; ?>">
106
  <div id="header">
278
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="<?php echo $acx_s_name_singular; ?>">
279
  <input type="hidden" id="acx_csma_email" name="email" placeholder="<?php echo $acx_s_email_singular; ?>" >
280
  <br/>
281
+ <div class="acx_csma_privacy_cvr" style="display:none;">
282
+ <?php
283
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
284
+ {
285
+ ?>
286
+ <span class="acx_csma_gdpr_notice" style='color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_gdprcolor1']; ?>;'>
287
+ <input type="checkbox" name="acx_csma_gdpr_accept" id="acx_csma_gdpr_accept" value="yes">
288
+ <?php
289
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
290
+ {
291
+ ?>
292
+ <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_gdprcolor1']; ?>;'>
293
+ <?php
294
+ }
295
+ ?>
296
+
297
+ <?php echo $acx_csma_form_text;?>
298
+ <?php
299
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
300
+ {
301
+ ?>
302
+ </a>
303
+ <?php
304
+
305
+ }
306
+ ?>
307
+ </span>
308
+ <?php
309
+ }
310
+ ?>
311
+ </div>
312
+ <br>
313
+ <input type="button" id="acx_csma_submit" onclick="acx_csma_validate_email();" value="<?php echo $acx_next_singular; ?>" class="submit">
314
  <?php }
315
  else if($acx_csma_show_subscription_name == 0){ ?>
316
  <input type="text" id="acx_csma_email" name="email" placeholder="<?php echo $acx_s_email_singular; ?>" >
317
  <br/>
318
+ <div class="acx_csma_privacy_cvr" style="display:none;">
319
+ <?php
320
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
321
+ {
322
+ ?>
323
+ <span class="acx_csma_gdpr_notice">
324
+ <input type="checkbox" name="acx_csma_gdpr_accept" id="acx_csma_gdpr_accept" value="yes">
325
+ <?php
326
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
327
+ {
328
+ ?>
329
+ <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_gdprcolor1'];?>;'>
330
+ <?php
331
+ }
332
+ ?>
333
+
334
+ <?php echo $acx_csma_form_text;?>
335
+ <?php
336
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
337
+ {
338
+ ?>
339
+ </a>
340
+ <?php
341
+
342
+ }
343
+ ?>
344
+ </span>
345
+ <?php
346
+ }
347
+ ?>
348
+ </div>
349
+ <br>
350
  <input type="button" id="acx_csma_submit" onclick="acx_csma_validate_email();" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_btn_text1']); ?>" class="submit" >
351
  <?php
352
  }
355
  </form>
356
  <?php
357
  }
 
358
  if($acx_csma_custom_html_bottom_sub1 != "")
359
  { ?>
360
  <div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_1" id="acx_csma_top_1">
369
  <?php $acx_csma_footer_text1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_text1'];
370
  $acx_csma_footer_text1 = acx_csma_text_after_save_hook_fn($acx_csma_footer_text1);
371
  ?>
372
+ <div class="timer_head footer" style="background:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_bgcolor1']; ?>;color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_text_color1']; ?>"><?php echo $acx_csma_footer_text1
373
+ ; ?>
374
+ <?php
375
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
376
+ {
377
+ ?>
378
+
379
+ | <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_text_color1']; ?>;'><?php echo $acx_csma_privacy_policy_title ;?></a>
380
+ <?php
381
+ }
382
+
383
+ ?>
384
+ </div><!-- timer_head -->
385
  </div><!-- inline_block -->
386
  </div><!-- canvas960 -->
387
  </div><!-- wrapper -->
416
  $acx_next_singular=$acx_subs_next_arr['singular'];
417
  ?>
418
  var acx_csma_form_status=1;
419
+ <?php
420
+ if($acx_csma_show_subscription_name == 0 && $acx_csma_gdpr_status == "yes")
421
+ {?>
422
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
423
+ jQuery(".acx_csma_privacy_cvr").show();
424
+ <?php
425
+ }
426
+ ?>
427
  function acx_csma_validate_email()
428
  {
429
  <?php
430
  if($acx_csma_show_subscription_name == 0)
431
  {?>
432
 
433
+
434
  var acx_csma_email = document.getElementById('acx_csma_email').value;
435
  var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
436
  if (acx_csma_email=='')
444
  jQuery("#acx_csma_invalid").show();
445
  jQuery("#acx_csma_email").hide();
446
  jQuery("#acx_csma_submit").hide();
447
+ jQuery(".acx_csma_privacy_cvr").hide();
448
  setTimeout(function()
449
  {
450
  jQuery("#acx_csma_invalid").hide();
451
  jQuery("#acx_csma_email").show();
452
+ jQuery("#acx_csma_submit").show();
453
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
454
+ jQuery(".acx_csma_privacy_cvr").show();
455
  }, 3000);
456
 
457
 
458
  return false;
459
  }
460
+ else
461
  {
462
+ <?php
463
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
464
+ {
465
+ ?>
466
+ if(jQuery("#acx_csma_gdpr_accept:checked").val() !== "yes")
467
+ {
468
+ return false;
469
+ }
470
+ <?php
471
+ }
472
+ ?>
473
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
474
  jQuery('body').append(acx_load);
475
 
486
  jQuery("#acx_csma_success").show();
487
  jQuery("#acx_csma_email").hide();
488
  jQuery("#acx_csma_submit").hide();
489
+ jQuery(".acx_csma_privacy_cvr").hide();
490
  setTimeout(function()
491
  {
492
  jQuery("#acx_csma_success").hide();
493
  jQuery("#acx_csma_email").show();
494
  jQuery("#acx_csma_submit").show();
495
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
496
+ jQuery(".acx_csma_privacy_cvr").show();
497
  }, 3000);
498
  }
499
  else{
501
  jQuery("#acx_csma_email").hide();
502
  jQuery("#acx_csma_submit").hide();
503
  jQuery("#acx_csma_error").show();
504
+ jQuery(".acx_csma_privacy_cvr").hide();
505
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
506
  setTimeout(function()
507
  {
509
  jQuery("#acx_csma_error").hide();
510
  jQuery("#acx_csma_email").show();
511
  jQuery("#acx_csma_submit").show();
512
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
513
+ jQuery(".acx_csma_privacy_cvr").show();
514
  }, 3000);
515
 
516
  }
524
  var acx_csma_name_hidden=document.getElementById('acx_csma_name_hidden').value;
525
  if(acx_csma_form_status== 1)
526
  {
527
+ if(acx_csma_name_hidden=="")
528
+ {
529
+ alert('<?php echo $acx_name_val_singular; ?>');
530
+ acx_csma_form_status=1;
531
+ return false;
532
+ }
533
+ else{
534
+ document.getElementById('acx_csma_name_hidden').type = 'hidden';
535
+ document.getElementById('acx_csma_email').type = 'email';
536
+ jQuery("#acx_csma_email").show();
537
+ document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_subscribe_btn_text1; ?>";
538
+
539
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
540
+ jQuery(".acx_csma_privacy_cvr").show();
541
+ acx_csma_form_status=2;
542
+ return false;
543
+ }
544
  }
545
  else if(acx_csma_form_status==2)
546
  {
558
  jQuery("#acx_csma_email").hide();
559
  jQuery("#acx_csma_submit").hide();
560
  jQuery("#acx_csma_invalid").show();
561
+ jQuery(".acx_csma_privacy_cvr").hide();
562
  setTimeout(function()
563
  {
564
  jQuery("#acx_csma_invalid").hide();
565
  document.getElementById('acx_csma_name_hidden').type = 'text';
566
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
567
  jQuery("#acx_csma_submit").show();
568
+ jQuery(".acx_csma_privacy_cvr").hide();
569
  acx_csma_form_status=1;
570
 
571
  }, 3000);
572
  return false;
573
+ }
574
  else
575
  {
576
+
577
+ <?php
578
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
579
+ {
580
+ ?>
581
+ if(jQuery("#acx_csma_gdpr_accept:checked").val() !== "yes")
582
+ {
583
+ return false;
584
+ }
585
+ <?php
586
+ }
587
+ ?>
588
+
589
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
590
  jQuery('body').append(acx_load);
591
 
602
  document.getElementById('acx_csma_name_hidden').value="";
603
  jQuery("#acx_csma_email").hide();
604
  jQuery("#acx_csma_submit").hide();
605
+ jQuery(".acx_csma_privacy_cvr").hide();
606
  jQuery("#acx_csma_success").show();
607
  setTimeout(function()
608
  {
621
  jQuery("#acx_csma_submit").hide();
622
  jQuery("#acx_csma_error").show();
623
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
624
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
625
+ jQuery(".acx_csma_privacy_cvr").show();
626
  setTimeout(function()
627
  {
628
  jQuery("#acx_csma_error").html('');
630
  document.getElementById('acx_csma_name_hidden').type = 'text';
631
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
632
  jQuery("#acx_csma_submit").show();
633
+
634
+ jQuery(".acx_csma_privacy_cvr").hide();
635
  acx_csma_form_status=1;
636
 
637
  }, 3000);
792
  }
793
  }
794
  ?>
795
+ jQuery( ".acx_csma_info_lb" ).click(function() {
796
+ var lb_title = jQuery(this).attr('lb_title');
797
+ var lb_content = jQuery(this).attr('lb_content');
798
+ var html= '<div id="acx_csma_c_icon_p_info_lb_h" style="display:none;"><div class="acx_csma_c_icon_p_info_c"><span class="acx_csma_c_icon_p_info_close" onclick="acx_csma_remove_info()"></span><h4>'+lb_title+'</h4><div class="acx_csma_c_icon_p_info_content">'+lb_content+'</div></div></div> <!-- acx_csma_c_icon_p_info_lb_h -->';
799
+ jQuery( "body" ).append(html)
800
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeIn();
801
+ });
802
+
803
+ function acx_csma_remove_info()
804
+ {
805
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeOut()
806
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).remove();
807
+ var lb_title = "";
808
+ var lb_content = "";
809
+ };
810
  </script>
811
  <?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id); ?>
812
  </body>
templates/1/style.css CHANGED
@@ -258,4 +258,79 @@ media query
258
  border-radius: 4px;
259
  max-width:400px;
260
  margin:0 auto;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
261
  }
258
  border-radius: 4px;
259
  max-width:400px;
260
  margin:0 auto;
261
+ }
262
+ #acx_csma_c_icon_p_info_lb_h
263
+ {
264
+ background: rgba(0, 0, 0, 0.8) none repeat scroll 0 0;
265
+ height: 100%;
266
+ left: 0;
267
+ position: fixed;
268
+ top: 0;
269
+ width: 100%;
270
+ z-index: 199999;
271
+ }
272
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_c
273
+ {
274
+ background: white none repeat scroll 0 0;
275
+ border: 1px solid lightblue;
276
+ border-radius: 2px;
277
+ box-sizing: border-box;
278
+ margin-left: 24%;
279
+ margin-top: 7%;
280
+ position: relative;
281
+ width: 50%;
282
+ }
283
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_close
284
+ {
285
+ background: rgba(0, 0, 0, 0) url("./images/close.png") repeat scroll 0 0;
286
+ cursor: pointer;
287
+ height: 30px;
288
+ position: absolute;
289
+ right: 0;
290
+ top: 0;
291
+ width: 35px;
292
+ }
293
+ .csma_info_lb
294
+ {
295
+ cursor:pointer;
296
+ }
297
+ #acx_csma_c_icon_p_info_lb_h h4
298
+ {
299
+ background: #f0f0f0 none repeat scroll 0 0;
300
+ box-sizing: border-box;
301
+ font-family: arial;
302
+ font-size: 16px;
303
+ font-weight: normal;
304
+ margin: 0;
305
+ padding: 8px;
306
+ }
307
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_content
308
+ {
309
+ background: white none repeat scroll 0 0;
310
+ box-sizing: border-box;
311
+ font-family: arial;
312
+ font-size: 16px;
313
+ line-height: 22px;
314
+ min-height: 100px;
315
+ padding: 15px;
316
+ color:#707171;
317
+ }
318
+ .acx_csma_c_icon_p_info_content a {
319
+ border-bottom: 1px dashed;
320
+ font-family: arial;
321
+ font-size: 15px;
322
+ font-style: normal;
323
+ text-decoration: none;
324
+ }
325
+ #acx_csma_gdpr_accept {
326
+ width: auto;
327
+ padding: 0 !important;
328
+ margin-right: 6px;
329
+ }
330
+ .acx_csma_privacy_cvr {
331
+ margin-top: 5px;
332
+ }
333
+ .footer .acx_csma_info_lb, .acx_csma_gdpr_notice .acx_csma_info_lb
334
+ {
335
+ cursor:pointer;
336
  }
templates/2/images/close.png ADDED
Binary file
templates/2/index.php CHANGED
@@ -59,6 +59,10 @@ if($acx_csma_meta_keywords!="")
59
  background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_social_bg_color2']; ?>;
60
  }
61
  }
 
 
 
 
62
  </style>
63
 
64
  <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
@@ -87,6 +91,10 @@ else
87
  {
88
  $new_class="";
89
  }
 
 
 
 
90
  $acx_hide_svg = "";
91
  ?>
92
  <div class="wrapper <?php echo $new_class; ?>">
@@ -178,6 +186,38 @@ $acx_hide_svg = "";
178
  <polygon points="138,0 138,67 0,67 66.75,0 "/>
179
  </svg>
180
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  </form>
182
  <?php
183
  }
@@ -338,7 +378,16 @@ $acx_hide_svg = "";
338
  ?>
339
  </div><!-- footer -->
340
  </div><!-- inline_block -->
341
-
 
 
 
 
 
 
 
 
 
342
  </div><!-- canvas960 -->
343
  </div><!-- wrapper -->
344
 
@@ -373,6 +422,14 @@ if($acx_csma_show_subscription2 == 1)
373
  $acx_subs_next_arr=acx_csma_disp_var_to_show("next");
374
  $acx_next_singular=$acx_subs_next_arr['singular'];
375
  ?>
 
 
 
 
 
 
 
 
376
  var acx_csma_form_status=1;
377
  function acx_csma_validate_email()
378
  {
@@ -393,16 +450,33 @@ function acx_csma_validate_email()
393
  jQuery("#acx_csma_invalid").show();
394
  jQuery("#acx_csma_email").hide();
395
  jQuery("#acx_csma_submit").hide();
 
 
396
  setTimeout(function()
397
  {
398
  jQuery("#acx_csma_invalid").hide();
399
  jQuery("#acx_csma_email").show();
400
- jQuery("#acx_csma_submit").show();
 
 
 
 
401
  }, 3000);
402
  return false;
403
  }
404
- else
405
  {
 
 
 
 
 
 
 
 
 
 
 
406
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
407
  jQuery('body').append(acx_load);
408
 
@@ -419,11 +493,16 @@ function acx_csma_validate_email()
419
  jQuery("#acx_csma_success").show();
420
  jQuery("#acx_csma_email").hide();
421
  jQuery("#acx_csma_submit").hide();
 
 
422
  setTimeout(function()
423
  {
424
  jQuery("#acx_csma_success").hide();
425
  jQuery("#acx_csma_email").show();
426
  jQuery("#acx_csma_submit").show();
 
 
 
427
 
428
  }, 3000);
429
  }
@@ -431,14 +510,19 @@ function acx_csma_validate_email()
431
  document.getElementById('acx_csma_email').value="";
432
  jQuery("#acx_csma_email").hide();
433
  jQuery("#acx_csma_submit").hide();
 
434
  jQuery("#acx_csma_error").show();
435
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
 
436
  setTimeout(function()
437
  {
438
  jQuery("#acx_csma_error").html('');
439
  jQuery("#acx_csma_error").hide();
440
  jQuery("#acx_csma_email").show();
441
  jQuery("#acx_csma_submit").show();
 
 
 
442
 
443
  }, 3000);
444
 
@@ -453,20 +537,22 @@ function acx_csma_validate_email()
453
  var acx_csma_name_hidden=document.getElementById('acx_csma_name_hidden').value;
454
  if(acx_csma_form_status== 1)
455
  {
456
- if(acx_csma_name_hidden=="")
457
- {
458
- alert('<?php echo $acx_name_val_singular; ?>');
459
- acx_csma_form_status=1;
 
 
 
 
 
 
 
 
 
 
460
  return false;
461
- }
462
- else{
463
- document.getElementById('acx_csma_name_hidden').type = 'hidden';
464
- document.getElementById('acx_csma_email').type = 'email';
465
- jQuery("#acx_csma_email").show();
466
- document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_subscribe_btn_text2; ?>";
467
- acx_csma_form_status=2;
468
- return false;
469
- }
470
  }
471
  else if(acx_csma_form_status==2)
472
  {
@@ -484,12 +570,17 @@ function acx_csma_validate_email()
484
  jQuery("#acx_csma_email").hide();
485
  jQuery("#acx_csma_submit").hide();
486
  jQuery("#acx_csma_invalid").show();
 
 
 
487
  setTimeout(function()
488
  {
489
  jQuery("#acx_csma_invalid").hide();
490
  document.getElementById('acx_csma_name_hidden').type = 'text';
491
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
 
492
  jQuery("#acx_csma_submit").show();
 
493
  acx_csma_form_status=1;
494
 
495
  }, 3000);
@@ -499,6 +590,18 @@ function acx_csma_validate_email()
499
  }
500
  else
501
  {
 
 
 
 
 
 
 
 
 
 
 
 
502
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
503
  jQuery('body').append(acx_load);
504
 
@@ -515,15 +618,23 @@ function acx_csma_validate_email()
515
  document.getElementById('acx_csma_name_hidden').value="";
516
  jQuery("#acx_csma_email").hide();
517
  jQuery("#acx_csma_submit").hide();
 
518
 
519
  jQuery("#acx_csma_success").show();
 
 
 
520
  setTimeout(function()
521
  {
522
  jQuery("#acx_csma_success").hide();
523
  document.getElementById('acx_csma_name_hidden').type = 'text';
524
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
 
525
  jQuery("#acx_csma_submit").show();
526
  acx_csma_form_status=1;
 
 
 
527
 
528
  }, 3000);
529
  }
@@ -532,15 +643,23 @@ function acx_csma_validate_email()
532
  document.getElementById('acx_csma_name_hidden').value="";
533
  jQuery("#acx_csma_email").hide();
534
  jQuery("#acx_csma_submit").hide();
 
 
535
  jQuery("#acx_csma_error").show();
536
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
 
 
537
  setTimeout(function()
538
  {
539
  jQuery("#acx_csma_error").html('');
540
  jQuery("#acx_csma_error").hide();
541
  document.getElementById('acx_csma_name_hidden').type = 'text';
542
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
543
- jQuery("#acx_csma_submit").show();
 
 
 
 
544
  acx_csma_form_status=1;
545
 
546
  }, 3000);
@@ -685,6 +804,21 @@ function updateCounter()
685
  }
686
  }
687
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
688
  </script>
689
  <?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id);?>
690
  </body>
59
  background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_social_bg_color2']; ?>;
60
  }
61
  }
62
+ .acx_csma_info_lb:hover
63
+ {
64
+ color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_footer_gdpr_hovercolor2']; ?> !important;
65
+ }
66
  </style>
67
 
68
  <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
91
  {
92
  $new_class="";
93
  }
94
+ $acx_csma_form_text = get_option('acx_csma_form_text');
95
+ $acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
96
+ $acx_csma_privacy_policy_title = get_option('acx_csma_privacy_policy_title');
97
+ $acx_csma_privacy_policy_desc = get_option('acx_csma_privacy_policy_desc');
98
  $acx_hide_svg = "";
99
  ?>
100
  <div class="wrapper <?php echo $new_class; ?>">
186
  <polygon points="138,0 138,67 0,67 66.75,0 "/>
187
  </svg>
188
  </div>
189
+ <div class="acx_csma_privacy_cvr" style="display:none;">
190
+ <?php
191
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
192
+ {
193
+ ?>
194
+ <span class="acx_csma_gdpr_notice" style='color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_footer_gdprcolor2']; ?>;'>
195
+ <input type="checkbox" name="acx_csma_gdpr_accept" id="acx_csma_gdpr_accept" value="yes">
196
+ <?php
197
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
198
+ {
199
+ ?>
200
+ <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_footer_gdprcolor2']; ?>;'>
201
+ <?php
202
+ }
203
+ ?>
204
+
205
+ <?php echo $acx_csma_form_text;?>
206
+ <?php
207
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
208
+ {
209
+ ?>
210
+ </a>
211
+ <?php
212
+
213
+ }
214
+ ?>
215
+ </span>
216
+ <?php
217
+ }
218
+ ?>
219
+ </div>
220
+ <br>
221
  </form>
222
  <?php
223
  }
378
  ?>
379
  </div><!-- footer -->
380
  </div><!-- inline_block -->
381
+ <!--<div class="inline_block acx_footer_privacy">
382
+ <?php
383
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
384
+ {
385
+ ?>
386
+
387
+ <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_2[$acx_csma_template_id]['acx_csma_footer_gdprcolor2']; ?>;'><?php echo $acx_csma_privacy_policy_title ;?></a>
388
+ <?php
389
+ }?>
390
+ </div><!-- inline_block -->
391
  </div><!-- canvas960 -->
392
  </div><!-- wrapper -->
393
 
422
  $acx_subs_next_arr=acx_csma_disp_var_to_show("next");
423
  $acx_next_singular=$acx_subs_next_arr['singular'];
424
  ?>
425
+ <?php
426
+ if($acx_csma_show_subscription_name2 == 0 && $acx_csma_gdpr_status == "yes")
427
+ {?>
428
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
429
+ jQuery(".acx_csma_privacy_cvr").show();
430
+ <?php
431
+ }
432
+ ?>
433
  var acx_csma_form_status=1;
434
  function acx_csma_validate_email()
435
  {
450
  jQuery("#acx_csma_invalid").show();
451
  jQuery("#acx_csma_email").hide();
452
  jQuery("#acx_csma_submit").hide();
453
+ jQuery(".acx_form_input_svg").hide();
454
+ jQuery(".acx_csma_privacy_cvr").hide();
455
  setTimeout(function()
456
  {
457
  jQuery("#acx_csma_invalid").hide();
458
  jQuery("#acx_csma_email").show();
459
+ jQuery("#acx_csma_submit").show();
460
+ jQuery(".acx_form_input_svg").show();
461
+ jQuery(".acx_form_input_svg").show();
462
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
463
+ jQuery(".acx_csma_privacy_cvr").show();
464
  }, 3000);
465
  return false;
466
  }
467
+ else
468
  {
469
+ <?php
470
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
471
+ {
472
+ ?>
473
+ if(jQuery("#acx_csma_gdpr_accept:checked").val() !== "yes")
474
+ {
475
+ return false;
476
+ }
477
+ <?php
478
+ }
479
+ ?>
480
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
481
  jQuery('body').append(acx_load);
482
 
493
  jQuery("#acx_csma_success").show();
494
  jQuery("#acx_csma_email").hide();
495
  jQuery("#acx_csma_submit").hide();
496
+ jQuery(".acx_form_input_svg").hide();
497
+ jQuery(".acx_csma_privacy_cvr").hide();
498
  setTimeout(function()
499
  {
500
  jQuery("#acx_csma_success").hide();
501
  jQuery("#acx_csma_email").show();
502
  jQuery("#acx_csma_submit").show();
503
+ jQuery(".acx_form_input_svg").show();
504
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
505
+ jQuery(".acx_csma_privacy_cvr").show();
506
 
507
  }, 3000);
508
  }
510
  document.getElementById('acx_csma_email').value="";
511
  jQuery("#acx_csma_email").hide();
512
  jQuery("#acx_csma_submit").hide();
513
+ jQuery(".acx_form_input_svg").hide();
514
  jQuery("#acx_csma_error").show();
515
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
516
+ jQuery(".acx_csma_privacy_cvr").hide();
517
  setTimeout(function()
518
  {
519
  jQuery("#acx_csma_error").html('');
520
  jQuery("#acx_csma_error").hide();
521
  jQuery("#acx_csma_email").show();
522
  jQuery("#acx_csma_submit").show();
523
+ jQuery(".acx_form_input_svg").show();
524
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
525
+ jQuery(".acx_csma_privacy_cvr").show();
526
 
527
  }, 3000);
528
 
537
  var acx_csma_name_hidden=document.getElementById('acx_csma_name_hidden').value;
538
  if(acx_csma_form_status== 1)
539
  {
540
+ if(acx_csma_name_hidden=="")
541
+ {
542
+ alert('<?php echo $acx_name_val_singular; ?>');
543
+ acx_csma_form_status=1;
544
+ return false;
545
+ }
546
+ else{
547
+ document.getElementById('acx_csma_name_hidden').type = 'hidden';
548
+ document.getElementById('acx_csma_email').type = 'email';
549
+ jQuery("#acx_csma_email").show();
550
+ document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_subscribe_btn_text2; ?>";
551
+ acx_csma_form_status=2;
552
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
553
+ jQuery(".acx_csma_privacy_cvr").show();
554
  return false;
555
+ }
 
 
 
 
 
 
 
 
556
  }
557
  else if(acx_csma_form_status==2)
558
  {
570
  jQuery("#acx_csma_email").hide();
571
  jQuery("#acx_csma_submit").hide();
572
  jQuery("#acx_csma_invalid").show();
573
+ jQuery(".acx_form_input_svg").hide();
574
+ jQuery(".acx_csma_privacy_cvr").hide();
575
+
576
  setTimeout(function()
577
  {
578
  jQuery("#acx_csma_invalid").hide();
579
  document.getElementById('acx_csma_name_hidden').type = 'text';
580
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
581
+ jQuery(".acx_form_input_svg").show();
582
  jQuery("#acx_csma_submit").show();
583
+ jQuery(".acx_csma_privacy_cvr").hide();
584
  acx_csma_form_status=1;
585
 
586
  }, 3000);
590
  }
591
  else
592
  {
593
+
594
+ <?php
595
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
596
+ {
597
+ ?>
598
+ if(jQuery("#acx_csma_gdpr_accept:checked").val() !== "yes")
599
+ {
600
+ return false;
601
+ }
602
+ <?php
603
+ }
604
+ ?>
605
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
606
  jQuery('body').append(acx_load);
607
 
618
  document.getElementById('acx_csma_name_hidden').value="";
619
  jQuery("#acx_csma_email").hide();
620
  jQuery("#acx_csma_submit").hide();
621
+ jQuery(".acx_form_input_svg").hide();
622
 
623
  jQuery("#acx_csma_success").show();
624
+
625
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
626
+ jQuery(".acx_csma_privacy_cvr").hide();
627
  setTimeout(function()
628
  {
629
  jQuery("#acx_csma_success").hide();
630
  document.getElementById('acx_csma_name_hidden').type = 'text';
631
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
632
+ jQuery(".acx_form_input_svg").show();
633
  jQuery("#acx_csma_submit").show();
634
  acx_csma_form_status=1;
635
+
636
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
637
+ jQuery(".acx_csma_privacy_cvr").hide();
638
 
639
  }, 3000);
640
  }
643
  document.getElementById('acx_csma_name_hidden').value="";
644
  jQuery("#acx_csma_email").hide();
645
  jQuery("#acx_csma_submit").hide();
646
+
647
+ jQuery(".acx_form_input_svg").hide();
648
  jQuery("#acx_csma_error").show();
649
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
650
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
651
+ jQuery(".acx_csma_privacy_cvr").show();
652
  setTimeout(function()
653
  {
654
  jQuery("#acx_csma_error").html('');
655
  jQuery("#acx_csma_error").hide();
656
  document.getElementById('acx_csma_name_hidden').type = 'text';
657
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
658
+
659
+ jQuery(".acx_form_input_svg").show();
660
+ jQuery("#acx_csma_submit").show();
661
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
662
+ jQuery(".acx_csma_privacy_cvr").hide();
663
  acx_csma_form_status=1;
664
 
665
  }, 3000);
804
  }
805
  }
806
  ?>
807
+ jQuery( ".acx_csma_info_lb" ).click(function() {
808
+ var lb_title = jQuery(this).attr('lb_title');
809
+ var lb_content = jQuery(this).attr('lb_content');
810
+ var html= '<div id="acx_csma_c_icon_p_info_lb_h" style="display:none;"><div class="acx_csma_c_icon_p_info_c"><span class="acx_csma_c_icon_p_info_close" onclick="acx_csma_remove_info()"></span><h4>'+lb_title+'</h4><div class="acx_csma_c_icon_p_info_content">'+lb_content+'</div></div></div> <!-- acx_csma_c_icon_p_info_lb_h -->';
811
+ jQuery( "body" ).append(html)
812
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeIn();
813
+ });
814
+
815
+ function acx_csma_remove_info()
816
+ {
817
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeOut()
818
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).remove();
819
+ var lb_title = "";
820
+ var lb_content = "";
821
+ };
822
  </script>
823
  <?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id);?>
824
  </body>
templates/2/style.css CHANGED
@@ -406,4 +406,86 @@ media query
406
  {
407
  display:none;
408
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
409
  }
406
  {
407
  display:none;
408
  }
409
+ }
410
+ #acx_csma_c_icon_p_info_lb_h
411
+ {
412
+ background: rgba(0, 0, 0, 0.8) none repeat scroll 0 0;
413
+ height: 100%;
414
+ left: 0;
415
+ position: fixed;
416
+ top: 0;
417
+ width: 100%;
418
+ z-index: 199999;
419
+ }
420
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_c
421
+ {
422
+ background: white none repeat scroll 0 0;
423
+ border: 1px solid lightblue;
424
+ border-radius: 2px;
425
+ box-sizing: border-box;
426
+ margin-left: 24%;
427
+ margin-top: 7%;
428
+ position: relative;
429
+ width: 50%;
430
+ }
431
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_close
432
+ {
433
+ background: rgba(0, 0, 0, 0) url("./images/close.png") repeat scroll 0 0;
434
+ cursor: pointer;
435
+ height: 30px;
436
+ position: absolute;
437
+ right: 0;
438
+ top: 0;
439
+ width: 35px;
440
+ }
441
+ .csma_info_lb
442
+ {
443
+ cursor:pointer;
444
+ }
445
+ #acx_csma_c_icon_p_info_lb_h h4
446
+ {
447
+ background: #f0f0f0 none repeat scroll 0 0;
448
+ box-sizing: border-box;
449
+ font-family: arial;
450
+ font-size: 16px;
451
+ font-weight: normal;
452
+ margin: 0;
453
+ padding: 8px;
454
+ text-align:left !important;
455
+ color: #7a7a7a !important;
456
+ }
457
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_content
458
+ {
459
+ background: white none repeat scroll 0 0;
460
+ box-sizing: border-box;
461
+ font-family: arial;
462
+ font-size: 16px;
463
+ line-height: 22px;
464
+ min-height: 100px;
465
+ padding: 15px;
466
+ color:#707171;
467
+ }
468
+ .acx_csma_c_icon_p_info_content a {
469
+ border-bottom: 1px dashed;
470
+ font-family: arial;
471
+ font-size: 15px;
472
+ font-style: normal;
473
+ text-decoration: none;
474
+ }
475
+ #acx_csma_gdpr_accept {
476
+ width: auto;
477
+ padding: 0 !important;
478
+ margin-right: 6px;
479
+ }
480
+ .acx_csma_privacy_cvr {
481
+ margin-top: 5px;
482
+ }
483
+ .acx_footer_privacy
484
+ {
485
+ text-align:center;
486
+ width:100%;
487
+ }
488
+ .acx_csma_info_lb
489
+ {
490
+ cursor:pointer;
491
  }
templates/3/images/close.png ADDED
Binary file
templates/3/index.php CHANGED
@@ -68,7 +68,10 @@ body
68
  {
69
  background: <?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_color3']; ?> none repeat scroll 0 0;
70
  }
71
-
 
 
 
72
  </style>
73
  <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
74
  <link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>" type="image/png">
@@ -95,6 +98,10 @@ else
95
  {
96
  $new_class="";
97
  }
 
 
 
 
98
  ?>
99
  <div class="wrapper <?php echo $new_class; ?>">
100
  <div class="scmi">
@@ -230,11 +237,76 @@ else
230
  ?>
231
 
232
  <input type="text" id="acx_csma_email" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_email_singular); ?>"><br/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
233
  <input type="button" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_btn_text3']); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
234
  <?php }
235
  else if($acx_csma_show_subscription_name3 == 1){ ?>
236
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_name_singular); ?>"/>
 
237
  <input type="hidden" id="acx_csma_email" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_email_singular); ?>"><br/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  <input type="button" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_next_singular); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
239
  <?php
240
  }
@@ -403,7 +475,16 @@ else
403
  <div class="footer"> <p style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_color3']; ?>"><?php
404
  $acx_csma_footer_text3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_text3'];
405
  $acx_csma_footer_text3 = acx_csma_text_after_save_hook_fn($acx_csma_footer_text3);
406
- echo $acx_csma_footer_text3; ?></p> </div><!-- footer -->
 
 
 
 
 
 
 
 
 
407
 
408
  <script type="text/javascript">
409
  jQuery(document).ready(function() {
@@ -437,6 +518,15 @@ if($acx_csma_show_subscription3 == 1)
437
  $acx_subs_next_arr=acx_csma_disp_var_to_show("next");
438
  $acx_next_singular=$acx_subs_next_arr['singular'];
439
  ?>
 
 
 
 
 
 
 
 
 
440
  var acx_csma_form_status=1;
441
  function acx_csma_validate_email()
442
  {
@@ -457,18 +547,33 @@ function acx_csma_validate_email()
457
  jQuery("#acx_csma_invalid").show();
458
  jQuery("#acx_csma_email").hide();
459
  jQuery("#acx_csma_submit").hide();
 
460
  setTimeout(function()
461
  {
462
  jQuery("#acx_csma_invalid").hide();
463
  jQuery("#acx_csma_email").show();
464
- jQuery("#acx_csma_submit").show();
 
 
 
465
  }, 3000);
466
 
467
 
468
  return false;
469
  }
470
- else
471
  {
 
 
 
 
 
 
 
 
 
 
 
472
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
473
  jQuery('body').append(acx_load);
474
 
@@ -485,11 +590,14 @@ function acx_csma_validate_email()
485
  jQuery("#acx_csma_success").show();
486
  jQuery("#acx_csma_email").hide();
487
  jQuery("#acx_csma_submit").hide();
 
488
  setTimeout(function()
489
  {
490
  jQuery("#acx_csma_success").hide();
491
  jQuery("#acx_csma_email").show();
492
  jQuery("#acx_csma_submit").show();
 
 
493
 
494
  }, 3000);
495
  }
@@ -498,6 +606,7 @@ function acx_csma_validate_email()
498
  jQuery("#acx_csma_email").hide();
499
  jQuery("#acx_csma_submit").hide();
500
  jQuery("#acx_csma_error").show();
 
501
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
502
  setTimeout(function()
503
  {
@@ -505,6 +614,8 @@ function acx_csma_validate_email()
505
  jQuery("#acx_csma_error").hide();
506
  jQuery("#acx_csma_email").show();
507
  jQuery("#acx_csma_submit").show();
 
 
508
 
509
  }, 3000);
510
 
@@ -519,20 +630,23 @@ function acx_csma_validate_email()
519
  var acx_csma_name_hidden=document.getElementById('acx_csma_name_hidden').value;
520
  if(acx_csma_form_status== 1)
521
  {
522
- if(acx_csma_name_hidden=="")
523
- {
524
- alert('<?php echo $acx_name_val_singular; ?>');
525
- acx_csma_form_status=1;
 
 
 
 
 
 
 
 
 
 
 
526
  return false;
527
- }
528
- else{
529
- document.getElementById('acx_csma_name_hidden').type = 'hidden';
530
- document.getElementById('acx_csma_email').type = 'email';
531
- jQuery("#acx_csma_email").show();
532
- document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_btn_text3']; ?>";
533
- acx_csma_form_status=2;
534
- return false;
535
- }
536
  }
537
  else if(acx_csma_form_status==2)
538
  {
@@ -550,12 +664,14 @@ function acx_csma_validate_email()
550
  jQuery("#acx_csma_email").hide();
551
  jQuery("#acx_csma_submit").hide();
552
  jQuery("#acx_csma_invalid").show();
 
553
  setTimeout(function()
554
  {
555
  jQuery("#acx_csma_invalid").hide();
556
  document.getElementById('acx_csma_name_hidden').type = 'text';
557
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
558
  jQuery("#acx_csma_submit").show();
 
559
  acx_csma_form_status=1;
560
 
561
  }, 3000);
@@ -565,6 +681,17 @@ function acx_csma_validate_email()
565
  }
566
  else
567
  {
 
 
 
 
 
 
 
 
 
 
 
568
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
569
  jQuery('body').append(acx_load);
570
 
@@ -581,6 +708,7 @@ function acx_csma_validate_email()
581
  document.getElementById('acx_csma_name_hidden').value="";
582
  jQuery("#acx_csma_email").hide();
583
  jQuery("#acx_csma_submit").hide();
 
584
 
585
  jQuery("#acx_csma_success").show();
586
  setTimeout(function()
@@ -599,6 +727,8 @@ function acx_csma_validate_email()
599
  jQuery("#acx_csma_email").hide();
600
  jQuery("#acx_csma_submit").hide();
601
  jQuery("#acx_csma_error").show();
 
 
602
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular ;?>");
603
  setTimeout(function()
604
  {
@@ -607,6 +737,7 @@ function acx_csma_validate_email()
607
  document.getElementById('acx_csma_name_hidden').type = 'text';
608
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
609
  jQuery("#acx_csma_submit").show();
 
610
  acx_csma_form_status=1;
611
 
612
  }, 3000);
@@ -749,6 +880,21 @@ function updateCounter()
749
  }
750
  <?php }
751
  } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
752
  </script>
753
  <?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id); ?>
754
  </body>
68
  {
69
  background: <?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_color3']; ?> none repeat scroll 0 0;
70
  }
71
+ .acx_csma_gdpr_notice .acx_csma_info_lb:hover
72
+ {
73
+ color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_gdpr_hovercolor3']; ?> !important;
74
+ }
75
  </style>
76
  <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
77
  <link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>" type="image/png">
98
  {
99
  $new_class="";
100
  }
101
+ $acx_csma_form_text = get_option('acx_csma_form_text');
102
+ $acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
103
+ $acx_csma_privacy_policy_title = get_option('acx_csma_privacy_policy_title');
104
+ $acx_csma_privacy_policy_desc = get_option('acx_csma_privacy_policy_desc');
105
  ?>
106
  <div class="wrapper <?php echo $new_class; ?>">
107
  <div class="scmi">
237
  ?>
238
 
239
  <input type="text" id="acx_csma_email" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_email_singular); ?>"><br/>
240
+ <div class="acx_csma_privacy_cvr" style="display:none;">
241
+ <?php
242
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
243
+ {
244
+ ?>
245
+ <span class="acx_csma_gdpr_notice" style='color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_gdprcolor3']; ?>;'>
246
+ <input type="checkbox" name="acx_csma_gdpr_accept" id="acx_csma_gdpr_accept" value="yes">
247
+ <?php
248
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
249
+ {
250
+ ?>
251
+ <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_gdprcolor3'];?>;'>
252
+ <?php
253
+ }
254
+ ?>
255
+
256
+ <?php echo $acx_csma_form_text;?>
257
+ <?php
258
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
259
+ {
260
+ ?>
261
+ </a>
262
+ <?php
263
+
264
+ }
265
+ ?>
266
+ </span>
267
+ <?php
268
+ }
269
+ ?>
270
+ </div>
271
+ <br>
272
  <input type="button" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_btn_text3']); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
273
  <?php }
274
  else if($acx_csma_show_subscription_name3 == 1){ ?>
275
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_name_singular); ?>"/>
276
+
277
  <input type="hidden" id="acx_csma_email" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_email_singular); ?>"><br/>
278
+ <div class="acx_csma_privacy_cvr" style="display:none;">
279
+ <?php
280
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
281
+ {
282
+ ?>
283
+ <span class="acx_csma_gdpr_notice" style='color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_gdprcolor3']; ?>;'>
284
+ <input type="checkbox" name="acx_csma_gdpr_accept" id="acx_csma_gdpr_accept" value="yes">
285
+ <?php
286
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
287
+ {
288
+ ?>
289
+ <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_gdprcolor3'];?>'>
290
+ <?php
291
+ }
292
+ ?>
293
+
294
+ <?php echo $acx_csma_form_text;?>
295
+ <?php
296
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
297
+ {
298
+ ?>
299
+ </a>
300
+ <?php
301
+
302
+ }
303
+ ?>
304
+ </span>
305
+ <?php
306
+ }
307
+ ?>
308
+ </div>
309
+ <br>
310
  <input type="button" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_next_singular); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
311
  <?php
312
  }
475
  <div class="footer"> <p style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_color3']; ?>"><?php
476
  $acx_csma_footer_text3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_text3'];
477
  $acx_csma_footer_text3 = acx_csma_text_after_save_hook_fn($acx_csma_footer_text3);
478
+ echo $acx_csma_footer_text3;
479
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
480
+ {
481
+ ?>
482
+
483
+ | <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_color3']; ?>;'><?php echo $acx_csma_privacy_policy_title ;?></a>
484
+ <?php
485
+ }?></p>
486
+
487
+ </div><!-- footer -->
488
 
489
  <script type="text/javascript">
490
  jQuery(document).ready(function() {
518
  $acx_subs_next_arr=acx_csma_disp_var_to_show("next");
519
  $acx_next_singular=$acx_subs_next_arr['singular'];
520
  ?>
521
+ <?php
522
+ if($acx_csma_show_subscription_name3 == 0 && $acx_csma_gdpr_status == "yes")
523
+ {?>
524
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
525
+ jQuery(".acx_csma_privacy_cvr").show();
526
+ <?php
527
+ }
528
+ ?>
529
+
530
  var acx_csma_form_status=1;
531
  function acx_csma_validate_email()
532
  {
547
  jQuery("#acx_csma_invalid").show();
548
  jQuery("#acx_csma_email").hide();
549
  jQuery("#acx_csma_submit").hide();
550
+ jQuery(".acx_csma_privacy_cvr").hide();
551
  setTimeout(function()
552
  {
553
  jQuery("#acx_csma_invalid").hide();
554
  jQuery("#acx_csma_email").show();
555
+ jQuery("#acx_csma_submit").show();
556
+
557
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
558
+ jQuery(".acx_csma_privacy_cvr").show();
559
  }, 3000);
560
 
561
 
562
  return false;
563
  }
564
+ else
565
  {
566
+ <?php
567
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
568
+ {
569
+ ?>
570
+ if(jQuery("#acx_csma_gdpr_accept:checked").val() !== "yes")
571
+ {
572
+ return false;
573
+ }
574
+ <?php
575
+ }
576
+ ?>
577
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
578
  jQuery('body').append(acx_load);
579
 
590
  jQuery("#acx_csma_success").show();
591
  jQuery("#acx_csma_email").hide();
592
  jQuery("#acx_csma_submit").hide();
593
+ jQuery(".acx_csma_privacy_cvr").hide();
594
  setTimeout(function()
595
  {
596
  jQuery("#acx_csma_success").hide();
597
  jQuery("#acx_csma_email").show();
598
  jQuery("#acx_csma_submit").show();
599
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
600
+ jQuery(".acx_csma_privacy_cvr").show();
601
 
602
  }, 3000);
603
  }
606
  jQuery("#acx_csma_email").hide();
607
  jQuery("#acx_csma_submit").hide();
608
  jQuery("#acx_csma_error").show();
609
+ jQuery(".acx_csma_privacy_cvr").hide();
610
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
611
  setTimeout(function()
612
  {
614
  jQuery("#acx_csma_error").hide();
615
  jQuery("#acx_csma_email").show();
616
  jQuery("#acx_csma_submit").show();
617
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
618
+ jQuery(".acx_csma_privacy_cvr").show();
619
 
620
  }, 3000);
621
 
630
  var acx_csma_name_hidden=document.getElementById('acx_csma_name_hidden').value;
631
  if(acx_csma_form_status== 1)
632
  {
633
+ if(acx_csma_name_hidden=="")
634
+ {
635
+ alert('<?php echo $acx_name_val_singular; ?>');
636
+ acx_csma_form_status=1;
637
+ return false;
638
+ }
639
+ else{
640
+ document.getElementById('acx_csma_name_hidden').type = 'hidden';
641
+ document.getElementById('acx_csma_email').type = 'email';
642
+ jQuery("#acx_csma_email").show();
643
+ document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_btn_text3']; ?>";
644
+
645
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
646
+ jQuery(".acx_csma_privacy_cvr").show();
647
+ acx_csma_form_status=2;
648
  return false;
649
+ }
 
 
 
 
 
 
 
 
650
  }
651
  else if(acx_csma_form_status==2)
652
  {
664
  jQuery("#acx_csma_email").hide();
665
  jQuery("#acx_csma_submit").hide();
666
  jQuery("#acx_csma_invalid").show();
667
+ jQuery(".acx_csma_privacy_cvr").hide();
668
  setTimeout(function()
669
  {
670
  jQuery("#acx_csma_invalid").hide();
671
  document.getElementById('acx_csma_name_hidden').type = 'text';
672
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
673
  jQuery("#acx_csma_submit").show();
674
+ jQuery(".acx_csma_privacy_cvr").hide();
675
  acx_csma_form_status=1;
676
 
677
  }, 3000);
681
  }
682
  else
683
  {
684
+ <?php
685
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
686
+ {
687
+ ?>
688
+ if(jQuery("#acx_csma_gdpr_accept:checked").val() !== "yes")
689
+ {
690
+ return false;
691
+ }
692
+ <?php
693
+ }
694
+ ?>
695
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
696
  jQuery('body').append(acx_load);
697
 
708
  document.getElementById('acx_csma_name_hidden').value="";
709
  jQuery("#acx_csma_email").hide();
710
  jQuery("#acx_csma_submit").hide();
711
+ jQuery(".acx_csma_privacy_cvr").hide();
712
 
713
  jQuery("#acx_csma_success").show();
714
  setTimeout(function()
727
  jQuery("#acx_csma_email").hide();
728
  jQuery("#acx_csma_submit").hide();
729
  jQuery("#acx_csma_error").show();
730
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
731
+ jQuery(".acx_csma_privacy_cvr").show();
732
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular ;?>");
733
  setTimeout(function()
734
  {
737
  document.getElementById('acx_csma_name_hidden').type = 'text';
738
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
739
  jQuery("#acx_csma_submit").show();
740
+ jQuery(".acx_csma_privacy_cvr").hide();
741
  acx_csma_form_status=1;
742
 
743
  }, 3000);
880
  }
881
  <?php }
882
  } ?>
883
+ jQuery( ".acx_csma_info_lb" ).click(function() {
884
+ var lb_title = jQuery(this).attr('lb_title');
885
+ var lb_content = jQuery(this).attr('lb_content');
886
+ var html= '<div id="acx_csma_c_icon_p_info_lb_h" style="display:none;"><div class="acx_csma_c_icon_p_info_c"><span class="acx_csma_c_icon_p_info_close" onclick="acx_csma_remove_info()"></span><h4>'+lb_title+'</h4><div class="acx_csma_c_icon_p_info_content">'+lb_content+'</div></div></div> <!-- acx_csma_c_icon_p_info_lb_h -->';
887
+ jQuery( "body" ).append(html)
888
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeIn();
889
+ });
890
+
891
+ function acx_csma_remove_info()
892
+ {
893
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeOut()
894
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).remove();
895
+ var lb_title = "";
896
+ var lb_content = "";
897
+ };
898
  </script>
899
  <?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id); ?>
900
  </body>
templates/3/style.css CHANGED
@@ -411,6 +411,19 @@ media query
411
  margin: 20px 0 0;
412
  }
413
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
414
  #acx_csma_success ,#acx_csma_invalid ,#acx_csma_error
415
  {
416
  background: #fff none repeat scroll 0 0;
@@ -419,4 +432,82 @@ media query
419
  border-radius: 4px;
420
  max-width:400px;
421
  margin:0 auto;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
422
  }
411
  margin: 20px 0 0;
412
  }
413
  }
414
+ @media screen and (max-width: 365px)
415
+ {
416
+ .acx_csma_privacy_cvr {
417
+ margin-top: 0px !important;
418
+ }
419
+ .form h2
420
+ {
421
+ margin:0 0 10px !important;
422
+ }
423
+ .acx_csma_gdpr_notice .acx_csma_info_lb {
424
+ line-height: 0px;
425
+ }
426
+ }
427
  #acx_csma_success ,#acx_csma_invalid ,#acx_csma_error
428
  {
429
  background: #fff none repeat scroll 0 0;
432
  border-radius: 4px;
433
  max-width:400px;
434
  margin:0 auto;
435
+ }
436
+ #acx_csma_c_icon_p_info_lb_h
437
+ {
438
+ background: rgba(0, 0, 0, 0.8) none repeat scroll 0 0;
439
+ height: 100%;
440
+ left: 0;
441
+ position: fixed;
442
+ top: 0;
443
+ width: 100%;
444
+ z-index: 199999;
445
+ }
446
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_c
447
+ {
448
+ background: white none repeat scroll 0 0;
449
+ border: 1px solid lightblue;
450
+ border-radius: 2px;
451
+ box-sizing: border-box;
452
+ margin-left: 24%;
453
+ margin-top: 7%;
454
+ position: relative;
455
+ width: 50%;
456
+ }
457
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_close
458
+ {
459
+ background: rgba(0, 0, 0, 0) url("./images/close.png") repeat scroll 0 0;
460
+ cursor: pointer;
461
+ height: 30px;
462
+ position: absolute;
463
+ right: 0;
464
+ top: 0;
465
+ width: 35px;
466
+ }
467
+ .csma_info_lb
468
+ {
469
+ cursor:pointer;
470
+ }
471
+ #acx_csma_c_icon_p_info_lb_h h4
472
+ {
473
+ background: #f0f0f0 none repeat scroll 0 0;
474
+ box-sizing: border-box;
475
+ font-family: arial;
476
+ font-size: 16px;
477
+ font-weight: normal;
478
+ margin: 0;
479
+ padding: 8px;
480
+ text-transform:uppercase;
481
+ text-align:left !important;
482
+ color: #7a7a7a !important;
483
+ }
484
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_content
485
+ {
486
+ background: white none repeat scroll 0 0;
487
+ box-sizing: border-box;
488
+ font-family: arial;
489
+ font-size: 16px;
490
+ line-height: 22px;
491
+ min-height: 100px;
492
+ padding: 15px;
493
+ color:#707171;
494
+ }
495
+ .acx_csma_c_icon_p_info_content a {
496
+ border-bottom: 1px dashed;
497
+ font-family: arial;
498
+ font-size: 15px;
499
+ font-style: normal;
500
+ text-decoration: none;
501
+ }
502
+ #acx_csma_gdpr_accept {
503
+ width: auto;
504
+ padding: 0 !important;
505
+ margin-right: 6px;
506
+ }
507
+ .acx_csma_privacy_cvr {
508
+ margin-top: 5px;
509
+ }
510
+ .footer .acx_csma_info_lb, .acx_csma_gdpr_notice .acx_csma_info_lb
511
+ {
512
+ cursor:pointer;
513
  }
templates/4/images/close.png ADDED
Binary file
templates/4/index.php CHANGED
@@ -51,7 +51,10 @@ if($acx_csma_meta_keywords!="")
51
  color: <?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_subscription_btn_color4']; ?>;
52
  }
53
 
54
-
 
 
 
55
 
56
  </style>
57
  <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
@@ -91,6 +94,10 @@ else
91
  {
92
  $new_class="";
93
  }
 
 
 
 
94
  ?>
95
  <div class="wrapper <?php echo $new_class; ?>">
96
  <div class="canvas1000">
@@ -235,19 +242,86 @@ else
235
  if($acx_csma_show_subscription_name4 == 1)
236
  {
237
  ?>
238
-
239
  <input type="text" id="acx_csma_name_hidden" class="acx_input_class" name="acx_csma_name_hidden" value="" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_name_singular); ?>"/>
240
  <input type="hidden" id="acx_csma_email" class="acx_input_class" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_email_singular); ?>" >
241
  <div class="clear-spcl"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
  <input type="button" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_next_singular); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
243
  <?php
244
  }
245
  else if($acx_csma_show_subscription_name4 == 0){ ?>
246
-
247
  <input type="text" id="acx_csma_email" class="acx_input_class" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_email_singular); ?>" >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
  <div class="clear-spcl"></div>
 
249
  <input type="button" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_subscription_btn_text4']); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
250
  <?php }?>
 
251
  </form>
252
  </div>
253
  <?php
@@ -282,6 +356,16 @@ else
282
  </ul>
283
  </div><!-- scmi -->
284
  </div><!-- inline_block -->
 
 
 
 
 
 
 
 
 
 
285
  </div><!-- canvas1000 -->
286
  </div><!-- wrapper -->
287
 
@@ -314,7 +398,14 @@ if($acx_csma_show_subscription4 == 1)
314
  $acx_email_singular=$acx_email_exist_arr['singular'];
315
  $acx_subs_next_arr=acx_csma_disp_var_to_show("next");
316
  $acx_next_singular=$acx_subs_next_arr['singular'];
317
- ?>
 
 
 
 
 
 
 
318
  var acx_csma_form_status=1;
319
  function acx_csma_validate_email()
320
  {
@@ -335,18 +426,32 @@ function acx_csma_validate_email()
335
  jQuery("#acx_csma_invalid").show();
336
  jQuery("#acx_csma_email").hide();
337
  jQuery("#acx_csma_submit").hide();
 
338
  setTimeout(function()
339
  {
340
  jQuery("#acx_csma_invalid").hide();
341
  jQuery("#acx_csma_email").show();
342
- jQuery("#acx_csma_submit").show();
 
 
343
  }, 3000);
344
 
345
 
346
  return false;
347
  }
348
- else
349
  {
 
 
 
 
 
 
 
 
 
 
 
350
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
351
  jQuery('body').append(acx_load);
352
 
@@ -363,11 +468,14 @@ function acx_csma_validate_email()
363
  jQuery("#acx_csma_success").show();
364
  jQuery("#acx_csma_email").hide();
365
  jQuery("#acx_csma_submit").hide();
 
366
  setTimeout(function()
367
  {
368
  jQuery("#acx_csma_success").hide();
369
  jQuery("#acx_csma_email").show();
370
  jQuery("#acx_csma_submit").show();
 
 
371
 
372
  }, 3000);
373
  }
@@ -376,6 +484,7 @@ function acx_csma_validate_email()
376
  jQuery("#acx_csma_email").hide();
377
  jQuery("#acx_csma_submit").hide();
378
  jQuery("#acx_csma_error").show();
 
379
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
380
  setTimeout(function()
381
  {
@@ -383,6 +492,8 @@ function acx_csma_validate_email()
383
  jQuery("#acx_csma_error").hide();
384
  jQuery("#acx_csma_email").show();
385
  jQuery("#acx_csma_submit").show();
 
 
386
 
387
  }, 3000);
388
 
@@ -397,20 +508,22 @@ function acx_csma_validate_email()
397
  var acx_csma_name_hidden=document.getElementById('acx_csma_name_hidden').value;
398
  if(acx_csma_form_status== 1)
399
  {
400
- if(acx_csma_name_hidden=="")
401
- {
402
- alert('<?php echo $acx_name_val_singular; ?>');
403
- acx_csma_form_status=1;
404
- return false;
405
- }
406
- else{
407
- document.getElementById('acx_csma_name_hidden').type = 'hidden';
408
- document.getElementById('acx_csma_email').type = 'email';
409
- jQuery("#acx_csma_email").show();
410
- document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_subscription_btn_text4; ?>";
411
- acx_csma_form_status=2;
412
- return false;
413
- }
 
 
414
  }
415
  else if(acx_csma_form_status==2)
416
  {
@@ -428,12 +541,14 @@ function acx_csma_validate_email()
428
  jQuery("#acx_csma_email").hide();
429
  jQuery("#acx_csma_submit").hide();
430
  jQuery("#acx_csma_invalid").show();
 
431
  setTimeout(function()
432
  {
433
  jQuery("#acx_csma_invalid").hide();
434
  document.getElementById('acx_csma_name_hidden').type = 'text';
435
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
436
  jQuery("#acx_csma_submit").show();
 
437
  acx_csma_form_status=1;
438
 
439
  }, 3000);
@@ -443,6 +558,17 @@ function acx_csma_validate_email()
443
  }
444
  else
445
  {
 
 
 
 
 
 
 
 
 
 
 
446
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
447
  jQuery('body').append(acx_load);
448
 
@@ -459,6 +585,7 @@ function acx_csma_validate_email()
459
  document.getElementById('acx_csma_name_hidden').value="";
460
  jQuery("#acx_csma_email").hide();
461
  jQuery("#acx_csma_submit").hide();
 
462
 
463
  jQuery("#acx_csma_success").show();
464
  setTimeout(function()
@@ -477,6 +604,8 @@ function acx_csma_validate_email()
477
  jQuery("#acx_csma_email").hide();
478
  jQuery("#acx_csma_submit").hide();
479
  jQuery("#acx_csma_error").show();
 
 
480
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
481
  setTimeout(function()
482
  {
@@ -485,6 +614,7 @@ function acx_csma_validate_email()
485
  document.getElementById('acx_csma_name_hidden').type = 'text';
486
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
487
  jQuery("#acx_csma_submit").show();
 
488
  acx_csma_form_status=1;
489
 
490
  }, 3000);
@@ -641,6 +771,21 @@ function updateCounter()
641
  <?php }
642
 
643
  }?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
644
  </script>
645
  <?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id);?>
646
  </body>
51
  color: <?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_subscription_btn_color4']; ?>;
52
  }
53
 
54
+ .acx_csma_info_lb:hover
55
+ {
56
+ color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_footer_gdpr_hovercolor4']; ?> !important;
57
+ }
58
 
59
  </style>
60
  <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
94
  {
95
  $new_class="";
96
  }
97
+ $acx_csma_form_text = get_option('acx_csma_form_text');
98
+ $acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
99
+ $acx_csma_privacy_policy_title = get_option('acx_csma_privacy_policy_title');
100
+ $acx_csma_privacy_policy_desc = get_option('acx_csma_privacy_policy_desc');
101
  ?>
102
  <div class="wrapper <?php echo $new_class; ?>">
103
  <div class="canvas1000">
242
  if($acx_csma_show_subscription_name4 == 1)
243
  {
244
  ?>
245
+ <div class="acx_csma_email_cvr1">
246
  <input type="text" id="acx_csma_name_hidden" class="acx_input_class" name="acx_csma_name_hidden" value="" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_name_singular); ?>"/>
247
  <input type="hidden" id="acx_csma_email" class="acx_input_class" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_email_singular); ?>" >
248
  <div class="clear-spcl"></div>
249
+ <div class="acx_csma_privacy_cvr" style="display:none;">
250
+ <?php
251
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
252
+ {
253
+ ?>
254
+ <span class="acx_csma_gdpr_notice" style='color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_footer_gdprcolor4']; ?>;'>
255
+ <input type="checkbox" name="acx_csma_gdpr_accept" id="acx_csma_gdpr_accept" value="yes">
256
+ <?php
257
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
258
+ {
259
+ ?>
260
+ <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_footer_gdprcolor4']; ?>;'>
261
+ <?php
262
+ }
263
+ ?>
264
+
265
+ <?php echo $acx_csma_form_text;?>
266
+ <?php
267
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
268
+ {
269
+ ?>
270
+ </a>
271
+ <?php
272
+
273
+ }
274
+ ?>
275
+ </span>
276
+ <?php
277
+ }
278
+ ?>
279
+ </div>
280
+ </div>
281
+ <div class="clear-spcl"></div>
282
  <input type="button" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_next_singular); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
283
  <?php
284
  }
285
  else if($acx_csma_show_subscription_name4 == 0){ ?>
286
+ <div class="acx_csma_email_cvr1">
287
  <input type="text" id="acx_csma_email" class="acx_input_class" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_email_singular); ?>" >
288
+ <div class="acx_csma_privacy_cvr" style="display:none;">
289
+ <?php
290
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
291
+ {
292
+ ?>
293
+ <span class="acx_csma_gdpr_notice" style='color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_footer_gdprcolor4']; ?>;'>
294
+ <input type="checkbox" name="acx_csma_gdpr_accept" id="acx_csma_gdpr_accept" value="yes">
295
+ <?php
296
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
297
+ {
298
+ ?>
299
+ <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_footer_gdprcolor4']; ?>;'>
300
+ <?php
301
+ }
302
+ ?>
303
+
304
+ <?php echo $acx_csma_form_text;?>
305
+ <?php
306
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
307
+ {
308
+ ?>
309
+ </a>
310
+ <?php
311
+
312
+ }
313
+ ?>
314
+ </span>
315
+ <?php
316
+ }
317
+ ?>
318
+ </div>
319
+ </div>
320
  <div class="clear-spcl"></div>
321
+
322
  <input type="button" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_subscription_btn_text4']); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
323
  <?php }?>
324
+
325
  </form>
326
  </div>
327
  <?php
356
  </ul>
357
  </div><!-- scmi -->
358
  </div><!-- inline_block -->
359
+ <!--<div class="inline_block acx_footer_privacy">
360
+ <?php
361
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
362
+ {
363
+ ?>
364
+
365
+ <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_4[$acx_csma_template_id]['acx_csma_footer_gdprcolor4']; ?>;'><?php echo $acx_csma_privacy_policy_title ;?></a>
366
+ <?php
367
+ }?>
368
+ </div><!-- inline_block -->
369
  </div><!-- canvas1000 -->
370
  </div><!-- wrapper -->
371
 
398
  $acx_email_singular=$acx_email_exist_arr['singular'];
399
  $acx_subs_next_arr=acx_csma_disp_var_to_show("next");
400
  $acx_next_singular=$acx_subs_next_arr['singular'];
401
+
402
+ if($acx_csma_show_subscription_name4 == 0 && $acx_csma_gdpr_status == "yes")
403
+ {?>
404
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
405
+ jQuery(".acx_csma_privacy_cvr").show();
406
+ <?php
407
+ }
408
+ ?>
409
  var acx_csma_form_status=1;
410
  function acx_csma_validate_email()
411
  {
426
  jQuery("#acx_csma_invalid").show();
427
  jQuery("#acx_csma_email").hide();
428
  jQuery("#acx_csma_submit").hide();
429
+ jQuery(".acx_csma_privacy_cvr").hide();
430
  setTimeout(function()
431
  {
432
  jQuery("#acx_csma_invalid").hide();
433
  jQuery("#acx_csma_email").show();
434
+ jQuery("#acx_csma_submit").show();
435
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
436
+ jQuery(".acx_csma_privacy_cvr").show();
437
  }, 3000);
438
 
439
 
440
  return false;
441
  }
442
+ else
443
  {
444
+ <?php
445
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
446
+ {
447
+ ?>
448
+ if(jQuery("#acx_csma_gdpr_accept:checked").val() !== "yes")
449
+ {
450
+ return false;
451
+ }
452
+ <?php
453
+ }
454
+ ?>
455
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
456
  jQuery('body').append(acx_load);
457
 
468
  jQuery("#acx_csma_success").show();
469
  jQuery("#acx_csma_email").hide();
470
  jQuery("#acx_csma_submit").hide();
471
+ jQuery(".acx_csma_privacy_cvr").hide();
472
  setTimeout(function()
473
  {
474
  jQuery("#acx_csma_success").hide();
475
  jQuery("#acx_csma_email").show();
476
  jQuery("#acx_csma_submit").show();
477
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
478
+ jQuery(".acx_csma_privacy_cvr").show();
479
 
480
  }, 3000);
481
  }
484
  jQuery("#acx_csma_email").hide();
485
  jQuery("#acx_csma_submit").hide();
486
  jQuery("#acx_csma_error").show();
487
+ jQuery(".acx_csma_privacy_cvr").hide();
488
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
489
  setTimeout(function()
490
  {
492
  jQuery("#acx_csma_error").hide();
493
  jQuery("#acx_csma_email").show();
494
  jQuery("#acx_csma_submit").show();
495
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
496
+ jQuery(".acx_csma_privacy_cvr").show();
497
 
498
  }, 3000);
499
 
508
  var acx_csma_name_hidden=document.getElementById('acx_csma_name_hidden').value;
509
  if(acx_csma_form_status== 1)
510
  {
511
+ if(acx_csma_name_hidden=="")
512
+ {
513
+ alert('<?php echo $acx_name_val_singular; ?>');
514
+ acx_csma_form_status=1;
515
+ return false;
516
+ }
517
+ else{
518
+ document.getElementById('acx_csma_name_hidden').type = 'hidden';
519
+ document.getElementById('acx_csma_email').type = 'email';
520
+ jQuery("#acx_csma_email").show();
521
+ document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_subscription_btn_text4; ?>";
522
+ acx_csma_form_status=2;
523
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
524
+ jQuery(".acx_csma_privacy_cvr").show();
525
+ return false;
526
+ }
527
  }
528
  else if(acx_csma_form_status==2)
529
  {
541
  jQuery("#acx_csma_email").hide();
542
  jQuery("#acx_csma_submit").hide();
543
  jQuery("#acx_csma_invalid").show();
544
+ jQuery(".acx_csma_privacy_cvr").hide();
545
  setTimeout(function()
546
  {
547
  jQuery("#acx_csma_invalid").hide();
548
  document.getElementById('acx_csma_name_hidden').type = 'text';
549
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
550
  jQuery("#acx_csma_submit").show();
551
+ jQuery(".acx_csma_privacy_cvr").hide();
552
  acx_csma_form_status=1;
553
 
554
  }, 3000);
558
  }
559
  else
560
  {
561
+ <?php
562
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
563
+ {
564
+ ?>
565
+ if(jQuery("#acx_csma_gdpr_accept:checked").val() !== "yes")
566
+ {
567
+ return false;
568
+ }
569
+ <?php
570
+ }
571
+ ?>
572
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
573
  jQuery('body').append(acx_load);
574
 
585
  document.getElementById('acx_csma_name_hidden').value="";
586
  jQuery("#acx_csma_email").hide();
587
  jQuery("#acx_csma_submit").hide();
588
+ jQuery(".acx_csma_privacy_cvr").hide();
589
 
590
  jQuery("#acx_csma_success").show();
591
  setTimeout(function()
604
  jQuery("#acx_csma_email").hide();
605
  jQuery("#acx_csma_submit").hide();
606
  jQuery("#acx_csma_error").show();
607
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
608
+ jQuery(".acx_csma_privacy_cvr").show();
609
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
610
  setTimeout(function()
611
  {
614
  document.getElementById('acx_csma_name_hidden').type = 'text';
615
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
616
  jQuery("#acx_csma_submit").show();
617
+ jQuery(".acx_csma_privacy_cvr").hide();
618
  acx_csma_form_status=1;
619
 
620
  }, 3000);
771
  <?php }
772
 
773
  }?>
774
+ jQuery( ".acx_csma_info_lb" ).click(function() {
775
+ var lb_title = jQuery(this).attr('lb_title');
776
+ var lb_content = jQuery(this).attr('lb_content');
777
+ var html= '<div id="acx_csma_c_icon_p_info_lb_h" style="display:none;"><div class="acx_csma_c_icon_p_info_c"><span class="acx_csma_c_icon_p_info_close" onclick="acx_csma_remove_info()"></span><h4>'+lb_title+'</h4><div class="acx_csma_c_icon_p_info_content">'+lb_content+'</div></div></div> <!-- acx_csma_c_icon_p_info_lb_h -->';
778
+ jQuery( "body" ).append(html)
779
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeIn();
780
+ });
781
+
782
+ function acx_csma_remove_info()
783
+ {
784
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeOut()
785
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).remove();
786
+ var lb_title = "";
787
+ var lb_content = "";
788
+ };
789
  </script>
790
  <?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id);?>
791
  </body>
templates/4/style.css CHANGED
@@ -248,7 +248,7 @@ img
248
  font-family: arial;
249
  font-size: 16px;
250
  padding: 10px 12px;
251
- width: 65%;
252
  }
253
  .acx_csma_subscript_cvr #acx_csma_submit {
254
  border: medium none;
@@ -262,7 +262,7 @@ img
262
  font-family: arial;
263
  font-size: 17px;
264
  padding: 9px 0;
265
- width: 35%;
266
  cursor:pointer;
267
  }
268
 
@@ -303,4 +303,92 @@ img
303
  .acx_csma_subscript_cvr #acx_csma_submit:hover
304
  {
305
  opacity:0.8;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
  }
248
  font-family: arial;
249
  font-size: 16px;
250
  padding: 10px 12px;
251
+ width: 100%;
252
  }
253
  .acx_csma_subscript_cvr #acx_csma_submit {
254
  border: medium none;
262
  font-family: arial;
263
  font-size: 17px;
264
  padding: 9px 0;
265
+ width: 33%;
266
  cursor:pointer;
267
  }
268
 
303
  .acx_csma_subscript_cvr #acx_csma_submit:hover
304
  {
305
  opacity:0.8;
306
+ }
307
+ #acx_csma_c_icon_p_info_lb_h
308
+ {
309
+ background: rgba(0, 0, 0, 0.8) none repeat scroll 0 0;
310
+ height: 100%;
311
+ left: 0;
312
+ position: fixed;
313
+ top: 0;
314
+ width: 100%;
315
+ z-index: 199999;
316
+ }
317
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_c
318
+ {
319
+ background: white none repeat scroll 0 0;
320
+ border: 1px solid lightblue;
321
+ border-radius: 2px;
322
+ box-sizing: border-box;
323
+ margin-left: 24%;
324
+ margin-top: 7%;
325
+ position: relative;
326
+ width: 50%;
327
+ }
328
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_close
329
+ {
330
+ background: rgba(0, 0, 0, 0) url("./images/close.png") repeat scroll 0 0;
331
+ cursor: pointer;
332
+ height: 30px;
333
+ position: absolute;
334
+ right: 0;
335
+ top: 0;
336
+ width: 35px;
337
+ }
338
+ .csma_info_lb
339
+ {
340
+ cursor:pointer;
341
+ }
342
+ #acx_csma_c_icon_p_info_lb_h h4
343
+ {
344
+ background: #f0f0f0 none repeat scroll 0 0;
345
+ box-sizing: border-box;
346
+ font-family: arial;
347
+ font-size: 16px;
348
+ font-weight: normal;
349
+ margin: 0;
350
+ padding: 8px;
351
+ }
352
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_content
353
+ {
354
+ background: white none repeat scroll 0 0;
355
+ box-sizing: border-box;
356
+ font-family: arial;
357
+ font-size: 16px;
358
+ line-height: 22px;
359
+ min-height: 100px;
360
+ padding: 15px;
361
+ color:#707171;
362
+ }
363
+ .acx_csma_c_icon_p_info_content a {
364
+ border-bottom: 1px dashed;
365
+ font-family: arial;
366
+ font-size: 15px;
367
+ font-style: normal;
368
+ text-decoration: none;
369
+ }
370
+ #acx_csma_gdpr_accept {
371
+ width: auto;
372
+ padding: 0 !important;
373
+ margin-right: 6px;
374
+ }
375
+ .acx_csma_privacy_cvr {
376
+ margin-top: 5px;
377
+ float: left;
378
+ }
379
+ .acx_csma_info_lb
380
+ {
381
+ cursor:pointer;
382
+ }
383
+ .acx_csma_email_cvr1 {
384
+ display: block;
385
+ float: left;
386
+ width: 67%;
387
+ }
388
+ @media screen and (max-width:500px)
389
+ {
390
+ .acx_csma_email_cvr1
391
+ {
392
+ width:100%;
393
+ }
394
  }
templates/5/images/close.png ADDED
Binary file
templates/5/index.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  $acx_csma_template_id = 5;
3
  do_action('acx_csma_above_template_html',$acx_csma_template_id);
4
  $acx_csma_meta_title =get_option('acx_csma_meta_title');
@@ -6,6 +7,7 @@ $acx_csma_meta_description=get_option('acx_csma_meta_description');
6
  $acx_csma_meta_keywords=get_option('acx_csma_meta_keywords');
7
  $favicon_attach_id = get_option('acx_csma_favicon');
8
  $acx_csma_favicon = $favicon_attach_id;
 
9
  if(is_numeric($favicon_attach_id))
10
  {
11
  $fav_icon_attachment_url = parse_url( wp_get_attachment_url($favicon_attach_id) );
@@ -15,6 +17,7 @@ $acx_csma_start_date_time=get_option('acx_csma_start_date_time');
15
  $acx_csma_date_time=get_option('acx_csma_date_time');
16
  $acx_csma_appearence_array_5=acx_csma_get_db_array_value();
17
  $acx_csma_timestamp=current_time('timestamp');
 
18
  ?>
19
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
20
  <html xmlns="http://www.w3.org/1999/xhtml">
@@ -43,6 +46,10 @@ if($acx_csma_meta_keywords!="")
43
  ?>
44
  <style>
45
  <?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_custom_css_temp5']; ?>
 
 
 
 
46
  </style>
47
  <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
48
  <link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>" type="image/png">
@@ -69,6 +76,10 @@ else
69
  {
70
  $new_class="";
71
  }
 
 
 
 
72
  ?>
73
  <div class="wrapper <?php echo $new_class; ?>">
74
  <div class="canvas1000">
@@ -238,23 +249,91 @@ else
238
  <div id="acx_csma_success" name="acx_csma_success" style="display:none;" ><?php echo $acx_csma_subscribe_success5; ?></div>
239
  <div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none;" ><?php echo $acx_csma_subscribe_invalid5; ?></div>
240
  <div id="acx_csma_error" style="display:none;"></div>
 
241
  <?php
242
  if($acx_csma_show_subscription_name5 == 1)
243
  {
244
  ?>
 
245
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_name_singular); ?>"/>
246
  <input type="hidden" id="acx_csma_email" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_email_singular); ?>" >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
  <input type="button" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_next_singular); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
248
  <?php
249
  }
250
  else if($acx_csma_show_subscription_name5 == 0){ ?>
251
-
252
  <input type="text" id="acx_csma_email" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_email_singular); ?>" >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
  <input type="button" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_subscribe_btn_text5']); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
254
  <?php
255
  }
256
 
257
  ?>
 
258
  </form>
259
  <?php
260
  }
@@ -295,7 +374,17 @@ else
295
  </div><!-- footer -->
296
  </div><!-- canvas1000 -->
297
  </div><!-- wrapper -->
298
-
 
 
 
 
 
 
 
 
 
 
299
  <script>
300
  jQuery(document).ready(function() {
301
  jQuery(window).keydown(function(event){
@@ -325,7 +414,13 @@ if($acx_csma_show_subscription5 == 1)
325
  $acx_email_singular=$acx_email_exist_arr['singular'];
326
  $acx_subs_next_arr=acx_csma_disp_var_to_show("next");
327
  $acx_next_singular=$acx_subs_next_arr['singular'];
328
- ?>
 
 
 
 
 
 
329
  var acx_csma_form_status=1;
330
  function acx_csma_validate_email()
331
  {
@@ -346,16 +441,30 @@ function acx_csma_validate_email()
346
  jQuery("#acx_csma_invalid").show();
347
  jQuery("#acx_csma_email").hide();
348
  jQuery("#acx_csma_submit").hide();
 
349
  setTimeout(function()
350
  {
351
  jQuery("#acx_csma_invalid").hide();
352
  jQuery("#acx_csma_email").show();
353
- jQuery("#acx_csma_submit").show();
 
 
354
  }, 3000);
355
  return false;
356
  }
357
- else
 
 
 
358
  {
 
 
 
 
 
 
 
 
359
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
360
  jQuery('body').append(acx_load);
361
 
@@ -372,11 +481,14 @@ function acx_csma_validate_email()
372
  jQuery("#acx_csma_success").show();
373
  jQuery("#acx_csma_email").hide();
374
  jQuery("#acx_csma_submit").hide();
 
375
  setTimeout(function()
376
  {
377
  jQuery("#acx_csma_success").hide();
378
  jQuery("#acx_csma_email").show();
379
  jQuery("#acx_csma_submit").show();
 
 
380
 
381
  }, 3000);
382
  }
@@ -385,6 +497,7 @@ function acx_csma_validate_email()
385
  jQuery("#acx_csma_email").hide();
386
  jQuery("#acx_csma_submit").hide();
387
  jQuery("#acx_csma_error").show();
 
388
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
389
  setTimeout(function()
390
  {
@@ -392,6 +505,8 @@ function acx_csma_validate_email()
392
  jQuery("#acx_csma_error").hide();
393
  jQuery("#acx_csma_email").show();
394
  jQuery("#acx_csma_submit").show();
 
 
395
 
396
  }, 3000);
397
 
@@ -418,6 +533,9 @@ function acx_csma_validate_email()
418
  jQuery("#acx_csma_email").show();
419
  document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_subscribe_btn_text5; ?>";
420
  acx_csma_form_status=2;
 
 
 
421
  return false;
422
  }
423
  }
@@ -437,12 +555,15 @@ function acx_csma_validate_email()
437
  jQuery("#acx_csma_email").hide();
438
  jQuery("#acx_csma_submit").hide();
439
  jQuery("#acx_csma_invalid").show();
 
 
440
  setTimeout(function()
441
  {
442
  jQuery("#acx_csma_invalid").hide();
443
  document.getElementById('acx_csma_name_hidden').type = 'text';
444
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
445
  jQuery("#acx_csma_submit").show();
 
446
  acx_csma_form_status=1;
447
 
448
  }, 3000);
@@ -452,6 +573,17 @@ function acx_csma_validate_email()
452
  }
453
  else
454
  {
 
 
 
 
 
 
 
 
 
 
 
455
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
456
  jQuery('body').append(acx_load);
457
 
@@ -468,6 +600,7 @@ function acx_csma_validate_email()
468
  document.getElementById('acx_csma_name_hidden').value="";
469
  jQuery("#acx_csma_email").hide();
470
  jQuery("#acx_csma_submit").hide();
 
471
 
472
  jQuery("#acx_csma_success").show();
473
  setTimeout(function()
@@ -486,6 +619,8 @@ function acx_csma_validate_email()
486
  jQuery("#acx_csma_email").hide();
487
  jQuery("#acx_csma_submit").hide();
488
  jQuery("#acx_csma_error").show();
 
 
489
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
490
  setTimeout(function()
491
  {
@@ -494,6 +629,7 @@ function acx_csma_validate_email()
494
  document.getElementById('acx_csma_name_hidden').type = 'text';
495
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
496
  jQuery("#acx_csma_submit").show();
 
497
  acx_csma_form_status=1;
498
 
499
  }, 3000);
@@ -510,6 +646,7 @@ function acx_csma_validate_email()
510
  ?>
511
  <?php if($acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_show_progressbar5']==1)
512
  {
 
513
  if($acx_csma_timestamp < $acx_csma_date_time)
514
  {?>
515
  var current_spu = Math.floor(<?php echo current_time('timestamp'); ?>);
@@ -615,6 +752,21 @@ function updateCounter()
615
  }
616
  <?php }
617
  }?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
618
  </script>
619
  <?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id); ?>
620
  </body>
1
  <?php
2
+ error_reporting(E_ALL);
3
  $acx_csma_template_id = 5;
4
  do_action('acx_csma_above_template_html',$acx_csma_template_id);
5
  $acx_csma_meta_title =get_option('acx_csma_meta_title');
7
  $acx_csma_meta_keywords=get_option('acx_csma_meta_keywords');
8
  $favicon_attach_id = get_option('acx_csma_favicon');
9
  $acx_csma_favicon = $favicon_attach_id;
10
+
11
  if(is_numeric($favicon_attach_id))
12
  {
13
  $fav_icon_attachment_url = parse_url( wp_get_attachment_url($favicon_attach_id) );
17
  $acx_csma_date_time=get_option('acx_csma_date_time');
18
  $acx_csma_appearence_array_5=acx_csma_get_db_array_value();
19
  $acx_csma_timestamp=current_time('timestamp');
20
+
21
  ?>
22
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
23
  <html xmlns="http://www.w3.org/1999/xhtml">
46
  ?>
47
  <style>
48
  <?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_custom_css_temp5']; ?>
49
+ .acx_csma_info_lb:hover
50
+ {
51
+ color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_footer_gdpr_hovercolor5']; ?> !important;
52
+ }
53
  </style>
54
  <link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
55
  <link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>" type="image/png">
76
  {
77
  $new_class="";
78
  }
79
+ $acx_csma_form_text = get_option('acx_csma_form_text');
80
+ $acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
81
+ $acx_csma_privacy_policy_title = get_option('acx_csma_privacy_policy_title');
82
+ $acx_csma_privacy_policy_desc = get_option('acx_csma_privacy_policy_desc');
83
  ?>
84
  <div class="wrapper <?php echo $new_class; ?>">
85
  <div class="canvas1000">
249
  <div id="acx_csma_success" name="acx_csma_success" style="display:none;" ><?php echo $acx_csma_subscribe_success5; ?></div>
250
  <div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none;" ><?php echo $acx_csma_subscribe_invalid5; ?></div>
251
  <div id="acx_csma_error" style="display:none;"></div>
252
+ <div class="acx_subsc_form_cvr">
253
  <?php
254
  if($acx_csma_show_subscription_name5 == 1)
255
  {
256
  ?>
257
+ <div class="acx_csma_email_cvr1">
258
  <input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_name_singular); ?>"/>
259
  <input type="hidden" id="acx_csma_email" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_email_singular); ?>" >
260
+ <div class="acx_csma_privacy_cvr" style="display:none;">
261
+ <?php
262
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text !="")
263
+ {
264
+ ?>
265
+ <span class="acx_csma_gdpr_notice" style='color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_footer_gdprcolor5']; ?>;'>
266
+ <input type="checkbox" name="acx_csma_gdpr_accept" id="acx_csma_gdpr_accept" value="yes">
267
+ <?php
268
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
269
+ {
270
+ ?>
271
+ <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_footer_gdprcolor5'];?>;'>
272
+ <?php
273
+ }
274
+ ?>
275
+
276
+ <?php echo $acx_csma_form_text;?>
277
+ <?php
278
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
279
+ {
280
+ ?>
281
+ </a>
282
+ <?php
283
+
284
+ }
285
+ ?>
286
+ </span>
287
+ <?php
288
+ }
289
+ ?>
290
+ </div>
291
+ </div>
292
  <input type="button" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_next_singular); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
293
  <?php
294
  }
295
  else if($acx_csma_show_subscription_name5 == 0){ ?>
296
+ <div class="acx_csma_email_cvr1">
297
  <input type="text" id="acx_csma_email" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_email_singular); ?>" >
298
+
299
+ <div class="acx_csma_privacy_cvr" style="display:none;">
300
+ <?php
301
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text !="")
302
+ {
303
+ ?>
304
+ <span class="acx_csma_gdpr_notice" style='color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_footer_gdprcolor5']; ?>;'>
305
+ <input type="checkbox" name="acx_csma_gdpr_accept" id="acx_csma_gdpr_accept" value="yes">
306
+ <?php
307
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
308
+ {
309
+ ?>
310
+ <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_footer_gdprcolor5'];?>;'>
311
+ <?php
312
+ }
313
+ ?>
314
+
315
+ <?php echo $acx_csma_form_text;?>
316
+ <?php
317
+ if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
318
+ {
319
+ ?>
320
+ </a>
321
+ <?php
322
+
323
+ }
324
+ ?>
325
+ </span>
326
+ <?php
327
+ }
328
+ ?>
329
+ </div>
330
+ </div>
331
  <input type="button" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_subscribe_btn_text5']); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();" class="submit">
332
  <?php
333
  }
334
 
335
  ?>
336
+ </div>
337
  </form>
338
  <?php
339
  }
374
  </div><!-- footer -->
375
  </div><!-- canvas1000 -->
376
  </div><!-- wrapper -->
377
+ <!--<div class="inline_block acx_footer_privacy">
378
+ <?php
379
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
380
+ {
381
+ ?>
382
+
383
+ <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo $acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_footer_gdprcolor5']; ?>'><?php echo $acx_csma_privacy_policy_title ;?></a>
384
+ <?php
385
+ }
386
+ ?>
387
+ </div><!-- inline_block -->
388
  <script>
389
  jQuery(document).ready(function() {
390
  jQuery(window).keydown(function(event){
414
  $acx_email_singular=$acx_email_exist_arr['singular'];
415
  $acx_subs_next_arr=acx_csma_disp_var_to_show("next");
416
  $acx_next_singular=$acx_subs_next_arr['singular'];
417
+ if($acx_csma_show_subscription_name5 == 0 && $acx_csma_gdpr_status == "yes")
418
+ {?>
419
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
420
+ jQuery(".acx_csma_privacy_cvr").show();
421
+ <?php
422
+ }
423
+ ?>
424
  var acx_csma_form_status=1;
425
  function acx_csma_validate_email()
426
  {
441
  jQuery("#acx_csma_invalid").show();
442
  jQuery("#acx_csma_email").hide();
443
  jQuery("#acx_csma_submit").hide();
444
+ jQuery(".acx_csma_privacy_cvr").hide();
445
  setTimeout(function()
446
  {
447
  jQuery("#acx_csma_invalid").hide();
448
  jQuery("#acx_csma_email").show();
449
+ jQuery("#acx_csma_submit").show();
450
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
451
+ jQuery(".acx_csma_privacy_cvr").show();
452
  }, 3000);
453
  return false;
454
  }
455
+ else
456
+ {
457
+ <?php
458
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
459
  {
460
+ ?>
461
+ if(jQuery("#acx_csma_gdpr_accept:checked").val() !== "yes")
462
+ {
463
+ return false;
464
+ }
465
+ <?php
466
+ }
467
+ ?>
468
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
469
  jQuery('body').append(acx_load);
470
 
481
  jQuery("#acx_csma_success").show();
482
  jQuery("#acx_csma_email").hide();
483
  jQuery("#acx_csma_submit").hide();
484
+ jQuery(".acx_csma_privacy_cvr").hide();
485
  setTimeout(function()
486
  {
487
  jQuery("#acx_csma_success").hide();
488
  jQuery("#acx_csma_email").show();
489
  jQuery("#acx_csma_submit").show();
490
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
491
+ jQuery(".acx_csma_privacy_cvr").show();
492
 
493
  }, 3000);
494
  }
497
  jQuery("#acx_csma_email").hide();
498
  jQuery("#acx_csma_submit").hide();
499
  jQuery("#acx_csma_error").show();
500
+ jQuery(".acx_csma_privacy_cvr").hide();
501
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
502
  setTimeout(function()
503
  {
505
  jQuery("#acx_csma_error").hide();
506
  jQuery("#acx_csma_email").show();
507
  jQuery("#acx_csma_submit").show();
508
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
509
+ jQuery(".acx_csma_privacy_cvr").show();
510
 
511
  }, 3000);
512
 
533
  jQuery("#acx_csma_email").show();
534
  document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_subscribe_btn_text5; ?>";
535
  acx_csma_form_status=2;
536
+
537
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
538
+ jQuery(".acx_csma_privacy_cvr").show();
539
  return false;
540
  }
541
  }
555
  jQuery("#acx_csma_email").hide();
556
  jQuery("#acx_csma_submit").hide();
557
  jQuery("#acx_csma_invalid").show();
558
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
559
+ jQuery(".acx_csma_privacy_cvr").hide();
560
  setTimeout(function()
561
  {
562
  jQuery("#acx_csma_invalid").hide();
563
  document.getElementById('acx_csma_name_hidden').type = 'text';
564
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
565
  jQuery("#acx_csma_submit").show();
566
+ jQuery(".acx_csma_privacy_cvr").hide();
567
  acx_csma_form_status=1;
568
 
569
  }, 3000);
573
  }
574
  else
575
  {
576
+ <?php
577
+ if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
578
+ {
579
+ ?>
580
+ if(jQuery("#acx_csma_gdpr_accept:checked").val() !== "yes")
581
+ {
582
+ return false;
583
+ }
584
+ <?php
585
+ }
586
+ ?>
587
  var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
588
  jQuery('body').append(acx_load);
589
 
600
  document.getElementById('acx_csma_name_hidden').value="";
601
  jQuery("#acx_csma_email").hide();
602
  jQuery("#acx_csma_submit").hide();
603
+ jQuery(".acx_csma_privacy_cvr").hide();
604
 
605
  jQuery("#acx_csma_success").show();
606
  setTimeout(function()
619
  jQuery("#acx_csma_email").hide();
620
  jQuery("#acx_csma_submit").hide();
621
  jQuery("#acx_csma_error").show();
622
+ jQuery('#acx_csma_gdpr_accept').attr('checked', false);
623
+ jQuery(".acx_csma_privacy_cvr").show();
624
  jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
625
  setTimeout(function()
626
  {
629
  document.getElementById('acx_csma_name_hidden').type = 'text';
630
  document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
631
  jQuery("#acx_csma_submit").show();
632
+ jQuery(".acx_csma_privacy_cvr").hide();
633
  acx_csma_form_status=1;
634
 
635
  }, 3000);
646
  ?>
647
  <?php if($acx_csma_appearence_array_5[$acx_csma_template_id]['acx_csma_show_progressbar5']==1)
648
  {
649
+
650
  if($acx_csma_timestamp < $acx_csma_date_time)
651
  {?>
652
  var current_spu = Math.floor(<?php echo current_time('timestamp'); ?>);
752
  }
753
  <?php }
754
  }?>
755
+ jQuery( ".acx_csma_info_lb" ).click(function() {
756
+ var lb_title = jQuery(this).attr('lb_title');
757
+ var lb_content = jQuery(this).attr('lb_content');
758
+ var html= '<div id="acx_csma_c_icon_p_info_lb_h" style="display:none;"><div class="acx_csma_c_icon_p_info_c"><span class="acx_csma_c_icon_p_info_close" onclick="acx_csma_remove_info()"></span><h4>'+lb_title+'</h4><div class="acx_csma_c_icon_p_info_content">'+lb_content+'</div></div></div> <!-- acx_csma_c_icon_p_info_lb_h -->';
759
+ jQuery( "body" ).append(html)
760
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeIn();
761
+ });
762
+
763
+ function acx_csma_remove_info()
764
+ {
765
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeOut()
766
+ jQuery( "#acx_csma_c_icon_p_info_lb_h" ).remove();
767
+ var lb_title = "";
768
+ var lb_content = "";
769
+ };
770
  </script>
771
  <?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id); ?>
772
  </body>
templates/5/style.css CHANGED
@@ -200,9 +200,8 @@ input
200
  border: 1px solid #727272;
201
  border-radius: 8px;
202
  color: #b3b3b3;
203
- max-width: 370px;
204
  padding: 7px 10px;
205
- width: 80%;
206
  }
207
  .submit
208
  {
@@ -213,9 +212,9 @@ input
213
  font-size: 16px;
214
  font-weight: 100;
215
  margin: 0 0 0 10px;
216
- max-width: 110px;
217
  text-align: center;
218
  transition: all 0.2s ease 0s;
 
219
  }
220
  .submit:hover
221
  {
@@ -286,7 +285,11 @@ img
286
  {
287
  width: 80%;
288
  }
289
-
 
 
 
 
290
  }
291
  @media screen and (max-width: 640px)
292
  {
@@ -317,4 +320,106 @@ ul#countdown li
317
  border-radius: 4px;
318
  max-width:400px;
319
  margin:0 auto;
320
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  border: 1px solid #727272;
201
  border-radius: 8px;
202
  color: #b3b3b3;
 
203
  padding: 7px 10px;
204
+ width: 100%;
205
  }
206
  .submit
207
  {
212
  font-size: 16px;
213
  font-weight: 100;
214
  margin: 0 0 0 10px;
 
215
  text-align: center;
216
  transition: all 0.2s ease 0s;
217
+ width: 22%;
218
  }
219
  .submit:hover
220
  {
285
  {
286
  width: 80%;
287
  }
288
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_c
289
+ {
290
+ margin: 7px auto !important;
291
+ width: 90% !important;
292
+ }
293
  }
294
  @media screen and (max-width: 640px)
295
  {
320
  border-radius: 4px;
321
  max-width:400px;
322
  margin:0 auto;
323
+ }
324
+ #acx_csma_c_icon_p_info_lb_h
325
+ {
326
+ background: rgba(0, 0, 0, 0.8) none repeat scroll 0 0;
327
+ height: 100%;
328
+ left: 0;
329
+ position: fixed;
330
+ top: 0;
331
+ width: 100%;
332
+ z-index: 199999;
333
+ }
334
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_c
335
+ {
336
+ background: white none repeat scroll 0 0;
337
+ border: 1px solid lightblue;
338
+ border-radius: 2px;
339
+ box-sizing: border-box;
340
+ margin-left: 24%;
341
+ margin-top: 7%;
342
+ position: relative;
343
+ width: 50%;
344
+ }
345
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_close
346
+ {
347
+ background: rgba(0, 0, 0, 0) url("./images/close.png") repeat scroll 0 0;
348
+ cursor: pointer;
349
+ height: 30px;
350
+ position: absolute;
351
+ right: 0;
352
+ top: 0;
353
+ width: 35px;
354
+ }
355
+ .csma_info_lb
356
+ {
357
+ cursor:pointer;
358
+ }
359
+ #acx_csma_c_icon_p_info_lb_h h4
360
+ {
361
+ background: #f0f0f0 none repeat scroll 0 0;
362
+ box-sizing: border-box;
363
+ font-family: arial;
364
+ font-size: 16px;
365
+ font-weight: normal;
366
+ margin: 0;
367
+ padding: 8px;
368
+ text-align:left;
369
+ color: #7a7a7a;
370
+ text-transform:uppercase;
371
+ }
372
+ #acx_csma_c_icon_p_info_lb_h .acx_csma_c_icon_p_info_content
373
+ {
374
+ background: white none repeat scroll 0 0;
375
+ box-sizing: border-box;
376
+ font-family: arial;
377
+ font-size: 16px;
378
+ line-height: 22px;
379
+ min-height: 100px;
380
+ padding: 15px;
381
+ color:#707171;
382
+ }
383
+ .acx_csma_c_icon_p_info_content a {
384
+ border-bottom: 1px dashed;
385
+ font-family: arial;
386
+ font-size: 15px;
387
+ font-style: normal;
388
+ text-decoration: none;
389
+ }
390
+ #acx_csma_gdpr_accept {
391
+ width: auto;
392
+ padding: 0 !important;
393
+ margin-right: 6px;
394
+ }
395
+ .acx_csma_privacy_cvr {
396
+ margin-top: 5px;
397
+ }
398
+ .acx_footer_privacy
399
+ {
400
+ text-align:center;
401
+ }
402
+ .acx_csma_info_lb {
403
+ width: 37%;
404
+ cursor: pointer;
405
+ }
406
+ .acx_csma_email_cvr1 {
407
+ display: block;
408
+ float: left;
409
+ width: 67%;
410
+ }
411
+ .acx_subsc_form_cvr {
412
+ width: 80%;
413
+ margin: 0 auto;
414
+ }
415
+ @media screen and (max-width:548px)
416
+ {
417
+ .acx_csma_email_cvr1
418
+ {
419
+ width:100%;
420
+ }
421
+ .submit
422
+ {
423
+ width:65%;
424
+ }
425
+ }