• Hello,i am having a problem with studiofollio.i am getting a warning:Warning: implode() [function.implode]: Invalid arguments passed in /home/yong/public_html/wp-content/themes/studiofolio/lib/shortcode.php on line 116 do you know how i can fix it? the line is
    $return = “\n”.'<div id=”‘.$id.'” class=”accordion”>’.”\n”.implode( “\n”, $panes ).'</div>’.”\n”; the whole paragraph is :
    function accordiongroup( $atts, $content ){
    $GLOBALS[‘accordion_count’] = 0;
    $GLOBALS[‘accordions’] = array();
    extract(shortcode_atts(array(
    ‘id’ => ”,
    ‘title’ => ”
    ), $atts));
    do_shortcode( $content );
    if( is_array( $GLOBALS[‘accordions’] ) ){
    foreach( $GLOBALS[‘accordions’] as $tab ){
    $activepan = ($tab[‘state’] == ‘active’) ? ‘in’:”;
    $panes[] = ‘<div class=”accordion-group”><div class=”accordion-heading”>‘.$tab[‘title’].’</div><div id=”‘.$tab[‘id’].'” class=”accordion-body collapse ‘.$activepan.'”><div class=”accordion-inner”>’.do_shortcode($tab[‘content’]).'</div></div></div>’;
    }
    $return = “\n”.'<div id=”‘.$id.'” class=”accordion”>’.”\n”.implode( “\n”, $panes ).'</div>’.”\n”;
    }
    return $return;
    }

    add_shortcode( ‘accordion’, ‘accordions’ );
    does anyone knows how to fix it?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Warning Implode function’ is closed to new replies.