positivebutton

The ColorWay Theme positivebutton shortcode.


Usage

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

Defined (1)

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

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