Ejemplo n.º 1
0
// background element field
$bgConfig = array(array('name' => 'page-sticky-type', 'title' => __('Page Sticky Type', 'ROEN'), 'type' => 'radio', 'radios' => array(__('No Sticky', 'ROEN'), __('Page Title', 'ROEN'), __('Page Slider', 'ROEN')), 'enable-element' => 'yes', 'enable-id' => '1-page_sticky_bg:2-page_sticky_skin', 'enable-group' => 'page_sticky_type_group'), array('name' => 'page-sticky-skin', 'title' => __('Page Sticky Skin', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Light', 'ROEN'), __('Dark', 'ROEN')), 'enabled-id' => 'page_sticky_skin page_sticky_bg', 'enable-group' => 'page_sticky_type_group'), array('name' => 'page-sticky-title-padding-top', 'title' => __('Page Title Sticky Padding Top', 'ROEN'), 'type' => 'number', 'default' => 250, 'enabled-id' => 'page_sticky_bg', 'enable-group' => 'page_sticky_type_group'), array('name' => 'page-sticky-title-padding-bottom', 'title' => __('Page Title Sticky Padding Bottom', 'ROEN'), 'type' => 'number', 'default' => 250, 'enabled-id' => 'page_sticky_bg', 'enable-group' => 'page_sticky_type_group'), array('name' => 'page-sticky-title-breadcrumb', 'title' => __('Page Title Sticky Hide Title Breadcrumb', 'ROEN'), 'type' => 'pc', 'default' => 'off', 'enabled-id' => 'page_sticky_bg', 'enable-group' => 'page_sticky_type_group', 'desc' => __('It\'s first need your page title alaredy enable Breadcrumb show.', 'ROEN')), array('name' => 'page-sticky-bg-image', 'title' => __('Page Title Sticky Background Image', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_sticky_bg', 'enable-group' => 'page_sticky_type_group'), array('name' => 'page-bg-type', 'title' => __('Page Body Background Type', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Use Global', 'ROEN'), __('Pattern', 'ROEN'), __('Image', 'ROEN'), __('Color', 'ROEN')), 'enable-element' => 'yes', 'enable-id' => '1-page_bg_pattern:2-page_bg_image:3-page_bg_color', 'enable-group' => 'page_bg_type_group'), array('name' => 'page-bg-pattern-width', 'title' => __('Pattern Image Width', 'ROEN'), 'type' => 'number', 'enabled-id' => 'page_bg_pattern', 'enable-group' => 'page_bg_type_group'), array('name' => 'page-bg-pattern-height', 'title' => __('Pattern Image Height', 'ROEN'), 'type' => 'number', 'enabled-id' => 'page_bg_pattern', 'enable-group' => 'page_bg_type_group'), array('name' => 'page-bg-pattern-image', 'title' => __('Pattern Image', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_bg_pattern', 'enable-group' => 'page_bg_type_group'), array('name' => 'page-bg-pattern-retina', 'title' => __('Pattern Retina Image @2x', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_bg_pattern', 'enable-group' => 'page_bg_type_group'), array('name' => 'page-bg-image', 'title' => __('Background Image', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_bg_image', 'enable-group' => 'page_bg_type_group'), array('name' => 'page-bg-color', 'title' => __('Background Color', 'ROEN'), 'type' => 'color', 'default' => 'ffffff', 'enabled-id' => 'page_bg_color', 'enable-group' => 'page_bg_type_group'), array('name' => 'page-header-bg-type', 'title' => __('Page Header Background Type', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Use Global', 'ROEN'), __('Pattern', 'ROEN'), __('Image', 'ROEN'), __('Color', 'ROEN')), 'enable-element' => 'yes', 'enable-id' => '1-page_header_bg_pattern:2-page_header_bg_image:3-page_header_bg_color', 'enable-group' => 'page_header_bg_type_group'), array('name' => 'page-header-bg-pattern-width', 'title' => __('Pattern Image Width', 'ROEN'), 'type' => 'number', 'enabled-id' => 'page_header_bg_pattern', 'enable-group' => 'page_header_bg_type_group'), array('name' => 'page-header-bg-pattern-height', 'title' => __('Pattern Image Height', 'ROEN'), 'type' => 'number', 'enabled-id' => 'page_header_bg_pattern', 'enable-group' => 'page_header_bg_type_group'), array('name' => 'page-header-bg-pattern-image', 'title' => __('Pattern Image', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_header_bg_pattern', 'enable-group' => 'page_header_bg_type_group'), array('name' => 'page-header-bg-pattern-retina', 'title' => __('Pattern Retina Image @2x', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_header_bg_pattern', 'enable-group' => 'page_header_bg_type_group'), array('name' => 'page-header-bg-image', 'title' => __('Background Image', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_header_bg_image', 'enable-group' => 'page_header_bg_type_group'), array('name' => 'page-header-bg-color', 'title' => __('Background Color', 'ROEN'), 'type' => 'color', 'default' => 'ffffff', 'enabled-id' => 'page_header_bg_color', 'enable-group' => 'page_header_bg_type_group'), array('name' => 'page-title-bg-type', 'title' => __('Page Title Background Type', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Use Global', 'ROEN'), __('Pattern', 'ROEN'), __('Image', 'ROEN'), __('Color', 'ROEN')), 'enable-element' => 'yes', 'enable-id' => '1-page_title_bg_pattern:2-page_title_bg_image:3-page_title_bg_color', 'enable-group' => 'page_title_bg_type_group'), array('name' => 'page-title-bg-pattern-width', 'title' => __('Pattern Image Width', 'ROEN'), 'type' => 'number', 'enabled-id' => 'page_title_bg_pattern', 'enable-group' => 'page_title_bg_type_group'), array('name' => 'page-title-bg-pattern-height', 'title' => __('Pattern Image Height', 'ROEN'), 'type' => 'number', 'enabled-id' => 'page_title_bg_pattern', 'enable-group' => 'page_title_bg_type_group'), array('name' => 'page-title-bg-pattern-image', 'title' => __('Pattern Image', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_title_bg_pattern', 'enable-group' => 'page_title_bg_type_group'), array('name' => 'page-title-bg-pattern-retina', 'title' => __('Pattern Retina Image @2x', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_title_bg_pattern', 'enable-group' => 'page_title_bg_type_group'), array('name' => 'page-title-bg-image', 'title' => __('Background Image', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_title_bg_image', 'enable-group' => 'page_title_bg_type_group'), array('name' => 'page-title-bg-color', 'title' => __('Background Color', 'ROEN'), 'type' => 'color', 'default' => 'ffffff', 'enabled-id' => 'page_title_bg_color', 'enable-group' => 'page_title_bg_type_group'), array('name' => 'page-content-bg-type', 'title' => __('Page Content Background Type', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Use Global', 'ROEN'), __('Pattern', 'ROEN'), __('Image', 'ROEN'), __('Color', 'ROEN')), 'enable-element' => 'yes', 'enable-id' => '1-page_content_bg_pattern:2-page_content_bg_image:3-page_content_bg_color', 'enable-group' => 'page_content_bg_type_group'), array('name' => 'page-content-bg-pattern-width', 'title' => __('Pattern Image Width', 'ROEN'), 'type' => 'number', 'enabled-id' => 'page_content_bg_pattern', 'enable-group' => 'page_content_bg_type_group'), array('name' => 'page-content-bg-pattern-height', 'title' => __('Pattern Image Height', 'ROEN'), 'type' => 'number', 'enabled-id' => 'page_content_bg_pattern', 'enable-group' => 'page_content_bg_type_group'), array('name' => 'page-content-bg-pattern-image', 'title' => __('Pattern Image', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_content_bg_pattern', 'enable-group' => 'page_content_bg_type_group'), array('name' => 'page-content-bg-pattern-retina', 'title' => __('Pattern Retina Image @2x', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_content_bg_pattern', 'enable-group' => 'page_content_bg_type_group'), array('name' => 'page-content-bg-image', 'title' => __('Background Image', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_content_bg_image', 'enable-group' => 'page_content_bg_type_group'), array('name' => 'page-content-bg-color', 'title' => __('Background Color', 'ROEN'), 'type' => 'color', 'default' => 'ffffff', 'enabled-id' => 'page_content_bg_color', 'enable-group' => 'page_content_bg_type_group'), array('name' => 'page-footer-bg-type', 'title' => __('Page Footer Background Type', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Use Global', 'ROEN'), __('Pattern', 'ROEN'), __('Image', 'ROEN'), __('Color', 'ROEN')), 'enable-element' => 'yes', 'enable-id' => '1-page_footer_bg_pattern:2-page_footer_bg_image:3-page_footer_bg_color', 'enable-group' => 'page_footer_bg_type_group'), array('name' => 'page-footer-bg-pattern-width', 'title' => __('Pattern Image Width', 'ROEN'), 'type' => 'number', 'enabled-id' => 'page_footer_bg_pattern', 'enable-group' => 'page_footer_bg_type_group'), array('name' => 'page-footer-bg-pattern-height', 'title' => __('Pattern Image Height', 'ROEN'), 'type' => 'number', 'enabled-id' => 'page_footer_bg_pattern', 'enable-group' => 'page_footer_bg_type_group'), array('name' => 'page-footer-bg-pattern-image', 'title' => __('Pattern Image', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_footer_bg_pattern', 'enable-group' => 'page_footer_bg_type_group'), array('name' => 'page-footer-bg-pattern-retina', 'title' => __('Pattern Retina Image @2x', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_footer_bg_pattern', 'enable-group' => 'page_footer_bg_type_group'), array('name' => 'page-footer-bg-image', 'title' => __('Background Image', 'ROEN'), 'type' => 'upload', 'enabled-id' => 'page_footer_bg_image', 'enable-group' => 'page_footer_bg_type_group'), array('name' => 'page-footer-bg-color', 'title' => __('Background Color', 'ROEN'), 'type' => 'color', 'default' => '434241', 'enabled-id' => 'page_footer_bg_color', 'enable-group' => 'page_footer_bg_type_group'), array('name' => 'page-footer-bottom-bg-color', 'title' => __('Bottom Background Color', 'ROEN'), 'type' => 'color', 'default' => '262626', 'enabled-id' => 'page_footer_bg_color page_footer_bg_image page_footer_bg_pattern', 'enable-group' => 'page_footer_bg_type_group'));
//post
$metasConfig[] = array('id' => 'custom-post-setting', 'type' => 'post', 'priority' => 'high', 'title' => __('Page Option Setting', 'ROEN'), 'page_elements' => array('element-general' => array('id' => 'custom-post-general', 'icon' => 'fa-gear', 'title' => __('General', 'ROEN'), 'fields' => $generalConfig), 'element-template' => array('id' => 'custom-post-template', 'icon' => 'fa-puzzle-piece', 'title' => __('Post Options', 'ROEN'), 'fields' => array(array('name' => 'gallery-images', 'title' => __('Gallery Images', 'ROEN'), 'type' => 'gallery', 'postformat' => 'gallery'), array('name' => 'video-type', 'title' => __('Video Type', 'ROEN'), 'type' => 'select', 'options' => array('Youtube', 'Vimeo', 'Custom Code'), 'postformat' => 'video'), array('name' => 'video-content', 'title' => __('Video ID or Custom Code', 'ROEN'), 'type' => 'textarea', 'longdesc' => __('Youtube ID e.g. OapE7K5KyG0 "', 'ROEN'), 'postformat' => 'video'), array('name' => 'audio-type', 'title' => __('Audio Type', 'ROEN'), 'type' => 'select', 'options' => array('Soundcloud', 'Custom Code'), 'postformat' => 'audio'), array('name' => 'audio-content', 'title' => __('Soundcloud Url or Custom Code', 'ROEN'), 'type' => 'textarea', 'longdesc' => __('Soundcloud e.g.  " http://api.soundcloud.com/tracks/38987054 "', 'ROEN'), 'postformat' => 'audio'), array('name' => 'related-items-style', 'title' => __('Related Items Style', 'ROEN'), 'type' => 'select', 'options' => array(__('Use Global', 'ROEN'), __('Style #1', 'ROEN'), __('Style #2', 'ROEN'), __('Style #3', 'ROEN'), __('Style #4', 'ROEN'), __('Style #5', 'ROEN')), 'desc' => __('Global will use default style, you can setting it through ROEN Options -> Blog', 'ROEN')))), 'element-background' => array('id' => 'custom-post-background', 'icon' => 'fa-cubes', 'title' => __('Page Sticky & Background', 'ROEN'), 'fields' => $bgConfig), 'element-style' => array('id' => 'custom-post-css-style', 'icon' => 'fa-code', 'title' => __('Page Custom CSS, Scripts', 'ROEN'), 'fields' => array(array('name' => 'post-css-style', 'title' => __('Custom Page CSS', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css'), array('name' => 'post-css-retina-style', 'title' => __('Custom Page Retina CSS', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css'), array('name' => 'post-custom-scripts', 'title' => __('Custom Page Scripts', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css')))));
//page
$metasConfig[] = array('id' => 'custom-page-setting', 'type' => 'page', 'priority' => 'high', 'title' => __('Page Option Setting', 'ROEN'), 'page_elements' => array('element-general' => array('id' => 'custom-page-general', 'icon' => 'fa-gear', 'title' => __('General', 'ROEN'), 'fields' => $generalConfig), 'element-template' => array('id' => 'custom-post-template', 'icon' => 'fa-puzzle-piece', 'title' => __('Template Options', 'ROEN'), 'fields' => array(array('name' => 'blog-post-show-style', 'title' => __('Item Style', 'ROEN'), 'type' => 'select', 'template' => 'page-blog', 'default' => 0, 'options' => array(__('Default: Avatar Style', 'ROEN'), __('Clean Mid Style', 'ROEN'), __('Big Width Style', 'ROEN'))), array('name' => 'page-posts-cols', 'title' => __('Columns', 'ROEN'), 'type' => 'select', 'template' => 'page-blog-ajax page-portfolio-ajax page-portfolio page-member', 'default' => 1, 'options' => array(__('2 columns', 'ROEN'), __('3 columns', 'ROEN'), __('4 columns', 'ROEN'))), array('name' => 'page-posts-num', 'title' => __('Per Page Posts', 'ROEN'), 'type' => 'number', 'default' => 10, 'template' => 'page-blog page-blog-ajax page-portfolio page-portfolio-ajax page-member', 'desc' => __('Also as read more load number.', 'ROEN')), array('name' => 'page-posts-cats', 'title' => __('Custom Show Categories', 'ROEN'), 'type' => 'textarea', 'template' => 'page-blog page-blog-ajax', 'desc' => __('Input post category slug will just show these categories items use "," ', 'ROEN')), array('name' => 'page-posts-img-no-crop', 'title' => __('Item Images Without Crop', 'ROEN'), 'type' => 'pc', 'default' => 'off', 'desc' => __('Turn on will show image didn\'t crop so that show full image.', 'ROEN'), 'template' => 'page-blog-ajax page-portfolio page-portfolio-ajax'), array('name' => 'page-posts-img-no-space', 'title' => __('Items Without Gap', 'ROEN'), 'type' => 'pc', 'default' => 'off', 'desc' => __('Turn on will have no gap between items.', 'ROEN'), 'template' => 'page-portfolio page-portfolio-ajax'), array('name' => 'page-posts-ajax-auto', 'title' => __('Enabled Auto Load', 'ROEN'), 'type' => 'pc', 'default' => 'off', 'template' => 'page-blog-ajax page-portfolio-ajax'), array('name' => 'portfolio-show-style', 'title' => __('Item Show Style', 'ROEN'), 'type' => 'select', 'template' => 'page-portfolio page-portfolio-ajax', 'options' => array(__('Style #1', 'ROEN'), __('Style #2', 'ROEN'), __('Style #3', 'ROEN'), __('Style #4', 'ROEN'), __('Style #5', 'ROEN'), __('Style #6', 'ROEN'), __('Style #7', 'ROEN'))), array('name' => 'portfolio-show-filter', 'title' => __('Portfolio Show Filters', 'ROEN'), 'type' => 'pc', 'template' => 'page-portfolio page-portfolio-ajax', 'desc' => __('Check show filters buttons', 'ROEN')), array('name' => 'page-posts-cat-slugs', 'title' => __('Custom Show Categories', 'ROEN'), 'type' => 'textarea', 'template' => 'page-portfolio page-portfolio-ajax', 'desc' => __('Input portfolio category slug will just show these categories items use "," ', 'ROEN')), array('name' => 'member-show-style', 'title' => __('Item Show Style', 'ROEN'), 'type' => 'select', 'template' => 'page-member', 'options' => array(__('Style #1', 'ROEN'), __('Style #2', 'ROEN'), __('Style #3', 'ROEN'))), array('name' => 'member-show-filter', 'title' => __('Member Show Filters', 'ROEN'), 'type' => 'pc', 'template' => 'page-member', 'desc' => __('Check show filters buttons', 'ROEN')), array('name' => 'page-member-cat-slugs', 'title' => __('Custom Show Categories', 'ROEN'), 'type' => 'textarea', 'template' => 'page-member', 'desc' => __('Input member category slug will just show the category items. More category use "," ', 'ROEN')), array('name' => 'map-show', 'title' => __('Header Map Show', 'ROEN'), 'type' => 'pc', 'template' => 'page-contact', 'enable-element' => 'yes', 'enable-id' => '1-map_show_id', 'enable-group' => 'map_show_group'), array('name' => 'map-height', 'title' => __('Map Height ', 'ROEN'), 'template' => 'page-contact', 'type' => 'number', 'default' => '320', 'desc' => __('Header map height', 'ROEN'), 'enabled-id' => 'map_show_id', 'enable-group' => 'map_show_group'), array('name' => 'map-info-width', 'title' => __('Map Info Width ', 'ROEN'), 'template' => 'page-contact', 'type' => 'number', 'default' => '300', 'desc' => __('Map information show width', 'ROEN'), 'enabled-id' => 'map_show_id', 'enable-group' => 'map_show_group'), array('name' => 'map-latlng', 'title' => __('Map LatLng ', 'ROEN'), 'template' => 'page-contact', 'type' => 'input', 'desc' => __('For Example : 40.716038,-74.080811 ', 'ROEN'), 'enabled-id' => 'map_show_id', 'enable-group' => 'map_show_group'), array('name' => 'map-address', 'title' => __('Map Address ', 'ROEN'), 'template' => 'page-contact', 'type' => 'textarea', 'desc' => __('(Support HTML )For Example : Company Name 123 street, New Valley , USA', 'ROEN'), 'enabled-id' => 'map_show_id', 'enable-group' => 'map_show_group'), array('name' => 'contact-map-theme', 'title' => __('Map Skin', 'ROEN'), 'type' => 'select', 'options' => array('default', 'logo', 'black', 'white'), 'template' => 'page-contact', 'enabled-id' => 'map_show_id', 'enable-group' => 'map_show_group'), array('name' => 'contact-form', 'title' => __('Enable Contact Form', 'ROEN'), 'template' => 'page-contact', 'type' => 'pc', 'desc' => __('Use theme provided default contact form', 'ROEN'), 'enable-element' => 'yes', 'enable-id' => '1-enable_contact_form', 'enable-group' => 'enable_contact_form_group'), array('name' => 'contact-recipient', 'title' => __('Contact Recipient Email', 'ROEN'), 'template' => 'page-contact', 'type' => 'input', 'desc' => __('It\'s just for default contact form. ', 'ROEN'), 'enabled-id' => 'enable_contact_form', 'enable-group' => 'enable_contact_form_group'), array('name' => 'contact-backsender', 'title' => __('Sender Email Feedback', 'ROEN'), 'template' => 'page-contact', 'type' => 'pc', 'desc' => __('If check sender will also get a success email when submit success. ', 'ROEN'), 'enabled-id' => 'enable_contact_form', 'enable-group' => 'enable_contact_form_group'), array('name' => 'form-recaptcha', 'title' => __('Enabld Form Recaptcha', 'ROEN'), 'type' => 'pc', 'template' => 'page-contact', 'desc' => __('Use google recaptcha for theme default contact form. ', 'ROEN'), 'enable-element' => 'yes', 'enable-id' => '1-recaptcha_show_id', 'enable-group' => 'recaptcha_show_group'), array('name' => 'recaptcha-pub-api', 'title' => __('Recaptcha Public Key', 'ROEN'), 'template' => 'page-contact', 'type' => 'input', 'default' => '', 'desc' => __('<strong>The basic registration form requires</strong> that new users copy text from a "Captcha" image to keep spammers out of the site. You need an account at <a href="http://recaptcha.net/">recaptcha.net</a>. Signing up is FREE and easy. Once you have signed up, come back here and enter the following settings:', 'ROEN'), 'enabled-id' => 'recaptcha_show_id', 'enable-group' => 'recaptcha_show_group'), array('name' => 'recaptcha-pri-api', 'title' => __('Recaptcha Private Key', 'ROEN'), 'template' => 'page-contact', 'type' => 'input', 'enabled-id' => 'recaptcha_show_id', 'enable-group' => 'recaptcha_show_group'), array('name' => 'recaptcha-theme', 'title' => __('Recaptcha Theme', 'ROEN'), 'template' => 'page-contact', 'type' => 'selectname', 'options' => array('white', 'red', 'blackglass', 'clean'), 'enabled-id' => 'recaptcha_show_id', 'enable-group' => 'recaptcha_show_group'), array('name' => 'recaptcha-lang', 'title' => __('Recaptcha Language', 'ROEN'), 'template' => 'page-contact', 'type' => 'selectname', 'enabled-id' => 'recaptcha_show_id', 'enable-group' => 'recaptcha_show_group', 'options' => array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr')))), 'element-background' => array('id' => 'custom-post-background', 'icon' => 'fa-cubes', 'title' => __('Page Sticky & Background', 'ROEN'), 'fields' => $bgConfig), 'element-style' => array('id' => 'custom-post-css-style', 'icon' => 'fa-code', 'title' => __('Page Custom CSS, Scripts', 'ROEN'), 'fields' => array(array('name' => 'post-css-style', 'title' => __('Custom Page CSS', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css'), array('name' => 'post-css-retina-style', 'title' => __('Custom Page Retina CSS', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css'), array('name' => 'post-custom-scripts', 'title' => __('Custom Page Scripts', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css')))));
//portfolio
$metasConfig[] = array('id' => 'custom-portfolio-setting', 'type' => 'portfolio', 'priority' => 'high', 'title' => __('Page Option Setting', 'ROEN'), 'page_elements' => array('element-general' => array('id' => 'custom-post-general', 'icon' => 'fa-gear', 'title' => __('General', 'ROEN'), 'fields' => array(array('name' => 'layout-type', 'title' => __('Layout Type', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Use Global', 'ROEN'), __('Full Width', 'ROEN'), __('Left Sidebar', 'ROEN'), __('Right Sidebar', 'ROEN')), 'enable-element' => 'yes', 'enable-id' => '0-page_layout_type:2-page_layout_type:3-page_layout_type', 'enable-group' => 'page_layout_type_group'), array('name' => 'title-show', 'title' => __('Show Page Header Title', 'ROEN'), 'type' => 'pc', 'default' => 'on', 'enable-element' => 'yes', 'enable-id' => '1-page_title_show', 'enable-group' => 'page_title_show_group'), array('name' => 'title-align', 'title' => __('Title Align', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Default', 'ROEN'), __('Left', 'ROEN'), __('Center', 'ROEN')), 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group'), array('name' => 'title-skin', 'title' => __('Title Text Skin', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Default', 'ROEN'), __('Light', 'ROEN'), __('Dark', 'ROEN')), 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group'), array('name' => 'title-content', 'title' => __('Custom Title Content', 'ROEN'), 'type' => 'textarea', 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group', 'desc' => esc_html(__('Support HTML Format content.<h1 class="title"></h1>', 'ROEN'))), array('name' => 'title-desc', 'title' => __('Custom Title Description', 'ROEN'), 'type' => 'textarea', 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group', 'desc' => __('Support HTML Format content', 'ROEN')), array('name' => 'title-breadcrumb', 'title' => __('Show Title Breadcrumb', 'ROEN'), 'type' => 'pc', 'default' => 'on', 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group'), array('name' => 'slide-type', 'title' => __('Slider Type', 'ROEN'), 'type' => 'radio', 'radios' => array('None Slider', 'Layer Slider', 'Revolution Slider'), 'enable-element' => 'yes', 'enable-id' => '1-layer_slide_id:2-rev_slide_id', 'enable-group' => 'layer_slide_group'), array('name' => 'layer-slide-id', 'title' => __('Select Layer Slider', 'ROEN'), 'type' => 'select', 'options' => penguin_get_layerslider(), 'enabled-id' => 'layer_slide_id', 'enable-group' => 'layer_slide_group'), array('name' => 'rev-slide-id', 'title' => __('Select Revolution Slider', 'ROEN'), 'type' => 'select', 'options' => penguin_get_revslider(), 'enabled-id' => 'rev_slide_id', 'enable-group' => 'layer_slide_group'))), 'element-template' => array('id' => 'custom-post-template', 'icon' => 'fa-puzzle-piece', 'title' => __('Portfolio Options', 'ROEN'), 'fields' => array(array('name' => 'portfolio-type', 'title' => __('Portfolio Type', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Image', 'ROEN'), __('Gallery', 'ROEN'), __('Video', 'ROEN')), 'enable-element' => 'yes', 'enable-id' => '0-portfolio_post_format_image:1-portfolio_post_format_gallery:2-portfolio_post_format_video', 'enable-group' => 'portfolio_post_format'), array('name' => 'gallery-images', 'title' => __('Gallery Images', 'ROEN'), 'type' => 'gallery', 'enabled-id' => 'portfolio_post_format_gallery', 'enable-group' => 'portfolio_post_format'), array('name' => 'video-type', 'title' => __('Video Type', 'ROEN'), 'type' => 'radio', 'radios' => array('Youtube', 'Vimeo'), 'enabled-id' => 'portfolio_post_format_video', 'enable-group' => 'portfolio_post_format'), array('name' => 'video-content', 'title' => __('Video ID', 'ROEN'), 'type' => 'input', 'desc' => __('Youtube Id Example : " OapE7K5KyG0 "', 'ROEN'), 'enabled-id' => 'portfolio_post_format_video', 'enable-group' => 'portfolio_post_format'), array('name' => 'portfolio-link', 'title' => __('Link', 'ROEN'), 'type' => 'input'), array('name' => 'portfolio-more-fields', 'title' => __('Portfolio Custom Fields', 'ROEN'), 'type' => 'field', 'fileds' => array(__('Name', 'ROEN'), __('Value', 'ROEN')), 'default' => penguin_get_custom_field($roen_options, 'portfolio-custom-field'), 'desc' => __('You can edit, add or remove custom files through ROEN Options -> Portfolio', 'ROEN')), array('name' => 'related-items-style', 'title' => __('Related Items Style', 'ROEN'), 'type' => 'select', 'options' => array(__('Use Global', 'ROEN'), __('Style #1', 'ROEN'), __('Style #2', 'ROEN'), __('Style #3', 'ROEN'), __('Style #4', 'ROEN'), __('Style #5', 'ROEN'), __('Style #6', 'ROEN'), __('Style #7', 'ROEN')), 'desc' => __('Global will use default style, you can setting it through ROEN Options -> Portfolio', 'ROEN')))), 'element-background' => array('id' => 'custom-post-background', 'icon' => 'fa-cubes', 'title' => __('Page Sticky & Background', 'ROEN'), 'fields' => $bgConfig), 'element-style' => array('id' => 'custom-post-css-style', 'icon' => 'fa-code', 'title' => __('Page Custom CSS, Scripts', 'ROEN'), 'fields' => array(array('name' => 'post-css-style', 'title' => __('Custom Page CSS', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css'), array('name' => 'post-css-retina-style', 'title' => __('Custom Page Retina CSS', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css'), array('name' => 'post-custom-scripts', 'title' => __('Custom Page Scripts', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css')))));
//members
$metasConfig[] = array('id' => 'custom-member-setting', 'type' => 'member', 'priority' => 'high', 'title' => __('Page Option Setting', 'ROEN'), 'page_elements' => array('element-general' => array('id' => 'custom-post-general', 'icon' => 'fa-gear', 'title' => __('General', 'ROEN'), 'fields' => array(array('name' => 'title-show', 'title' => __('Show Page Header Title', 'ROEN'), 'type' => 'pc', 'default' => 'on', 'enable-element' => 'yes', 'enable-id' => '1-page_title_show', 'enable-group' => 'page_title_show_group'), array('name' => 'title-align', 'title' => __('Title Align', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Default', 'ROEN'), __('Left', 'ROEN'), __('Center', 'ROEN')), 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group'), array('name' => 'title-skin', 'title' => __('Title Text Skin', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Default', 'ROEN'), __('Light', 'ROEN'), __('Dark', 'ROEN')), 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group'), array('name' => 'title-content', 'title' => __('Custom Title Content', 'ROEN'), 'type' => 'textarea', 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group', 'desc' => esc_html(__('Support HTML Format content.<h1 class="title"></h1>', 'ROEN'))), array('name' => 'title-desc', 'title' => __('Custom Title Description', 'ROEN'), 'type' => 'textarea', 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group', 'desc' => __('Support HTML Format content', 'ROEN')), array('name' => 'title-breadcrumb', 'title' => __('Show Title Breadcrumb', 'ROEN'), 'type' => 'pc', 'default' => 'on', 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group'), array('name' => 'slide-type', 'title' => __('Slider Type', 'ROEN'), 'type' => 'radio', 'radios' => array('None Slider', 'Layer Slider', 'Revolution Slider'), 'enable-element' => 'yes', 'enable-id' => '1-layer_slide_id:2-rev_slide_id', 'enable-group' => 'layer_slide_group'), array('name' => 'layer-slide-id', 'title' => __('Select Layer Slider', 'ROEN'), 'type' => 'select', 'options' => penguin_get_layerslider(), 'enabled-id' => 'layer_slide_id', 'enable-group' => 'layer_slide_group'), array('name' => 'rev-slide-id', 'title' => __('Select Revolution Slider', 'ROEN'), 'type' => 'select', 'options' => penguin_get_revslider(), 'enabled-id' => 'rev_slide_id', 'enable-group' => 'layer_slide_group'))), 'element-template' => array('id' => 'custom-post-template', 'icon' => 'fa-puzzle-piece', 'title' => __('Member Options', 'ROEN'), 'fields' => array('shortdesc' => array('title' => __('Short Description', 'ROEN'), 'type' => 'textarea', 'name' => 'member-shortdesc'), 'customright' => array('title' => __('Custom Right Area Content', 'ROEN'), 'type' => 'textarea', 'name' => 'member-custom-right'), 'nickname' => array('title' => __('Nickname for Display', 'ROEN'), 'type' => 'input', 'name' => 'member-nickname', 'desc' => __('Replace post title as name display.', 'ROEN')), 'level' => array('title' => __('Level for Show Sort', 'ROEN'), 'type' => 'number', 'name' => 'member_level', 'default' => 5, 'desc' => __('The smaller the number of priority display.', 'ROEN')), 'social_email' => array('title' => __('Email', 'ROEN'), 'type' => 'input', 'name' => 'social-email'), 'social_twitter' => array('title' => __('Twitter', 'ROEN'), 'type' => 'input', 'name' => 'social-twitter'), 'social_facebook' => array('title' => __('Facebook', 'ROEN'), 'type' => 'input', 'name' => 'social-facebook'), 'social_google_plus' => array('title' => __('Google Plus', 'ROEN'), 'type' => 'input', 'name' => 'social-google_plus'), 'social_dribbble' => array('title' => __('Dribbble', 'ROEN'), 'type' => 'input', 'name' => 'social-dribbble'), 'social_pinterest' => array('title' => __('Pinterest', 'ROEN'), 'type' => 'input', 'name' => 'social-pinterest'), 'social_flickr' => array('title' => __('Flickr', 'ROEN'), 'type' => 'input', 'name' => 'social-flickr'), 'social_skype' => array('title' => __('Skype', 'ROEN'), 'type' => 'input', 'name' => 'social-skype'), 'social_youtube' => array('title' => __('Youtube', 'ROEN'), 'type' => 'input', 'name' => 'social-youtube'), 'social_vimeo' => array('title' => __('Vimeo', 'ROEN'), 'type' => 'input', 'name' => 'social-vimeo'), 'social_linkedin' => array('title' => __('Linkedin', 'ROEN'), 'type' => 'input', 'name' => 'social-linkedin'), 'social_digg' => array('title' => __('Digg', 'ROEN'), 'type' => 'input', 'name' => 'social-digg'), 'social_deviantart' => array('title' => __('Deviantart', 'ROEN'), 'type' => 'input', 'name' => 'social-deviantart'), 'social_behance' => array('title' => __('Behance', 'ROEN'), 'type' => 'input', 'name' => 'social-behance'), 'social_xing' => array('title' => __('XING', 'ROEN'), 'type' => 'input', 'name' => 'social-xing'), 'social_instagram' => array('title' => __('Instagram', 'ROEN'), 'type' => 'input', 'name' => 'social-instagram'), 'social_stumbleupon' => array('title' => __('StumbleUpon', 'ROEN'), 'type' => 'input', 'name' => 'social-stumbleupon'))), 'element-background' => array('id' => 'custom-post-background', 'icon' => 'fa-cubes', 'title' => __('Page Sticky & Background', 'ROEN'), 'fields' => $bgConfig), 'element-style' => array('id' => 'custom-post-css-style', 'icon' => 'fa-code', 'title' => __('Page Custom CSS, Scripts', 'ROEN'), 'fields' => array(array('name' => 'post-css-style', 'title' => __('Custom Page CSS', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css'), array('name' => 'post-css-retina-style', 'title' => __('Custom Page Retina CSS', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css'), array('name' => 'post-custom-scripts', 'title' => __('Custom Page Scripts', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css')))));
//product
$metasConfig[] = array('id' => 'custom-member-setting', 'type' => 'product', 'priority' => 'high', 'title' => __('Page Option Setting', 'ROEN'), 'page_elements' => array('element-general' => array('id' => 'custom-post-general', 'icon' => 'fa-gear', 'title' => __('General', 'ROEN'), 'fields' => array(array('name' => 'title-show', 'title' => __('Show Page Header Title', 'ROEN'), 'type' => 'pc', 'default' => 'on', 'enable-element' => 'yes', 'enable-id' => '1-page_title_show', 'enable-group' => 'page_title_show_group'), array('name' => 'title-align', 'title' => __('Title Align', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Default', 'ROEN'), __('Left', 'ROEN'), __('Center', 'ROEN')), 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group'), array('name' => 'title-skin', 'title' => __('Title Text Skin', 'ROEN'), 'type' => 'radio', 'radios' => array(__('Default', 'ROEN'), __('Light', 'ROEN'), __('Dark', 'ROEN')), 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group'), array('name' => 'title-content', 'title' => __('Custom Title Content', 'ROEN'), 'type' => 'textarea', 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group', 'desc' => esc_html(__('Support HTML Format content.<h1 class="title"></h1>', 'ROEN'))), array('name' => 'title-desc', 'title' => __('Custom Title Description', 'ROEN'), 'type' => 'textarea', 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group', 'desc' => __('Support HTML Format content', 'ROEN')), array('name' => 'title-breadcrumb', 'title' => __('Show Title Breadcrumb', 'ROEN'), 'type' => 'pc', 'default' => 'on', 'enabled-id' => 'page_title_show', 'enable-group' => 'page_title_show_group'), array('name' => 'slide-type', 'title' => __('Slider Type', 'ROEN'), 'type' => 'radio', 'radios' => array('None Slider', 'Layer Slider', 'Revolution Slider'), 'enable-element' => 'yes', 'enable-id' => '1-layer_slide_id:2-rev_slide_id', 'enable-group' => 'layer_slide_group'), array('name' => 'layer-slide-id', 'title' => __('Select Layer Slider', 'ROEN'), 'type' => 'select', 'options' => penguin_get_layerslider(), 'enabled-id' => 'layer_slide_id', 'enable-group' => 'layer_slide_group'), array('name' => 'rev-slide-id', 'title' => __('Select Revolution Slider', 'ROEN'), 'type' => 'select', 'options' => penguin_get_revslider(), 'enabled-id' => 'rev_slide_id', 'enable-group' => 'layer_slide_group'))), 'element-background' => array('id' => 'custom-post-background', 'icon' => 'fa-cubes', 'title' => __('Page Sticky & Background', 'ROEN'), 'fields' => $bgConfig), 'element-style' => array('id' => 'custom-post-css-style', 'icon' => 'fa-code', 'title' => __('Page Custom CSS, Scripts', 'ROEN'), 'fields' => array(array('name' => 'post-css-style', 'title' => __('Custom Page CSS', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css'), array('name' => 'post-css-retina-style', 'title' => __('Custom Page Retina CSS', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css'), array('name' => 'post-custom-scripts', 'title' => __('Custom Page Scripts', 'ROEN'), 'type' => 'textarea', 'codetype' => 'css')))));
$postsConfig = array('portfolio' => array('id' => 'portfolio', 'name' => __('Portfolios', 'ROEN'), 'menu_name' => __('Portfolios', 'ROEN'), 'singular_name' => __('Portfolio', 'ROEN'), 'add_new' => __('Add New', 'ROEN'), 'add_new_item' => __('Add New', 'ROEN'), 'edit_item' => __('Edit Portfolio', 'ROEN'), 'new_item' => __('New Portfolio', 'ROEN'), 'all_items' => __('All Portfolios', 'ROEN'), 'view_item' => __('View Portfolio', 'ROEN'), 'search_items' => __('Search Portfolio', 'ROEN'), 'not_found' => __('No portfolio found', 'ROEN'), 'not_found_in_trash' => __('No portfolio found in Trash', 'ROEN'), 'parent_item_colon' => '', 'menu_position' => 5, 'rewrite' => 'portfolio', 'rewrite_rule' => '', 'menu_icon' => '\\f180', 'supports' => array('title', 'editor', 'thumbnail', 'comments'), 'categories' => array('portfolio_cats' => array('id' => 'portfolio-cats', 'name' => __('Portfolio Categories', 'ROEN'), 'menu_name' => __('Portfolio Categories', 'ROEN'), 'singular_name' => __('Portfolio Categories', 'ROEN'), 'search_items' => __('Search Portfolio Categories', 'ROEN'), 'all_items' => __('All Portfolio Categories', 'ROEN'), 'parent_item' => __('Parent Category', 'ROEN'), 'parent_item_colon' => __('Parent Category:', 'ROEN'), 'edit_item' => __('Edit Portfolio Category', 'ROEN'), 'update_item' => __('Update Portfolio Category', 'ROEN'), 'add_new_item' => __('Add Portfolio Category', 'ROEN'), 'new_item_name' => __('New Portfolio Category', 'ROEN'), 'rewrite' => '', 'hierarchical' => true))), 'members' => array('id' => 'member', 'name' => __('Members', 'ROEN'), 'menu_name' => __('Members', 'ROEN'), 'singular_name' => __('Member', 'ROEN'), 'add_new' => __('Add New', 'ROEN'), 'add_new_item' => __('Add New', 'ROEN'), 'edit_item' => __('Edit Member', 'ROEN'), 'new_item' => __('New Member', 'ROEN'), 'all_items' => __('All Members', 'ROEN'), 'view_item' => __('View Member', 'ROEN'), 'search_items' => __('Search Member', 'ROEN'), 'not_found' => __('No member found', 'ROEN'), 'not_found_in_trash' => __('No member found in Trash', 'ROEN'), 'parent_item_colon' => '', 'menu_position' => 5, 'rewrite' => 'member', 'rewrite_rule' => '', 'menu_icon' => '\\f307', 'supports' => array('title', 'editor', 'thumbnail'), 'categories' => array('member_cats' => array('id' => 'member-cats', 'name' => __('Member Categories', 'ROEN'), 'menu_name' => __('Member Categories', 'ROEN'), 'singular_name' => __('Member Categories', 'ROEN'), 'search_items' => __('Search Member Categories', 'ROEN'), 'all_items' => __('All Member Categories', 'ROEN'), 'parent_item' => __('Parent Category', 'ROEN'), 'parent_item_colon' => __('Parent Category:', 'ROEN'), 'edit_item' => __('Edit Member Category', 'ROEN'), 'update_item' => __('Update Member Category', 'ROEN'), 'add_new_item' => __('Add Member Category', 'ROEN'), 'new_item_name' => __('New Member Category', 'ROEN'), 'rewrite' => '', 'hierarchical' => true))));
$postsColumnsConfig = array('portfolio' => array('type' => 'portfolio', 'fields' => array(array('id' => 'portfolio-type', 'name' => __('Post Type', 'ROEN')))));
// start penguin framework for them
Penguin::$FRAMEWORK_PATH = "/inc/penguin";
Penguin::$THEME_NAME = "roen";
if ($roen_options && isset($roen_options['mega-menu-style'])) {
    switch (intval($roen_options['mega-menu-style'])) {
        case 0:
            Penguin::$MEGAMEN_STYLE = 'default';
            break;
        case 1:
            Penguin::$MEGAMEN_STYLE = 'icon';
            break;
        case 2:
            Penguin::$MEGAMEN_STYLE = 'title';
            break;
        case 3:
            Penguin::$MEGAMEN_STYLE = 'iconleft';
            break;