PHP 클래스 WPDKPointer

저자: =undo= ([email protected])
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 프로퍼티들

프로퍼티 타입 설명
$align string The box model alignment of pointer, default is top
$buttonClose array This is the dismiss/close button. For default this button perform an Ajax call and write in option that this pointer is no longer to display.
$buttonPrimary array This is a custom primary button shows on the left of dismiss button
$content string The HTML markup of pointer content. This can be a simple string without markup. In this case a p tag is added.
$edge string The pointer edge arrow, default is left
$id string Pointer ID
$nextPage string This is the next page slug for automatic tour
$selector string A jQuery selector HTML tag.
$title string The pointer title

공개 메소드들

메소드 설명
__construct ( string $id, string $selector, string $title, string $content, string $edge = 'left', string $align = 'top' ) : WPDKPointer Create an instance of WPDKPointer class
display ( ) Print the javascript for WP Pointer

비공개 메소드들

메소드 설명
_buttonClose ( ) : string Return the HTML markup for close button
_buttonPrimary ( ) : string Return the HTML markup for secondary button
_content ( ) : string Return the right HTML markup for the pointer content. If the content has not a markup then a tag p is added.
_title ( ) : string Return the right HTML markup for the pointer title. If the title has not a markup then a tag h3 is added.

메소드 상세

__construct() 공개 메소드

Create an instance of WPDKPointer class
public __construct ( string $id, string $selector, string $title, string $content, string $edge = 'left', string $align = 'top' ) : WPDKPointer
$id string Uniq id for this Pointer
$selector string jQuery selector
$title string Title
$content string HTML markup content
$edge string Edge, default `left`
$align string Alignment, default `top`
리턴 WPDKPointer

display() 공개 메소드

Print the javascript for WP Pointer
public display ( )

프로퍼티 상세

$align 공개적으로 프로퍼티

The box model alignment of pointer, default is top
public string $align
리턴 string

$buttonClose 공개적으로 프로퍼티

This is the dismiss/close button. For default this button perform an Ajax call and write in option that this pointer is no longer to display.
public array $buttonClose
리턴 array

$buttonPrimary 공개적으로 프로퍼티

This is a custom primary button shows on the left of dismiss button
public array $buttonPrimary
리턴 array

$content 공개적으로 프로퍼티

The HTML markup of pointer content. This can be a simple string without markup. In this case a p tag is added.
public string $content
리턴 string

$edge 공개적으로 프로퍼티

The pointer edge arrow, default is left
public string $edge
리턴 string

$id 공개적으로 프로퍼티

Pointer ID
public string $id
리턴 string

$nextPage 공개적으로 프로퍼티

This is the next page slug for automatic tour
public string $nextPage
리턴 string

$selector 공개적으로 프로퍼티

A jQuery selector HTML tag.
public string $selector
리턴 string

$title 공개적으로 프로퍼티

The pointer title
public string $title
리턴 string