btnblue

The Black Rider Lite Responsive Theme btnblue shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[btnblue]'); 
  1. // variable usage 
  2. $result = do_shortcode('[btnblue]'); 
  3. echo $result;  

Defined (1)

The shortcode is defined in the following location(s).

/functions/shortcodes.php  
  1. //Button Blue 
  2. function btnblue_shortcode($atts, $content = null) { 
  3. extract(shortcode_atts(array("url" => ''), $atts)); 
  4. return '<a href="' . $url . '" class="buttons blue">' . do_shortcode($content) . '</a>'; 
  5. add_shortcode('btnblue', 'btnblue_shortcode'); 
  6. //Button Green 
  7. function btngreen_shortcode($atts, $content = null) { 
  8. extract(shortcode_atts(array("url" => ''), $atts)); 
  9. return '<a href="' . $url . '" class="buttons green">' . do_shortcode($content) . '</a>';