Example #1
0
 public function elementShortcode($atts = null, $content = null)
 {
     extract(JSNTplMMHelperShortcode::shortcodeAtts(array('span' => 'span6', 'style' => ''), $atts));
     $span = intval(substr($span, 4));
     //$class   = "col-md-$span col-sm-$span col-xs-12";
     //$spanSmall	= intval($span * 3 / 2);
     $class = "col-md-{$span} col-sm-{$span}";
     $content = empty($content) ? JSNTplMMHelperShortcode::removeAutop($content) : JSNTplMMHelperShortcode::doShortcodeFrontend($content);
     $html = '';
     $html .= '<div class="jsn-tpl-mm-column-element ' . $class . '">' . $content . '</div>';
     return $html;
 }
Example #2
0
 public function elementShortcode($atts = null, $content = null)
 {
     $extraClass = '';
     $html = '';
     $extraClass .= !empty($atts['css_suffix']) ? ' ' . $atts['css_suffix'] : '';
     $content = empty($content) ? JSNTplMMHelperShortcode::removeAutop($content) : JSNTplMMHelperShortcode::doShortcodeFrontend($content);
     $html .= '<div class="row jsn-tpl-mm-row-element' . $extraClass . '">' . $content . '</div>';
     return $html;
 }