first commit
This commit is contained in:
33
wp-content/plugins/polylang-pro/vendor/wpsyntex/polylang/settings/view-tab-strings.php
vendored
Normal file
33
wp-content/plugins/polylang-pro/vendor/wpsyntex/polylang/settings/view-tab-strings.php
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Displays the strings translations tab in Polylang settings
|
||||
*
|
||||
* @package Polylang
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Don't access directly
|
||||
}
|
||||
?>
|
||||
<div class="form-wrap">
|
||||
<form id="string-translation" method="post" action="<?php echo esc_url( add_query_arg( 'noheader', 'true' ) ); ?>">
|
||||
<input type="hidden" name="pll_action" value="string-translation" />
|
||||
<?php
|
||||
$string_table->search_box( __( 'Search translations', 'polylang' ), 'translations' );
|
||||
wp_nonce_field( 'string-translation', '_wpnonce_string-translation' );
|
||||
$string_table->display();
|
||||
printf( '<br /><label><input name="clean" type="checkbox" value="1" /> %s</label>', esc_html__( 'Clean strings translation database', 'polylang' ) );
|
||||
?>
|
||||
<p><?php esc_html_e( 'Use this to remove unused strings from database, for example after a plugin has been uninstalled.', 'polylang' ); ?></p>
|
||||
<?php
|
||||
submit_button(); // Since WP 3.1
|
||||
?>
|
||||
</form>
|
||||
<div class="metabox-holder">
|
||||
<?php
|
||||
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
|
||||
do_meta_boxes( 'languages_page_mlang_strings', 'normal', array() );
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user