info_box

The ColorWay Theme info box shortcode.


Usage

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

Defined (1)

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

/functions/shortcodes.php  
  1.  
  2. /** Info */ 
  3. function info_box_shortcode($atts, $content = null) {  
  4. return '<div class="info-box">' . do_shortcode($content) . '</div>'; 
  5. add_shortcode('info_box', 'info_box_shortcode'); 
  6.  
  7. /** Warning */ 
  8. function warning_box_shortcode($atts, $content = null) {  
  9. return '<div class="warning-box">' . do_shortcode($content) . '</div>';