deactivation-dialog.php
3 years ago
jetpack-plugin-portal-containers.php
4 years ago
must-connect-main-blog.php
4 years ago
network-activated-notice.php
4 years ago
network-admin-header.php
4 years ago
network-settings.php
3 years ago
deactivation-dialog.php
59 lines
| 1 | <?php |
| 2 | /** |
| 3 | * The deactivation modal content. |
| 4 | * |
| 5 | * @package automattic/jetpack |
| 6 | * |
| 7 | * phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable |
| 8 | * because $data is magically loaded by Jetpack::load_view() |
| 9 | */ |
| 10 | |
| 11 | ?> |
| 12 | <div id="jetpack_deactivation_dialog"> |
| 13 | |
| 14 | <div class="jetpack_deactivation_dialog_content"> |
| 15 | <p> |
| 16 | <?php |
| 17 | echo esc_html( |
| 18 | sprintf( |
| 19 | /* translators: %d is the number of additional plugins using the jetpack connection. */ |
| 20 | _n( |
| 21 | 'The Jetpack Connection is also used by %d other plugin, and it will lose connection.', |
| 22 | 'The Jetpack Connection is also used by %d other plugins, and they will lose connection.', |
| 23 | is_countable( $data ) ? count( $data ) : 0, |
| 24 | 'jetpack' |
| 25 | ), |
| 26 | is_countable( $data ) ? count( $data ) : 0 |
| 27 | ) |
| 28 | ); |
| 29 | ?> |
| 30 | </p> |
| 31 | |
| 32 | <ul> |
| 33 | <?php foreach ( $data as $plugin_slug => $plugin_args ) : ?> |
| 34 | |
| 35 | <li> |
| 36 | <span class="dashicons dashicons-warning"></span> |
| 37 | <span> |
| 38 | <?php echo esc_html( isset( $plugin_args['name'] ) ? $plugin_args['name'] : $plugin_slug ); ?> |
| 39 | <span> |
| 40 | </li> |
| 41 | |
| 42 | <?php endforeach; ?> |
| 43 | </ul> |
| 44 | |
| 45 | |
| 46 | </div> |
| 47 | |
| 48 | |
| 49 | <div class="jetpack_deactivation_dialog_content__buttons-row-container"> |
| 50 | <div class="jetpack_deactivation_dialog_content__buttons-row"> |
| 51 | <p><?php esc_html_e( 'Are you sure you want to deactivate?', 'jetpack' ); ?></p> |
| 52 | <div class="jetpack_deactivation_dialog_content__buttons"> |
| 53 | <button type="button" id="jetpack_deactivation_dialog_content__button-cancel"><?php esc_html_e( 'Cancel', 'jetpack' ); ?></button> |
| 54 | <button type="button" id="jetpack_deactivation_dialog_content__button-deactivate"><?php esc_html_e( 'Disconnect and Deactivate', 'jetpack' ); ?></button> |
| 55 | </div> |
| 56 | </div> |
| 57 | </div> |
| 58 | </div> |
| 59 |