예제 #1
0
파일: layouts.php 프로젝트: scottnkerr/eeco
 public function getContentLayouts()
 {
     $output = '<li><ul class="wpb-content-layouts">';
     // $output .= $this->getColumnLayouts();
     foreach (WPBMap::getSortedUserShortCodes() as $el) {
         $sc_base = $el['base'];
         if (isset($el['content_element']) && $el['content_element'] === false) {
             continue;
         }
         $element_button = new WPBakeryVisualComposerElementButton();
         $output .= $element_button->setBase($sc_base)->setup($el)->output();
     }
     $output .= '</ul></li>';
     return $output;
 }
예제 #2
0
 public function getContentLayouts()
 {
     $output = '';
     foreach (WPBMap::getShortCodes() as $sc_base => $el) {
         $element_button = new WPBakeryVisualComposerElementButton();
         $output .= $element_button->setBase($sc_base)->setup($el)->output();
     }
     return $output;
 }