| @@ -1,33 +1,21 @@ | ||
| 1 | 1 | <?php |
| 2 | + | |
| 2 | 3 | /** |
| 3 | - * Displays the strings translations tab in Polylang settings | |
| 4 | - * | |
| 5 | - * @package Polylang | |
| 4 | + * displays the strings translations tab in Polylang settings | |
| 6 | 5 | */ |
| 7 | 6 | |
| 8 | 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | - exit; // Don't access directly | |
| 8 | + exit; // don't access directly | |
| 10 | 9 | }; |
| 11 | 10 | ?> |
| 12 | 11 | <div class="form-wrap"> |
| 13 | 12 | <form id="string-translation" method="post" action="<?php echo esc_url( add_query_arg( 'noheader', 'true' ) ); ?>"> |
| 14 | - <input type="hidden" name="pll_action" value="string-translation" /> | |
| 15 | - <?php | |
| 13 | + <input type="hidden" name="pll_action" value="string-translation" /><?php | |
| 16 | 14 | $string_table->search_box( __( 'Search translations', 'polylang' ), 'translations' ); |
| 17 | 15 | wp_nonce_field( 'string-translation', '_wpnonce_string-translation' ); |
| 18 | 16 | $string_table->display(); |
| 19 | - printf( '<br /><label><input name="clean" type="checkbox" value="1" /> %s</label>', esc_html__( 'Clean strings translation database', 'polylang' ) ); | |
| 20 | - ?> | |
| 21 | - <p><?php esc_html_e( 'Use this to remove unused strings from database, for example after a plugin has been uninstalled.', 'polylang' ); ?></p> | |
| 22 | - <?php | |
| 23 | - submit_button(); // Since WP 3.1 | |
| 24 | - ?> | |
| 17 | + printf( '<br /><label><input name="clean" type="checkbox" value="1" /> %s</label>', esc_html__( 'Clean strings translation database', 'polylang' ) ); ?> | |
| 18 | + <p><?php esc_html_e( 'Use this to remove unused strings from database, for example after a plugin has been uninstalled.', 'polylang' );?></p><?php | |
| 19 | + submit_button(); // since WP 3.1 ?> | |
| 25 | 20 | </form> |
| 26 | - <div class="metabox-holder"> | |
| 27 | - <?php | |
| 28 | - wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); | |
| 29 | - do_meta_boxes( 'languages_page_mlang_strings', 'bottom', array() ); | |
| 30 | - ?> | |
| 31 | - </div> | |
| 32 | - | |
| 33 | 21 | </div> |