shortcode_pane

The Evolved shortcode pane function.

Description

shortcode_pane( $atts, (null) $content = null ); 

Parameters (2)

0. $atts
The atts.
1. $content — Optional. (null) => null
The content.

Usage

  1. if ( !function_exists( 'shortcode_pane' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The atts. 
  5. $atts = null; 
  6.  
  7. // The content. 
  8. $content = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = shortcode_pane($atts, $content); 
  12.  

Defined (1)

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

/functions.php  
  1. function shortcode_pane( $atts, $content = null ) { 
  2. extract(shortcode_atts(array( 
  3. 'title' => '',  
  4. ), $atts)); 
  5.  
  6. $out = ''; 
  7. foreach ($atts as $pane) { 
  8. $out .= '<h4 class="accordion-header"><a href="#">' . $pane .'</a></h4>'; 
  9. $out .= '<div class="pane">'. do_shortcode($content) .'</div>'; 
  10. return $out;