mirror of
https://github.com/10h30/trestle.git
synced 2026-06-05 15:09:35 +09:00
Remove duplicate button shortcode.
This commit is contained in:
@@ -45,22 +45,6 @@ function trestle_column( $atts, $content = null ) {
|
|||||||
}
|
}
|
||||||
add_shortcode( 'col', 'trestle_column' );
|
add_shortcode( 'col', 'trestle_column' );
|
||||||
|
|
||||||
/**
|
|
||||||
* Buttons
|
|
||||||
*
|
|
||||||
* Example:
|
|
||||||
* [button href="url" class="class"]Text[/button]
|
|
||||||
*/
|
|
||||||
function trestle_button( $atts, $content = null ) {
|
|
||||||
extract( shortcode_atts( array(
|
|
||||||
'href' => '#',
|
|
||||||
'title' => '',
|
|
||||||
'class' => '',
|
|
||||||
), $atts ) );
|
|
||||||
return '<a class="button ' . $class . '" href="' . $href . '" title="' . $title . '">' . do_shortcode( $content ) . '</a>';
|
|
||||||
}
|
|
||||||
add_shortcode( 'button', 'trestle_button' );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Button
|
* Button
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user