| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> |
| 2 |
|
| 3 |
<div id="backup_warning"><?php esc_html_e('Be sure to backup your database before use this plugin!', 'search-replace'); ?></div> |
| 4 |
|
| 5 |
<form action="" method="post" id="search-and-replace-free"> |
| 6 |
|
| 7 |
<?php wp_nonce_field( 'search_replace' ) ?> |
| 8 |
|
| 9 |
<label for="s"><?php esc_html_e('Search:', 'search-replace'); ?></label><input type="text" name="s" id="s" /><br /> |
| 10 |
|
| 11 |
<label for="r"><?php esc_html_e('Replace by:', 'search-replace'); ?></label><input type="text" name="r" id="r" /> <?php esc_html_e('(replace both title and content)', 'search-replace'); ?><br /> |
| 12 |
|
| 13 |
<div> |
| 14 |
|
| 15 |
<label for="in"><?php esc_html_e('In:', 'search-replace'); ?></label> |
| 16 |
|
| 17 |
<input type="checkbox" value="post" name="post" /> <?php esc_html_e('Posts', 'search-replace'); ?> |
| 18 |
|
| 19 |
<input type="checkbox" value="page" name="page" /> <?php esc_html_e('Pages', 'search-replace'); ?> |
| 20 |
|
| 21 |
</div> |
| 22 |
|
| 23 |
<input type="submit" class="button button-primary" value="<?php esc_html_e('Go!', 'search-replace'); ?>" /> |
| 24 |
|
| 25 |
</form> |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
<p> |
| 30 |
|
| 31 |
<a href="https://www.info-d-74.com/en/produit/search-and-replace-pro-plugin-wordpress-2/" target="_blank"> |
| 32 |
|
| 33 |
<?php esc_html_e('Need more options? Look at Search and Replace Pro', 'search-replace'); ?></a><br /> |
| 34 |
|
| 35 |
<a href="https://www.info-d-74.com/en/produit/search-and-replace-pro-plugin-wordpress-2/" target="_blank"> |
| 36 |
|
| 37 |
<img src="<?php echo esc_url(plugins_url( 'search-replace/images/search-and-replace-pro.png' )); ?>" class="srp_img" /> |
| 38 |
|
| 39 |
</a> |
| 40 |
|
| 41 |
</p> |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
<script> |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
jQuery(document).ready(function(){ |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
jQuery('#search-and-replace-free input[type=submit]').click(function(){ |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
return confirm('<?php esc_html_e('Are you sure to do that?', 'search-replace'); ?>'); |
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
}); |
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
}); |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
</script> |