deactivation-dialog.php
1.63 KB
1
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* The deactivation modal content.
*
* @package automattic/jetpack
*
* phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
* because $data is magically loaded by Jetpack::load_view()
*/
?>
<div id="jetpack_deactivation_dialog">
<div class="jetpack_deactivation_dialog_content">
<p>
<?php
echo esc_html(
sprintf(
/* translators: %d is the number of additional plugins using the jetpack connection. */
_n(
'The Jetpack Connection is also used by %d other plugin, and it will lose connection.',
'The Jetpack Connection is also used by %d other plugins, and they will lose connection.',
count( $data ),
'jetpack'
),
count( $data )
)
);
?>
</p>
<ul>
<?php foreach ( $data as $plugin_slug => $plugin_args ) : ?>
<li>
<span class="dashicons dashicons-warning"></span>
<span>
<?php echo esc_html( isset( $plugin_args['name'] ) ? $plugin_args['name'] : $plugin_slug ); ?>
<span>
</li>
<?php endforeach; ?>
</ul>
</div>
<div class="jetpack_deactivation_dialog_content__buttons-row-container">
<div class="jetpack_deactivation_dialog_content__buttons-row">
<p><?php esc_html_e( 'Are you sure you want to deactivate?', 'jetpack' ); ?></p>
<div class="jetpack_deactivation_dialog_content__buttons">
<button type="button" id="jetpack_deactivation_dialog_content__button-cancel"><?php esc_html_e( 'Cancel', 'jetpack' ); ?></button>
<button type="button" id="jetpack_deactivation_dialog_content__button-deactivate"><?php esc_html_e( 'Disconnect and Deactivate', 'jetpack' ); ?></button>
</div>
</div>
</div>
</div>