Skip to content

Commit

Permalink
added promo for mailerlite inactive state
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-pranav committed Nov 9, 2023
1 parent f8f7e01 commit b0fba51
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 79 deletions.
57 changes: 2 additions & 55 deletions css/qsm-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -3226,9 +3226,8 @@ input#preferred-date-format-custom {
min-width: 110px;
display: inline-block;
}
/* ----------------MailerLite Promo CSS--------------- */
.qsm-addon-promo-wrapper,
.qsm-addon-promo-wrapper addon-purchase-link-btn {
/* ----------------Addon Promo CSS--------------- */
.qsm-addon-promo-wrapper {
display: flex;
flex-direction: column;
padding: 5px 0;
Expand All @@ -3255,55 +3254,3 @@ input#preferred-date-format-custom {
background-color: white;
box-sizing: border-box;
}
.qsm-addon-promo-wrapper .addon-promo-desc {
font-size: 14px;
font-weight: 400;
line-height: 18px;
letter-spacing: 0em;
text-align: left;
}
.qsm-addon-promo-wrapper .addon-promo-doc-link {
margin: 0 0 10px 0;
font-weight: 600;
color: blue;
}
.qsm-addon-promo-wrapper .addon-promo-doc-link span {
font-size: small;
top: 3px;
position: relative;
}
.qsm-addon-promo-wrapper .addon-promo-info {
display: inline-flex;
padding: 3px;
border: 0.63px solid #EFF6FF;
width: 100%;
border-radius: 4px;
background: #EFF6FF;
}
.qsm-addon-promo-wrapper .addon-promo-info span:first-child {
font-size: 15px;
padding: 12px 5px 12px 12px;
color: #60A5FA;
}
.qsm-addon-promo-wrapper .addon-promo-info span:nth-child(2) {
font-size: 12px;
font-weight: 500;
line-height: 20px;
letter-spacing: 0em;
text-align: left;
color: #1E40AF;
padding: 7px;
}
.qsm-addon-promo-wrapper addon-purchase-link-btn .qsm-bundle-link {
text-align: center;
font-size: 16px;
padding: 4px 0;
}
.qsm-addon-promo-wrapper addon-purchase-link-btn .addon-purchase-link {
text-align: center;
font-size: 16px;
padding: 20px 0;
font-weight: 500;
line-height: 15.11px;
color: #2771E4;
}
41 changes: 17 additions & 24 deletions php/admin/options-page-email-tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,35 +198,13 @@ function qsm_options_emails_tab_template() {
<textarea id="email-template-{{ data.id }}" class="email-template">{{{ data.content }}}</textarea>
<label><input type="checkbox" class="reply-to" <# if ( "true" == data.replyTo || true == data.replyTo ) { #>checked<# } #>>Add user email as Reply-To</label>
<?php if ( empty($ml_settings) ) : ?>
<div class=".qsm-addon-promo-wrapper">
<div class="qsm-addon-promo-wrapper">
<button class="accordion">
<?php esc_html_e( 'MailerLite Automation', 'quiz-master-next' ); ?>
<span style="float:right" class="dashicons dashicons-arrow-down-alt2"></span>
</button>
<div class="panel">
<p class="addon-promo-desc">
<?php esc_html_e( 'This tool helps you to seamlessly integrate your MailerLite account with quizzes and surveys created in QSM, so you can easily collect the contact information of quiz or survey takers and automate the process of sending targeted, custom emails straight from MailerLite.', 'quiz-master-next' ); ?>
</p>
<a class="addon-promo-doc-link" href="">
<span class="dashicons dashicons-media-document"></span>
<?php esc_html_e( 'Read Documentation', 'quiz-master-next' ); ?>
<span class="dashicons dashicons-arrow-right-alt"></span>
</a>
<img src="<?php echo esc_url( QSM_PLUGIN_URL . 'assets/mailerlite_promo.png' ); ?>" class="ml-promo-banner" >
<p class="addon-promo-info">
<span class="dashicons dashicons-info"></span>
<span>
<?php esc_html_e( 'QSM Addon Bundle is the best way to get all our add-ons at a discount. Upgrade to save 95% today. OR you can buy MailerLite Integration Addon separately.', 'quiz-master-next' ); ?>
</span>
</p>
<div class="addon-purchase-link-btn">
<a href="" class="qsm-bundle-link button-primary">
<?php esc_html_e( 'Upgrade to QSM bundle', 'quiz-master-next' ); ?>
</a>
<a href="" class="addon-purchase-link">
<?php esc_html_e( 'Buy MailerLite Integration Addon', 'quiz-master-next' ); ?>
</a>
</div>
<?php qsm_mailerlite_quiz_tabs_content(); ?>
</div>
</div>
<?php endif; ?>
Expand Down Expand Up @@ -274,4 +252,19 @@ function qsm_options_emails_tab_template() {

<?php
}
function qsm_mailerlite_quiz_tabs_content() {
$args = array(
"id" => 'mailerlite-integration',
"title" => __( 'MailerLite Integration', 'quiz-master-next' ),
"description" => __( 'This tool helps you to seamlessly integrate your MailerLite account with quizzes and surveys created in QSM, so you can easily collect the contact information of quiz or survey takers and automate the process of sending targeted, custom emails straight from MailerLite.', 'quiz-master-next' ),
"chart_image" => QSM_PLUGIN_URL . 'assets/mailerlite_promo.png',
"warning" => __( 'Missing Feature - MailerLite Integration Add-on required', 'quiz-master-next' ),
"information" => __( 'QSM Addon Bundle is the best way to get all our add-ons at a discount. Upgrade to save 95% today. OR you can buy MailerLite Integration Addon separately.', 'quiz-master-next' ),
"buy_btn_text" => __( 'Buy MailerLite Integration Addon', 'quiz-master-next' ),
"doc_link" => qsm_get_plugin_link( 'docs/add-ons/mailerlite-integration', 'quiz-documentation', 'plugin', 'mailerlite-integration', 'qsm_plugin_upsell' ),
"upgrade_link" => qsm_get_plugin_link( 'pricing', 'quiz-documentation', 'plugin', 'mailerlite-integration', 'qsm_plugin_upsell' ),
"addon_link" => qsm_get_plugin_link( 'downloads/mailerlite-integration', 'quiz-documentation', 'plugin', 'mailerlite-integration', 'qsm_plugin_upsell' ),
);
qsm_admin_upgrade_content( $args, 'page' );
}
?>

0 comments on commit b0fba51

Please sign in to comment.