Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jan 31, 2019
1 parent f3c2e1b commit 7ca367e
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/wp-accessibility-toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,29 @@
/**
* Output Toolbar shortcode
*
* @param array $atts Shortcode attributes.
* @param array $atts Shortcode attributes.
* @param string $content Contained content.
*
* @return string
*/
function wpa_toolbar_shortcode( $atts, $content ) {
$args = shortcode_atts( array(
'type' => 'widget',
'control' => 'button',
), $atts, 'wpa_toolbar' );
$args = shortcode_atts(
array(
'type' => 'widget',
'control' => 'button',
),
$atts,
'wpa_toolbar'
);

return wpa_toolbar_html( $args['type'], $args['control'] );
}

/**
* Generate Toolbar as HTML.
*
* @param string $type widget, shortcode, or button.
* @param string $type widget, shortcode, js generated.
* @param string $control Control type: button or not
*
* @return string HTML.
*/
Expand Down

0 comments on commit 7ca367e

Please sign in to comment.