'article_box',
'name' => __('Article Box', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-article_box',
'params' => array(
array(
'param_name' => 'image',
'type' => 'attach_image',
'heading' => __('Image', 'mfn-opts'),
'description' => __('Featured Image', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'slogan',
'type' => 'textfield',
'heading' => __('Slogan', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'link',
'type' => 'textfield',
'heading' => __('Link', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'target',
'type' => 'dropdown',
'heading' => __('Link | Target', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'' => 'Default | _self',
'_blank' => 'New Tab or Window | _blank' ,
'lightbox' => 'Lightbox (image or embed video)',
)),
),
)
));
// Before After
vc_map(array(
'base' => 'before_after',
'name' => __('Before After', 'mfn-opts'),
'description' => __('Item do NOT work in Frontend Editor', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-before_after',
'params' => array(
array(
'param_name' => 'image_before',
'type' => 'attach_image',
'heading' => __('Image | Before', 'mfn-opts'),
'description' => __('Image width should be no less than the width of a column. Minimum 700px', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'image_after',
'type' => 'attach_image',
'heading' => __('Image | After', 'mfn-opts'),
'description' => __('Both images must have the same size', 'mfn-opts'),
'admin_label' => false,
),
)
));
// Blockquote
vc_map(array(
'base' => 'blockquote',
'name' => __('Blockquote', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-blockquote',
'params' => array(
array(
'param_name' => 'content',
'type' => 'textarea',
'heading' => __('Content', 'mfn-opts'),
'admin_label' => true,
'value' => __('Insert your content here', 'mfn-opts'),
),
array(
'param_name' => 'author',
'type' => 'textfield',
'heading' => __('Author', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'link',
'type' => 'textfield',
'heading' => __('Link', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'target',
'type' => 'dropdown',
'heading' => __('Link | Target', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'' => 'Default | _self',
'_blank' => 'New Tab or Window | _blank' ,
'lightbox' => 'Lightbox (image or embed video)',
)),
),
)
));
// Blog
vc_map(array(
'base' => 'blog',
'name' => __('Blog', 'mfn-opts'),
'description' => __('Recommended column size: 1/1', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-blog',
'params' => array(
array(
'param_name' => 'count',
'type' => 'textfield',
'heading' => __('Count', 'mfn-opts'),
'description' => __('Number of posts to show', 'mfn-opts'),
'admin_label' => true,
'value' => 2,
),
array(
'param_name' => 'style',
'type' => 'dropdown',
'heading' => __('Style', 'mfn-opts'),
'admin_label' => true,
'value' => array_flip(array(
'classic' => 'Classic',
'grid' => 'Grid',
'masonry' => 'Masonry Blog Style',
'masonry tiles' => 'Masonry Tiles',
'photo' => 'Photo (Horizontal Images)',
'timeline' => 'Timeline',
)),
),
array(
'param_name' => 'columns',
'type' => 'dropdown',
'heading' => __('Columns', 'mfn-opts'),
'description' => __('Default: 3. Recommended: 2-4. Too large value may crash the layout.
This option works in styles: Grid, Masonry', 'mfn-opts'),
'admin_label' => true,
'value' => array_flip(array(
2 => 2,
3 => 3,
4 => 4,
5 => 5,
6 => 6,
)),
),
array(
'param_name' => 'category',
'type' => 'dropdown',
'heading' => __('Category', 'mfn-opts'),
'description' => __('Select posts category', 'mfn-opts'),
'admin_label' => true,
'value' => array_flip(mfn_get_categories('category')),
),
array(
'param_name' => 'category_multi',
'type' => 'textfield',
'heading' => __('Multiple Categories', 'mfn-opts'),
'description' => __('Categories slugs. Slugs should be separated with coma ( , )', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'exclude_id',
'type' => 'textfield',
'heading' => __('Exclude Posts', 'mfn-opts'),
'description' => __('Posts IDs. IDs should be separated with coma ( , )', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'more',
'type' => 'dropdown',
'heading' => __('Show | Read More link', 'mfn-opts'),
'admin_label' => false,
'value' => array(
__('No', 'mfn-opts') => 0,
__('Yes', 'mfn-opts') => 1,
),
),
array(
'param_name' => 'filters',
'type' => 'dropdown',
'heading' => __('Show | Filters', 'mfn-opts'),
'description' => __('This option works in Category: All and Style: Masonry', 'mfn-opts'),
'admin_label' => false,
'value' => array(
__('No', 'mfn-opts') => 0,
__('Yes', 'mfn-opts') => 1,
),
),
array(
'param_name' => 'pagination',
'type' => 'dropdown',
'heading' => __('Show | Pagination', 'mfn-opts'),
'description' => __('Notice: Pagination will not work if you put item on Homepage of WordPress Multilangual Site.', 'mfn-opts'),
'admin_label' => false,
'value' => array(
__('No', 'mfn-opts') => 0,
__('Yes', 'mfn-opts') => 1,
),
),
array(
'param_name' => 'greyscale',
'type' => 'dropdown',
'heading' => __('Greyscale Image', 'mfn-opts'),
'admin_label' => false,
'value' => array(
__('No', 'mfn-opts') => 0,
__('Yes', 'mfn-opts') => 1,
),
),
array(
'param_name' => 'margin',
'type' => 'dropdown',
'heading' => __('Margin', 'mfn-opts'),
'description' => __('for Style: Masonry Tiles only', 'mfn-opts'),
'admin_label' => false,
'value' => array(
__('No', 'mfn-opts') => 0,
__('Yes', 'mfn-opts') => 1,
),
),
)
));
// Blog News
vc_map(array(
'base' => 'blog_news',
'name' => __('Blog News', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-blog_news',
'params' => array(
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'style',
'type' => 'dropdown',
'heading' => __('Style', 'mfn-opts'),
'admin_label' => true,
'value' => array_flip(array(
'' => __('Default', 'mfn-opts'),
'featured' => __('Featured 1st', 'mfn-opts'),
)),
),
array(
'param_name' => 'count',
'type' => 'textfield',
'heading' => __('Count', 'mfn-opts'),
'description' => __('Number of posts to show', 'mfn-opts'),
'admin_label' => true,
'value' => 2,
),
array(
'param_name' => 'category',
'type' => 'dropdown',
'heading' => __('Category', 'mfn-opts'),
'description' => __('Select posts category', 'mfn-opts'),
'admin_label' => true,
'value' => array_flip(mfn_get_categories('category')),
),
array(
'param_name' => 'category_multi',
'type' => 'textfield',
'heading' => __('Multiple Categories', 'mfn-opts'),
'description' => __('Slugs should be separated with coma (,)', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'excerpt',
'type' => 'dropdown',
'heading' => __('Excerpt', 'mfn-opts'),
'admin_label' => true,
'value' => array_flip(array(
0 => __('Hide', 'mfn-opts'),
1 => __('Show', 'mfn-opts'),
'featured' => __('Show for Featured only', 'mfn-opts'),
)),
),
array(
'param_name' => 'link',
'type' => 'textfield',
'heading' => __('Button | Link', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'link_title',
'type' => 'textfield',
'heading' => __('Button | Title', 'mfn-opts'),
'admin_label' => true,
),
)
));
// Blog Slider
vc_map(array(
'base' => 'blog_slider',
'name' => __('Blog Slider', 'mfn-opts'),
'description' => __('Item do NOT work in Frontend Editor', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-blog_slider',
'params' => array(
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'count',
'type' => 'textfield',
'heading' => __('Count', 'mfn-opts'),
'description' => __('Number of posts to show', 'mfn-opts'),
'admin_label' => true,
'value' => 2,
),
array(
'param_name' => 'category',
'type' => 'dropdown',
'heading' => __('Category', 'mfn-opts'),
'description' => __('Select posts category', 'mfn-opts'),
'admin_label' => true,
'value' => array_flip(mfn_get_categories('category')),
),
array(
'param_name' => 'category_multi',
'type' => 'textfield',
'heading' => __('Multiple Categories', 'mfn-opts'),
'description' => __('Slugs should be separated with coma (,)', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'more',
'type' => 'dropdown',
'heading' => __('Show Read More button', 'mfn-opts'),
'value' => array(
__('No', 'mfn-opts') => 0,
__('Yes', 'mfn-opts') => 1,
),
),
array(
'param_name' => 'style',
'type' => 'dropdown',
'heading' => __('Style', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'' => 'Default',
'flat' => 'Flat',
)),
),
array(
'param_name' => 'navigation',
'type' => 'dropdown',
'heading' => __('Navigation', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'' => __('Default', 'mfn-opts'),
'hide-arrows' => __('Hide Arrows', 'mfn-opts'),
'hide-dots' => __('Hide Dots', 'mfn-opts'),
'hide-nav' => __('Hide Navigation', 'mfn-opts'),
)),
),
)
));
// Call to Action
vc_map(array(
'base' => 'call_to_action',
'name' => __('Call to Action', 'mfn-opts'),
'description' => __('Recommended column size: 1/1', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-call_to_action',
'params' => array(
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'icon',
'type' => 'textfield',
'heading' => __('Icon', 'mfn-opts'),
'description' => __('Font Icon, eg. icon-lamp', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'content',
'type' => 'textarea',
'heading' => __('Content', 'mfn-opts'),
'admin_label' => true,
'value' => __('Insert your content here', 'mfn-opts'),
),
array(
'param_name' => 'button_title',
'type' => 'textfield',
'heading' => __('Button Title', 'mfn-opts'),
'description' => __('Leave this field blank if you want Call to Action with Big Icon', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'link',
'type' => 'textfield',
'heading' => __('Link', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'target',
'type' => 'dropdown',
'heading' => __('Link | Target', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'' => 'Default | _self',
'_blank' => 'New Tab or Window | _blank' ,
'lightbox' => 'Lightbox (image or embed video)',
)),
),
array(
'param_name' => 'class',
'type' => 'textfield',
'heading' => __('Class', 'mfn-opts'),
'description' => __('This option is useful when you want to use scroll', 'mfn-opts'),
'admin_label' => false,
),
)
));
// Chart
vc_map(array(
'base' => 'chart',
'name' => __('Chart', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-chart',
'params' => array(
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'percent',
'type' => 'textfield',
'heading' => __('Percent', 'mfn-opts'),
'description' => __('Number between 0-100', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'label',
'type' => 'textfield',
'heading' => __('Chart Label', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'icon',
'type' => 'textfield',
'heading' => __('Icon', 'mfn-opts'),
'description' => __('Font Icon, eg. icon-lamp', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'image',
'type' => 'attach_image',
'heading' => __('Chart Image', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'line_width',
'type' => 'textfield',
'heading' => __('Line Width', 'mfn-opts'),
'description' => __('px (optional)', 'mfn-opts'),
'admin_label' => true,
),
)
));
// Clients
vc_map(array(
'base' => 'clients',
'name' => __('Clients', 'mfn-opts'),
'description' => __('Recommended column size: 1/1', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-clients',
'params' => array(
array(
'param_name' => 'in_row',
'type' => 'textfield',
'heading' => __('Items in Row', 'mfn-opts'),
'desc' => __('Number of items in row. Recommended number: 3-6', 'mfn-opts'),
'admin_label' => true,
'value' => 6,
),
array(
'param_name' => 'category',
'type' => 'textfield',
'heading' => __('Category', 'mfn-opts'),
'desc' => __('Client Category slug', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'orderby',
'type' => 'dropdown',
'heading' => __('Order by', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'date' => 'Date',
'menu_order' => 'Menu order',
'title' => 'Title',
'rand' => 'Random',
)),
),
array(
'param_name' => 'order',
'type' => 'dropdown',
'heading' => __('Order', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'ASC' => 'Ascending',
'DESC' => 'Descending',
)),
),
array(
'param_name' => 'style',
'type' => 'dropdown',
'heading' => __('Style', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'' => 'Default',
'tiles' => 'Tiles',
)),
),
array(
'param_name' => 'greyscale',
'type' => 'dropdown',
'heading' => __('Greyscale Images', 'mfn-opts'),
'value' => array(
__('No', 'mfn-opts') => 0,
__('Yes', 'mfn-opts') => 1,
),
),
)
));
// Clients Slider
vc_map(array(
'base' => 'clients_slider',
'name' => __('Clients Slider', 'mfn-opts'),
'description' => __('Item do NOT work in Frontend Editor', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-clients_slider',
'params' => array(
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'category',
'type' => 'textfield',
'heading' => __('Category', 'mfn-opts'),
'desc' => __('Client Category slug', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'orderby',
'type' => 'dropdown',
'heading' => __('Order by', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'menu_order' => 'Menu order',
'date' => 'Date',
'title' => 'Title',
'rand' => 'Random',
)),
),
array(
'param_name' => 'order',
'type' => 'dropdown',
'heading' => __('Order', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'ASC' => 'Ascending',
'DESC' => 'Descending',
)),
),
)
));
// Code
vc_map(array(
'base' => 'code',
'name' => __('Code', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-code',
'params' => array(
array(
'param_name' => 'content',
'type' => 'textarea',
'heading' => __('Content', 'mfn-opts'),
'admin_label' => true,
),
)
));
// Contact box
vc_map(array(
'base' => 'contact_box',
'name' => __('Contact box', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-contact_box',
'params' => array(
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'address',
'type' => 'textarea',
'heading' => __('Address', 'mfn-opts'),
'admin_label' => true,
'value' => __('Insert your content here', 'mfn-opts'),
),
array(
'param_name' => 'telephone',
'type' => 'textfield',
'heading' => __('Phone', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'telephone_2',
'type' => 'textfield',
'heading' => __('Phone 2nd', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'fax',
'type' => 'textfield',
'heading' => __('Fax', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'email',
'type' => 'textfield',
'heading' => __('Email', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'www',
'type' => 'textfield',
'heading' => __('WWW', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'image',
'type' => 'attach_image',
'heading' => __('Background Image', 'mfn-opts'),
'admin_label' => false,
),
)
));
// Countdown
vc_map(array(
'base' => 'countdown',
'name' => __('Countdown', 'mfn-opts'),
'description' => __('Recommended column size: 1/1', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-countdown',
'params' => array(
array(
'param_name' => 'date',
'type' => 'textfield',
'heading' => __('Lunch Date', 'mfn-opts'),
'description' => __('Format: 12/30/2017 12:00:00 month/day/year hour:minute:second', 'mfn-opts'),
'admin_label' => true,
'value' => '12/30/2017 12:00:00',
),
array(
'param_name' => 'timezone',
'type' => 'dropdown',
'heading' => __('UTC Timezone', 'mfn-opts'),
'admin_label' => true,
'value' => array_flip(mfna_utc()),
),
)
));
// Counter
vc_map(array(
'base' => 'counter',
'name' => __('Counter', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-counter',
'params' => array(
array(
'param_name' => 'icon',
'type' => 'textfield',
'heading' => __('Icon', 'mfn-opts'),
'description' => __('Font Icon, eg. icon-lamp', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'color',
'type' => 'colorpicker',
'heading' => __('Icon Color', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'image',
'type' => 'attach_image',
'heading' => __('Chart Image', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'number',
'type' => 'textfield',
'heading' => __('Number', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'prefix',
'type' => 'textfield',
'heading' => __('Prefix', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'label',
'type' => 'textfield',
'heading' => __('Postfix', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'type',
'type' => 'dropdown',
'heading' => __('Style', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'vertical' => __('Vertical', 'mfn-opts'),
'horizontal' => __('Horizontal', 'mfn-opts'),
)),
),
)
));
// Fancy Heading
vc_map(array(
'base' => 'fancy_heading',
'name' => __('Fancy Heading', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-fancy_heading',
'params' => array(
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'h1',
'type' => 'dropdown',
'heading' => __('Use H1 tag', 'mfn-opts'),
'description' => __('Wrap title into H1 instead of H2', 'mfn-opts'),
'admin_label' => false,
'value' => array(
__('No', 'mfn-opts') => 0,
__('Yes', 'mfn-opts') => 1,
),
),
array(
'param_name' => 'icon',
'type' => 'textfield',
'heading' => __('Icon', 'mfn-opts'),
'description' => __('Icon Style only. Font Icon, eg. icon-lamp', 'mfn-opts'),
'admin_label' => true,
'value' => 'icon-lamp',
),
array(
'param_name' => 'slogan',
'type' => 'textfield',
'heading' => __('Slogan', 'mfn-opts'),
'description' => __('Line Style only', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'content',
'type' => 'textarea',
'heading' => __('Content', 'mfn-opts'),
'admin_label' => true,
'value' => __('Insert your content here', 'mfn-opts'),
),
array(
'param_name' => 'style',
'type' => 'dropdown',
'heading' => __('Style', 'mfn-opts'),
'description' => __('Some fields above work on selected styles.', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'icon' => 'Icon',
'line' => 'Line',
'arrows' => 'Arrows',
)),
),
)
));
// Feature List
vc_map(array(
'base' => 'feature_list',
'name' => __('Feature List', 'mfn-opts'),
'description' => __('Recommended column size: 1/1', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-feature_list',
'params' => array(
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'description' => __('This field is used as an Item Label in admin panel only.', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'content',
'type' => 'textarea',
'heading' => __('Content', 'mfn-opts'),
'description' => __('Please use [item icon="" title="List item" link="" target=""] shortcodes.', 'mfn-opts'),
'admin_label' => false,
'value' => '[item icon="icon-lamp" title="List item" link="" target="" animate=""]',
),
array(
'param_name' => 'columns',
'type' => 'dropdown',
'heading' => __('Columns', 'mfn-opts'),
'description' => __('Default: 4. Recommended: 2-4. Too large value may crash the layout.', 'mfn-opts'),
'admin_label' => false,
'value' => array( 2, 3, 4, 5, 6 ),
),
)
));
// Flat Box
vc_map(array(
'base' => 'flat_box',
'name' => __('Flat Box', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-flat_box',
'params' => array(
array(
'param_name' => 'image',
'type' => 'attach_image',
'heading' => __('Image', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'content',
'type' => 'textarea',
'heading' => __('Content', 'mfn-opts'),
'admin_label' => true,
'value' => __('Insert your content here', 'mfn-opts'),
),
array(
'param_name' => 'icon',
'type' => 'textfield',
'heading' => __('Icon', 'mfn-opts'),
'description' => __('Font Icon, eg. icon-lamp', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'icon_image',
'type' => 'attach_image',
'heading' => __('Icon | Image', 'mfn-opts'),
'description' => __('You can use image icon instead of font icon', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'background',
'type' => 'colorpicker',
'heading' => __('Icon background', 'mfn-opts'),
'description' => __('Leave this field blank to use Theme Background.', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'link',
'type' => 'textfield',
'heading' => __('Link', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'target',
'type' => 'dropdown',
'heading' => __('Link | Target', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'' => 'Default | _self',
'_blank' => 'New Tab or Window | _blank' ,
'lightbox' => 'Lightbox (image or embed video)',
)),
),
)
));
// Helper
vc_map(array(
'base' => 'helper',
'name' => __('Helper', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-helper',
'params' => array(
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'title1',
'type' => 'textfield',
'heading' => __('Item 1 | Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'content1',
'type' => 'textarea',
'heading' => __('Item 1 | Content', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'link1',
'type' => 'textfield',
'heading' => __('Item 1 | Link', 'mfn-opts'),
'description' => __('Use this field if you want to link to another page instead of showing the content', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'target1',
'type' => 'dropdown',
'heading' => __('Item 1 | Target', 'mfn-opts'),
'admin_label' => false,
'value' => array( '', '_blank' ),
),
array(
'param_name' => 'title2',
'type' => 'textfield',
'heading' => __('Item 2 | Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'content2',
'type' => 'textarea',
'heading' => __('Item 2 | Content', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'link2',
'type' => 'textfield',
'heading' => __('Item 2 | Link', 'mfn-opts'),
'description' => __('Use this field if you want to link to another page instead of showing the content', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'target2',
'type' => 'dropdown',
'heading' => __('Item 2 | Target', 'mfn-opts'),
'admin_label' => false,
'value' => array( '', '_blank' ),
),
)
));
// Hover Box
vc_map(array(
'base' => 'hover_box',
'name' => __('Hover Box', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-hover_box',
'params' => array(
array(
'param_name' => 'image',
'type' => 'attach_image',
'heading' => __('Image', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'image_hover',
'type' => 'attach_image',
'heading' => __('Hover Image', 'mfn-opts'),
'description' => __('Both images must have the same size.', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'link',
'type' => 'textfield',
'heading' => __('Link', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'target',
'type' => 'dropdown',
'heading' => __('Link | Target', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'' => 'Default | _self',
'_blank' => 'New Tab or Window | _blank' ,
'lightbox' => 'Lightbox (image or embed video)',
)),
),
)
));
// Hover Color
vc_map(array(
'base' => 'hover_color',
'name' => __('Hover Color', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-hover_color',
'params' => array(
array(
'param_name' => 'content',
'type' => 'textarea',
'heading' => __('Content', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'background',
'type' => 'colorpicker',
'heading' => __('Background color', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'background_hover',
'type' => 'colorpicker',
'heading' => __('Background color | Hover', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'border',
'type' => 'colorpicker',
'heading' => __('Border color', 'mfn-opts'),
'description' => __('optional', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'border_hover',
'type' => 'colorpicker',
'heading' => __('Border color | Hover', 'mfn-opts'),
'description' => __('optional', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'padding',
'type' => 'textfield',
'heading' => __('Padding', 'mfn-opts'),
'description' => __('Use value with px or %. Example: 20px or 20px 10px 20px 10px or 20px 1%', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'link',
'type' => 'textfield',
'heading' => __('Link', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'target',
'type' => 'dropdown',
'heading' => __('Link | Target', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'' => 'Default | _self',
'_blank' => 'New Tab or Window | _blank' ,
'lightbox' => 'Lightbox (image or embed video)',
)),
),
array(
'param_name' => 'class',
'type' => 'textfield',
'heading' => __('Link | Class', 'mfn-opts'),
'description' => __('This option is useful when you want to use scroll', 'mfn-opts'),
'admin_label' => false,
),
)
));
// How it Works
vc_map(array(
'base' => 'how_it_works',
'name' => __('How it Works', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-how_it_works',
'params' => array(
array(
'param_name' => 'image',
'type' => 'attach_image',
'heading' => __('Background Image', 'mfn-opts'),
'description' => __('Recommended: Square Image with transparent background.', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'number',
'type' => 'textfield',
'heading' => __('Number', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'content',
'type' => 'textfield',
'heading' => __('Content', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'border',
'type' => 'dropdown',
'heading' => __('Line', 'mfn-opts'),
'description' => __('Show right connecting line', 'mfn-opts'),
'admin_label' => false,
'value' => array(
__('No', 'mfn-opts') => 0,
__('Yes', 'mfn-opts') => 1,
),
),
array(
'param_name' => 'link',
'type' => 'textfield',
'heading' => __('Link', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'target',
'type' => 'dropdown',
'heading' => __('Link | Target', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'' => 'Default | _self',
'_blank' => 'New Tab or Window | _blank' ,
'lightbox' => 'Lightbox (image or embed video)',
)),
),
)
));
// Icon Box
vc_map(array(
'base' => 'icon_box',
'name' => __('Icon Box', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-icon_box',
'params' => array(
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'content',
'type' => 'textarea',
'heading' => __('Content', 'mfn-opts'),
'admin_label' => true,
'value' => __('Insert your content here', 'mfn-opts'),
),
array(
'param_name' => 'icon',
'type' => 'textfield',
'heading' => __('Icon', 'mfn-opts'),
'description' => __('Font Icon, eg. icon-lamp', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'image',
'type' => 'attach_image',
'heading' => __('Image', 'mfn-opts'),
'admin_label' => false,
),
array(
'param_name' => 'icon_position',
'type' => 'dropdown',
'heading' => __('Icon Position', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'top' => 'Top',
'left' => 'Left',
)),
),
array(
'param_name' => 'border',
'type' => 'dropdown',
'heading' => __('Border', 'mfn-opts'),
'description' => __('Show right border', 'mfn-opts'),
'admin_label' => false,
'value' => array(
__('No', 'mfn-opts') => 0,
__('Yes', 'mfn-opts') => 1,
),
),
array(
'param_name' => 'link',
'type' => 'textfield',
'heading' => __('Link', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'target',
'type' => 'dropdown',
'heading' => __('Link | Target', 'mfn-opts'),
'admin_label' => false,
'value' => array_flip(array(
'' => 'Default | _self',
'_blank' => 'New Tab or Window | _blank' ,
'lightbox' => 'Lightbox (image or embed video)',
)),
),
array(
'param_name' => 'class',
'type' => 'textfield',
'heading' => __('Link | Class', 'mfn-opts'),
'description' => __('This option is useful when you want to use scroll', 'mfn-opts'),
'admin_label' => true,
),
)
));
// Info Box
vc_map(array(
'base' => 'info_box',
'name' => __('Info Box', 'mfn-opts'),
'category' => __('Muffin Builder', 'mfn-opts'),
'icon' => 'mfn-vc-icon-info_box',
'params' => array(
array(
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'mfn-opts'),
'admin_label' => true,
),
array(
'param_name' => 'content',
'type' => 'textarea',
'heading' => __('Content', 'mfn-opts'),
'admin_label' => false,
'value' => '