negativebutton

The ColorWay Theme negativebutton shortcode.


Usage

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

Defined (1)

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

/functions/inkthemes-functions.php  
  1. /**Negative Button */ 
  2. function negative_button_shortcode( $atts, $content = null ) { 
  3. extract( shortcode_atts( array( "url" => ''), $atts ) ); 
  4. return '<a href="' . $url . '" class="negative button">' . do_shortcode($content) . '</a>'; 
  5. add_shortcode( 'negativebutton', 'negative_button_shortcode' ); 
  6. /**Positive Button */ 
  7. function positive_button_shortcode( $atts, $content = null ) { 
  8. extract( shortcode_atts( array( "url" => ''), $atts ) ); 
  9. return '<a href="' . $url . '" class="positive button">' . do_shortcode($content) . '</a>';