| @@ -12,9 +12,10 @@ | ||
| 12 | 12 | 'class' => '' |
| 13 | 13 | ), $params)); |
| 14 | 14 | $_oscitas_tabs[$id] = array(); |
| 15 | 15 | do_shortcode($content); |
| 16 | - $scontent = '<ul class="nav nav-tabs'.EBS_CONTAINER_CLASS.'" id="oscitas-tabs-' . $id . '">' . implode('', $_oscitas_tabs[$id]['tabs']) . '</ul><div class="tab-content'.EBS_CONTAINER_CLASS.'">' . implode('', $_oscitas_tabs[$id]['panes']) . '</div>'; | |
| 16 | + $scontent = '<ul class="nav nav-tabs " id="oscitas-tabs-' . $id . '">' . implode('', $_oscitas_tabs[$id]['tabs']) . '</ul><div | |
| 17 | + class="tab-content">' . implode('', $_oscitas_tabs[$id]['panes']) . '</div>'; | |
| 17 | 18 | if (trim($scontent) != "") { |
| 18 | 19 | $output = '<div class="' . $class . '">' . $scontent; |
| 19 | 20 | $output .= '</div>'; |
| 20 | 21 | |
| @@ -22,9 +23,9 @@ | ||
| 22 | 23 | } else { |
| 23 | 24 | return ""; |
| 24 | 25 | } |
| 25 | 26 | } |
| 26 | -ebs_backward_compatibility_callback('tabs', 'osc_theme_tabs'); | |
| 27 | +add_shortcode('tabs', 'osc_theme_tabs'); | |
| 27 | 28 | |
| 28 | 29 | function osc_theme_tab($params, $content = null) { |
| 29 | 30 | global $_oscitas_tabs; |
| 30 | 31 | extract(shortcode_atts(array( |
| @@ -36,12 +37,12 @@ | ||
| 36 | 37 | if (!isset($_oscitas_tabs[$index]['tabs'])) { |
| 37 | 38 | $_oscitas_tabs[$index]['tabs'] = array(); |
| 38 | 39 | } |
| 39 | 40 | $pane_id = 'pane-' . $index . '-' . count($_oscitas_tabs[$index]['tabs']); |
| 40 | - $_oscitas_tabs[$index]['tabs'][] = '<li class="' . $active.EBS_CONTAINER_CLASS. '"><a class="'.EBS_CONTAINER_CLASS.'" href="#' . $pane_id . '" data-toggle="tab">' . $title | |
| 41 | + $_oscitas_tabs[$index]['tabs'][] = '<li class="' . $active . '"><a href="#' . $pane_id . '" data-toggle="tab">' . $title | |
| 41 | 42 | . '</a></li>'; |
| 42 | - $_oscitas_tabs[$index]['panes'][] = '<div class="tab-pane ' . $active .EBS_CONTAINER_CLASS. '" id="' | |
| 43 | + $_oscitas_tabs[$index]['panes'][] = '<div class="tab-pane ' . $active . '" id="' | |
| 43 | 44 | . $pane_id . '">' |
| 44 | 45 | . do_shortcode |
| 45 | 46 | (trim($content)) . '</div>'; |
| 46 | 47 | } |
| 47 | -ebs_backward_compatibility_callback('tab', 'osc_theme_tab'); | |
| 48 | +add_shortcode('tab', 'osc_theme_tab'); | |