Version Description
Fixed: Compatibility with Elementor. Fixed: Remove irrelevant categories from Categories section. Fixed: Frontend filters. Added: Gutenberg Integration.
Download this release
Release Info
Developer | webdorado |
Plugin | Calendar by WD – Responsive Event Calendar |
Version | 1.5.63 |
Comparing to | |
See all releases |
Code changes from version 1.5.62 to 1.5.63
- calendar.php +99 -40
- calendar_functions.html.php +6 -6
- changelog.txt +0 -203
- front_end/bigcalendarday.php +1 -1
- front_end/bigcalendarday_widget.php +1 -1
- front_end/bigcalendarlist.php +1 -1
- front_end/bigcalendarlist_widget.php +1 -1
- front_end/bigcalendarmonth.php +1 -1
- front_end/bigcalendarmonth_widget.php +1 -1
- front_end/bigcalendarweek.php +1 -1
- front_end/bigcalendarweek_widget.php +1 -1
- front_end/frontend_functions.php +33 -33
- functions_for_xml_and_ajax.php +185 -33
- images/tw-gb/icon.svg +71 -0
- images/tw-gb/icon_grey.svg +54 -0
- js/tw-gb/block.js +202 -0
- languages/sp_calendar-de_DE.mo +0 -0
- languages/sp_calendar-de_DE.po +1 -1
- readme.txt +17 -11
- style_for_cal/tw-gb/block.css +64 -0
- wd/README.md +22 -39
- wd/assets/css/deactivate_popup.css +14 -22
- wd/assets/css/overview.css +414 -404
- wd/assets/css/subscribe.css +186 -90
- wd/assets/img/allow-and-continue.png +0 -0
- wd/assets/img/header.svg +1 -0
- wd/assets/img/how_it_works.png +0 -0
- wd/assets/img/plugins/business_elite.png +0 -0
- wd/assets/img/plugins/business_world.png +0 -0
- wd/assets/img/plugins/event-calendar-wd.png +0 -0
- wd/assets/img/plugins/form-maker.png +0 -0
- wd/assets/img/plugins/photo-gallery.png +0 -0
- wd/assets/img/plugins/portfolio_gallery.png +0 -0
- wd/assets/img/plugins/sauron.png +0 -0
- wd/assets/img/plugins/slider-wd.png +0 -0
- wd/assets/img/plugins/spider-event-calendar.png +0 -0
- wd/assets/img/plugins/wd-google-maps.png +0 -0
- wd/assets/img/plugins/wd-instagram-feed.png +0 -0
- wd/assets/img/slide-1366.jpg +0 -0
- wd/assets/img/sp_calendar_main_plugin.png +0 -0
- wd/assets/img/sub_1.png +0 -0
- wd/assets/img/sub_2.png +0 -0
- wd/assets/img/sub_4.png +0 -0
- wd/assets/js/deactivate_popup.js +104 -124
- wd/assets/js/overview.js +13 -53
- wd/assets/js/subsribe.js +16 -35
- wd/config.php +122 -126
- wd/includes/api.php +2 -2
- wd/includes/deactivate.php +138 -172
- wd/includes/notices.php +1 -1
- wd/includes/overview.php +3 -234
- wd/includes/subscribe.php +120 -134
- wd/start.php +6 -4
- wd/templates/display_deactivation_popup.php +11 -11
- wd/templates/display_overview.php +120 -39
- wd/templates/display_overview_deals.php +0 -81
- wd/templates/display_overview_support.php +0 -59
- wd/templates/display_overview_user_guide.php +0 -46
- wd/templates/display_overview_welcome.php +0 -31
- wd/templates/display_subscribe.php +31 -31
- wd/wd.php +22 -17
- widget_spider_calendar.php +27 -4
calendar.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Spider Event Calendar
|
4 |
-
Plugin URI: https://
|
5 |
Description: Spider Event Calendar is a highly configurable product which allows you to have multiple organized events. Spider Event Calendar is an extraordinary user friendly extension.
|
6 |
-
Version: 1.5.
|
7 |
-
Author:
|
8 |
-
Author URI: https://
|
9 |
License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
11 |
if( ! defined( 'SPCALENDAR_VERSION' ) ) {
|
12 |
-
define( 'SPCALENDAR_VERSION', "1.5.
|
13 |
}
|
14 |
|
15 |
// LANGUAGE localization.
|
@@ -30,7 +30,7 @@ function sp_cal_registr_some_scripts () {
|
|
30 |
"prefix" => "sp_calendar",
|
31 |
"deactivate_class" => 'sp_calendar_deactivate_link',
|
32 |
"email" => $admin_data->data->user_email,
|
33 |
-
"plugin_wd_url" => "https://
|
34 |
));
|
35 |
}
|
36 |
|
@@ -498,7 +498,7 @@ function Spider_calendar_Licensing () {
|
|
498 |
Calendar.
|
499 |
</p>
|
500 |
<br/><br/>
|
501 |
-
<a href="https://
|
502 |
License</a>
|
503 |
<br/><br/><br/>
|
504 |
<p>After the purchasing the commercial version follow this steps:</p>
|
@@ -589,19 +589,20 @@ add_action('admin_menu', 'sp_calendar_options_panel');
|
|
589 |
add_action('init', "wd_spcal_init");
|
590 |
function wd_spcal_init () {
|
591 |
|
592 |
-
if (!class_exists("
|
593 |
require_once('wd/start.php');
|
594 |
}
|
595 |
global $sp_calendar_options;
|
596 |
$sp_calendar_options = array(
|
597 |
"prefix" => "sp_calendar",
|
598 |
"wd_plugin_id" => 29,
|
|
|
599 |
"plugin_title" => "Spider Calendar",
|
600 |
"plugin_wordpress_slug" => "spider-event-calendar",
|
601 |
"plugin_dir" => plugins_url('/', __FILE__),
|
602 |
"plugin_main_file" => __FILE__,
|
603 |
"description" => __('This is the best WordPress event Calendar plugin available in WordPress Directory.', 'sp_calendar'),
|
604 |
-
// from
|
605 |
"plugin_features" => array(
|
606 |
0 => array(
|
607 |
"title" => __("Responsive", "sp_calendar"),
|
@@ -624,91 +625,92 @@ function wd_spcal_init () {
|
|
624 |
"description" => __("If you have events in your calendar that occur regularly you can choose to use the recurring events option. You can set the events to repeat daily, weekly, monthly, yearly on specific days of the week, specific days of the month or year.", "sp_calendar"),
|
625 |
)
|
626 |
),
|
627 |
-
// user guide from
|
628 |
"user_guide" => array(
|
629 |
0 => array(
|
630 |
"main_title" => __("Creating/Editing Calendars", "sp_calendar"),
|
631 |
-
"url" => "https://
|
632 |
"titles" => array()
|
633 |
),
|
634 |
1 => array(
|
635 |
"main_title" => __("Creating/Editing Events", "sp_calendar"),
|
636 |
-
"url" => "https://
|
637 |
"titles" => array()
|
638 |
),
|
639 |
2 => array(
|
640 |
"main_title" => __("Adding Event Category", "sp_calendar"),
|
641 |
-
"url" => "https://
|
642 |
"titles" => array()
|
643 |
),
|
644 |
3 => array(
|
645 |
"main_title" => __("Adding Themes", "sp_calendar"),
|
646 |
-
"url" => "https://
|
647 |
"titles" => array(
|
648 |
array(
|
649 |
"title" => __("General Parameters", "sp_calendar"),
|
650 |
-
"url" => "https://
|
651 |
),
|
652 |
array(
|
653 |
"title" => __("Header Parameters", "sp_calendar"),
|
654 |
-
"url" => "https://
|
655 |
),
|
656 |
array(
|
657 |
"title" => __("Body Parameters", "sp_calendar"),
|
658 |
-
"url" => "https://
|
659 |
),
|
660 |
array(
|
661 |
"title" => __("Popup Window Parameters", "sp_calendar"),
|
662 |
-
"url" => "https://
|
663 |
),
|
664 |
array(
|
665 |
"title" => __("Other Views Parameters of the Wordpress Calendar", "sp_calendar"),
|
666 |
-
"url" => "https://
|
667 |
),
|
668 |
)
|
669 |
),
|
670 |
4 => array(
|
671 |
"main_title" => __("Adding Themes for a widget view", "sp_calendar"),
|
672 |
-
"url" => "https://
|
673 |
"titles" => array(
|
674 |
array(
|
675 |
"title" => __("General Parameters", "sp_calendar"),
|
676 |
-
"url" => "https://
|
677 |
),
|
678 |
array(
|
679 |
"title" => __("Popup Window Parameters", "sp_calendar"),
|
680 |
-
"url" => "https://
|
681 |
),
|
682 |
array(
|
683 |
"title" => __("Body Parameters", "sp_calendar"),
|
684 |
-
"url" => "https://
|
685 |
),
|
686 |
)
|
687 |
),
|
688 |
5 => array(
|
689 |
"main_title" => __("Publishing the Created Calendar in a Page or a Post", "sp_calendar"),
|
690 |
-
"url" => "https://
|
691 |
"titles" => array()
|
692 |
),
|
693 |
6 => array(
|
694 |
"main_title" => __("Publishing the Created Calendar in the Widget", "sp_calendar"),
|
695 |
-
"url" => "https://
|
696 |
"titles" => array()
|
697 |
),
|
698 |
7 => array(
|
699 |
"main_title" => __("Publishing the Upcoming Events widget", "sp_calendar"),
|
700 |
-
"url" => "https://
|
701 |
"titles" => array()
|
702 |
),
|
703 |
),
|
|
|
704 |
"video_youtube_id" => "wDrMRAjhgHk",
|
705 |
// e.g. https://www.youtube.com/watch?v=acaexefeP7o youtube id is the acaexefeP7o
|
706 |
"overview_welcome_image" => null,
|
707 |
-
"plugin_wd_url" => "https://
|
708 |
-
"plugin_wd_demo_link" => "
|
709 |
"plugin_wd_addons_link" => null,
|
710 |
"plugin_wizard_link" => null,
|
711 |
-
"after_subscribe" => admin_url('admin.php?page=
|
712 |
// this can be plagin overview page or set up page
|
713 |
"plugin_menu_title" => "Calendar",
|
714 |
"plugin_menu_icon" => plugins_url('/images/calendar_menu.png', __FILE__),
|
@@ -718,8 +720,9 @@ function wd_spcal_init () {
|
|
718 |
// if true => edit.php?post_type=contact
|
719 |
"menu_capability" => "manage_options",
|
720 |
"menu_position" => null,
|
|
|
721 |
);
|
722 |
-
|
723 |
}
|
724 |
|
725 |
require_once("functions_for_xml_and_ajax.php");
|
@@ -884,6 +887,11 @@ function Manage_Spider_Calendar () {
|
|
884 |
}
|
885 |
}
|
886 |
|
|
|
|
|
|
|
|
|
|
|
887 |
function Manage_Spider_Category_Calendar () {
|
888 |
require_once("calendar_functions.html.php");
|
889 |
require_once("calendar_functions.php");
|
@@ -1008,12 +1016,12 @@ function spider_calendar_params () {
|
|
1008 |
|
1009 |
function Uninstall_sp_calendar () {
|
1010 |
global $wpdb, $sp_calendar_options;
|
1011 |
-
if (!class_exists("
|
1012 |
require_once("wd/config.php");
|
1013 |
}
|
1014 |
-
$config = new
|
1015 |
$config->set_options($sp_calendar_options);
|
1016 |
-
$deactivate_reasons = new
|
1017 |
$deactivate_reasons->submit_and_deactivate();
|
1018 |
$base_name = plugin_basename('Spider_Calendar');
|
1019 |
$base_page = 'admin.php?page=' . $base_name;
|
@@ -1023,11 +1031,11 @@ function Uninstall_sp_calendar () {
|
|
1023 |
<br/>
|
1024 |
<div class="goodbye-text">
|
1025 |
Before uninstalling the plugin, please Contact our
|
1026 |
-
<a href="https://
|
1027 |
We'll do our best to help you out with your issue. We value each and every user and value what’s right for our users
|
1028 |
in everything we do.<br>
|
1029 |
However, if anyway you have made a decision to uninstall the plugin, please take a minute to
|
1030 |
-
<a href="https://
|
1031 |
tell what you didn't like for our plugins further improvement and development. Thank you !!!
|
1032 |
</div>
|
1033 |
<?php
|
@@ -1301,7 +1309,7 @@ function upgrade_pro_sp ($text = false) {
|
|
1301 |
?>
|
1302 |
<div style="font-size: 14px;">
|
1303 |
<?php _e("This section allows you to create calendars.", "sp_calendar"); ?>
|
1304 |
-
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://
|
1305 |
</div>
|
1306 |
<?php
|
1307 |
break;
|
@@ -1309,15 +1317,15 @@ function upgrade_pro_sp ($text = false) {
|
|
1309 |
?>
|
1310 |
<div style="font-size: 14px;">
|
1311 |
<?php _e("This section allows you to create event categories.", "sp_calendar"); ?>
|
1312 |
-
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://
|
1313 |
</div>
|
1314 |
<?php
|
1315 |
break;
|
1316 |
case "calendar_export":
|
1317 |
?>
|
1318 |
<div style="font-size: 14px;">
|
1319 |
-
<?php _e("This section will allow exporting Spider Calendar data for further import to Event Calendar
|
1320 |
-
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://
|
1321 |
</div>
|
1322 |
<?php
|
1323 |
break;
|
@@ -1344,7 +1352,7 @@ function upgrade_pro_sp ($text = false) {
|
|
1344 |
</a>
|
1345 |
</div>
|
1346 |
<div class="wd-cell wd-cell-valign-middle">
|
1347 |
-
<a href="https://
|
1348 |
<?php _e("UPGRADE TO PAID VERSION", "sp_calendar"); ?>
|
1349 |
</a>
|
1350 |
</div>
|
@@ -1543,4 +1551,55 @@ if (!function_exists('spcal_bp_install_notice')) {
|
|
1543 |
|
1544 |
add_action('wp_ajax_wd_seo_dismiss', 'spcal_bp_install_notice_status');
|
1545 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1546 |
?>
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Spider Event Calendar
|
4 |
+
Plugin URI: https://10web.io/plugins/wordpress-spider-calendar
|
5 |
Description: Spider Event Calendar is a highly configurable product which allows you to have multiple organized events. Spider Event Calendar is an extraordinary user friendly extension.
|
6 |
+
Version: 1.5.63
|
7 |
+
Author: 10Web
|
8 |
+
Author URI: https://10web.io
|
9 |
License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
11 |
if( ! defined( 'SPCALENDAR_VERSION' ) ) {
|
12 |
+
define( 'SPCALENDAR_VERSION', "1.5.63");
|
13 |
}
|
14 |
|
15 |
// LANGUAGE localization.
|
30 |
"prefix" => "sp_calendar",
|
31 |
"deactivate_class" => 'sp_calendar_deactivate_link',
|
32 |
"email" => $admin_data->data->user_email,
|
33 |
+
"plugin_wd_url" => "https://10web.io/plugins/wordpress-spider-calendar",
|
34 |
));
|
35 |
}
|
36 |
|
498 |
Calendar.
|
499 |
</p>
|
500 |
<br/><br/>
|
501 |
+
<a href="https://10web.io/plugins/wordpress-spider-calendar" class="button-primary" target="_blank">Purchase a
|
502 |
License</a>
|
503 |
<br/><br/><br/>
|
504 |
<p>After the purchasing the commercial version follow this steps:</p>
|
589 |
add_action('init', "wd_spcal_init");
|
590 |
function wd_spcal_init () {
|
591 |
|
592 |
+
if (!class_exists("TenWebLib")) {
|
593 |
require_once('wd/start.php');
|
594 |
}
|
595 |
global $sp_calendar_options;
|
596 |
$sp_calendar_options = array(
|
597 |
"prefix" => "sp_calendar",
|
598 |
"wd_plugin_id" => 29,
|
599 |
+
"plugin_id" => 17,
|
600 |
"plugin_title" => "Spider Calendar",
|
601 |
"plugin_wordpress_slug" => "spider-event-calendar",
|
602 |
"plugin_dir" => plugins_url('/', __FILE__),
|
603 |
"plugin_main_file" => __FILE__,
|
604 |
"description" => __('This is the best WordPress event Calendar plugin available in WordPress Directory.', 'sp_calendar'),
|
605 |
+
// from 10Web.io
|
606 |
"plugin_features" => array(
|
607 |
0 => array(
|
608 |
"title" => __("Responsive", "sp_calendar"),
|
625 |
"description" => __("If you have events in your calendar that occur regularly you can choose to use the recurring events option. You can set the events to repeat daily, weekly, monthly, yearly on specific days of the week, specific days of the month or year.", "sp_calendar"),
|
626 |
)
|
627 |
),
|
628 |
+
// user guide from 10Web.io
|
629 |
"user_guide" => array(
|
630 |
0 => array(
|
631 |
"main_title" => __("Creating/Editing Calendars", "sp_calendar"),
|
632 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360017786711",
|
633 |
"titles" => array()
|
634 |
),
|
635 |
1 => array(
|
636 |
"main_title" => __("Creating/Editing Events", "sp_calendar"),
|
637 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360017786711",
|
638 |
"titles" => array()
|
639 |
),
|
640 |
2 => array(
|
641 |
"main_title" => __("Adding Event Category", "sp_calendar"),
|
642 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360017786711",
|
643 |
"titles" => array()
|
644 |
),
|
645 |
3 => array(
|
646 |
"main_title" => __("Adding Themes", "sp_calendar"),
|
647 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360017787211",
|
648 |
"titles" => array(
|
649 |
array(
|
650 |
"title" => __("General Parameters", "sp_calendar"),
|
651 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360017787211",
|
652 |
),
|
653 |
array(
|
654 |
"title" => __("Header Parameters", "sp_calendar"),
|
655 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360017787211",
|
656 |
),
|
657 |
array(
|
658 |
"title" => __("Body Parameters", "sp_calendar"),
|
659 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360017787211",
|
660 |
),
|
661 |
array(
|
662 |
"title" => __("Popup Window Parameters", "sp_calendar"),
|
663 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360017787211",
|
664 |
),
|
665 |
array(
|
666 |
"title" => __("Other Views Parameters of the Wordpress Calendar", "sp_calendar"),
|
667 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360017787211",
|
668 |
),
|
669 |
)
|
670 |
),
|
671 |
4 => array(
|
672 |
"main_title" => __("Adding Themes for a widget view", "sp_calendar"),
|
673 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360018136051",
|
674 |
"titles" => array(
|
675 |
array(
|
676 |
"title" => __("General Parameters", "sp_calendar"),
|
677 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360018136051",
|
678 |
),
|
679 |
array(
|
680 |
"title" => __("Popup Window Parameters", "sp_calendar"),
|
681 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360018136051",
|
682 |
),
|
683 |
array(
|
684 |
"title" => __("Body Parameters", "sp_calendar"),
|
685 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360018136051",
|
686 |
),
|
687 |
)
|
688 |
),
|
689 |
5 => array(
|
690 |
"main_title" => __("Publishing the Created Calendar in a Page or a Post", "sp_calendar"),
|
691 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360018136191",
|
692 |
"titles" => array()
|
693 |
),
|
694 |
6 => array(
|
695 |
"main_title" => __("Publishing the Created Calendar in the Widget", "sp_calendar"),
|
696 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360018136191",
|
697 |
"titles" => array()
|
698 |
),
|
699 |
7 => array(
|
700 |
"main_title" => __("Publishing the Upcoming Events widget", "sp_calendar"),
|
701 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360018136191",
|
702 |
"titles" => array()
|
703 |
),
|
704 |
),
|
705 |
+
|
706 |
"video_youtube_id" => "wDrMRAjhgHk",
|
707 |
// e.g. https://www.youtube.com/watch?v=acaexefeP7o youtube id is the acaexefeP7o
|
708 |
"overview_welcome_image" => null,
|
709 |
+
"plugin_wd_url" => "https://10web.io/plugins/wordpress-spider-calendar",
|
710 |
+
"plugin_wd_demo_link" => "https://demo.10web.io/olddemo/spider-calendar",
|
711 |
"plugin_wd_addons_link" => null,
|
712 |
"plugin_wizard_link" => null,
|
713 |
+
"after_subscribe" => admin_url('admin.php?page=SpiderCalendar'),
|
714 |
// this can be plagin overview page or set up page
|
715 |
"plugin_menu_title" => "Calendar",
|
716 |
"plugin_menu_icon" => plugins_url('/images/calendar_menu.png', __FILE__),
|
720 |
// if true => edit.php?post_type=contact
|
721 |
"menu_capability" => "manage_options",
|
722 |
"menu_position" => null,
|
723 |
+
"display_overview" => false,
|
724 |
);
|
725 |
+
ten_web_lib_init($sp_calendar_options);
|
726 |
}
|
727 |
|
728 |
require_once("functions_for_xml_and_ajax.php");
|
887 |
}
|
888 |
}
|
889 |
|
890 |
+
// Enqueue block editor assets for Gutenberg.
|
891 |
+
add_filter('tw_get_block_editor_assets', 'register_block_editor_assets');
|
892 |
+
add_filter('tw_get_plugin_blocks', 'register_plugin_block');
|
893 |
+
add_action( 'enqueue_block_editor_assets', 'enqueue_block_editor_assets');
|
894 |
+
|
895 |
function Manage_Spider_Category_Calendar () {
|
896 |
require_once("calendar_functions.html.php");
|
897 |
require_once("calendar_functions.php");
|
1016 |
|
1017 |
function Uninstall_sp_calendar () {
|
1018 |
global $wpdb, $sp_calendar_options;
|
1019 |
+
if (!class_exists("TenWebLibConfig")) {
|
1020 |
require_once("wd/config.php");
|
1021 |
}
|
1022 |
+
$config = new TenWebLibConfig();
|
1023 |
$config->set_options($sp_calendar_options);
|
1024 |
+
$deactivate_reasons = new TenWebLibDeactivate($config);
|
1025 |
$deactivate_reasons->submit_and_deactivate();
|
1026 |
$base_name = plugin_basename('Spider_Calendar');
|
1027 |
$base_page = 'admin.php?page=' . $base_name;
|
1031 |
<br/>
|
1032 |
<div class="goodbye-text">
|
1033 |
Before uninstalling the plugin, please Contact our
|
1034 |
+
<a href="https://10web.io/contact-us" target='_blank'>support team</a>.
|
1035 |
We'll do our best to help you out with your issue. We value each and every user and value what’s right for our users
|
1036 |
in everything we do.<br>
|
1037 |
However, if anyway you have made a decision to uninstall the plugin, please take a minute to
|
1038 |
+
<a href="https://10web.io/contact-us" target='_blank'>Contact us</a> and
|
1039 |
tell what you didn't like for our plugins further improvement and development. Thank you !!!
|
1040 |
</div>
|
1041 |
<?php
|
1309 |
?>
|
1310 |
<div style="font-size: 14px;">
|
1311 |
<?php _e("This section allows you to create calendars.", "sp_calendar"); ?>
|
1312 |
+
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://help.10web.io/hc/en-us/articles/360017786711"><?php _e("Read More in User Manual.", "sp_calendar"); ?></a>
|
1313 |
</div>
|
1314 |
<?php
|
1315 |
break;
|
1317 |
?>
|
1318 |
<div style="font-size: 14px;">
|
1319 |
<?php _e("This section allows you to create event categories.", "sp_calendar"); ?>
|
1320 |
+
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://help.10web.io/hc/en-us/articles/360017786711"><?php _e("Read More in User Manual.", "sp_calendar"); ?></a>
|
1321 |
</div>
|
1322 |
<?php
|
1323 |
break;
|
1324 |
case "calendar_export":
|
1325 |
?>
|
1326 |
<div style="font-size: 14px;">
|
1327 |
+
<?php _e("This section will allow exporting Spider Calendar data for further import to Event Calendar by 10Web.", "sp_calendar"); ?>
|
1328 |
+
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://help.10web.io/hc/en-us/articles/360017786711"><?php _e("Read More in User Manual.", "sp_calendar"); ?></a>
|
1329 |
</div>
|
1330 |
<?php
|
1331 |
break;
|
1352 |
</a>
|
1353 |
</div>
|
1354 |
<div class="wd-cell wd-cell-valign-middle">
|
1355 |
+
<a href="https://10web.io/plugins/wordpress-spider-calendar" target="_blank">
|
1356 |
<?php _e("UPGRADE TO PAID VERSION", "sp_calendar"); ?>
|
1357 |
</a>
|
1358 |
</div>
|
1551 |
|
1552 |
add_action('wp_ajax_wd_seo_dismiss', 'spcal_bp_install_notice_status');
|
1553 |
}
|
1554 |
+
|
1555 |
+
function register_block_editor_assets($assets) {
|
1556 |
+
$version = '2.0.5';
|
1557 |
+
$js_path = plugins_url('', __FILE__) . '/js/tw-gb/block.js';
|
1558 |
+
$css_path = plugins_url('', __FILE__) . '/style_for_cal/tw-gb/block.css';
|
1559 |
+
if (!isset($assets['version']) || version_compare($assets['version'], $version) === -1) {
|
1560 |
+
$assets['version'] = $version;
|
1561 |
+
$assets['js_path'] = $js_path;
|
1562 |
+
$assets['css_path'] = $css_path;
|
1563 |
+
}
|
1564 |
+
return $assets;
|
1565 |
+
}
|
1566 |
+
|
1567 |
+
function register_plugin_block($blocks) {
|
1568 |
+
$sp_shortcode_nonce = wp_create_nonce( "sp_shortcode" );
|
1569 |
+
$url = add_query_arg(array( 'action' => 'window', 'nonce' => $sp_shortcode_nonce), admin_url('admin-ajax.php'));
|
1570 |
+
$blocks['tw/' . 'sp-calendar'] = array(
|
1571 |
+
'title' =>'Spider Event Calendar',
|
1572 |
+
'titleSelect' => sprintf(__('Select %s', 'sp_calendar'), 'Spider Event Calendar'),
|
1573 |
+
'iconUrl' => plugins_url('', __FILE__) . '/images/tw-gb/icon.svg',
|
1574 |
+
'iconSvg' => array('width' => 20, 'height' => 20, 'src' => plugins_url('', __FILE__) . '/images/tw-gb/icon_grey.svg'),
|
1575 |
+
'isPopup' => true,
|
1576 |
+
'containerClass' => 'tw-container-wrap-420-450',
|
1577 |
+
'data' => array('shortcodeUrl' => $url),
|
1578 |
+
);
|
1579 |
+
return $blocks;
|
1580 |
+
}
|
1581 |
+
|
1582 |
+
function enqueue_block_editor_assets() {
|
1583 |
+
// Remove previously registered or enqueued versions
|
1584 |
+
$wp_scripts = wp_scripts();
|
1585 |
+
foreach ($wp_scripts->registered as $key => $value) {
|
1586 |
+
// Check for an older versions with prefix.
|
1587 |
+
if (strpos($key, 'tw-gb-block') > 0) {
|
1588 |
+
wp_deregister_script( $key );
|
1589 |
+
wp_deregister_style( $key );
|
1590 |
+
}
|
1591 |
+
}
|
1592 |
+
// Get plugin blocks from all 10Web plugins.
|
1593 |
+
$blocks = apply_filters('tw_get_plugin_blocks', array());
|
1594 |
+
// Get the last version from all 10Web plugins.
|
1595 |
+
$assets = apply_filters('tw_get_block_editor_assets', array());
|
1596 |
+
// Not performing unregister or unenqueue as in old versions all are with prefixes.
|
1597 |
+
wp_enqueue_script('tw-gb-block', $assets['js_path'], array( 'wp-blocks', 'wp-element' ), $assets['version']);
|
1598 |
+
wp_localize_script('tw-gb-block', 'tw_obj_translate', array(
|
1599 |
+
'nothing_selected' => __('Nothing selected.', 'sp_calendar'),
|
1600 |
+
'empty_item' => __('- Select -', 'sp_calendar'),
|
1601 |
+
'blocks' => json_encode($blocks)
|
1602 |
+
));
|
1603 |
+
wp_enqueue_style('tw-gb-block', $assets['css_path'], array( 'wp-edit-blocks' ), $assets['version']);
|
1604 |
+
}
|
1605 |
?>
|
calendar_functions.html.php
CHANGED
@@ -1158,7 +1158,7 @@ function html_show_spider_event($rows, $pageNav, $sort, $calendar_id, $cal_name)
|
|
1158 |
<div class="sp-wd-left">
|
1159 |
<div style="font-size: 14px;">
|
1160 |
<?php _e("This section allows you to create/edit the events of a particular calendar.","sp_calendar");?>
|
1161 |
-
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://
|
1162 |
</div>
|
1163 |
</div>
|
1164 |
<div class="sp-wd-right">
|
@@ -1170,7 +1170,7 @@ function html_show_spider_event($rows, $pageNav, $sort, $calendar_id, $cal_name)
|
|
1170 |
</a>
|
1171 |
</div>
|
1172 |
<div class="wd-cell wd-cell-valign-middle">
|
1173 |
-
<a href="https://
|
1174 |
<?php _e("UPGRADE TO PAID VERSION", "sp_calendar"); ?>
|
1175 |
</a>
|
1176 |
</div>
|
@@ -1576,7 +1576,7 @@ function html_add_spider_event($calendar_id, $cal_name) {
|
|
1576 |
<div class="sp-wd-left">
|
1577 |
<div style="font-size: 14px;">
|
1578 |
<?php _e("This section allows you to create/edit the events of a particular calendar.","sp_calendar");?>
|
1579 |
-
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://
|
1580 |
</div>
|
1581 |
</div>
|
1582 |
<div class="sp-wd-right">
|
@@ -1588,7 +1588,7 @@ function html_add_spider_event($calendar_id, $cal_name) {
|
|
1588 |
</a>
|
1589 |
</div>
|
1590 |
<div class="wd-cell wd-cell-valign-middle">
|
1591 |
-
<a href="https://
|
1592 |
<?php _e("UPGRADE TO PAID VERSION", "sp_calendar"); ?>
|
1593 |
</a>
|
1594 |
</div>
|
@@ -2073,7 +2073,7 @@ function html_edit_spider_event($row, $calendar_id, $id, $cal_name) {
|
|
2073 |
<div class="sp-wd-left">
|
2074 |
<div style="font-size: 14px;">
|
2075 |
<?php _e("This section allows you to create/edit the events of a particular calendar.","sp_calendar");?>
|
2076 |
-
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://
|
2077 |
</div>
|
2078 |
</div>
|
2079 |
<div class="sp-wd-right">
|
@@ -2085,7 +2085,7 @@ function html_edit_spider_event($row, $calendar_id, $id, $cal_name) {
|
|
2085 |
</a>
|
2086 |
</div>
|
2087 |
<div class="wd-cell wd-cell-valign-middle">
|
2088 |
-
<a href="https://
|
2089 |
<?php _e("UPGRADE TO PAID VERSION", "sp_calendar"); ?>
|
2090 |
</a>
|
2091 |
</div>
|
1158 |
<div class="sp-wd-left">
|
1159 |
<div style="font-size: 14px;">
|
1160 |
<?php _e("This section allows you to create/edit the events of a particular calendar.","sp_calendar");?>
|
1161 |
+
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://help.10web.io/hc/en-us/articles/360017786711"><?php _e("Read More in User Manual.","sp_calendar");?></a>
|
1162 |
</div>
|
1163 |
</div>
|
1164 |
<div class="sp-wd-right">
|
1170 |
</a>
|
1171 |
</div>
|
1172 |
<div class="wd-cell wd-cell-valign-middle">
|
1173 |
+
<a href="https://10web.io/plugins/wordpress-spider-calendar" target="_blank">
|
1174 |
<?php _e("UPGRADE TO PAID VERSION", "sp_calendar"); ?>
|
1175 |
</a>
|
1176 |
</div>
|
1576 |
<div class="sp-wd-left">
|
1577 |
<div style="font-size: 14px;">
|
1578 |
<?php _e("This section allows you to create/edit the events of a particular calendar.","sp_calendar");?>
|
1579 |
+
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://help.10web.io/hc/en-us/articles/360017786711"><?php _e("Read More in User Manual.","sp_calendar");?></a>
|
1580 |
</div>
|
1581 |
</div>
|
1582 |
<div class="sp-wd-right">
|
1588 |
</a>
|
1589 |
</div>
|
1590 |
<div class="wd-cell wd-cell-valign-middle">
|
1591 |
+
<a href="https://10web.io/plugins/wordpress-spider-calendar" target="_blank">
|
1592 |
<?php _e("UPGRADE TO PAID VERSION", "sp_calendar"); ?>
|
1593 |
</a>
|
1594 |
</div>
|
2073 |
<div class="sp-wd-left">
|
2074 |
<div style="font-size: 14px;">
|
2075 |
<?php _e("This section allows you to create/edit the events of a particular calendar.","sp_calendar");?>
|
2076 |
+
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://help.10web.io/hc/en-us/articles/360017786711"><?php _e("Read More in User Manual.","sp_calendar");?></a>
|
2077 |
</div>
|
2078 |
</div>
|
2079 |
<div class="sp-wd-right">
|
2085 |
</a>
|
2086 |
</div>
|
2087 |
<div class="wd-cell wd-cell-valign-middle">
|
2088 |
+
<a href="https://10web.io/plugins/wordpress-spider-calendar" target="_blank">
|
2089 |
<?php _e("UPGRADE TO PAID VERSION", "sp_calendar"); ?>
|
2090 |
</a>
|
2091 |
</div>
|
changelog.txt
DELETED
@@ -1,203 +0,0 @@
|
|
1 |
-
== Changelog ==
|
2 |
-
|
3 |
-
= 1.5.62 =
|
4 |
-
New: GDPR compliance help
|
5 |
-
New: WD library updated
|
6 |
-
Fixed: Bugs when exporting event
|
7 |
-
|
8 |
-
= 1.5.61 =
|
9 |
-
Fixed: Faster loading of pages. Synchronous requests in calendar frontend are removed.
|
10 |
-
Changed: PHP 7.2 compatibility, create_function is not used anymore
|
11 |
-
|
12 |
-
= 1.5.60 =
|
13 |
-
Fixed: Events of the same day of the previous year were visible in popup
|
14 |
-
Updated: Italian translation thanks to Marco Moniga
|
15 |
-
|
16 |
-
= 1.5.59 =
|
17 |
-
Fixed: register_activation_hook not being called because of conflict with some plugins
|
18 |
-
|
19 |
-
= 1.5.58 =
|
20 |
-
Fixed: Js errors on widget
|
21 |
-
|
22 |
-
= 1.5.57 =
|
23 |
-
Fixed: Deactivation popup
|
24 |
-
|
25 |
-
= 1.5.55 =
|
26 |
-
Fixed: Load admin styles only on calendar pages
|
27 |
-
Changed: Introducing brand new free Backup WD plugin
|
28 |
-
|
29 |
-
= 1.5.54 =
|
30 |
-
Fixed: Network activate issue
|
31 |
-
|
32 |
-
= 1.5.53 =
|
33 |
-
Changed: Event popup design
|
34 |
-
Fixed: Generate shortcode popup styles
|
35 |
-
|
36 |
-
= 1.5.52 =
|
37 |
-
Fixed: Security issue
|
38 |
-
Added: Overview page
|
39 |
-
|
40 |
-
= 1.5.51 =
|
41 |
-
Removed: Featured plugins, themes page
|
42 |
-
|
43 |
-
= 1.5.50 =
|
44 |
-
Fixed: Minor bug
|
45 |
-
|
46 |
-
= 1.5.49 =
|
47 |
-
Fixed: Bug on PHP 7
|
48 |
-
|
49 |
-
= 1.5.48 =
|
50 |
-
Added: Icelandic translation
|
51 |
-
|
52 |
-
= 1.5.47 =
|
53 |
-
Fixed: Minor bug
|
54 |
-
Fixed: Translations
|
55 |
-
|
56 |
-
= 1.5.46 =
|
57 |
-
Fixed: Translations
|
58 |
-
|
59 |
-
= 1.5.45 =
|
60 |
-
Changed: Featured themes page
|
61 |
-
|
62 |
-
= 1.5.44 =
|
63 |
-
Fixed: Minor bug
|
64 |
-
|
65 |
-
= 1.5.43 =
|
66 |
-
Changed: Category color picker
|
67 |
-
|
68 |
-
= 1.5.42 =
|
69 |
-
Fixed: Minor bug
|
70 |
-
|
71 |
-
= 1.5.41 =
|
72 |
-
Fixed: Minor bug
|
73 |
-
|
74 |
-
= 1.5.40 =
|
75 |
-
Changed: Featured plugins, themes page
|
76 |
-
Changed: Uninstall page
|
77 |
-
|
78 |
-
= 1.5.39 =
|
79 |
-
Fixed: Security issue
|
80 |
-
|
81 |
-
= 1.5.38 =
|
82 |
-
Fixed: Calendar header date format
|
83 |
-
|
84 |
-
= 1.5.37 =
|
85 |
-
Fixed: Minor bugs
|
86 |
-
Fixed: Finnish translation
|
87 |
-
|
88 |
-
= 1.5.36 =
|
89 |
-
Changed: Default themes redesigned.
|
90 |
-
Fixed: SEO issue.
|
91 |
-
Fixed: Bug in calendar quick edit.
|
92 |
-
Fixed: Bug in Theme preview.
|
93 |
-
Added: Shortcodes support in event description.
|
94 |
-
Added: Capability to copy event.
|
95 |
-
Fixed: Translations.
|
96 |
-
|
97 |
-
= 1.5.35 =
|
98 |
-
Fixed: Minor bugs
|
99 |
-
|
100 |
-
= 1.5.34 =
|
101 |
-
Fixed: Bug in update
|
102 |
-
|
103 |
-
= 1.5.33 =
|
104 |
-
Fixed: Translations.
|
105 |
-
|
106 |
-
= 1.5.32 =
|
107 |
-
Changed: Category styles
|
108 |
-
Fixed: Minor bugs
|
109 |
-
|
110 |
-
= 1.4.30 =
|
111 |
-
New: New year promo
|
112 |
-
|
113 |
-
= 1.4.29 =
|
114 |
-
Changed: Notices order
|
115 |
-
|
116 |
-
|
117 |
-
= 1.4.28 =
|
118 |
-
Fixed: bug in adding events
|
119 |
-
New: Notices
|
120 |
-
|
121 |
-
= 1.4.27 =
|
122 |
-
Fixed: Translation
|
123 |
-
|
124 |
-
= 1.4.26 =
|
125 |
-
New: Export to Event Calendar WD
|
126 |
-
|
127 |
-
= 1.4.25 =
|
128 |
-
Changed: Compability with WordPress 4.3
|
129 |
-
|
130 |
-
= 1.4.24 =
|
131 |
-
Conflict with event calendar wd fixed
|
132 |
-
|
133 |
-
= 1.4.23 =
|
134 |
-
Fixed: Conflict with some plugins
|
135 |
-
|
136 |
-
= 1.4.22 =
|
137 |
-
Fixed: Conflict with some themes
|
138 |
-
|
139 |
-
= 1.4.21 =
|
140 |
-
Edit featured plugins
|
141 |
-
|
142 |
-
= 1.4.20 =
|
143 |
-
bug in color picker fixed
|
144 |
-
|
145 |
-
= 1.4.19 =
|
146 |
-
Add featured themes
|
147 |
-
|
148 |
-
= 1.4.18 =
|
149 |
-
change links
|
150 |
-
|
151 |
-
= 1.4.17 =
|
152 |
-
translation fixed
|
153 |
-
|
154 |
-
= 1.4.16 =
|
155 |
-
cache issue fixed
|
156 |
-
|
157 |
-
= 1.4.15 =
|
158 |
-
bug fixed in description editor
|
159 |
-
allow origin issue fixed
|
160 |
-
|
161 |
-
= 1.4.14 =
|
162 |
-
bug fixed in upcoming events widget
|
163 |
-
|
164 |
-
= 1.4.11 =
|
165 |
-
Added "All Categories" button to all views
|
166 |
-
|
167 |
-
= 1.4.10 =
|
168 |
-
bug fixed in frontend
|
169 |
-
|
170 |
-
= 1.4.9 =
|
171 |
-
bug in current day fixed
|
172 |
-
|
173 |
-
= 1.4.8 =
|
174 |
-
warning in list view fixed
|
175 |
-
|
176 |
-
= 1.4.7 =
|
177 |
-
add option Display Category Legend:
|
178 |
-
edit admin css
|
179 |
-
|
180 |
-
= 1.4.6 =
|
181 |
-
bug fixed in wp 3.9 editor
|
182 |
-
|
183 |
-
= 1.4.5 =
|
184 |
-
bug fixed in upcoming events
|
185 |
-
|
186 |
-
= 1.4.4 =
|
187 |
-
bug in upcoming events fixed
|
188 |
-
|
189 |
-
= 1.4.3 =
|
190 |
-
order events by time
|
191 |
-
|
192 |
-
= 1.4.2 =
|
193 |
-
translations fixed
|
194 |
-
|
195 |
-
= 1.4.1 =
|
196 |
-
bug fix, (width parameter problem), correct user manual links
|
197 |
-
|
198 |
-
= 1.4 =
|
199 |
-
categories and upcoming events
|
200 |
-
|
201 |
-
= 1.0.0 =
|
202 |
-
Initial version
|
203 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
front_end/bigcalendarday.php
CHANGED
@@ -840,7 +840,7 @@ $theme = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'spide
|
|
840 |
$percent = $percent + ($sum / 7);
|
841 |
$percent = 107 / $percent;
|
842 |
$all_calendar_files = php_getdays(0, $calendar_id, $date, $theme_id, $widget);
|
843 |
-
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE published=1");
|
844 |
$calendar = (isset($_GET['calendar']) ? (int) $_GET['calendar'] : '');
|
845 |
$array_days = $all_calendar_files[0]['array_days'];
|
846 |
$array_days1 = $all_calendar_files[0]['array_days1'];
|
840 |
$percent = $percent + ($sum / 7);
|
841 |
$percent = 107 / $percent;
|
842 |
$all_calendar_files = php_getdays(0, $calendar_id, $date, $theme_id, $widget);
|
843 |
+
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE id IN (" . "SELECT category FROM " . $wpdb->prefix . "spidercalendar_event WHERE published=1 AND calendar=" . $calendar_id . ")");
|
844 |
$calendar = (isset($_GET['calendar']) ? (int) $_GET['calendar'] : '');
|
845 |
$array_days = $all_calendar_files[0]['array_days'];
|
846 |
$array_days1 = $all_calendar_files[0]['array_days1'];
|
front_end/bigcalendarday_widget.php
CHANGED
@@ -499,7 +499,7 @@ position: relative;
|
|
499 |
$percent = $percent + ($sum / 7);
|
500 |
$percent = 107 / $percent;
|
501 |
$all_calendar_files = php_getdays(0, $calendar_id, $date, $theme_id, $widget);
|
502 |
-
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE published=1");
|
503 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
504 |
$array_days = $all_calendar_files[0]['array_days'];
|
505 |
$array_days1 = $all_calendar_files[0]['array_days1'];
|
499 |
$percent = $percent + ($sum / 7);
|
500 |
$percent = 107 / $percent;
|
501 |
$all_calendar_files = php_getdays(0, $calendar_id, $date, $theme_id, $widget);
|
502 |
+
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE id IN (" . "SELECT category FROM " . $wpdb->prefix . "spidercalendar_event WHERE published=1 AND calendar=" . $calendar_id . ")");
|
503 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
504 |
$array_days = $all_calendar_files[0]['array_days'];
|
505 |
$array_days1 = $all_calendar_files[0]['array_days1'];
|
front_end/bigcalendarlist.php
CHANGED
@@ -799,7 +799,7 @@ position: relative;
|
|
799 |
$percent = 107 / $percent;
|
800 |
$all_calendar_files = php_getdays(0, $calendar_id, $date, $theme_id, $widget);
|
801 |
|
802 |
-
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE published=1");
|
803 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
804 |
$array_days = $all_calendar_files[0]['array_days'];
|
805 |
$array_days1 = $all_calendar_files[0]['array_days1'];
|
799 |
$percent = 107 / $percent;
|
800 |
$all_calendar_files = php_getdays(0, $calendar_id, $date, $theme_id, $widget);
|
801 |
|
802 |
+
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE id IN (" . "SELECT category FROM " . $wpdb->prefix . "spidercalendar_event WHERE published=1 AND calendar=" . $calendar_id . ")");
|
803 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
804 |
$array_days = $all_calendar_files[0]['array_days'];
|
805 |
$array_days1 = $all_calendar_files[0]['array_days1'];
|
front_end/bigcalendarlist_widget.php
CHANGED
@@ -468,7 +468,7 @@ position: relative;
|
|
468 |
$percent = $percent + ($sum / 7);
|
469 |
$percent = 107 / $percent;
|
470 |
$all_calendar_files = php_getdays(0, $calendar_id, $date, $theme_id, $widget);
|
471 |
-
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE published=1");
|
472 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
473 |
$array_days = $all_calendar_files[0]['array_days'];
|
474 |
$array_days1 = $all_calendar_files[0]['array_days1'];
|
468 |
$percent = $percent + ($sum / 7);
|
469 |
$percent = 107 / $percent;
|
470 |
$all_calendar_files = php_getdays(0, $calendar_id, $date, $theme_id, $widget);
|
471 |
+
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE id IN (" . "SELECT category FROM " . $wpdb->prefix . "spidercalendar_event WHERE published=1 AND calendar=" . $calendar_id . ")");
|
472 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
473 |
$array_days = $all_calendar_files[0]['array_days'];
|
474 |
$array_days1 = $all_calendar_files[0]['array_days1'];
|
front_end/bigcalendarmonth.php
CHANGED
@@ -823,7 +823,7 @@ echo '<style>
|
|
823 |
$array_days1 = $all_calendar_files[0]['array_days1'];
|
824 |
$title = $all_calendar_files[0]['title'];
|
825 |
$ev_ids = $all_calendar_files[0]['ev_ids'];
|
826 |
-
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE published=1");
|
827 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
828 |
|
829 |
echo ' <tr id="days" height="' . $cell_height . '" style="line-height:15px;">';
|
823 |
$array_days1 = $all_calendar_files[0]['array_days1'];
|
824 |
$title = $all_calendar_files[0]['title'];
|
825 |
$ev_ids = $all_calendar_files[0]['ev_ids'];
|
826 |
+
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE id IN (" . "SELECT category FROM " . $wpdb->prefix . "spidercalendar_event WHERE published=1 AND calendar=" . $calendar_id . ")");
|
827 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
828 |
|
829 |
echo ' <tr id="days" height="' . $cell_height . '" style="line-height:15px;">';
|
front_end/bigcalendarmonth_widget.php
CHANGED
@@ -488,7 +488,7 @@ $cat_ids = substr($cat_ids, 0,-1);
|
|
488 |
$percent = 107 / $percent;
|
489 |
|
490 |
$all_calendar_files = php_getdays(1, $calendar_id, $date, $theme_id, $widget);
|
491 |
-
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE published=1");
|
492 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
493 |
$array_days = $all_calendar_files[0]['array_days'];
|
494 |
|
488 |
$percent = 107 / $percent;
|
489 |
|
490 |
$all_calendar_files = php_getdays(1, $calendar_id, $date, $theme_id, $widget);
|
491 |
+
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE id IN (" . "SELECT category FROM " . $wpdb->prefix . "spidercalendar_event WHERE published=1 AND calendar=" . $calendar_id . ")");
|
492 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
493 |
$array_days = $all_calendar_files[0]['array_days'];
|
494 |
|
front_end/bigcalendarweek.php
CHANGED
@@ -838,7 +838,7 @@ position: relative;
|
|
838 |
|
839 |
$all_calendar_files = php_getdays_for_three_months($calendar_id, $date, $months, $theme_id, $widget);
|
840 |
|
841 |
-
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE published=1");
|
842 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
843 |
|
844 |
$all_array_days = $all_calendar_files[0]['all_array_days'];
|
838 |
|
839 |
$all_calendar_files = php_getdays_for_three_months($calendar_id, $date, $months, $theme_id, $widget);
|
840 |
|
841 |
+
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE id IN (" . "SELECT category FROM " . $wpdb->prefix . "spidercalendar_event WHERE published=1 AND calendar=" . $calendar_id . ")");
|
842 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
843 |
|
844 |
$all_array_days = $all_calendar_files[0]['all_array_days'];
|
front_end/bigcalendarweek_widget.php
CHANGED
@@ -502,7 +502,7 @@ position: relative;
|
|
502 |
$percent = $percent + ($sum / 7);
|
503 |
$percent = 107 / $percent;
|
504 |
|
505 |
-
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE published=1");
|
506 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
507 |
$all_calendar_files = php_getdays_for_three_months($calendar_id, $date, $months, $theme_id, $widget);
|
508 |
|
502 |
$percent = $percent + ($sum / 7);
|
503 |
$percent = 107 / $percent;
|
504 |
|
505 |
+
$categories=$wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "spidercalendar_event_category WHERE id IN (" . "SELECT category FROM " . $wpdb->prefix . "spidercalendar_event WHERE published=1 AND calendar=" . $calendar_id . ")");
|
506 |
$calendar = (isset($_GET['calendar']) ? (int)$_GET['calendar'] : '');
|
507 |
$all_calendar_files = php_getdays_for_three_months($calendar_id, $date, $months, $theme_id, $widget);
|
508 |
|
front_end/frontend_functions.php
CHANGED
@@ -100,12 +100,11 @@ $cat_ids = substr($cat_ids, 0,-1);
|
|
100 |
$order_by = " ORDER BY STR_TO_DATE( SUBSTRING( time, 1, 7 ) , '%h:%i%p' )";
|
101 |
}
|
102 |
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
}
|
109 |
$rows = $wpdb->get_results($query." ".$order_by);
|
110 |
|
111 |
|
@@ -571,33 +570,34 @@ $cat_ids_array = explode(',',$cat_ids);
|
|
571 |
if($cat_id!='')
|
572 |
{
|
573 |
|
574 |
-
if(getelementcountinarray($cat_ids_array,$cat_id )%2==0)
|
575 |
-
{
|
576 |
-
$index_in_line = getelementindexinarray($cat_ids_array, $cat_id);
|
577 |
-
$index_array = explode(',' , $index_in_line);
|
578 |
-
array_pop ($index_array);
|
579 |
-
for($j=0; $j<count($index_array); $j++)
|
580 |
-
unset($cat_ids_array[$index_array[$j]]);
|
581 |
-
$cat_ids = implode(',',$cat_ids_array);
|
582 |
-
}
|
583 |
-
}
|
584 |
-
else
|
585 |
-
$cat_ids = substr($cat_ids, 0,-1);
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
|
|
601 |
$rows = $wpdb->get_results($query." ".$order_by);
|
602 |
|
603 |
|
100 |
$order_by = " ORDER BY STR_TO_DATE( SUBSTRING( time, 1, 7 ) , '%h:%i%p' )";
|
101 |
}
|
102 |
|
103 |
+
if($cat_ids!='' and preg_match("/^[0-9\,]+$/", $cat_ids)) { $query = $wpdb->prepare ("SELECT " . $wpdb->prefix . "spidercalendar_event.*," . $wpdb->prefix . "spidercalendar_event_category.color from " . $wpdb->prefix . "spidercalendar_event JOIN " . $wpdb->prefix . "spidercalendar_event_category ON " . $wpdb->prefix . "spidercalendar_event.category = " . $wpdb->prefix . "spidercalendar_event_category.id where " . $wpdb->prefix . "spidercalendar_event_category.published=1 and " . $wpdb->prefix . "spidercalendar_event.category IN (".$cat_ids.") and " . $wpdb->prefix . "spidercalendar_event.published=1 and ( ( (date<=%s or date like %s) and (date_end>=%s ) or date_end='0000-00-00' ) or ( date_end is Null and date like %s ) ) and calendar=%d", substr( $date,0,7).'-01',substr( $date,0,7)."%",substr( $date,0,7).'-01',substr( $date,0,7)."%",$calendar);
|
104 |
+
}
|
105 |
+
else{
|
106 |
+
$query = $wpdb->prepare("SELECT * from " . $wpdb->prefix . "spidercalendar_event where published=1 and ( ( (date<=%s or date like %s) and date_end>=%s) or ( date_end is Null and date like %s ) ) and calendar=%d ", "" . substr($date, 0, 7) . "-01", "" . substr($date, 0, 7) . "%", "" . substr($date, 0, 7) . "-01", "" . substr($date, 0, 7) . "%", $calendar);
|
107 |
+
}
|
|
|
108 |
$rows = $wpdb->get_results($query." ".$order_by);
|
109 |
|
110 |
|
570 |
if($cat_id!='')
|
571 |
{
|
572 |
|
573 |
+
if(getelementcountinarray($cat_ids_array,$cat_id )%2==0)
|
574 |
+
{
|
575 |
+
$index_in_line = getelementindexinarray($cat_ids_array, $cat_id);
|
576 |
+
$index_array = explode(',' , $index_in_line);
|
577 |
+
array_pop ($index_array);
|
578 |
+
for($j=0; $j<count($index_array); $j++)
|
579 |
+
unset($cat_ids_array[$index_array[$j]]);
|
580 |
+
$cat_ids = implode(',',$cat_ids_array);
|
581 |
+
}
|
582 |
+
}
|
583 |
+
else
|
584 |
+
$cat_ids = substr($cat_ids, 0,-1);
|
585 |
+
|
586 |
+
if($row->time_format==0)
|
587 |
+
{
|
588 |
+
$order_by = "ORDER BY " . $wpdb->prefix . "spidercalendar_event.time ASC";
|
589 |
+
}
|
590 |
+
else{
|
591 |
+
$order_by = " ORDER BY STR_TO_DATE( SUBSTRING( time, 1, 7 ) , '%h:%i%p' )";
|
592 |
+
}
|
593 |
+
|
594 |
+
if($cat_ids!='' and preg_match("/^[0-9\,]+$/", $cat_ids)){
|
595 |
+
|
596 |
+
$query = $wpdb->prepare ("SELECT " . $wpdb->prefix . "spidercalendar_event.*, " . $wpdb->prefix . "spidercalendar_event_category.color from " . $wpdb->prefix . "spidercalendar_event JOIN " . $wpdb->prefix . "spidercalendar_event_category ON " . $wpdb->prefix . "spidercalendar_event.category = " . $wpdb->prefix . "spidercalendar_event_category.id where " . $wpdb->prefix . "spidercalendar_event_category.published=1 and " . $wpdb->prefix . "spidercalendar_event.category IN (".$cat_ids.") and " . $wpdb->prefix . "spidercalendar_event.published=1 and ( ( (date<=%s or date like %s) and (date_end>=%s ) or date_end='0000-00-00' ) or ( date_end is Null and date like %s ) ) and calendar=%d ",substr( $date,0,7).'-01',substr( $date,0,7)."%", substr( $date,0,7).'-01',substr( $date,0,7)."%",$calendar);
|
597 |
+
}
|
598 |
+
else{
|
599 |
+
$query = $wpdb->prepare("SELECT * from " . $wpdb->prefix . "spidercalendar_event where published=1 and ((date_end>=%s) or (date_end=%s)) and calendar=%d", "" . substr($date, 0, 7) . "-01", "0000-00-00", $calendar);
|
600 |
+
}
|
601 |
$rows = $wpdb->get_results($query." ".$order_by);
|
602 |
|
603 |
|
functions_for_xml_and_ajax.php
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
<?php
|
2 |
function php_window() {
|
3 |
global $wpdb;
|
|
|
|
|
4 |
$themes = $wpdb->get_results("SELECT id,title FROM " . $wpdb->prefix . "spidercalendar_theme");
|
5 |
$calendars = $wpdb->get_results("SELECT id,title FROM " . $wpdb->prefix . "spidercalendar_calendar WHERE published=1");
|
6 |
?>
|
@@ -17,10 +19,13 @@ function php_window() {
|
|
17 |
src="<?php echo get_option("siteurl"); ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
|
18 |
<script language="javascript" type="text/javascript"
|
19 |
src="<?php echo get_option("siteurl"); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
|
|
|
20 |
<base target="_self">
|
21 |
</head>
|
22 |
<body id="link" dir="ltr" class="forceColors">
|
|
|
23 |
<form name="spider_cat" action="#">
|
|
|
24 |
<div class="tabs" role="tablist" tabindex="-1">
|
25 |
<ul>
|
26 |
<li id="Single_product_tab" class="current" role="tab" tabindex="0"><span><a
|
@@ -28,13 +33,14 @@ function php_window() {
|
|
28 |
tabindex="-1">Spider Calendar</a></span></li>
|
29 |
</ul>
|
30 |
</div>
|
|
|
31 |
<div class="panel_wrapper">
|
32 |
<div id="Single_product_panel" class="panel current">
|
33 |
<br>
|
34 |
<table border="0" cellpadding="4" cellspacing="0">
|
35 |
<tbody>
|
36 |
<tr>
|
37 |
-
<td nowrap="nowrap"><label for="spider_Calendar"
|
38 |
<td><select name="spider_Calendar" id="spider_Calendar" style="width:150px;">
|
39 |
<option value="- Select a Calendar -" selected="selected">- Select a Calendar -</option>
|
40 |
<?php
|
@@ -46,7 +52,7 @@ function php_window() {
|
|
46 |
</td>
|
47 |
</tr>
|
48 |
<tr>
|
49 |
-
<td nowrap="nowrap"><label for="spider_Calendar_theme"
|
50 |
<td>
|
51 |
<select name="spider_Calendar_theme" id="spider_Calendar_theme" style="width:150px;">
|
52 |
<option value="- Select a Theme -" selected="selected">- Select a Theme -</option>
|
@@ -59,7 +65,7 @@ function php_window() {
|
|
59 |
</td>
|
60 |
</tr>
|
61 |
<tr>
|
62 |
-
<td class="key"><label for="default_view"
|
63 |
<td>
|
64 |
<select id="default_view" style="width:150px;" onChange="spider_calendar_select_view(this.value)">
|
65 |
<option value="month" selected="selected">Month</option>
|
@@ -70,7 +76,7 @@ function php_window() {
|
|
70 |
</td>
|
71 |
</tr>
|
72 |
<tr>
|
73 |
-
<td class="key"><label for="view_0"
|
74 |
<td style="font-size: 13px;">
|
75 |
<input type="checkbox" id="view_0" value="month" checked="checked">Month
|
76 |
<input type="checkbox" id="view_1" value="list" checked="checked">List
|
@@ -83,14 +89,103 @@ function php_window() {
|
|
83 |
</div>
|
84 |
</div>
|
85 |
<div class="mceActionPanel">
|
86 |
-
<div style="float: left;">
|
87 |
-
<input type="button" id="cancel" name="cancel" value="Cancel" onClick="tinyMCEPopup.close();"/>
|
88 |
-
</div>
|
89 |
<div style="float: right;">
|
90 |
-
<input type="
|
91 |
</div>
|
92 |
</div>
|
93 |
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
<script type="text/javascript">
|
95 |
var short_code = get_params("Spider_Calendar");
|
96 |
if (short_code) {
|
@@ -113,26 +208,41 @@ function php_window() {
|
|
113 |
}
|
114 |
// Get shortcodes attributes.
|
115 |
function get_params(module_name) {
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
}
|
137 |
|
138 |
function spider_calendar_select_view(selected_value) {
|
@@ -142,6 +252,7 @@ function php_window() {
|
|
142 |
}
|
143 |
}
|
144 |
}
|
|
|
145 |
function insert_spider_calendar() {
|
146 |
var calendar_id = document.getElementById('spider_Calendar').value;
|
147 |
var theme_id = document.getElementById('spider_Calendar_theme').value;
|
@@ -152,15 +263,29 @@ function php_window() {
|
|
152 |
select_view = select_view + document.getElementById('view_' + i).value + ',';
|
153 |
}
|
154 |
}
|
|
|
155 |
if ((calendar_id != '- Select a Calendar -') && (theme_id != '- Select a Theme -')) {
|
156 |
var tagtext;
|
157 |
tagtext = '[Spider_Calendar id="' + calendar_id + '" theme="' + theme_id + '" default="' + default_view + '" select="' + select_view + '"]';
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
}
|
163 |
</script>
|
|
|
164 |
</body>
|
165 |
</html>
|
166 |
<?php
|
@@ -686,4 +811,31 @@ function spiderbigcalendar() {
|
|
686 |
</body>
|
687 |
</html>
|
688 |
<?php die();
|
689 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
function php_window() {
|
3 |
global $wpdb;
|
4 |
+
$gutenberg_callback = sp_get('callback', 0);
|
5 |
+
$gutenberg_id = sp_get('edit', 0);
|
6 |
$themes = $wpdb->get_results("SELECT id,title FROM " . $wpdb->prefix . "spidercalendar_theme");
|
7 |
$calendars = $wpdb->get_results("SELECT id,title FROM " . $wpdb->prefix . "spidercalendar_calendar WHERE published=1");
|
8 |
?>
|
19 |
src="<?php echo get_option("siteurl"); ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
|
20 |
<script language="javascript" type="text/javascript"
|
21 |
src="<?php echo get_option("siteurl"); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
|
22 |
+
<link rel="stylesheet" id="dashicons-css" href="<?php echo get_option("siteurl"); ?>/wp-includes/css/dashicons.min.css?ver=5.1.1" type="text/css" media="all">
|
23 |
<base target="_self">
|
24 |
</head>
|
25 |
<body id="link" dir="ltr" class="forceColors">
|
26 |
+
<div class="wd-table">
|
27 |
<form name="spider_cat" action="#">
|
28 |
+
<?php if( !$gutenberg_callback ){?>
|
29 |
<div class="tabs" role="tablist" tabindex="-1">
|
30 |
<ul>
|
31 |
<li id="Single_product_tab" class="current" role="tab" tabindex="0"><span><a
|
33 |
tabindex="-1">Spider Calendar</a></span></li>
|
34 |
</ul>
|
35 |
</div>
|
36 |
+
<?php }?>
|
37 |
<div class="panel_wrapper">
|
38 |
<div id="Single_product_panel" class="panel current">
|
39 |
<br>
|
40 |
<table border="0" cellpadding="4" cellspacing="0">
|
41 |
<tbody>
|
42 |
<tr>
|
43 |
+
<td nowrap="nowrap"><label for="spider_Calendar" class="wd-label" >Select Calendar</label></td>
|
44 |
<td><select name="spider_Calendar" id="spider_Calendar" style="width:150px;">
|
45 |
<option value="- Select a Calendar -" selected="selected">- Select a Calendar -</option>
|
46 |
<?php
|
52 |
</td>
|
53 |
</tr>
|
54 |
<tr>
|
55 |
+
<td nowrap="nowrap"><label for="spider_Calendar_theme" class="wd-label">Select Theme</label></td>
|
56 |
<td>
|
57 |
<select name="spider_Calendar_theme" id="spider_Calendar_theme" style="width:150px;">
|
58 |
<option value="- Select a Theme -" selected="selected">- Select a Theme -</option>
|
65 |
</td>
|
66 |
</tr>
|
67 |
<tr>
|
68 |
+
<td class="key"><label for="default_view" class="wd-label">Default View</label></td>
|
69 |
<td>
|
70 |
<select id="default_view" style="width:150px;" onChange="spider_calendar_select_view(this.value)">
|
71 |
<option value="month" selected="selected">Month</option>
|
76 |
</td>
|
77 |
</tr>
|
78 |
<tr>
|
79 |
+
<td class="key"><label for="view_0" class="wd-label">Select Views</label></td>
|
80 |
<td style="font-size: 13px;">
|
81 |
<input type="checkbox" id="view_0" value="month" checked="checked">Month
|
82 |
<input type="checkbox" id="view_1" value="list" checked="checked">List
|
89 |
</div>
|
90 |
</div>
|
91 |
<div class="mceActionPanel">
|
|
|
|
|
|
|
92 |
<div style="float: right;">
|
93 |
+
<input type="button" id="insert" name="insert" value="Insert" onClick="insert_spider_calendar();"/>
|
94 |
</div>
|
95 |
</div>
|
96 |
</form>
|
97 |
+
<style type="text/css">
|
98 |
+
.wd-table {
|
99 |
+
clear: both;
|
100 |
+
display: table;
|
101 |
+
margin: 0;
|
102 |
+
padding: 10px 0;
|
103 |
+
position: relative;
|
104 |
+
table-layout: fixed;
|
105 |
+
width: 100%;
|
106 |
+
}
|
107 |
+
|
108 |
+
.wd-label {
|
109 |
+
display: block;
|
110 |
+
font-size: 14px;
|
111 |
+
font-weight: bold;
|
112 |
+
line-height: 20px;
|
113 |
+
margin-bottom: 10px;
|
114 |
+
padding: 0;
|
115 |
+
}
|
116 |
+
.wd-table select {
|
117 |
+
background: #fff none repeat scroll 0 0;
|
118 |
+
border: 1px solid #ddd;
|
119 |
+
border-radius: 4px;
|
120 |
+
box-shadow: none;
|
121 |
+
display: block;
|
122 |
+
height: initial;
|
123 |
+
line-height: 20px;
|
124 |
+
margin: 0;
|
125 |
+
max-width: 100%;
|
126 |
+
padding: 5px;
|
127 |
+
width: 100%;
|
128 |
+
margin-left: 5px;
|
129 |
+
}
|
130 |
+
#insert {
|
131 |
+
background: #2ea2cc;
|
132 |
+
background: -webkit-gradient(linear, left top, left bottom, from(#2ea2cc), to(#1e8cbe));
|
133 |
+
background: -webkit-linear-gradient(top, #2ea2cc 0%,#1e8cbe 100%);
|
134 |
+
background: linear-gradient(top, #2ea2cc 0%,#1e8cbe 100%);
|
135 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2ea2cc', endColorstr='#1e8cbe',GradientType=0 );
|
136 |
+
border: 1px solid #0074a2;
|
137 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.5);
|
138 |
+
box-shadow: inset 0 1px 0 rgba(120,200,230,0.5);
|
139 |
+
color: #fff;
|
140 |
+
text-decoration: none;
|
141 |
+
text-shadow: 0 1px 0 rgba(0,86,132,0.7);
|
142 |
+
border-radius: 3px;
|
143 |
+
font-size: 13px;
|
144 |
+
line-height: 24px;
|
145 |
+
padding: 0 10px;
|
146 |
+
}
|
147 |
+
input[type=checkbox], input[type=radio] {
|
148 |
+
border: 1px solid #b4b9be;
|
149 |
+
background: #fff;
|
150 |
+
color: #555;
|
151 |
+
clear: none;
|
152 |
+
cursor: pointer;
|
153 |
+
display: inline-block;
|
154 |
+
line-height: 0;
|
155 |
+
height: 20px;
|
156 |
+
margin: -4px 4px 0 0;
|
157 |
+
outline: 0;
|
158 |
+
padding: 0!important;
|
159 |
+
text-align: center;
|
160 |
+
vertical-align: middle;
|
161 |
+
width: 20px;
|
162 |
+
min-width: 16px;
|
163 |
+
-webkit-appearance: none;
|
164 |
+
box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
|
165 |
+
transition: .05s border-color ease-in-out;
|
166 |
+
}
|
167 |
+
#link .wd-table .panel_wrapper {
|
168 |
+
height: 155px;
|
169 |
+
}
|
170 |
+
input[type=checkbox]:checked:before {
|
171 |
+
font: normal 25px/1 dashicons;
|
172 |
+
margin: -3px -5px;
|
173 |
+
}
|
174 |
+
input[type=checkbox]:checked:before {
|
175 |
+
content: "\f147";
|
176 |
+
margin: -3px 0 0 -4px;
|
177 |
+
color: #1e8cbe;
|
178 |
+
}
|
179 |
+
input[type=checkbox] {
|
180 |
+
-webkit-appearance: none;
|
181 |
+
}
|
182 |
+
.wd-table input[type="checkbox"] {
|
183 |
+
margin-bottom: 5px;
|
184 |
+
display: inline-block;
|
185 |
+
height: 20px;
|
186 |
+
width: 20px;
|
187 |
+
}
|
188 |
+
</style>
|
189 |
<script type="text/javascript">
|
190 |
var short_code = get_params("Spider_Calendar");
|
191 |
if (short_code) {
|
208 |
}
|
209 |
// Get shortcodes attributes.
|
210 |
function get_params(module_name) {
|
211 |
+
<?php if ($gutenberg_callback) {
|
212 |
+
if ( $gutenberg_id == 0) {
|
213 |
+
?>
|
214 |
+
return false;
|
215 |
+
<?php
|
216 |
+
}
|
217 |
+
?>
|
218 |
+
var short_code_attr = new Array();
|
219 |
+
short_code_attr['id'] = <?php echo (int) $gutenberg_id; ?>;
|
220 |
+
selected_text = window.parent.window['<?php echo $gutenberg_callback . '_shortcode'; ?>'];
|
221 |
+
<?php
|
222 |
+
}
|
223 |
+
else {?>
|
224 |
+
selected_text = top.tinyMCE.activeEditor.selection.getContent();
|
225 |
+
<?php }?>
|
226 |
+
|
227 |
+
var module_start_index = selected_text.indexOf("[" + module_name);
|
228 |
+
var module_end_index = selected_text.indexOf("]", module_start_index);
|
229 |
+
var module_str = "";
|
230 |
+
if ((module_start_index >= 0) && (module_end_index >= 0)) {
|
231 |
+
module_str = selected_text.substring(module_start_index + 1, module_end_index);
|
232 |
+
}
|
233 |
+
else {
|
234 |
+
return false;
|
235 |
+
}
|
236 |
+
var params_str = module_str.substring(module_str.indexOf(" ") + 1);
|
237 |
+
var key_values = params_str.split(" ");
|
238 |
+
var short_code_attr = new Array();
|
239 |
+
for (var key in key_values) {
|
240 |
+
var short_code_index = key_values[key].split('=')[0];
|
241 |
+
var short_code_value = key_values[key].split('=')[1];
|
242 |
+
short_code_value = short_code_value.substring(1, short_code_value.length - 1);
|
243 |
+
short_code_attr[short_code_index] = short_code_value;
|
244 |
+
}
|
245 |
+
return short_code_attr;
|
246 |
}
|
247 |
|
248 |
function spider_calendar_select_view(selected_value) {
|
252 |
}
|
253 |
}
|
254 |
}
|
255 |
+
|
256 |
function insert_spider_calendar() {
|
257 |
var calendar_id = document.getElementById('spider_Calendar').value;
|
258 |
var theme_id = document.getElementById('spider_Calendar_theme').value;
|
263 |
select_view = select_view + document.getElementById('view_' + i).value + ',';
|
264 |
}
|
265 |
}
|
266 |
+
|
267 |
if ((calendar_id != '- Select a Calendar -') && (theme_id != '- Select a Theme -')) {
|
268 |
var tagtext;
|
269 |
tagtext = '[Spider_Calendar id="' + calendar_id + '" theme="' + theme_id + '" default="' + default_view + '" select="' + select_view + '"]';
|
270 |
+
<?php if( !$gutenberg_callback ) { ?>
|
271 |
+
window.tinyMCE.execCommand('mceInsertContent', false, tagtext);
|
272 |
+
tinyMCEPopup.close();
|
273 |
+
<?php } else { ?>
|
274 |
+
window.parent.window.jQuery(".edit-post-layout__content").css({"z-index":"0","overflow":"auto"});
|
275 |
+
window.parent['<?php echo $gutenberg_callback; ?>'](tagtext, short_code['id']);
|
276 |
+
window.close();
|
277 |
+
<?php } ?>
|
278 |
+
<?php if( !$gutenberg_callback ) { ?>
|
279 |
+
tinyMCEPopup.close();
|
280 |
+
<?php } else { ?>
|
281 |
+
window.close();
|
282 |
+
<?php } ?>
|
283 |
+
} else {
|
284 |
+
alert('Please Select Calendar and Theme');
|
285 |
+
}
|
286 |
}
|
287 |
</script>
|
288 |
+
</div>
|
289 |
</body>
|
290 |
</html>
|
291 |
<?php
|
811 |
</body>
|
812 |
</html>
|
813 |
<?php die();
|
814 |
+
}
|
815 |
+
function sp_get($key, $default_value = '', $esc_html = true) {
|
816 |
+
if (isset($_GET[$key])) {
|
817 |
+
$value = $_GET[$key];
|
818 |
+
}
|
819 |
+
elseif (isset($_POST[$key])) {
|
820 |
+
$value = $_POST[$key];
|
821 |
+
}
|
822 |
+
elseif (isset($_REQUEST[$key])) {
|
823 |
+
$value = $_REQUEST[$key];
|
824 |
+
}
|
825 |
+
else {
|
826 |
+
$value =$default_value;
|
827 |
+
}
|
828 |
+
if (is_array($value)) {
|
829 |
+
array_walk_recursive( validate_data( $value ), $esc_html);
|
830 |
+
}
|
831 |
+
return $value;
|
832 |
+
}
|
833 |
+
|
834 |
+
function validate_data(&$value, $esc_html) {
|
835 |
+
$value = stripslashes($value);
|
836 |
+
if ($esc_html) {
|
837 |
+
$value = esc_html($value);
|
838 |
+
}
|
839 |
+
}
|
840 |
+
|
841 |
+
?>
|
images/tw-gb/icon.svg
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="45.36" viewBox="0 0 48 45.36">
|
2 |
+
<defs>
|
3 |
+
<linearGradient id="linear-gradient" y1="0.5" x2="0.999" y2="0.5" gradientUnits="objectBoundingBox">
|
4 |
+
<stop offset="0" stop-color="#263545"/>
|
5 |
+
<stop offset="1" stop-color="#3b4e5d"/>
|
6 |
+
</linearGradient>
|
7 |
+
<linearGradient id="linear-gradient-2" y1="0.5" x2="0.999" y2="0.5" xlink:href="#linear-gradient"/>
|
8 |
+
<linearGradient id="linear-gradient-5" y1="0.5" x2="0.999" y2="0.5" xlink:href="#linear-gradient"/>
|
9 |
+
<linearGradient id="linear-gradient-8" y1="0.5" x2="0.999" y2="0.5" xlink:href="#linear-gradient"/>
|
10 |
+
<linearGradient id="linear-gradient-9" y1="0.5" x2="1" y2="0.5" gradientUnits="objectBoundingBox">
|
11 |
+
<stop offset="0" stop-color="#1c2a3a"/>
|
12 |
+
<stop offset="1" stop-color="#233444"/>
|
13 |
+
</linearGradient>
|
14 |
+
</defs>
|
15 |
+
<g id="icon" transform="translate(0 -27.4)">
|
16 |
+
<g id="Group_68999" data-name="Group 68999" transform="translate(0 27.4)">
|
17 |
+
<path id="XMLID_40844_" d="M425.752,612.334h-6.681a.569.569,0,0,1-.571-.571v-6.891a.569.569,0,0,1,.571-.571h6.681a.569.569,0,0,1,.571.571v6.886A.574.574,0,0,1,425.752,612.334Zm-6.412-.84h6.148V605.14H419.34Z" transform="translate(-398.414 -576.615)" fill="#092e49"/>
|
18 |
+
<path id="XMLID_40731_" d="M163.566,37.972h0a1.774,1.774,0,0,0,1.766-1.766v-7.04a1.774,1.774,0,0,0-1.766-1.766h0a1.774,1.774,0,0,0-1.766,1.766v7.045A1.77,1.77,0,0,0,163.566,37.972Z" transform="translate(-154.034 -27.4)" fill="#b2b2b2"/>
|
19 |
+
<path id="XMLID_40730_" d="M463.566,37.972h0a1.774,1.774,0,0,0,1.766-1.766v-7.04a1.774,1.774,0,0,0-1.766-1.766h0a1.774,1.774,0,0,0-1.766,1.766v7.045A1.77,1.77,0,0,0,463.566,37.972Z" transform="translate(-439.636 -27.4)" fill="#b2b2b2"/>
|
20 |
+
<path id="XMLID_40729_" d="M763.566,37.972h0a1.774,1.774,0,0,0,1.766-1.766v-7.04a1.774,1.774,0,0,0-1.766-1.766h0a1.774,1.774,0,0,0-1.766,1.766v7.045A1.77,1.77,0,0,0,763.566,37.972Z" transform="translate(-725.237 -27.4)" fill="#b2b2b2"/>
|
21 |
+
<path id="XMLID_40728_" d="M7.78,415.029H.019A.021.021,0,0,1,0,415.009v-7.99A.021.021,0,0,1,.019,407H7.785a.021.021,0,0,1,.019.019v8A.026.026,0,0,1,7.78,415.029Z" transform="translate(0 -388.783)" fill="url(#linear-gradient)"/>
|
22 |
+
<path id="XMLID_40727_" d="M426.785,813.329h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8C426.8,813.324,426.794,813.329,426.785,813.329Z" transform="translate(-398.89 -767.969)" fill="url(#linear-gradient-2)"/>
|
23 |
+
<path id="XMLID_40726_" d="M7.78,813.329H.019A.021.021,0,0,1,0,813.309v-7.99a.021.021,0,0,1,.019-.019H7.785a.021.021,0,0,1,.019.019v8A.026.026,0,0,1,7.78,813.329Z" transform="translate(0 -767.969)" fill="url(#linear-gradient)"/>
|
24 |
+
<path id="XMLID_40725_" d="M217.28,813.329h-7.761a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.026.026,0,0,1,217.28,813.329Z" transform="translate(-199.445 -767.969)" fill="url(#linear-gradient)"/>
|
25 |
+
<path id="XMLID_40724_" d="M217.28,612.334h-7.761a.021.021,0,0,1-.019-.019v-8a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.032.032,0,0,1,217.28,612.334Z" transform="translate(-199.445 -576.615)" fill="url(#linear-gradient-5)"/>
|
26 |
+
<path id="XMLID_40723_" d="M7.78,612.334H.019A.021.021,0,0,1,0,612.314v-8a.021.021,0,0,1,.019-.019H7.785a.021.021,0,0,1,.019.019v8A.032.032,0,0,1,7.78,612.334Z" transform="translate(0 -576.615)" fill="url(#linear-gradient-5)"/>
|
27 |
+
<path id="XMLID_40722_" d="M426.785,415.029h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8C426.8,415.024,426.794,415.029,426.785,415.029Z" transform="translate(-398.89 -388.783)" fill="url(#linear-gradient-2)"/>
|
28 |
+
<path id="XMLID_40721_" d="M216.08,415.029h-7.761a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.026.026,0,0,1,216.08,415.029Z" transform="translate(-198.303 -388.783)" fill="url(#linear-gradient-8)"/>
|
29 |
+
<path id="XMLID_40720_" d="M7.7,415.029H.1a.1.1,0,0,1-.1-.1L7.7,407a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,7.7,415.029Z" transform="translate(0 -388.783)" fill="url(#linear-gradient-9)"/>
|
30 |
+
<path id="XMLID_40719_" d="M845.28,415.029h-7.761a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.026.026,0,0,1,845.28,415.029Z" transform="translate(-797.304 -388.783)" fill="#923a44"/>
|
31 |
+
<path id="XMLID_40718_" d="M845.2,415.029H837.6a.1.1,0,0,1-.1-.1L845.2,407a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,845.2,415.029Z" transform="translate(-797.304 -388.783)" fill="#853039"/>
|
32 |
+
<path id="XMLID_40717_" d="M635.885,415.029h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8C635.9,415.024,635.894,415.029,635.885,415.029Z" transform="translate(-597.954 -388.783)" fill="#d5bd58"/>
|
33 |
+
<path id="XMLID_40716_" d="M635.9,415.029h-7.6a.1.1,0,0,1-.1-.1L635.9,407a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,635.9,415.029Z" transform="translate(-598.049 -388.783)" fill="#c8b14d"/>
|
34 |
+
<path id="XMLID_40715_" d="M845.28,612.334h-7.761a.021.021,0,0,1-.019-.019v-8a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.032.032,0,0,1,845.28,612.334Z" transform="translate(-797.304 -576.615)" fill="#923a44"/>
|
35 |
+
<path id="XMLID_40714_" d="M845.2,612.334H837.6a.1.1,0,0,1-.1-.1l7.7-7.938a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,845.2,612.334Z" transform="translate(-797.304 -576.615)" fill="#853039"/>
|
36 |
+
<path id="XMLID_40713_" d="M635.885,612.334h-7.766a.021.021,0,0,1-.019-.019v-8a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8C635.9,612.324,635.894,612.334,635.885,612.334Z" transform="translate(-597.954 -576.615)" fill="#d5bd58"/>
|
37 |
+
<path id="XMLID_40712_" d="M635.9,612.429h-7.6a.1.1,0,0,1-.1-.1l7.7-7.933a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,635.9,612.429Z" transform="translate(-598.049 -576.71)" fill="#c8b14d"/>
|
38 |
+
<path id="XMLID_40711_" d="M845.28,813.329h-7.761a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.026.026,0,0,1,845.28,813.329Z" transform="translate(-797.304 -767.969)" fill="#923a44"/>
|
39 |
+
<path id="XMLID_40710_" d="M845.2,813.329H837.6a.1.1,0,0,1-.1-.1l7.7-7.933a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,845.2,813.329Z" transform="translate(-797.304 -767.969)" fill="#853039"/>
|
40 |
+
<path id="XMLID_40709_" d="M635.885,813.329h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8C635.9,813.324,635.894,813.329,635.885,813.329Z" transform="translate(-597.954 -767.969)" fill="#d5bd58"/>
|
41 |
+
<path id="XMLID_40708_" d="M635.9,813.329h-7.6a.1.1,0,0,1-.1-.1l7.7-7.933a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,635.9,813.329Z" transform="translate(-598.049 -767.969)" fill="#c8b14d"/>
|
42 |
+
<path id="XMLID_40707_" d="M48,129.777v10.606a.091.091,0,0,1-.091.091H.091A.091.091,0,0,1,0,140.383V129.71a.7.7,0,0,1,.7-.7H5a.332.332,0,0,1,.331.331v3.609A4.215,4.215,0,0,0,8.9,137.163a4.138,4.138,0,0,0,4.7-4.05v-3.777a.332.332,0,0,1,.331-.331h5.467a.332.332,0,0,1,.331.331v3.609a4.215,4.215,0,0,0,3.566,4.214,4.138,4.138,0,0,0,4.7-4.05v-3.777a.332.332,0,0,1,.331-.331h5.467a.332.332,0,0,1,.331.331v3.753a4.075,4.075,0,0,0,3.907,4.113,4.023,4.023,0,0,0,4.094-4.084v-3.777a.332.332,0,0,1,.331-.331h4.776A.777.777,0,0,1,48,129.777Z" transform="translate(0 -124.124)" fill="#103856"/>
|
43 |
+
<path id="XMLID_40706_" d="M426.785,415.029h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8C426.8,415.024,426.794,415.029,426.785,415.029Z" transform="translate(-398.89 -388.783)" fill="#1c425f"/>
|
44 |
+
<path id="XMLID_40705_" d="M426.7,415.029H419.1a.1.1,0,0,1-.1-.1L426.7,407a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,426.7,415.029Z" transform="translate(-398.89 -388.783)" fill="#092e49"/>
|
45 |
+
<path id="XMLID_40703_" d="M217.085,415.029h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8C217.1,415.024,217.094,415.029,217.085,415.029Z" transform="translate(-199.255 -388.783)" fill="#1c425f"/>
|
46 |
+
<path id="XMLID_40702_" d="M217.1,415.029h-7.6a.1.1,0,0,1-.1-.1L217.1,407a.1.1,0,0,1,.1.1v7.837A.091.091,0,0,1,217.1,415.029Z" transform="translate(-199.35 -388.783)" fill="#092e49"/>
|
47 |
+
<path id="XMLID_40700_" d="M7.78,612.334H.019A.021.021,0,0,1,0,612.314v-8a.021.021,0,0,1,.019-.019H7.785a.021.021,0,0,1,.019.019v8A.032.032,0,0,1,7.78,612.334Z" transform="translate(0 -576.615)" fill="#1c425f"/>
|
48 |
+
<path id="XMLID_40699_" d="M7.7,612.429H.1a.1.1,0,0,1-.1-.1L7.7,604.4a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,7.7,612.429Z" transform="translate(0 -576.71)" fill="#092e49"/>
|
49 |
+
<g id="XMLID_40695_" transform="translate(0 37.331)" opacity="0.29">
|
50 |
+
<path id="XMLID_40697_" d="M7.78,813.329H.019A.021.021,0,0,1,0,813.309v-7.99a.021.021,0,0,1,.019-.019H7.785a.021.021,0,0,1,.019.019v8A.026.026,0,0,1,7.78,813.329Z" transform="translate(0 -805.3)" fill="#1c425f"/>
|
51 |
+
<path id="XMLID_40696_" d="M7.7,813.329H.1a.1.1,0,0,1-.1-.1L7.7,805.3a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,7.7,813.329Z" transform="translate(0 -805.3)" fill="#092e49"/>
|
52 |
+
</g>
|
53 |
+
<path id="XMLID_40694_" d="M217.085,612.334h-7.766a.021.021,0,0,1-.019-.019v-8a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.021.021,0,0,1,217.085,612.334Z" transform="translate(-199.255 -576.615)" fill="#1c425f"/>
|
54 |
+
<path id="XMLID_40693_" d="M217.1,612.429h-7.6a.1.1,0,0,1-.1-.1l7.7-7.933a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,217.1,612.429Z" transform="translate(-199.35 -576.71)" fill="#092e49"/>
|
55 |
+
<g id="XMLID_40689_" transform="translate(0.01 37.331)">
|
56 |
+
<path id="XMLID_40691_" d="M7.985,813.329H.219a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019H7.985a.021.021,0,0,1,.019.019v8C8,813.324,7.994,813.329,7.985,813.329Z" transform="translate(-0.2 -805.3)" fill="#1c425f"/>
|
57 |
+
<path id="XMLID_40690_" d="M8,813.329H.4a.1.1,0,0,1-.1-.1L8,805.3a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,8,813.329Z" transform="translate(-0.295 -805.3)" fill="#092e49"/>
|
58 |
+
</g>
|
59 |
+
<g id="XMLID_40686_" transform="translate(10.06 37.331)">
|
60 |
+
<path id="XMLID_40688_" d="M217.385,813.329h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8C217.4,813.324,217.394,813.329,217.385,813.329Z" transform="translate(-209.6 -805.3)" fill="#1c425f"/>
|
61 |
+
<path id="XMLID_40687_" d="M217.4,813.329h-7.6a.1.1,0,0,1-.1-.1l7.7-7.933a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,217.4,813.329Z" transform="translate(-209.695 -805.3)" fill="#092e49"/>
|
62 |
+
</g>
|
63 |
+
<g id="XMLID_40683_" transform="translate(20.11 37.331)">
|
64 |
+
<path id="XMLID_40685_" d="M426.785,813.329h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8C426.8,813.324,426.794,813.329,426.785,813.329Z" transform="translate(-419 -805.3)" fill="#1c425f"/>
|
65 |
+
<path id="XMLID_40684_" d="M426.7,813.329H419.1a.1.1,0,0,1-.1-.1l7.7-7.933a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,426.7,813.329Z" transform="translate(-419 -805.3)" fill="#092e49"/>
|
66 |
+
</g>
|
67 |
+
<path id="XMLID_40681_" d="M7.78,415.029H.019A.021.021,0,0,1,0,415.009v-7.99A.021.021,0,0,1,.019,407H7.785a.021.021,0,0,1,.019.019v8A.026.026,0,0,1,7.78,415.029Z" transform="translate(0 -388.783)" fill="#1c425f"/>
|
68 |
+
<path id="XMLID_40680_" d="M7.7,415.029H.1a.1.1,0,0,1-.1-.1L7.7,407a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,7.7,415.029Z" transform="translate(0 -388.783)" fill="#092e49"/>
|
69 |
+
</g>
|
70 |
+
</g>
|
71 |
+
</svg>
|
images/tw-gb/icon_grey.svg
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg id="spider__grey" data-name="spider)_grey" xmlns="http://www.w3.org/2000/svg" width="48" height="45.36" viewBox="0 0 48 45.36">
|
2 |
+
<path id="XMLID_40844_" d="M425.752,612.334h-6.681a.569.569,0,0,1-.571-.571v-6.891a.569.569,0,0,1,.571-.571h6.681a.569.569,0,0,1,.571.571v6.886A.574.574,0,0,1,425.752,612.334Zm-6.412-.84h6.148V605.14H419.34Z" transform="translate(-398.414 -576.615)" fill="#555d66"/>
|
3 |
+
<path id="XMLID_40731_" d="M163.566,37.972h0a1.774,1.774,0,0,0,1.766-1.766v-7.04a1.774,1.774,0,0,0-1.766-1.766h0a1.774,1.774,0,0,0-1.766,1.766v7.045a1.77,1.77,0,0,0,1.766,1.761Z" transform="translate(-154.034 -27.4)" fill="#555d66"/>
|
4 |
+
<path id="XMLID_40730_" d="M463.566,37.972h0a1.774,1.774,0,0,0,1.766-1.766v-7.04a1.774,1.774,0,0,0-1.766-1.766h0a1.774,1.774,0,0,0-1.766,1.766v7.045a1.77,1.77,0,0,0,1.766,1.761Z" transform="translate(-439.636 -27.4)" fill="#555d66"/>
|
5 |
+
<path id="XMLID_40729_" d="M763.566,37.972h0a1.774,1.774,0,0,0,1.766-1.766v-7.04a1.774,1.774,0,0,0-1.766-1.766h0a1.774,1.774,0,0,0-1.766,1.766v7.045a1.77,1.77,0,0,0,1.766,1.761Z" transform="translate(-725.237 -27.4)" fill="#555d66"/>
|
6 |
+
<path id="XMLID_40728_" d="M7.78,415.029H.019a.021.021,0,0,1-.019-.02v-7.99A.021.021,0,0,1,.019,407H7.785a.021.021,0,0,1,.019.019v8a.026.026,0,0,1-.024.01Z" transform="translate(0 -388.783)" fill="#555d66"/>
|
7 |
+
<path id="XMLID_40727_" d="M426.785,813.329h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.027.027,0,0,1,426.785,813.329Z" transform="translate(-398.89 -767.969)" fill="#555d66"/>
|
8 |
+
<path id="XMLID_40726_" d="M7.78,813.329H.019a.021.021,0,0,1-.019-.02v-7.99a.021.021,0,0,1,.019-.019H7.785a.021.021,0,0,1,.019.019v8a.026.026,0,0,1-.024.01Z" transform="translate(0 -767.969)" fill="#555d66"/>
|
9 |
+
<path id="XMLID_40725_" d="M217.28,813.329h-7.761a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8a.026.026,0,0,1-.024.009Z" transform="translate(-199.445 -767.969)" fill="#555d66"/>
|
10 |
+
<path id="XMLID_40724_" d="M217.28,612.334h-7.761a.021.021,0,0,1-.019-.019v-8a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8a.032.032,0,0,1-.024.019Z" transform="translate(-199.445 -576.615)" fill="#555d66"/>
|
11 |
+
<path id="XMLID_40723_" d="M7.78,612.334H.019a.021.021,0,0,1-.019-.02v-8a.021.021,0,0,1,.019-.019H7.785a.021.021,0,0,1,.019.019v8a.032.032,0,0,1-.024.02Z" transform="translate(0 -576.615)" fill="#555d66"/>
|
12 |
+
<path id="XMLID_40722_" d="M426.785,415.029h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.027.027,0,0,1,426.785,415.029Z" transform="translate(-398.89 -388.783)" fill="#555d66"/>
|
13 |
+
<path id="XMLID_40721_" d="M216.08,415.029h-7.761a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8a.026.026,0,0,1-.024.009Z" transform="translate(-198.303 -388.783)" fill="#555d66"/>
|
14 |
+
<path id="XMLID_40720_" d="M7.7,415.029H.1a.1.1,0,0,1-.1-.1L7.7,407a.1.1,0,0,1,.1.1v7.837a.1.1,0,0,1-.1.092Z" transform="translate(0 -388.783)" fill="#555d66"/>
|
15 |
+
<path id="XMLID_40719_" d="M845.28,415.029h-7.761a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8a.026.026,0,0,1-.024.009Z" transform="translate(-797.304 -388.783)" fill="#555d66"/>
|
16 |
+
<path id="XMLID_40718_" d="M845.2,415.029h-7.6a.1.1,0,0,1-.1-.1L845.2,407a.1.1,0,0,1,.1.1v7.837a.1.1,0,0,1-.1.092Z" transform="translate(-797.304 -388.783)" fill="#555d66"/>
|
17 |
+
<path id="XMLID_40717_" d="M635.885,415.029h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.026.026,0,0,1,635.885,415.029Z" transform="translate(-597.954 -388.783)" fill="#555d66"/>
|
18 |
+
<path id="XMLID_40716_" d="M635.9,415.029h-7.6a.1.1,0,0,1-.1-.1L635.9,407a.1.1,0,0,1,.1.1v7.837a.1.1,0,0,1-.1.092Z" transform="translate(-598.049 -388.783)" fill="#555d66"/>
|
19 |
+
<path id="XMLID_40715_" d="M845.28,612.334h-7.761a.021.021,0,0,1-.019-.019v-8a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.032.032,0,0,1,845.28,612.334Z" transform="translate(-797.304 -576.615)" fill="#555d66"/>
|
20 |
+
<path id="XMLID_40714_" d="M845.2,612.334h-7.6a.1.1,0,0,1-.1-.1l7.7-7.938a.1.1,0,0,1,.1.1v7.837a.1.1,0,0,1-.1.1Z" transform="translate(-797.304 -576.615)" fill="#555d66"/>
|
21 |
+
<path id="XMLID_40713_" d="M635.885,612.334h-7.766a.021.021,0,0,1-.019-.019v-8a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8C635.9,612.324,635.894,612.334,635.885,612.334Z" transform="translate(-597.954 -576.615)" fill="#555d66"/>
|
22 |
+
<path id="XMLID_40712_" d="M635.9,612.429h-7.6a.1.1,0,0,1-.1-.1l7.7-7.933a.1.1,0,0,1,.1.1v7.837a.1.1,0,0,1-.1.1Z" transform="translate(-598.049 -576.71)" fill="#555d66"/>
|
23 |
+
<path id="XMLID_40711_" d="M845.28,813.329h-7.761a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8a.026.026,0,0,1-.024.009Z" transform="translate(-797.304 -767.969)" fill="#555d66"/>
|
24 |
+
<path id="XMLID_40710_" d="M845.2,813.329h-7.6a.1.1,0,0,1-.1-.1l7.7-7.933a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,845.2,813.329Z" transform="translate(-797.304 -767.969)" fill="#555d66"/>
|
25 |
+
<path id="XMLID_40709_" d="M635.885,813.329h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.026.026,0,0,1,635.885,813.329Z" transform="translate(-597.954 -767.969)" fill="#555d66"/>
|
26 |
+
<path id="XMLID_40708_" d="M635.9,813.329h-7.6a.1.1,0,0,1-.1-.1l7.7-7.933a.1.1,0,0,1,.1.1v7.837a.1.1,0,0,1-.1.1Z" transform="translate(-598.049 -767.969)" fill="#555d66"/>
|
27 |
+
<path id="XMLID_40707_" d="M48,129.777v10.606a.091.091,0,0,1-.091.091H.091A.091.091,0,0,1,0,140.383V129.71a.7.7,0,0,1,.7-.7H5a.332.332,0,0,1,.331.331v3.609A4.215,4.215,0,0,0,8.9,137.163a4.138,4.138,0,0,0,4.7-4.05v-3.777a.332.332,0,0,1,.331-.331H19.4a.332.332,0,0,1,.331.331v3.609a4.215,4.215,0,0,0,3.566,4.214,4.138,4.138,0,0,0,4.7-4.05v-3.777a.332.332,0,0,1,.331-.331h5.467a.332.332,0,0,1,.331.331v3.753a4.075,4.075,0,0,0,3.907,4.113,4.023,4.023,0,0,0,4.094-4.084v-3.777a.332.332,0,0,1,.331-.331h4.776A.777.777,0,0,1,48,129.777Z" transform="translate(0 -124.124)" fill="#555d66"/>
|
28 |
+
<path id="XMLID_40706_" d="M426.785,415.029h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.027.027,0,0,1,426.785,415.029Z" transform="translate(-398.89 -388.783)" fill="#555d66"/>
|
29 |
+
<path id="XMLID_40705_" d="M426.7,415.029h-7.6a.1.1,0,0,1-.1-.1L426.7,407a.1.1,0,0,1,.1.1v7.837a.1.1,0,0,1-.1.092Z" transform="translate(-398.89 -388.783)" fill="#555d66"/>
|
30 |
+
<path id="XMLID_40703_" d="M217.085,415.029h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.026.026,0,0,1,217.085,415.029Z" transform="translate(-199.255 -388.783)" fill="#555d66"/>
|
31 |
+
<path id="XMLID_40702_" d="M217.1,415.029h-7.6a.1.1,0,0,1-.1-.1L217.1,407a.1.1,0,0,1,.1.1v7.837a.091.091,0,0,1-.1.092Z" transform="translate(-199.35 -388.783)" fill="#555d66"/>
|
32 |
+
<path id="XMLID_40700_" d="M7.78,612.334H.019a.021.021,0,0,1-.019-.02v-8a.021.021,0,0,1,.019-.019H7.785a.021.021,0,0,1,.019.019v8a.032.032,0,0,1-.024.02Z" transform="translate(0 -576.615)" fill="#555d66"/>
|
33 |
+
<path id="XMLID_40699_" d="M7.7,612.429H.1a.1.1,0,0,1-.1-.1L7.7,604.4a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,7.7,612.429Z" transform="translate(0 -576.71)" fill="#555d66"/>
|
34 |
+
<g id="XMLID_40695_" transform="translate(0 37.331)" opacity="0.29">
|
35 |
+
<path id="XMLID_40697_" d="M7.78,813.329H.019a.021.021,0,0,1-.019-.02v-7.99a.021.021,0,0,1,.019-.019H7.785a.021.021,0,0,1,.019.019v8a.026.026,0,0,1-.024.01Z" transform="translate(0 -805.3)" fill="#555d66"/>
|
36 |
+
<path id="XMLID_40696_" d="M7.7,813.329H.1a.1.1,0,0,1-.1-.1L7.7,805.3a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,7.7,813.329Z" transform="translate(0 -805.3)" fill="#555d66"/>
|
37 |
+
</g>
|
38 |
+
<path id="XMLID_40694_" d="M217.085,612.334h-7.766a.021.021,0,0,1-.019-.019v-8a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.021.021,0,0,1,217.085,612.334Z" transform="translate(-199.255 -576.615)" fill="#555d66"/>
|
39 |
+
<path id="XMLID_40693_" d="M217.1,612.429h-7.6a.1.1,0,0,1-.1-.1l7.7-7.933a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,217.1,612.429Z" transform="translate(-199.35 -576.71)" fill="#555d66"/>
|
40 |
+
<g id="XMLID_40689_" transform="translate(0.01 37.331)">
|
41 |
+
<path id="XMLID_40691_" d="M7.985,813.329H.219A.021.021,0,0,1,.2,813.31v-7.99a.021.021,0,0,1,.019-.019H7.985A.021.021,0,0,1,8,805.32v8A.027.027,0,0,1,7.985,813.329Z" transform="translate(-0.2 -805.3)" fill="#555d66"/>
|
42 |
+
<path id="XMLID_40690_" d="M8,813.329H.4a.1.1,0,0,1-.1-.1L8,805.3a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,8,813.329Z" transform="translate(-0.295 -805.3)" fill="#555d66"/>
|
43 |
+
</g>
|
44 |
+
<g id="XMLID_40686_" transform="translate(10.06 37.331)">
|
45 |
+
<path id="XMLID_40688_" d="M217.385,813.329h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.027.027,0,0,1,217.385,813.329Z" transform="translate(-209.6 -805.3)" fill="#555d66"/>
|
46 |
+
<path id="XMLID_40687_" d="M217.4,813.329h-7.6a.1.1,0,0,1-.1-.1l7.7-7.933a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,217.4,813.329Z" transform="translate(-209.695 -805.3)" fill="#555d66"/>
|
47 |
+
</g>
|
48 |
+
<g id="XMLID_40683_" transform="translate(20.11 37.331)">
|
49 |
+
<path id="XMLID_40685_" d="M426.785,813.329h-7.766a.021.021,0,0,1-.019-.019v-7.99a.021.021,0,0,1,.019-.019h7.766a.021.021,0,0,1,.019.019v8A.027.027,0,0,1,426.785,813.329Z" transform="translate(-419 -805.3)" fill="#555d66"/>
|
50 |
+
<path id="XMLID_40684_" d="M426.7,813.329h-7.6a.1.1,0,0,1-.1-.1l7.7-7.933a.1.1,0,0,1,.1.1v7.837A.1.1,0,0,1,426.7,813.329Z" transform="translate(-419 -805.3)" fill="#555d66"/>
|
51 |
+
</g>
|
52 |
+
<path id="XMLID_40681_" d="M7.78,415.029H.019a.021.021,0,0,1-.019-.02v-7.99A.021.021,0,0,1,.019,407H7.785a.021.021,0,0,1,.019.019v8a.026.026,0,0,1-.024.01Z" transform="translate(0 -388.783)" fill="#555d66"/>
|
53 |
+
<path id="XMLID_40680_" d="M7.7,415.029H.1a.1.1,0,0,1-.1-.1L7.7,407a.1.1,0,0,1,.1.1v7.837a.1.1,0,0,1-.1.092Z" transform="translate(0 -388.783)" fill="#555d66"/>
|
54 |
+
</svg>
|
js/tw-gb/block.js
ADDED
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* 10Web plugins Gutenberg integration
|
3 |
+
* version 2.0.5
|
4 |
+
*/
|
5 |
+
( function ( blocks, element ) {
|
6 |
+
registerAllPluginBlocks();
|
7 |
+
|
8 |
+
function registerAllPluginBlocks() {
|
9 |
+
var twPluginsData = JSON.parse(tw_obj_translate.blocks);
|
10 |
+
for ( var pluginId in window['tw_gb'] ) {
|
11 |
+
if ( !window['tw_gb'].hasOwnProperty( pluginId ) ) {
|
12 |
+
continue;
|
13 |
+
}
|
14 |
+
twPluginsData[pluginId] = window['tw_gb'][pluginId];
|
15 |
+
}
|
16 |
+
if ( !twPluginsData ) {
|
17 |
+
return;
|
18 |
+
}
|
19 |
+
|
20 |
+
for ( var pluginId in twPluginsData ) {
|
21 |
+
if ( !twPluginsData.hasOwnProperty( pluginId ) ) {
|
22 |
+
continue;
|
23 |
+
}
|
24 |
+
|
25 |
+
if ( !twPluginsData[pluginId].inited ) {
|
26 |
+
twPluginsData[pluginId].inited = true;
|
27 |
+
registerPluginBlock( blocks, element, pluginId, twPluginsData[pluginId] );
|
28 |
+
}
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
+
function registerPluginBlock( blocks, element, pluginId, pluginData ) {
|
33 |
+
var el = element.createElement;
|
34 |
+
|
35 |
+
var isPopup = pluginData.isPopup;
|
36 |
+
|
37 |
+
var iconEl = el( 'img', {
|
38 |
+
width: pluginData.iconSvg.width,
|
39 |
+
height: pluginData.iconSvg.height,
|
40 |
+
src: pluginData.iconSvg.src
|
41 |
+
} );
|
42 |
+
|
43 |
+
blocks.registerBlockType( pluginId, {
|
44 |
+
title: pluginData.title,
|
45 |
+
icon: iconEl,
|
46 |
+
category: 'common',
|
47 |
+
attributes: {
|
48 |
+
shortcode: {
|
49 |
+
type: 'string'
|
50 |
+
},
|
51 |
+
popupOpened: {
|
52 |
+
type: 'boolean',
|
53 |
+
value: true
|
54 |
+
},
|
55 |
+
notInitial: {
|
56 |
+
type: 'boolean'
|
57 |
+
},
|
58 |
+
shortcode_id: {
|
59 |
+
type: 'string'
|
60 |
+
}
|
61 |
+
},
|
62 |
+
|
63 |
+
edit: function ( props ) {
|
64 |
+
if ( !props.attributes.notInitial ) {
|
65 |
+
props.setAttributes( {
|
66 |
+
notInitial: true,
|
67 |
+
popupOpened: true
|
68 |
+
} );
|
69 |
+
|
70 |
+
return el( 'p' );
|
71 |
+
}
|
72 |
+
|
73 |
+
if ( props.attributes.popupOpened ) {
|
74 |
+
if ( isPopup ) {
|
75 |
+
return showPopup( props.attributes.shortcode, props.attributes.shortcode_id );
|
76 |
+
}
|
77 |
+
else {
|
78 |
+
return showShortcodeList( props.attributes.shortcode );
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
+
if ( props.attributes.shortcode ) {
|
83 |
+
return showShortcode();
|
84 |
+
}
|
85 |
+
else {
|
86 |
+
return showShortcodePlaceholder();
|
87 |
+
}
|
88 |
+
|
89 |
+
function showPopup( shortcode, shortcode_id ) {
|
90 |
+
var shortcodeCbName = generateUniqueCbName( pluginId );
|
91 |
+
/* Store shortcode attribute into a global variable to get it from an iframe. */
|
92 |
+
window[shortcodeCbName + '_shortcode'] = shortcode ? shortcode : '';
|
93 |
+
window[shortcodeCbName] = function ( shortcode, shortcode_id ) {
|
94 |
+
delete window[shortcodeCbName];
|
95 |
+
|
96 |
+
if ( props ) {
|
97 |
+
props.setAttributes( { shortcode: shortcode, shortcode_id: shortcode_id, popupOpened: false } );
|
98 |
+
}
|
99 |
+
};
|
100 |
+
props.setAttributes( { popupOpened: true } );
|
101 |
+
if (!shortcode_id && undefined != shortcode) {
|
102 |
+
var shortcode_extract = shortcode.split(' ');
|
103 |
+
for (i = 0; i < shortcode_extract.length; i++) {
|
104 |
+
var attributes = shortcode_extract[i].split('=');
|
105 |
+
if ('id'== attributes[0]) {
|
106 |
+
shortcode_id = attributes[1].replace(/"/g, "");
|
107 |
+
}
|
108 |
+
}
|
109 |
+
}
|
110 |
+
jQuery(".edit-post-layout__content").css({"z-index":"99999","overflow":"visible"});
|
111 |
+
var elem = el( 'form', { className: 'tw-container' }, el( 'div', { className: 'tw-container-wrap' + (pluginData.containerClass ? ' ' + pluginData.containerClass : '') }, el( 'span', {
|
112 |
+
className: "media-modal-close",
|
113 |
+
onClick: close
|
114 |
+
}, el( "span", { className: "media-modal-icon" } ) ), el( 'iframe', { src: pluginData.data.shortcodeUrl + '&callback=' + shortcodeCbName + '&edit=' + shortcode_id } ) ) );
|
115 |
+
return elem;
|
116 |
+
}
|
117 |
+
|
118 |
+
function showShortcodeList( shortcode ) {
|
119 |
+
props.setAttributes( { popupOpened: true } );
|
120 |
+
var children = [];
|
121 |
+
var shortcodeList = JSON.parse( pluginData.data );
|
122 |
+
shortcodeList.inputs.forEach( function ( inputItem ) {
|
123 |
+
if ( inputItem.type === 'select' ) {
|
124 |
+
children.push( el( 'option', { value: '', dataId: 0 }, tw_obj_translate.empty_item ) );
|
125 |
+
if ( inputItem.options.length ) {
|
126 |
+
inputItem.options.forEach( function ( optionItem ) {
|
127 |
+
var shortcode = '[' + shortcodeList.shortcode_prefix + ' ' + inputItem.shortcode_attibute_name + '="' + optionItem.id + '"]';
|
128 |
+
children.push(
|
129 |
+
el( 'option', { value: shortcode, dataId: optionItem.id }, optionItem.name )
|
130 |
+
);
|
131 |
+
} )
|
132 |
+
}
|
133 |
+
}
|
134 |
+
} );
|
135 |
+
|
136 |
+
if ( shortcodeList.shortcodes ) {
|
137 |
+
shortcodeList.shortcodes.forEach( function ( shortcodeItem ) {
|
138 |
+
children.push(
|
139 |
+
el( 'option', { value: shortcodeItem.shortcode, dataId: shortcodeItem.id }, shortcodeItem.name )
|
140 |
+
);
|
141 |
+
} );
|
142 |
+
}
|
143 |
+
|
144 |
+
return el( 'form', { onSubmit: chooseFromList }, el( 'div', {}, pluginData.titleSelect ), el( 'select', {
|
145 |
+
value: shortcode,
|
146 |
+
onChange: chooseFromList,
|
147 |
+
class: 'tw-gb-select'
|
148 |
+
}, children ) );
|
149 |
+
}
|
150 |
+
|
151 |
+
function showShortcodePlaceholder() {
|
152 |
+
props.setAttributes( { popupOpened: false } );
|
153 |
+
return el( 'p', {
|
154 |
+
style: {
|
155 |
+
'cursor': "pointer"
|
156 |
+
},
|
157 |
+
|
158 |
+
onClick: function () {
|
159 |
+
props.setAttributes( { popupOpened: true } );
|
160 |
+
}.bind( this )
|
161 |
+
}, tw_obj_translate.nothing_selected );
|
162 |
+
}
|
163 |
+
|
164 |
+
function showShortcode() {
|
165 |
+
return el( 'img', {
|
166 |
+
src: pluginData.iconUrl,
|
167 |
+
alt: pluginData.title,
|
168 |
+
style: {
|
169 |
+
'height': "36px",
|
170 |
+
'width': "36px"
|
171 |
+
},
|
172 |
+
onClick: function () {
|
173 |
+
props.setAttributes( { popupOpened: true } );
|
174 |
+
}.bind( this )
|
175 |
+
} );
|
176 |
+
}
|
177 |
+
|
178 |
+
function close() {
|
179 |
+
jQuery(".edit-post-layout__content").css({"z-index":"0","overflow":"auto"});
|
180 |
+
props.setAttributes( { popupOpened: false } );
|
181 |
+
}
|
182 |
+
|
183 |
+
function chooseFromList( event, shortcode_id ) {
|
184 |
+
var selected = event.target.querySelector( 'option:checked' );
|
185 |
+
props.setAttributes( { shortcode: selected.value, shortcode_id: selected.dataId, popupOpened: false } );
|
186 |
+
event.preventDefault();
|
187 |
+
}
|
188 |
+
},
|
189 |
+
|
190 |
+
save: function ( props ) {
|
191 |
+
return props.attributes.shortcode;
|
192 |
+
}
|
193 |
+
} );
|
194 |
+
}
|
195 |
+
|
196 |
+
function generateUniqueCbName( pluginId ) {
|
197 |
+
return 'wdg_cb_' + pluginId;
|
198 |
+
}
|
199 |
+
} )(
|
200 |
+
window.wp.blocks,
|
201 |
+
window.wp.element
|
202 |
+
);
|
languages/sp_calendar-de_DE.mo
CHANGED
Binary file
|
languages/sp_calendar-de_DE.po
CHANGED
@@ -77,7 +77,7 @@ msgstr "Zurück zur Veranstaltungsliste"
|
|
77 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:78
|
78 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:44
|
79 |
msgid "January"
|
80 |
-
msgstr "
|
81 |
|
82 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:79
|
83 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:44
|
77 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:78
|
78 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:44
|
79 |
msgid "January"
|
80 |
+
msgstr "Januar"
|
81 |
|
82 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:79
|
83 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:44
|
readme.txt
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
-
=== Calendar by
|
2 |
Contributors: webdorado, wdsupport, 10web
|
3 |
Tags: calendar, event, event calendar, events, events calendar, calendars, event manager, calendar widget, event management, free calendar, Calender, upcoming events
|
4 |
Requires at least: 3.9
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 1.5.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
-
Event Calendar by
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
[Special Offer for all Premium Plugins](https://
|
15 |
-
[WordPress Calendar](https://
|
16 |
-
[Demo](
|
17 |
-
[Demo Admin](
|
18 |
-
[User Manual](https://
|
19 |
|
20 |
WordPress event calendar is a FREE user-friendly responsive plugin to manage multiple recurring events and various display options. This free plugin makes event registration and events management easy and lets you display beautiful responsive calendars, upcoming events and more. It’s perfect for websites organising seminars, summits, conferences, concerts, meetings, and more.
|
21 |
|
@@ -40,7 +40,7 @@ Its recurring events option makes event scheduling even easier. You just need to
|
|
40 |
Spider Calendar comes with a number of event display options, and themes, but if you want to have custom styles, you can add new themes with customized settings and options.
|
41 |
|
42 |
|
43 |
-
Upgrade to [WordPress Calendar Pro](https://
|
44 |
|
45 |
* 17 standard themes included in extension package for the plugin and 6 themes for the widget.
|
46 |
* Possibility to alter the width of the widget and main calendar.
|
@@ -60,7 +60,7 @@ Upgrade to [WordPress Calendar Pro](https://web-dorado.com/products/wordpress-ca
|
|
60 |
* Possibility to set a number of events to be displayed within a single day
|
61 |
|
62 |
###IMPORTANT:
|
63 |
-
If you think you found a bug in the plugin or have any problem/question concerning the plugin, please check out [Support Forum](https://wordpress.org/support/plugin/spider-event-calendar). If you do not find a solution here, do not hesitate to contact us at
|
64 |
|
65 |
|
66 |
== Screenshots ==
|
@@ -76,6 +76,12 @@ This plugin does not collect any data from website, neither collects visitors da
|
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
= 1.5.62 =
|
80 |
New: GDPR compliance help
|
81 |
New: WD library updated
|
1 |
+
=== Calendar by 10Web - Responsive Event Calendar ===
|
2 |
Contributors: webdorado, wdsupport, 10web
|
3 |
Tags: calendar, event, event calendar, events, events calendar, calendars, event manager, calendar widget, event management, free calendar, Calender, upcoming events
|
4 |
Requires at least: 3.9
|
5 |
+
Tested up to: 5.2
|
6 |
+
Stable tag: 1.5.63
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
+
Event Calendar by 10Web is a responsive calendar plugin for organizing events. Plugin lets you manage and publish unlimited event calendars on your site.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
[Special Offer for all Premium Plugins](https://10web.io/plugins)
|
15 |
+
[WordPress Calendar](https://10web.io/plugins/wordpress-spider-calendar)
|
16 |
+
[Demo](https://demo.10web.io/olddemo/spider-calendar)
|
17 |
+
[Demo Admin](https://demo.10web.io/olddemo/spider-calendar)
|
18 |
+
[User Manual](https://help.10web.io/hc/en-us/sections/360002491871)
|
19 |
|
20 |
WordPress event calendar is a FREE user-friendly responsive plugin to manage multiple recurring events and various display options. This free plugin makes event registration and events management easy and lets you display beautiful responsive calendars, upcoming events and more. It’s perfect for websites organising seminars, summits, conferences, concerts, meetings, and more.
|
21 |
|
40 |
Spider Calendar comes with a number of event display options, and themes, but if you want to have custom styles, you can add new themes with customized settings and options.
|
41 |
|
42 |
|
43 |
+
Upgrade to [WordPress Calendar Pro](https://10web.io/plugins/wordpress-spider-calendar) to add features:
|
44 |
|
45 |
* 17 standard themes included in extension package for the plugin and 6 themes for the widget.
|
46 |
* Possibility to alter the width of the widget and main calendar.
|
60 |
* Possibility to set a number of events to be displayed within a single day
|
61 |
|
62 |
###IMPORTANT:
|
63 |
+
If you think you found a bug in the plugin or have any problem/question concerning the plugin, please check out [Support Forum](https://wordpress.org/support/plugin/spider-event-calendar). If you do not find a solution here, do not hesitate to contact us at https://10web.io/contact-us.
|
64 |
|
65 |
|
66 |
== Screenshots ==
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= 1.5.63 =
|
80 |
+
Fixed: Compatibility with Elementor.
|
81 |
+
Fixed: Remove irrelevant categories from Categories section.
|
82 |
+
Fixed: Frontend filters.
|
83 |
+
Added: Gutenberg Integration.
|
84 |
+
|
85 |
= 1.5.62 =
|
86 |
New: GDPR compliance help
|
87 |
New: WD library updated
|
style_for_cal/tw-gb/block.css
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* 10Web plugins Gutenberg integration
|
3 |
+
* version 2.0.5
|
4 |
+
*/
|
5 |
+
|
6 |
+
.tw-container {
|
7 |
+
position: fixed;
|
8 |
+
top: 0;
|
9 |
+
left: 0;
|
10 |
+
right: 0;
|
11 |
+
bottom: 0;
|
12 |
+
z-index: 9999999;
|
13 |
+
background: rgba(0,0,0,0.7);
|
14 |
+
height: 100%;
|
15 |
+
}
|
16 |
+
|
17 |
+
.tw-container .tw-container-wrap {
|
18 |
+
background: #fff;
|
19 |
+
height: 100%;
|
20 |
+
width: 100%;
|
21 |
+
position: absolute;
|
22 |
+
top: 0;
|
23 |
+
bottom: 0;
|
24 |
+
margin: auto;
|
25 |
+
right: 0;
|
26 |
+
left: 0;
|
27 |
+
padding-top: 40px;
|
28 |
+
}
|
29 |
+
|
30 |
+
.tw-container .tw-container-wrap-800-540 {
|
31 |
+
max-width: 800px;
|
32 |
+
max-height: 540px;
|
33 |
+
}
|
34 |
+
|
35 |
+
.tw-container .tw-container-wrap-520-400 {
|
36 |
+
max-width: 520px;
|
37 |
+
max-height: 400px;
|
38 |
+
}
|
39 |
+
|
40 |
+
.tw-container .tw-container-wrap-420-450 {
|
41 |
+
max-width: 420px;
|
42 |
+
max-height: 450px;
|
43 |
+
}
|
44 |
+
|
45 |
+
.tw-container .tw-container-wrap-380-215 {
|
46 |
+
max-width: 380px;
|
47 |
+
max-height: 215px;
|
48 |
+
}
|
49 |
+
|
50 |
+
.tw-container .tw-container-wrap .media-modal-close{
|
51 |
+
line-height: 34px;
|
52 |
+
text-align: center;
|
53 |
+
height: 40px;
|
54 |
+
top: 10px;
|
55 |
+
}
|
56 |
+
|
57 |
+
.tw-container .tw-container-wrap iframe {
|
58 |
+
height: 100%;
|
59 |
+
width: 100%;
|
60 |
+
}
|
61 |
+
.tw-gb-select {
|
62 |
+
width: 100%;
|
63 |
+
height: auto !important;
|
64 |
+
}
|
wd/README.md
CHANGED
@@ -1,14 +1,30 @@
|
|
1 |
-
Version: 1.0.
|
2 |
|
3 |
|
4 |
|
5 |
Usage:
|
6 |
|
7 |
Copy and paste wd library into your plugin folder.
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
Then call dorado_web_init($options) function.
|
14 |
$options = array (
|
@@ -31,22 +47,8 @@ $options = array (
|
|
31 |
),
|
32 |
...
|
33 |
),
|
34 |
-
"user_guide" => array(
|
35 |
-
0 => array(
|
36 |
-
"main_title" => "user guide step 1",
|
37 |
-
"url" => "link to step 1",
|
38 |
-
"titles" => array(
|
39 |
-
array(
|
40 |
-
"title" => "step 1 sub title",
|
41 |
-
"url" => "link to step 1 sub"
|
42 |
-
)
|
43 |
-
)
|
44 |
-
),
|
45 |
-
...
|
46 |
-
),
|
47 |
-
"overview_welcome_image" => null,
|
48 |
"video_youtube_id" => "your plugin youtube video id", // e.g. https://www.youtube.com/watch?v=acaexefeP7o youtube id is the acaexefeP7o
|
49 |
-
"plugin_wd_url" => "https://
|
50 |
"plugin_wd_demo_link" => "http://wpdemo.web-dorado.com/your plugin",
|
51 |
"plugin_wd_addons_link" => "https://web-dorado.com/products/your plugin addons",
|
52 |
"after_subscribe" => "after subsribe page", // this can be plagin overview page or set up page admin.php?page=overview_YOUR_PREFIX
|
@@ -85,25 +87,6 @@ array(
|
|
85 |
....
|
86 |
)
|
87 |
|
88 |
-
user_guide - (type array) plugin user guide links from web-dorado.com
|
89 |
-
e.g. (for google maps plugin)
|
90 |
-
array(
|
91 |
-
0 => array(
|
92 |
-
"main_title" => __("Installation Wizard/ Options Menu", "gmwd"),
|
93 |
-
"url" => "https://web-dorado.com/wordpress-google-maps/installation-wizard-options-menu.html",
|
94 |
-
"titles" => array(
|
95 |
-
array(
|
96 |
-
"title" => __("Configuring Map API Key", "gmwd"),
|
97 |
-
"url" => "https://web-dorado.com/wordpress-google-maps/installation-wizard-options-menu/configuring-api-key.html"
|
98 |
-
)
|
99 |
-
)
|
100 |
-
),
|
101 |
-
1 => array(
|
102 |
-
"main_title" => __("Creating Map", "gmwd"),
|
103 |
-
"url" => "https://web-dorado.com/wordpress-google-maps/creating-map.html",
|
104 |
-
"titles" => array()
|
105 |
-
),
|
106 |
-
)
|
107 |
|
108 |
video_youtube_id - (type string) if your plugin has video, video's id, else null
|
109 |
( e.g. for https://www.youtube.com/watch?v=acaexefeP7o , youtube id is the 'acaexefeP7o' )
|
1 |
+
Version: 1.0.13
|
2 |
|
3 |
|
4 |
|
5 |
Usage:
|
6 |
|
7 |
Copy and paste wd library into your plugin folder.
|
8 |
+
add_action('init', array($this, 'init_free_users_lib'), 8);
|
9 |
+
public function init_free_users_lib() {
|
10 |
+
add_filter('tenweb_free_users_lib_path', array($this, 'tenweb_lib_path'));
|
11 |
+
}
|
12 |
+
|
13 |
+
public function tenweb_lib_path($path) {
|
14 |
+
// The version of WD Lib
|
15 |
+
$version = '1.1.0';
|
16 |
+
if (!isset($path['version']) || version_compare($path['version'], $version) === -1) {
|
17 |
+
$path['version'] = $version;
|
18 |
+
$path['path'] = $this->plugin_dir;
|
19 |
+
}
|
20 |
+
return $path;
|
21 |
+
}
|
22 |
+
|
23 |
+
In your plugin main file check if library main TenWebLib class doesn't exist, include it
|
24 |
+
if (!class_exists("TenWebLib")) {
|
25 |
+
$plugin_dir = apply_filters('tenweb_free_users_lib_path', array('version' => '1.1.0', 'path' => $this->plugin_dir));
|
26 |
+
require_once($plugin_dir['path'] . '/wd/start.php');
|
27 |
+
}
|
28 |
|
29 |
Then call dorado_web_init($options) function.
|
30 |
$options = array (
|
47 |
),
|
48 |
...
|
49 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
"video_youtube_id" => "your plugin youtube video id", // e.g. https://www.youtube.com/watch?v=acaexefeP7o youtube id is the acaexefeP7o
|
51 |
+
"plugin_wd_url" => "https://10web.io/plugins/your plugin",
|
52 |
"plugin_wd_demo_link" => "http://wpdemo.web-dorado.com/your plugin",
|
53 |
"plugin_wd_addons_link" => "https://web-dorado.com/products/your plugin addons",
|
54 |
"after_subscribe" => "after subsribe page", // this can be plagin overview page or set up page admin.php?page=overview_YOUR_PREFIX
|
87 |
....
|
88 |
)
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
91 |
video_youtube_id - (type string) if your plugin has video, video's id, else null
|
92 |
( e.g. for https://www.youtube.com/watch?v=acaexefeP7o , youtube id is the 'acaexefeP7o' )
|
wd/assets/css/deactivate_popup.css
CHANGED
@@ -1,8 +1,4 @@
|
|
1 |
-
.
|
2 |
-
display: none;
|
3 |
-
}
|
4 |
-
|
5 |
-
.wd-opacity{
|
6 |
position: fixed;
|
7 |
top: 0px;
|
8 |
bottom: 0px;
|
@@ -14,7 +10,7 @@
|
|
14 |
display: none;
|
15 |
}
|
16 |
|
17 |
-
.
|
18 |
position: fixed;
|
19 |
top: 0px;
|
20 |
bottom: 0px;
|
@@ -30,24 +26,24 @@
|
|
30 |
}
|
31 |
|
32 |
|
33 |
-
.
|
34 |
border-bottom: 1px solid #ccc;
|
35 |
padding: 18px 40px;
|
36 |
font-size: 16px;
|
37 |
background: rgba(221, 221, 221, 0.14);
|
38 |
}
|
39 |
-
.
|
40 |
padding: 20px 40px;
|
41 |
border-bottom: 1px solid #ccc;
|
42 |
}
|
43 |
-
.
|
44 |
width: 220px;
|
45 |
}
|
46 |
-
.
|
47 |
width: 100%;
|
48 |
}
|
49 |
|
50 |
-
.
|
51 |
position: absolute;
|
52 |
bottom: 19px;
|
53 |
right: 19px
|
@@ -57,27 +53,23 @@
|
|
57 |
margin-top: 20px;
|
58 |
}
|
59 |
|
60 |
-
.
|
61 |
background: rgba(204, 204, 204, 0.18);
|
62 |
padding: 15px;
|
63 |
margin: 14px 0px 5px;
|
64 |
}
|
65 |
-
.
|
66 |
height: 583px !important;
|
67 |
}
|
68 |
|
69 |
-
.
|
70 |
height: 426px !important
|
71 |
}
|
72 |
|
73 |
-
.
|
74 |
-
height: 479px !important
|
75 |
-
}
|
76 |
-
|
77 |
-
.wd-popup-active4{
|
78 |
height: 340px !important
|
79 |
}
|
80 |
-
.
|
81 |
width: 100%;
|
82 |
height: 100%;
|
83 |
background: #D9D9D9;
|
@@ -87,7 +79,7 @@
|
|
87 |
display: none;
|
88 |
}
|
89 |
|
90 |
-
.
|
91 |
position: absolute;
|
92 |
top: 0;
|
93 |
left: 0;
|
@@ -97,7 +89,7 @@
|
|
97 |
z-index: 63;
|
98 |
}
|
99 |
|
100 |
-
.
|
101 |
background-image: url(img/close.svg);
|
102 |
background-repeat: no-repeat;
|
103 |
background-size: 16px;
|
1 |
+
.tenweb-opacity{
|
|
|
|
|
|
|
|
|
2 |
position: fixed;
|
3 |
top: 0px;
|
4 |
bottom: 0px;
|
10 |
display: none;
|
11 |
}
|
12 |
|
13 |
+
.tenweb-deactivate-popup{
|
14 |
position: fixed;
|
15 |
top: 0px;
|
16 |
bottom: 0px;
|
26 |
}
|
27 |
|
28 |
|
29 |
+
.tenweb-deactivate-popup-header{
|
30 |
border-bottom: 1px solid #ccc;
|
31 |
padding: 18px 40px;
|
32 |
font-size: 16px;
|
33 |
background: rgba(221, 221, 221, 0.14);
|
34 |
}
|
35 |
+
.tenweb-deactivate-popup-body{
|
36 |
padding: 20px 40px;
|
37 |
border-bottom: 1px solid #ccc;
|
38 |
}
|
39 |
+
.tenweb-deactivate-popup-body input[type=text]{
|
40 |
width: 220px;
|
41 |
}
|
42 |
+
.tenweb-deactivate-popup-body textarea{
|
43 |
width: 100%;
|
44 |
}
|
45 |
|
46 |
+
.tenweb-btns{
|
47 |
position: absolute;
|
48 |
bottom: 19px;
|
49 |
right: 19px
|
53 |
margin-top: 20px;
|
54 |
}
|
55 |
|
56 |
+
.tenweb-additional-active{
|
57 |
background: rgba(204, 204, 204, 0.18);
|
58 |
padding: 15px;
|
59 |
margin: 14px 0px 5px;
|
60 |
}
|
61 |
+
.tenweb-popup-active1{
|
62 |
height: 583px !important;
|
63 |
}
|
64 |
|
65 |
+
.tenweb-popup-active2{
|
66 |
height: 426px !important
|
67 |
}
|
68 |
|
69 |
+
.tenweb-popup-active4{
|
|
|
|
|
|
|
|
|
70 |
height: 340px !important
|
71 |
}
|
72 |
+
.tenweb-deactivate-popup-opacity{
|
73 |
width: 100%;
|
74 |
height: 100%;
|
75 |
background: #D9D9D9;
|
79 |
display: none;
|
80 |
}
|
81 |
|
82 |
+
.tenweb-deactivate-popup-opacity .tenweb-img-loader{
|
83 |
position: absolute;
|
84 |
top: 0;
|
85 |
left: 0;
|
89 |
z-index: 63;
|
90 |
}
|
91 |
|
92 |
+
.tenweb-deactivate-popup-close-btn{
|
93 |
background-image: url(img/close.svg);
|
94 |
background-repeat: no-repeat;
|
95 |
background-size: 16px;
|
wd/assets/css/overview.css
CHANGED
@@ -1,462 +1,472 @@
|
|
1 |
-
|
2 |
-
.wd-table{
|
3 |
-
display: table;
|
4 |
-
width: 100%;
|
5 |
-
}
|
6 |
-
.wd-cell{
|
7 |
-
display: table-cell;
|
8 |
-
}
|
9 |
-
.wd-valign-top{
|
10 |
-
vertical-align: top;
|
11 |
-
}
|
12 |
-
.wd-valign-middle{
|
13 |
-
vertical-align: middle;
|
14 |
-
}
|
15 |
-
.wd-valign-bottom{
|
16 |
-
vertical-align: bottom;
|
17 |
-
}
|
18 |
-
.wd-text-right{
|
19 |
-
text-align: right;
|
20 |
-
}
|
21 |
-
.wd-text-center{
|
22 |
-
text-align: center;
|
23 |
-
}
|
24 |
-
.hide{
|
25 |
display: none;
|
26 |
}
|
27 |
-
|
28 |
-
|
29 |
-
outline: none !important;
|
30 |
-
box-shadow: none !important;
|
31 |
-
}
|
32 |
-
|
33 |
-
/*end general */
|
34 |
-
.wd-video_container{
|
35 |
-
text-align: center;
|
36 |
-
}
|
37 |
-
.overview_welcome{
|
38 |
-
background: url(img/welcome_bg.png) no-repeat;
|
39 |
-
margin: 21px 0px;
|
40 |
-
background-size: 100% 100%;
|
41 |
-
line-height: 28px;
|
42 |
-
}
|
43 |
-
.overview_welcome .wd-cell{
|
44 |
-
padding: 15px;
|
45 |
}
|
46 |
-
|
47 |
-
|
48 |
}
|
49 |
|
50 |
-
.
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
margin-bottom: 15px;
|
55 |
-
color: #424141;
|
56 |
-
}
|
57 |
-
.overview_welcome img{
|
58 |
-
width: 120px;
|
59 |
-
padding-right: 100px;
|
60 |
-
padding-left: 25px;
|
61 |
-
}
|
62 |
-
.overview_wrap{
|
63 |
-
width: 935px;
|
64 |
-
background: #fff;
|
65 |
-
}
|
66 |
-
.overview_welcome .overview_welcome_text{
|
67 |
-
font-size: 15px;
|
68 |
-
color: #424141;
|
69 |
-
}
|
70 |
-
.overview_tabs:after, .deals_content:after, .deal_desc_footer:after{
|
71 |
-
content: "";
|
72 |
-
display: table;
|
73 |
-
clear: both;
|
74 |
-
}
|
75 |
-
.overview_tabs li{
|
76 |
-
float: left;
|
77 |
-
width: 16.666%;
|
78 |
-
}
|
79 |
-
|
80 |
-
.overview_tabs li a{
|
81 |
-
text-decoration: none !important;
|
82 |
-
color: #000;
|
83 |
-
background: #D6D6D6;
|
84 |
-
background: -webkit-linear-gradient(#D6D6D6, #D7D7D7, #D6D6D6); /* For Safari 5.1 to 6.0 */
|
85 |
-
background: -o-linear-gradient(#D6D6D6, #D7D7D7, #D6D6D6); /* For Opera 11.1 to 12.0 */
|
86 |
-
background: -moz-linear-gradient(#D6D6D6, #D7D7D7, #D6D6D6); /* For Firefox 3.6 to 15 */
|
87 |
-
background: linear-gradient(#D6D6D6, #D7D7D7, #D6D6D6); /* Standard syntax */
|
88 |
-
text-transform: uppercase;
|
89 |
-
display: block;
|
90 |
-
padding: 7px 10px;
|
91 |
-
text-align: center;
|
92 |
-
font-weight: bold;
|
93 |
-
border-top: 4px solid #F1F1F1;
|
94 |
-
position: relative;
|
95 |
-
top: -4px;
|
96 |
-
}
|
97 |
-
.overview_tabs li a:hover,.overview_tabs li a:active, .overview_tabs li a:focus, .overview_tab_active{
|
98 |
-
background: #fff !important;
|
99 |
-
border-top: 4px solid #2A495F !important;
|
100 |
-
|
101 |
-
}
|
102 |
-
#welcome, #user_guide, #support, .deals_content{
|
103 |
-
padding: 15px 10px;
|
104 |
-
background: #fff;
|
105 |
-
}
|
106 |
-
.plugin_feature_title{
|
107 |
-
font-size: 19px;
|
108 |
-
}
|
109 |
-
.more_features_wrap{
|
110 |
-
margin-top: 25px;
|
111 |
-
text-align: right;
|
112 |
-
}
|
113 |
-
.more_features, .more_features:hover, .more_features:focus{
|
114 |
-
color: #fff;
|
115 |
-
background: #00384F;
|
116 |
-
padding: 3px 15px;
|
117 |
-
text-decoration: none;
|
118 |
-
}
|
119 |
-
.user_guide_item{
|
120 |
-
margin-bottom: 19px;
|
121 |
}
|
122 |
-
.
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
margin-bottom: 5px;
|
127 |
-
text-decoration: none;
|
128 |
-
}
|
129 |
-
.user_guide_titles, .user_guide_titles:hover, .user_guide_titles:focus{
|
130 |
-
color: #192D3B;
|
131 |
-
text-decoration: none;
|
132 |
-
}
|
133 |
-
.user_guide_demo, .user_guide_plugin, .user_guide_support_forum, .user_guide_addons, .user_guide_faq,
|
134 |
-
.user_guide_demo:hover, .user_guide_plugin:hover, .user_guide_support_forum:hover, .user_guide_addons:hover, .user_guide_faq:hover{
|
135 |
-
background-color: #F5F5F5;
|
136 |
background-repeat: no-repeat;
|
137 |
-
background-position: right -4px center;
|
138 |
-
border-top-left-radius: 25px;
|
139 |
-
border-bottom-left-radius: 25px;
|
140 |
-
padding: 3px 23px 3px 16px;
|
141 |
-
width: 144px;
|
142 |
-
font-weight: bold;
|
143 |
-
text-transform: uppercase;
|
144 |
-
color: #192D3B;
|
145 |
-
margin-bottom: 7px;
|
146 |
-
display: block;
|
147 |
-
text-decoration: none;
|
148 |
}
|
149 |
-
.
|
150 |
-
|
151 |
}
|
152 |
-
.
|
153 |
-
|
|
|
154 |
}
|
155 |
-
.
|
156 |
-
|
|
|
157 |
}
|
158 |
-
.
|
159 |
-
|
160 |
}
|
161 |
-
.
|
162 |
-
|
|
|
|
|
163 |
}
|
164 |
-
|
165 |
-
#support .wd-support-main{
|
166 |
-
width: 800px;
|
167 |
-
margin: 0 auto;
|
168 |
-
font-size: 16px;
|
169 |
-
text-align: center;
|
170 |
-
margin-bottom: 15px;
|
171 |
-
|
172 |
-
}
|
173 |
-
.wd-overview-site-deatils{
|
174 |
-
width: 800px;
|
175 |
-
background: #FBFBFB;
|
176 |
-
padding: 10px;
|
177 |
-
margin: 0 auto;
|
178 |
-
}
|
179 |
-
.wd-overview-site-deatils h2, .wd-overview-site-deatils p{
|
180 |
-
text-align: center;
|
181 |
-
}
|
182 |
-
.wd-overview-site-deatils p{
|
183 |
-
font-size: 16px;
|
184 |
-
}
|
185 |
-
.contact_us, .contact_us:hover, .contact_us:focus{
|
186 |
-
display: block;
|
187 |
-
background: #27475D;
|
188 |
-
color: #fff;
|
189 |
-
text-decoration: none;
|
190 |
-
width: 173px;
|
191 |
-
padding: 8px 0px;
|
192 |
-
text-align: center;
|
193 |
-
margin-bottom: 5px;
|
194 |
-
font-size: 16px;
|
195 |
-
margin-left: 8px;
|
196 |
-
border: 1px solid #B7B7B7;
|
197 |
text-transform: uppercase;
|
|
|
|
|
|
|
|
|
|
|
198 |
}
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
}
|
203 |
-
.wd-site-deatils{
|
204 |
-
padding: 23px;
|
205 |
-
background: #f1f1f1;
|
206 |
-
box-sizing: border-box;
|
207 |
}
|
208 |
-
.
|
209 |
-
|
210 |
-
}
|
211 |
-
.contact_us{
|
212 |
-
margin-left: auto !important;
|
213 |
-
margin-right: auto;
|
214 |
-
margin-top: 10px;
|
215 |
-
}
|
216 |
-
#wd-copy{
|
217 |
-
display: block;
|
218 |
-
background: #27475D;
|
219 |
-
color: #fff;
|
220 |
-
padding: 5px 8px;
|
221 |
-
text-align: center;
|
222 |
-
margin-bottom: 5px;
|
223 |
-
font-size: 14px;
|
224 |
-
border: 1px solid #B7B7B7;
|
225 |
-
cursor: pointer;
|
226 |
-
}
|
227 |
-
#plugins{
|
228 |
-
padding-bottom: 15px;
|
229 |
-
background: #fff;
|
230 |
}
|
231 |
|
232 |
-
.
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
}
|
238 |
-
.
|
239 |
-
|
240 |
-
height: 241px;
|
241 |
}
|
242 |
-
.
|
243 |
-
|
|
|
|
|
|
|
|
|
|
|
244 |
}
|
245 |
-
.
|
246 |
-
|
247 |
}
|
248 |
-
.
|
249 |
-
|
250 |
}
|
251 |
-
.
|
252 |
-
|
253 |
-
|
|
|
254 |
}
|
255 |
-
.
|
256 |
-
|
257 |
-
width:
|
|
|
|
|
|
|
|
|
|
|
258 |
}
|
259 |
-
.
|
260 |
-
|
261 |
}
|
262 |
-
|
263 |
-
|
264 |
display: inline-block;
|
|
|
265 |
}
|
266 |
-
.
|
267 |
-
|
268 |
-
font-weight: bold;
|
269 |
-
line-height: 55px;
|
270 |
-
text-align: center;
|
271 |
text-transform: uppercase;
|
|
|
272 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
.deals_secondary_title{
|
278 |
-
font-size: 30px;
|
279 |
}
|
|
|
|
|
|
|
280 |
|
281 |
-
|
282 |
-
|
|
|
283 |
}
|
|
|
|
|
|
|
284 |
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
-webkit-transform: rotate(-27deg);
|
289 |
-
transform: rotate(-30deg);
|
290 |
-
font-weight: bold;
|
291 |
-
font-size: 39px;
|
292 |
-
color: #E5682E;
|
293 |
-
text-transform: uppercase;
|
294 |
-
}
|
295 |
-
.deals_header_plugins .deals_save{
|
296 |
-
bottom: 37px;
|
297 |
-
}
|
298 |
-
.deals_header_themes .deals_save{
|
299 |
-
bottom: 76px;
|
300 |
-
}
|
301 |
-
.deal_block{
|
302 |
-
width: 31.2%;
|
303 |
-
display: inline-block;
|
304 |
-
vertical-align: top;
|
305 |
-
margin: 5px;
|
306 |
-
}
|
307 |
-
.deal_title{
|
308 |
-
text-align: center;
|
309 |
-
text-transform: uppercase;
|
310 |
-
font-size: 20px;
|
311 |
-
background: #FAFAFA;
|
312 |
-
padding: 10px 5px;
|
313 |
-
line-height: 23px;
|
314 |
}
|
315 |
-
.
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
}
|
323 |
-
.deal_desc p{
|
324 |
-
margin-bottom: 15px;
|
325 |
}
|
|
|
|
|
|
|
326 |
|
327 |
-
|
328 |
-
|
|
|
329 |
}
|
330 |
-
.
|
331 |
-
|
332 |
-
|
333 |
-
|
|
|
|
|
|
|
334 |
}
|
335 |
-
.
|
336 |
-
background: #
|
337 |
-
color: #
|
338 |
text-transform: uppercase;
|
339 |
-
|
|
|
|
|
|
|
|
|
340 |
display: inline-block;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
}
|
342 |
-
.
|
343 |
-
background:
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
}
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
text-decoration: none;
|
354 |
-
padding: 4px 16px;
|
355 |
-
display: inline-block;
|
356 |
-
margin-top: 10px;
|
357 |
-
border-radius: 13px;
|
358 |
-
text-transform: uppercase;
|
359 |
}
|
360 |
|
361 |
-
.
|
362 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
display: inline-block;
|
364 |
-
color: transparent;
|
365 |
-
font-size: 21px;
|
366 |
-
}
|
367 |
-
|
368 |
-
.stars-container:before {
|
369 |
-
position: absolute;
|
370 |
-
top: 0;
|
371 |
-
left: 0;
|
372 |
-
content: '★★★★★';
|
373 |
-
color: #F4AB7F;
|
374 |
-
}
|
375 |
-
|
376 |
-
.stars-container:after {
|
377 |
-
position: absolute;
|
378 |
-
top: 0;
|
379 |
-
left: 0;
|
380 |
-
content: '★★★★★';
|
381 |
-
color: #F4762A;
|
382 |
-
overflow: hidden;
|
383 |
}
|
384 |
|
385 |
-
.
|
386 |
-
|
387 |
-
text-align: center;
|
388 |
-
}
|
389 |
-
.get_all_deals a, .get_all_deals a:hover, .get_all_deals a:active, .get_all_deals a:focus {
|
390 |
-
color: #fff !important;
|
391 |
-
background: #E97025;
|
392 |
-
text-decoration: none;
|
393 |
-
padding: 8px 21px;
|
394 |
-
display: inline-block;
|
395 |
-
margin-top: 10px;
|
396 |
text-transform: uppercase;
|
397 |
-
border: 2px solid #D2631E;
|
398 |
-
font-size: 21px;
|
399 |
-
}
|
400 |
-
|
401 |
-
#themes{
|
402 |
-
border-top: 35px solid #F1F1F1;
|
403 |
-
padding-bottom: 15px;
|
404 |
-
}
|
405 |
-
|
406 |
-
.theme_block{
|
407 |
-
width: 48%;
|
408 |
-
margin: 5px;
|
409 |
-
border: 1px solid #ECE9E9;
|
410 |
-
float: left;
|
411 |
}
|
412 |
-
.
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
|
|
|
|
|
|
418 |
}
|
419 |
-
|
420 |
-
|
421 |
-
.notice_wrap{
|
422 |
-
padding: 15px;
|
423 |
-
border: 1px solid #C4C4C4;
|
424 |
-
width: 98%;
|
425 |
-
margin: 10px auto;
|
426 |
-
box-sizing: border-box;
|
427 |
-
|
428 |
}
|
429 |
-
.
|
430 |
-
|
431 |
-
|
432 |
-
margin-bottom: 17px;
|
433 |
-
font-size: 20px;
|
434 |
-
display: block;
|
435 |
}
|
436 |
-
|
437 |
-
|
438 |
-
font-size: 15px;
|
439 |
}
|
440 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
441 |
|
442 |
-
.
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
457 |
}
|
458 |
-
|
459 |
-
.wd-start-using-button{
|
460 |
-
margin-right:10px;
|
461 |
-
float: right;
|
462 |
-
}
|
1 |
+
#wpfooter {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
display: none;
|
3 |
}
|
4 |
+
#wpbody-content > div:not(.tenweb_overview){
|
5 |
+
display:none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
}
|
7 |
+
#wpbody-content {
|
8 |
+
padding-bottom: 0;
|
9 |
}
|
10 |
|
11 |
+
.tenweb_overview .tenweb_header{
|
12 |
+
background:url(../img/slide-1366.jpg);
|
13 |
+
background-size: cover;
|
14 |
+
background-repeat: no-repeat;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
}
|
16 |
+
.tenweb_overview .tenweb_footer.without_demo,
|
17 |
+
.tenweb_overview .tenweb_how_it_works{
|
18 |
+
background:url(../img/how_it_works.png);
|
19 |
+
background-size: cover;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
background-repeat: no-repeat;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
22 |
+
.tenweb_overview {
|
23 |
+
margin-left: -20px;
|
24 |
}
|
25 |
+
.tenweb_overview .tenweb_plugin_features,
|
26 |
+
.tenweb_overview .tenweb_footer{
|
27 |
+
background:#ffffff;
|
28 |
}
|
29 |
+
.tenweb_overview .tenweb_plugin_features *,
|
30 |
+
.tenweb_overview .tenweb_footer *{
|
31 |
+
color:#2c3144;
|
32 |
}
|
33 |
+
.tenweb_overview .tenweb_how_it_works .container{
|
34 |
+
padding:60px 0 52px;
|
35 |
}
|
36 |
+
.tenweb_overview .tenweb_footer.without_demo *,
|
37 |
+
.tenweb_overview .tenweb_how_it_works *,
|
38 |
+
.tenweb_overview .tenweb_header *{
|
39 |
+
color:#fff;
|
40 |
}
|
41 |
+
.tenweb_overview h2 {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
text-transform: uppercase;
|
43 |
+
font-size: 24px;
|
44 |
+
letter-spacing: 1px;
|
45 |
+
margin:0;
|
46 |
+
padding: 0 0 20px;
|
47 |
+
line-height: 1.4em;
|
48 |
}
|
49 |
+
h3.more_features {
|
50 |
+
font-size: 21px;
|
51 |
+
text-transform: uppercase;
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
+
img.plugin_logo {
|
54 |
+
margin-bottom: 18px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
}
|
56 |
|
57 |
+
.tenweb_overview .and {
|
58 |
+
font-size: 50px;
|
59 |
+
margin: 17px 14px 19px;
|
60 |
+
line-height: 1;
|
61 |
+
font-weight: lighter;
|
62 |
+
}
|
63 |
+
.tenweb_overview .and.circle {
|
64 |
+
font-size: 50px;
|
65 |
+
margin: 15px 14px;
|
66 |
+
line-height: 1.3;
|
67 |
+
font-weight: lighter;
|
68 |
+
display: inline-block;
|
69 |
+
width: 70px;
|
70 |
+
height: 70px;
|
71 |
+
box-shadow: 0 0 8px rgba(0,0,0,.2);
|
72 |
+
border-radius: 35px;
|
73 |
}
|
74 |
+
.tenweb_plugin_features .container {
|
75 |
+
padding: 30px 0;
|
|
|
76 |
}
|
77 |
+
.tenweb_overview a.more {
|
78 |
+
text-transform: uppercase;
|
79 |
+
letter-spacing: 1px;
|
80 |
+
font-size: 16px;
|
81 |
+
line-height: 1;
|
82 |
+
display: inline-block;
|
83 |
+
text-decoration: none;
|
84 |
}
|
85 |
+
.tenweb_overview a.more:not(.blue) {
|
86 |
+
margin-top: 23px;
|
87 |
}
|
88 |
+
.tenweb_overview a.more.blue {
|
89 |
+
color:#397cf1;
|
90 |
}
|
91 |
+
.tenweb_clear:after{
|
92 |
+
content:"";
|
93 |
+
display:table;
|
94 |
+
clear:both;
|
95 |
}
|
96 |
+
.tenweb_overview .container{
|
97 |
+
width:1190px;
|
98 |
+
max-width:100%;
|
99 |
+
margin:0 auto;
|
100 |
+
text-align:center;
|
101 |
+
box-sizing: border-box;
|
102 |
+
-webkit-box-sizing: border-box;
|
103 |
+
-moz-box-sizing: border-box;
|
104 |
}
|
105 |
+
.plan_features.tenweb_clear {
|
106 |
+
font-size: 0;
|
107 |
}
|
108 |
+
.tenweb_overview .plan_feature {
|
109 |
+
width: 24%;
|
110 |
display: inline-block;
|
111 |
+
margin: 0 .5% 30px;
|
112 |
}
|
113 |
+
.tenweb_overview .plan_feature h3 {
|
114 |
+
font-size: 17px;
|
|
|
|
|
|
|
115 |
text-transform: uppercase;
|
116 |
+
margin: 18px 0;
|
117 |
}
|
118 |
+
.tenweb_overview .plan_feature p {
|
119 |
+
font-size: 15px;
|
120 |
+
overflow: hidden;
|
121 |
+
display: -webkit-box;
|
122 |
+
-webkit-line-clamp: 3;
|
123 |
+
-webkit-box-orient: vertical;
|
124 |
+
text-overflow: ellipsis;
|
125 |
+
line-height: 1.4em;
|
126 |
+
}
|
127 |
+
.tenweb_overview .plan_feature .logo {
|
128 |
+
background: url(../img/header.svg);
|
129 |
+
margin:0 auto;
|
130 |
+
}
|
131 |
+
.tenweb_overview .plan_feature.image_optimizer .logo {
|
132 |
+
background-size: 191px;
|
133 |
+
background-position: 0px -55px;
|
134 |
+
width: 68px;
|
135 |
+
height: 51px;
|
136 |
+
margin: 0 auto 35px;
|
137 |
+
}
|
138 |
+
.tenweb_overview .plan_feature.pro_plugins .logo {
|
139 |
+
background-size: 194px;
|
140 |
+
background-position: 0px -118px;
|
141 |
+
width: 55px;
|
142 |
+
height: 68px;
|
143 |
+
}
|
144 |
+
.tenweb_overview .plan_feature.dashboard .logo {
|
145 |
+
background-size: 195px;
|
146 |
+
background-position: 0px -196px;
|
147 |
|
148 |
+
width: 68px;
|
149 |
+
height: 56px;
|
150 |
+
margin: 0 auto 30px;
|
|
|
|
|
151 |
}
|
152 |
+
.tenweb_overview .plan_feature.pro_themes .logo {
|
153 |
+
background-size: 190px;
|
154 |
+
background-position: 0px -254px;
|
155 |
|
156 |
+
width: 57px;
|
157 |
+
height: 58px;
|
158 |
+
margin: 0 auto 28px;
|
159 |
}
|
160 |
+
.tenweb_overview .plan_feature.seo .logo {
|
161 |
+
background-size: 200px;
|
162 |
+
background-position: 0px -338px;
|
163 |
|
164 |
+
width: 61px;
|
165 |
+
height: 63px;
|
166 |
+
margin: 0 auto 23px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
}
|
168 |
+
.tenweb_overview .plan_feature.security .logo {
|
169 |
+
background-size: 194px;
|
170 |
+
background-position: 0px -398px;
|
171 |
+
|
172 |
+
width: 55px;
|
173 |
+
height: 62px;
|
174 |
+
margin: 0 auto 24px;
|
|
|
|
|
|
|
175 |
}
|
176 |
+
.tenweb_overview .plan_feature.backup .logo {
|
177 |
+
background-size: 250px;
|
178 |
+
background-position: 0px -602px;
|
179 |
|
180 |
+
width: 100px;
|
181 |
+
height: 60px;
|
182 |
+
margin: 0 auto 26px;
|
183 |
}
|
184 |
+
.tenweb_overview .plan_feature.hosting .logo {
|
185 |
+
background-size: 196px;
|
186 |
+
background-position: 0px -527px;
|
187 |
+
|
188 |
+
width: 64px;
|
189 |
+
height: 64px;
|
190 |
+
margin: 0 auto 22px;
|
191 |
}
|
192 |
+
.tenweb_overview a.button {
|
193 |
+
background: #367bf2;
|
194 |
+
color: #ffffff;
|
195 |
text-transform: uppercase;
|
196 |
+
letter-spacing: 1px;
|
197 |
+
font-size: 16px;
|
198 |
+
padding: 16px 30px;
|
199 |
+
line-height: 1;
|
200 |
+
border-radius: 2px;
|
201 |
display: inline-block;
|
202 |
+
border: 0 !important;
|
203 |
+
box-shadow: none;
|
204 |
+
height: auto;
|
205 |
+
}
|
206 |
+
.tenweb_overview a.button.transparent {
|
207 |
+
background: transparent !important;
|
208 |
+
color: #ffffff;
|
209 |
+
border: 1px solid #ffffff !important;
|
210 |
+
width: 160px;
|
211 |
+
margin: 0 5px;
|
212 |
+
}
|
213 |
+
.tenweb_overview a.button:hover {
|
214 |
+
background: #367bf2;
|
215 |
+
color: #ffffff;
|
216 |
+
box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
|
217 |
+
}
|
218 |
+
.tenweb_overview .tenweb_header .container_top a.button {
|
219 |
+
font-size: 18px;
|
220 |
+
padding: 13px 30px;
|
221 |
+
display:table-cell;
|
222 |
+
}
|
223 |
+
.tenweb_overview .tenweb_logo {
|
224 |
+
float: left;
|
225 |
+
width: 197px;
|
226 |
}
|
227 |
+
.tenweb_overview .tenweb_logo a div {
|
228 |
+
background: url(../img/header.svg);
|
229 |
+
height: 53px;
|
230 |
+
background-size: 196px;
|
231 |
+
background-position: 0 0;
|
232 |
+
background-repeat: no-repeat;
|
233 |
}
|
234 |
+
.tenweb_overview .tenweb_header_right {
|
235 |
+
float: right;
|
236 |
+
text-align: right;
|
237 |
+
display: table;
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
}
|
239 |
|
240 |
+
.tenweb_overview .inline-block.header_text {
|
241 |
+
text-transform: uppercase;
|
242 |
+
font-size: 15px;
|
243 |
+
line-height: 1.5;
|
244 |
+
padding-right: 10px;
|
245 |
+
letter-spacing: 0;
|
246 |
+
margin-top: 2px;
|
247 |
+
width: calc(100% - 180px);
|
248 |
+
display:table-cell;
|
249 |
+
vertical-align:middle;
|
250 |
+
}
|
251 |
+
.tenweb_overview .tenweb_header_divider {
|
252 |
+
height:18px;
|
253 |
+
background:#fff;
|
254 |
+
}
|
255 |
+
.tenweb_overview .container_top {
|
256 |
+
padding:24px 15px;
|
257 |
+
}
|
258 |
+
.tenweb_overview .container_bottom {
|
259 |
+
padding: 50px 0 40px;
|
260 |
+
}
|
261 |
+
.tenweb_overview .plugin_features.tenweb_clear {
|
262 |
+
margin-top: 40px;
|
263 |
+
}
|
264 |
+
.plugin_features .plugin_feature_logo{
|
265 |
+
height:54px;
|
266 |
+
}
|
267 |
+
.plugin_features .plugin_feature{
|
268 |
+
width: 31%;
|
269 |
+
margin: 0 1% 20px;
|
270 |
+
/*float: left;*/
|
271 |
display: inline-block;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
}
|
273 |
|
274 |
+
.plugin_features .plugin_feature h3 {
|
275 |
+
font-size: 18px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
text-transform: uppercase;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
}
|
278 |
+
.plugin_features .plugin_feature p {
|
279 |
+
font-size: 15px;
|
280 |
+
overflow: hidden;
|
281 |
+
display: -webkit-box;
|
282 |
+
-webkit-line-clamp: 3;
|
283 |
+
-webkit-box-orient: vertical;
|
284 |
+
text-overflow: ellipsis;
|
285 |
+
line-height: 1.4em;
|
286 |
+
min-height: 63px;
|
287 |
}
|
288 |
+
.tenweb_how_it_works a.button {
|
289 |
+
margin-top: 12px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
290 |
}
|
291 |
+
.plugin_features .plugin_feature img{
|
292 |
+
width:54px;
|
293 |
+
max-height: 100%;
|
|
|
|
|
|
|
294 |
}
|
295 |
+
.tenweb_footer {
|
296 |
+
padding: 70px 0 80px;
|
|
|
297 |
}
|
298 |
|
299 |
+
.tenweb_footer p {
|
300 |
+
font-size: 22px;
|
301 |
+
font-weight: lighter;
|
302 |
+
margin: 8px 0 20px;
|
303 |
+
}
|
304 |
+
.tenweb_footer h2 {
|
305 |
+
font-size: 31px;
|
306 |
+
}
|
307 |
+
.tenweb_overview img.plugin_logo {
|
308 |
+
width: 100px;
|
309 |
+
}
|
310 |
+
@media only screen and (min-width: 1620px){
|
311 |
+
.plugin_features .plugin_feature p {
|
312 |
+
font-size: 17px;
|
313 |
+
}
|
314 |
+
.tenweb_overview img.plugin_logo {
|
315 |
+
width: 130px;
|
316 |
+
}
|
317 |
+
.tenweb_overview .container{
|
318 |
+
width:1600px;
|
319 |
+
}
|
320 |
+
.tenweb_overview .inline-block.header_text{
|
321 |
+
font-size: 19px;
|
322 |
+
line-height: 1.2;
|
323 |
+
padding-right: 18px;
|
324 |
+
letter-spacing: .8px;
|
325 |
+
width: calc(100% - 193px);
|
326 |
+
margin-top: 0;
|
327 |
+
}
|
328 |
+
.tenweb_overview h2 {
|
329 |
+
font-size: 28px;
|
330 |
+
padding: 10px 0 20px;
|
331 |
+
}
|
332 |
+
.tenweb_overview .and {
|
333 |
+
font-size: 60px;
|
334 |
+
margin: 18px 14px;
|
335 |
+
}
|
336 |
+
.tenweb_overview .and.circle {
|
337 |
+
font-size: 60px;
|
338 |
+
margin: 20px 14px;
|
339 |
+
line-height: 1.4;
|
340 |
+
width: 90px;
|
341 |
+
height: 90px;
|
342 |
+
border-radius: 45px;
|
343 |
+
}
|
344 |
+
.tenweb_overview .plan_feature {
|
345 |
+
width: 23%;
|
346 |
+
display:inline-block;
|
347 |
+
margin: 0 1% 40px;
|
348 |
+
}
|
349 |
+
.tenweb_overview .plan_feature h3 {
|
350 |
+
font-size:20px;
|
351 |
+
}
|
352 |
+
.tenweb_overview .plan_feature p {
|
353 |
+
height: 72px;
|
354 |
+
font-size:16px;
|
355 |
+
}
|
356 |
+
.plugin_features .plugin_feature p{
|
357 |
+
font-size:18px;
|
358 |
+
height: 75px;
|
359 |
+
}
|
360 |
+
.plugin_features .plugin_feature h3{
|
361 |
+
font-size:20px;
|
362 |
+
}
|
363 |
+
.tenweb_footer h2{
|
364 |
+
font-size:37px;
|
365 |
+
}
|
366 |
+
.tenweb_footer p {
|
367 |
+
font-size: 24px;
|
368 |
+
}
|
369 |
+
.tenweb_overview .container_top {
|
370 |
+
padding: 29px 0;
|
371 |
+
}
|
372 |
+
}
|
373 |
+
@media only screen and (max-width: 1320px){
|
374 |
+
.plugin_features .plugin_feature,
|
375 |
+
.tenweb_overview .plan_feature {
|
376 |
+
width: 46%;
|
377 |
+
display: inline-block;
|
378 |
+
margin: 0 1.5% 10px;
|
379 |
+
}
|
380 |
+
.tenweb_footer h2 {
|
381 |
+
font-size: 26px;
|
382 |
+
}
|
383 |
+
.tenweb_footer p {
|
384 |
+
font-size: 20px;
|
385 |
+
line-height: 1.4em;
|
386 |
+
}
|
387 |
+
.tenweb_overview .container {
|
388 |
+
width: 99%;
|
389 |
+
}
|
390 |
+
.tenweb_overview .inline-block.header_text {
|
391 |
+
text-transform: uppercase;
|
392 |
+
font-size: 13px;
|
393 |
+
}
|
394 |
+
}
|
395 |
+
@media only screen and (max-width: 1200px){
|
396 |
|
397 |
+
.tenweb_overview .tenweb_header_right {
|
398 |
+
float: right;
|
399 |
+
text-align: right;
|
400 |
+
display: table;
|
401 |
+
width: calc(100% - 267px);
|
402 |
+
}
|
403 |
+
}
|
404 |
+
@media only screen and (max-width: 840px){
|
405 |
+
.tenweb_overview .inline-block.header_text {
|
406 |
+
display:block;
|
407 |
+
padding-right: 0;
|
408 |
+
margin-top: 10px;
|
409 |
+
width: 100%;
|
410 |
+
clear:both;
|
411 |
+
}
|
412 |
+
.tenweb_overview .tenweb_header .container_top a.button {
|
413 |
+
display:inline-block;
|
414 |
+
}
|
415 |
+
.tenweb_overview .tenweb_logo a div {
|
416 |
+
height: 37px;
|
417 |
+
background-size: 145px;
|
418 |
+
background-position: 0 0px;
|
419 |
+
}
|
420 |
+
.tenweb_overview .tenweb_logo {
|
421 |
+
float: left;
|
422 |
+
width: 150px;
|
423 |
+
}
|
424 |
+
.tenweb_overview {
|
425 |
+
margin-left: -10px;
|
426 |
+
}
|
427 |
+
.plugin_features .plugin_feature,
|
428 |
+
.tenweb_overview .plan_feature {
|
429 |
+
width: 88%;
|
430 |
+
margin: 0 auto 10px;
|
431 |
+
float: none;
|
432 |
+
}
|
433 |
+
.tenweb_overview .plan_feature p,
|
434 |
+
.plugin_features .plugin_feature p {
|
435 |
+
overflow: visible;
|
436 |
+
-webkit-line-clamp: none;
|
437 |
+
height: auto;
|
438 |
+
}
|
439 |
+
.tenweb_footer h2 {
|
440 |
+
font-size: 23px;
|
441 |
+
}
|
442 |
+
.tenweb_footer p {
|
443 |
+
font-size: 18px;
|
444 |
+
line-height: 1.4em;
|
445 |
+
}
|
446 |
+
.tenweb_overview .plugin_features.tenweb_clear {
|
447 |
+
margin-top: 20px;
|
448 |
+
}
|
449 |
+
.tenweb_footer {
|
450 |
+
padding: 50px 0 60px;
|
451 |
+
}
|
452 |
+
.tenweb_overview .tenweb_logo {
|
453 |
+
float: none;
|
454 |
+
width: 150px;
|
455 |
+
margin: 0 auto 10px;
|
456 |
+
}
|
457 |
+
.tenweb_overview .tenweb_header_right {
|
458 |
+
float: none;
|
459 |
+
width: 100%;
|
460 |
+
text-align: center;
|
461 |
+
}
|
462 |
+
.tenweb_overview .tenweb_header_right a.button {
|
463 |
+
float: none;
|
464 |
+
}
|
465 |
+
.tenweb_overview .inline-block.header_text {
|
466 |
+
float: none;
|
467 |
+
margin-top: 10px;
|
468 |
+
}
|
469 |
+
.tenweb_overview h2 {
|
470 |
+
font-size: 21px;
|
471 |
+
}
|
472 |
}
|
|
|
|
|
|
|
|
|
|
wd/assets/css/subscribe.css
CHANGED
@@ -1,114 +1,210 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
font-family: "Open Sans",sans-serif;
|
4 |
-
line-height: 1.4em;
|
5 |
-
min-width: 600px;
|
6 |
}
|
7 |
-
|
8 |
-
|
9 |
-
background: #fff;
|
10 |
-
border: 2px solid #E2E5EC;
|
11 |
-
width: 55%;
|
12 |
-
margin-top: 40px;
|
13 |
-
}
|
14 |
-
.wd-subscribe-content{
|
15 |
-
padding: 30px 92px;
|
16 |
}
|
17 |
-
|
18 |
-
|
19 |
}
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
-
.
|
25 |
-
|
26 |
-
font-weight: bold;
|
27 |
-
font-size: 52px;
|
28 |
-
padding: 0px 28px;
|
29 |
}
|
30 |
-
.
|
31 |
-
|
32 |
-
|
|
|
|
|
33 |
}
|
34 |
|
35 |
-
.
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
height:
|
40 |
-
|
|
|
|
|
|
|
|
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
}
|
43 |
-
.
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
display: inline-block;
|
46 |
-
background: url(img/skip.png) no-repeat;
|
47 |
-
width: 76px;
|
48 |
-
height: 59px;
|
49 |
}
|
50 |
-
.permissions{
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
-
.
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
display:none;
|
56 |
}
|
57 |
-
.list_item{
|
58 |
-
|
59 |
-
margin-bottom: 15px;
|
60 |
}
|
61 |
-
.
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
}
|
66 |
-
.
|
67 |
-
|
|
|
68 |
}
|
69 |
-
.
|
70 |
-
width:
|
|
|
|
|
|
|
71 |
}
|
72 |
-
.
|
73 |
-
|
74 |
-
float: right;
|
75 |
}
|
76 |
-
.
|
77 |
-
|
78 |
-
font-size: 13px;
|
79 |
}
|
80 |
-
.
|
81 |
-
|
82 |
-
width: 30px;
|
83 |
-
margin-top: 11px;
|
84 |
-
visibility: hidden;
|
85 |
}
|
86 |
-
.
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
padding: 2px;
|
105 |
-
font-weight: bold;
|
106 |
-
display: inline-block;
|
107 |
-
vertical-align: middle;
|
108 |
}
|
109 |
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
1 |
+
#wpfooter {
|
2 |
+
display: none;
|
|
|
|
|
|
|
3 |
}
|
4 |
+
#wpbody-content > div:not(.tenweb_subscribe){
|
5 |
+
display:none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
}
|
7 |
+
#wpbody-content {
|
8 |
+
padding-bottom: 0;
|
9 |
}
|
10 |
+
|
11 |
+
|
12 |
+
.tenweb_clear:after{
|
13 |
+
content:"";
|
14 |
+
display:table;
|
15 |
+
clear:both;
|
16 |
+
}
|
17 |
+
.tenweb_subscribe a.button {
|
18 |
+
background: #367bf2;
|
19 |
+
color: #ffffff;
|
20 |
+
text-transform: uppercase;
|
21 |
+
letter-spacing: 1px;
|
22 |
+
font-size: 16px;
|
23 |
+
padding: 16px 30px;
|
24 |
+
line-height: 1;
|
25 |
+
border-radius: 2px;
|
26 |
+
display: inline-block;
|
27 |
+
border: 0 !important;
|
28 |
+
box-shadow: none;
|
29 |
+
height: auto;
|
30 |
}
|
31 |
+
.tenweb_subscribe a:focus {
|
32 |
+
box-shadow:none;
|
|
|
|
|
|
|
33 |
}
|
34 |
+
.tenweb_subscribe a.button:active,
|
35 |
+
.tenweb_subscribe a.button:hover {
|
36 |
+
background: #367bf2;
|
37 |
+
color: #ffffff;
|
38 |
+
box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
|
39 |
}
|
40 |
|
41 |
+
.tenweb_subscribe a.more {
|
42 |
+
text-transform: uppercase;
|
43 |
+
letter-spacing: 1px;
|
44 |
+
font-size: 14px;
|
45 |
+
line-height: 1;
|
46 |
+
display: block;
|
47 |
+
text-decoration: none;
|
48 |
+
color: #4e4e4e;
|
49 |
+
margin-top: 9px;
|
50 |
+
}
|
51 |
|
52 |
+
.wd_loader{
|
53 |
+
vertical-align: top;
|
54 |
+
width: 30px;
|
55 |
+
margin-top: 11px;
|
56 |
+
display: none;
|
57 |
+
}
|
58 |
+
.tenweb_subscribe {
|
59 |
+
background: #ffffff;
|
60 |
+
box-shadow: 0 0 10px rgba(0,0,0,0.2);
|
61 |
+
width: calc(100% - 20px);
|
62 |
+
padding: 105px 20px 0;
|
63 |
+
margin: 20px 0 0 0;
|
64 |
+
box-sizing: border-box;
|
65 |
+
-webkit-box-sizing: border-box;
|
66 |
+
-moz-box-sizing: border-box;
|
67 |
+
text-align: center;
|
68 |
}
|
69 |
+
.tenweb_subscribe .texts h2 {
|
70 |
+
font-size:28px;
|
71 |
+
text-transform: uppercase;
|
72 |
+
margin: 26px 0 16px;
|
73 |
+
}
|
74 |
+
.tenweb_subscribe .texts h5 {
|
75 |
+
font-size:18px;
|
76 |
+
text-transform: uppercase;
|
77 |
+
margin: 6px 0;
|
78 |
+
line-height: 1.4em;
|
79 |
+
}
|
80 |
+
.tenweb_subscribe .texts p {
|
81 |
+
font-size:16px;
|
82 |
+
}
|
83 |
+
.tenweb_subscribe .texts .hi_there {
|
84 |
+
width:66px;
|
85 |
+
height:103px;
|
86 |
+
background: url(../img/allow-and-continue.png) no-repeat;
|
87 |
+
margin: 0 auto;
|
88 |
+
}
|
89 |
+
.tenweb_subscribe-content{
|
90 |
+
width: 960px;
|
91 |
+
max-width: 100%;
|
92 |
+
margin: 0 auto;
|
93 |
+
}
|
94 |
+
.tenweb_subscribe .permissions {
|
95 |
+
font-size: 16px;
|
96 |
+
cursor: pointer;
|
97 |
+
margin: 10px 0 30px;
|
98 |
+
position: relative;
|
99 |
display: inline-block;
|
|
|
|
|
|
|
100 |
}
|
101 |
+
.tenweb_subscribe .permissions:after {
|
102 |
+
content: "";
|
103 |
+
position: absolute;
|
104 |
+
width: 13px;
|
105 |
+
height: 13px;
|
106 |
+
background: url(../img/allow-and-continue.png) no-repeat;
|
107 |
+
background-position: 1px -237px;
|
108 |
+
right: -19px;
|
109 |
+
top: 2px;
|
110 |
+
transition:transform .2s;
|
111 |
+
}
|
112 |
+
.tenweb_subscribe .permissions.active:after {
|
113 |
+
content: "";
|
114 |
+
transform: rotateZ(-180deg);
|
115 |
+
-webkit-transform: rotateZ(-180deg);
|
116 |
+
-moz-transform: rotateZ(-180deg);
|
117 |
+
top: 3px;
|
118 |
}
|
119 |
+
.tenweb_subscribe .list_item {
|
120 |
+
width: 31%;
|
121 |
+
float: left;
|
122 |
+
box-shadow: 0 0 10px rgba(0,0,0,0.2);
|
123 |
+
margin-right: 3%;
|
124 |
+
padding: 20px 0;
|
125 |
+
box-sizing: border-box;
|
126 |
+
-webkit-box-sizing: border-box;
|
127 |
+
-moz-box-sizing: border-box;
|
128 |
+
}
|
129 |
+
.tenweb_subscribe .list{
|
130 |
display:none;
|
131 |
}
|
132 |
+
.tenweb_subscribe .list_item:last-child {
|
133 |
+
margin-right: 0;
|
|
|
134 |
}
|
135 |
+
.tenweb_subscribe .list.tenweb_clear {
|
136 |
+
max-width: 100%;
|
137 |
+
width: 580px;
|
138 |
+
margin: 0 auto 28px;
|
139 |
}
|
140 |
+
.tenweb_subscribe .list_text_wrap {
|
141 |
+
font-size: 12px;
|
142 |
+
font-weight: bold;
|
143 |
}
|
144 |
+
.tenweb_subscribe .list_logo {
|
145 |
+
width: 36px;
|
146 |
+
height:33px;
|
147 |
+
background: url(../img/allow-and-continue.png) no-repeat;
|
148 |
+
margin:0 auto 20px;
|
149 |
}
|
150 |
+
.tenweb_subscribe .user_info .list_logo {
|
151 |
+
background-position: 3px -110px;
|
|
|
152 |
}
|
153 |
+
.tenweb_subscribe .wp_info .list_logo {
|
154 |
+
background-position: 2px -153px;
|
|
|
155 |
}
|
156 |
+
.tenweb_subscribe .plugins_info .list_logo {
|
157 |
+
background-position: 6px -196px;
|
|
|
|
|
|
|
158 |
}
|
159 |
+
.tenweb_subscribe-footer * {
|
160 |
+
color: #afafaf;
|
161 |
+
}
|
162 |
+
.tenweb_footer-menu a {
|
163 |
+
font-size: 12px;
|
164 |
+
text-transform: uppercase;
|
165 |
+
letter-spacing: 1px;
|
166 |
+
text-decoration: none;
|
167 |
+
}
|
168 |
+
.tenweb_footer-menu li{
|
169 |
+
display:inline-block;
|
170 |
+
margin: 0 10px;
|
171 |
+
}
|
172 |
+
ul.tenweb_footer-menu.tenweb_clear {
|
173 |
+
padding: 18px 0 15px;
|
174 |
+
line-height: 1;
|
175 |
+
border-top: 1px solid #ececec;
|
176 |
+
margin: 16px 0 0;
|
|
|
|
|
|
|
|
|
177 |
}
|
178 |
|
179 |
+
.tenweb_subscribe-top-footer {
|
180 |
+
font-size: 13px;
|
181 |
+
color: #afafaf;
|
182 |
+
margin-top: 112px;
|
183 |
+
}
|
184 |
+
@media only screen and (min-width: 1620px){
|
185 |
+
.tenweb_subscribe-top-footer {
|
186 |
+
margin-top: 130px;
|
187 |
+
}
|
188 |
+
.tenweb_subscribe {
|
189 |
+
padding: 150px 20px 0;
|
190 |
+
}
|
191 |
+
}
|
192 |
+
@media only screen and (max-width: 768px){
|
193 |
+
.tenweb_subscribe {
|
194 |
+
width: calc(100% - 10px);
|
195 |
+
padding: 60px 20px 0;
|
196 |
+
}
|
197 |
+
.tenweb_subscribe-top-footer {
|
198 |
+
margin-top: 60px;
|
199 |
+
}
|
200 |
+
.tenweb_subscribe .list_item {
|
201 |
+
width: 100%;
|
202 |
+
float: none;
|
203 |
+
margin-right: 0;
|
204 |
+
padding: 20px 10px;
|
205 |
+
margin-bottom: 10px;
|
206 |
+
}
|
207 |
+
.tenweb_subscribe .list.tenweb_clear {
|
208 |
+
margin: 0 auto 15px;
|
209 |
+
}
|
210 |
}
|
wd/assets/img/allow-and-continue.png
ADDED
Binary file
|
wd/assets/img/header.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="190.51" height="655.4" viewBox="0 0 190.51 655.4"><defs><style>.cls-1{fill:#fff;}</style></defs><title>ICONS SPRITE</title><path class="cls-1" d="M35.4,147.3a20.82,20.82,0,0,1,9,2c-1-1-2-1.9-3.1-2.9.2-.2.4-.3.5-.4l10.3-10.3a2.85,2.85,0,0,0,.8-1.4,2.35,2.35,0,0,0-1.2-2.6,2.31,2.31,0,0,0-2.9.5l-9.9,9.9a7,7,0,0,0-.8,1c-3.8-3.8-7.4-7.4-11.2-11.1.1-.1.3-.2.4-.3l10.5-10.5a2.41,2.41,0,1,0-3.4-3.4l-6.3,6.3c-1.5,1.5-3,3.1-4.7,4.7-1.3-1.3-2.5-2.6-3.8-3.9l-.4.4c-2,2-4.1,4-6.1,6.1a17.89,17.89,0,0,0-4.9,17.8,47.31,47.31,0,0,0,2,5L0,164.4l5.3,5.4,10.3-10.3A22.47,22.47,0,0,1,35.4,147.3Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M34.5,149.8A16.5,16.5,0,1,0,51,166.3,16.52,16.52,0,0,0,34.5,149.8Zm0,31.6a15.1,15.1,0,1,1,15.1-15.1A15.15,15.15,0,0,1,34.5,181.4Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M29.6,165.9a2.65,2.65,0,0,0-1.9-.9,2.47,2.47,0,0,0-2.1.7,4.42,4.42,0,0,0-.8.9v-.7a5.39,5.39,0,0,1,.5-2.1,3,3,0,0,1,1.3-1.2,5.57,5.57,0,0,1,3-.3v-1h-1a4.67,4.67,0,0,0-3.7,1.4,7.11,7.11,0,0,0-1.2,4.5,6.05,6.05,0,0,0,.4,2.4,3.33,3.33,0,0,0,1.2,1.4,3.45,3.45,0,0,0,1.8.5,3.1,3.1,0,0,0,3.3-3.3A4,4,0,0,0,29.6,165.9Zm-1.1,3.9a1.68,1.68,0,0,1-1.4.6,1.9,1.9,0,0,1-1.5-.8,2.62,2.62,0,0,1-.5-1.7,1.61,1.61,0,0,1,.6-1.3,2,2,0,0,1,1.5-.6,1.68,1.68,0,0,1,1.4.6,2.46,2.46,0,0,1,.5,1.5A4.71,4.71,0,0,1,28.5,169.8Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M33,170.2a2.91,2.91,0,0,0,2.5,1.2,2.79,2.79,0,0,0,2.5-1.2,6.68,6.68,0,0,0,.8-3.9,7,7,0,0,0-.9-3.9,3.2,3.2,0,0,0-5,0,6.68,6.68,0,0,0-.8,3.9A6.59,6.59,0,0,0,33,170.2Zm.9-6.8a1.57,1.57,0,0,1,3,0,7.39,7.39,0,0,1,.4,3,7.7,7.7,0,0,1-.4,3,1.58,1.58,0,0,1-1.5,1.1,1.5,1.5,0,0,1-1.5-1.1,11.45,11.45,0,0,1,0-6Z" transform="translate(0 -0.7)"/><polygon class="cls-1" points="47.2 165.4 44.4 165.4 44.4 162.5 43.6 162.5 43.6 165.4 40.8 165.4 40.8 166.1 43.6 166.1 43.6 168.9 44.4 168.9 44.4 166.1 47.2 166.1 47.2 165.4"/><path class="cls-1" d="M33.3,247.9H10a2.89,2.89,0,0,1-2.4-1.1A32.6,32.6,0,0,1,.3,224a33.05,33.05,0,0,1,62.3-13.3A33.07,33.07,0,0,1,58.7,247a2.74,2.74,0,0,1-2.2.9Zm0-4.5H55.2a1.43,1.43,0,0,0,1.2-.6A28.53,28.53,0,0,0,27.8,198,28.58,28.58,0,0,0,5,223.4a27.78,27.78,0,0,0,5.3,19.3,1.51,1.51,0,0,0,1.4.7C18.8,243.3,26.1,243.4,33.3,243.4Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M29,233.2a3.14,3.14,0,0,0,2.9,2h0a3.17,3.17,0,0,0,2.5-1.2l.2-.3c.1-.1.2-.3.3-.4l3.1-3.8c2.1-2.5,4.2-5.1,6.3-7.6a1.57,1.57,0,0,0,0-2.2,1.61,1.61,0,0,0-1.1-.5,1.5,1.5,0,0,0-1.1.4L29.8,229.8A3.07,3.07,0,0,0,29,233.2Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M18.8,211.2a2.84,2.84,0,0,1-.9,1,1.72,1.72,0,0,1-1.4-.1,19.86,19.86,0,0,1-2.1-2,1.24,1.24,0,0,1,.1-1.7c.5-.5,1.1-.7,1.6-.3.8.7,1.6,1.5,2.4,2.3C18.7,210.6,18.7,210.8,18.8,211.2Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M52.8,209.1c-.1,1-2.4,3.3-3.3,3.2a2.1,2.1,0,0,1-1.1-.7,1.72,1.72,0,0,1,.1-1.4,9.47,9.47,0,0,1,2-2,1.69,1.69,0,0,1,1.4-.1C52.3,208.3,52.5,208.8,52.8,209.1Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M56.2,227.6H54.9a1.24,1.24,0,0,1-1.3-1.2,1.4,1.4,0,0,1,1.2-1.4,13.1,13.1,0,0,1,2.8,0,1.19,1.19,0,0,1,1.1,1.4,1.16,1.16,0,0,1-1.2,1.2Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M10.3,227.6H9.1a1.26,1.26,0,0,1-1.3-1.3A1.24,1.24,0,0,1,9,225h2.5a1.34,1.34,0,0,1,1.3,1.4,1.4,1.4,0,0,1-1.3,1.3A4.48,4.48,0,0,0,10.3,227.6Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M35,202.8V204a1.21,1.21,0,0,1-1.4,1.2,1.32,1.32,0,0,1-1.3-1.3v-2.4a1.3,1.3,0,1,1,2.6,0,6.15,6.15,0,0,1,.1,1.3Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M44.2,298.1a5.51,5.51,0,0,0-2-2.7c-.3-.3-.4-.5,0-.9a45.34,45.34,0,0,0,5-5.7,11.88,11.88,0,0,0,1.3-2.5,1.7,1.7,0,0,0-1.8-2.3,5.63,5.63,0,0,0-3,1.2l-1.2.9c-.1.1-.3.3-.5.1s0-.3.1-.4a8.23,8.23,0,0,0,1.2-2.5,3,3,0,0,0-.2-2.6,1.8,1.8,0,0,0-1.6-.9,8.09,8.09,0,0,0-3.7,1.2,13.25,13.25,0,0,0-2.5,1.6c-.2.1-.4.4-.6.1s0-.4.2-.6a10.53,10.53,0,0,0,1.7-2.9c1.2-2.9-.6-5.1-3.7-4.7a4.33,4.33,0,0,0-.5.1c-.2,0-.4.2-.5-.1s.1-.4.2-.5a5.37,5.37,0,0,0,1-1.6,2.5,2.5,0,0,0-.3-2.5,1.9,1.9,0,0,0-2.2-.8,8.79,8.79,0,0,0-3.4,1.9c-.1.1-.2.2-.3.2s-.3.3-.5.1,0-.3.1-.4c.2-.4.5-.7.7-1.1a1.2,1.2,0,0,0,0-1.5,1.1,1.1,0,0,0-1.4-.3,10.31,10.31,0,0,0-2.8,1.8,35.83,35.83,0,0,0-2.9,2.6c-.3.3-.4.2-.7,0a6.69,6.69,0,0,0-2.8-2.1l.5-.5L27.9,259a2,2,0,0,1,3.2,0l24.6,24.6a2,2,0,0,1,0,3.2L44.9,297.6A1.16,1.16,0,0,0,44.2,298.1Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M26.5,288c-4.5-4.5-9-9-13.5-13.4-.4-.4-.4-.6,0-.9a9.43,9.43,0,0,0,1-1,2,2,0,0,1,2.7,0l.3.3,24.4,24.4c1.2,1.2,1.2,2.2,0,3.3-.4.4-.7,1-1.1,1s-.8-.6-1.2-1C35,296.5,30.8,292.2,26.5,288Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M9.8,276.9a3.92,3.92,0,0,0,0,5.5c.6.7,1.3,1.3,1.9,2a12.28,12.28,0,0,1,2.3,4,4.7,4.7,0,0,1-1.3,5,18.51,18.51,0,0,1-4.8,3.5,15.92,15.92,0,0,0-6.1,4.8,6.64,6.64,0,0,0-.6,7.6,10.49,10.49,0,0,0,3,3.3,6.61,6.61,0,0,0,8.1.3,14.14,14.14,0,0,0,4.9-5.7,22.64,22.64,0,0,1,2.6-4.2c2.5-3.1,5.1-3.6,8.5-1.4a18.46,18.46,0,0,1,3.7,3.1,3.92,3.92,0,0,0,4.9.5,11.37,11.37,0,0,0,1.6-1.5c.4-.3.4-.5,0-.9L25.1,289.4,12.6,276.9c-.5-.5-.9-1.3-1.4-1.2S10.3,276.4,9.8,276.9Zm1.5,26.3a4,4,0,0,1,0,5.6,3.92,3.92,0,1,1,0-5.6Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M42,361.9a23.36,23.36,0,1,0-18.3,8.9,22.77,22.77,0,0,0,12.9-3.9L54,384.2l5.2-5.2Zm.3-14.4a18.6,18.6,0,1,1-18.6-18.6A18.69,18.69,0,0,1,42.3,347.5Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M1,403.6l-.7.1v.7C.3,417.3,3,428,8.7,437.2a46.22,46.22,0,0,0,16.2,16.1,4,4,0,0,0,2.1.7,3.68,3.68,0,0,0,2.1-.8c.6-.5,1.4-1,2-1.5.8-.6,1.6-1.1,2.4-1.8a53.31,53.31,0,0,0,17.7-27.4,62.88,62.88,0,0,0,2.3-18.2v-.7l-.7-.1c-7.8-1.4-14.9-4.9-21.8-8.4l-.1-.1c-2.7-1.4-5.8-1.2-8.9.4C14.6,399.4,8.1,402.3,1,403.6Zm29.4-4.3a80.16,80.16,0,0,0,18.4,7.5c.2.1.6.5.6.6h0c-.4,13.4-4.2,24.1-11.6,32.8a51.71,51.71,0,0,1-6.4,6c-1.1.9-2.2,1.9-3.3,2.8a1.76,1.76,0,0,1-1.3.6,2.69,2.69,0,0,1-1.6-.7A46.11,46.11,0,0,1,6.5,422.2a94.78,94.78,0,0,1-2.3-14.3c0-1.1.2-1.2.9-1.4a71.15,71.15,0,0,0,18.2-7.4A7.45,7.45,0,0,1,30.4,399.3Z" transform="translate(0 -0.7)"/><polygon class="cls-1" points="35.7 410.4 25.6 426 18.6 419.8 15.9 422.6 26.4 432.1 39 412.6 35.7 410.4"/><path class="cls-1" d="M48.5,501.7H15.1a11.9,11.9,0,1,1,0-23.8,12.22,12.22,0,0,1,5.6,1.4l1.4.8.5-1.5A17.49,17.49,0,0,1,39,467.1a17.3,17.3,0,0,1,17,13.6,24.58,24.58,0,0,1,2.8-.2A20.52,20.52,0,0,0,53.1,470,20.06,20.06,0,0,0,39,464.3a20.46,20.46,0,0,0-18.5,12A14.69,14.69,0,1,0,15,504.6H51.3C49.6,503.7,48.5,502.8,48.5,501.7Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M51.7,504.5H15.1a14.8,14.8,0,1,1,0-29.6,14,14,0,0,1,5.4,1,20.3,20.3,0,0,1,18.5-12,20.06,20.06,0,0,1,14.1,5.7,19.74,19.74,0,0,1,5.7,10.6v.1h-.1a24.58,24.58,0,0,0-2.8.2h-.1v-.1a17.3,17.3,0,0,0-33.2-2.1l-.6,1.6-1.5-.8A11.88,11.88,0,1,0,15,501.5H48.5v.1c0,1,1,2,2.7,2.7ZM15.1,475.1a14.6,14.6,0,0,0,0,29.2H50.9c-1.6-.7-2.5-1.7-2.5-2.6H15.1a12,12,0,1,1,5.6-22.6l1.3.7.5-1.4A17.61,17.61,0,0,1,39,466.8a17.18,17.18,0,0,1,17,13.6,24.52,24.52,0,0,1,2.7-.2A20.22,20.22,0,0,0,53,469.8a20,20,0,0,0-14-5.7A20.23,20.23,0,0,0,20.6,476v.1h-.1A16.16,16.16,0,0,0,15.1,475.1Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M69.7,485.9a2.84,2.84,0,0,0-.7-1.7c-1.6-1.7-5.5-2.6-9.4-2.6h-.7a24.52,24.52,0,0,0-2.7.2c-3.7.5-6.7,1.9-6.7,4v13.8a2.2,2.2,0,0,0,.6,1.5c1.3,1.6,4.6,2.5,8.1,2.7h1.5c3.9,0,7.9-.9,9.4-2.6a2.19,2.19,0,0,0,.7-1.7V486.1C69.7,486.2,69.7,486,69.7,485.9ZM59.5,497.4a19.3,19.3,0,0,1-6.2-.9c-1.5-.5-2.1-1.1-2.1-1.4v-2a17.82,17.82,0,0,0,8.2,1.7,23.1,23.1,0,0,0,6.1-.8,6.67,6.67,0,0,0,2.1-.9v2c0,.3-.5.9-2.1,1.4l-.9.3A18.28,18.28,0,0,1,59.5,497.4Zm8.3-7.9v1c0,.3-.5.9-2.1,1.4h-.1a18.25,18.25,0,0,1-6.1.9,19.3,19.3,0,0,1-6.2-.9c-1.5-.5-2.1-1.1-2.1-1.4v-2a17.82,17.82,0,0,0,8.2,1.7,22.65,22.65,0,0,0,5.3-.6,10,10,0,0,0,2.6-.9c.1-.1.2-.1.3-.2v1Zm-14.5-5a17.65,17.65,0,0,1,2.9-.7,32.51,32.51,0,0,1,3.3-.2,19.83,19.83,0,0,1,3.5.3,17.63,17.63,0,0,1,2.7.7c1.5.5,2.1,1.1,2.1,1.4s-.4.7-1.3,1.1a6.88,6.88,0,0,1-.8.3,11.7,11.7,0,0,1-2,.5,27.22,27.22,0,0,1-4.2.4,19.3,19.3,0,0,1-6.2-.9c-1.5-.5-2.1-1.1-2.1-1.4S51.8,485,53.3,484.5Zm14.5,15.2c0,.3-.5.9-2.1,1.4-.4.1-.8.3-1.3.4a23.84,23.84,0,0,1-4.9.5,21.79,21.79,0,0,1-6-.8c-.1,0-.2,0-.2-.1-1.5-.5-2.1-1.1-2.1-1.4v-2a17.82,17.82,0,0,0,8.2,1.7c1.2,0,2.4-.1,3.5-.2a12.23,12.23,0,0,0,4.2-1.2c.2-.1.3-.2.5-.3v2Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M59.5,504.1H58c-3.9-.2-7-1.3-8.2-2.8a2.45,2.45,0,0,1-.6-1.6V485.9c0-2,2.6-3.6,6.9-4.2a24.52,24.52,0,0,1,2.7-.2h.7c4.3,0,8.1,1,9.5,2.6a2.5,2.5,0,0,1,.8,1.8v13.8a2.9,2.9,0,0,1-.8,1.8C67.6,503.1,63.8,504.1,59.5,504.1Zm0-22.3h-.7a24.52,24.52,0,0,0-2.7.2c-4.1.6-6.6,2-6.6,3.9v.4h0v4.5h0v4.5h0v4.1a2.39,2.39,0,0,0,.5,1.4c1.1,1.4,4.2,2.4,8,2.6h1.5c4.2,0,7.9-1,9.3-2.5a2.57,2.57,0,0,0,.7-1.6v-4.1h0v-4.5h0v-4.5h0v-.4a2.13,2.13,0,0,0-.7-1.6C67.4,482.8,63.8,481.8,59.5,481.8Zm0,20.4a21.26,21.26,0,0,1-6-.8.35.35,0,0,1-.2-.1c-1.5-.5-2.2-1.2-2.2-1.6v-2.3l.2.1a18.34,18.34,0,0,0,8.2,1.6c1.2,0,2.4-.1,3.5-.2a15.08,15.08,0,0,0,4.2-1.1c.2-.1.3-.2.5-.2l.2-.1v2.3c0,.4-.7,1-2.2,1.6-.4.1-.8.3-1.3.4A34.67,34.67,0,0,1,59.5,502.2Zm-8.1-4.3v1.8c0,.2.5.8,2,1.3.1,0,.1,0,.2.1a20.53,20.53,0,0,0,5.9.8,24.61,24.61,0,0,0,4.9-.5,5,5,0,0,0,1.3-.4c1.5-.5,2-1.1,2-1.3v-1.8c-.1,0-.2.1-.3.1a18.69,18.69,0,0,1-4.3,1.2,20,20,0,0,1-3.5.2A17.42,17.42,0,0,1,51.4,497.9Zm8.1-.3a18.46,18.46,0,0,1-6.2-.9c-1.5-.5-2.2-1.2-2.2-1.6v-2.3l.2.1a18.34,18.34,0,0,0,8.2,1.6,22.54,22.54,0,0,0,6.1-.8,6.67,6.67,0,0,0,2.1-.9l.2-.1V495c0,.4-.7,1-2.2,1.6l-.9.3A17,17,0,0,1,59.5,497.6Zm-8.1-4.3v1.8c0,.2.5.8,2,1.3a18.25,18.25,0,0,0,6.1.9,20.64,20.64,0,0,0,5.2-.6l.9-.3c1.5-.5,2-1.1,2-1.3v-1.8a18.19,18.19,0,0,1-1.9.8,22.76,22.76,0,0,1-6.2.8A18.49,18.49,0,0,1,51.4,493.3Zm8.1-.3a18.46,18.46,0,0,1-6.2-.9c-1.5-.5-2.2-1.2-2.2-1.6v-2.3l.2.1a18.34,18.34,0,0,0,8.2,1.6,22,22,0,0,0,5.3-.6,8.15,8.15,0,0,0,2.5-.9c.1-.1.2-.1.3-.2l.2-.1v2.3c0,.4-.7,1-2.2,1.6h-.1A15.06,15.06,0,0,1,59.5,493Zm-8.1-4.3v1.8c0,.2.5.8,2,1.3a18.25,18.25,0,0,0,6.1.9,17.63,17.63,0,0,0,6-.9h.1c1.5-.5,2-1.1,2-1.3v-1.8a.1.1,0,0,0-.1.1,8.81,8.81,0,0,1-2.6.9,22.65,22.65,0,0,1-5.3.6A18.65,18.65,0,0,1,51.4,488.7Zm8.1-.3a18.46,18.46,0,0,1-6.2-.9c-1.5-.5-2.2-1.2-2.2-1.6s.7-1,2.2-1.6h0a19.06,19.06,0,0,1,3-.7,32.51,32.51,0,0,1,3.3-.2,19.83,19.83,0,0,1,3.5.3,15,15,0,0,1,2.7.7c1.5.5,2.2,1.2,2.2,1.6s-.5.8-1.4,1.2a6.88,6.88,0,0,1-.8.3,11.7,11.7,0,0,1-2,.5A20.24,20.24,0,0,1,59.5,488.4Zm-6.1-3.8c-1.5.5-2,1.1-2,1.3s.5.8,2,1.3a18.25,18.25,0,0,0,6.1.9,17.28,17.28,0,0,0,4.1-.4,11.7,11.7,0,0,0,2-.5,4.88,4.88,0,0,0,.7-.3c.9-.4,1.2-.8,1.2-1s-.5-.8-2-1.3a10.71,10.71,0,0,0-2.7-.6,18.84,18.84,0,0,0-3.4-.2c-1.1,0-2.2.1-3.2.2a11.54,11.54,0,0,0-2.8.6Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M56.4,560.1H51.3a5.42,5.42,0,0,0-5.5,5.5v.8H39.2a5.78,5.78,0,0,0-1.6-4.6,6.19,6.19,0,0,0-4.7-1.7v-6.6H45c1.6,0,3.5,0,5.3-.1a13.08,13.08,0,0,0,11.3-15.8c-1.3-5.9-5.8-9.7-12-10.1-.3,0-.3,0-.4-.3a18.89,18.89,0,0,0-20.5-12.3,18.8,18.8,0,0,0-15.6,12.4c-.1.3-.1.3-.3.3a11,11,0,0,0-1.8.2,12.55,12.55,0,0,0-8.2,5.1,13.16,13.16,0,0,0,11,20.7H29.4v6.6a5.79,5.79,0,0,0-4.7,1.6,5.57,5.57,0,0,0-1.6,4.6H16.5v-.7a5.48,5.48,0,0,0-5.5-5.5H5.9a5.48,5.48,0,0,0-5.5,5.5v5.1a5.42,5.42,0,0,0,5.5,5.5h5a5.4,5.4,0,0,0,5.4-4.5,8.08,8.08,0,0,0,.1-1.6V570H23v.8a5.6,5.6,0,0,0,5.5,5.4h5.2a5.47,5.47,0,0,0,5.4-4.5,7.57,7.57,0,0,0,.1-1.5V570h6.6v.8a5.48,5.48,0,0,0,5.5,5.5h5a5.42,5.42,0,0,0,5.5-5.5h0v-5.1A5.42,5.42,0,0,0,56.4,560.1Zm2,7.2v3.2a2.1,2.1,0,0,1-2.2,2.2h-5a2,2,0,0,1-2.1-2v-5.1a2.11,2.11,0,0,1,2.1-2.1h5.1a2,2,0,0,1,2.1,2.1Zm-29.8,5.4a2,2,0,0,1-2.1-2.2v-5a1.94,1.94,0,0,1,2.1-2.1h5a1.94,1.94,0,0,1,2.1,2.1v5.1a2,2,0,0,1-2.1,2C31.9,572.7,30.2,572.7,28.6,572.7ZM31,550H13.5a9.6,9.6,0,0,1-8.1-4.1,9.35,9.35,0,0,1-.9-9.4,9.43,9.43,0,0,1,7.7-5.6,5.74,5.74,0,0,1,1.2-.1h.2c1.3,0,1.8-.3,2.2-1.5a15.17,15.17,0,0,1,6.7-8.6,15.58,15.58,0,0,1,13.9-1.5,16.11,16.11,0,0,1,9.8,10.1c.4,1.3.8,1.6,2.2,1.6a9.73,9.73,0,0,1,10,9.5,9.19,9.19,0,0,1-2.7,6.8,9.76,9.76,0,0,1-7,3H36.2ZM9.4,572.7H6a2.1,2.1,0,0,1-2.2-2.2v-4.8a2.07,2.07,0,0,1,2.1-2.2h4.9a2,2,0,0,1,2.1,2.2v4.8a2,2,0,0,1-2.2,2.2Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M27.4,42.8l-3.9,3.9L.3,23.6l2.9-2.9a1.52,1.52,0,0,1,2,0Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M33.5,23.9l-3.9,3.9-9.4-9.4a1.52,1.52,0,0,1,0-2l1.9-1.9a1.52,1.52,0,0,1,2,0Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M21,23.5l-2.9,2.9a1.52,1.52,0,0,1-2,0l-1.9-1.9a1.52,1.52,0,0,1,0-2l1.9-1.9a1.52,1.52,0,0,1,2,0Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M46.3,23.9l-2.9,2.9a1.52,1.52,0,0,1-2,0L19.2,4.6,23.1.7Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M23.5,46.7l-3.9-3.9L35,27.4a1.52,1.52,0,0,1,2,0l2.9,2.9Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M22.5,32.9l-2-1.9a1.52,1.52,0,0,1,0-2l9-9,3.9,3.9-9,9A1.23,1.23,0,0,1,22.5,32.9Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M9.6,20.1,6.7,17.2,23.1.7,27,4.6,11.6,20.1A1.52,1.52,0,0,1,9.6,20.1Z" transform="translate(0 -0.7)"/><polygon class="cls-1" points="60.8 12.7 62 15.8 66.6 14.5 66.6 35.4 70.4 35.4 70.4 10.5 67.8 10.5 60.8 12.7"/><path class="cls-1" d="M86.5,10.9c-6.7,0-11.7,5.5-11.7,12.8v.1c0,7.4,4.9,12.7,11.7,12.7S98.2,31,98.2,23.7v-.1C98.2,16.3,93.3,10.9,86.5,10.9ZM78.7,23.6c0-4.5,2.7-9.3,7.7-9.3s7.8,4.8,7.8,9.3v.1c0,4.5-2.7,9.3-7.7,9.3s-7.8-4.7-7.8-9.4Z" transform="translate(0 -0.7)"/><polygon class="cls-1" points="128.4 29.3 121.5 10.6 121.5 10.6 118.7 10.6 111.7 29.3 104.3 10.7 104.3 10.6 100 10.6 110.2 35.5 110.2 35.6 113.1 35.6 120 17.4 126.9 35.5 126.9 35.6 129.8 35.6 140 10.6 135.9 10.6 128.4 29.3"/><polygon class="cls-1" points="147.1 24.6 162 24.6 162 21.2 147.1 21.2 147.1 14.1 163.7 14.1 163.7 10.6 143.3 10.6 143.3 35.4 163.8 35.4 163.8 31.9 147.1 31.9 147.1 24.6"/><path class="cls-1" d="M186.3,23.2a6,6,0,0,0,2.8-5.2v-.1a5.5,5.5,0,0,0-2-4.3,11.1,11.1,0,0,0-7.4-2.3H168V36.1h12.3c6.2,0,10.2-2.8,10.2-7.2v-.1C190.6,27.1,189.8,24.7,186.3,23.2Zm.4,5.6h0c0,2.4-2.4,3.8-6.3,3.8h-8.5V25.3h7.8C182.4,25.3,186.7,25.8,186.7,28.8Zm-1.4-10.7c0,2.8-3,3.8-5.7,3.8H172V14.8h7.8c3.4,0,5.5,1.2,5.5,3.3Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M63.3,622.2a6.9,6.9,0,0,0-3.5-5.9,10.79,10.79,0,0,0-6.5-8.2h.6a21.5,21.5,0,1,0-43-.3c-3.5,1.5-6.5,4.7-7.1,8.5a6.58,6.58,0,0,0-3.5,5.9,6.77,6.77,0,0,0,3.5,5.9,11,11,0,0,0,10.9,9.1,2.58,2.58,0,0,0,2.6-2.6v-25a2.58,2.58,0,0,0-2.6-2.6h-.3a18,18,0,0,1,36,.3H48.9a2.58,2.58,0,0,0-2.6,2.6v24.7a2.58,2.58,0,0,0,2.6,2.6,6.61,6.61,0,0,0,2.4-.3v5.9a6.38,6.38,0,0,1-5.9,6.2H39.2a5.55,5.55,0,0,0-10.9,1.5,5.79,5.79,0,0,0,5.6,5.6,5.49,5.49,0,0,0,5.3-4.1h6.1a9.6,9.6,0,0,0,9.1-9.4v-7.4a12.13,12.13,0,0,0,5.3-7.7C62.1,626.9,63.3,624.5,63.3,622.2Z" transform="translate(0 -0.7)"/><circle class="cls-1" cx="23.59" cy="70.7" r="4.24"/><path class="cls-1" d="M34.32,101.8H3.56v-8l7.1-6.53,4.32-4,1.34,1.08,1.84,1.49c.83.67,3.06,2.51,8.8,7.3L29.2,95,31.45,93,36,89.1l3-2.57,9.39-8.12.17.14,1.75,1.51,1.07.92,1,.85.91.78,4.35,3.75L61,89.28h0a25.74,25.74,0,0,1,4.58,5.28q0-1.73.07-3.47.27-15.35,0-30.3a4.72,4.72,0,0,0-1.53-3,4.66,4.66,0,0,0-2.57-1.13H4.1A4.1,4.1,0,0,0,0,60.8v41a4.1,4.1,0,0,0,4.1,4.1H34.79a15.3,15.3,0,0,1-.48-3.8C34.31,102,34.32,101.9,34.32,101.8ZM3.56,60.8H61q0,12.34,0,24.68l-3.37-2.9-4.35-3.75-4.71-4.06-.17-.14L39,82.73l-9.77,8.45h0L18.26,82.09,15,79.44,8.59,85.36,3.56,90Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M66.25,102.8H62.58a11.83,11.83,0,0,1-.63,3.11h3.87a14.93,14.93,0,0,0,.49-3.11Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M49.73,100a2.45,2.45,0,0,0-1.24,1.84,2.42,2.42,0,0,0,0,.29,2.45,2.45,0,0,0,4.63,1.12h0l.78-1.41,3.7-6.67L49.72,100Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M51.34,86.61v3.73A10.57,10.57,0,0,1,58.08,93l2.73-2.63A15.59,15.59,0,0,0,51.34,86.61Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M49.48,90.33V86.61a15.44,15.44,0,0,0-14.4,15.21c0,.1,0,.19,0,.29a15.3,15.3,0,0,0,.48,3.8h3.89a11.42,11.42,0,0,1-.66-3.82c0-.09,0-.18,0-.27A12.05,12.05,0,0,1,49.48,90.33Z" transform="translate(0 -0.7)"/><path class="cls-1" d="M66.29,100.94a15,15,0,0,0-4-9.26l-.6.6-2,2a11.91,11.91,0,0,1,2,3.31,11.71,11.71,0,0,1,.83,3.33Z" transform="translate(0 -0.7)"/></svg>
|
wd/assets/img/how_it_works.png
ADDED
Binary file
|
wd/assets/img/plugins/business_elite.png
DELETED
Binary file
|
wd/assets/img/plugins/business_world.png
DELETED
Binary file
|
wd/assets/img/plugins/event-calendar-wd.png
DELETED
Binary file
|
wd/assets/img/plugins/form-maker.png
DELETED
Binary file
|
wd/assets/img/plugins/photo-gallery.png
DELETED
Binary file
|
wd/assets/img/plugins/portfolio_gallery.png
DELETED
Binary file
|
wd/assets/img/plugins/sauron.png
DELETED
Binary file
|
wd/assets/img/plugins/slider-wd.png
DELETED
Binary file
|
wd/assets/img/plugins/spider-event-calendar.png
DELETED
Binary file
|
wd/assets/img/plugins/wd-google-maps.png
DELETED
Binary file
|
wd/assets/img/plugins/wd-instagram-feed.png
DELETED
Binary file
|
wd/assets/img/slide-1366.jpg
ADDED
Binary file
|
wd/assets/img/sp_calendar_main_plugin.png
DELETED
Binary file
|
wd/assets/img/sub_1.png
DELETED
Binary file
|
wd/assets/img/sub_2.png
DELETED
Binary file
|
wd/assets/img/sub_4.png
DELETED
Binary file
|
wd/assets/js/deactivate_popup.js
CHANGED
@@ -19,132 +19,112 @@ var btnVal = 3;
|
|
19 |
////////////////////////////////////////////////////////////////////////////////////////
|
20 |
// Public Methods //
|
21 |
////////////////////////////////////////////////////////////////////////////////////////
|
22 |
-
function
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
'<div><strong>We have a special offer for you.</strong></div>' +
|
67 |
-
'<div>Submit this form to get the offer to <input type="text" name="' + prefix + '_email" value="' + window[prefix + "WDDeactivateVars"].email + '"></div>' +
|
68 |
-
'<br><div><button class="button button-primary ' + disabled_class + ' wd-' + prefix + '-deactivate" data-val="' + btnVal + '">Submit</button></div></div>';
|
69 |
-
|
70 |
-
jQuery("." + prefix + "_additional_details_wrap").append(additionalInfo);
|
71 |
-
jQuery(".wd-" + prefix + "-deactivate-popup").addClass("wd-popup-active3");
|
72 |
-
}else{
|
73 |
-
jQuery(".wd-" + prefix + "-deactivate-popup").addClass("wd-popup-active4");
|
74 |
-
}
|
75 |
-
|
76 |
-
var checked = (agree_with_pp === true) ? "checked" : "";
|
77 |
-
var agree_checkbox =
|
78 |
-
"<div style='margin-top: 5px;'>" +
|
79 |
-
"<input type='checkbox' " + checked + " name='" + prefix + "_agree_with_pp" + "' id='" + prefix + "_agree_with_pp" + "'/>" +
|
80 |
-
"By submitting this form your email and website URL will be sent to Web-Dorado. Click the checkbox if you consent to usage of mentioned data by Web-Dorado in accordance with our <a target='_blank' href='https://web-dorado.com/web-dorado-privacy-statement.html'>Privacy Policy</a>."+
|
81 |
-
"</div>";
|
82 |
-
|
83 |
-
jQuery("." + prefix + "_additional_details_wrap").prepend(agree_checkbox);
|
84 |
-
|
85 |
-
jQuery("#wd-" + prefix + "-deactivate").hide();
|
86 |
-
jQuery("#wd-" + prefix + "-submit-and-deactivate").show();
|
87 |
-
|
88 |
-
});
|
89 |
-
jQuery(document).on("keyup", "[name=" + prefix + "_additional_details]", function(){
|
90 |
-
if(jQuery(this).val().trim() || jQuery("[name=" + prefix + "_reasons]:checked").length > 0){
|
91 |
-
jQuery("#wd-" + prefix + "-deactivate").hide();
|
92 |
-
jQuery("#wd-" + prefix + "-submit-and-deactivate").show();
|
93 |
-
}
|
94 |
-
else{
|
95 |
-
jQuery("#wd-" + prefix + "-deactivate").show();
|
96 |
-
jQuery("#wd-" + prefix + "-submit-and-deactivate").hide();
|
97 |
-
}
|
98 |
-
|
99 |
-
});
|
100 |
-
|
101 |
-
jQuery(document).on("change", "[name=" + prefix + "_agree_with_pp]", function () {
|
102 |
-
if(jQuery(this).prop('checked')){
|
103 |
-
jQuery(".wd-" + prefix + "-deactivate").removeClass('button-primary-disabled');
|
104 |
-
agree_with_pp = true;
|
105 |
-
}else{
|
106 |
-
jQuery(".wd-" + prefix + "-deactivate").addClass('button-primary-disabled');
|
107 |
-
agree_with_pp = false;
|
108 |
-
}
|
109 |
-
});
|
110 |
-
|
111 |
-
jQuery(document).on("click", ".wd-" + prefix + "-deactivate", function(e){
|
112 |
-
|
113 |
-
var data_val = jQuery(this).data('val');
|
114 |
-
var checkbox = jQuery("#" + prefix + "_agree_with_pp");
|
115 |
-
|
116 |
-
|
117 |
-
if (data_val !== 1 && (checkbox.length === 0 || checkbox.prop('checked') === false)) {
|
118 |
-
return false;
|
119 |
-
}
|
120 |
-
|
121 |
-
jQuery(".wd-deactivate-popup-opacity-" + prefix).show();
|
122 |
-
if(jQuery(this).hasClass("wd-clicked") == false){
|
123 |
-
jQuery(this).addClass("wd-clicked");
|
124 |
-
jQuery("[name=" + prefix + "_submit_and_deactivate]").val(jQuery(this).attr("data-val"));
|
125 |
-
jQuery("#" + prefix + "_deactivate_form").submit();
|
126 |
-
}
|
127 |
-
return false;
|
128 |
-
});
|
129 |
-
|
130 |
-
jQuery(document).on("click", ".wd-" + prefix + "-cancel, .wd-opacity, .wd-deactivate-popup-close-btn", function(){
|
131 |
-
jQuery(".wd-" + prefix + "-opacity").hide();
|
132 |
-
jQuery(".wd-" + prefix + "-deactivate-popup").hide();
|
133 |
-
reset_popup();
|
134 |
-
|
135 |
-
return false;
|
136 |
-
});
|
137 |
-
|
138 |
-
function reset_popup() {
|
139 |
-
jQuery("." + prefix + "_additional_details_wrap").html("");
|
140 |
-
jQuery(".wd-" + prefix + "-deactivate-popup").removeClass("wd-popup-active1 wd-popup-active2 wd-popup-active3 wd-popup-active4");
|
141 |
-
|
142 |
-
jQuery("#wd-" + prefix + "-deactivate").removeClass("button-primary-disabled");
|
143 |
-
jQuery("#wd-" + prefix + "-deactivate").show();
|
144 |
-
jQuery("#wd-" + prefix + "-submit-and-deactivate").hide();
|
145 |
-
jQuery('#' + prefix + '_deactivate_form input[name="' + prefix + '_reasons' + '"]').prop('checked', false);
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
|
149 |
}
|
150 |
|
19 |
////////////////////////////////////////////////////////////////////////////////////////
|
20 |
// Public Methods //
|
21 |
////////////////////////////////////////////////////////////////////////////////////////
|
22 |
+
function tenwebReady( prefix ) {
|
23 |
+
|
24 |
+
var agree_with_pp = false;
|
25 |
+
reset_popup();
|
26 |
+
jQuery( document ).on( "click", "." + window[prefix + "WDDeactivateVars"].deactivate_class, function () {
|
27 |
+
agree_with_pp = false;
|
28 |
+
if ( !jQuery( '#tenweb-' + prefix + '-submit-and-deactivate' ).hasClass( 'button-primary-disabled' ) ) {
|
29 |
+
jQuery( '#tenweb-' + prefix + '-submit-and-deactivate' ).addClass( 'button-primary-disabled' )
|
30 |
+
}
|
31 |
+
jQuery( ".tenweb-" + prefix + "-opacity" ).show();
|
32 |
+
jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).show();
|
33 |
+
if ( jQuery( this ).attr( "data-uninstall" ) == "1" ) {
|
34 |
+
btnVal = 2;
|
35 |
+
}
|
36 |
+
|
37 |
+
return false;
|
38 |
+
} );
|
39 |
+
|
40 |
+
jQuery( document ).on( "change", "[name=" + prefix + "_reasons]", function () {
|
41 |
+
var disabled_class = ( agree_with_pp === false ) ? "button-primary-disabled" : "";
|
42 |
+
|
43 |
+
jQuery( "." + prefix + "_additional_details_wrap" ).html( "" );
|
44 |
+
jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).removeClass( "tenweb-popup-active1 tenweb-popup-active2 tenweb-popup-active4" );
|
45 |
+
if ( jQuery( this ).val() == "reason_plugin_is_hard_to_use_technical_problems" ) {
|
46 |
+
|
47 |
+
additionalInfo = '<div class="tenweb-additional-active"><div><strong>Please describe your issue.</strong></div><br>' +
|
48 |
+
'<textarea name="' + prefix + '_additional_details" rows = "4"></textarea><br>' +
|
49 |
+
'<div>Our support will contact <input type="text" name="' + prefix + '_email" value="' + window[prefix + "WDDeactivateVars"].email + '"> shortly.</div>' +
|
50 |
+
'<br><div><button class="button button-primary ' + disabled_class + ' tenweb-' + prefix + '-deactivate" data-val="' + btnVal + '">Submit support ticket</button></div></div>';
|
51 |
+
jQuery( "." + prefix + "_additional_details_wrap" ).append( additionalInfo );
|
52 |
+
jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).addClass( "tenweb-popup-active1" );
|
53 |
+
|
54 |
+
}
|
55 |
+
else if ( jQuery( this ).val() == "reason_free_version_limited" ) {
|
56 |
+
additionalInfo = '<div class="tenweb-additional-active">' +
|
57 |
+
'<div><strong>We believe our premium version will fit your needs.</strong></div>' +
|
58 |
+
'<div><a href="' + window[prefix + "WDDeactivateVars"].plugin_wd_url + '" target="_blank">Try with 30 day money back guarantee.</a></div>';
|
59 |
+
|
60 |
+
jQuery( "." + prefix + "_additional_details_wrap" ).append( additionalInfo );
|
61 |
+
jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).addClass( "tenweb-popup-active2" );
|
62 |
+
}
|
63 |
+
else {
|
64 |
+
jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).addClass( "tenweb-popup-active4" );
|
65 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
+
var checked = ( agree_with_pp === true ) ? "checked" : "";
|
68 |
+
var agree_checkbox =
|
69 |
+
"<div style='margin-top: 5px;'>" +
|
70 |
+
"<input type='checkbox' " + checked + " name='" + prefix + "_agree_with_pp" + "' id='" + prefix + "_agree_with_pp" + "'/>" +
|
71 |
+
"By submitting this form your email and website URL will be sent to 10Web. Click the checkbox if you consent to usage of mentioned data by 10Web in accordance with our <a target='_blank' href='https://10web.io/privacy-policy/'>Privacy Policy</a>." +
|
72 |
+
"</div>";
|
73 |
+
jQuery( "." + prefix + "_additional_details_wrap" ).prepend( agree_checkbox );
|
74 |
+
|
75 |
+
jQuery( "#tenweb-" + prefix + "-submit-and-deactivate" ).show();
|
76 |
+
} );
|
77 |
+
jQuery( document ).on( "keyup", "[name=" + prefix + "_additional_details]", function () {
|
78 |
+
if ( jQuery( this ).val().trim() || jQuery( "[name=" + prefix + "_reasons]:checked" ).length > 0 ) {
|
79 |
+
jQuery( "#tenweb-" + prefix + "-submit-and-deactivate" ).show();
|
80 |
}
|
81 |
+
else {
|
82 |
+
jQuery( "#tenweb-" + prefix + "-submit-and-deactivate" ).hide();
|
83 |
+
}
|
84 |
+
} );
|
85 |
+
|
86 |
+
jQuery( document ).on( "change", "[name=" + prefix + "_agree_with_pp]", function () {
|
87 |
+
if ( jQuery( this ).prop( 'checked' ) ) {
|
88 |
+
jQuery( ".tenweb-" + prefix + "-deactivate" ).removeClass( 'button-primary-disabled' );
|
89 |
+
agree_with_pp = true;
|
90 |
+
} else {
|
91 |
+
jQuery( ".tenweb-" + prefix + "-deactivate" ).addClass( 'button-primary-disabled' );
|
92 |
+
agree_with_pp = false;
|
93 |
+
}
|
94 |
+
} );
|
95 |
+
|
96 |
+
jQuery( document ).on( "click", ".tenweb-" + prefix + "-deactivate", function ( e ) {
|
97 |
+
var data_val = jQuery( this ).data( 'val' );
|
98 |
+
var checkbox = jQuery( "#" + prefix + "_agree_with_pp" );
|
99 |
+
|
100 |
+
if ( data_val !== 1 && ( checkbox.length === 0 || checkbox.prop( 'checked' ) === false ) ) {
|
101 |
+
return false;
|
102 |
+
}
|
103 |
+
|
104 |
+
jQuery( ".tenweb-deactivate-popup-opacity-" + prefix ).show();
|
105 |
+
if ( jQuery( this ).hasClass( "tenweb-clicked" ) == false ) {
|
106 |
+
jQuery( this ).addClass( "tenweb-clicked" );
|
107 |
+
jQuery( "[name=" + prefix + "_submit_and_deactivate]" ).val( jQuery( this ).attr( "data-val" ) );
|
108 |
+
jQuery( "#" + prefix + "_deactivate_form" ).submit();
|
109 |
+
}
|
110 |
+
return false;
|
111 |
+
} );
|
112 |
+
|
113 |
+
jQuery( document ).on( "click", ".tenweb-" + prefix + "-cancel, .tenweb-opacity, .tenweb-deactivate-popup-close-btn", function () {
|
114 |
+
jQuery( ".tenweb-" + prefix + "-opacity" ).hide();
|
115 |
+
jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).hide();
|
116 |
+
reset_popup();
|
117 |
+
|
118 |
+
return false;
|
119 |
+
} );
|
120 |
+
|
121 |
+
function reset_popup() {
|
122 |
+
jQuery( "." + prefix + "_additional_details_wrap" ).html( "" );
|
123 |
+
jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).removeClass( "tenweb-popup-active1 tenweb-popup-active2 tenweb-popup-active4" );
|
124 |
+
|
125 |
+
jQuery( "#tenweb-" + prefix + "-submit-and-deactivate" ).hide();
|
126 |
+
jQuery( '#' + prefix + '_deactivate_form input[name="' + prefix + '_reasons' + '"]' ).prop( 'checked', false );
|
127 |
+
}
|
128 |
|
129 |
}
|
130 |
|
wd/assets/js/overview.js
CHANGED
@@ -1,56 +1,16 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
-
// Constants //
|
6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
-
// Variables //
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Constructor & Destructor //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
jQuery(document).ready(function () {
|
14 |
-
|
15 |
-
jQuery(".overview_tabs li a:not(.not_tab)").on("click", function(){
|
16 |
-
jQuery(".overview_tabs li a").removeClass("overview_tab_active");
|
17 |
-
jQuery(this).addClass("overview_tab_active");
|
18 |
-
jQuery(".overview_content > div").hide();
|
19 |
-
var id = jQuery(this).attr("href");
|
20 |
-
jQuery(id).show();
|
21 |
-
return false;
|
22 |
-
});
|
23 |
-
|
24 |
-
// rating
|
25 |
-
// jQuery(".rating").each(function(){
|
26 |
-
// var rate = jQuery(this).attr("data-rating");
|
27 |
-
// jQuery("<span class='stars-container'>")
|
28 |
-
// .addClass("stars-" + rate.toString())
|
29 |
-
// .text("★★★★★")
|
30 |
-
// .appendTo(jQuery(this));
|
31 |
-
// jQuery("body").append('<style>.stars-' + rate.toString() + ':after{width:' + rate + '%;}</style>');
|
32 |
-
// });
|
33 |
-
|
34 |
-
jQuery("#wd-copy").on("click", function(){
|
35 |
-
var selector = document.querySelector('#wd-site-deatils-textarea');
|
36 |
-
selector.select();
|
37 |
-
document.execCommand('copy');
|
38 |
-
|
39 |
-
return false;
|
40 |
-
|
41 |
-
});
|
42 |
-
|
43 |
});
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
55 |
-
// Listeners //
|
56 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
1 |
+
jQuery(window).resize(function () {
|
2 |
+
tenWebOverviewResize();
|
3 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
jQuery(document).ready(function () {
|
5 |
+
tenWebOverviewResize();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
});
|
7 |
|
8 |
+
function tenWebOverviewResize(){
|
9 |
+
if(jQuery(".tenweb_header_right").length){
|
10 |
+
if (matchMedia('only screen and (max-width: 840px)').matches) {
|
11 |
+
jQuery(".tenweb_header_right").after(jQuery(".tenweb_header_right .header_text"));
|
12 |
+
} else{
|
13 |
+
jQuery(".tenweb_header_right .button").before(jQuery(".tenweb_overview .inline-block.header_text"));
|
14 |
+
}
|
15 |
+
}
|
16 |
+
}
|
|
|
|
|
|
wd/assets/js/subsribe.js
CHANGED
@@ -1,36 +1,17 @@
|
|
1 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
2 |
-
// Events //
|
3 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
4 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
-
// Constants //
|
6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
-
// Variables //
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Constructor & Destructor //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
jQuery(document).on("ready", function () {
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
32 |
-
// Private Methods //
|
33 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
34 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
-
// Listeners //
|
36 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
jQuery(document).on("ready", function () {
|
2 |
+
jQuery(".permissions").on("click", function () {
|
3 |
+
jQuery(this).toggleClass("active");
|
4 |
+
jQuery(".list").slideToggle("fast");
|
5 |
+
return false;
|
6 |
+
});
|
7 |
+
jQuery(".allow_and_continue, .skip").on("click", function () {
|
8 |
+
var url = jQuery(this).attr("href");
|
9 |
+
if ( url ) {
|
10 |
+
jQuery(".allow_and_continue, .skip").css("opacity", "0.5");
|
11 |
+
jQuery(".allow_and_continue, .skip").attr("disabled", "disabled");
|
12 |
+
jQuery(".allow_and_continue, .skip").removeAttr("href");
|
13 |
+
jQuery(".wd_loader").css("display", "inline-block");
|
14 |
+
window.location = url;
|
15 |
+
}
|
16 |
+
});
|
17 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wd/config.php
CHANGED
@@ -1,131 +1,127 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
public $prefix = null;
|
10 |
-
public $wd_plugin_id = null;
|
11 |
-
public $plugin_title = null;
|
12 |
-
public $plugin_wordpress_slug = null;
|
13 |
-
public $plugin_dir = null;
|
14 |
-
public $plugin_main_file = null;
|
15 |
-
public $description = null;
|
16 |
-
public $plugin_features = null;
|
17 |
-
public $user_guide = null;
|
18 |
-
public $overview_welcome_image = null;
|
19 |
-
public $video_youtube_id = null;
|
20 |
-
public $plugin_wd_url = null;
|
21 |
-
public $plugin_wd_demo_link = null;
|
22 |
-
public $plugin_wd_addons_link = null;
|
23 |
-
public $plugin_wizard_link = null;
|
24 |
-
public $after_subscribe = null;
|
25 |
-
public $plugin_menu_title = null;
|
26 |
-
public $plugin_menu_icon = null;
|
27 |
-
public $wd_dir = null;
|
28 |
-
public $wd_dir_includes = null;
|
29 |
-
public $wd_dir_templates = null;
|
30 |
-
public $wd_dir_assets = null;
|
31 |
-
public $wd_url_css = null;
|
32 |
-
public $wd_url_js = null;
|
33 |
-
public $wd_url_img = null;
|
34 |
-
public $deactivate = null;
|
35 |
-
public $subscribe = null;
|
36 |
-
public $custom_post = null;
|
37 |
-
public $menu_capability = null;
|
38 |
-
public $menu_position = null;
|
39 |
-
public $start_using_url = null;
|
40 |
-
|
41 |
-
public function set_options( $options ){
|
42 |
-
|
43 |
-
if(isset( $options["prefix"] )) {
|
44 |
-
$this->prefix = $options["prefix"];
|
45 |
-
}
|
46 |
-
if(isset( $options["wd_plugin_id"] )) {
|
47 |
-
$this->wd_plugin_id = $options["wd_plugin_id"];
|
48 |
-
}
|
49 |
-
if(isset( $options["plugin_title"] )) {
|
50 |
-
$this->plugin_title = $options["plugin_title"];
|
51 |
-
}
|
52 |
-
if(isset( $options["plugin_wordpress_slug"] )) {
|
53 |
-
$this->plugin_wordpress_slug = $options["plugin_wordpress_slug"];
|
54 |
-
}
|
55 |
-
if(isset( $options["plugin_dir"] )) {
|
56 |
-
$this->plugin_dir = $options["plugin_dir"];
|
57 |
-
}
|
58 |
-
if(isset( $options["plugin_main_file"] )) {
|
59 |
-
$this->plugin_main_file = $options["plugin_main_file"];
|
60 |
-
}
|
61 |
-
|
62 |
-
if(isset( $options["description"] )) {
|
63 |
-
$this->description = $options["description"];
|
64 |
-
}
|
65 |
-
if(isset( $options["plugin_features"] )) {
|
66 |
-
$this->plugin_features = $options["plugin_features"];
|
67 |
-
}
|
68 |
-
if(isset( $options["user_guide"] )) {
|
69 |
-
$this->user_guide = $options["user_guide"];
|
70 |
-
}
|
71 |
-
if(isset( $options["video_youtube_id"] )) {
|
72 |
-
$this->video_youtube_id = $options["video_youtube_id"];
|
73 |
-
}
|
74 |
-
if(isset( $options["overview_welcome_image"] )) {
|
75 |
-
$this->overview_welcome_image = $options["overview_welcome_image"];
|
76 |
-
}
|
77 |
-
if(isset( $options["plugin_wd_url"] )) {
|
78 |
-
$this->plugin_wd_url = $options["plugin_wd_url"];
|
79 |
-
}
|
80 |
-
if(isset( $options["plugin_wd_demo_link"] )) {
|
81 |
-
$this->plugin_wd_demo_link = $options["plugin_wd_demo_link"];
|
82 |
-
}
|
83 |
-
if(isset( $options["plugin_wd_addons_link"] )) {
|
84 |
-
$this->plugin_wd_addons_link = $options["plugin_wd_addons_link"];
|
85 |
-
}
|
86 |
-
if(isset( $options["plugin_wizard_link"] )) {
|
87 |
-
$this->plugin_wizard_link = $options["plugin_wizard_link"];
|
88 |
-
}
|
89 |
-
if(isset( $options["after_subscribe"] )) {
|
90 |
-
$this->after_subscribe = $options["after_subscribe"];
|
91 |
-
}
|
92 |
-
if(isset( $options["plugin_menu_title"] )) {
|
93 |
-
$this->plugin_menu_title = $options["plugin_menu_title"];
|
94 |
-
}
|
95 |
-
if(isset( $options["plugin_menu_icon"] )) {
|
96 |
-
$this->plugin_menu_icon = $options["plugin_menu_icon"];
|
97 |
-
}
|
98 |
-
if(isset( $options["deactivate"] )) {
|
99 |
-
$this->deactivate = $options["deactivate"];
|
100 |
-
}
|
101 |
-
if(isset( $options["subscribe"] )) {
|
102 |
-
$this->subscribe = $options["subscribe"];
|
103 |
-
}
|
104 |
-
if(isset( $options["custom_post"] )) {
|
105 |
-
$this->custom_post = $options["custom_post"];
|
106 |
-
}
|
107 |
-
if(isset( $options["menu_capability"] )) {
|
108 |
-
$this->menu_capability = $options["menu_capability"];
|
109 |
-
}
|
110 |
-
if(isset( $options["menu_position"] )) {
|
111 |
-
$this->menu_position = $options["menu_position"];
|
112 |
-
}
|
113 |
-
if(isset( $options["start_using_url"] )) {
|
114 |
-
$this->start_using_url = $options["start_using_url"];
|
115 |
-
}
|
116 |
-
|
117 |
-
// directories
|
118 |
-
$this->wd_dir = dirname( $this->plugin_main_file ) . '/wd';
|
119 |
-
$this->wd_dir_includes = $this->wd_dir . '/includes';
|
120 |
-
$this->wd_dir_templates = $this->wd_dir . '/templates';
|
121 |
-
$this->wd_dir_assets = $this->wd_dir . '/assets';
|
122 |
-
$this->wd_url_css = plugins_url( plugin_basename( $this->wd_dir ) ) . '/assets/css';
|
123 |
-
$this->wd_url_js = plugins_url( plugin_basename( $this->wd_dir ) ) . '/assets/js';
|
124 |
-
$this->wd_url_img = plugins_url( plugin_basename( $this->wd_dir ) ) . '/assets/img';
|
125 |
-
}
|
126 |
-
|
127 |
-
|
128 |
-
}
|
129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
|
|
|
131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
|
6 |
+
class TenWebLibConfig {
|
7 |
+
public static $instance;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
+
public $prefix = null;
|
10 |
+
public $plugin_id = null;
|
11 |
+
public $wd_plugin_id = null;
|
12 |
+
public $plugin_title = null;
|
13 |
+
public $plugin_wordpress_slug = null;
|
14 |
+
public $plugin_dir = null;
|
15 |
+
public $plugin_main_file = null;
|
16 |
+
public $description = null;
|
17 |
+
public $plugin_features = null;
|
18 |
+
public $video_youtube_id = null;
|
19 |
+
public $plugin_wd_url = null;
|
20 |
+
public $plugin_wd_demo_link = null;
|
21 |
+
public $plugin_wd_addons_link = null;
|
22 |
+
public $plugin_wizard_link = null;
|
23 |
+
public $after_subscribe = null;
|
24 |
+
public $plugin_menu_title = null;
|
25 |
+
public $plugin_menu_icon = null;
|
26 |
+
public $wd_dir = null;
|
27 |
+
public $wd_dir_includes = null;
|
28 |
+
public $wd_dir_templates = null;
|
29 |
+
public $wd_dir_assets = null;
|
30 |
+
public $wd_url_css = null;
|
31 |
+
public $wd_url_js = null;
|
32 |
+
public $wd_url_img = null;
|
33 |
+
public $deactivate = null;
|
34 |
+
public $subscribe = null;
|
35 |
+
public $custom_post = null;
|
36 |
+
public $menu_capability = null;
|
37 |
+
public $menu_position = null;
|
38 |
+
public $overview_welcome_image = null;
|
39 |
+
public $display_overview = true;
|
40 |
|
41 |
+
public function set_options( $options ){
|
42 |
|
43 |
+
if(isset( $options["prefix"] )) {
|
44 |
+
$this->prefix = $options["prefix"];
|
45 |
+
}
|
46 |
+
if(isset( $options["plugin_id"] )) {
|
47 |
+
$this->plugin_id = $options["plugin_id"];
|
48 |
+
}
|
49 |
+
if(isset( $options["wd_plugin_id"] )) {
|
50 |
+
$this->wd_plugin_id = $options["wd_plugin_id"];
|
51 |
+
}
|
52 |
+
if(isset( $options["plugin_title"] )) {
|
53 |
+
$this->plugin_title = $options["plugin_title"];
|
54 |
+
}
|
55 |
+
if(isset( $options["plugin_wordpress_slug"] )) {
|
56 |
+
$this->plugin_wordpress_slug = $options["plugin_wordpress_slug"];
|
57 |
+
}
|
58 |
+
if(isset( $options["plugin_dir"] )) {
|
59 |
+
$this->plugin_dir = $options["plugin_dir"];
|
60 |
+
}
|
61 |
+
if(isset( $options["plugin_main_file"] )) {
|
62 |
+
$this->plugin_main_file = $options["plugin_main_file"];
|
63 |
+
}
|
64 |
+
if(isset( $options["description"] )) {
|
65 |
+
$this->description = $options["description"];
|
66 |
+
}
|
67 |
+
if(isset( $options["plugin_features"] )) {
|
68 |
+
$this->plugin_features = $options["plugin_features"];
|
69 |
+
}
|
70 |
+
if(isset( $options["video_youtube_id"] )) {
|
71 |
+
$this->video_youtube_id = $options["video_youtube_id"];
|
72 |
+
}
|
73 |
+
if(isset( $options["plugin_wd_url"] )) {
|
74 |
+
$this->plugin_wd_url = $options["plugin_wd_url"];
|
75 |
+
}
|
76 |
+
if(isset( $options["plugin_wd_demo_link"] )) {
|
77 |
+
$this->plugin_wd_demo_link = $options["plugin_wd_demo_link"];
|
78 |
+
}
|
79 |
+
if(isset( $options["plugin_wd_demo_link"] )) {
|
80 |
+
$this->plugin_wd_demo_link = $options["plugin_wd_demo_link"];
|
81 |
+
}
|
82 |
+
if(isset( $options["plugin_wd_docs_link"] )) {
|
83 |
+
$this->plugin_wd_docs_link = $options["plugin_wd_docs_link"];
|
84 |
+
}
|
85 |
+
if(isset( $options["plugin_wizard_link"] )) {
|
86 |
+
$this->plugin_wizard_link = $options["plugin_wizard_link"];
|
87 |
+
}
|
88 |
+
if(isset( $options["after_subscribe"] )) {
|
89 |
+
$this->after_subscribe = $options["after_subscribe"];
|
90 |
+
}
|
91 |
+
if(isset( $options["plugin_menu_title"] )) {
|
92 |
+
$this->plugin_menu_title = $options["plugin_menu_title"];
|
93 |
+
}
|
94 |
+
if(isset( $options["plugin_menu_icon"] )) {
|
95 |
+
$this->plugin_menu_icon = $options["plugin_menu_icon"];
|
96 |
+
}
|
97 |
+
if(isset( $options["deactivate"] )) {
|
98 |
+
$this->deactivate = $options["deactivate"];
|
99 |
+
}
|
100 |
+
if(isset( $options["subscribe"] )) {
|
101 |
+
$this->subscribe = $options["subscribe"];
|
102 |
+
}
|
103 |
+
if(isset( $options["custom_post"] )) {
|
104 |
+
$this->custom_post = $options["custom_post"];
|
105 |
+
}
|
106 |
+
if(isset( $options["menu_capability"] )) {
|
107 |
+
$this->menu_capability = $options["menu_capability"];
|
108 |
+
}
|
109 |
+
if(isset( $options["menu_position"] )) {
|
110 |
+
$this->menu_position = $options["menu_position"];
|
111 |
+
}
|
112 |
+
if(isset( $options["overview_welcome_image"] )) {
|
113 |
+
$this->overview_welcome_image = $options["overview_welcome_image"];
|
114 |
+
}
|
115 |
+
if(isset( $options["display_overview"] )) {
|
116 |
+
$this->display_overview = $options["display_overview"];
|
117 |
+
}
|
118 |
+
// directories
|
119 |
+
$this->wd_dir = dirname( $this->plugin_main_file ) . '/wd';
|
120 |
+
$this->wd_dir_includes = $this->wd_dir . '/includes';
|
121 |
+
$this->wd_dir_templates = $this->wd_dir . '/templates';
|
122 |
+
$this->wd_dir_assets = $this->wd_dir . '/assets';
|
123 |
+
$this->wd_url_css = plugins_url( plugin_basename( $this->wd_dir ) ) . '/assets/css';
|
124 |
+
$this->wd_url_js = plugins_url( plugin_basename( $this->wd_dir ) ) . '/assets/js';
|
125 |
+
$this->wd_url_img = plugins_url( plugin_basename( $this->wd_dir ) ) . '/assets/img';
|
126 |
+
}
|
127 |
+
}
|
wd/includes/api.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
-
class
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
@@ -31,7 +31,7 @@
|
|
31 |
|
32 |
|
33 |
public function get_remote_data( $id ) {
|
34 |
-
$remote_data_path =
|
35 |
$request = wp_remote_get( ( str_replace( '_id_', $id, $remote_data_path ) ) );
|
36 |
|
37 |
if ( !is_wp_error($request) || wp_remote_retrieve_response_code($request) === 200 ) {
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
+
class TenWebLibApi{
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
|
32 |
|
33 |
public function get_remote_data( $id ) {
|
34 |
+
$remote_data_path = TEN_WEB_LIB_API_PLUGIN_DATA_PATH . '/' . $this->userhash;
|
35 |
$request = wp_remote_get( ( str_replace( '_id_', $id, $remote_data_path ) ) );
|
36 |
|
37 |
if ( !is_wp_error($request) || wp_remote_retrieve_response_code($request) === 200 ) {
|
wd/includes/deactivate.php
CHANGED
@@ -1,179 +1,145 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
}
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Constants //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
14 |
-
// Variables //
|
15 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
-
public $deactivate_reasons = array();
|
17 |
-
public $config;
|
18 |
-
// Reason IDs
|
19 |
-
const REASON_PLUGIN_IS_HARD_TO_USE_TECHNICAL_PROBLEMS = "reason_plugin_is_hard_to_use_technical_problems";
|
20 |
-
const REASON_FREE_VERSION_IS_LIMITED = "reason_free_version_limited";
|
21 |
-
const REASON_PRO_EXPENSIVE = "reason_premium_expensive";
|
22 |
-
const REASON_UPGRADING_TO_PAID_VERSION = "reason_upgrading_to_paid_version";
|
23 |
-
const REASON_TEMPORARY_DEACTIVATION = "reason_temporary_deactivation";
|
24 |
-
|
25 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
26 |
-
// Constructor & Destructor //
|
27 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
28 |
-
public function __construct( $config = array() ) {
|
29 |
-
$this->config = $config;
|
30 |
-
$wd_options = $this->config;
|
31 |
-
|
32 |
-
$this->deactivate_reasons = array(
|
33 |
-
1 => array(
|
34 |
-
'id' => self::REASON_PLUGIN_IS_HARD_TO_USE_TECHNICAL_PROBLEMS,
|
35 |
-
'text' => __( 'Technical problems / hard to use', $wd_options->prefix ),
|
36 |
-
),
|
37 |
-
2 => array(
|
38 |
-
'id' => self::REASON_FREE_VERSION_IS_LIMITED,
|
39 |
-
'text' => __( 'Free version is limited', $wd_options->prefix ),
|
40 |
-
),
|
41 |
-
3 => array(
|
42 |
-
'id' => self::REASON_PRO_EXPENSIVE,
|
43 |
-
'text' => __( 'Premium is expensive', $wd_options->prefix ),
|
44 |
-
),
|
45 |
-
4 => array(
|
46 |
-
'id' => self::REASON_UPGRADING_TO_PAID_VERSION,
|
47 |
-
'text' => __( 'Upgrading to paid version', $wd_options->prefix ),
|
48 |
-
),
|
49 |
-
5 => array(
|
50 |
-
'id' => self::REASON_TEMPORARY_DEACTIVATION,
|
51 |
-
'text' => __( 'Temporary deactivation', $wd_options->prefix ),
|
52 |
-
),
|
53 |
-
);
|
54 |
-
|
55 |
-
add_action( 'admin_footer', array( $this, 'add_deactivation_feedback_dialog_box' ) );
|
56 |
-
add_action( 'admin_init', array( $this, 'submit_and_deactivate' ) );
|
57 |
-
|
58 |
-
|
59 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'scripts' ) );
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
?>
|
73 |
-
<script>
|
74 |
-
jQuery(document).ready(function () {
|
75 |
-
wdReady("<?php echo $wd_options->prefix; ?>");
|
76 |
-
});
|
77 |
-
</script>
|
78 |
-
<?php
|
79 |
-
|
80 |
-
$deactivate_url =
|
81 |
-
add_query_arg(
|
82 |
-
array(
|
83 |
-
'action' => 'deactivate',
|
84 |
-
'plugin' => plugin_basename( $wd_options->plugin_main_file ),
|
85 |
-
'_wpnonce' => wp_create_nonce( 'deactivate-plugin_' . plugin_basename( $wd_options->plugin_main_file ) )
|
86 |
-
),
|
87 |
-
admin_url( 'plugins.php' )
|
88 |
-
);
|
89 |
-
|
90 |
-
require ( $wd_options->wd_dir_templates . '/display_deactivation_popup.php' );
|
91 |
-
}
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
public function scripts(){
|
96 |
-
$wd_options = $this->config;
|
97 |
-
wp_enqueue_style( 'wd-deactivate-popup', $wd_options->wd_url_css . '/deactivate_popup.css', array(), get_option($wd_options->prefix . "_version" ) );
|
98 |
-
wp_enqueue_script( 'wd-deactivate-popup', $wd_options->wd_url_js . '/deactivate_popup.js', array(), get_option($wd_options->prefix . "_version" ));
|
99 |
-
|
100 |
-
$admin_data = wp_get_current_user();
|
101 |
-
wp_localize_script( 'wd-deactivate-popup', $wd_options->prefix . 'WDDeactivateVars' , array(
|
102 |
-
"prefix" => $wd_options->prefix ,
|
103 |
-
"deactivate_class" => $wd_options->prefix . '_deactivate_link',
|
104 |
-
"email" => $admin_data->data->user_email,
|
105 |
-
"plugin_wd_url" => $wd_options->plugin_wd_url,
|
106 |
-
));
|
107 |
-
|
108 |
-
|
109 |
-
}
|
110 |
-
public function submit_and_deactivate(){
|
111 |
-
$wd_options = $this->config;
|
112 |
-
if( isset( $_POST[$wd_options->prefix . "_submit_and_deactivate"] ) ){
|
113 |
-
|
114 |
-
if( $_POST[$wd_options->prefix . "_submit_and_deactivate"] == 2 || $_POST[$wd_options->prefix . "_submit_and_deactivate"] == 3 ){
|
115 |
-
$api = new DoradoWebApi( $wd_options );
|
116 |
-
$hash = $api->get_hash();
|
117 |
-
if($hash != null){
|
118 |
-
$data = array();
|
119 |
-
|
120 |
-
$data["reason"] = isset($_POST[$wd_options->prefix . "_reasons"]) ? $_POST[$wd_options->prefix . "_reasons"] : "";
|
121 |
-
$data["site_url"] = site_url();
|
122 |
-
$data["plugin_id"] = $wd_options->wd_plugin_id;
|
123 |
-
|
124 |
-
$data["additional_details"] = isset($_POST[$wd_options->prefix . "_additional_details"]) ? $_POST[$wd_options->prefix . "_additional_details"] : "";
|
125 |
-
$admin_data = wp_get_current_user();
|
126 |
-
$data["email"] = isset($_POST[$wd_options->prefix . "_email"]) ? $_POST[$wd_options->prefix . "_email"] : $admin_data->data->user_email;
|
127 |
-
$user_first_name = get_user_meta( $admin_data->ID, "first_name", true );
|
128 |
-
$user_last_name = get_user_meta( $admin_data->ID, "last_name", true );
|
129 |
-
|
130 |
-
$data["name"] = $user_first_name || $user_last_name ? $user_first_name . " " . $user_last_name : $admin_data->data->user_login;
|
131 |
-
$data["hash"] = $hash;
|
132 |
-
$response = wp_remote_post( "https://api.web-dorado.com/deactivatereasons", array(
|
133 |
-
'method' => 'POST',
|
134 |
-
'timeout' => 45,
|
135 |
-
'redirection' => 5,
|
136 |
-
'httpversion' => '1.0',
|
137 |
-
'blocking' => true,
|
138 |
-
'headers' => array(),
|
139 |
-
'body' => json_encode($data),
|
140 |
-
'cookies' => array()
|
141 |
-
)
|
142 |
-
);
|
143 |
-
|
144 |
-
$response_body = (!is_wp_error($response) && isset( $response["body"] )) ? json_decode( $response["body"], true ) : null;
|
145 |
-
if( is_array( $response_body ) && $response_body["body"]["msg"] == "Access" ) {
|
146 |
-
|
147 |
-
}
|
148 |
-
}
|
149 |
-
}
|
150 |
-
if($_POST[$wd_options->prefix . "_submit_and_deactivate"] == 2 || $_POST[$wd_options->prefix . "_submit_and_deactivate"] == 1 ){
|
151 |
-
$deactivate_url =
|
152 |
-
add_query_arg(
|
153 |
-
array(
|
154 |
-
'action' => 'deactivate',
|
155 |
-
'plugin' => plugin_basename( $wd_options->plugin_main_file ),
|
156 |
-
'_wpnonce' => wp_create_nonce( 'deactivate-plugin_' . plugin_basename( $wd_options->plugin_main_file ) )
|
157 |
-
),
|
158 |
-
admin_url( 'plugins.php' )
|
159 |
-
);
|
160 |
-
echo '<script>window.location.href="' . $deactivate_url . '";</script>';
|
161 |
-
}
|
162 |
-
|
163 |
-
}
|
164 |
-
}
|
165 |
-
|
166 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
167 |
-
// Getters & Setters //
|
168 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
169 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
170 |
-
// Private Methods //
|
171 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
172 |
-
|
173 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
174 |
-
// Listeners //
|
175 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
}
|
178 |
|
179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
if (!defined('ABSPATH')) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
class TenWebLibDeactivate
|
7 |
+
{
|
8 |
+
public $deactivate_reasons = array();
|
9 |
+
public $config;
|
10 |
+
// Reason IDs
|
11 |
+
const REASON_PLUGIN_IS_HARD_TO_USE_TECHNICAL_PROBLEMS = "reason_plugin_is_hard_to_use_technical_problems";
|
12 |
+
const REASON_FREE_VERSION_IS_LIMITED = "reason_free_version_limited";
|
13 |
+
const REASON_PRO_EXPENSIVE = "reason_premium_expensive";
|
14 |
+
const REASON_UPGRADING_TO_PAID_VERSION = "reason_upgrading_to_paid_version";
|
15 |
+
const REASON_TEMPORARY_DEACTIVATION = "reason_temporary_deactivation";
|
16 |
+
|
17 |
+
public function __construct($config = array())
|
18 |
+
{
|
19 |
+
$this->config = $config;
|
20 |
+
$wd_options = $this->config;
|
21 |
+
|
22 |
+
$this->deactivate_reasons = array(
|
23 |
+
1 => array(
|
24 |
+
'id' => self::REASON_PLUGIN_IS_HARD_TO_USE_TECHNICAL_PROBLEMS,
|
25 |
+
'text' => __('Technical problems / hard to use', $wd_options->prefix),
|
26 |
+
),
|
27 |
+
2 => array(
|
28 |
+
'id' => self::REASON_FREE_VERSION_IS_LIMITED,
|
29 |
+
'text' => __('Free version is limited', $wd_options->prefix),
|
30 |
+
),
|
31 |
+
3 => array(
|
32 |
+
'id' => self::REASON_UPGRADING_TO_PAID_VERSION,
|
33 |
+
'text' => __('Upgrading to paid version', $wd_options->prefix),
|
34 |
+
),
|
35 |
+
4 => array(
|
36 |
+
'id' => self::REASON_TEMPORARY_DEACTIVATION,
|
37 |
+
'text' => __('Temporary deactivation', $wd_options->prefix),
|
38 |
+
),
|
39 |
+
);
|
40 |
+
|
41 |
+
add_action('admin_footer', array($this, 'add_deactivation_feedback_dialog_box'));
|
42 |
+
add_action('admin_init', array($this, 'submit_and_deactivate'));
|
43 |
+
|
44 |
+
// add_action('admin_enqueue_scripts', array($this, 'scripts'));
|
45 |
+
// Just enqueue styles/scripts and they will be in the footer.
|
46 |
+
$this->scripts();
|
47 |
}
|
48 |
|
49 |
+
public function add_deactivation_feedback_dialog_box()
|
50 |
+
{
|
51 |
+
$deactivate_reasons = $this->deactivate_reasons;
|
52 |
+
$wd_options = $this->config;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
+
?>
|
55 |
+
<script>
|
56 |
+
jQuery(document).ready(function () {
|
57 |
+
tenwebReady("<?php echo $wd_options->prefix; ?>");
|
58 |
+
});
|
59 |
+
</script>
|
60 |
+
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
+
$deactivate_url =
|
63 |
+
add_query_arg(
|
64 |
+
array(
|
65 |
+
'action' => 'deactivate',
|
66 |
+
'plugin' => plugin_basename($wd_options->plugin_main_file),
|
67 |
+
'_wpnonce' => wp_create_nonce('deactivate-plugin_' . plugin_basename($wd_options->plugin_main_file))
|
68 |
+
),
|
69 |
+
admin_url('plugins.php')
|
70 |
+
);
|
71 |
+
|
72 |
+
require($wd_options->wd_dir_templates . '/display_deactivation_popup.php');
|
73 |
}
|
74 |
|
75 |
+
public function scripts()
|
76 |
+
{
|
77 |
+
$wd_options = $this->config;
|
78 |
+
wp_enqueue_style('tenweb-deactivate-popup', $wd_options->wd_url_css . '/deactivate_popup.css', array(), get_option($wd_options->prefix . "_version"));
|
79 |
+
wp_enqueue_script('tenweb-deactivate-popup', $wd_options->wd_url_js . '/deactivate_popup.js', array(), get_option($wd_options->prefix . "_version"));
|
80 |
+
|
81 |
+
$admin_data = wp_get_current_user();
|
82 |
+
wp_localize_script('tenweb-deactivate-popup', $wd_options->prefix . 'WDDeactivateVars', array(
|
83 |
+
"prefix" => $wd_options->prefix,
|
84 |
+
"deactivate_class" => $wd_options->prefix . '_deactivate_link',
|
85 |
+
"email" => $admin_data->data->user_email,
|
86 |
+
"plugin_wd_url" => $wd_options->plugin_wd_url,
|
87 |
+
));
|
88 |
+
}
|
89 |
+
|
90 |
+
public function submit_and_deactivate()
|
91 |
+
{
|
92 |
+
$wd_options = $this->config;
|
93 |
+
if (isset($_POST[$wd_options->prefix . "_submit_and_deactivate"])) {
|
94 |
+
|
95 |
+
if ($_POST[$wd_options->prefix . "_submit_and_deactivate"] == 2 || $_POST[$wd_options->prefix . "_submit_and_deactivate"] == 3) {
|
96 |
+
//$api = new TenWebLibApi( $wd_options );
|
97 |
+
|
98 |
+
$data = array();
|
99 |
+
|
100 |
+
$data["reason"] = isset($_POST[$wd_options->prefix . "_reasons"]) ? $_POST[$wd_options->prefix . "_reasons"] : "";
|
101 |
+
$data["site_url"] = site_url();
|
102 |
+
$data["product_id"] = $wd_options->plugin_id;
|
103 |
+
|
104 |
+
$data["additional_details"] = isset($_POST[$wd_options->prefix . "_additional_details"]) ? $_POST[$wd_options->prefix . "_additional_details"] : "";
|
105 |
+
$admin_data = wp_get_current_user();
|
106 |
+
$data["email"] = isset($_POST[$wd_options->prefix . "_email"]) ? $_POST[$wd_options->prefix . "_email"] : $admin_data->data->user_email;
|
107 |
+
$user_first_name = get_user_meta($admin_data->ID, "first_name", true);
|
108 |
+
$user_last_name = get_user_meta($admin_data->ID, "last_name", true);
|
109 |
+
|
110 |
+
$data["name"] = $user_first_name || $user_last_name ? $user_first_name . " " . $user_last_name : $admin_data->data->user_login;
|
111 |
+
|
112 |
+
$response = wp_remote_post(TEN_WEB_LIB_DEACTIVATION_URL, array(
|
113 |
+
'method' => 'POST',
|
114 |
+
'timeout' => 45,
|
115 |
+
'redirection' => 5,
|
116 |
+
'httpversion' => '1.0',
|
117 |
+
'blocking' => true,
|
118 |
+
'headers' => array("Accept" => "application/x.10webcore.v1+json"),
|
119 |
+
'body' => $data,
|
120 |
+
'cookies' => array()
|
121 |
+
)
|
122 |
+
);
|
123 |
+
|
124 |
+
$response_body = (!is_wp_error($response) && isset($response["body"])) ? json_decode($response["body"], true) : null;
|
125 |
+
/*if (is_array($response_body) && $response_body["body"]["msg"] == "Access") {
|
126 |
+
|
127 |
+
}*/
|
128 |
+
|
129 |
+
}
|
130 |
+
if ($_POST[$wd_options->prefix . "_submit_and_deactivate"] == 2 || $_POST[$wd_options->prefix . "_submit_and_deactivate"] == 1) {
|
131 |
+
$deactivate_url =
|
132 |
+
add_query_arg(
|
133 |
+
array(
|
134 |
+
'action' => 'deactivate',
|
135 |
+
'plugin' => plugin_basename($wd_options->plugin_main_file),
|
136 |
+
'_wpnonce' => wp_create_nonce('deactivate-plugin_' . plugin_basename($wd_options->plugin_main_file))
|
137 |
+
),
|
138 |
+
admin_url('plugins.php')
|
139 |
+
);
|
140 |
+
echo '<script>window.location.href="' . $deactivate_url . '";</script>';
|
141 |
+
}
|
142 |
+
|
143 |
+
}
|
144 |
+
}
|
145 |
+
}
|
wd/includes/notices.php
CHANGED
@@ -3,7 +3,7 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
-
class
|
7 |
|
8 |
protected $promo_link = '';
|
9 |
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
+
class TenWebLibNotices {
|
7 |
|
8 |
protected $promo_link = '';
|
9 |
|
wd/includes/overview.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
-
class
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
@@ -14,50 +14,19 @@
|
|
14 |
// Variables //
|
15 |
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
public $config ;
|
17 |
-
private $tabs = array();
|
18 |
|
19 |
////////////////////////////////////////////////////////////////////////////////////////
|
20 |
// Constructor & Destructor //
|
21 |
////////////////////////////////////////////////////////////////////////////////////////
|
22 |
public function __construct( $config = array() ) {
|
23 |
$this->config = $config;
|
24 |
-
$wd_options = $this->config;
|
25 |
-
$this->tabs = array(
|
26 |
-
'welcome' => array(
|
27 |
-
'name' => __( "Welcome", $wd_options->prefix ),
|
28 |
-
'view' => array( $this, 'wd_overview_welcome' )
|
29 |
-
),
|
30 |
-
'user_guide' => array(
|
31 |
-
'name' => __( "User Guide", $wd_options->prefix ),
|
32 |
-
'view' => array( $this, 'wd_overview_user_guide' )
|
33 |
-
),
|
34 |
-
'deals' => array(
|
35 |
-
'name' => __( 'Deals', $wd_options->prefix ),
|
36 |
-
'view' => array( $this, 'wd_overview_deals' )
|
37 |
-
),
|
38 |
-
'support' => array(
|
39 |
-
'name' => __( "Support", $wd_options->prefix ),
|
40 |
-
'view' => array( $this, 'wd_overview_support' )
|
41 |
-
),
|
42 |
-
'https://web-dorado.com/support/submit-your-idea.html' => array(
|
43 |
-
'name' => __( "Submit Your Idea", $wd_options->prefix ),
|
44 |
-
'view' => false
|
45 |
-
),
|
46 |
-
'https://wordpress.org/support/plugin/' . $wd_options->plugin_wordpress_slug => array(
|
47 |
-
'name' => __( "Forum", $wd_options->prefix ),
|
48 |
-
'view' => false
|
49 |
-
)
|
50 |
-
);
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
}
|
55 |
////////////////////////////////////////////////////////////////////////////////////////
|
56 |
// Public Methods //
|
57 |
////////////////////////////////////////////////////////////////////////////////////////
|
58 |
public function display_overview_page(){
|
59 |
$wd_options = $this->config;
|
60 |
-
$tabs = $this->tabs;
|
61 |
$start_using_url = "";
|
62 |
if(!empty($this->config->custom_post)) {
|
63 |
if (strpos($this->config->custom_post, 'post_type', 0) !== false) {
|
@@ -66,209 +35,9 @@
|
|
66 |
$start_using_url = menu_page_url($this->config->custom_post, false);
|
67 |
}
|
68 |
}
|
69 |
-
if(!empty($this->config->start_using_url)){
|
70 |
-
$start_using_url = $this->config->start_using_url;
|
71 |
-
}
|
72 |
require_once( $wd_options->wd_dir_templates . "/display_overview.php" );
|
73 |
}
|
74 |
-
|
75 |
-
$wd_options = $this->config;
|
76 |
-
//http://api.wordpress.org/plugins/info/1.0/wd-google-maps
|
77 |
-
require_once( $wd_options->wd_dir_templates . "/display_overview_welcome.php" );
|
78 |
-
}
|
79 |
-
public function wd_overview_user_guide(){
|
80 |
-
$wd_options = $this->config;
|
81 |
-
$user_guide = $wd_options->user_guide;
|
82 |
-
require_once( $wd_options->wd_dir_templates . "/display_overview_user_guide.php" );
|
83 |
-
}
|
84 |
-
public function wd_overview_deals(){
|
85 |
-
|
86 |
-
$wd_options = $this->config;
|
87 |
-
$plugins = array(
|
88 |
-
"form-maker" => array(
|
89 |
-
'title' => 'Form Maker',
|
90 |
-
'text' => __( 'Wordpress form builder plugin', $wd_options->prefix ),
|
91 |
-
'content' => __( 'Form Maker is a modern and advanced tool for creating WordPress forms easily and fast.', $wd_options->prefix ),
|
92 |
-
'href' => 'https://web-dorado.com/products/wordpress-form.html'
|
93 |
-
),
|
94 |
-
"photo-gallery" => array(
|
95 |
-
'title' => 'Photo Gallery',
|
96 |
-
'text' => __( 'WordPress Photo Gallery plugin', $wd_options->prefix ),
|
97 |
-
'content' => __( 'Photo Gallery is a fully responsive WordPress Gallery plugin with advanced functionality.', $wd_options->prefix ),
|
98 |
-
'href' => 'https://web-dorado.com/products/wordpress-photo-gallery-plugin.html'
|
99 |
-
),
|
100 |
-
"event-calendar-wd" => array(
|
101 |
-
'title' => 'Event Calendar WD',
|
102 |
-
'text' => __( 'WordPress calendar plugin', $wd_options->prefix ),
|
103 |
-
'content' => __( 'Organize and publish your events in an easy and elegant way using Event Calendar WD.', $wd_options->prefix ),
|
104 |
-
'href' => 'https://web-dorado.com/products/wordpress-event-calendar-wd.html'
|
105 |
-
),
|
106 |
-
"wd-google-maps" => array(
|
107 |
-
'title' => 'WD Google Maps',
|
108 |
-
'text' => __( 'WD Google Maps plugin', $wd_options->prefix ),
|
109 |
-
'content' => __( 'Google Maps WD is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.', $wd_options->prefix ),
|
110 |
-
'href' => 'https://web-dorado.com/products/wordpress-google-maps-plugin.html'
|
111 |
-
),
|
112 |
-
"slider-wd" => array(
|
113 |
-
'title' => 'Slider WD',
|
114 |
-
'text' => __( 'WordPress slider plugin', $wd_options->prefix ),
|
115 |
-
'content' => __( 'Create responsive, highly configurable sliders with various effects for your WordPress site.', $wd_options->prefix ),
|
116 |
-
'href' => 'https://web-dorado.com/products/wordpress-slider-plugin.html'
|
117 |
-
),
|
118 |
-
"spider-event-calendar" => array(
|
119 |
-
'title' => 'Spider Calendar',
|
120 |
-
'text' => __( 'WordPress event calendar plugin', $wd_options->prefix ),
|
121 |
-
'content' => __( 'Spider Event Calendar is a highly configurable product which allows you to have multiple organized events.', $wd_options->prefix ),
|
122 |
-
'href' => 'https://web-dorado.com/products/wordpress-calendar.html'
|
123 |
-
),
|
124 |
-
"wd-instagram-feed" => array(
|
125 |
-
'title' => 'Instagram Feed WD',
|
126 |
-
'text' => __( 'WordPress Instagram Feed plugin', $wd_options->prefix ),
|
127 |
-
'content' => __( 'WD Instagram Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website.', $wd_options->prefix ),
|
128 |
-
'href' => 'https://web-dorado.com/products/wordpress-instagram-feed-wd.html'
|
129 |
-
),
|
130 |
-
);
|
131 |
-
unset($plugins[$wd_options->plugin_wordpress_slug]) ;
|
132 |
-
|
133 |
-
// foreach ( $plugins as $wp_slug => &$plugin ){
|
134 |
-
// $wp_data = $this->
|
135 |
-
//remote_get($wp_slug);
|
136 |
-
// $plugin["downloaded"] = $wp_data["downloaded"];
|
137 |
-
// $plugin["rating"] = $wp_data["rating"];
|
138 |
-
// }
|
139 |
-
|
140 |
-
$themes = array(
|
141 |
-
"business_elite" => array(
|
142 |
-
'title' => 'Business Elite Theme',
|
143 |
-
'href' => 'https://web-dorado.com/wordpress-themes/business-elite.html'
|
144 |
-
),
|
145 |
-
"portfolio_gallery" => array(
|
146 |
-
'title' => 'Portfolio Gallery Theme',
|
147 |
-
'href' => 'https://web-dorado.com/wordpress-themes/portfolio-gallery.html'
|
148 |
-
),
|
149 |
-
"sauron" => array(
|
150 |
-
'title' => 'Sauron Theme',
|
151 |
-
'href' => 'https://web-dorado.com/wordpress-themes/sauron.html'
|
152 |
-
),
|
153 |
-
"business_world" => array(
|
154 |
-
'title' => 'Business World Theme',
|
155 |
-
'href' => 'https://web-dorado.com/wordpress-themes/business-world.html'
|
156 |
-
),
|
157 |
-
);
|
158 |
-
|
159 |
-
require_once( $wd_options->wd_dir_templates . "/display_overview_deals.php" );
|
160 |
-
}
|
161 |
-
public function wd_overview_support(){
|
162 |
-
$wd_options = $this->config;
|
163 |
-
global $wpdb;
|
164 |
-
$server_info = array();
|
165 |
-
|
166 |
-
// Get PHP Version
|
167 |
-
$server_info["Operating System"] = PHP_OS . " (" . ( PHP_INT_SIZE * 8 ) . ")";
|
168 |
-
$server_info["PHP Version"] = PHP_VERSION;
|
169 |
-
$server_info["Server"] = $_SERVER["SERVER_SOFTWARE"];
|
170 |
-
|
171 |
-
// Get MYSQL Version
|
172 |
-
$sql_version = $wpdb->get_var( "SELECT VERSION() AS version" );
|
173 |
-
$server_info["MySQL Version"] = $sql_version;
|
174 |
-
|
175 |
-
// GET SQL Mode
|
176 |
-
$mysqlinfo = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" );
|
177 |
-
if ( is_array( $mysqlinfo ) )
|
178 |
-
$sql_mode = $mysqlinfo[0]->Value;
|
179 |
-
if ( empty( $sql_mode ) )
|
180 |
-
$sql_mode = __( 'Not set', $wd_options->prefix );
|
181 |
-
$server_info["SQL Mode"] = $sql_mode;
|
182 |
-
|
183 |
-
// Get PHP allow_url_fopen
|
184 |
-
if( ini_get( 'allow_url_fopen' ) )
|
185 |
-
$allow_url_fopen = __( 'On', $wd_options->prefix );
|
186 |
-
else
|
187 |
-
$allow_url_fopen = __( 'Off', $wd_options->prefix );
|
188 |
-
$server_info["PHP Allow URL fopen"] = $allow_url_fopen;
|
189 |
-
|
190 |
-
// Get PHP Max Upload Size
|
191 |
-
if (function_exists('wp_max_upload_size'))
|
192 |
-
$upload_max = strval(round((int) wp_max_upload_size() / (1024 * 1024))) . 'M';
|
193 |
-
else if(ini_get('upload_max_filesize'))
|
194 |
-
$upload_max = ini_get('upload_max_filesize');
|
195 |
-
else
|
196 |
-
$upload_max = __('N/A', $wd_options->prefix);
|
197 |
-
|
198 |
-
$server_info["PHP Max Upload Size"] = $upload_max;
|
199 |
-
|
200 |
-
// Get PHP Output buffer Size
|
201 |
-
if( ini_get( 'pcre.backtrack_limit' ) )
|
202 |
-
$backtrack_limit = ini_get( 'pcre.backtrack_limit' );
|
203 |
-
else
|
204 |
-
$backtrack_limit = __( 'N/A', $wd_options->prefix );
|
205 |
-
$server_info["PCRE Backtracking Limit"] = $backtrack_limit;
|
206 |
-
|
207 |
-
// Get PHP Max Post Size
|
208 |
-
if( ini_get( 'post_max_size' ) )
|
209 |
-
$post_max = ini_get( 'post_max_size' );
|
210 |
-
else
|
211 |
-
$post_max = __( 'N/A', $wd_options->prefix );
|
212 |
-
$server_info["PHP Max Post Size"] = $post_max;
|
213 |
-
|
214 |
-
// Get PHP Max execution time
|
215 |
-
if( ini_get( 'max_execution_time' ) )
|
216 |
-
$max_execute = ini_get( 'max_execution_time' );
|
217 |
-
else
|
218 |
-
$max_execute = __( 'N/A', $wd_options->prefix );
|
219 |
-
$server_info["PHP Max Script Execute Time"] = $max_execute;
|
220 |
-
|
221 |
-
|
222 |
-
// Get PHP Memory Limit
|
223 |
-
if( ini_get( 'memory_limit' ) )
|
224 |
-
$memory_limit = ini_get( 'memory_limit' );
|
225 |
-
else
|
226 |
-
$memory_limit = __( 'N/A', $wd_options->prefix );
|
227 |
-
$server_info["PHP Memory Limit"] = $memory_limit;
|
228 |
-
|
229 |
-
// Get actual memory_get_usage
|
230 |
-
if ( function_exists( 'memory_get_usage' ) )
|
231 |
-
$memory_usage = round( memory_get_usage() / 1024 / 1024, 2 ) . __( ' MByte', $wd_options->prefix );
|
232 |
-
else
|
233 |
-
$memory_usage = __( 'N/A', $wd_options->prefix );
|
234 |
-
$server_info["Memory usage"] = $memory_usage;
|
235 |
-
|
236 |
-
// required for EXIF read
|
237 |
-
if ( is_callable( 'exif_read_data' ) )
|
238 |
-
$exif = __( 'Yes', $wd_options->prefix ). " (V" . substr( phpversion( 'exif' ), 0, 4 ) . ")" ;
|
239 |
-
else
|
240 |
-
$exif = __( 'No', $wd_options->prefix );
|
241 |
-
$server_info["PHP Exif support"] = $exif;
|
242 |
-
|
243 |
-
// required for meta data
|
244 |
-
if ( is_callable( 'iptcparse' ) )
|
245 |
-
$iptc = __( 'Yes', $wd_options->prefix );
|
246 |
-
else
|
247 |
-
$iptc = __( 'No', $wd_options->prefix );
|
248 |
-
$server_info["PHP IPTC support"] = $iptc;
|
249 |
-
|
250 |
-
// required for meta data
|
251 |
-
if ( is_callable( 'xml_parser_create' ) )
|
252 |
-
$xml = __( 'Yes', $wd_options->prefix );
|
253 |
-
else
|
254 |
-
$xml = __( 'No', $wd_options->prefix );
|
255 |
-
$server_info["PHP XML support"] = $xml;
|
256 |
-
|
257 |
-
$gd_info = array( "GD support" => __( 'No', $wd_options->prefix ) );
|
258 |
-
if( function_exists( "gd_info" ) ){
|
259 |
-
$gd_info = array();
|
260 |
-
foreach( gd_info() as $key => $val ){
|
261 |
-
if( is_bool($val) ){
|
262 |
-
$gd_info[$key] = $val ? __( 'Yes', $wd_options->prefix ) : __( 'No', $wd_options->prefix );
|
263 |
-
}
|
264 |
-
else{
|
265 |
-
$gd_info[$key] = $val;
|
266 |
-
}
|
267 |
-
}
|
268 |
-
}
|
269 |
-
|
270 |
-
require_once( $wd_options->wd_dir_templates . "/display_overview_support.php" );
|
271 |
-
}
|
272 |
|
273 |
public function overview_styles() {
|
274 |
$wd_options = $this->config;
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
+
class TenWebLibOverview{
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
14 |
// Variables //
|
15 |
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
public $config ;
|
|
|
17 |
|
18 |
////////////////////////////////////////////////////////////////////////////////////////
|
19 |
// Constructor & Destructor //
|
20 |
////////////////////////////////////////////////////////////////////////////////////////
|
21 |
public function __construct( $config = array() ) {
|
22 |
$this->config = $config;
|
23 |
+
$wd_options = $this->config;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
25 |
////////////////////////////////////////////////////////////////////////////////////////
|
26 |
// Public Methods //
|
27 |
////////////////////////////////////////////////////////////////////////////////////////
|
28 |
public function display_overview_page(){
|
29 |
$wd_options = $this->config;
|
|
|
30 |
$start_using_url = "";
|
31 |
if(!empty($this->config->custom_post)) {
|
32 |
if (strpos($this->config->custom_post, 'post_type', 0) !== false) {
|
35 |
$start_using_url = menu_page_url($this->config->custom_post, false);
|
36 |
}
|
37 |
}
|
|
|
|
|
|
|
38 |
require_once( $wd_options->wd_dir_templates . "/display_overview.php" );
|
39 |
}
|
40 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
public function overview_styles() {
|
43 |
$wd_options = $this->config;
|
wd/includes/subscribe.php
CHANGED
@@ -1,138 +1,124 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
}
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
}
|
33 |
-
|
34 |
-
$wd_options = $this->config;
|
35 |
-
wp_enqueue_style( $wd_options->prefix . 'subscribe', $wd_options->wd_url_css . '/subscribe.css' );
|
36 |
-
|
37 |
-
}
|
38 |
-
|
39 |
-
public function subscribe_display_page() {
|
40 |
-
$wd_options = $this->config;
|
41 |
-
$list = array(
|
42 |
-
0 => array(
|
43 |
-
"title" => __( "Your name &", $wd_options->prefix ),
|
44 |
-
"small_text" => __( "Email address", $wd_options->prefix ),
|
45 |
-
"img" => $wd_options->wd_url_img . '/sub_1.png',
|
46 |
-
),
|
47 |
-
1 => array(
|
48 |
-
"title" => __( "Site URL", $wd_options->prefix ),
|
49 |
-
"small_text" => __( "Wordpress version", $wd_options->prefix ),
|
50 |
-
"img" => $wd_options->wd_url_img . '/sub_2.png',
|
51 |
-
),
|
52 |
-
2 => array(
|
53 |
-
"title" => __( "List of plugins", $wd_options->prefix ),
|
54 |
-
"small_text" => "",
|
55 |
-
"img" => $wd_options->wd_url_img . '/sub_4.png',
|
56 |
-
),
|
57 |
-
);
|
58 |
-
|
59 |
-
require_once ( $wd_options->wd_dir_templates . "/display_subscribe.php" );
|
60 |
-
}
|
61 |
-
public function after_subscribe(){
|
62 |
-
$wd_options = $this->config;
|
63 |
-
if( isset( $_GET[ $wd_options->prefix . "_sub_action"] ) ){
|
64 |
-
|
65 |
-
if( $_GET[$wd_options->prefix . "_sub_action"] == "allow" ){
|
66 |
-
$api = new DoradoWebApi($wd_options);
|
67 |
-
$hash = $api->get_hash();
|
68 |
-
|
69 |
-
if( $hash != null ){
|
70 |
-
$all_plugins = array();
|
71 |
-
$plugins = get_plugins();
|
72 |
-
foreach ( $plugins as $slug => $data ) {
|
73 |
-
$plugin = array(
|
74 |
-
"Name" => $data["Name"],
|
75 |
-
"PluginURI" => $data["PluginURI"],
|
76 |
-
"Author" => $data["Author"],
|
77 |
-
"AuthorURI" => $data["AuthorURI"]
|
78 |
-
);
|
79 |
-
$all_plugins[$slug] = $plugin;
|
80 |
-
}
|
81 |
-
|
82 |
-
$data = array();
|
83 |
-
$data["site_url"] = site_url();
|
84 |
-
|
85 |
-
$admin_data = wp_get_current_user();
|
86 |
-
|
87 |
-
$user_first_name = get_user_meta( $admin_data->ID, "first_name", true );
|
88 |
-
$user_last_name = get_user_meta( $admin_data->ID, "last_name", true );
|
89 |
-
|
90 |
-
$data["name"] = $user_first_name || $user_last_name ? $user_first_name . " " . $user_last_name : $admin_data->data->user_login;
|
91 |
-
|
92 |
-
$data["email"] = $admin_data->data->user_email;
|
93 |
-
$data["wp_version"] = get_bloginfo( 'version' );
|
94 |
-
$data["plugin_id"] = $wd_options->wd_plugin_id;
|
95 |
-
$data["hash"] = $hash;
|
96 |
-
$data["all_plugins"] = $all_plugins;
|
97 |
-
|
98 |
-
|
99 |
-
$response = wp_remote_post( "https://api.web-dorado.com/collectuserdata", array(
|
100 |
-
'method' => 'POST',
|
101 |
-
'timeout' => 45,
|
102 |
-
'redirection' => 5,
|
103 |
-
'httpversion' => '1.0',
|
104 |
-
'blocking' => true,
|
105 |
-
'headers' => array(),
|
106 |
-
'body' => json_encode($data),
|
107 |
-
'cookies' => array()
|
108 |
-
)
|
109 |
-
);
|
110 |
-
|
111 |
-
$response_body = (!is_wp_error($response) && isset( $response["body"] )) ? json_decode( $response["body"], true ) : null;
|
112 |
-
|
113 |
-
if( is_array( $response_body ) && $response_body["body"]["msg"] == "Access" ) {
|
114 |
-
|
115 |
-
}
|
116 |
-
}
|
117 |
-
}
|
118 |
-
if ( get_option( $wd_options->prefix . "_subscribe_done" ) != 1 ) {
|
119 |
-
update_option( $wd_options->prefix . "_subscribe_done", 1 );
|
120 |
-
}
|
121 |
-
else {
|
122 |
-
add_option( $wd_options->prefix . "_subscribe_done" , "1", '', 'no');
|
123 |
-
}
|
124 |
-
|
125 |
-
wp_safe_redirect( $wd_options->after_subscribe );
|
126 |
-
}
|
127 |
-
|
128 |
-
}
|
129 |
-
// //////////////////////////////////////////////////////////////////////////////////////
|
130 |
-
// Getters & Setters //
|
131 |
-
// //////////////////////////////////////////////////////////////////////////////////////
|
132 |
-
// //////////////////////////////////////////////////////////////////////////////////////
|
133 |
-
// Private Methods //
|
134 |
-
// //////////////////////////////////////////////////////////////////////////////////////
|
135 |
-
// //////////////////////////////////////////////////////////////////////////////////////
|
136 |
-
// Listeners //
|
137 |
-
// //////////////////////////////////////////////////////////////////////////////////////
|
138 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
if (!defined('ABSPATH')) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
class TenWebLibSubscribe
|
7 |
+
{
|
8 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
9 |
+
// Events //
|
10 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
11 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
12 |
+
// Constants //
|
13 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
14 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
15 |
+
// Variables //
|
16 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
17 |
+
public $config;
|
18 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
19 |
+
// Constructor & Destructor //
|
20 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
21 |
+
public function __construct($config = array())
|
22 |
+
{
|
23 |
+
$this->config = $config;
|
24 |
+
add_action('admin_init', array($this, 'after_subscribe'));
|
25 |
+
}
|
26 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
27 |
+
// Public Methods //
|
28 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
29 |
+
|
30 |
+
public function subscribe_scripts()
|
31 |
+
{
|
32 |
+
$wd_options = $this->config;
|
33 |
+
wp_register_script('subscribe_js', $wd_options->wd_url_js . '/subsribe.js');
|
34 |
+
wp_enqueue_script('subscribe_js');
|
35 |
+
|
36 |
+
}
|
37 |
+
|
38 |
+
public function subscribe_styles()
|
39 |
+
{
|
40 |
+
$wd_options = $this->config;
|
41 |
+
wp_enqueue_style($wd_options->prefix . 'subscribe', $wd_options->wd_url_css . '/subscribe.css');
|
42 |
+
|
43 |
+
}
|
44 |
+
|
45 |
+
public function subscribe_display_page()
|
46 |
+
{
|
47 |
+
$wd_options = $this->config;
|
48 |
+
require_once($wd_options->wd_dir_templates . "/display_subscribe.php");
|
49 |
}
|
50 |
+
|
51 |
+
public function after_subscribe()
|
52 |
+
{
|
53 |
+
$wd_options = $this->config;
|
54 |
+
if (isset($_GET[$wd_options->prefix . "_sub_action"])) {
|
55 |
+
|
56 |
+
if ($_GET[$wd_options->prefix . "_sub_action"] == "allow") {
|
57 |
+
//$api = new TenWebLibApi($wd_options);
|
58 |
+
$all_plugins = array();
|
59 |
+
$plugins = get_plugins();
|
60 |
+
foreach ($plugins as $slug => $data) {
|
61 |
+
$plugin = array(
|
62 |
+
"Name" => $data["Name"],
|
63 |
+
"PluginURI" => $data["PluginURI"],
|
64 |
+
"Author" => $data["Author"],
|
65 |
+
"AuthorURI" => $data["AuthorURI"]
|
66 |
+
);
|
67 |
+
$all_plugins[$slug] = $plugin;
|
68 |
+
}
|
69 |
+
|
70 |
+
$data = array();
|
71 |
+
$data["wp_site_url"] = site_url();
|
72 |
+
|
73 |
+
$admin_data = wp_get_current_user();
|
74 |
+
|
75 |
+
$user_first_name = get_user_meta($admin_data->ID, "first_name", true);
|
76 |
+
$user_last_name = get_user_meta($admin_data->ID, "last_name", true);
|
77 |
+
|
78 |
+
$data["name"] = $user_first_name || $user_last_name ? $user_first_name . " " . $user_last_name : $admin_data->data->user_login;
|
79 |
+
|
80 |
+
$data["email"] = $admin_data->data->user_email;
|
81 |
+
$data["wp_version"] = get_bloginfo('version');
|
82 |
+
$data["product_id"] = $wd_options->plugin_id;
|
83 |
+
$data["all_plugins"] = json_encode($all_plugins);
|
84 |
+
|
85 |
+
|
86 |
+
$response = wp_remote_post(TEN_WEB_LIB_SUBSCRIBE_URL, array(
|
87 |
+
'method' => 'POST',
|
88 |
+
'timeout' => 45,
|
89 |
+
'redirection' => 5,
|
90 |
+
'httpversion' => '1.0',
|
91 |
+
'blocking' => true,
|
92 |
+
'headers' => array("Accept" => "application/x.10webcore.v1+json"),
|
93 |
+
'body' => $data,
|
94 |
+
'cookies' => array()
|
95 |
+
)
|
96 |
+
);
|
97 |
+
|
98 |
+
$response_body = (!is_wp_error($response) && isset($response["body"])) ? json_decode($response["body"], true) : null;
|
99 |
+
|
100 |
+
if (is_array($response_body) && isset($response_body["body"]["msg"]) && $response_body["body"]["msg"] == "ok") {
|
101 |
+
|
102 |
+
}
|
103 |
+
|
104 |
+
}
|
105 |
+
if (get_option($wd_options->prefix . "_subscribe_done") != 1) {
|
106 |
+
update_option($wd_options->prefix . "_subscribe_done", 1);
|
107 |
+
} else {
|
108 |
+
add_option($wd_options->prefix . "_subscribe_done", "1", '', 'no');
|
109 |
+
}
|
110 |
+
|
111 |
+
wp_safe_redirect($wd_options->after_subscribe);
|
112 |
}
|
113 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
116 |
+
// Getters & Setters //
|
117 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
118 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
119 |
+
// Private Methods //
|
120 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
121 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
122 |
+
// Listeners //
|
123 |
+
// //////////////////////////////////////////////////////////////////////////////////////
|
124 |
+
}
|
wd/start.php
CHANGED
@@ -2,7 +2,10 @@
|
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
exit;
|
4 |
}
|
5 |
-
define( '
|
|
|
|
|
|
|
6 |
require_once dirname( __FILE__ ) . '/config.php';
|
7 |
|
8 |
/**
|
@@ -14,7 +17,6 @@
|
|
14 |
* plugin_main_file;
|
15 |
* description;
|
16 |
* plugin_features;
|
17 |
-
* user_guide;
|
18 |
* video_youtube_id;
|
19 |
* plugin_wd_url;
|
20 |
* plugin_wd_demo_link;
|
@@ -26,12 +28,12 @@
|
|
26 |
* custom_post;
|
27 |
*/
|
28 |
|
29 |
-
function
|
30 |
|
31 |
// load files
|
32 |
require_once dirname( __FILE__ ) . '/wd.php';
|
33 |
|
34 |
-
$wd = new
|
35 |
$wd->wd_init( $options );
|
36 |
|
37 |
}
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
exit;
|
4 |
}
|
5 |
+
define( 'TEN_WEB_LIB_API_PLUGIN_DATA_PATH', 'https://api.web-dorado.com/v2/_id_/plugindata' );
|
6 |
+
define( 'TEN_WEB_LIB_SUBSCRIBE_URL', 'https://core.10web.io/api/wp-subscribe' );
|
7 |
+
define( 'TEN_WEB_LIB_DEACTIVATION_URL', 'https://core.10web.io/api/deactivation_reasons' );
|
8 |
+
|
9 |
require_once dirname( __FILE__ ) . '/config.php';
|
10 |
|
11 |
/**
|
17 |
* plugin_main_file;
|
18 |
* description;
|
19 |
* plugin_features;
|
|
|
20 |
* video_youtube_id;
|
21 |
* plugin_wd_url;
|
22 |
* plugin_wd_demo_link;
|
28 |
* custom_post;
|
29 |
*/
|
30 |
|
31 |
+
function ten_web_lib_init( $options ) {
|
32 |
|
33 |
// load files
|
34 |
require_once dirname( __FILE__ ) . '/wd.php';
|
35 |
|
36 |
+
$wd = new TenWebLib();
|
37 |
$wd->wd_init( $options );
|
38 |
|
39 |
}
|
wd/templates/display_deactivation_popup.php
CHANGED
@@ -1,26 +1,26 @@
|
|
1 |
-
<div class="
|
2 |
-
<div class="
|
3 |
-
<div class="
|
4 |
-
<img src="<?php echo $wd_options->wd_url_img . '/spinner.gif'; ?>" class="
|
5 |
</div>
|
6 |
<form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
|
7 |
-
<div class="
|
8 |
<?php _e( "Please let us know why you are deactivating. Your answer will help us to provide you support or sometimes offer discounts. (Optional)", $wd_options->prefix ); ?>:
|
9 |
-
<span class="
|
10 |
</div>
|
11 |
|
12 |
-
<div class="
|
13 |
<?php foreach( $deactivate_reasons as $deactivate_reason_slug => $deactivate_reason ) { ?>
|
14 |
-
<div class="
|
15 |
<input type="radio" value="<?php echo $deactivate_reason["id"];?>" id="<?php echo $wd_options->prefix . "-" .$deactivate_reason["id"]; ?>" name="<?php echo $wd_options->prefix; ?>_reasons" >
|
16 |
<label for="<?php echo $wd_options->prefix . "-" . $deactivate_reason["id"]; ?>"><?php echo $deactivate_reason["text"];?></label>
|
17 |
</div>
|
18 |
<?php } ?>
|
19 |
<div class="<?php echo $wd_options->prefix; ?>_additional_details_wrap"></div>
|
20 |
</div>
|
21 |
-
<div class="
|
22 |
-
<a href="<?php echo $deactivate_url; ?>" data-val="1" class="button button-
|
23 |
-
<a href="<?php echo $deactivate_url; ?>" data-val="2" class="button button-primary button-primary-disabled button-close
|
24 |
</div>
|
25 |
<input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
|
26 |
<?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>
|
1 |
+
<div class="tenweb-opacity tenweb-<?php echo $wd_options->prefix; ?>-opacity"></div>
|
2 |
+
<div class="tenweb-deactivate-popup tenweb-<?php echo $wd_options->prefix; ?>-deactivate-popup">
|
3 |
+
<div class="tenweb-deactivate-popup-opacity tenweb-deactivate-popup-opacity-<?php echo $wd_options->prefix; ?>">
|
4 |
+
<img src="<?php echo $wd_options->wd_url_img . '/spinner.gif'; ?>" class="tenweb-img-loader" >
|
5 |
</div>
|
6 |
<form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
|
7 |
+
<div class="tenweb-deactivate-popup-header">
|
8 |
<?php _e( "Please let us know why you are deactivating. Your answer will help us to provide you support or sometimes offer discounts. (Optional)", $wd_options->prefix ); ?>:
|
9 |
+
<span class="tenweb-deactivate-popup-close-btn"></span>
|
10 |
</div>
|
11 |
|
12 |
+
<div class="tenweb-deactivate-popup-body">
|
13 |
<?php foreach( $deactivate_reasons as $deactivate_reason_slug => $deactivate_reason ) { ?>
|
14 |
+
<div class="tenweb-<?php echo $wd_options->prefix; ?>-reasons">
|
15 |
<input type="radio" value="<?php echo $deactivate_reason["id"];?>" id="<?php echo $wd_options->prefix . "-" .$deactivate_reason["id"]; ?>" name="<?php echo $wd_options->prefix; ?>_reasons" >
|
16 |
<label for="<?php echo $wd_options->prefix . "-" . $deactivate_reason["id"]; ?>"><?php echo $deactivate_reason["text"];?></label>
|
17 |
</div>
|
18 |
<?php } ?>
|
19 |
<div class="<?php echo $wd_options->prefix; ?>_additional_details_wrap"></div>
|
20 |
</div>
|
21 |
+
<div class="tenweb-btns">
|
22 |
+
<a href="<?php echo $deactivate_url; ?>" data-val="1" class="button button-secondary button-close" id="tenweb-<?php echo $wd_options->prefix; ?>-deactivate"><?php _e( "Skip and Deactivate" , $wd_options->prefix ); ?></a>
|
23 |
+
<a href="<?php echo $deactivate_url; ?>" data-val="2" class="button button-primary button-primary-disabled button-close tenweb-<?php echo $wd_options->prefix; ?>-deactivate" id="tenweb-<?php echo $wd_options->prefix; ?>-submit-and-deactivate"><?php _e( "Submit and Deactivate" , $wd_options->prefix ); ?></a>
|
24 |
</div>
|
25 |
<input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
|
26 |
<?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>
|
wd/templates/display_overview.php
CHANGED
@@ -1,43 +1,124 @@
|
|
1 |
-
<div class="
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
</div>
|
12 |
-
<?php } ?></h2>
|
13 |
-
|
14 |
-
<div class="overview_welcome_text">
|
15 |
-
|
16 |
-
<div><?php echo sprintf(__("CONGRATS! You've successfully installed %s WordPress plugin.", $wd_options->prefix), $wd_options->plugin_title); ?></div>
|
17 |
-
<div><?php echo $wd_options->description; ?></div>
|
18 |
</div>
|
19 |
-
|
20 |
-
|
21 |
-
<div class="
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
<?php } ?>
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
?>
|
42 |
-
</div>
|
43 |
</div>
|
1 |
+
<div class="tenweb_overview">
|
2 |
+
<div class="tenweb_header">
|
3 |
+
<div class="container tenweb_clear container_top">
|
4 |
+
<div class="tenweb_logo">
|
5 |
+
<a href="https://10web.io/" target="_blank">
|
6 |
+
<div></div>
|
7 |
+
</a>
|
8 |
+
</div>
|
9 |
+
<div class="tenweb_header_right tenweb_clear">
|
10 |
+
<div class="inline-block header_text"><?php echo sprintf(__("Get Premium %s and Other Solutions Essential for Your WordPress Site.", $wd_options->prefix), $wd_options->plugin_title); ?>
|
11 |
+
</div>
|
12 |
+
<a href="https://my.10web.io/checkout/" target="_blank"
|
13 |
+
class="button"><?php _e("Try Free", $wd_options->prefix); ?></a>
|
14 |
+
</div>
|
15 |
+
</div>
|
16 |
+
<div class="tenweb_header_divider">
|
17 |
+
</div>
|
18 |
+
<div class="container container_bottom">
|
19 |
+
<div class="plugin_info">
|
20 |
+
<img src="<?php echo $wd_options->overview_welcome_image; ?>" class="plugin_logo">
|
21 |
+
<h2><?php _e("Premium ", $wd_options->prefix); ?><?php echo $wd_options->plugin_title; ?></h2>
|
22 |
+
<div class="and"> & </div>
|
23 |
+
</div>
|
24 |
+
<div class="plan_features tenweb_clear">
|
25 |
+
<div class="plan_feature pro_plugins">
|
26 |
+
<div class="logo"></div>
|
27 |
+
<h3><?php _e("60+ pro plugins/Extensions", $wd_options->prefix); ?></h3>
|
28 |
+
<p><?php _e("Access 60+ plugins and extensions, including key plugins, such as gallery, form, slider, social plugins and more.", $wd_options->prefix); ?></p>
|
29 |
+
</div>
|
30 |
+
<div class="plan_feature dashboard">
|
31 |
+
<div class="logo"></div>
|
32 |
+
<h3><?php _e("Unified dashboard", $wd_options->prefix); ?></h3>
|
33 |
+
<p><?php _e("Manage your WordPress websites all in one place within a single dashboard. No need to switch between sites.", $wd_options->prefix); ?></p>
|
34 |
+
</div>
|
35 |
+
<div class="plan_feature pro_themes">
|
36 |
+
<div class="logo"></div>
|
37 |
+
<h3><?php _e("Premium WordPress themes", $wd_options->prefix); ?></h3>
|
38 |
+
<p><?php _e("Professionally designed, responsive themes for your website. Build fully-functional, elegant websites effortlessly.", $wd_options->prefix); ?></p>
|
39 |
+
</div>
|
40 |
+
<?php if ($wd_options->plugin_wordpress_slug != "backup-wd") { ?>
|
41 |
+
<div class="plan_feature backup">
|
42 |
+
<div class="logo"></div>
|
43 |
+
<h3><?php _e("Backup", $wd_options->prefix); ?></h3>
|
44 |
+
<p><?php _e("10Web cloud storage space. Easily and securely backup your website in our storage.", $wd_options->prefix); ?></p>
|
45 |
+
</div>
|
46 |
+
<?php } ?>
|
47 |
+
<?php if ($wd_options->plugin_wordpress_slug != "seo-by-10web") { ?>
|
48 |
+
<div class="plan_feature seo">
|
49 |
+
<div class="logo"></div>
|
50 |
+
<h3><?php _e("SEO", $wd_options->prefix); ?></h3>
|
51 |
+
<p><?php _e("Improve search rankings of your WordPress site with a comprehensive search engine optimization solution.", $wd_options->prefix); ?></p>
|
52 |
+
</div>
|
53 |
+
<?php } ?>
|
54 |
+
<div class="plan_feature security">
|
55 |
+
<div class="logo"></div>
|
56 |
+
<h3><?php _e("Security", $wd_options->prefix); ?></h3>
|
57 |
+
<p><?php _e("Protect your WordPress site from security issues and threats with a powerful security service coming soon to 10Web.", $wd_options->prefix); ?></p>
|
58 |
+
</div>
|
59 |
+
<?php if ($wd_options->plugin_wordpress_slug != "image-optimizer-wd") { ?>
|
60 |
+
<div class="plan_feature image_optimizer">
|
61 |
+
<div class="logo"></div>
|
62 |
+
<h3><?php _e("Image optimization", $wd_options->prefix); ?></h3>
|
63 |
+
<p><?php _e("Automatically resize and compress all images on your website to save space and improve site speed.", $wd_options->prefix); ?></p>
|
64 |
+
</div>
|
65 |
+
<?php } ?>
|
66 |
+
<div class="plan_feature hosting">
|
67 |
+
<div class="logo"></div>
|
68 |
+
<h3><?php _e("Hosting", $wd_options->prefix); ?></h3>
|
69 |
+
<p><?php _e("We’ll soon be offering affordable hosting solution with WordPress-friendly features and great customer support.", $wd_options->prefix); ?></p>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
<a href="https://my.10web.io/checkout/" target="_blank"
|
73 |
+
class="button"><?php _e("Get free for 14 days", $wd_options->prefix); ?></a>
|
74 |
+
<div><a href="https://10web.io/" target="_blank"
|
75 |
+
class="more white"><?php _e("Learn More", $wd_options->prefix); ?></a></div>
|
76 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
</div>
|
78 |
+
<?php if (count($wd_options->plugin_features)) { ?>
|
79 |
+
<div class="tenweb_plugin_features">
|
80 |
+
<div class="container">
|
81 |
+
<h2><?php _e("Premium ", $wd_options->prefix); ?><?php echo $wd_options->plugin_title; ?><?php _e(" features you get!", $wd_options->prefix); ?></h2>
|
82 |
+
<div class="plugin_features tenweb_clear">
|
83 |
+
<?php foreach ($wd_options->plugin_features as $features) { ?>
|
84 |
+
<div class="plugin_feature">
|
85 |
+
<div class="plugin_feature_logo">
|
86 |
+
<img src="<?php echo $features['logo']; ?>">
|
87 |
+
</div>
|
88 |
+
<h3><?php echo $features['title']; ?></h3>
|
89 |
+
<p><?php echo $features['description']; ?></p>
|
90 |
+
</div>
|
91 |
+
<?php } ?>
|
92 |
+
</div>
|
93 |
+
<div class="and circle"> & </div>
|
94 |
+
<h3 class="more_features"><?php _e("More great features of the plugin", $wd_options->prefix); ?></h3>
|
95 |
+
<a href="<?php echo $wd_options->plugin_wd_url; ?>" target="_blank"
|
96 |
+
class="more blue"><?php _e("Learn More", $wd_options->prefix); ?></a>
|
97 |
+
</div>
|
98 |
+
</div>
|
99 |
+
<?php }
|
100 |
+
if(trim($wd_options->plugin_wd_demo_link) != "" || trim($wd_options->plugin_wd_docs_link) != ""){ ?>
|
101 |
+
<div class="tenweb_how_it_works">
|
102 |
+
<div class="container">
|
103 |
+
<h2><?php _e("Checkout how it works", $wd_options->prefix); ?></h2>
|
104 |
+
<?php
|
105 |
+
if(trim($wd_options->plugin_wd_demo_link) != ""){ ?>
|
106 |
+
<a href="<?php echo $wd_options->plugin_wd_demo_link; ?>" target="_blank"
|
107 |
+
class="button transparent"><?php _e("Demo", $wd_options->prefix); ?></a>
|
108 |
+
<?php }
|
109 |
+
if(trim($wd_options->plugin_wd_docs_link) != ""){ ?>
|
110 |
+
<a href="<?php echo $wd_options->plugin_wd_docs_link; ?>" target="_blank"
|
111 |
+
class="button transparent"><?php _e("User Guide", $wd_options->prefix); ?></a>
|
112 |
+
<?php } ?>
|
113 |
+
</div>
|
114 |
+
</div>
|
115 |
<?php } ?>
|
116 |
+
<div class="tenweb_footer <?php echo trim($wd_options->plugin_wd_demo_link) == "" ? "without_demo" : ""; ?>">
|
117 |
+
<div class="container">
|
118 |
+
<h2><?php echo $wd_options->description; ?></h2>
|
119 |
+
<p><?php echo sprintf(__("Get Premium %s and Other Solutions Essential for Your WordPress Site.", $wd_options->prefix), $wd_options->plugin_title); ?></p>
|
120 |
+
<a href="https://my.10web.io/checkout/" target="_blank"
|
121 |
+
class="button"><?php _e("Get free for 14 days", $wd_options->prefix); ?></a>
|
122 |
+
</div>
|
123 |
+
</div>
|
|
|
|
|
124 |
</div>
|
wd/templates/display_overview_deals.php
DELETED
@@ -1,81 +0,0 @@
|
|
1 |
-
<div id="deals">
|
2 |
-
|
3 |
-
<div id="plugins">
|
4 |
-
<div class="deals_header deals_header_plugins">
|
5 |
-
<a href="https://web-dorado.com/wordpress-plugins-bundle.html" target="_blank">
|
6 |
-
<div class="wd-table">
|
7 |
-
<div class="wd-cell wd-text-right wd-valign-middle">
|
8 |
-
<img src="<?php echo $wd_options->wd_url_img . '/' . $wd_options->prefix . '_main_plugin.png'; ?>" width="100px">
|
9 |
-
</div>
|
10 |
-
<div class="wd-cell wd-valign-middle">
|
11 |
-
<div class="titles_wrap">
|
12 |
-
<div class="deals_main_title"><?php echo sprintf( __( "Get %s", $wd_options->prefix ), $wd_options->plugin_title ); ?></div>
|
13 |
-
<div class="deals_main_title"><span class="higlight">+27 </span><?php echo __( "plugins", $wd_options->prefix ); ?></div>
|
14 |
-
<div class="deals_secondary_title"><?php echo __( "for", $wd_options->prefix ); ?><span class="higlight"> $99 </span><?php echo __( "only", $wd_options->prefix ); ?></div>
|
15 |
-
</div>
|
16 |
-
<div class="deals_save"><?php echo __( "Save 80%", $wd_options->prefix ); ?></div>
|
17 |
-
</div>
|
18 |
-
</div>
|
19 |
-
</a>
|
20 |
-
</div>
|
21 |
-
<div class="deals_content">
|
22 |
-
<?php foreach( $plugins as $wp_slug => &$plugin ){ ?>
|
23 |
-
|
24 |
-
<div class="deal_block">
|
25 |
-
<div class="deal_title">
|
26 |
-
<a href="<?php echo $plugin["href"]; ?>" target="_blank" >
|
27 |
-
<img src = "<?php echo $wd_options->wd_url_img . '/plugins/' . $wp_slug . '.png'; ?>">
|
28 |
-
<h2><?php echo $plugin["title"]; ?></h2>
|
29 |
-
</a>
|
30 |
-
</div>
|
31 |
-
<div class="deal_desc">
|
32 |
-
<p><?php echo $plugin["content"]; ?></p>
|
33 |
-
<div class="deal_desc_footer">
|
34 |
-
<div class="download_btn">
|
35 |
-
<a href="<?php echo $plugin["href"]; ?>" target="_blank" ><?php _e( "Download", $wd_options->prefix ); ?></a>
|
36 |
-
</div>
|
37 |
-
</div>
|
38 |
-
</div>
|
39 |
-
|
40 |
-
</div>
|
41 |
-
<?php } ?>
|
42 |
-
</div>
|
43 |
-
<div class="get_all_deals">
|
44 |
-
<a href="https://web-dorado.com/wordpress-plugins-bundle.html" target="_blank" >
|
45 |
-
<?php _e( "Get all plugins", $wd_options->prefix ); ?>
|
46 |
-
</a>
|
47 |
-
</div>
|
48 |
-
</div>
|
49 |
-
<div id="themes">
|
50 |
-
<div class="deals_header deals_header_themes">
|
51 |
-
<a href="https://web-dorado.com/wordpress-themes-bundle.html" target="_blank">
|
52 |
-
<div class="wd-table">
|
53 |
-
<div class="wd-cell wd-text-right wd-valign-middle">
|
54 |
-
</div>
|
55 |
-
<div class="wd-cell wd-valign-middle">
|
56 |
-
<div class="titles_wrap">
|
57 |
-
<div class="deals_main_title"><?php echo __( "Get all 11 themes", $wd_options->prefix ); ?></div>
|
58 |
-
<div class="deals_main_title"><?php echo __( "for", $wd_options->prefix ); ?><span class="higlight"> $40 </span><?php echo __( "only", $wd_options->prefix ); ?></div>
|
59 |
-
</div>
|
60 |
-
<div class="deals_save"><?php echo __( "Save 70%", $wd_options->prefix ); ?></div>
|
61 |
-
</div>
|
62 |
-
</div>
|
63 |
-
</a>
|
64 |
-
</div>
|
65 |
-
<div class="deals_content">
|
66 |
-
<?php foreach( $themes as $slug => $theme ){ ?>
|
67 |
-
<div class="theme_block">
|
68 |
-
<a href="<?php echo $theme["href"]; ?>" target="_blank" >
|
69 |
-
<img src = "<?php echo $wd_options->wd_url_img . '/plugins/' . $slug . '.png'; ?>" width="100%;">
|
70 |
-
<div><?php echo $theme["title"]; ?></div>
|
71 |
-
</a>
|
72 |
-
</div>
|
73 |
-
<?php } ?>
|
74 |
-
</div>
|
75 |
-
<div class="get_all_deals">
|
76 |
-
<a href="https://web-dorado.com/wordpress-themes-bundle.html" target="_blank" >
|
77 |
-
<?php _e( "Find out more", $wd_options->prefix ); ?>
|
78 |
-
</a>
|
79 |
-
</div>
|
80 |
-
</div>
|
81 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wd/templates/display_overview_support.php
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
<div id="support">
|
2 |
-
<p class="wd-support-main">
|
3 |
-
<?php echo sprintf( __("You may contact us by filling in this form or by email %s any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.", $wd_options->prefix), "<span class='support_email'>(support@web-dorado.com)</span>") ;?>
|
4 |
-
</p>
|
5 |
-
<div class="wd-overview-site-deatils">
|
6 |
-
<h2><?php _e( "Site Details", $wd_options->prefix ); ?></h2>
|
7 |
-
<p>
|
8 |
-
<?php _e( "When contacting support, consider copying and pasting this information in your support request.", $wd_options->prefix ); ?>
|
9 |
-
<br>
|
10 |
-
<?php _e( "It helps us troubleshoot more quickly.", $wd_options->prefix ); ?>
|
11 |
-
</p>
|
12 |
-
<?php
|
13 |
-
if ( function_exists('current_user_can' ) ) {
|
14 |
-
if ( current_user_can('manage_options') ) {
|
15 |
-
?>
|
16 |
-
<div class="wd-site-deatils wd-table">
|
17 |
-
<button id="wd-copy"><?php _e( "Copy to Clipboard", $wd_options->prefix ); ?></button>
|
18 |
-
<div id="wd-site-deatils">
|
19 |
-
<textarea rows="10" id="wd-site-deatils-textarea"><?php
|
20 |
-
_e( "Server Settings", $wd_options->prefix );
|
21 |
-
echo ' ';
|
22 |
-
foreach( $server_info as $key => $val ){
|
23 |
-
echo $key . ": " . $val . ' ';
|
24 |
-
}
|
25 |
-
echo ' ';
|
26 |
-
_e( "Graphic Library", $wd_options->prefix );
|
27 |
-
echo ' ';
|
28 |
-
foreach( $gd_info as $key => $val ){
|
29 |
-
echo $key . ": " . $val . ' ';
|
30 |
-
}
|
31 |
-
echo ' ';
|
32 |
-
_e("Active Plugins", $wd_options->prefix);
|
33 |
-
echo ' ';
|
34 |
-
$activepl = get_option('active_plugins');
|
35 |
-
$plugins = get_plugins();
|
36 |
-
$activated_plugins = array();
|
37 |
-
foreach ( $activepl as $p ) {
|
38 |
-
if ( isset($plugins[$p]) ) {
|
39 |
-
array_push($activated_plugins, $plugins[$p]);
|
40 |
-
echo ' ' . $plugins[$p]['Name'];
|
41 |
-
}
|
42 |
-
}
|
43 |
-
echo ' ';
|
44 |
-
_e("Active theme", $wd_options->prefix);
|
45 |
-
echo ' ';
|
46 |
-
echo wp_get_theme();
|
47 |
-
?></textarea>
|
48 |
-
</div>
|
49 |
-
</div>
|
50 |
-
<?php
|
51 |
-
}
|
52 |
-
}
|
53 |
-
?>
|
54 |
-
|
55 |
-
</div>
|
56 |
-
<div class="contact_us_wrap">
|
57 |
-
<a href="https://web-dorado.com/support/contact-us.html" target="_blank" class="contact_us"><?php _e("Contact us", $wd_options->prefix); ?></a>
|
58 |
-
</div>
|
59 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wd/templates/display_overview_user_guide.php
DELETED
@@ -1,46 +0,0 @@
|
|
1 |
-
<div id="user_guide">
|
2 |
-
<div class="wd-table">
|
3 |
-
<div class="wd-cell">
|
4 |
-
<?php for( $i = 0; $i < ceil( count($user_guide) / 2 ); $i++) { ?>
|
5 |
-
<div class="user_guide_item">
|
6 |
-
<a href="<?php echo $user_guide[$i]["url"]; ?>" class="user_guide_title" target="_blank"><?php echo $user_guide[$i]["main_title"]; ?></a>
|
7 |
-
<?php foreach( $user_guide[$i]["titles"] as $title ) { ?>
|
8 |
-
<div><a href="<?php echo $title["url"]; ?>" target="_blank" class="user_guide_titles"><?php echo $title["title"]; ?></a></div>
|
9 |
-
<?php } ?>
|
10 |
-
</div>
|
11 |
-
<?php } ?>
|
12 |
-
</div>
|
13 |
-
<div class="wd-cell">
|
14 |
-
<?php for( $i = $i; $i < count($user_guide); $i++) { ?>
|
15 |
-
<div class="user_guide_item">
|
16 |
-
<a href="<?php echo $user_guide[$i]["url"]; ?>" class="user_guide_title" target="_blank"><?php echo $user_guide[$i]["main_title"]; ?></a>
|
17 |
-
<?php foreach( $user_guide[$i]["titles"] as $title ) { ?>
|
18 |
-
<div><a href="<?php echo $title["url"]; ?>" target="_blank" class="user_guide_titles"><?php echo $title["title"]; ?></a></div>
|
19 |
-
<?php } ?>
|
20 |
-
</div>
|
21 |
-
<?php } ?>
|
22 |
-
</div>
|
23 |
-
<div class="wd-cell">
|
24 |
-
<?php if($wd_options->plugin_wd_demo_link) { ?>
|
25 |
-
<a href="<?php echo $wd_options->plugin_wd_demo_link; ?>" class="user_guide_demo" target="_blank">
|
26 |
-
<?php _e( "Demo", $wd_options->prefix ); ?>
|
27 |
-
</a>
|
28 |
-
<?php } ?>
|
29 |
-
<a href="<?php echo $wd_options->plugin_wd_url; ?>" class="user_guide_plugin" target="_blank">
|
30 |
-
<?php echo $wd_options->plugin_title; ?>
|
31 |
-
</a>
|
32 |
-
<a href="https://wordpress.org/support/plugin/<?php echo $wd_options->plugin_wordpress_slug; ?>" class="user_guide_support_forum" target="_blank">
|
33 |
-
<?php _e( "Support Forum", $wd_options->prefix ); ?>
|
34 |
-
</a>
|
35 |
-
<a href="https://web-dorado.com/support/faq.html" class="user_guide_faq" target="_blank">
|
36 |
-
<?php _e( "FAQ", $wd_options->prefix ); ?>
|
37 |
-
</a>
|
38 |
-
<?php if($wd_options->plugin_wd_addons_link) { ?>
|
39 |
-
<a href="<?php echo $wd_options->plugin_wd_addons_link; ?>" class="user_guide_addons" target="_blank">
|
40 |
-
<?php _e( "Addons", $wd_options->prefix ); ?>
|
41 |
-
</a>
|
42 |
-
<?php } ?>
|
43 |
-
</div>
|
44 |
-
</div>
|
45 |
-
</div>
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wd/templates/display_overview_welcome.php
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
<div id="welcome">
|
2 |
-
<!-- display plugin video -->
|
3 |
-
<?php if( $wd_options->video_youtube_id ){ ?>
|
4 |
-
<div class="wd-video_container">
|
5 |
-
<iframe width="100%" height="400" src="//www.youtube.com/embed/<?php echo $wd_options->video_youtube_id; ?>?rel=0" frameborder="0" allowfullscreen></iframe>
|
6 |
-
</div>
|
7 |
-
<?php }
|
8 |
-
else if( $wd_options->overview_welcome_image ) { ?>
|
9 |
-
<img src="<?php echo $wd_options->overview_welcome_image; ?>" width="100%" />
|
10 |
-
|
11 |
-
<?php } ?>
|
12 |
-
|
13 |
-
<!-- display plugin features -->
|
14 |
-
<div class="plugin_features">
|
15 |
-
<!-- if your plugin has a wizard-->
|
16 |
-
<?php if( $wd_options->plugin_wizard_link ) { ?>
|
17 |
-
<div class="wd-tour">
|
18 |
-
<a class="wd-tour-btn" href="<?php echo $wd_options->plugin_wizard_link;?>"><?php _e( "Run Install Wizard ",$wd_options->prefix); ?></a>
|
19 |
-
</div>
|
20 |
-
<?php } ?>
|
21 |
-
<?php foreach( $wd_options->plugin_features as $feature ){ ?>
|
22 |
-
<h2 class="plugin_feature_title"><?php echo $feature["title"]; ?></h2>
|
23 |
-
<div class="plugin_feature_description"><?php echo $feature["description"]; ?></div>
|
24 |
-
<?php } ?>
|
25 |
-
<div class="more_features_wrap">
|
26 |
-
<a href="<?php echo $wd_options->plugin_wd_url; ?>" class="more_features" target="_blank"><?php _e( "More features", $wd_options->prefix ); ?></a>
|
27 |
-
</div>
|
28 |
-
</div>
|
29 |
-
|
30 |
-
</div>
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wd/templates/display_subscribe.php
CHANGED
@@ -1,47 +1,47 @@
|
|
1 |
-
<div class="
|
2 |
-
<div class="
|
3 |
-
<div class="imgs">
|
4 |
-
<img src="<?php echo $wd_options->wd_url_img . '/wp_logo.png'; ?>">
|
5 |
-
<span>+</span>
|
6 |
-
<img src="<?php echo $wd_options->wd_url_img . '/' . $wd_options->prefix . '_main_plugin.png'; ?>">
|
7 |
-
</div>
|
8 |
<div class="texts">
|
9 |
-
<
|
|
|
|
|
10 |
<p>
|
11 |
-
|
12 |
-
$pp_text = "<a target='_blank' href='https://web-dorado.com/web-dorado-privacy-statement.html'>" . __("Privacy Policy", $wd_options->prefix) . "</a>";
|
13 |
-
echo sprintf(__("Allow %s to collect some usage data, to be able to provide you more out of your plugin experience - awesome customer support and more. Check how we handle your personal data in our %s. You can always customize your preferences from the emails your receive from us. You can choose to skip this step, %s will still work just fine.", $wd_options->prefix), '<strong>Web-Dorado</strong>', $pp_text, $wd_options->plugin_title);
|
14 |
-
?>
|
15 |
</p>
|
16 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
<div class="btns">
|
18 |
-
<a href="<?php echo "admin.php?page=" . $wd_options->prefix . "_subscribe&". $wd_options->prefix . "_sub_action=allow" ;?>" class="allow_and_continue"
|
19 |
<img src="<?php echo $wd_options->wd_url_img . '/loader.gif';?>" class="wd_loader">
|
20 |
-
<a href="<?php echo "admin.php?page=" . $wd_options->prefix . "_subscribe&" . $wd_options->prefix . "_sub_action=skip" ;?>" class="skip"
|
21 |
-
</div>
|
22 |
-
<a href="#" class="permissions"><?php _e( "What data is being collected?" , $wd_options->prefix ); ?></a>
|
23 |
-
<div class="list">
|
24 |
-
<?php foreach( $list as $list_item ) { ?>
|
25 |
-
<div class="list_item">
|
26 |
-
<div class="list_img_wrap"><img src="<?php echo $list_item["img"]; ?>"></div>
|
27 |
-
<div class="list_text_wrap">
|
28 |
-
<div class="list_title"><?php echo $list_item["title"]; ?></div>
|
29 |
-
<div class="list_text"><?php echo $list_item["small_text"]; ?></div>
|
30 |
-
</div>
|
31 |
-
</div>
|
32 |
-
<?php } ?>
|
33 |
</div>
|
34 |
</div>
|
35 |
-
<div class="
|
36 |
-
|
|
|
|
|
|
|
37 |
<li>
|
38 |
-
<a href="https://
|
39 |
<?php _e( "Privacy Policy", $wd_options->prefix ); ?>
|
40 |
</a>
|
41 |
-
<span>.</span>
|
42 |
</li>
|
|
|
43 |
<li>
|
44 |
-
<a href="https://
|
45 |
<?php _e( "Terms of Use", $wd_options->prefix ); ?>
|
46 |
</a>
|
47 |
</li>
|
1 |
+
<div class="tenweb_subscribe">
|
2 |
+
<div class="tenweb_subscribe-content">
|
|
|
|
|
|
|
|
|
|
|
3 |
<div class="texts">
|
4 |
+
<div class="hi_there"></div>
|
5 |
+
<h2><?php _e( "Hi there!", $wd_options->prefix ); ?></h2>
|
6 |
+
<h5><?php _e( "Allow 10Web to collect some usage data", $wd_options->prefix ); ?></h5>
|
7 |
<p>
|
8 |
+
<?php echo sprintf( __( "This will allow you to get more out of your plugin experience - get awesome customer support, receive exclusive deals and discounts on premium products and more. You can choose to skip this step, %s will still work just fine.", $wd_options->prefix ), $wd_options->plugin_title ); ?>
|
|
|
|
|
|
|
9 |
</p>
|
10 |
</div>
|
11 |
+
<div class="permissions"><?php _e( "What data is being collected?" , $wd_options->prefix ); ?></div>
|
12 |
+
<div class="list tenweb_clear">
|
13 |
+
<div class="list_item user_info">
|
14 |
+
<div class="list_logo"></div>
|
15 |
+
<div class="list_text_wrap"> <?php _e( "Your name & Email address", $wd_options->prefix ); ?></div>
|
16 |
+
</div>
|
17 |
+
<div class="list_item wp_info">
|
18 |
+
<div class="list_logo"></div>
|
19 |
+
<div class="list_text_wrap"> <?php _e( "Site URL, Wordpress version", $wd_options->prefix ); ?></div>
|
20 |
+
</div>
|
21 |
+
<div class="list_item plugins_info">
|
22 |
+
<div class="list_logo"></div>
|
23 |
+
<div class="list_text_wrap"> <?php _e( "List of plugins", $wd_options->prefix ); ?></div>
|
24 |
+
</div>
|
25 |
+
</div>
|
26 |
<div class="btns">
|
27 |
+
<a href="<?php echo "admin.php?page=" . $wd_options->prefix . "_subscribe&". $wd_options->prefix . "_sub_action=allow" ;?>" class="allow_and_continue button"><?php _e( "Allow & Continue", $wd_options->prefix ); ?></a>
|
28 |
<img src="<?php echo $wd_options->wd_url_img . '/loader.gif';?>" class="wd_loader">
|
29 |
+
<a href="<?php echo "admin.php?page=" . $wd_options->prefix . "_subscribe&" . $wd_options->prefix . "_sub_action=skip" ;?>" class="skip more" ><?php _e( "Skip", $wd_options->prefix ); ?></a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
</div>
|
31 |
</div>
|
32 |
+
<div class="tenweb_subscribe-top-footer">
|
33 |
+
<?php _e( "We will not sell, share, or distribute your personal information to third parties.", $wd_options->prefix ); ?>
|
34 |
+
</div>
|
35 |
+
<div class="tenweb_subscribe-footer">
|
36 |
+
<ul class="tenweb_footer-menu tenweb_clear">
|
37 |
<li>
|
38 |
+
<a href="https://10web.io/privacy-policy/" target="_blank">
|
39 |
<?php _e( "Privacy Policy", $wd_options->prefix ); ?>
|
40 |
</a>
|
|
|
41 |
</li>
|
42 |
+
<li>| </li>
|
43 |
<li>
|
44 |
+
<a href="https://10web.io/terms-of-services/" target="_blank">
|
45 |
<?php _e( "Terms of Use", $wd_options->prefix ); ?>
|
46 |
</a>
|
47 |
</li>
|
wd/wd.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
-
class
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
@@ -17,7 +17,7 @@
|
|
17 |
public $overview_instance;
|
18 |
public $subscribe_instance;
|
19 |
public $config;
|
20 |
-
private $version = "1.
|
21 |
|
22 |
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
// Constructor & Destructor //
|
@@ -37,10 +37,10 @@
|
|
37 |
if(!is_array($options)){
|
38 |
return false;
|
39 |
}
|
40 |
-
$config = new
|
41 |
$config->set_options( $options );
|
42 |
$this->config = $config;
|
43 |
-
if( !class_exists("
|
44 |
$this->wd_includes();
|
45 |
}
|
46 |
|
@@ -52,7 +52,7 @@
|
|
52 |
// Create overview menu page
|
53 |
public function wd_overview_menu_page() {
|
54 |
$wd_options = $this->config;
|
55 |
-
|
56 |
$capability = $wd_options->menu_capability ? $wd_options->menu_capability : "manage_options";
|
57 |
if( get_option( $wd_options->prefix . "_subscribe_done" ) == 1 || $wd_options->subscribe === false ){
|
58 |
$parent_slug = $wd_options->custom_post;
|
@@ -61,21 +61,26 @@
|
|
61 |
|
62 |
$subscribe_page = add_menu_page( $wd_options->plugin_menu_title, $wd_options->plugin_menu_title, "manage_options", $wd_options->prefix . '_subscribe' , array( $this, 'display_subscribew_page' ), $wd_options->plugin_menu_icon, $wd_options->menu_position );
|
63 |
|
64 |
-
$subscribe_instance = new
|
65 |
$this->subscribe_instance = $subscribe_instance;
|
66 |
add_action( 'admin_print_styles-' . $subscribe_page, array( $subscribe_instance, 'subscribe_styles' ) );
|
67 |
add_action( 'admin_print_scripts-' . $subscribe_page, array( $subscribe_instance, 'subscribe_scripts' ) );
|
68 |
|
69 |
$parent_slug = null;
|
70 |
-
}
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
79 |
}
|
80 |
|
81 |
public function display_subscribew_page(){
|
@@ -106,11 +111,11 @@
|
|
106 |
$current_url = $_SERVER['REQUEST_URI'];
|
107 |
if( $wd_options->deactivate === true ){
|
108 |
if(strpos( $current_url, "plugins.php" ) !== false ){
|
109 |
-
new
|
110 |
}
|
111 |
}
|
112 |
|
113 |
-
new
|
114 |
|
115 |
}
|
116 |
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
+
class TenWebLib {
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
17 |
public $overview_instance;
|
18 |
public $subscribe_instance;
|
19 |
public $config;
|
20 |
+
private $version = "1.1.1";
|
21 |
|
22 |
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
// Constructor & Destructor //
|
37 |
if(!is_array($options)){
|
38 |
return false;
|
39 |
}
|
40 |
+
$config = new TenWebLibConfig();
|
41 |
$config->set_options( $options );
|
42 |
$this->config = $config;
|
43 |
+
if( !class_exists("TenWebLibApi") ){
|
44 |
$this->wd_includes();
|
45 |
}
|
46 |
|
52 |
// Create overview menu page
|
53 |
public function wd_overview_menu_page() {
|
54 |
$wd_options = $this->config;
|
55 |
+
|
56 |
$capability = $wd_options->menu_capability ? $wd_options->menu_capability : "manage_options";
|
57 |
if( get_option( $wd_options->prefix . "_subscribe_done" ) == 1 || $wd_options->subscribe === false ){
|
58 |
$parent_slug = $wd_options->custom_post;
|
61 |
|
62 |
$subscribe_page = add_menu_page( $wd_options->plugin_menu_title, $wd_options->plugin_menu_title, "manage_options", $wd_options->prefix . '_subscribe' , array( $this, 'display_subscribew_page' ), $wd_options->plugin_menu_icon, $wd_options->menu_position );
|
63 |
|
64 |
+
$subscribe_instance = new TenWebLibSubscribe($this->config);
|
65 |
$this->subscribe_instance = $subscribe_instance;
|
66 |
add_action( 'admin_print_styles-' . $subscribe_page, array( $subscribe_instance, 'subscribe_styles' ) );
|
67 |
add_action( 'admin_print_scripts-' . $subscribe_page, array( $subscribe_instance, 'subscribe_scripts' ) );
|
68 |
|
69 |
$parent_slug = null;
|
70 |
+
}
|
71 |
+
if ($wd_options->display_overview) {
|
72 |
+
$title = __( 'Premium', $wd_options->prefix );
|
73 |
+
if ( FALSE && !get_transient( $wd_options->prefix . '_overview_visited' ) ) {
|
74 |
+
$title .= ' <span class="update-plugins count-2" > <span class="plugin-count">1</span></span>';
|
75 |
+
}
|
76 |
+
$overview_page = add_submenu_page( $parent_slug, __( 'Premium', $wd_options->prefix ), '<span style="color:#4481ea;">' . $title . '</span>', $capability, 'overview_' . $wd_options->prefix, array( $this, 'display_overview_page' ) );
|
77 |
+
|
78 |
+
|
79 |
+
$overview_instance = new TenWebLibOverview( $this->config );
|
80 |
+
$this->overview_instance = $overview_instance;
|
81 |
+
add_action( 'admin_print_styles-' . $overview_page, array( $overview_instance, 'overview_styles' ) );
|
82 |
+
add_action( 'admin_print_scripts-' . $overview_page, array( $overview_instance, 'overview_scripts' ) );
|
83 |
+
}
|
84 |
}
|
85 |
|
86 |
public function display_subscribew_page(){
|
111 |
$current_url = $_SERVER['REQUEST_URI'];
|
112 |
if( $wd_options->deactivate === true ){
|
113 |
if(strpos( $current_url, "plugins.php" ) !== false ){
|
114 |
+
new TenWebLibDeactivate( $this->config );
|
115 |
}
|
116 |
}
|
117 |
|
118 |
+
new TenWebLibNotices( $this->config );
|
119 |
|
120 |
}
|
121 |
|
widget_spider_calendar.php
CHANGED
@@ -15,7 +15,22 @@ class spider_calendar extends WP_Widget {
|
|
15 |
|
16 |
// Extract Args //
|
17 |
function widget($args, $instance) {
|
|
|
|
|
|
|
|
|
18 |
extract($args);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
$title = $instance['title'];
|
20 |
$id = $instance['calendar'];
|
21 |
$theme = (($instance['theme']) ? $instance['theme'] : 1);
|
@@ -54,10 +69,18 @@ class spider_calendar extends WP_Widget {
|
|
54 |
$instance['calendar'] = $new_instance['calendar'];
|
55 |
$instance['theme'] = $new_instance['theme'];
|
56 |
$instance['default_view'] = $new_instance['default_view'];
|
57 |
-
$
|
58 |
-
|
59 |
-
|
60 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
return $instance;
|
62 |
}
|
63 |
|
15 |
|
16 |
// Extract Args //
|
17 |
function widget($args, $instance) {
|
18 |
+
if(!is_array($instance)){
|
19 |
+
echo "Please select calendar";
|
20 |
+
return;
|
21 |
+
}
|
22 |
extract($args);
|
23 |
+
$title = "";
|
24 |
+
if(isset($instance['title'])){
|
25 |
+
$title = $instance['title'];
|
26 |
+
}
|
27 |
+
if(isset($instance['calendar'])){
|
28 |
+
$id = $instance['calendar'];
|
29 |
+
}else{
|
30 |
+
echo "Please select calendar";
|
31 |
+
return;
|
32 |
+
}
|
33 |
+
|
34 |
$title = $instance['title'];
|
35 |
$id = $instance['calendar'];
|
36 |
$theme = (($instance['theme']) ? $instance['theme'] : 1);
|
69 |
$instance['calendar'] = $new_instance['calendar'];
|
70 |
$instance['theme'] = $new_instance['theme'];
|
71 |
$instance['default_view'] = $new_instance['default_view'];
|
72 |
+
if(isset($new_instance['view_0'])){
|
73 |
+
$instance['view_0'] = $new_instance['view_0'];
|
74 |
+
}
|
75 |
+
if(isset($new_instance['view_1'])){
|
76 |
+
$instance['view_1'] = $new_instance['view_1'];
|
77 |
+
}
|
78 |
+
if(isset($new_instance['view_2'])){
|
79 |
+
$instance['view_2'] = $new_instance['view_2'];
|
80 |
+
}
|
81 |
+
if(isset($new_instance['view_3'])){
|
82 |
+
$instance['view_3'] = $new_instance['view_3'];
|
83 |
+
}
|
84 |
return $instance;
|
85 |
}
|
86 |
|