button2

Button2.


Usage

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

Defined (1)

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

/functions/shortcodes.php  
  1. extract( shortcode_atts( array( "url" => '', "color" => '' ), $atts ) ); 
  2. return '<a href="' . $url . '" class="button ' . $color . '">' . do_shortcode($content) . '<span></span></a>'; 
  3.  
  4. /** Button2 */ 
  5. add_shortcode( 'button2', 'button2_shortcode' ); 
  6. function button2_shortcode( $atts, $content = null ) { 
  7. extract( shortcode_atts( array( "url" => '', "color" => '' ), $atts ) ); 
  8. return '<a href="' . $url . '" class="button2 ' . $color . '">' . do_shortcode($content) . '<span></span></a>'; 
  9.