diff --git a/admin/css/responsive-getting-started-page.css b/admin/css/responsive-getting-started-page.css index 16b3e374..13c00616 100644 --- a/admin/css/responsive-getting-started-page.css +++ b/admin/css/responsive-getting-started-page.css @@ -7,6 +7,7 @@ @import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css'); @import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600&display=swap'); +@import url('https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css'); * { font-family: 'Libre Franklin', sans-serif; @@ -315,7 +316,7 @@ body.appearance_page_responsive #wpbody-content { line-height: 28px; } -.responsive-theme-feature-card-desc { +.responsive-theme-feature-card-desc, .responsive-help-accordion-body { font-weight: 400; font-size: 14px; line-height: 170%; @@ -334,6 +335,9 @@ hr { .responsive-plugin-activated-button-disabled { color: #C1C1C1 !important; border-color: #C1C1C1 !important; + padding: 8px 20px; + border: none; + border-radius: 4px; } .responsive-theme-rst-content .responsive-plugin-activated-button-disabled { @@ -353,6 +357,25 @@ hr { box-shadow: none !important; } +.responsive-theme-home-setting-button .dashicons { + color: #2271B1; + font-size: 24px; + vertical-align: text-bottom; +} + +.responsive-theme-pro-features .responsive-theme-feature-seperator { + color: #2271B1; +} + +.responsive-theme-no-focus { + box-shadow: none !important; +} + +.responsive-theme-disabled-links { + pointer-events: none; + color: #afafaf !important; +} + /* Home Tab Ends */ /* Starter Template Tab Starts */ @@ -400,7 +423,7 @@ hr { padding: 10px 20px; } -.responsive-theme-rst-learn-more a, .responsive-theme-home-links a { +.responsive-theme-rst-learn-more a, .responsive-theme-home-links a, .responsive-theme-pro-features a { font-weight: 400; font-size: 14px; line-height: 19px; @@ -477,6 +500,273 @@ hr { /* FreevsPro Tab Ends */ +/* Settings Tab Starts */ +.responsive-theme-setting-item-icon { + margin-right: 10px; + color: #A8A8A8; +} + +.responsive-theme-setting-item-title { + font-size: 16px; + font-weight: 500; + color: #A8A8A8; +} + +.responsive-theme-setting-border-left { + border-left: 1px solid #DEDEDE; +} + +.responsive-theme-setting-hr { + border-top: 1px solid #DEDEDE; + margin-left: -12px; +} + +.responsive-theme-single-setting-section { + margin-left: 40px; + margin-bottom: 40px; +} + +.responsive-theme-setting-title { + margin-bottom: 29px; + font-size: 20px; + font-weight: 600; + line-height: 24.24px; +} + +.responsive-theme-setting-input-label { + margin-bottom: 8px; + font-size: 14px; + font-weight: 400; + line-height: 23.8px; + color: #747B81; +} + +.responsive-theme-setting-form-control { + width: 60%; + border: 1px solid #CACDD2 !important; + height: 42px; +} + +/* For Chrome, Firefox, Opera, Safari 10.1+ */ +.responsive-theme-setting-form-control::placeholder { + color: #BCC1C5; + opacity: 1; /* Firefox */ + font-size: 14px; +} + +/* Internet Explorer 10-11 */ +.responsive-theme-setting-form-control:-ms-input-placeholder { + color: #BCC1C5; + font-size: 14px; +} + +/* Microsoft Edge */ +.responsive-theme-setting-form-control::-ms-input-placeholder { + color: #BCC1C5; + font-size: 14px; +} + +.responsive-theme-setting-form-control:disabled { + background-color: #FFFFFF; +} + +/* For Chrome, Firefox, Opera, Safari 10.1+ */ +.responsive-theme-setting-form-control-activated::placeholder { + color: #10B981; + opacity: 1; /* Firefox */ +} + +/* Internet Explorer 10-11 */ +.responsive-theme-setting-form-control-activated:-ms-input-placeholder { + color: #10B981; +} + +/* Microsoft Edge */ +.responsive-theme-setting-form-control-activated::-ms-input-placeholder { + color: #10B981; +} + +#responsive-theme-setting-activation-alert { + display: none; + font-size: 14px; + padding-top: 12px; + padding-bottom: 12px; +} + +#responsive-theme-setting-activation-alert .btn-close { + top: -4px; +} + +#responsive-theme-setting-activation-alert .btn-close:focus { + box-shadow: none; +} + +.responsive-theme-setting-activation-form-border-error { + border-color: #FF0000 !important; +} + +.responsive-theme-setting-activation-form-text-error { + color: #FF0000; + font-size: 14px; +} + +.responsive-theme-setting-active-tab { + color: #2271B1; +} + +.responsive-theme-single-setting-section textarea { + height: 80px; +} + +.responsive-theme-setting-checkbox-label { + font-size: 14px; + font-weight: 400; + color: #4B4B4B; + vertical-align: inherit; +} + +.responsive-theme-setting-note { + margin-top: 22px; + line-height: 23.8px; +} + +.responsive-theme-setting-primary-btn { + padding: 10px 20px !important; + font-size: 16px !important; + font-weight: 600; + line-height: 21.28px !important; + border-radius: 4px !important; +} + +#responsive-theme-setting-wl-section { + display: none; +} + +.responsive-theme-setting-pro-not-activated-title { + color: #4B5563; +} + +.responsive-theme-setting-pro-not-activated-desc { + font-size: 14px; + color: #6B7280; +} + +.responsive-theme-setting-activation-form input[type=text], .responsive-theme-setting-activation-form input[type=text]:focus { + color: #798188; +} + +.responsive-theme-setting-activation-key-title { + font-size: 20px; + color: #374151; +} + +.responsive-theme-setting-secondary-btn { + padding: 12px 34px !important; + line-height: 1.3 !important; + background-color: white !important; +} + +.responsive-theme-setting-get-assistance { + font-size: 14px; + color: #2271B1; + text-decoration: none; +} + +/* Settings Tab Ends */ + +/* Help Tab Starts */ + +.responsive-theme-help-support-title { + font-size: 22px; + color: #374151; +} + +.responsive-theme-help-support-desc { + font-size: 14px; + color: #4B4B4B; +} + +.responsive-theme-help-card-section { + margin-top: 34px; +} + +.responsive-theme-help-card-section .card { + border-color: #DEDEDE; +} + +.responsive-theme-help-card-section .card-body { + margin-top: 16px; +} + +.responsive-theme-help-card-icon-section { + display: flex; + justify-content: center; + align-items: center; +} + +.responsive-theme-help-card-icon-wrapper { + height: 60px; + padding: 20px; + background-color: #7C29C4; + width: 60px; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; + margin-bottom: 15px; +} + +.responsive-theme-help-card-title { + font-size: 15px; + color: #374151; +} + +.responsive-theme-help-card-desc { + font-size: 14px; + color: #4B4B4B; +} + +.responsive-theme-help-ticket-text { + font-size: 18px; +} + +.responsive-theme-help-ticket-btn { + padding: 6px 16px !important; + margin-top: 40px; + background-color: white !important; +} +.responsive-theme-help-ticket-btn img { + margin-left: 10px; + margin-top: -2px; +} + +.responsive-theme-help-faq-title { + margin-top: 60px; + margin-bottom: 50px; + font-size: 30px; +} + +.responsive-theme-help-faq-section .accordion-button:focus { + box-shadow: none; +} + +.responsive-theme-help-faq-section .accordion-button:not(.collapsed) { + background-color: transparent; + color: #212529; +} + +.responsive-theme-help-faq-section .accordion-item:last-of-type { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} + +.responsive-theme-help-faq-section .accordion-item:first-of-type { + border-top-left-radius: 0; + border-top-right-radius: 0; +} + +/* Help Tab Ends */ + @media (max-width: 768px) { .responsive-theme-brand { @@ -578,6 +868,14 @@ hr { display: none !important; } + .responsive-theme-setting-border-left { + border-left: none; + } + + .responsive-theme-setting-form-control { + width: 100%; + } + } @@ -628,4 +926,12 @@ hr { display: flex !important; } + .responsive-theme-setting-border-left { + border-left: 1px solid #DEDEDE; + } + + .responsive-theme-setting-form-control { + width: 100%; + } + } \ No newline at end of file diff --git a/admin/images/banner-rst-template.jpg b/admin/images/banner-rst-template.jpg new file mode 100644 index 00000000..f3e26415 Binary files /dev/null and b/admin/images/banner-rst-template.jpg differ diff --git a/admin/images/getting-started-help-arrow.svg b/admin/images/getting-started-help-arrow.svg new file mode 100644 index 00000000..bb1abd0f --- /dev/null +++ b/admin/images/getting-started-help-arrow.svg @@ -0,0 +1,3 @@ + + + diff --git a/admin/images/getting-started-help-documentation.svg b/admin/images/getting-started-help-documentation.svg new file mode 100644 index 00000000..6fddf488 --- /dev/null +++ b/admin/images/getting-started-help-documentation.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/admin/images/getting-started-help-feature.svg b/admin/images/getting-started-help-feature.svg new file mode 100644 index 00000000..fe17486b --- /dev/null +++ b/admin/images/getting-started-help-feature.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/admin/images/getting-started-help-support.svg b/admin/images/getting-started-help-support.svg new file mode 100644 index 00000000..6eb12f3e --- /dev/null +++ b/admin/images/getting-started-help-support.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/admin/images/getting-started-help-video.svg b/admin/images/getting-started-help-video.svg new file mode 100644 index 00000000..3d76467f --- /dev/null +++ b/admin/images/getting-started-help-video.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/admin/images/icon_editor_textcolor_.svg b/admin/images/icon_editor_textcolor_.svg deleted file mode 100644 index a1f6abc6..00000000 --- a/admin/images/icon_editor_textcolor_.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/admin/images/icon_format_image_.svg b/admin/images/icon_format_image_.svg deleted file mode 100644 index 84a750aa..00000000 --- a/admin/images/icon_format_image_.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/admin/images/icon_menu_alt_.svg b/admin/images/icon_menu_alt_.svg deleted file mode 100644 index d9848e97..00000000 --- a/admin/images/icon_menu_alt_.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/admin/images/icon_table_row_after_.svg b/admin/images/icon_table_row_after_.svg deleted file mode 100644 index 9d56eca2..00000000 --- a/admin/images/icon_table_row_after_.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/admin/images/icon_table_row_before_.svg b/admin/images/icon_table_row_before_.svg deleted file mode 100644 index 33a05cae..00000000 --- a/admin/images/icon_table_row_before_.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/admin/images/icon_text_page_.svg b/admin/images/icon_text_page_.svg deleted file mode 100644 index 1768c300..00000000 --- a/admin/images/icon_text_page_.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/admin/images/icon_welcome_widgets_menus_.svg b/admin/images/icon_welcome_widgets_menus_.svg deleted file mode 100644 index cd402d7c..00000000 --- a/admin/images/icon_welcome_widgets_menus_.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/admin/images/icon_welcome_write_blog_.svg b/admin/images/icon_welcome_write_blog_.svg deleted file mode 100644 index 644a6d2a..00000000 --- a/admin/images/icon_welcome_write_blog_.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/admin/js/responsive-getting-started.js b/admin/js/responsive-getting-started.js index 13b89fd2..4529f134 100644 --- a/admin/js/responsive-getting-started.js +++ b/admin/js/responsive-getting-started.js @@ -118,4 +118,221 @@ $(document).ready(function () { } ); + // Display Toast Message. + function displayToast( msg, status ) { + let background = status === 'error' ? '#FF5151' : '#00CF21'; + Toastify({ + text: msg, + duration: 3000, + gravity: "top", + position: "center", + stopOnFocus: true, + offset: { + x: 0, + y: 30 + }, + style: { + background, + }, + }).showToast(); + } + + // White Label Settings. + $('#resp-theme-wl-settings-submit').click( function( event ) { + event.preventDefault() + let nonce = $(this).data('nonce') + let authorName = $('#resp_wl_author_name').val() + let websiteURL = $('#resp_wl_website_url').val() + let pluginName = $('#resp_wl_plugin_name').val() + let pluginURL = $('#resp_wl_plugin_url').val() + let pluginDesc = $('#resp_wl_plugin_desc').val() + let hideSettings = 'off' + if( $('#resp_wl_hide_settings').prop('checked') ) { + hideSettings = 'on' + } + + $.ajax( + { + type: 'POST', + url: localize.ajaxurl, + data: + { + action: 'responsive-pro-white-label-settings', + _nonce: nonce, + authorName, websiteURL, pluginName, pluginURL, pluginDesc, hideSettings + }, + success: function success( data ) + { + if (data.success) { + displayToast( data.data.msg, 'success' ); + if ( 'on' === hideSettings ) { + location.reload() + } + } else { + displayToast( data.data.msg, 'error' ); + } + } + } + ); + + }) + + // Switching of Setting Tabs. + $('#responsive-theme-setting-wl-tab').click(function(){ + if ($("#responsive-theme-setting-wl-section").length === 0) { + return + } + $('#responsive-theme-setting-wl-section').show() + $('#responsive-theme-setting-activation-key-tab span, #responsive-theme-setting-activation-key-tab p').removeClass('responsive-theme-setting-active-tab'); + $('#responsive-theme-setting-wl-tab span, #responsive-theme-setting-wl-tab p').addClass('responsive-theme-setting-active-tab') + $('#responsive-theme-setting-activation-key-section').hide() + }) + + $('#responsive-theme-setting-activation-key-tab').click(function(){ + $('#responsive-theme-setting-activation-key-section').show() + $('#responsive-theme-setting-activation-key-tab span, #responsive-theme-setting-activation-key-tab p').addClass('responsive-theme-setting-active-tab') + $('#responsive-theme-setting-wl-tab span, #responsive-theme-setting-wl-tab p').removeClass('responsive-theme-setting-active-tab') + $('#responsive-theme-setting-wl-section').hide() + }) + + // Function to show error styling and message while activating license. + function show_activation_error( inputTarget, msgTarget, msg ) { + $(`#${inputTarget}`).addClass('responsive-theme-setting-activation-form-border-error'); + $(`#${msgTarget}`).addClass('responsive-theme-setting-activation-form-text-error'); + $(`#${msgTarget}`).text(msg); + } + + // Resets the applied activation errors. + function reset_activation_errors() { + $('#resp_pro_activation_key_api_key, #resp_pro_activation_key_product_id').removeClass('responsive-theme-setting-activation-form-border-error'); + + $('#resp_pro_activation_key_api_key_msg, #resp_pro_activation_key_product_id_msg') + .removeClass('responsive-theme-setting-activation-form-text-error') + .text(''); + + } + + // Creates the alert element before activation form submit and after destroying the previous alert element. + function createAlertElement() { + let alertElement = '' + $('#responsive-theme-setting-activation-key-section').prepend(alertElement); + } + + // Removes the previous Alert element. + function destroyAlertElement() { + $('#responsive-theme-setting-activation-alert').remove() + } + + // Alert type - success, warning, error. + function displayAlert(type, text) { + var $activationAlert = $('#responsive-theme-setting-activation-alert'); + $activationAlert.addClass('alert-' + type).prepend(text).show(); + + } + + $('#resp_pro_activation_key_api_key').keyup(function(){ + if ('' !== $(this).val()) { + $('#resp_pro_activation_key_api_key').removeClass('responsive-theme-setting-activation-form-border-error'); + $('#resp_pro_activation_key_api_key_msg').removeClass('responsive-theme-setting-activation-form-text-error').text(''); + } + }); + + $('#resp_pro_activation_key_product_id').keyup(function(){ + if ('' !== $(this).val()) { + $('#resp_pro_activation_key_product_id').removeClass('responsive-theme-setting-activation-form-border-error'); + $('#resp_pro_activation_key_product_id_msg').removeClass('responsive-theme-setting-activation-form-text-error').text(''); + } + }); + + // Request to deactivate Responsive Pro License. + $('#resp_pro_activation_key_deactivate_api_key_submit').click( function(event) { + event.preventDefault() + reset_activation_errors() + destroyAlertElement() + createAlertElement() + $('#resp_pro_activation_key_deactivate_api_key_submit').text('Deactivating...') + let nonce = $(this).data('nonce') + $.ajax( + { + type: 'POST', + url: localize.ajaxurl, + data: + { + action: 'responsive-pro-api-key-deactivate', + _nonce: nonce, + }, + success: function success( data ) + { + if ( false === data.data.error ) { + displayAlert( 'success', 'API Key Deactivated. ' + data.data.message ) + $('#resp_pro_activation_key_deactivate_api_key_submit').text('Deactivated!') + setTimeout(function(){ + location.reload(); + }, 5000); + } else { + displayAlert( 'warning', data.data.message ) + $('#resp_pro_activation_key_deactivate_api_key_submit').text('Deactivate') + return + } + } + } + ); + }) + + // Request to activate Responsive Pro License. + $('#resp_pro_activation_key_activate_api_key_submit').click( function(event) { + event.preventDefault() + reset_activation_errors() + destroyAlertElement() + createAlertElement() + + let productId = $('#resp_pro_activation_key_product_id').val() + let apiKey = $('#resp_pro_activation_key_api_key').val() + let nonce = $(this).data('nonce') + + if ( '' === apiKey ) { + show_activation_error( 'resp_pro_activation_key_api_key', 'resp_pro_activation_key_api_key_msg', 'Please Enter the API Key' ); + return + } + + if ( '' === productId ) { + show_activation_error( 'resp_pro_activation_key_product_id', 'resp_pro_activation_key_product_id_msg', 'Please Enter the Product ID' ); + return + } + + $('#resp_pro_activation_key_activate_api_key_submit').text( 'Activating...' ) + + $.ajax( + { + type: 'POST', + url: localize.ajaxurl, + data: + { + action: 'responsive-pro-api-key-activate', + _nonce: nonce, + productId, apiKey + }, + success: function success( data ) + { + if ( 'undefined' === data.data.error && false === data.data.activate_results.success ) { + displayAlert( 'warning', data.data.activate_results.data.error ) + $('#resp_pro_activation_key_activate_api_key_submit').text( 'Activate' ) + return + } + if ( false === data.data.error ) { + displayAlert( 'success', 'API Key Activated. ' + data.data.message ) + $('#resp_pro_activation_key_activate_api_key_submit').text( 'Activated!' ) + setTimeout(function() { + location.reload(); + }, 5000); + } else { + displayAlert( 'warning', data.data.message ) + $('#resp_pro_activation_key_activate_api_key_submit').text( 'Activate' ) + return + } + } + } + ); + }) + }); diff --git a/admin/templates/get-started.php b/admin/templates/get-started.php index b420d477..c1c097f8 100644 --- a/admin/templates/get-started.php +++ b/admin/templates/get-started.php @@ -13,6 +13,25 @@ exit; // Exit if accessed directly. } +$slug = 'responsive-addons-pro'; +$state = ''; +if ( file_exists( ABSPATH . 'wp-content/plugins/' . $slug . '/' . $slug . '.php' ) ) { + $state = is_plugin_active( $slug . '/' . $slug . '.php' ) ? 'activated' : 'installed'; +} else { + $state = 'not installed'; +} + +$nonce = add_query_arg( + array( + 'action' => 'activate', + 'plugin' => rawurlencode( $slug . '/' . $slug . '.php' ), + 'plugin_status' => 'all', + 'paged' => '1', + '_wpnonce' => wp_create_nonce( 'activate-plugin_' . $slug . '/' . $slug . '.php' ), + ), + network_admin_url( 'plugins.php' ) +); + ?>
@@ -28,14 +47,32 @@

Home

+ +
+

Settings

+
+

Starter Templates

Useful Plugins

-
-

Free vs Pro

+ +
+

Free vs Pro

+
+ +
+

Help

@@ -44,14 +81,32 @@
+ +
+ +
+
-
- + +
+ +
+ +
+
diff --git a/admin/templates/getting-started-free-vs-pro.php b/admin/templates/getting-started-free-vs-pro.php index b3c445e6..e4ee4093 100644 --- a/admin/templates/getting-started-free-vs-pro.php +++ b/admin/templates/getting-started-free-vs-pro.php @@ -135,7 +135,25 @@
- + + + + + + +
diff --git a/admin/templates/getting-started-help.php b/admin/templates/getting-started-help.php new file mode 100644 index 00000000..02deac8f --- /dev/null +++ b/admin/templates/getting-started-help.php @@ -0,0 +1,159 @@ + + + __( 'Documentation', 'responsive' ), + 'desc' => __( 'Search for articles and documents created to help you use Responsive plugins.', 'responsive' ), + 'icon' => 'getting-started-help-documentation', + 'link' => 'https://docs.cyberchimps.com/responsive', + ), + array( + 'title' => __( 'Video Tutorials', 'responsive' ), + 'desc' => __( 'Our short and easy-to-follow video tutorials help to set up and use the theme like a pro in no time.', 'responsive' ), + 'icon' => 'getting-started-help-video', + 'link' => 'https://www.youtube.com/playlist?list=PLXTwxw3ZJwPSKbf3-vo7sMBkXr9cakAPT', + ), + array( + 'title' => __( 'Support Center', 'responsive' ), + 'desc' => __( 'Our experienced support staff is ready to resolve all your issues anytime.', 'responsive' ), + 'icon' => 'getting-started-help-support', + 'link' => 'https://wordpress.org/support/theme/responsive/', + ), + array( + 'title' => __( 'Request a Feature', 'responsive' ), + 'desc' => __( 'Make headers flexible by changing layouts, customizing the header elements.', 'responsive' ), + 'icon' => 'getting-started-help-feature', + 'link' => 'https://cyberchimps.com/contact/', + ), + +); + +$accordions = array( + array( + 'title' => __( 'How do I get updates?', 'responsive' ), + 'content' => __( 'You will get notification automatically in your WordPress backend whenever an update is available. You can update plugin within a click.', 'responsive' ), + ), + array( + 'title' => __( 'Will you add more ready sites in the library?', 'responsive' ), + 'content' => __( 'Definitely. We keep adding new website templates every month and keep updating the old ones to match the design trends.', 'responsive' ), + ), + array( + 'title' => __( 'What can I expect in updates?', 'responsive' ), + 'content' => __( 'As part of our Responsive plugin development, we are actively working on it. Free updates will be provided to you every time we improve, add new features, or fix bugs in the plugin.', 'responsive' ), + ), + array( + 'title' => __( 'What is included in Responsive Pro bundle?', 'responsive' ), + 'content' => __( 'Responsive Pro bundle includes the Pro plugin that adds more features to the Responsive theme. It also includes access to 100+ starter website templates & Responsive Elementor Addons with 50+ Elementor widgets.', 'responsive' ), + ), + array( + 'title' => __( 'What’s your refund policy?', 'responsive' ), + 'content' => __( 'We’re 100% sure you’ll love Responsive. But we also understand it’s not for everyone. If for some reason you don’t want to continue using Responsive, get in touch with us within 30 days of your purchase. We’ll gladly refund your order amount.', 'responsive' ), + ), + array( + 'title' => __( 'Is it necessary to renew the license every year?', 'responsive' ), + 'content' => __( 'No. Annual license fees help us provide you with regular products updates and professional, one-on-one support. If you do not need either, you can choose not to renew your license.', 'responsive' ), + ), + array( + 'title' => __( 'What kind of support do you offer?', 'responsive' ), + 'content' => __( 'We offer professional, premium support to our customers through ticketing system.', 'responsive' ), + ), + array( + 'title' => __( 'Will my website continue to work if I don’t renew?', 'responsive' ), + 'content' => __( 'Yes. Your website will continue to work even if you do not renew your annual license.', 'responsive' ), + ), +); + +?> + +
+
+
+

+

+

+
+ +
+ +
+
+

+ getting-started-help-arrow +
+
+
+
+

+
+
+
+
+
+
+
+
+
+ $accordion ) { + ?> +
+
+

+ +

+
+
+ +
+
+
+
+ +
+
+
+
+
+
diff --git a/admin/templates/getting-started-home.php b/admin/templates/getting-started-home.php index ffbe6e91..3bdf88c3 100644 --- a/admin/templates/getting-started-home.php +++ b/admin/templates/getting-started-home.php @@ -18,76 +18,134 @@ $home_settings = array( array( 'label' => __( 'Change Site Layout', 'responsive' ), - 'icon' => 'icon_welcome_widgets_menus_.svg', + 'icon' => 'dashicons-welcome-widgets-menus', 'link' => admin_url( 'customize.php?autofocus[section]=responsive_layout' ), ), array( 'label' => __( 'Customize fonts/typography', 'responsive' ), - 'icon' => 'icon_editor_textcolor_.svg', + 'icon' => 'dashicons-editor-textcolor', 'link' => admin_url( 'customize.php?autofocus[section]=responsive_typography' ), ), array( 'label' => __( 'Upload logo & site icon', 'responsive' ), - 'icon' => 'icon_format_image_.svg', + 'icon' => 'dashicons-format-image', 'link' => admin_url( 'customize.php?autofocus[section]=title_tagline' ), ), array( 'label' => __( 'Add/edit navigation menu', 'responsive' ), - 'icon' => 'icon_menu_alt_.svg', + 'icon' => 'dashicons-menu', 'link' => admin_url( 'customize.php?autofocus[panel]=nav_menus' ), ), array( 'label' => __( 'Customize header options', 'responsive' ), - 'icon' => 'icon_table_row_after_.svg', + 'icon' => 'dashicons-table-row-after', 'link' => admin_url( 'customize.php?autofocus[panel]=responsive_header' ), ), array( 'label' => __( 'Customize footer options', 'responsive' ), - 'icon' => 'icon_table_row_after_.svg', + 'icon' => 'dashicons-table-row-before', 'link' => admin_url( 'customize.php?autofocus[panel]=responsive_footer' ), ), array( 'label' => __( 'Update blog layout', 'responsive' ), - 'icon' => 'icon_welcome_write_blog_.svg', + 'icon' => 'dashicons-welcome-write-blog', 'link' => admin_url( 'customize.php?autofocus[section]=responsive_blog_layout' ), ), array( 'label' => __( 'Update page layout', 'responsive' ), - 'icon' => 'icon_text_page_.svg', + 'icon' => 'dashicons-text-page', 'link' => admin_url( 'customize.php?autofocus[section]=responsive_page_content' ), ), ); + $is_rea_active = class_exists( 'Responsive_Elementor_Addons' ) ? true : false; + $is_rst_active = class_exists( 'Responsive_Add_Ons' ) ? true : false; + $upgrade_to_pro = array( array( 'tag' => 'pro', 'title' => __( 'White Label', 'responsive' ), 'desc' => __( 'White Label the theme name & settings with the Pro Plugin.', 'responsive' ), + 'links' => array( + array( + 'name' => __( 'Docs', 'responsive' ), + 'link' => 'https://docs.cyberchimps.com/responsive/white-label/', + ), + array( + 'name' => __( 'Settings', 'responsive' ), + 'link' => admin_url( 'themes.php?page=responsive#settings' ), + ), + ), ), array( 'tag' => 'pro', 'title' => __( 'Starter Templates', 'responsive' ), 'desc' => __( 'Unlock the library of 100+ Premium Starter Templates.', 'responsive' ), + 'links' => array( + array( + 'name' => __( 'Explore Templates', 'responsive' ), + 'link' => admin_url( 'admin.php?page=responsive-add-ons' ), + 'status' => $is_rst_active, + ), + ), ), array( 'tag' => 'pro', 'title' => __( 'Premium Support', 'responsive' ), 'desc' => __( 'Get priority support responses for any issues within 24 hours.', 'responsive' ), + 'links' => array( + array( + 'name' => __( 'Open Ticket', 'responsive' ), + 'link' => 'https://cyberchimps.com/open-a-ticket/', + ), + ), ), array( 'tag' => 'pro', 'title' => __( 'Pro Customizer Options', 'responsive' ), 'desc' => __( 'Unlock Premium Customizer Settings with the Responsive Pro Plugin.', 'responsive' ), + 'links' => array( + array( + 'name' => __( 'Docs', 'responsive' ), + 'link' => 'https://docs.cyberchimps.com/responsive/responsive-pro-modules/', + ), + array( + 'name' => __( 'Customize', 'responsive' ), + 'link' => admin_url( 'customize.php?return=%2Fresponsive%2Fwp-admin%2Fthemes.php%3Fpage%3Dresponsive' ), + ), + ), ), array( 'tag' => 'rea', 'title' => __( '50+ Elementor Widgets', 'responsive' ), 'desc' => __( 'Get Free Access to the Responsive Elementor Addons Plugin worth $47/year.', 'responsive' ), + 'links' => array( + array( + 'name' => __( 'Docs', 'responsive' ), + 'link' => 'https://docs.cyberchimps.com/responsive-elementor-addons/ ', + ), + array( + 'name' => __( 'Settings', 'responsive' ), + 'link' => admin_url( 'admin.php?page=rea_getting_started#widgets' ), + 'status' => $is_rea_active, + ), + ), ), array( 'tag' => 'rea', 'title' => __( 'Elementor Theme Builder', 'responsive' ), 'desc' => __( 'REA Theme Builder lets you design & customize every aspect of your website.', 'responsive' ), + 'links' => array( + array( + 'name' => __( 'Docs', 'responsive' ), + 'link' => 'https://docs.cyberchimps.com/responsive-elementor-addons/rea-theme-builder', + ), + array( + 'name' => __( 'Settings', 'responsive' ), + 'link' => admin_url( 'edit.php?post_type=rea-theme-template' ), + 'status' => $is_rea_active, + ), + ), ), ); @@ -140,8 +198,8 @@
- - + +
@@ -153,10 +211,40 @@
-

+

+ +

- + + + + + + +
@@ -169,6 +257,27 @@
+ +
+ $feature_link ) { + $disabled_links = ( isset( $feature_link['status'] ) && false === $feature_link['status'] ) ? 'responsive-theme-disabled-links' : ''; + ?> + + + | + +
+
@@ -215,19 +324,18 @@
-

-

- - +

+

+


+
+ banner-rst-template +
+

@@ -238,15 +346,6 @@
-
-
-

-

-

- -
diff --git a/admin/templates/getting-started-settings.php b/admin/templates/getting-started-settings.php new file mode 100644 index 00000000..6a8224f2 --- /dev/null +++ b/admin/templates/getting-started-settings.php @@ -0,0 +1,238 @@ + + +wc_am_activated_key ); +} +?> +
+
+
+
+
+ id="responsive-theme-setting-activation-key-tab" role="button" + + > + +

+
+ +
+ id="responsive-theme-setting-wl-tab" role="button" + + > + +

+
+ +
+
+
+ +
+
+
+
+

+
+
+ + + + + + + +
+
+
+
+

+
+
+
+
+ +
+
+

+
+
+ > +
+
+
+ > +
+
+ + + + + +
+ +
+
+
+
+ +
+
+

+
+ + + value="" + + placeholder="CyberChimps" id="resp_wl_author_name"> +
+
+
+
+ + + value="" + + placeholder="https://cyberchimps.com" id="resp_wl_website_url"> +
+
+
+
+

+
+ + + value="" + + placeholder="CyberChimps" id="resp_wl_plugin_name"> +
+
+
+
+ + + value="" + + placeholder="https://cyberchimps.com/responsivepro" id="resp_wl_plugin_url"> +
+
+
+
+ + + +
+
+
+
+

+
+ + +
+

:

+
+
+ +
+
+ +
+
+
diff --git a/core/includes/classes/class-responsive-admin-settings.php b/core/includes/classes/class-responsive-admin-settings.php index cebf6f88..e9e9bd20 100644 --- a/core/includes/classes/class-responsive-admin-settings.php +++ b/core/includes/classes/class-responsive-admin-settings.php @@ -119,6 +119,8 @@ public static function styles_scripts() { wp_enqueue_script( 'responsive-getting-started-bootstrap', 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js', array( 'jquery' ), RESPONSIVE_THEME_VERSION, true ); + wp_enqueue_script( 'responsive-getting-started-toastify', 'https://cdn.jsdelivr.net/npm/toastify-js', array( 'jquery' ), RESPONSIVE_THEME_VERSION, true ); + wp_enqueue_style( 'responsive-admin-getting-started', RESPONSIVE_THEME_URI . 'admin/css/responsive-getting-started-page.css', array(), RESPONSIVE_THEME_VERSION ); wp_enqueue_script(