示例#1
0
 /**
  * DEFINE setting options of shortcode in frontend
  */
 public function frontend_element_items()
 {
     $this->items = array('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_TOOLTIP_ELEMENT_TITLE_STD'), 'role' => 'title', 'tooltip' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_ELEMENT_TITLE_DES')), array('name' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_TEXT'), 'id' => 'text', 'type' => 'text_field', 'class' => 'jsn-input-xxlarge-fluid', 'std' => JText::_('JSN_PAGEBUILDER_ELEMENT_TOOLTIP_TEXT_STD'), 'tooltip' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_TEXT_DES')), array('name' => JText::_('JSN_PAGEBUILDER_ELEMENT_TOOLTIP_CONTENT'), 'id' => 'tooltip_content', 'role' => 'content', 'type' => 'tiny_mce', 'std' => JText::_('JSN_PAGEBUILDER_ELEMENT_TOOLTIP_CONTENT_STD'), 'tooltip' => JText::_('JSN_PAGEBUILDER_ELEMENT_TOOLTIP_CONTENT_DES'), 'exclude_quote' => '1')), 'styling' => array(array('type' => 'preview'), array('name' => JText::_('JSN_PAGEBUILDER_ELEMENT_TOOLTIP_POSITION'), 'id' => 'position', 'type' => 'select', 'std' => JSNPagebuilderHelpersType::getFirstOption(JSNPagebuilderHelpersType::getFullPositions()), 'options' => JSNPagebuilderHelpersType::getFullPositions(), 'tooltip' => JText::_('JSN_PAGEBUILDER_ELEMENT_TOOLTIP_POSITION_DES')), array('name' => JText::_('JSN_PAGEBUILDER_ELEMENT_TOOLTIP_IN_BUTTON'), 'id' => 'tooltips_button', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_YES'), 'no' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_NO')), 'has_depend' => '1'), array('name' => JText::_('JSN_PAGEBUILDER_ELEMENT_TOOLTIP_BUTTON_COLOR'), 'id' => 'button_color', 'type' => 'select', 'std' => JSNPagebuilderHelpersType::getFirstOption(JSNPagebuilderHelpersType::getButtonColor()), 'options' => JSNPagebuilderHelpersType::getButtonColor(), 'container_class' => 'color_select2', 'dependency' => array('tooltips_button', '=', 'yes')), array('name' => JText::_('JSN_PAGEBUILDER_ELEMENT_TOOLTIP_DELAY'), 'container_class' => 'combo-group', 'type' => array(array('id' => 'show', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '500', 'append_before' => 'Show', 'append' => 'ms', 'parent_class' => 'combo-item', 'validate' => 'number'), array('id' => 'hide', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '100', 'append_before' => 'Hide', 'append' => 'ms', 'parent_class' => 'combo-item', 'validate' => 'number')))));
 }