UN,
// Display
'display_name' => 'Adena',
'admin_bar' => true,
'admin_bar_icon' => 'dashicons-screenoptions',
'allow_sub_menu' => true,
'display_version' => false,
'hide_reset' => false,
'menu_type' => 'menu',
'menu_title' => 'Adena',
'menu_icon' => 'dashicons-screenoptions',
'page_icon' => 'dashicons-screenoptions',
'page_slug' => 'adena_options',
'page_title' => 'Adena Options',
// Features
'customizer' => true,
'default_show' => true,
'default_mark' => '*',
'show_import_export' => true,
'class' => 'un-redux',
'update_notice' => false,
'disable_tracking' => true,
'dev_mode' => false,
);
// Set Arguments
Redux::setArgs( UN, $un_opt_args );
//******************//
// OPTIONS SECTIONS //
//******************//
// GENERAL
// Parent Panel
$general_section = array(
'title' => esc_html__('General', 'adena'),
'id' => 'general',
'icon' => 'dashicons dashicons-admin-generic',
);
Redux::setSection(UN, $general_section);
// Logo
$general_section = array(
'title' => esc_html__('Logo', 'adena'),
'id' => 'general_logo',
'subsection' => true,
'icon' => 'dashicons dashicons-format-image',
'fields' => array(
// Dark Version
array(
'id' => 'opt_logo_black',
'type' => 'media',
'url' => true,
'title' => esc_html__('Dark Version', 'adena'),
'default' => array(
'url' => UN_THEME_URI.'assets/img/logo-black.png',
),
),
// Light Version
array(
'id' => 'opt_logo_white',
'type' => 'media',
'url' => true,
'title' => esc_html__('Light Version', 'adena'),
'default' => array(
'url' => UN_THEME_URI.'assets/img/logo-white.png',
),
),
// Favicon
array(
'id' => 'opt_favicon',
'type' => 'raw',
'content' => wp_kses( __('
Are you searching for the Favicon settings?
Don\'t worry! You have to use the Customizer to set a Favicon:
1. Got to Appearance > Customize > Site Identity
2. Click on "Select Image", upload your Favicon and save the Settings
', 'adena'), wp_kses_allowed_html( 'post' ) ),
),
),
);
Redux::setSection(UN, $general_section);
// Menu
$general_section = array(
'title' => esc_html__('Menu', 'adena'),
'id' => 'general_menu',
'subsection' => true,
'icon' => 'dashicons dashicons-menu',
'fields' => array(
// Style
array(
'id' => 'opt_menu_style',
'type' => 'select',
'title' => esc_html__('Style', 'adena'),
'options' => array(
'white' => esc_html__('White BG', 'adena'),
'black' => esc_html__('Black BG', 'adena'),
'trasp-w' => esc_html__('Trasparent BG + White Text', 'adena'),
'trasp-b' => esc_html__('Trasparent BG + Black Text', 'adena'),
),
'default' => 'white',
),
// Sticky
array(
'id' => 'opt_menu_sticky',
'type' => 'switch',
'title' => esc_html__('Sticky', 'adena'),
'default' => true,
),
// Email Icon
array(
'id' => 'opt_menu_email',
'type' => 'switch',
'title' => esc_html__('Email Icon', 'adena'),
'default' => true,
),
// Email Icon Address
array(
'id' => 'opt_menu_email_address',
'type' => 'text',
'title' => esc_html__('Email Address', 'adena'),
'default' => 'your-address@domain.ext',
'validate' => 'email',
'required' => array('opt_menu_email', '=', '1'),
),
// Search Icon
array(
'id' => 'opt_menu_search',
'type' => 'switch',
'title' => esc_html__('Search Icon', 'adena'),
'default' => true,
),
),
);
Redux::setSection(UN, $general_section);
// Social
$general_section = array(
'title' => esc_html__('Social', 'adena'),
'id' => 'general_social',
'subsection' => true,
'icon' => 'dashicons dashicons-share',
'fields' => array(
// Facebook
array(
'id' => 'opt_social_facebook',
'type' => 'text',
'title' => esc_html__('Facebook', 'adena'),
'subtitle' => esc_html__('Leave blank to disable the Facebook icon', 'adena'),
'default' => '#',
),
// Twitter
array(
'id' => 'opt_social_twitter',
'type' => 'text',
'title' => esc_html__('Twitter', 'adena'),
'subtitle' => esc_html__('Leave blank to disable the Twitter icon', 'adena'),
'default' => '#',
),
// Google+
array(
'id' => 'opt_social_google',
'type' => 'text',
'title' => esc_html__('Google+', 'adena'),
'subtitle' => esc_html__('Leave blank to disable the Google+ icon', 'adena'),
'default' => '#',
),
// Instagram
array(
'id' => 'opt_social_instagram',
'type' => 'text',
'title' => esc_html__('Instagram', 'adena'),
'subtitle' => esc_html__('Leave blank to disable the Instagram icon', 'adena'),
'default' => '#',
),
// Pinterest
array(
'id' => 'opt_social_pinterest',
'type' => 'text',
'title' => esc_html__('Pinterest', 'adena'),
'subtitle' => esc_html__('Leave blank to disable the Pinterest icon', 'adena'),
'default' => '#',
),
// Flickr
array(
'id' => 'opt_social_flickr',
'type' => 'text',
'title' => esc_html__('Flickr', 'adena'),
'subtitle' => esc_html__('Leave blank to disable the Flickr icon', 'adena'),
'default' => '#',
),
// Behance
array(
'id' => 'opt_social_behance',
'type' => 'text',
'title' => esc_html__('Behance', 'adena'),
'subtitle' => esc_html__('Leave blank to disable the Behance icon', 'adena'),
'default' => '#',
),
// Dribbble
array(
'id' => 'opt_social_dribbble',
'type' => 'text',
'title' => esc_html__('Dribbble', 'adena'),
'subtitle' => esc_html__('Leave blank to disable the Dribbble icon', 'adena'),
'default' => '#',
),
// Youtube
array(
'id' => 'opt_social_youtube',
'type' => 'text',
'title' => esc_html__('Youtube', 'adena'),
'subtitle' => esc_html__('Leave blank to disable the Youtube icon', 'adena'),
'default' => '#',
),
// Vimeo
array(
'id' => 'opt_social_vimeo',
'type' => 'text',
'title' => esc_html__('Vimeo', 'adena'),
'subtitle' => esc_html__('Leave blank to disable the Vimeo icon', 'adena'),
'default' => '#',
),
// Vimeo
array(
'id' => 'opt_social_linkedin',
'type' => 'text',
'title' => esc_html__('Linkedin', 'adena'),
'subtitle' => esc_html__('Leave blank to disable the Linkedin icon', 'adena'),
'default' => '#',
),
// RSS
array(
'id' => 'opt_social_rss',
'type' => 'text',
'title' => esc_html__('RSS', 'adena'),
'subtitle' => esc_html__('Leave blank to disable the RSS icon', 'adena'),
'default' => '#',
),
),
);
Redux::setSection(UN, $general_section);
// STYLING
$styling_section = array(
'title' => esc_html__('Styling', 'adena'),
'id' => 'styling',
'icon' => 'dashicons dashicons-admin-appearance',
'fields' => array(
// Main Font
array(
'id' => 'opt_main_font',
'type' => 'typography',
'title' => esc_html__('Main Font', 'adena'),
'subtitle' => esc_html__('This is the main font, used for example for the common text overall the theme.' , 'adena'),
'google' => true,
'font-style' => false,
'font-weight' => false,
'font-size' => false,
'subsets' => false,
'line-height' => false,
'word-spacing' => false,
'letter-spacing' => false,
'text-align' => false,
'text-transform' => false,
'color' => false,
'all_styles' => true,
'default' => array(
'font-family' => 'Open Sans',
'google' => true,
),
'output' => array('body'),
),
// Heading Font
array(
'id' => 'opt_heading_font',
'type' => 'typography',
'title' => esc_html__('Heading Font', 'adena'),
'subtitle' => esc_html__('This font is used for the headings and titles overall the theme.' , 'adena'),
'google' => true,
'font-style' => false,
'font-weight' => false,
'font-size' => false,
'subsets' => false,
'line-height' => false,
'word-spacing' => false,
'letter-spacing' => false,
'text-align' => false,
'text-transform' => false,
'color' => false,
'all_styles' => true,
'default' => array(
'font-family' => 'Poppins',
'google' => true,
),
'output' => array('
.un-title,
.un-title-s,
.un-title-m,
.un-title-l,
.un-title-xl,
.un-title-xxl,
.un-item-top .un-item-title,
.un-item-bott .un-item-title,
.un-page-nav-title,
.un-page-author-title,
.un-rel-post-title,
.un-page-title-wrap,
.un-page-title,
.error404 .un-title,
.un-post-title,
.un-widget-title,
.un-page-side .un-widget-title,
.un-comments-title,
.un-form-title,
.comment-reply-title'
),
),
// Base Color
array(
'id' => 'opt_base_color',
'type' => 'color',
'title' => esc_html__('Base Color', 'adena'),
'desc' => esc_html__('This color affects the body and is inherited by all texts overall the theme.', 'adena'),
'default' => '#222222',
'validate' => 'color',
'transparent' => false,
'output' => array('color' => 'body'),
),
// Main Color
array(
'id' => 'opt_main_color',
'type' => 'color',
'title' => esc_html__('Main Color', 'adena'),
'desc' => esc_html__('This options will affect the links "hover" but also other details like buttons, icons, bckgrounds, overlays, etc.', 'adena'),
'default' => '#0cb4ce',
'validate' => 'color',
'transparent' => false,
'output' => array(
'color' =>
'a:hover,
.go-to:hover,
.go-to-top:hover,
#un-btn-search-close:hover i,
.un-btn-2:hover, .un-btn-6:hover, .un-btn-8:hover, .un-btn-4:hover,
.un-mobile-menu .mobile-menu .sub-menu li a:hover,
.un-page-comments .reply a:hover,
.un-page-author-links li.first:hover,
.un-post-links li.first:hover,
.woocommerce-LoopProduct-link:hover h3,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current,
.slick-prev:hover:before, .slick-next:hover:before,
.tg-nav-color:not(.dots):not(.tg-dropdown-value):not(.tg-dropdown-title):hover,
.tg-nav-color:hover .tg-nav-color, .tg-page-number.tg-page-current,
.tg-filter.tg-filter-active span',
'background' =>
'.un-post-gallery .slick-dots button:hover,
.un-btn-1:hover, .un-btn-3:hover, .un-btn-5:hover, .un-btn-7:hover, .un-btn-9:hover, .un-btn-10:hover, .un-btn-11:hover,
.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.slick-dots li, .un-post-gallery .slick-dots button',
),
),
// Text Color
array(
'id' => 'opt_text_color',
'type' => 'color',
'title' => esc_html__('Text Color', 'adena'),
'desc' => esc_html__('This color affects som pure text contents and paragraphs.', 'adena'),
'default' => '#545454',
'validate' => 'color',
'transparent' => false,
'output' => array('color' => '.un-text-color, .wpb_text_column p, .un-text-widget, .woocommerce .product_meta span a'),
),
// Menu
array(
'id' => 'opt_menu',
'type' => 'typography',
'title' => esc_html__('Menu', 'adena'),
'google' => true,
'font-style' => false,
'font-weight' => true,
'font-size' => true,
'subsets' => false,
'line-height' => false,
'word-spacing' => false,
'letter-spacing' => true,
'text-align' => false,
'text-transform' => false,
'color' => false,
'all_styles' => true,
'default' => array(
'font-weight' => '500',
'font-family' => 'Poppins',
'google' => true,
'font-size' => '11px',
'letter-spacing' => '0.5',
),
'output' => array('.main-menu li, .main-menu li a, .mobile-menu li, .mobile-menu li a'),
),
// H1
array(
'id' => 'opt_h1',
'type' => 'typography',
'title' => esc_html__('Heading 1', 'adena'),
'google' => true,
'font-style' => false,
'font-weight' => true,
'font-size' => true,
'subsets' => false,
'line-height' => true,
'word-spacing' => true,
'letter-spacing' => true,
'text-align' => false,
'text-transform' => true,
'color' => true,
'all_styles' => true,
'default' => array(
'color' => '#222222',
'font-weight' => '600',
'font-family' => 'Poppins',
'google' => true,
'font-size' => '48px',
'line-height' => '60px',
'word-spacing' => '0',
'letter-spacing' => '0',
'text-transform' => 'none',
),
'output' => array('h1'),
),
// H2
array(
'id' => 'opt_h2',
'type' => 'typography',
'title' => esc_html__('Heading 2', 'adena'),
'google' => true,
'font-style' => false,
'font-weight' => true,
'font-size' => true,
'subsets' => false,
'line-height' => true,
'word-spacing' => true,
'letter-spacing' => true,
'text-align' => false,
'text-transform' => true,
'color' => true,
'all_styles' => true,
'default' => array(
'color' => '#222222',
'font-weight' => '600',
'font-family' => 'Poppins',
'google' => true,
'font-size' => '40px',
'line-height' => '52px',
'word-spacing' => '0',
'letter-spacing' => '0',
'text-transform' => 'none',
),
'output' => array('h2'),
),
// H3
array(
'id' => 'opt_h3',
'type' => 'typography',
'title' => esc_html__('Heading 3', 'adena'),
'google' => true,
'font-style' => false,
'font-weight' => true,
'font-size' => true,
'subsets' => false,
'line-height' => true,
'word-spacing' => true,
'letter-spacing' => true,
'text-align' => false,
'text-transform' => true,
'color' => true,
'all_styles' => true,
'default' => array(
'color' => '#222222',
'font-weight' => '600',
'font-family' => 'Poppins',
'google' => true,
'font-size' => '30px',
'line-height' => '40px',
'word-spacing' => '0',
'letter-spacing' => '0',
'text-transform' => 'none',
),
'output' => array('h3'),
),
// H4
array(
'id' => 'opt_h4',
'type' => 'typography',
'title' => esc_html__('Heading 4', 'adena'),
'google' => true,
'font-style' => false,
'font-weight' => true,
'font-size' => true,
'subsets' => false,
'line-height' => true,
'word-spacing' => true,
'letter-spacing' => true,
'text-align' => false,
'text-transform' => true,
'color' => true,
'all_styles' => true,
'default' => array(
'color' => '#222222',
'font-weight' => '600',
'font-family' => 'Poppins',
'google' => true,
'font-size' => '24px',
'line-height' => '32px',
'word-spacing' => '0',
'letter-spacing' => '0',
'text-transform' => 'none',
),
'output' => array('h4'),
),
// H5
array(
'id' => 'opt_h5',
'type' => 'typography',
'title' => esc_html__('Heading 5', 'adena'),
'google' => true,
'font-style' => false,
'font-weight' => true,
'font-size' => true,
'subsets' => false,
'line-height' => true,
'word-spacing' => true,
'letter-spacing' => true,
'text-align' => false,
'text-transform' => true,
'color' => true,
'all_styles' => true,
'default' => array(
'color' => '#222222',
'font-weight' => '600',
'font-family' => 'Poppins',
'google' => true,
'font-size' => '18px',
'line-height' => '26px',
'word-spacing' => '0',
'letter-spacing' => '0',
'text-transform' => 'uppercase',
),
'output' => array('h5'),
),
// H6
array(
'id' => 'opt_h6',
'type' => 'typography',
'title' => esc_html__('Heading 6', 'adena'),
'google' => true,
'font-style' => false,
'font-weight' => true,
'font-size' => true,
'subsets' => false,
'line-height' => true,
'word-spacing' => true,
'letter-spacing' => true,
'text-align' => false,
'text-transform' => true,
'color' => true,
'all_styles' => true,
'default' => array(
'color' => '#222222',
'font-weight' => '600',
'font-family' => 'Poppins',
'google' => true,
'font-size' => '14px',
'line-height' => '24px',
'word-spacing' => '0',
'letter-spacing' => '0',
'text-transform' => 'uppercase',
),
'output' => array('h6'),
),
),
);
Redux::setSection(UN, $styling_section);
// HEADING
// Parent Panel
$header_section = array(
'title' => esc_html__('Heading', 'adena'),
'id' => 'heading',
'icon' => 'dashicons dashicons-tablet',
);
Redux::setSection(UN, $header_section);
// Posts
$header_section = array(
'title' => esc_html__('Posts', 'adena'),
'desc' => esc_html__('Here you can set the Global options to build the header of your Posts.', 'adena'),
'id' => 'header_posts',
'subsection' => true,
'icon' => 'dashicons dashicons-admin-post',
'fields' => array(
// Text Color
array(
'id' => 'opt_post_head_col',
'type' => 'color',
'title' => esc_html__('Text Color', 'adena'),
'default' => '#222222',
'validate' => 'color',
),
// BG
array(
'id' => 'opt_post_head_bg',
'type' => 'background',
'title' => esc_html__('Background', 'adena'),
'default' => array(
'background-color' => '#eeeeee',
),
),
// Height
array(
'id' => 'opt_post_head_height',
'type' => 'slider',
'title' => esc_html__('Height (px)', 'adena'),
'default' => 400,
'min' => 100,
'step' => 1,
'max' => 1000,
'display_value' => 'text',
),
// Full Height
array(
'id' => 'opt_post_head_fullheight',
'type' => 'switch',
'title' => esc_html__('Full Height', 'adena'),
'subtitle' => esc_html__('This option will override the previous value', 'adena'),
'default' => false,
'required' => array('opt_post_head_height', '>=', '500'),
),
// Title
array(
'id' => 'opt_post_head_title',
'type' => 'button_set',
'title' => esc_html__('Title', 'adena'),
'options' => array(
'title' => esc_html__('Post Title', 'adena'),
'custom' => esc_html__('Custom', 'adena'),
),
'default' => 'title',
),
// Title -> Custom
array(
'id' => 'opt_post_head_title_custom',
'type' => 'text',
'title' => esc_html__('Custom Title', 'adena'),
'required' => array(
array('opt_post_head_title', '=', 'custom'),
),
),
// SubTitle
array(
'id' => 'opt_post_head_subtitle',
'type' => 'button_set',
'title' => esc_html__('Subtitle', 'adena'),
'options' => array(
'off' => esc_html__('OFF', 'adena'),
'excerpt' => esc_html__('Post Excerpt', 'adena'),
'meta' => esc_html__('Post Meta', 'adena'),
'custom' => esc_html__('Custom', 'adena'),
),
'default' => 'excerpt',
),
// Subtitle -> Meta
array(
'id' => 'opt_post_head_subtitle_meta',
'type' => 'select',
'multi' => true,
'sortable' => true,
'title' => esc_html__('Metas', 'adena'),
'subtitle' => esc_html__('Add and order the metas to display in your subtitle', 'adena'),
'options' => array(
'category' => esc_html__('Main Category', 'adena'),
'categories' => esc_html__('Up to 3 Categories', 'adena'),
'format' => esc_html__('Format', 'adena'),
'date' => esc_html__('Date', 'adena'),
'author' => esc_html__('Author', 'adena'),
'comments' => esc_html__('Comments Count', 'adena'),
),
'required' => array(
array('opt_post_head_subtitle', '=', 'meta'),
),
),
// SubTitle -> Custom
array(
'id' => 'opt_post_head_subtitle_custom',
'type' => 'text',
'title' => esc_html__('Custom Subtitle', 'adena'),
'required' => array(
array('opt_post_head_subtitle', '=', 'custom'),
),
),
// Button
array(
'id' => 'opt_post_head_arrow',
'type' => 'switch',
'title' => esc_html__('Bottom Arrow', 'adena'),
'default' => false,
),
),
);
Redux::setSection(UN, $header_section);
// Pages
$header_section = array(
'title' => esc_html__('Pages', 'adena'),
'desc' => esc_html__('Here you can set the Global options to build the header of your Pages.', 'adena'),
'id' => 'header_pages',
'subsection' => true,
'icon' => 'dashicons dashicons-admin-page',
'fields' => array(
// Text Color
array(
'id' => 'opt_page_head_col',
'type' => 'color',
'title' => esc_html__('Text Color', 'adena'),
'default' => '#222222',
'validate' => 'color',
),
// BG
array(
'id' => 'opt_page_head_bg',
'type' => 'background',
'title' => esc_html__('Background', 'adena'),
'default' => array(
'background-color' => '#eeeeee',
),
),
// Height
array(
'id' => 'opt_page_head_height',
'type' => 'slider',
'title' => esc_html__('Height (px)', 'adena'),
'default' => 400,
'min' => 100,
'step' => 1,
'max' => 1000,
'display_value' => 'text',
),
// Full Height
array(
'id' => 'opt_page_head_fullheight',
'type' => 'switch',
'title' => esc_html__('Full Height', 'adena'),
'subtitle' => esc_html__('This option will override the previous value', 'adena'),
'default' => false,
'required' => array('opt_page_head_height', '>=', '500'),
),
// Title
array(
'id' => 'opt_page_head_title',
'type' => 'button_set',
'title' => esc_html__('Title', 'adena'),
'options' => array(
'title' => esc_html__('Post Title', 'adena'),
'custom' => esc_html__('Custom', 'adena'),
),
'default' => 'title',
),
// Title -> Custom
array(
'id' => 'opt_page_head_title_custom',
'type' => 'text',
'title' => esc_html__('Custom Title', 'adena'),
'required' => array(
array('opt_page_head_title', '=', 'custom'),
),
),
// SubTitle
array(
'id' => 'opt_page_head_subtitle',
'type' => 'button_set',
'title' => esc_html__('Subtitle', 'adena'),
'options' => array(
'off' => esc_html__('OFF', 'adena'),
'excerpt' => esc_html__('Post Excerpt', 'adena'),
'meta' => esc_html__('Post Meta', 'adena'),
'custom' => esc_html__('Custom', 'adena'),
),
'default' => 'excerpt',
),
// Subtitle -> Meta
array(
'id' => 'opt_page_head_subtitle_meta',
'type' => 'select',
'multi' => true,
'sortable' => true,
'title' => esc_html__('Metas', 'adena'),
'subtitle' => esc_html__('Add and order the metas to display in your subtitle', 'adena'),
'options' => array(
'date' => esc_html__('Date', 'adena'),
'author' => esc_html__('Author', 'adena'),
'comments' => esc_html__('Comments Count', 'adena'),
),
'required' => array(
array('opt_page_head_subtitle', '=', 'meta'),
),
),
// SubTitle -> Custom
array(
'id' => 'opt_page_head_subtitle_custom',
'type' => 'text',
'title' => esc_html__('Custom Subtitle', 'adena'),
'required' => array(
array('opt_page_head_subtitle', '=', 'custom'),
),
),
// Button
array(
'id' => 'opt_page_head_arrow',
'type' => 'switch',
'title' => esc_html__('Bottom Arrow', 'adena'),
'default' => false,
),
),
);
Redux::setSection(UN, $header_section);
// Standard Loops
$header_section = array(
'title' => esc_html__('Standard Loops', 'adena'),
'desc' => esc_html__('Here you can set the Global options to build the header of your Standard Loops (Blog, Categories, Tags, Author, Search, etc).', 'adena'),
'id' => 'header_standard_loops',
'subsection' => true,
'icon' => 'dashicons dashicons-list-view',
'fields' => array(
// Text Color
array(
'id' => 'opt_archive_head_col',
'type' => 'color',
'title' => esc_html__('Text Color', 'adena'),
'default' => '#222222',
'validate' => 'color',
),
// BG
array(
'id' => 'opt_archive_head_bg',
'type' => 'background',
'title' => esc_html__('Background', 'adena'),
'default' => array(
'background-color' => '#eeeeee',
),
),
// Height
array(
'id' => 'opt_archive_head_height',
'type' => 'slider',
'title' => esc_html__('Height (px)', 'adena'),
'default' => 400,
'min' => 100,
'step' => 1,
'max' => 1000,
'display_value' => 'text',
),
// Full Height
array(
'id' => 'opt_archive_head_fullheight',
'type' => 'switch',
'title' => esc_html__('Full Height', 'adena'),
'subtitle' => esc_html__('This option will override the previous value', 'adena'),
'default' => false,
'required' => array('opt_archive_head_height', '>=', '500'),
),
// Title
array(
'id' => 'opt_archive_head_title',
'type' => 'button_set',
'title' => esc_html__('Title', 'adena'),
'options' => array(
'title' => esc_html__('Loop Title', 'adena'),
'custom' => esc_html__('Custom', 'adena'),
),
'default' => 'title',
),
// Title -> Custom
array(
'id' => 'opt_archive_head_title_custom',
'type' => 'text',
'title' => esc_html__('Custom Title', 'adena'),
'required' => array(
array('opt_archive_head_title', '=', 'custom'),
),
),
// SubTitle
array(
'id' => 'opt_archive_head_subtitle',
'type' => 'button_set',
'title' => esc_html__('Subtitle', 'adena'),
'options' => array(
'off' => esc_html__('OFF', 'adena'),
'custom' => esc_html__('Custom', 'adena'),
),
'default' => 'off',
),
// SubTitle -> Custom
array(
'id' => 'opt_archive_head_subtitle_custom',
'type' => 'text',
'title' => esc_html__('Custom Subtitle', 'adena'),
'required' => array(
array('opt_archive_head_subtitle', '=', 'custom'),
),
),
// Button
array(
'id' => 'opt_archive_head_arrow',
'type' => 'switch',
'title' => esc_html__('Bottom Arrow', 'adena'),
'default' => false,
),
),
);
Redux::setSection(UN, $header_section);
// Shop
$header_section = array(
'title' => esc_html__('Shop', 'adena'),
'desc' => esc_html__('Here you can set the Global options to build the header of your Shop views (Shop, Products, Cart, Checkout, etc).', 'adena'),
'id' => 'header_shop',
'subsection' => true,
'icon' => 'dashicons dashicons-cart',
'fields' => array(
// Enable
array(
'id' => 'opt_shop_head',
'type' => 'switch',
'title' => esc_html__('Enable', 'adena'),
'default' => true,
),
// Text Color
array(
'id' => 'opt_shop_head_col',
'type' => 'color',
'title' => esc_html__('Text Color', 'adena'),
'default' => '#222222',
'validate' => 'color',
'required' => array('opt_shop_head', '=', true),
),
// BG
array(
'id' => 'opt_shop_head_bg',
'type' => 'background',
'title' => esc_html__('Background', 'adena'),
'default' => array(
'background-color' => '#eeeeee',
),
'required' => array('opt_shop_head', '=', true),
),
// Height
array(
'id' => 'opt_shop_head_height',
'type' => 'slider',
'title' => esc_html__('Height (px)', 'adena'),
'default' => 400,
'min' => 100,
'step' => 1,
'max' => 1000,
'display_value' => 'text',
'required' => array('opt_shop_head', '=', true),
),
// Full Height
array(
'id' => 'opt_shop_head_fullheight',
'type' => 'switch',
'title' => esc_html__('Full Height', 'adena'),
'subtitle' => esc_html__('This option will override the previous value', 'adena'),
'default' => false,
'required' => array(
array('opt_shop_head', '=', true),
array('opt_shop_head_height', '>=', '500'),
),
),
// Title
array(
'id' => 'opt_shop_head_title',
'type' => 'button_set',
'title' => esc_html__('Title', 'adena'),
'options' => array(
'title' => esc_html__('Shop Page Title', 'adena'),
'custom' => esc_html__('Custom', 'adena'),
),
'default' => 'title',
'required' => array('opt_shop_head', '=', true),
),
// Title -> Custom
array(
'id' => 'opt_shop_head_title_custom',
'type' => 'text',
'title' => esc_html__('Custom Title', 'adena'),
'required' => array(
array('opt_shop_head', '=', true),
array('opt_shop_head_title', '=', 'custom'),
),
),
// SubTitle
array(
'id' => 'opt_shop_head_subtitle',
'type' => 'button_set',
'title' => esc_html__('Subtitle', 'adena'),
'options' => array(
'off' => esc_html__('OFF', 'adena'),
'bread' => esc_html__('Shop Breadcrump', 'adena'),
'custom' => esc_html__('Custom', 'adena'),
),
'default' => 'bread',
'required' => array('opt_shop_head', '=', true),
),
// SubTitle -> Custom
array(
'id' => 'opt_shop_head_subtitle_custom',
'type' => 'text',
'title' => esc_html__('Custom Subtitle', 'adena'),
'required' => array(
array('opt_shop_head', '=', true),
array('opt_shop_head_subtitle', '=', 'custom'),
),
),
// Button
array(
'id' => 'opt_shop_head_arrow',
'type' => 'switch',
'title' => esc_html__('Bottom Arrow', 'adena'),
'default' => false,
'required' => array('opt_shop_head', '=', true),
),
),
);
if ( class_exists( 'WooCommerce' ) ) {
Redux::setSection(UN, $header_section);
}
// LAYOUT
// Parent Panel
$layout_section = array(
'title' => esc_html__('Layout', 'adena'),
'id' => 'layout',
'icon' => 'dashicons dashicons-align-left',
);
Redux::setSection(UN, $layout_section);
// Posts
$layout_section = array(
'title' => esc_html__('Posts', 'adena'),
'desc' => esc_html__('Here you can set the Global options to build the layout of your Posts.', 'adena'),
'id' => 'layout_posts',
'subsection' => true,
'icon' => 'dashicons dashicons-admin-post',
'fields' => array(
// Layout
array(
'id' => 'opt_post_layout',
'type' => 'image_select',
'title' => esc_html__('Content Layout', 'adena'),
'options' => array(
'full_big' => array(
'alt' => esc_html__('Fullwidth', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_content_big.png'
),
'full_small' => array(
'alt' => esc_html__('Fullwidth Small', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_content_small.png'
),
'side_R' => array(
'alt' => esc_html__('Right Sidebar', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_sideR.png'
),
'side_L' => array(
'alt' => esc_html__('Left Sidebar', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_sideL.png'
),
),
'default' => 'full_small',
),
// Sidebar
array(
'id' => 'opt_post_sidebar',
'type' => 'select',
'title' => esc_html__('Sidebar', 'adena'),
'data' => 'sidebars',
'default' => 'un-blog-sidebar',
'required' => array(
array('opt_post_layout','contains','side_'),
),
),
// Tags
array(
'id' => 'opt_post_tags',
'type' => 'switch',
'title' => esc_html__('Post Tags', 'adena'),
'default' => true,
),
// Navy
array(
'id' => 'opt_post_navy',
'type' => 'switch',
'title' => esc_html__('Post Navigation', 'adena'),
'default' => true,
),
// Author
array(
'id' => 'opt_post_author',
'type' => 'switch',
'title' => esc_html__('Post Author', 'adena'),
'default' => true,
),
// Comments
array(
'id' => 'opt_post_comments',
'type' => 'switch',
'title' => esc_html__('Post Comments', 'adena'),
'default' => true,
),
// Related
array(
'id' => 'opt_post_related',
'type' => 'switch',
'title' => esc_html__('Related Posts', 'adena'),
'default' => true,
),
),
);
Redux::setSection(UN, $layout_section);
// Pages
$layout_section = array(
'title' => esc_html__('Pages', 'adena'),
'desc' => esc_html__('Here you can set the Global options to build the layout of your Pages.', 'adena'),
'id' => 'layout_pages',
'subsection' => true,
'icon' => 'dashicons dashicons-admin-page',
'fields' => array(
// Layout
array(
'id' => 'opt_page_layout',
'type' => 'image_select',
'title' => esc_html__('Content Layout', 'adena'),
'options' => array(
'full_big' => array(
'alt' => esc_html__('Fullwidth', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_content_big.png'
),
'full_small' => array(
'alt' => esc_html__('Fullwidth Small', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_content_small.png'
),
'side_R' => array(
'alt' => esc_html__('Right Sidebar', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_sideR.png'
),
'side_L' => array(
'alt' => esc_html__('Left Sidebar', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_sideL.png'
),
),
'default' => 'full_big',
),
// Sidebar
array(
'id' => 'opt_page_sidebar',
'type' => 'select',
'title' => esc_html__('Sidebar', 'adena'),
'data' => 'sidebars',
'default' => 'un-page-sidebar',
'required' => array(
array('opt_page_layout','contains','side_'),
),
),
// Comments
array(
'id' => 'opt_page_comments',
'type' => 'switch',
'title' => esc_html__('Post Comments', 'adena'),
'default' => true,
),
),
);
Redux::setSection(UN, $layout_section);
// Standard Loops
$layout_section = array(
'title' => esc_html__('Standard Loops', 'adena'),
'desc' => esc_html__('Here you can set the Global options to build the layout of your Standard Loops (Blog, Categories, Tags, Author, Search, etc).', 'adena'),
'id' => 'layout_standatd_loops',
'subsection' => true,
'icon' => 'dashicons dashicons-list-view',
'fields' => array(
// Layout
array(
'id' => 'opt_archive_layout',
'type' => 'image_select',
'title' => esc_html__('Content Layout', 'adena'),
'options' => array(
'full_big' => array(
'alt' => esc_html__('Fullwidth', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_content_big.png'
),
'full_small' => array(
'alt' => esc_html__('Fullwidth Small', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_content_small.png'
),
'side_R' => array(
'alt' => esc_html__('Right Sidebar', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_sideR.png'
),
'side_L' => array(
'alt' => esc_html__('Left Sidebar', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_sideL.png'
),
),
'default' => 'full_big',
),
// Sidebar
array(
'id' => 'opt_archive_sidebar',
'type' => 'select',
'title' => esc_html__('Sidebar', 'adena'),
'data' => 'sidebars',
'default' => 'un-page-sidebar',
'required' => array(
array('opt_archive_layout','contains','side_'),
),
),
),
);
Redux::setSection(UN, $layout_section);
// SIDEBARS
$sidebars_section = array(
'title' => esc_html__('Sidebars', 'adena'),
'id' => 'sidebars',
'icon' => 'dashicons dashicons-plus',
'fields' => array(
// Sidebar Repeater
array(
'id' => 'sidebars',
'type' => 'repeater',
'title' => esc_html__( 'Add unlimited sidebars to your site', 'adena' ),
'group_values' => true,
'item_name' => esc_html__('Sidebar', 'adena'),
'sortable' => true,
'fields' => array(
array(
'id' => 'title',
'type' => 'text',
'title' => esc_html__( 'Sidebar Title', 'adena' ),
'desc' => esc_html__( 'It\'s required to create the sidebar', 'adena' ),
),
array(
'id' => 'description',
'type' => 'textarea',
'title' => esc_html__( 'Sidebar Description', 'adena' ),
'desc' => esc_html__( 'Useful to describe the sidebar\'s use', 'adena' ),
),
)
),
),
);
Redux::setSection(UN, $sidebars_section);
// FOOTER
// Parent Panel
$footer_section = array(
'title' => esc_html__('Footer', 'adena'),
'id' => 'footer',
'icon' => 'dashicons dashicons-welcome-widgets-menus',
);
Redux::setSection(UN, $footer_section);
// Area 1
$footer_section = array(
'title' => esc_html__('Area 1', 'adena'),
'id' => 'footer_area1',
'subsection' => true,
'icon' => 'dashicons dashicons-editor-insertmore',
'fields' => array(
// Enable
array(
'id' => 'opt_footer_area1',
'type' => 'switch',
'title' => esc_html__('Enable Area', 'adena'),
'default' => true,
),
// Columns
array(
'id' => 'opt_footer_area1_cols',
'type' => 'image_select',
'title' => esc_html__('Columns', 'adena'),
'options' => array(
'1' => array(
'alt' => esc_html__('1 Col', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_content_big.png'
),
'2' => array(
'alt' => esc_html__('2 Cols', 'adena'),
'img' => UN_THEME_URI.'assets/img/grid_2cols.png'
),
'3' => array(
'alt' => esc_html__('3 Cols', 'adena'),
'img' => UN_THEME_URI.'assets/img/grid_3cols.png'
),
'4' => array(
'alt' => esc_html__('4 Cols', 'adena'),
'img' => UN_THEME_URI.'assets/img/grid_4cols.png'
),
),
'default' => '4',
'required' => array('opt_footer_area1', '=', true),
),
// Sidebar 1
array(
'id' => 'opt_footer_area1_side1',
'type' => 'select',
'title' => esc_html__('Sidebar 1', 'adena'),
'data' => 'sidebars',
'default' => 'un-page-sidebar',
'required' => array(
array('opt_footer_area1', '=', true),
array('opt_footer_area1_cols', '>=', '1'),
),
),
// Sidebar 2
array(
'id' => 'opt_footer_area1_side2',
'type' => 'select',
'title' => esc_html__('Sidebar 2', 'adena'),
'data' => 'sidebars',
'default' => 'un-page-sidebar',
'required' => array(
array('opt_footer_area1', '=', true),
array('opt_footer_area1_cols', '>=', '2'),
),
),
// Sidebar 3
array(
'id' => 'opt_footer_area1_side3',
'type' => 'select',
'title' => esc_html__('Sidebar 3', 'adena'),
'data' => 'sidebars',
'default' => 'un-page-sidebar',
'required' => array(
array('opt_footer_area1', '=', true),
array('opt_footer_area1_cols', '>=', '3'),
),
),
// Sidebar 4
array(
'id' => 'opt_footer_area1_side4',
'type' => 'select',
'title' => esc_html__('Sidebar 4', 'adena'),
'data' => 'sidebars',
'default' => 'un-page-sidebar',
'required' => array(
array('opt_footer_area1', '=', true),
array('opt_footer_area1_cols', '>=', '4'),
),
),
// Area BG
array(
'id' => 'opt_footer_area1_bg',
'type' => 'background',
'title' => esc_html__('Area Background', 'adena'),
'default' => array(
'background-color' => '#F0F0F0',
),
'output' => array('.un-footer-top'),
'required' => array('opt_footer_area1', '=', true),
),
// Widget Title Color
array(
'id' => 'opt_footer_area1_title_col',
'type' => 'color',
'title' => esc_html__('Widget Title Color', 'adena'),
'default' => '#ffffff',
'validate' => 'color',
'output' => array('color' => '.un-footer-top .un-widget-title'),
'required' => array('opt_footer_area1', '=', true),
),
// Widget Title BG
array(
'id' => 'opt_footer_area1_title_bg',
'type' => 'color',
'title' => esc_html__('Widget Title Background', 'adena'),
'default' => '#222222',
'validate' => 'color',
'output' => array('background' => '.un-footer-top .un-widget-title'),
'required' => array('opt_footer_area1', '=', true),
),
// Widget Title Border
array(
'id' => 'opt_footer_area1_title_border',
'type' => 'border',
'all' => false,
'title' => esc_html__('Widget Title Border', 'adena'),
'default' => array(
'border-color' => 'transparent',
'border-style' => 'none',
'border-top' => '1px',
'border-right' => '1px',
'border-bottom' => '1px',
'border-left' => '1px',
),
'output' => array('.un-footer-top .un-widget-title'),
'required' => array('opt_footer_area1', '=', true),
),
// Widget Content Color
array(
'id' => 'opt_footer_area1_content_col',
'type' => 'color',
'title' => esc_html__('Widget Content Color', 'adena'),
'default' => '#222222',
'validate' => 'color',
'output' => array('color' => '.un-footer-top .un-widget, .un-footer-top .un-widget li'),
'required' => array('opt_footer_area1', '=', true),
),
),
);
Redux::setSection(UN, $footer_section);
// Area 2
$footer_section = array(
'title' => esc_html__('Area 2', 'adena'),
'id' => 'footer_area2',
'subsection' => true,
'icon' => 'dashicons dashicons-editor-insertmore',
'fields' => array(
// Enable
array(
'id' => 'opt_footer_area2',
'type' => 'switch',
'title' => esc_html__('Enable Area', 'adena'),
'default' => true,
),
// Columns
array(
'id' => 'opt_footer_area2_cols',
'type' => 'image_select',
'title' => esc_html__('Columns', 'adena'),
'options' => array(
'1' => array(
'alt' => esc_html__('1 Col', 'adena'),
'img' => UN_THEME_URI.'assets/img/layout_content_big.png'
),
'2' => array(
'alt' => esc_html__('2 Cols', 'adena'),
'img' => UN_THEME_URI.'assets/img/grid_2cols.png'
),
'3' => array(
'alt' => esc_html__('3 Cols', 'adena'),
'img' => UN_THEME_URI.'assets/img/grid_3cols.png'
),
'4' => array(
'alt' => esc_html__('4 Cols', 'adena'),
'img' => UN_THEME_URI.'assets/img/grid_4cols.png'
),
),
'default' => '4',
'required' => array('opt_footer_area2', '=', true),
),
// Sidebar 1
array(
'id' => 'opt_footer_area2_side1',
'type' => 'select',
'title' => esc_html__('Sidebar 1', 'adena'),
'data' => 'sidebars',
'default' => 'un-page-sidebar',
'required' => array(
array('opt_footer_area2', '=', true),
array('opt_footer_area2_cols', '>=', '1'),
),
),
// Sidebar 2
array(
'id' => 'opt_footer_area2_side2',
'type' => 'select',
'title' => esc_html__('Sidebar 2', 'adena'),
'data' => 'sidebars',
'default' => 'un-page-sidebar',
'required' => array(
array('opt_footer_area2', '=', true),
array('opt_footer_area2_cols', '>=', '2'),
),
),
// Sidebar 3
array(
'id' => 'opt_footer_area2_side3',
'type' => 'select',
'title' => esc_html__('Sidebar 3', 'adena'),
'data' => 'sidebars',
'default' => 'un-page-sidebar',
'required' => array(
array('opt_footer_area2', '=', true),
array('opt_footer_area2_cols', '>=', '3'),
),
),
// Sidebar 4
array(
'id' => 'opt_footer_area2_side4',
'type' => 'select',
'title' => esc_html__('Sidebar 4', 'adena'),
'data' => 'sidebars',
'default' => 'un-page-sidebar',
'required' => array(
array('opt_footer_area2', '=', true),
array('opt_footer_area2_cols', '>=', '4'),
),
),
// Area BG
array(
'id' => 'opt_footer_area2_bg',
'type' => 'background',
'title' => esc_html__('Area Background', 'adena'),
'default' => array(
'background-color' => '#222222',
),
'output' => array('.un-footer-middle'),
'required' => array('opt_footer_area2', '=', true),
),
// Widget Title Color
array(
'id' => 'opt_footer_area2_title_col',
'type' => 'color',
'title' => esc_html__('Widget Title Color', 'adena'),
'default' => '#ffffff',
'validate' => 'color',
'output' => array('color' => '.un-footer-middle .un-widget-title'),
'required' => array('opt_footer_area2', '=', true),
),
// Widget Title BG
array(
'id' => 'opt_footer_area2_title_bg',
'type' => 'color',
'title' => esc_html__('Widget Title Background', 'adena'),
'default' => 'transparent',
'validate' => 'color',
'output' => array('background' => '.un-footer-middle .un-widget-title'),
'required' => array('opt_footer_area2', '=', true),
),
// Widget Title Border
array(
'id' => 'opt_footer_area2_title_border',
'type' => 'border',
'all' => false,
'title' => esc_html__('Widget Title Border', 'adena'),
'default' => array(
'border-color' => 'rgba(255,255,255,0.1)',
'border-style' => 'solid',
'border-top' => '1px',
'border-right' => '1px',
'border-bottom' => '1px',
'border-left' => '1px',
),
'output' => array('.un-footer-middle .un-widget-title'),
'required' => array('opt_footer_area2', '=', true),
),
// Widget Content Color
array(
'id' => 'opt_footer_area2_content_col',
'type' => 'color',
'title' => esc_html__('Widget Content Color', 'adena'),
'default' => '#ffffff',
'validate' => 'color',
'output' => array('color' => '.un-footer-middle .un-widget, .un-footer-middle .un-widget li'),
'required' => array('opt_footer_area2', '=', true),
),
),
);
Redux::setSection(UN, $footer_section);
// Bottom Bar
$footer_section = array(
'title' => esc_html__('Bottom Bar', 'adena'),
'id' => 'footer_bottom',
'subsection' => true,
'icon' => 'dashicons dashicons-flag',
'fields' => array(
// Copyright
array(
'id' => 'opt_footer_copy',
'type' => 'editor',
'title' => esc_html__('Copyright text', 'adena'),
'default' => ' © Copyright '.date('Y').' '.esc_attr(get_bloginfo( 'name' )).' - All Rights Reserved.',
'args' => array(
'teeny' => true,
'textarea_rows' => 10
)
),
// Social Icons
array(
'id' => 'opt_footer_socials',
'type' => 'switch',
'title' => esc_html__('Social Icons', 'adena'),
'default' => true,
),
// Top Button
array(
'id' => 'opt_footer_topbutton',
'type' => 'switch',
'title' => esc_html__('Top Button', 'adena'),
'default' => true,
),
),
);
Redux::setSection(UN, $footer_section);
// ADVANCED
// Parent Panel
$advanced_section = array(
'title' => esc_html__('Advanced', 'adena'),
'id' => 'adv',
'icon' => 'dashicons dashicons-admin-tools',
);
Redux::setSection(UN, $advanced_section);
// Page Loading
$advanced_section = array(
'title' => esc_html__('Page Loading', 'adena'),
'id' => 'adv_loading',
'subsection' => true,
'icon' => 'dashicons dashicons-clock',
'fields' => array(
// Enable Loading
array(
'id' => 'opt_adv_loading',
'type' => 'switch',
'title' => esc_html__('Page Loading', 'adena'),
'default' => true,
),
// BG Color
array(
'id' => 'opt_adv_loading_bg',
'type' => 'color_rgba',
'title' => esc_html__('Background Color', 'adena'),
'default' => array(
'color' => '#ffffff',
'alpha' => 1,
),
'transparent' => false,
'output' => array('background' => '.load-wrap'),
'required' => array(
array('opt_adv_loading','=',true),
),
),
// Loader
array(
'id' => 'opt_adv_loading_image',
'type' => 'background',
'title' => esc_html__('Loader Image', 'adena'),
'subtitle' => esc_html__('If you leave blank this field the standard Adena\'s loader will be displayed', 'adena'),
'background-color' => false,
'background-repeat' => false,
'background-attachment' => false,
'background-position' => false,
'background-size' => false,
'preview_media' => true,
'preview' => false,
'default' => array(
'background-color' => 'transparent',
'background-image' => UN_THEME_URI.'assets/img/loader.gif',
),
'output' => array('background' => '.load-item'),
'required' => array(
array('opt_adv_loading','=',true),
),
),
// Custom Code HTML
array(
'id' => 'opt_adv_loading_custom_html',
'type' => 'textarea',
'title' => esc_html__('Custom HTML code', 'adena'),
'subtitle' => esc_html__('This code will replace the loading picture above.', 'adena'),
'required' => array(
array('opt_adv_loading','=',true),
),
),
// Custom Code CSS
array(
'id' => 'opt_adv_loading_custom_css',
'type' => 'textarea',
'title' => esc_html__('Custom CSS code', 'adena'),
'subtitle' => esc_html__('This CSS code will be added before the loading HTML (you don\'t need to add the