예제 #1
0
 />
			<label for="case_insensitive"><span class="description"><?php 
_e('Searches are case-sensitive by default.', 'revisr');
?>
</span></label>
		</td>
	</tr>

	<tr>
		<td><label for="replace_guids"><strong><?php 
_e('Replace GUIDs<a href="http://codex.wordpress.org/Changing_The_Site_URL#Important_GUID_Note" target="_blank">?</a>', 'better-search-replace');
?>
</strong></label></td>
		<td>
			<input id="replace_guids" type="checkbox" name="replace_guids" <?php 
Better_Search_Replace_Admin::prefill_value('replace_guids', 'checkbox');
?>
 />
			<label for="replace_guids"><span class="description"><?php 
_e('If left unchecked, all database columns titled \'guid\' will be skipped.', 'better-search-replace');
?>
</span></label>
		</td>
	</tr>

	<tr>
		<td><label for="dry_run"><strong><?php 
_e('Run as dry run?', 'better-search-replace');
?>
</strong></label></td>
		<td>
예제 #2
0
$active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'bsr_search_replace';
if ('bsr_settings' === $active_tab) {
    $action = get_admin_url() . 'options.php';
} else {
    $action = get_admin_url() . 'admin-post.php';
}
?>

<div class="wrap">

	<h2><?php 
_e('Better Search Replace', 'better-search-replace');
?>
</h2>
	<?php 
Better_Search_Replace_Admin::render_result();
?>

	<h2 class="nav-tab-wrapper">
	    <a href="?page=better-search-replace&tab=bsr_search_replace" class="nav-tab <?php 
echo $active_tab == 'bsr_search_replace' ? 'nav-tab-active' : '';
?>
"><?php 
_e('Search/Replace', 'better-search-replace');
?>
</a>
	    <a href="?page=better-search-replace&tab=bsr_settings" class="nav-tab <?php 
echo $active_tab == 'bsr_settings' ? 'nav-tab-active' : '';
?>
"><?php 
_e('Settings', 'better-search-replace');