Example #1
0
 /**
  * get params & structure of shortcode
  */
 public function shortcodeData()
 {
     $this->config['params'] = JSNTplMMHelperShortcode::generateShortcodeParams($this->items, null, null, false, true);
     $this->config['shortcode_structure'] = JSNTplMMHelperShortcode::generateShortcodeStructure($this->config['shortcode'], $this->config['params']);
 }
Example #2
0
 /**
  * Get params & structure of shortcode
  */
 public function shortcodeData()
 {
     $params = JSNTplMMHelperShortcode::generateShortcodeParams($this->items, null, null, false, true);
     // add Margin parameter for Not child shortcode
     if (strpos($this->config['shortcode'], '_item') === false) {
         if ($this->config['shortcode'] == 'jsn_mm_submenu') {
             $this->config['params'] = array_merge(array('disabled_el' => 'no', 'css_suffix' => '', 'id_wrapper' => ''), $params);
         } else {
             $this->config['params'] = array_merge(array('div_margin_top' => '10', 'div_margin_bottom' => '10', 'disabled_el' => 'no', 'css_suffix' => '', 'id_wrapper' => ''), $params);
         }
     } else {
         $this->config['params'] = $params;
     }
     $this->config['shortcode_structure'] = JSNTplMMHelperShortcode::generateShortcodeStructure($this->config['shortcode'], $this->config['params']);
 }