| @@ -8,18 +8,17 @@ | ||
| 8 | 8 | extract(shortcode_atts(array( |
| 9 | 9 | 'width' => '100%', |
| 10 | 10 | 'style' => '', |
| 11 | 11 | 'responsive' => 'false', |
| 12 | - 'class' => '', | |
| 13 | - //'style'=>'' | |
| 12 | + 'class' => '' | |
| 14 | 13 | ), $params)); |
| 15 | 14 | $content = str_replace("]<br />", ']', $content); |
| 16 | - $out = '<table width="' . $width . '" class="table '.$class.EBS_CONTAINER_CLASS.'" style="' . $style . '">' . do_shortcode($content) . '</table>'; | |
| 17 | - $out = strtolower($responsive) == 'true' ? '<div class="table-responsive'.EBS_CONTAINER_CLASS.'">' . $out . '</div>' : $out; | |
| 15 | + $out = '<table width="' . $width . '" class="table ' . $style . ' '.$class.'">' . do_shortcode($content) . '</table>'; | |
| 16 | + $out = strtolower($responsive) == 'true' ? '<div class="table-responsive">' . $out . '</div>' : $out; | |
| 18 | 17 | return $out; |
| 19 | 18 | } |
| 20 | 19 | |
| 21 | -ebs_backward_compatibility_callback('table', 'osc_theme_os_table'); | |
| 20 | +add_shortcode('table', 'osc_theme_os_table'); | |
| 22 | 21 | |
| 23 | 22 | function osc_theme_os_table_head($params, $content = null) { |
| 24 | 23 | $out = '<thead><tr>' . do_shortcode($content) . '</tr></thead>'; |
| 25 | 24 | return $out; |
| @@ -24,9 +23,9 @@ | ||
| 24 | 23 | $out = '<thead><tr>' . do_shortcode($content) . '</tr></thead>'; |
| 25 | 24 | return $out; |
| 26 | 25 | } |
| 27 | 26 | |
| 28 | -ebs_backward_compatibility_callback('table_head', 'osc_theme_os_table_head'); | |
| 27 | +add_shortcode('table_head', 'osc_theme_os_table_head'); | |
| 29 | 28 | |
| 30 | 29 | function osc_theme_os_table_body($params, $content = null) { |
| 31 | 30 | $out = '<tbody>' . do_shortcode($content) . '</tbody>'; |
| 32 | 31 | return $out; |
| @@ -31,9 +30,9 @@ | ||
| 31 | 30 | $out = '<tbody>' . do_shortcode($content) . '</tbody>'; |
| 32 | 31 | return $out; |
| 33 | 32 | } |
| 34 | 33 | |
| 35 | -ebs_backward_compatibility_callback('table_body', 'osc_theme_os_table_body'); | |
| 34 | +add_shortcode('table_body', 'osc_theme_os_table_body'); | |
| 36 | 35 | |
| 37 | 36 | function osc_theme_os_table_row($params, $content = null) { |
| 38 | 37 | $out = '<tr>'; |
| 39 | 38 | $out .= do_shortcode($content); |
| @@ -40,9 +39,9 @@ | ||
| 40 | 39 | $out .= '</tr>'; |
| 41 | 40 | return $out; |
| 42 | 41 | } |
| 43 | 42 | |
| 44 | -ebs_backward_compatibility_callback('table_row', 'osc_theme_os_table_row'); | |
| 43 | +add_shortcode('table_row', 'osc_theme_os_table_row'); | |
| 45 | 44 | |
| 46 | 45 | function osc_theme_os_row_column($params, $content = null) { |
| 47 | 46 | $out = '<td>'; |
| 48 | 47 | $out .= do_shortcode($content); |
| @@ -49,9 +48,9 @@ | ||
| 49 | 48 | $out .= '</td>'; |
| 50 | 49 | return $out; |
| 51 | 50 | } |
| 52 | 51 | |
| 53 | -ebs_backward_compatibility_callback('row_column', 'osc_theme_os_row_column'); | |
| 52 | +add_shortcode('row_column', 'osc_theme_os_row_column'); | |
| 54 | 53 | |
| 55 | 54 | function osc_theme_os_th_column($params, $content = null) { |
| 56 | 55 | $out = '<th>'; |
| 57 | 56 | $out .= do_shortcode($content); |
| @@ -58,5 +57,5 @@ | ||
| 58 | 57 | $out .= '</th>'; |
| 59 | 58 | return $out; |
| 60 | 59 | } |
| 61 | 60 | |
| 62 | -ebs_backward_compatibility_callback('th_column', 'osc_theme_os_th_column'); | |
| 61 | +add_shortcode('th_column', 'osc_theme_os_th_column'); | |