diff --git a/css/qsm-admin.css b/css/qsm-admin.css index 43bb7c8d4..c9b3d1fa2 100644 --- a/css/qsm-admin.css +++ b/css/qsm-admin.css @@ -3226,31 +3226,3 @@ input#preferred-date-format-custom { min-width: 110px; display: inline-block; } -/* ----------------Addon Promo CSS--------------- */ -.qsm-addon-promo-wrapper { - display: flex; - flex-direction: column; - padding: 5px 0; -} -.qsm-addon-promo-wrapper .accordion { - color: #444; - cursor: pointer; - padding: 10px 10px; - width: 100%; - text-align: left; - border: none; - border-bottom: 1px solid rgb(206, 204, 204); - outline: none; - transition: 0.4s; - font-size: 16px; - background-color: rgb(255, 255, 255); - font-weight: 600; -} -.qsm-addon-promo-wrapper .panel { - position: relative; - display: none; - top: 0; - padding: 0 18px; - background-color: white; - box-sizing: border-box; -} diff --git a/js/qsm-admin.js b/js/qsm-admin.js index 72420412d..c0296afec 100644 --- a/js/qsm-admin.js +++ b/js/qsm-admin.js @@ -3443,21 +3443,3 @@ var import_button; } } }(jQuery)); - -// MailerLite Inactive promo banner -jQuery(document).on('click', '.qsm-addon-promo-wrapper .accordion', function(event) { - // Find the corresponding panel for the clicked accordion - let panel = jQuery(this).closest('.qsm-addon-promo-wrapper').find('.panel'); - - if (panel.css('display') === 'block') { - panel.css('display', 'none'); - jQuery(this).removeClass('active'); - jQuery(this).find('span').removeClass('dashicons-arrow-up-alt2'); - jQuery(this).find('span').addClass('dashicons-arrow-down-alt2'); - } else { - panel.css('display', 'block'); - jQuery(this).addClass('active'); - jQuery(this).find('span').removeClass('dashicons-arrow-down-alt2'); - jQuery(this).find('span').addClass('dashicons-arrow-up-alt2'); - } -}); \ No newline at end of file diff --git a/php/admin/options-page-email-tab.php b/php/admin/options-page-email-tab.php index c36911851..31a1f0755 100644 --- a/php/admin/options-page-email-tab.php +++ b/php/admin/options-page-email-tab.php @@ -160,7 +160,6 @@ function qsm_options_emails_tab_template() { $quiz_id = isset( $_GET['quiz_id'] ) ? intval( $_GET['quiz_id'] ) : 0; $categories = array(); $enabled = get_option( 'qsm_multiple_category_enabled' ); - $ml_settings = get_option( 'qsm_addon_mailerlite_settings' ); if ( $enabled && 'cancelled' !== $enabled ) { $query = $wpdb->prepare( "SELECT name FROM {$wpdb->prefix}terms WHERE term_id IN ( SELECT DISTINCT term_id FROM {$wpdb->prefix}mlw_question_terms WHERE quiz_id = %d ) ORDER BY name ASC", $quiz_id ); } else { @@ -197,17 +196,6 @@ function qsm_options_emails_tab_template() { - -