/home/vianto5/hidalgoresidences.mx/wp-content/plugins/code-snippets/php/Settings
NameSizeModeActions
Editor_Preview.php16430644editdlrm
settings.php105750644editdlrm
Settings_Fields.php114570644editdlrm
Setting_Field.php65630644editdlrm
Version_Switch.php149750644editdlrm
Edit: /home/vianto5/hidalgoresidences.mx/wp-content/plugins/code-snippets/php/Settings/Editor_Preview.php (1643B)
List of editor themes. */ public static function get_editor_theme_list(): array { $themes = [ 'default' => __( 'Default', 'code-snippets' ), ]; foreach ( get_editor_themes() as $theme ) { if ( '-mobile' === substr( $theme, -7 ) ) { continue; } $themes[ $theme ] = ucwords( str_replace( '-', ' ', $theme ) ); } return $themes; } /** * Render the editor preview setting. */ public function render() { $settings = get_settings_values(); $settings = $settings['editor']; $indent_unit = absint( $settings['indent_unit'] ); $tab_size = absint( $settings['tab_size'] ); $n_tabs = $settings['indent_with_tabs'] ? floor( $indent_unit / $tab_size ) : 0; $n_spaces = $settings['indent_with_tabs'] ? $indent_unit % $tab_size : $indent_unit; $indent = str_repeat( "\t", $n_tabs ) . str_repeat( ' ', $n_spaces ); $code = "add_filter( 'admin_footer_text', function ( \$text ) {\n\n" . $indent . "\$site_name = get_bloginfo( 'name' );\n\n" . $indent . '$text = "Thank you for visiting $site_name.";' . "\n" . $indent . 'return $text;' . "\n" . "} );\n"; echo ''; } }