PUM_Shortcode_PopupClose::fields()
Contents
Description Description
Source Source
File: classes/Shortcode/PopupClose.php
public function fields() { return array( 'general' => array( 'main' => array( 'tag' => array( 'label' => __( 'HTML Tag', 'popup-maker' ), 'desc' => __( 'The HTML tag used for this element.', 'popup-maker' ), 'type' => 'select', 'options' => array( 'a' => 'a', 'button' => 'button', 'div' => 'div', 'img' => 'img', 'li' => 'li', 'p' => 'p', 'span' => 'span', ), 'std' => 'span', 'required' => true, ), 'href' => array( 'label' => __( 'Value for href', 'popup-maker' ), 'placeholder' => '#', 'desc' => __( 'Enter the href value for your link. Leave blank if you do not want this link to take the visitor to a different page.', 'popup-maker' ), 'type' => 'text', 'std' => '', 'dependencies' => array( 'tag' => array( 'a' ), ), ), 'target' => array( 'label' => __( 'Target for the element', 'popup-maker' ), 'placeholder' => '', 'desc' => __( 'Enter the target value for your link. Can be left blank.', 'popup-maker' ), 'type' => 'text', 'std' => '', 'dependencies' => array( 'tag' => array( 'a' ), ), ), ), ), 'options' => array( 'main' => array( 'classes' => array( 'label' => __( 'CSS Class', 'popup-maker' ), 'placeholder' => 'my-custom-class', 'type' => 'text', 'desc' => __( 'Add additional classes for styling.', 'popup-maker' ), 'std' => '', ), 'do_default' => array( 'type' => 'checkbox', 'label' => __( 'Do not prevent the default click functionality.', 'popup-maker' ), 'desc' => __( 'This prevents us from disabling the browsers default action when a close button is clicked. It can be used to allow a link to a file to both close a popup and still download the file.', 'popup-maker' ), ), ), ), ); }
Expand full source code Collapse full source code View on Trac