skipv1_0_0Element

The Facebook Fanpage Import skip v1 0 Element class.

Defined (1)

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

/includes/skip/elements/element.php  
  1. class Element{ 
  2.  
  3. var $before_element; 
  4. var $after_element; 
  5.  
  6. var $elements = array(); 
  7.  
  8. public function __construct( $args = array() ) { 
  9. $defaults = array( 
  10. 'before_element' => '',  
  11. 'after_element' => '',  
  12. ); 
  13.  
  14. $args = wp_parse_args( $args, $defaults ); 
  15. extract( $args , EXTR_SKIP ); 
  16.  
  17. $this->before_element = $before_element; 
  18. $this->after_element = $after_element; 
  19.  
  20. public function before( $content ) { 
  21. $this->before_element.= $content; 
  22.  
  23. public function after( $content ) { 
  24. $this->after_element.= $content; 
  25.  
  26. public function add_element( $element ) { 
  27. $this->elements[] = $element; 
  28.  
  29. public function render() { 
  30. foreach( $this->elements AS $element ) 
  31. $content.= $element; 
  32.  
  33. $content = $this->before_content . $content . $this->after_element; 
  34. return $content;