Automattic\WooCommerce\EmailEditor\Engine

Settings_Controller::get_layout_width_without_paddingpublicWC 1.0

Returns the width of the layout without padding.

Метод класса: Settings_Controller{}

Хуков нет.

Возвращает

Строку.

Использование

$Settings_Controller = new Settings_Controller();
$Settings_Controller->get_layout_width_without_padding(): string;

Код Settings_Controller::get_layout_width_without_padding() WC 9.9.5

public function get_layout_width_without_padding(): string {
	$styles = $this->get_email_styles();
	$layout = $this->get_layout();
	$width  = $this->parse_number_from_string_with_pixels( $layout['contentSize'] );
	$width -= $this->parse_number_from_string_with_pixels( $styles['spacing']['padding']['left'] );
	$width -= $this->parse_number_from_string_with_pixels( $styles['spacing']['padding']['right'] );
	return "{$width}px";
}