PHP Class Elementor\Preview

Afficher le fichier Open project: pojome/elementor

Méthodes publiques

Méthode 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 méthode

Preview constructor.
Since: 1.0.0
public __construct ( )

body_class() public méthode

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

builder_wrapper() public méthode

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

enqueue_styles() public méthode

Enqueue preview scripts and styles.
Since: 1.0.0
public enqueue_styles ( ) : void
Résultat void

init() public méthode

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

is_preview_mode() public méthode

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

print_custom_css() public méthode

public print_custom_css ( )