etdc_tab

The ColorWay Theme etdc tab function.

Description

etdc_tab( $atts, $content ); 

Parameters (2)

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

Usage

  1. if ( !function_exists( 'etdc_tab' ) ) { 
  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($atts, $content); 
  12.  

Defined (1)

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

/functions/shortcodes.php  
  1. function etdc_tab( $atts, $content ) { 
  2. extract(shortcode_atts(array( 
  3. 'heading' => 'Tab %d' 
  4. ), $atts)); 
  5.  
  6. $x = $GLOBALS['tab_count']; 
  7. $GLOBALS['tabs'][$x] = array( 'heading' => sprintf( $heading, $GLOBALS['tab_count'] ), 'content' => $content ); 
  8.  
  9. $GLOBALS['tab_count']++;