Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
_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` |
return | WPDKPointer |
public string $align | ||
return | string |
public array $buttonClose | ||
return | array |
public array $buttonPrimary | ||
return | array |
public string $content | ||
return | string |
public string $nextPage | ||
return | string |