smallbrown
The Black Rider Lite Responsive Theme smallbrown shortcode.
Usage
- // basic usage
- echo do_shortcode('[smallbrown]');
- // variable usage
- $result = do_shortcode('[smallbrown]');
- echo $result;
Defined (1)
The shortcode is defined in the following location(s).
- /functions/shortcodes.php
- //Small Brown Button
- function smallbrown_shortcode($atts, $content = null) {
- extract(shortcode_atts(array("url" => ''), $atts));
- return '<a href="' . $url . '" class="button2 brown">' . do_shortcode($content) . '<span></span></a>';
- }
- add_shortcode('smallbrown', 'smallbrown_shortcode');
- //Small Yellow Button
- function smallyellow_shortcode($atts, $content = null) {
- extract(shortcode_atts(array("url" => ''), $atts));
- return '<a href="' . $url . '" class="button2 yellow">' . do_shortcode($content) . '<span></span></a>';
- }