shortcodes from array.php
<?
$shortcode_list = array(
"quote_box",
"super_quote_box",
"content_band",
);
// Loop through the shortcode list and create shortcodes
foreach ($shortcode_list as $shortcode) {
class WPBakeryShortCode_{$shortcode} extends WPBakeryShortCodesContainer {
protected function content($atts, $content = null) {
extract(shortcode_atts(array(
'el_class' => '',
), $atts));
$output = '<div class="demo">';
$output .= wpb_js_remove_wpautop($content, true);
$output .= '</div>';
$output = $this->startRow($el_position) . $output . $this->endRow($el_position);
return $output;
}
}
}