File "class-bsr-templates-helper.php"
Full path: /home/xs854402/smcse.co.jp/public_html/test.smcse.co.jp/wp-content/plugins/better-search-replace/includes/class-bsr-templates-helper.php
File
size: 886 B (886 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Prevent direct access.
if ( ! defined( 'BSR_PATH' ) ) exit;
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Historical class name; used by admin templates.
class BSR_Templates_Helper {
/**
* Returns a fully qualified path for the given active tab name
* if the file name is not supported, the default template path is returned.
*
* @param string $active_tab
* @return string
*/
public static function get_tab_template($active_tab) {
switch($active_tab) {
case 'bsr_settings':
return BSR_PATH . 'templates/bsr-settings.php';
case 'bsr_help':
return BSR_PATH . 'templates/bsr-help.php';
default:
return BSR_PATH . 'templates/bsr-search-replace.php';
}
}
}