mirror of
https://github.com/10h30/trestle.git
synced 2026-07-11 18:56:07 +09:00
Add title att to button shortcode
This commit is contained in:
@@ -54,9 +54,10 @@ add_shortcode( 'col', 'trestle_column' );
|
||||
function trestle_button( $atts, $content = null ) {
|
||||
extract( shortcode_atts( array(
|
||||
'href' => '#',
|
||||
'title' => '',
|
||||
'class' => '',
|
||||
), $atts ) );
|
||||
return '<a class="button ' . $class . '" href="' . $href . '">' . do_shortcode( $content ) . '</a>';
|
||||
return '<a class="button ' . $class . '" href="' . $href . '" title="' . $title . '">' . do_shortcode( $content ) . '</a>';
|
||||
}
|
||||
add_shortcode( 'button', 'trestle_button' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user