'', 'class' =>'', 'style'=>'simple', 'type' =>1 ), $args ); extract( $defaults ); self::$args = $defaults; $uniqid = uniqid('accordion-'); $this->id = $id.$uniqid; $this->num = 1; $class .= ' style'.$type; $html = '
'.do_shortcode( Magee_Core::fix_shortcodes($content)).'
'; return $html; } /** * Render the child shortcode * @param array $args Shortcode paramters * @param string $content Content between shortcode * @return string HTML output */ function render_child( $args, $content = '') { $defaults = Magee_Core::set_shortcode_defaults( array( 'title' =>'', 'status' =>'', 'close_icon' =>'', 'open_icon' =>'', 'background_color' => '', 'color' => '', ), $args ); extract( $defaults ); self::$args = $defaults; $html = ''; $icon_str = ''; if( $status == "open" ) { $status = "in"; $expanded = "true"; $collapse = ""; if($open_icon !== ''): $icon_str = ''; endif; } else{ $status = ""; $expanded = "false"; $collapse = "collapsed"; if($close_icon !== ''): $icon_str = ''; endif; } /*if( stristr($icon,'fa-')): else: $icon_str = ''; endif;*/ $itemId = 'collapse'.$this->id."-".$this->num; $addclass = 'panel-css-'.$this->num; $html .= '
'; $html .= ''; $html .= '
'.do_shortcode( Magee_Core::fix_shortcodes($content)).'
'; $this->num++; return $html; } } new Magee_Accordion(); endif;