PluginProbe
Easy Bootstrap Shortcode / 4.5
Easy Bootstrap Shortcode v4.5
trunk 2.4.0 2.5 3.4 3.5 3.6 3.7 4.0.0 4.4 4.5 4.5.4 5.0.0 5.0.1 5.0.2
easy-bootstrap-shortcodes / shortcode / deslist / plugin_shortcode.php

plugin_shortcode.php in Easy Bootstrap Shortcode 4.5, at shortcode/deslist/plugin_shortcode.php

25 lines 863 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 function osc_theme_deslist($params, $content = null) {
4 extract(shortcode_atts(array(
5 'class' => '',
6 'style' =>''
7 ), $params));
8 $content = str_replace("]<br />", ']', $content);
9 $content = str_replace("]<br />\n", ']', $content);
10 $content = str_replace("<br />\n[", '[', $content);
11 return '<dl class="osc-deslist ' . $style . ' '.$class.EBS_CONTAINER_CLASS.'">' . do_shortcode($content) . '</dl>';
12 }
13
14 ebs_backward_compatibility_callback('dl', 'osc_theme_deslist');
15
16 function osc_theme_dlitem($params, $content = null) {
17 extract(shortcode_atts(array(
18 'heading' => ''
19 ), $params));
20 $out='<dt>'.do_shortcode($heading).'</dt>';
21 $out.='<dd>'.do_shortcode($content).'</dd>';
22 return $out;
23 }
24
25 ebs_backward_compatibility_callback('dlitem', 'osc_theme_dlitem');