2020-06-23 13:49:54 +02:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* The deactivation modal content.
|
|
|
|
|
*
|
2021-04-27 08:32:47 +02:00
|
|
|
* @package automattic/jetpack
|
2020-06-23 13:49:54 +02:00
|
|
|
*
|
|
|
|
|
* 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.',
|
2023-09-26 10:24:36 +02:00
|
|
|
is_countable( $data ) ? count( $data ) : 0,
|
2020-06-23 13:49:54 +02:00
|
|
|
'jetpack'
|
|
|
|
|
),
|
2023-09-26 10:24:36 +02:00
|
|
|
is_countable( $data ) ? count( $data ) : 0
|
2020-06-23 13:49:54 +02:00
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
?>
|
|
|
|
|
</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>
|