Twitter\WordPress\Shortcodes\Follow::shortcodeUI PHP Method

shortcodeUI() public static method

Describe shortcode for Shortcake UI
Since: 1.1.0
public static shortcodeUI ( ) : void
return void
    public static function shortcodeUI()
    {
        // Shortcake required
        if (!function_exists('shortcode_ui_register_for_shortcode')) {
            return;
        }
        shortcode_ui_register_for_shortcode(static::SHORTCODE_TAG, array('label' => esc_html(__('Follow Button', 'twitter')), 'listItemImage' => 'dashicons-twitter', 'attrs' => array(array('attr' => 'screen_name', 'label' => esc_html(__('Twitter @username', 'twitter')), 'type' => 'text', 'meta' => array('placeholder' => 'WordPress', 'pattern' => '[A-Za-z0-9_]{1,20}')), array('attr' => 'size', 'label' => esc_html(__('Button size:', 'twitter')), 'type' => 'radio', 'value' => '', 'options' => array('' => esc_html(_x('medium', 'medium size button', 'twitter')), 'large' => esc_html(_x('large', 'large size button', 'twitter')))))));
    }