Skip to content

Instantly share code, notes, and snippets.

@asifpix
Created September 12, 2018 05:29
Show Gist options
  • Save asifpix/598d3289c84642491c58e2506f240588 to your computer and use it in GitHub Desktop.
Save asifpix/598d3289c84642491c58e2506f240588 to your computer and use it in GitHub Desktop.
<?php
//no direct accees
defined ('_JEXEC') or die ('restricted aceess');
SpAddonsConfig::addonConfig(
array(
'type'=>'repeatable',
'addon_name'=>'special_dishes',
'category'=>'Madison',
'title'=>'Special Dishes',
'desc'=>'This is Special Dishes Addon',
'attr'=>array(
'admin_label'=>array(
'type'=>'text',
'title'=>JText::_('COM_SPPAGEBUILDER_ADDON_ADMIN_LABEL'),
'desc'=>JText::_('COM_SPPAGEBUILDER_ADDON_ADMIN_LABEL_DESC'),
'std'=> ''
),
'class'=>array(
'type'=>'text',
'title'=>JText::_('COM_SPPAGEBUILDER_ADDON_CLASS'),
'desc'=>JText::_('COM_SPPAGEBUILDER_ADDON_CLASS_DESC'),
'std'=> ''
),
'repeatable_item'=>array(
'title'=> 'Repeatable',
'attr'=> array(
'title'=>array(
'type'=>'text',
'title'=>'Dishes Title',
'desc'=>'Add Dishes Title Here',
'std'=>'Fried Rice with Chili Chicken',
),
'dishes_image'=>array(
'type'=>'media',
'title'=>'Dishes Image',
'desc'=>'Add Dishes Images From Here',
),
'dishes_description'=>array(
'type'=>'editor',
'title'=>'Dishes Description',
'desc'=>'Add Dishes Description From Here',
'std'=> 'Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus. Nulla quis lorem ut libero malesuada feugiat. Praesent sapien massa, convallis a pellentesque nec, egestas non nisi. Proin eget tortor risus.'
),
'dishes_ingredient'=>array(
'type'=>'text',
'title'=>'Dishes Ingredient',
'desc'=>'Add Dishes Ingredient From Here',
'std'=> 'Beaf, Tomato, Onion, Garlic, Chili, Oil, Potato'
),
'dishes_price'=>array(
'type'=>'text',
'title'=>'Price',
'desc'=>'Add Dishes Price From Here',
'std'=> '$19'
),
)
),
)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment