| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | ), $atts)); |
| 8 | 8 | $content = str_replace("]<br />", ']', $content); |
| 9 | 9 | |
| 10 | 10 | $content = str_replace("<br />\n[", '[', $content); |
| 11 | - $result = '<div class="panel ' . $style . ' ' . $class . EBS_CONTAINER_CLASS.'">'; | |
| 11 | + $result = '<div class="panel ' . $style . ' ' . $class . '">'; | |
| 12 | 12 | $result .= do_shortcode($content); |
| 13 | 13 | $result .= '</div>'; |
| 14 | 14 | |
| 15 | 15 | return $result; |
| @@ -14,32 +14,32 @@ | ||
| 14 | 14 | |
| 15 | 15 | return $result; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | -ebs_backward_compatibility_callback('panel', 'osc_theme_panel'); | |
| 18 | +add_shortcode('panel', 'osc_theme_panel'); | |
| 19 | 19 | |
| 20 | 20 | function osc_theme_panel_footer($atts, $content = null) { |
| 21 | - $result = '<div class="panel-footer'.EBS_CONTAINER_CLASS.'">'; | |
| 21 | + $result = '<div class="panel-footer">'; | |
| 22 | 22 | $result .= do_shortcode($content); |
| 23 | 23 | $result .= '</div>'; |
| 24 | 24 | return $result; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | -ebs_backward_compatibility_callback('panel-footer', 'osc_theme_panel_footer'); | |
| 27 | +add_shortcode('panel-footer', 'osc_theme_panel_footer'); | |
| 28 | 28 | |
| 29 | 29 | function osc_theme_panel_heading($atts, $content = null) { |
| 30 | - $result = '<div class="panel-heading'.EBS_CONTAINER_CLASS.'">'; | |
| 30 | + $result = '<div class="panel-heading">'; | |
| 31 | 31 | $result .= do_shortcode($content); |
| 32 | 32 | $result .= '</div>'; |
| 33 | 33 | return $result; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | -ebs_backward_compatibility_callback('panel-header', 'osc_theme_panel_heading'); | |
| 36 | +add_shortcode('panel-header', 'osc_theme_panel_heading'); | |
| 37 | 37 | |
| 38 | 38 | function osc_theme_panel_content($atts, $content = null) { |
| 39 | - $result = '<div class="panel-body'.EBS_CONTAINER_CLASS.'">'; | |
| 39 | + $result = '<div class="panel-body">'; | |
| 40 | 40 | $result .= do_shortcode($content); |
| 41 | 41 | $result .= '</div>'; |
| 42 | 42 | return $result; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | -ebs_backward_compatibility_callback('panel-content', 'osc_theme_panel_content'); | |
| 45 | +add_shortcode('panel-content', 'osc_theme_panel_content'); | |