etdc_tab_group

The ColorWay Theme etdc tab group function.

Description

etdc_tab_group( $atts, $content ); 

Parameters (2)

0. $atts
The atts.
1. $content
The content.

Usage

  1. if ( !function_exists( 'etdc_tab_group' ) ) { 
  2. require_once '/functions/shortcodes.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 = etdc_tab_group($atts, $content); 
  12.  

Defined (1)

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

/functions/shortcodes.php  
  1. function etdc_tab_group( $atts, $content ) { 
  2. $GLOBALS['tab_count'] = 0; 
  3.  
  4. do_shortcode( $content ); 
  5.  
  6. if( is_array( $GLOBALS['tabs'] ) ) { 
  7. foreach( $GLOBALS['tabs'] as $tab ) { 
  8. $tabs[] = '<li><a class="" href="#">'.$tab['heading'].'</a></li>'; 
  9. $panes[] = '<div class="pane">'.$tab['content'].'</div>'; 
  10. $return = "\n".'<!-- the tabs --><ul class="tabs">'.implode( "\n", $tabs ).'</ul>'."\n".'<!-- tab "panes" --><div class="panes">'.implode( "\n", $panes ).'</div>'."\n"; 
  11. return $return;