cloggier
↑
/wp-content/plugins/better-search-replace-pro
marsupiataab
hypermuffing
cloggier
hypermuffing
marsupiataab
bsr-backup-import.php
5,047 B
cloggier
marsupiataab
bsr-dashboard.php
2,207 B
cloggier
marsupiataab
bsr-help.php
1,995 B
cloggier
marsupiataab
bsr-search-replace.php
7,229 B
cloggier
marsupiataab
bsr-settings.php
5,650 B
cloggier
marsupiataab
<?php /** * Displays the main "Search/Replace" tab. * * @link https://bettersearchreplace.com * @since 1.1 * * @package Better_Search_Replace * @subpackage Better_Search_Replace/templates */ // Prevent direct/unauthorized access. if ( ! defined( 'BSR_PATH' ) ) exit; ?> <div id="bsr-search-replace-wrap" class="postbox"> <div class="inside"> <?php if ( get_option( 'bsr_profiles' ) && 0 !== count( get_option( 'bsr_profiles' ) ) && ! isset( $_GET['bsr_profile'] ) && ! isset( $_GET['result'] ) ): ?> <!--Search/Replace Panel--> <div class="panel saved-profiles"> <div class="panel-header"> <h3><?php _e( 'Use Saved Profile', 'better-search-replace' ); ?></h3> </div> <div class="panel-content"> <!--Saved Profiles--> <div class="row profile-select"> <div class="input-text"> <label><strong><?php _e( 'Profile name', 'better-search-replace' ); ?></strong></label> <?php $profiles = get_option( 'bsr_profiles', true ); echo '<select id="bsr-profile" name="bsr_profile" class="select">'; foreach( $profiles as $k => $v ) { echo '<option name="' . esc_attr( $k ) . '">' . esc_html( $k ) . '</option>'; } echo "<option name='create_new'>" . __( 'Create new profile', 'better-search-replace' ) . '</option>'; echo '</select>'; ?> </div> <button type="submit" name="action" value="bsr_process_load_profile" class="button button-primary button-sm"><?php _e( 'Continue', 'better-search-replace' ); ?></button> </div> <div class="row"> <button type="submit" name="action" value="bsr_process_delete_profile" class="button-link"><?php _e( 'Delete Profile', 'better-search-replace' ); ?></button> </div> </div> </div> <?php else: ?> <div id="bsr-search-replace-form" class="form-table"> <!--Hidden and to trigger the dry run notice placement--> <h2 class="hidden">Dry Run Notice</h2> <!--Search/Replace Panel--> <div class="panel"> <div class="panel-header"> <h3><?php _e( 'Search/Replace', 'better-search-replace' ); ?></h3> <a href="#" class="tooltip"> <img src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/icon-help.svg'; ?>"> </a> <span class="helper-message left"> <?php _e( 'Search and replace text in the database, including serialized arrays and objects. Be sure to back up your database before running this process.', 'better-search-replace' ); ?> </span> </div> <div class="panel-content"> <!--Search/Replace Fields--> <div class="row search-replace"> <div class="input-text full-width"> <label for="search_for"><strong><?php _e( 'Search for', 'better-search-replace' ); ?></strong></label> <input id="search_for" class="regular-text" type="text" name="search_for" value="<?php BSR_Admin::prefill_value( 'search_for' ); ?>" /> </div> <div class="input-text full-width"> <label for="replace_with"><strong><?php _e( 'Replace with', 'better-search-replace' ); ?></strong></label> <input id="replace_with" class="regular-text" type="text" name="replace_with" value="<?php BSR_Admin::prefill_value( 'replace_with' ); ?>" /> </div> </div> <!--Tables--> <div class="row"> <div class="col full-width tables"> <label for="select_tables"><strong><?php _e( 'Select tables', 'better-search-replace' ); ?></strong></label> <?php BSR_Admin::load_tables(); ?> <p class="description"><?php _e( 'Select multiple tables with Ctrl-Click for Windows or Cmd-Click for Mac.', 'better-search-replace' ); ?></p> </div> </div> </div> </div> <!--Additional Settings Panel--> <div class="panel"> <div class="panel-header"> <h3><?php _e( 'Additional Settings', 'better-search-replace' ); ?></h3> </div> <div class="panel-content settings additional-settings"> <!--Case Sensitive--> <label for="case_insensitive" class="row"> <div class="col"> <input id="case_insensitive" type="checkbox" name="case_insensitive" <?php BSR_Admin::prefill_value( 'case_insensitive', 'checkbox' ); ?> /> </div> <div class="col"> <label for="case_insensitive"><strong><?php _e( 'Case-Insensitive', 'better-search-replace' ); ?></strong></label> <label for="case_insensitive"><span class="description"><?php _e( 'Searches are case-sensitive by default.', 'better-search-replace' ); ?></span></label> </div> </label> <!--Replace GUIDs--> <label for="replace_guids" class="row"> <div class="col"> <input id="replace_guids" type="checkbox" name="replace_guids" <?php BSR_Admin::prefill_value( 'replace_guids', 'checkbox' ); ?> /> </div> <div class="col"> <label for="replace_guids" class="replace_guids"><strong>Replace GUIDs</strong><a href="https://wordpress.org/support/article/changing-the-site-url/#important-guid-note" target="_blank"><img src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/icon-help.svg'; ?>"></a></label> <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> </div> </label> <!--Dry Run--> <label for="dry_run" class="row"> <div class="col"> <input id="dry_run" type="checkbox" name="dry_run" checked /> </div> <div class="col"> <label for="dry_run"><strong><?php _e( 'Run as dry run', 'better-search-replace' ); ?></strong></label></td> <label for="dry_run"><span class="description"><?php _e( 'If checked, no changes will be made to the database, allowing you to check the results beforehand.', 'better-search-replace' ); ?></span></label> </div> </label> <!--Save Profile--> <label for="save_profile" class="row"> <div class="col"> <input id="save_profile" type="checkbox" name="save_profile" /> </div> <div class="col"> <label for="save_profile"><strong><?php _e( 'Save profile', 'better-search-replace' ); ?></strong></label> <label for="save_profile"><span class="description"><?php _e( 'If checked, the above settings will be saved for future use.', 'better-search-replace' ); ?></span></label> </div> </label> <!--Save Profile Input Field--> <div id="profile-name" class="row" style="display:none;"> <div class="input-text"> <label for="profile_name"><strong><?php _e( 'Profile Name', 'better-search-replace' ); ?></strong></label> <input id="profile_name" type="text" name="profile_name" class="regular-text" /> </div> </div> </div> </div> <div id="bsr-error-wrap"></div> <!--Submit Button--> <div id="bsr-submit-wrap"> <?php wp_nonce_field( 'process_search_replace', 'bsr_nonce' ); ?> <input type="hidden" name="action" value="bsr_process_search_replace" /> <button id="bsr-submit" type="submit" class="button button-primary button-lg"><?php _e( 'Run Search/Replace', 'better-search-replace' ); ?> <img src="<?php echo plugin_dir_url( __FILE__ ) . '../assets/svg/icon-arrow.svg'; ?>"> </button> </div> <?php endif; ?> </div><!-- /.inside --> </div><!-- /#bsr-search-replace-wrap -->
cloggier