"", ), $atts); $html = ''; $post_id = $atts['id']; $accordions_themes = get_post_meta( $post_id, 'accordions_themes', true ); ob_start(); include accordions_plugin_dir.'/templates/accordion/accordion.php'; echo $html; return ob_get_clean(); //return $html; } public function accordions_tabs_display($atts, $content = null ) { $atts = shortcode_atts( array( 'id' => "", ), $atts); $html = ''; $post_id = $atts['id']; $accordions_tabs_themes = get_post_meta( $post_id, 'accordions_tabs_themes', true ); include accordions_plugin_dir.'/templates/tabs/variables.php'; include accordions_plugin_dir.'/templates/tabs/tabs-scripts.php'; include accordions_plugin_dir.'/templates/tabs/tabs-custom-css.php'; include accordions_plugin_dir.'/templates/tabs/tabs-lazy.php'; if(empty($accordions_tabs_themes)){ $accordions_tabs_themes = 'flat'; } $html.= '
'; $html.= ''; if(!empty($accordions_content_title)) foreach ($accordions_content_title as $index => $accordions_title){ if(empty($accordions_hide[$index])){ $html.= '
'; include accordions_plugin_dir.'/templates/tabs/tabs-content.php'; $html.= '
'; } } $html.= '
'; $html.= ''; $html.= ''; return $html; } } new class_accordions_shortcodes();