HEX
Server: LiteSpeed
System: Linux php-prod-3.spaceapp.ru 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: sarli3128 (1010)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/sarlight.ru/public_html/wp-content/themes/addison/framework/editor-buttons/editor-buttons.php
<?php
add_action( 'init', 'boldthemes_buttons' );
if ( ! function_exists( 'boldthemes_buttons' ) ) {
	function boldthemes_buttons() {
		add_filter( 'mce_buttons_2', 'boldthemes_register_buttons' );
		add_filter( 'tiny_mce_before_init', 'boldthemes_insert_formats' ); 
		add_filter( 'mce_external_languages', 'boldthemes_add_tinymce_lang' );
	}
}

if ( ! function_exists( 'boldthemes_add_tinymce_lang' ) ) {
	function boldthemes_add_tinymce_lang( $arr ) {
		$arr['boldthemes'] = get_parent_theme_file_path( 'framework/editor-buttons/editor-lang.php' );
		return $arr;
	}
}

// Callback function to insert 'styleselect' into the $buttons array
function boldthemes_register_buttons( $buttons ) {
	array_unshift( $buttons, 'styleselect' );
	return $buttons;
}


// Callback function to filter the MCE settings
function boldthemes_insert_formats( $init_array ) {  
	// Define the style_formats array
	$style_formats = array(  
		// Each array child is a format with it's own settings
		array(  
			'title' => 'Blockquote',  
			'block' => 'blockquote',
			'wrapper' => true,
			
		),  
		array(  
			'title' => 'Cite',  
			'block' => 'cite',
			'wrapper' => true,
		),
		array(  
			'title' => 'Small',  
			'block' => 'small',
			'wrapper' => true,
		),
	);  
	// Insert the array, JSON ENCODED, into 'style_formats'
	$init_array['style_formats'] = json_encode( $style_formats );  
	
	return $init_array;  
  
}