'quote', 'callback' => 'su_shortcode_quote', 'image' => su_get_plugin_url() . 'admin/images/shortcodes/quote.svg', 'name' => __( 'Quote', 'shortcodes-ultimate' ), 'type' => 'wrap', 'group' => 'box', 'atts' => array( 'style' => array( 'type' => 'select', 'values' => su_get_available_styles_for( 'quote' ), 'default' => 'default', 'name' => __( 'Style', 'shortcodes-ultimate' ), 'desc' => __( 'Choose style for this quote', 'shortcodes-ultimate' ), ), 'cite' => array( 'default' => '', 'name' => __( 'Cite', 'shortcodes-ultimate' ), 'desc' => __( 'Quote author name', 'shortcodes-ultimate' ), ), 'url' => array( 'values' => array(), 'default' => '', 'name' => __( 'Cite url', 'shortcodes-ultimate' ), 'desc' => __( 'Url of the quote author. Leave empty to disable link', 'shortcodes-ultimate' ), ), 'class' => array( 'type' => 'extra_css_class', 'name' => __( 'Extra CSS class', 'shortcodes-ultimate' ), 'desc' => __( 'Additional CSS class name(s) separated by space(s)', 'shortcodes-ultimate' ), 'default' => '', ), ), 'content' => __( 'Quote', 'shortcodes-ultimate' ), 'desc' => __( 'Blockquote alternative', 'shortcodes-ultimate' ), 'icon' => 'quote-right', ) ); function su_shortcode_quote( $atts = null, $content = null ) { $atts = shortcode_atts( array( 'style' => 'default', 'cite' => '', 'url' => '', 'class' => '', ), $atts, 'quote' ); $atts['cite'] = su_do_attribute($atts['cite'], true); if ($atts['cite'] && $atts['url']) { $atts['cite'] = '' . $atts['cite'] . ''; } if ($atts['cite']) { $atts['cite'] = '' . $atts['cite'] . ''; $atts['class'] .= ' su-quote-has-cite'; } su_query_asset( 'css', 'su-shortcodes' ); return '