button

Add_shortcodes.


Usage

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

Defined (2)

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

/functions/inkthemes-functions.php  
  1. /**Simple Button */ 
  2. function button_shortcode( $atts, $content = null ) { 
  3. extract( shortcode_atts( array( "url" => ''), $atts ) ); 
  4. return '<a href="' . $url . '" class="button">' . do_shortcode($content) . '</a>'; 
  5. add_shortcode( 'button', 'button_shortcode' ); 
  6. /**Big Button */ 
  7. function big_button_shortcode( $atts, $content = null ) { 
  8. extract( shortcode_atts( array( "url" => ''), $atts ) ); 
  9. return '<a href="' . $url . '" class="big button">' . do_shortcode($content) . '</a>'; 
/functions/shortcodes.php  
  1. return '<div class="clearfix"></div>'; 
  2. add_shortcode('clear', 'clear_shortcode'); 
  3.  
  4. /** Button */ 
  5. add_shortcode( 'button', 'button_shortcode' ); 
  6. function button_shortcode( $atts, $content = null ) { 
  7. extract( shortcode_atts( array( "url" => '', "color" => '' ), $atts ) ); 
  8. return '<a href="' . $url . '" class="button ' . $color . '">' . do_shortcode($content) . '<span></span></a>'; 
  9.