Example #1
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Element Title', WR_MEGAMENU_TEXTDOMAIN), 'id' => 'el_title', 'type' => 'text_field', 'class' => 'input-sm', 'std' => __('', WR_MEGAMENU_TEXTDOMAIN), 'role' => 'title', 'tooltip' => __('Set title for current element for identifying easily', WR_MEGAMENU_TEXTDOMAIN)), array('name' => __('Text Content', WR_MEGAMENU_TEXTDOMAIN), 'desc' => __('Enter some content for this textblock', WR_MEGAMENU_TEXTDOMAIN), 'id' => 'text_value', 'type' => 'tiny_mce', 'role' => 'content', 'std' => WR_Megamenu_Helpers_Type::lorem_text(), 'rows' => 15, 'tooltip' => __('Set content of element', WR_MEGAMENU_TEXTDOMAIN))), 'appearance' => array(array('name' => __('Margin', WR_MEGAMENU_TEXTDOMAIN), 'container_class' => 'combo-group', 'id' => 'text_margin', 'type' => 'margin', 'extended_ids' => array('text_margin_top', 'text_margin_right', 'text_margin_bottom', 'text_margin_left'), 'text_margin_top' => array('std' => ''), 'text_margin_bottom' => array('std' => ''), 'tooltip' => __('Set margin size', WR_MEGAMENU_TEXTDOMAIN)), array('name' => __('Enable Dropcap', WR_MEGAMENU_TEXTDOMAIN), 'id' => 'enable_dropcap', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => __('Yes', WR_MEGAMENU_TEXTDOMAIN), 'no' => __('No', WR_MEGAMENU_TEXTDOMAIN)), 'tooltip' => __('Enable Dropcap', WR_MEGAMENU_TEXTDOMAIN), 'has_depend' => '1'), array('name' => __('Font Face', WR_MEGAMENU_TEXTDOMAIN), 'id' => 'dropcap_font_family', 'type' => array(array('id' => 'dropcap_font_face_type', 'type' => 'jsn_select_font_type', 'class' => 'input-medium input-sm', 'std' => 'standard fonts', 'options' => WR_Megamenu_Helpers_Type::get_fonts(), 'parent_class' => 'combo-item'), array('id' => 'dropcap_font_face_value', 'type' => 'jsn_select_font_value', 'class' => 'input-medium input-sm', 'std' => 'Verdana', 'options' => '', 'parent_class' => 'combo-item')), 'dependency' => array('enable_dropcap', '=', 'yes'), 'tooltip' => __('Set Font Face', WR_MEGAMENU_TEXTDOMAIN), 'container_class' => 'combo-group'), array('name' => __('Font Attributes', WR_MEGAMENU_TEXTDOMAIN), 'type' => array(array('id' => 'dropcap_font_size', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '64', 'append' => 'px', 'validate' => 'number', 'parent_class' => 'combo-item input-mini-inline'), array('id' => 'dropcap_font_style', 'type' => 'select', 'class' => 'input-medium wr-mini-input input-sm', 'std' => 'bold', 'options' => WR_Megamenu_Helpers_Type::get_font_styles(), 'parent_class' => 'combo-item'), array('id' => 'dropcap_font_color', 'type' => 'color_picker', 'std' => '#000000', 'parent_class' => 'combo-item')), 'dependency' => array('enable_dropcap', '=', 'yes'), 'tooltip' => __('Set Font Attribute', WR_MEGAMENU_TEXTDOMAIN), 'container_class' => 'combo-group'), array('name' => __('Line height', WR_MEGAMENU_TEXTDOMAIN), 'id' => 'line_height', 'class' => 'wr-slider wr-slider-height col-sm-3', 'exclude_class' => array('form-control'), 'type' => 'slider_height', 'std_max' => '100', 'std' => '20', 'tooltip' => __('Line height', WR_MEGAMENU_TEXTDOMAIN))));
 }