shortcode_list

The Evolved shortcode list function.

Description

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

Parameters (2)

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

Usage

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

Defined (1)

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

/functions.php  
  1. function shortcode_list( $atts, $content = null ) { 
  2. $atts = shortcode_atts( 
  3. array( 
  4. 'type' => 'arrow',  
  5. ), $atts); 
  6.  
  7. $content = str_replace('<ul>', '<ul class="list ' . $atts['type'] . '">', do_shortcode($content)); 
  8. $content = str_replace('<li>', '<li>', do_shortcode($content)); 
  9.  
  10. return $content; 
  11.