Ejemplo n.º 1
0
 /**
  * DEFINE setting options of shortcode in frontend
  */
 public function frontend_element_items()
 {
     $this->items = array('action' => array(array('id' => 'btn_convert', 'type' => 'button_group', 'bound' => 0, 'actions' => array(array('std' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_ACTION_TAB'), 'action_type' => 'convert', 'action' => 'list_to_tab'), array('std' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_ACTION_ACCORDION'), 'action_type' => 'convert', 'action' => 'list_to_accordion'), array('std' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_ACTION_CAROUSEL'), 'action_type' => 'convert', 'action' => 'list_to_carousel')))), 'content' => array(array('name' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_ELEMENT_TITLE'), 'id' => 'el_title', 'type' => 'text_field', 'class' => 'jsn-input-xxlarge-fluid', 'std' => JText::_('JSN_PAGEBUILDER_ELEMENT_LIST_ELEMENT_TITLE_STD'), 'role' => 'title', 'tooltip' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_ELEMENT_TITLE_DES')), array('id' => 'list_items', 'name' => JText::_('JSN_PAGEBUILDER_ELEMENT_LIST_ITEMS'), 'type' => 'group', 'shortcode' => $this->config['shortcode'], 'sub_item_type' => $this->config['has_subshortcode'], 'sub_items' => array(array('std' => ''), array('std' => '')), 'label_item' => JText::_('JSN_PAGEBUILDER_ELEMENT_LIST_ITEMS_LABEL'))), 'styling' => array(array('type' => 'preview'), array('name' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_SHOW_ICON'), 'id' => 'show_icon', 'type' => 'radio', 'std' => 'yes', 'options' => array('yes' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_YES'), 'no' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_NO')), 'tooltip' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_SHOW_ICON_DES'), 'has_depend' => '1'), array('name' => JText::_('JSN_PAGEBUILDER_ELEMENT_LIST_ICON_POSITION'), 'id' => 'icon_position', 'type' => 'select', 'class' => 'input-small', 'std' => JSNPagebuilderHelpersType::getFirstOption(JSNPagebuilderHelpersType::getIconPosition()), 'options' => JSNPagebuilderHelpersType::getIconPosition(), 'tooltip' => JText::_('JSN_PAGEBUILDER_ELEMENT_LIST_ICON_POSITION_DES'), 'dependency' => array('show_icon', '=', 'yes')), array('name' => JText::_('JSN_PAGEBUILDER_ELEMENT_LIST_ICON_BACKGROUND'), 'type' => array(array('id' => 'icon_size_value', 'type' => 'select', 'class' => 'input-mini', 'std' => '32', 'options' => JSNPagebuilderHelpersType::getIconSizes(), 'parent_class' => 'combo-item input-append', 'append_text' => 'px'), array('id' => 'icon_background_type', 'type' => 'select', 'class' => 'input-small', 'std' => 'circle', 'options' => JSNPagebuilderHelpersType::getIconBackground(), 'parent_class' => 'combo-item'), array('id' => 'icon_background_color', 'type' => 'color_picker', 'std' => '#0088CC', 'parent_class' => 'combo-item')), 'tooltip' => JText::_('JSN_PAGEBUILDER_ELEMENT_LIST_ICON_BACKGROUND_DES'), 'container_class' => 'combo-group', 'dependency' => array('show_icon', '=', 'yes')), array('name' => JText::_('JSN_PAGEBUILDER_ELEMENT_LIST_ICON_COLOR'), 'type' => array(array('id' => 'icon_c_value', 'type' => 'text_field', 'class' => 'input-small', 'std' => '#FFFFFF', 'parent_class' => 'combo-item'), array('id' => 'icon_c_color', 'type' => 'color_picker', 'std' => '#ffffff', 'parent_class' => 'combo-item')), 'tooltip' => JText::_('JSN_PAGEBUILDER_ELEMENT_LIST_ICON_COLOR_DES'), 'container_class' => 'combo-group', 'dependency' => array('show_icon', '=', 'yes')), array('type' => 'hr'), array('name' => JText::_('JSN_PAGEBUILDER_ELEMENT_LIST_SHOW_HEADING'), 'id' => 'show_heading', 'type' => 'radio', 'std' => 'yes', 'options' => array('yes' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_YES'), 'no' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_NO')), 'tooltip' => JText::_('JSN_PAGEBUILDER_ELEMENT_LIST_SHOW_HEADING_DES'), 'has_depend' => '1'), array('name' => JText::_('JSN_PAGEBUILDER_ELEMENT_LIST_HEADING_FONT'), 'id' => 'font', 'type' => 'select', 'std' => 'inherit', 'options' => array('inherit' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_INHERIT'), 'custom' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_CUSTOM')), 'has_depend' => '1', 'tooltip' => JText::_('JSN_PAGEBUILDER_ELEMENT_LIST_HEADING_FONT_DES'), 'class' => 'input-medium', 'dependency' => array('show_heading', '=', 'yes')), array('name' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_FONT_FACE'), 'id' => 'font-family', 'type' => array(array('id' => 'font_face_type', 'type' => 'jsn_select_font_type', 'class' => 'input-medium', 'std' => 'standard fonts', 'options' => JSNPagebuilderHelpersType::getFonts(), 'parent_class' => 'combo-item'), array('id' => 'font_face_value', 'type' => 'jsn_select_font_value', 'class' => 'input-medium', 'std' => 'Verdana', 'options' => '', 'parent_class' => 'combo-item')), 'dependency' => array('font', '=', 'custom'), 'tooltip' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_FONT_FACE_DES'), 'container_class' => 'combo-group'), array('name' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_FONT_ATTRIBUTES'), 'id' => 'font-attributes', 'type' => array(array('id' => 'font_size_value', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '', 'append' => 'px', 'validate' => 'number', 'parent_class' => 'combo-item'), array('id' => 'font_style', 'type' => 'select', 'class' => 'input-medium', 'std' => 'bold', 'options' => JSNPagebuilderHelpersType::getFontStyles(), 'parent_class' => 'combo-item'), array('id' => 'color', 'type' => 'color_picker', 'std' => '#000000', 'parent_class' => 'combo-item')), 'dependency' => array('font', '=', 'custom'), 'tooltip' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_FONT_ATTRIBUTES_DES'), 'container_class' => 'combo-group')));
 }