示例#1
0
 /**
  * contain setting items of this element (use for modal box)
  *
  * @return void
  */
 function backend_element_items()
 {
     $this->items = array("Notab" => array(array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_BACKGROUND'), 'id' => 'background', 'type' => 'select', 'std' => 'none', 'options' => array('none' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_NONE'), 'solid' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_SOLID_COLOR'), 'gradient' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_GRADIENT_COLOR'), 'pattern' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_PATTERN'), 'image' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_IMAGE'), 'video' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_VIDEO')), "has_depend" => "1"), array("name" => JText::_("JSN_PAGEBUILDER_HELPER_ROW_SOLID_COLOR"), "type" => array(array("id" => "solid_color_value", "type" => "text_field", "class" => "input-small", "std" => '#FFFFFF', "parent_class" => "combo-item"), array("id" => "solid_color_color", "type" => "color_picker", "std" => "#ffffff", "parent_class" => "combo-item")), "container_class" => "combo-group", "dependency" => array('background', '=', 'solid')), array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_GRADIENT_COLOR'), "id" => "gradient_color", "type" => "gradient_picker", "std" => "0% #FFFFFF,100% #000000", "dependency" => array('background', '=', 'gradient')), array('id' => 'gradient_color_css', 'type' => 'text_field', 'std' => '', 'input-type' => 'hidden', 'container_class' => 'hidden', "dependency" => array('background', '=', 'gradient')), array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_GRADIENT_DIRECTION'), 'id' => 'gradient_direction', 'type' => 'select', 'std' => 'vertical', 'options' => array('vertical' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_VERTICAL'), 'horizontal' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_HORIZONTAL')), "dependency" => array('background', '=', 'gradient')), array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_PATTERN'), 'id' => 'pattern', 'type' => 'select_media', 'std' => '', 'class' => 'jsn-input-large-fluid', "dependency" => array('background', '=', 'pattern')), array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_REPEAT'), 'id' => 'repeat', 'type' => 'radio_button_group', 'std' => 'full', 'options' => array('full' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_FULL'), 'vertical' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_VERTICAL'), 'horizontal' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_HORIZONTAL')), "dependency" => array('background', '=', 'pattern')), array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_IMAGE'), 'id' => 'image', 'type' => 'select_media', 'std' => '', 'class' => 'jsn-input-large-fluid', "dependency" => array('background', '=', 'image')), array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_STRETCH'), 'id' => 'stretch', 'type' => 'radio_button_group', 'std' => 'none', 'options' => array('none' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_NONE'), 'full' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_FULL'), 'cover' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_COVER'), 'contain' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_CONTAIN')), "dependency" => array('background', '=', 'image')), array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_POSITION'), 'id' => 'position', 'type' => 'radio', 'label_type' => 'image', 'dimension' => array(23, 23), 'std' => 'center center', 'options' => array('left top' => array('left top'), 'center top' => array('center top'), 'right top' => array('right top', 'linebreak' => true), 'left center' => array('left center'), 'center center' => array('center center'), 'right center' => array('right center', 'linebreak' => true), 'left bottom' => array('left bottom'), 'center bottom' => array('center bottom'), 'right bottom' => array('right bottom')), "dependency" => array('background', '=', 'image')), array("name" => JText::_("JSN_PAGEBUILDER_HELPER_ROW_ENABLE_PARALAX"), "id" => "paralax", "type" => "radio", "std" => "no", "options" => array("yes" => JText::_("JSN_PAGEBUILDER_HELPER_BUILDER_YES"), "no" => JText::_("JSN_PAGEBUILDER_HELPER_BUILDER_NO")), "dependency" => array('background', '=', 'pattern__#__image')), array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_SCROLLING_EFFECT'), 'id' => 'parallax_scroll', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => JText::_('JSN_PAGEBUILDER_HELPER_BUILDER_YES'), 'no' => JText::_('JSN_PAGEBUILDER_HELPER_BUILDER_NO')), "dependency" => array('background', '=', 'pattern__#__image'), 'tooltip' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_SCROLLING_EFFECT_DES')), array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_VIDEO_URL'), 'id' => 'video_url', 'type' => 'select_media', 'std' => '', 'placeholder' => 'Youtube video url', 'dependency' => array('background', '=', 'video'), 'placeholder' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_VIDEO_URL_PLACEHOLDER')), array("name" => JText::_("JSN_PAGEBUILDER_HELPER_ROW_AUTOPLAY"), "id" => "autoplay", "type" => "radio", "std" => "no", "options" => array("1" => JText::_("JSN_PAGEBUILDER_HELPER_BUILDER_YES"), "0" => JText::_("JSN_PAGEBUILDER_HELPER_BUILDER_NO")), "dependency" => array('background', '=', 'video')), array("name" => JText::_("JSN_PAGEBUILDER_HELPER_ROW_BORDER"), "type" => array(array("id" => "border_width_value_", "type" => "text_append", "type_input" => "number", "class" => "input-mini", "std" => "0", "append" => "px", "validate" => "number", 'parent_class' => 'combo-item'), array("id" => "border_style", "type" => "select", "class" => "input-medium", "std" => 'solid', "options" => JSNPagebuilderHelpersType::getBorderStyles(), 'parent_class' => 'combo-item'), array("id" => "border_color", "type" => "color_picker", "std" => "#000", 'parent_class' => 'combo-item')), "container_class" => "combo-group"), array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_WIDTH'), 'type' => array(array('id' => 'width_value', 'type' => 'text_number', 'std' => '', 'class' => 'input-mini', 'validate' => 'number', 'parent_class' => 'combo-item merge-data'), array('id' => 'width_unit', 'type' => 'select', 'options' => array('%' => '%', 'px' => 'px'), 'std' => '%', 'class' => 'input-mini', 'parent_class' => 'combo-item merge-data')), 'container_class' => 'combo-group', 'tooltip' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_WIDTH_DES')), array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_PADDING'), 'container_class' => 'combo-group', 'id' => 'div_padding', 'type' => 'margin', 'extended_ids' => array('div_padding_top', 'div_padding_bottom', 'div_padding_right', 'div_padding_left'), 'div_padding_top' => array('std' => '10'), 'div_padding_bottom' => array('std' => '10'), 'div_padding_right' => array('std' => '10'), 'div_padding_left' => array('std' => '10')), array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_CSS_CLASS_SUFFIX'), 'id' => 'css_suffix', 'type' => 'text_field', 'std' => '', 'tooltip' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_CSS_CLASS_SUFFIX_DES')), array('name' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_ID'), 'id' => 'id_wrapper', 'type' => 'text_field', 'std' => JText::_(''), 'tooltip' => JText::_('JSN_PAGEBUILDER_HELPER_ROW_ID_DES'))));
 }
示例#2
0
 /**
  * contain setting items of this element (use for modal box)
  *
  * @return void
  */
 function element_items()
 {
     $this->items = array("Notab" => array(array('name' => JText::_('Background'), 'id' => 'background', 'type' => 'select', 'std' => 'none', 'options' => array('none' => JText::_('None'), 'solid' => JText::_('Solid Color'), 'gradient' => JText::_('Gradient Color'), 'pattern' => JText::_('Pattern'), 'image' => JText::_('Image'), 'video' => JText::_('Video')), "has_depend" => "1"), array("name" => JText::_("Solid Color"), "type" => array(array("id" => "solid_color_value", "type" => "text_field", "class" => "input-small", "std" => '#FFFFFF', "parent_class" => "combo-item"), array("id" => "solid_color_color", "type" => "color_picker", "std" => "#ffffff", "parent_class" => "combo-item")), "container_class" => "combo-group", "dependency" => array('background', '=', 'solid')), array('name' => JText::_('Gradient Color'), "id" => "gradient_color", "type" => "gradient_picker", "std" => "0% #FFFFFF,100% #000000", "dependency" => array('background', '=', 'gradient')), array('id' => 'gradient_color_css', 'type' => 'text_field', 'std' => '', 'input-type' => 'hidden', 'container_class' => 'hidden', "dependency" => array('background', '=', 'gradient')), array('name' => JText::_('Gradient Direction'), 'id' => 'gradient_direction', 'type' => 'select', 'std' => 'vertical', 'options' => array('vertical' => JText::_('Vertical'), 'horizontal' => JText::_('Horizontal')), "dependency" => array('background', '=', 'gradient')), array('name' => JText::_('Pattern'), 'id' => 'pattern', 'type' => 'select_media', 'std' => '', 'class' => 'jsn-input-large-fluid', "dependency" => array('background', '=', 'pattern')), array('name' => JText::_('Repeat'), 'id' => 'repeat', 'type' => 'radio_button_group', 'std' => 'full', 'options' => array('full' => JText::_('Full'), 'vertical' => JText::_('Vertical'), 'horizontal' => JText::_('Horizontal')), "dependency" => array('background', '=', 'pattern')), array('name' => JText::_('Image'), 'id' => 'image', 'type' => 'select_media', 'std' => '', 'class' => 'jsn-input-large-fluid', "dependency" => array('background', '=', 'image')), array('name' => JText::_('Stretch'), 'id' => 'stretch', 'type' => 'radio_button_group', 'std' => 'none', 'options' => array('none' => JText::_('None'), 'full' => JText::_('Full'), 'cover' => JText::_('Cover'), 'contain' => JText::_('Contain')), "dependency" => array('background', '=', 'image')), array('name' => JText::_('Position'), 'id' => 'position', 'type' => 'radio', 'label_type' => 'image', 'dimension' => array(23, 23), 'std' => 'center center', 'options' => array('left top' => array('left top'), 'center top' => array('center top'), 'right top' => array('right top', 'linebreak' => true), 'left center' => array('left center'), 'center center' => array('center center'), 'right center' => array('right center', 'linebreak' => true), 'left bottom' => array('left bottom'), 'center bottom' => array('center bottom'), 'right bottom' => array('right bottom')), "dependency" => array('background', '=', 'image')), array("name" => JText::_("Enable Paralax"), "id" => "paralax", "type" => "radio", "std" => "no", "options" => array("yes" => JText::_("Yes"), "no" => JText::_("No")), "dependency" => array('background', '=', 'pattern__#__image')), array('name' => JText::_('Scrolling Effect'), 'id' => 'parallax_scroll', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => JText::_('Yes'), 'no' => JText::_('No')), "dependency" => array('background', '=', 'pattern__#__image'), 'tooltip' => JText::_('Enable Advanced Parallax Scrolling Effect')), array('name' => JText::_('Video url'), 'id' => 'video_url', 'type' => 'text_field', 'std' => '', 'placeholder' => 'Youtube video url', 'dependency' => array('background', '=', 'video'), 'placeholder' => JText::_('http://youtube.')), array("name" => JText::_("AutoPlay"), "id" => "autoplay", "type" => "radio", "std" => "no", "options" => array("1" => JText::_("Yes"), "0" => JText::_("No")), "dependency" => array('background', '=', 'video')), array("name" => JText::_("Border"), "type" => array(array("id" => "border_width_value_", "type" => "text_append", "type_input" => "number", "class" => "input-mini", "std" => "0", "append" => "px", "validate" => "number", 'parent_class' => 'combo-item'), array("id" => "border_style", "type" => "select", "class" => "input-medium", "std" => 'solid', "options" => JSNPagebuilderHelpersType::getBorderStyles(), 'parent_class' => 'combo-item'), array("id" => "border_color", "type" => "color_picker", "std" => "#000", 'parent_class' => 'combo-item')), "container_class" => "combo-group"), array('name' => JText::_('Width'), 'type' => array(array('id' => 'width_value', 'type' => 'text_number', 'std' => '', 'class' => 'input-mini', 'validate' => 'number', 'parent_class' => 'combo-item merge-data'), array('id' => 'width_unit', 'type' => 'select', 'options' => array('%' => '%', 'px' => 'px'), 'std' => '%', 'class' => 'input-mini', 'parent_class' => 'combo-item merge-data')), 'container_class' => 'combo-group', 'tooltip' => JText::_('Set the width of a row (px or %)')), array('name' => JText::_('Padding'), 'container_class' => 'combo-group', 'id' => 'div_padding', 'type' => 'margin', 'extended_ids' => array('div_padding_top', 'div_padding_bottom', 'div_padding_right', 'div_padding_left'), 'div_padding_top' => array('std' => '10'), 'div_padding_bottom' => array('std' => '10'), 'div_padding_right' => array('std' => '10'), 'div_padding_left' => array('std' => '10')), array('name' => JText::_('CSS Class suffix'), 'id' => 'css_suffix', 'type' => 'text_field', 'std' => '', 'tooltip' => JText::_('Add custom css class for the wrapper div of this element')), array('name' => JText::_('ID'), 'id' => 'id_wrapper', 'type' => 'text_field', 'std' => JText::_(''), 'tooltip' => JText::_('Custom CSS ID for the wrapper div of this element'))));
 }
示例#3
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_HEADING_ELEMENT_TITLE_STD'), 'role' => 'title', 'tooltip' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_ELEMENT_TITLE_DES')), array('name' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_TAG'), 'id' => 'tag', 'type' => 'select', 'std' => 'h1', 'options' => array('h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'h6' => 'H6'), 'tooltip' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_TAG_DES')), array('name' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_TEXT'), 'id' => 'text', 'type' => 'text_field', 'role' => 'content', 'class' => 'jsn-input-xxlarge-fluid', 'std' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_TEXT_STD'), 'tooltip' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_TEXT_DES'))), 'styling' => array(array('type' => 'preview'), array('name' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_ALIGNMENT'), 'id' => 'text_align', 'type' => 'select', 'std' => JSNPagebuilderHelpersType::getFirstOption(JSNPagebuilderHelpersType::getTextAlign()), 'options' => JSNPagebuilderHelpersType::getTextAlign(), 'tooltip' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_ALIGNMENT_DES')), array('name' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_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', 'class' => 'input-medium', 'tooltip' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_FONT_DES')), 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'), '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'), array('name' => JText::_('JSN_PAGEBUILDER_ELEMENT_HEADING_BOTTOM_BORDER'), 'type' => array(array('id' => 'border_bottom_width_value_', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '', 'append' => 'px', 'validate' => 'number', 'parent_class' => 'combo-item'), array('id' => 'border_bottom_style', 'type' => 'select', 'class' => 'input-medium', 'std' => 'solid', 'options' => JSNPagebuilderHelpersType::getBorderStyles(), 'parent_class' => 'combo-item'), array('id' => 'border_bottom_color', 'type' => 'color_picker', 'std' => '#000000', 'parent_class' => 'combo-item')), 'tooltip' => JText::_('JSN_PAGEBUILDER_ELEMENT_HEADING_BOTTOM_BORDER_DES'), 'container_class' => 'combo-group'), array('name' => JText::_('JSN_PAGEBUILDER_ELEMENT_HEADING_BOTTOM_PADDING'), 'type' => array(array('id' => 'padding_bottom_value_', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '', 'append' => 'px', 'validate' => 'number')), 'tooltip' => JText::_('JSN_PAGEBUILDER_ELEMENT_HEADING_BOTTOM_PADDING_DES'))));
 }
示例#4
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_DIVIDER_ELEMENT_TITLE_STD'), 'role' => 'title', 'tooltip' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_ELEMENT_TITLE_DES'))), 'styling' => array(array('type' => 'preview'), array('name' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_BORDER'), 'type' => array(array('id' => 'div_border_width', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '2', 'append' => 'px', 'validate' => 'number', 'parent_class' => 'combo-item'), array('id' => 'div_border_style', 'type' => 'select', 'class' => 'input-medium', 'std' => 'solid', 'options' => JSNPagebuilderHelpersType::getBorderStyles(), 'parent_class' => 'combo-item'), array('id' => 'div_border_color', 'type' => 'color_picker', 'std' => '#E0DEDE', 'parent_class' => 'combo-item')), 'tooltip' => JText::_('JSN_PAGEBUILDER_DEFAULT_ELEMENT_BORDER_DES'), 'container_class' => 'combo-group')));
 }