| | 693 | <script id="tmpl-wp-bulk-deletions-admin-notice" type="text/html"> |
| | 694 | <div id="{{ data.id }}" class="{{ data.className }} notice <# if ( data.errors ) { #>notice-error<# } else { #>notice-success<# } #>"> |
| | 695 | <p> |
| | 696 | <# if ( data.successes ) { #> |
| | 697 | <# if ( 1 === data.successes ) { #> |
| | 698 | <# if ( 'plugin' === data.type ) { #> |
| | 699 | <?php |
| | 700 | /* translators: %s: Number of plugins */ |
| | 701 | printf( __( '%s plugin successfully deleted.' ), '{{ data.successes }}' ); |
| | 702 | ?> |
| | 703 | <# } else { #> |
| | 704 | <?php |
| | 705 | /* translators: %s: Number of themes */ |
| | 706 | printf( __( '%s theme successfully deleted.' ), '{{ data.successes }}' ); |
| | 707 | ?> |
| | 708 | <# } #> |
| | 709 | <# } else { #> |
| | 710 | <# if ( 'plugin' === data.type ) { #> |
| | 711 | <?php |
| | 712 | /* translators: %s: Number of plugins */ |
| | 713 | printf( __( '%s plugins successfully deleted.' ), '{{ data.successes }}' ); |
| | 714 | ?> |
| | 715 | <# } else { #> |
| | 716 | <?php |
| | 717 | /* translators: %s: Number of themes */ |
| | 718 | printf( __( '%s themes successfully deleted.' ), '{{ data.successes }}' ); |
| | 719 | ?> |
| | 720 | <# } #> |
| | 721 | <# } #> |
| | 722 | <# } #> |
| | 723 | <# if ( data.errors ) { #> |
| | 724 | <button class="button-link bulk-action-errors-collapsed" aria-expanded="false"> |
| | 725 | <# if ( 1 === data.errors ) { #> |
| | 726 | <?php |
| | 727 | /* translators: %s: Number of failed updates */ |
| | 728 | printf( __( '%s deletion failed.' ), '{{ data.errors }}' ); |
| | 729 | ?> |
| | 730 | <# } else { #> |
| | 731 | <?php |
| | 732 | /* translators: %s: Number of failed updates */ |
| | 733 | printf( __( '%s deletions failed.' ), '{{ data.errors }}' ); |
| | 734 | ?> |
| | 735 | <# } #> |
| | 736 | <span class="screen-reader-text"><?php _e( 'Show more details' ); ?></span> |
| | 737 | <span class="toggle-indicator" aria-hidden="true"></span> |
| | 738 | </button> |
| | 739 | <# } #> |
| | 740 | </p> |
| | 741 | <# if ( data.errors ) { #> |
| | 742 | <ul class="bulk-action-errors hidden"> |
| | 743 | <# _.each( data.errorMessages, function( errorMessage ) { #> |
| | 744 | <li>{{ errorMessage }}</li> |
| | 745 | <# } ); #> |
| | 746 | </ul> |
| | 747 | <# } #> |
| | 748 | </div> |
| | 749 | </script> |