PHP 클래스 Elementor\Preview

파일 보기 프로젝트 열기: pojome/elementor

공개 메소드들

메소드 설명
__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 ( )

메소드 상세

__construct() 공개 메소드

Preview constructor.
부터: 1.0.0
public __construct ( )

body_class() 공개 메소드

Add custom class in element.
부터: 1.0.0
public body_class ( array $classes = [] ) : array
$classes array
리턴 array

builder_wrapper() 공개 메소드

The Javascript will add the content later.
부터: 1.0.0
public builder_wrapper ( string $content ) : string
$content string
리턴 string

enqueue_styles() 공개 메소드

Enqueue preview scripts and styles.
부터: 1.0.0
public enqueue_styles ( ) : void
리턴 void

init() 공개 메소드

Initialize the preview mode. Fired by init action.
부터: 1.0.0
public init ( ) : void
리턴 void

is_preview_mode() 공개 메소드

Method detect if we are in the preview mode (iFrame).
부터: 1.0.0
public is_preview_mode ( ) : boolean
리턴 boolean

print_custom_css() 공개 메소드

public print_custom_css ( )