PHP Class Elementor\Preview

Show file Open project: pojome/elementor

Public Methods

Method Description
__construct ( ) Preview constructor.
body_class ( array $classes = [] ) : array Add custom class in element.
builder_wrapper ( string $content ) : string Do not show the conent from the page. Just print empty start HTML.
enqueue_styles ( ) : void Enqueue preview scripts and styles.
init ( ) : void Initialize the preview mode. Fired by init action.
is_preview_mode ( ) : boolean Method detect if we are in the preview mode (iFrame).
print_custom_css ( )

Method Details

__construct() public method

Preview constructor.
Since: 1.0.0
public __construct ( )

body_class() public method

Add custom class in element.
Since: 1.0.0
public body_class ( array $classes = [] ) : array
$classes array
return array

builder_wrapper() public method

The Javascript will add the content later.
Since: 1.0.0
public builder_wrapper ( string $content ) : string
$content string
return string

enqueue_styles() public method

Enqueue preview scripts and styles.
Since: 1.0.0
public enqueue_styles ( ) : void
return void

init() public method

Initialize the preview mode. Fired by init action.
Since: 1.0.0
public init ( ) : void
return void

is_preview_mode() public method

Method detect if we are in the preview mode (iFrame).
Since: 1.0.0
public is_preview_mode ( ) : boolean
return boolean

print_custom_css() public method

public print_custom_css ( )