Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 10
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2if ( ! defined( 'ABSPATH' ) ) {
3    exit( 0 ); // Exit if accessed directly
4}
5?>
6<main class="jp-plugin-deactivation__dialog__content">
7    <h1><?php esc_html_e( 'Are you sure you want to deactivate?', 'jetpack-boost' ); ?></h1>
8    <p class="big"><?php esc_html_e( 'Before you go...', 'jetpack-boost' ); ?></p>
9    <p><?php esc_html_e( "Thank you for trying Jetpack Boost. Before you go, we'd really love your feedback on our plugin.", 'jetpack-boost' ); ?></p>
10    <p><?php esc_html_e( "Just temporarily deactivating or don't fancy giving feedback? No problem.", 'jetpack-boost' ); ?></p>
11</main>
12<footer class="jp-plugin-deactivation__dialog__actions">
13    <button
14        type="button"
15        class="jp-plugin-deactivation__button"
16        data-jp-plugin-deactivation-action="close"
17    ><?php esc_html_e( 'Cancel', 'jetpack-boost' ); ?></button>
18    <button
19        type="button"
20        class="jp-plugin-deactivation__button jp-plugin-deactivation__button--outline jp-plugin-deactivation__button--destructive"
21        data-jp-plugin-deactivation-action="deactivate"
22    ><?php esc_html_e( 'Just Deactivate', 'jetpack-boost' ); ?></button>
23    <!-- Using an anchor instead of a button for the Deactivate & Give Feedback may trigger browser's popup blocker as it is navigating to two URLs at once. -->
24    <button
25        type="button"
26        class="jp-plugin-deactivation__button jp-plugin-deactivation__button--destructive"
27        data-jp-plugin-deactivation-action="deactivate"
28        onclick="window.open( 'https://jetpack.com/redirect/?source=jetpack-boost-deactivation-feedback', '_blank' )"
29    ><?php esc_html_e( 'Deactivate & Give Feedback', 'jetpack-boost' ); ?></button>
30</footer>
31
32<style>
33    #jp-plugin-deactivation-jetpack-boost p.big {
34        font-size: 1.7em;
35    }
36
37    #jp-plugin-deactivation-jetpack-boost footer {
38        text-align: center;
39    }
40</style>