프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
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 |
public array $buttonClose | ||
리턴 | array |
public array $buttonPrimary | ||
리턴 | array |
public string $content | ||
리턴 | string |
public string $nextPage | ||
리턴 | string |