Нет описания

deactivation-dialog.php 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. <div id="jetpack_deactivation_dialog">
  12. <div class="jetpack_deactivation_dialog_content">
  13. <p>
  14. <?php
  15. echo esc_html(
  16. sprintf(
  17. /* translators: %d is the number of additional plugins using the jetpack connection. */
  18. _n(
  19. 'The Jetpack Connection is also used by %d other plugin, and it will lose connection.',
  20. 'The Jetpack Connection is also used by %d other plugins, and they will lose connection.',
  21. count( $data ),
  22. 'jetpack'
  23. ),
  24. count( $data )
  25. )
  26. );
  27. ?>
  28. </p>
  29. <ul>
  30. <?php foreach ( $data as $plugin_slug => $plugin_args ) : ?>
  31. <li>
  32. <span class="dashicons dashicons-warning"></span>
  33. <span>
  34. <?php echo esc_html( isset( $plugin_args['name'] ) ? $plugin_args['name'] : $plugin_slug ); ?>
  35. <span>
  36. </li>
  37. <?php endforeach; ?>
  38. </ul>
  39. </div>
  40. <div class="jetpack_deactivation_dialog_content__buttons-row-container">
  41. <div class="jetpack_deactivation_dialog_content__buttons-row">
  42. <p><?php esc_html_e( 'Are you sure you want to deactivate?', 'jetpack' ); ?></p>
  43. <div class="jetpack_deactivation_dialog_content__buttons">
  44. <button type="button" id="jetpack_deactivation_dialog_content__button-cancel"><?php esc_html_e( 'Cancel', 'jetpack' ); ?></button>
  45. <button type="button" id="jetpack_deactivation_dialog_content__button-deactivate"><?php esc_html_e( 'Disconnect and Deactivate', 'jetpack' ); ?></button>
  46. </div>
  47. </div>
  48. </div>
  49. </div>