File: /home/madepabj/hc-cosmetics.com/wp-content/themes/dbea/framework/sns-options.php
<?php
if ( ! class_exists( 'Redux' ) ) {
return;
}
// This is your option name where all the Redux data is stored.
$opt_name = "dbea_themeoptions";
$theme = wp_get_theme(); // For use with some settings. Not necessary.
$args = array(
// TYPICAL -> Change these values as you need/desire
'opt_name' => $opt_name,
// This is where your data is stored in the database and also becomes your global variable name.
'display_name' => $theme->get( 'Name' ),
// Name that appears at the top of your panel
'display_version' => $theme->get( 'Version' ),
// Version that appears at the top of your panel
'menu_type' => 'menu',
//Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only)
'allow_sub_menu' => true,
// Show the sections below the admin menu item or not
'menu_title' => esc_html__( 'DBea', 'dbea' ),
'page_title' => esc_html__( 'DBea', 'dbea' ),
'dev_mode' => false,
'show_options_object' => false,
// If dev_mode is enabled, will notify developer of updated versions available in the GitHub Repo
'customizer' => true,
// Enable basic customizer support
// OPTIONAL -> Give you extra features
'page_priority' => 50,
// HINTS
'hints' => array(
'icon' => 'el el-question-sign',
'icon_position' => 'right',
'icon_color' => 'lightgray',
'icon_size' => 'normal',
'tip_style' => array(
'color' => 'red',
'shadow' => true,
'rounded' => false,
'style' => '',
),
'tip_position' => array(
'my' => 'top left',
'at' => 'bottom right',
),
'tip_effect' => array(
'show' => array(
'effect' => 'slide',
'duration' => '500',
'event' => 'mouseover',
),
'hide' => array(
'effect' => 'slide',
'duration' => '500',
'event' => 'click mouseleave',
),
),
)
);
Redux::setArgs( $opt_name, $args );
$tabs = array(
array(
'id' => 'redux-help-tab-1',
'title' => __( 'Theme Information 1', 'dbea' ),
'content' => __( '<p>This is the tab content, HTML is allowed.</p>', 'dbea' )
),
array(
'id' => 'redux-help-tab-2',
'title' => __( 'Theme Information 2', 'dbea' ),
'content' => __( '<p>This is the tab content, HTML is allowed.</p>', 'dbea' )
)
);
Redux::set_help_tab( $opt_name, $tabs );
// Set the help sidebar
$content = __( '<p>This is the sidebar content, HTML is allowed.</p>', 'dbea' );
Redux::set_help_sidebar( $opt_name, $content );
// Import Demo Content
$desc = '';
if ( !function_exists('wordpress_importer_init') || !defined('WP_LOAD_IMPORTERS') ) {
$subtitle = '
<p><label><i class="fa fa-exclamation-circle"></i> Please follow the check list bellow to enable import function:</label></p>
<ul class="i_message">';
if ( !function_exists('wordpress_importer_init') ) {
$subtitle .= '<li><i class="fa fa-angle-double-right"></i> Need install and active plugin <a href="'.esc_url("https://wordpress.org/plugins/wordpress-importer/").'" target="_blank">Wordpress Importer</a></li>';
}
if( !defined('WP_LOAD_IMPORTERS') ){
$subtitle .= "<li><i class='fa fa-angle-double-right'></i> Need add <code>define('WP_LOAD_IMPORTERS', true);</code> to file wp-config.php</li>";
}
$subtitle .= '</ul>';
}else{
$subtitle = '<div class=\'button\' id=\'btn_sampledata\'>Import</div>';
$subtitle .= '
<div class=\'sns-importprocess\'>
<div class=\'sns-importprocess-width\'></div>
</div>
<span id=\'sns-importmsg\'><span class=\'status\'></span></span>
<div id="sns-import-tablecontent">
<label>List contents will import:</label>
<ul>
<li class="theme-cfg"><i class="fa fa-hand-point-right"></i>Theme config</li>
<li class="revslider-cfg"><i class="fa fa-hand-point-right"></i>Revolution Slider config</li>
<li class="all-content"><i class="fa fa-hand-point-right"></i>All contents</li>
<li class="widget-cfg"><i class="fa fa-hand-point-right"></i>Widget config</li>
</ul>
<br/><br/>
<div class="note_import"><strong>NOTE:</strong> After import done 100%, please go to <code>Admin >> Tools >> Regenerate Thumbnails</code> to generate thumbnails for your site.</div>
</div>
';
}
Redux::setSection( $opt_name, array(
'icon' => 'el-icon-briefcase',
'title' => esc_html__('Demo content', 'dbea'),
'fields' => array(
array(
'title' => '',
'subtitle' => $subtitle,
'desc' => $desc,
'id' => 'theme_data',
'icon' => true,
'type' => 'image_select',
'default' => 'dbea',
'options' => array(
'sns_logo' => get_template_directory_uri().'/assets/img/logo.png',
),
)
)
) );
// General
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'General', 'dbea' ),
'icon' => 'el-icon-cog',
'id' => 'general',
'customizer_width' => '400px'
) );
Redux::setSection( $opt_name, array(
'title' => __( 'Color, Layout', 'dbea' ),
'id' => 'general-layout',
'subsection' => true,
'customizer_width' => '450px',
'fields' => array(
array(
'id' => 'theme_color',
'type' => 'color',
'output' => array( '.site-title' ),
'title' => esc_html__( 'Theme Color', 'dbea' ),
'default' => '#ec2d9e',
'transparent' => false
),
array(
'id' => 'body_bg',
'type' => 'background',
'output' => array( 'body' ),
'title' => esc_html__( 'Body Background', 'dbea' ),
'background-image' => false,
'preview' => false,
),
)
));
Redux::setSection( $opt_name, array(
'title' => __( 'Fonts', 'dbea' ),
'id' => 'general-font',
'subsection' => true,
'customizer_width' => '450px',
'fields' => array(
array(
'id' => 'body_font',
'type' => 'typography',
'title' => esc_html__( 'Body font', 'dbea' ),
'line-height' => false,
'text-align' => false,
'color' => true,
'all_styles' => true,
'units' => 'px',
'default' => array(
'font-size' => '14px',
'font-family' => 'Quicksand',
'font-weight' => '400',
'color' => '#555555'
),
),
array(
'id' => 'headline_font',
'type' => 'typography',
'title' => esc_html__( 'Second google font', 'dbea' ),
'line-height' => false,
'text-align' => false,
'color' => false,
'font-size' => false,
'all_styles' => true,
'units' => 'px',
'default' => array(
'font-family' => 'Whisper',
),
'desc' => esc_html__( 'Normally, it use for some special heading', 'dbea' ),
),
array(
'id' => 'hfont_target',
'type' => 'textarea',
'title' => esc_html__( 'Second google font target', 'dbea' ),
'default' => '.second-font'
),
)
));
Redux::setSection( $opt_name, array(
'title' => __( 'Breadcrumbs', 'dbea' ),
'id' => 'general-breadcrumb',
'subsection' => true,
'customizer_width' => '450px',
'fields' => array(
array(
'id' => 'showbreadcrump',
'type' => 'switch',
'title' => 'Show Breadcrumbs?',
'default' => true,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'breadcrumbbg',
'type' => 'media',
'title' => esc_html__("Want use Background image for Breadcrumbs?", 'dbea'),
'required' => array( 'showbreadcrump', '=', 1 ),
),
)
));
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Header', 'dbea' ),
'icon' => 'el el-brush',
'fields' => array(
array(
'id' => 'header_style',
'type' => 'select',
'title' => esc_html__( 'Header Style', 'dbea' ),
'default' => 'style1',
'options' => array(
'style1' => esc_html__( 'Style1', 'dbea'),
),
'desc' => esc_html__( 'Select Header Style', 'dbea' ),
),
array(
'id' => 'enable_search_cat',
'type' => 'switch',
'title' => esc_html__( 'Enable Search Category for Live Ajax Search', 'dbea' ),
'default' => false,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'search_limit',
'type' => 'text',
'title' => esc_html__( 'Search limit numner', 'dbea' ),
'default' => '6',
'subtitle' => esc_html__( 'The number limit for search results dispplay', 'dbea' ),
'desc' => esc_html__( 'Note: The value is number, and -1 is unlimit,', 'dbea' ),
),
array(
'id' => 'search_title_only',
'type' => 'switch',
'title' => esc_html__( 'Search by Title only', 'dbea' ),
'default' => true,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'header_logo',
'type' => 'media',
'default' => '',
'title' => esc_html__( 'Logo', 'dbea' ),
'subtitle' => esc_html__( 'If this is not selected, This theme will be display logo with "theme/dbea/img/logo.png"', 'dbea' ),
'desc' => esc_html__( 'Image that you want to use as logo', 'dbea' ),
),
array(
'id' => 'use_stickmenu',
'type' => 'switch',
'title' => esc_html__( 'Enable Sticky Menu', 'dbea' ),
'subtitle' => esc_html__( 'Keep menu on top when scroll down/up', 'dbea' ),
'default' => false,
'on' => 'Yes',
'off' => 'No',
),
)
));
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Footer', 'dbea' ),
'icon' => 'el el-link',
'fields' => array(
array(
'title' => esc_html__( 'Style', 'dbea'),
'id' => 'footer_layout',
'type' => 'select',
'multiselect' => false,
'options' => array(
'1' => esc_html__( 'Style 1', 'dbea'),
'blank' => esc_html__( 'Blank', 'dbea'),
),
'default' => '1'
),
)
));
// Blog
$siderbars = array(
'blog-sidebar' => esc_html__( 'Blog Sidebar', 'dbea' ),
'woo-sidebar' => esc_html__( 'WooCommerce Sidebar', 'dbea' ),
'woo-sidebar-sticky' => esc_html__( 'WooCommerce Sidebar - Sticky', 'dbea' )
);
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Blog', 'dbea' ),
'icon' => 'el el-file-edit',
'id' => 'blog',
'customizer_width' => '400px'
) );
Redux::setSection( $opt_name, array(
'title' => __( 'Blog Pages', 'dbea' ),
'id' => 'blog-page',
'subsection' => true,
'customizer_width' => '450px',
'fields' => array(
array(
'id' => 'layouttype',
'type' => 'image_select',
'title' => esc_html__('Default Blog Layout', 'dbea'),
'options' => array(
'm' => array(
'alt' => esc_html__( 'Without Sidebar', 'dbea' ),
'img' => DBEA_THEME_URI.'/assets/img/admin/m.jpg'
),
'l-m' => array(
'alt' => esc_html__( 'Use Left Sidebar', 'dbea' ),
'img' => DBEA_THEME_URI.'/assets/img/admin/l-m.jpg'
),
'm-r' => array(
'alt' => esc_html__( 'Use Right Sidebar', 'dbea' ),
'img' => DBEA_THEME_URI.'/assets/img/admin/m-r.jpg'
),
),
'default' => 'm-r'
),
// Left Sidebar
array(
'title' => esc_html__( 'Left Sidebar', 'dbea' ),
'id' => "leftsidebar",
'type' => 'select',
'options' => $siderbars,
'multiselect' => false,
'required' => array( 'layouttype', '=', array( 'l-m', 'l-m-r' ) )
),
// Right Sidebar
array(
'title' => esc_html__( 'Right Sidebar', 'dbea' ),
'id' => "rightsidebar",
'type' => 'select',
'options' => $siderbars,
'multiselect' => false,
'required' => array( 'layouttype', '=', array( 'm-r', 'l-m-r' ) )
),
array(
'title' => esc_html__( 'Blog Style', 'dbea'),
'id' => 'blog_type',
'default' => 'layout1',
'type' => 'select',
'multiselect' => false ,
'options' => array(
'layout1' => esc_html__( 'Blog default page', 'dbea'),
'masonry' => esc_html__( 'Blog Masonry ', 'dbea'),
)
),
array(
'id' => 'pagination',
'title' => esc_html__( 'Page Navigation', 'dbea'),
'desc' => esc_html__('Choose Type of navigation for blog and any listing page.', 'dbea'),
'default' => 'def',
'type' => 'select',
'multiselect' => false ,
'options' => array(
'def' => esc_html__('Default', 'dbea'),
'ajax' => esc_html__('Ajax click load more', 'dbea'),
'ajax2' => esc_html__('Ajax auto load more', 'dbea'),
),
),
array(
'id' => 'masonry_numload',
'type' => 'text',
'title' => esc_html__( 'Number post with each load more', 'dbea' ),
'default' => '3',
'required' => array( 'pagination', '=', array( 'ajax', 'ajax2' ) )
),
array(
'id' => 'show_categories',
'type' => 'switch',
'title' => esc_html__( 'Show Categories for Blog Entries Page', 'dbea' ),
'default' => true,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'show_date',
'type' => 'switch',
'title' => esc_html__( 'Show Date for Blog Entries Page', 'dbea' ),
'default' => true,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'show_author',
'type' => 'switch',
'title' => esc_html__( 'Show Author for Blog Entries Page', 'dbea' ),
'default' => true,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'show_tags',
'type' => 'switch',
'title' => esc_html__( 'Show Tags for Blog Entries Page', 'dbea' ),
'default' => true,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'excerpt_length',
'type' => 'text',
'title' => esc_html__( 'Blog Excerpt Length', 'dbea' ),
'default' => '25',
),
array(
'id' => 'show_morelink',
'type' => 'switch',
'title' => esc_html__( 'Show more link', 'dbea' ),
'subtitle' => esc_html__( 'Apply when post have Excerpt', 'dbea' ),
'default' => true,
'on' => 'Yes',
'off' => 'No',
),
)
));
Redux::setSection( $opt_name, array(
'title' => __( 'Single Post', 'dbea' ),
'id' => 'blog-singlepost',
'subsection' => true,
'customizer_width' => '450px',
'fields' => array(
array(
'id' => 'show_postauthor',
'type' => 'switch',
'title' => esc_html__( 'Enable Author Info on Post Detail', 'dbea' ),
'default' => false,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'show_postsharebox',
'type' => 'switch',
'title' => esc_html__( 'Enable Share box', 'dbea' ),
'subtitle' => esc_html__( 'Just work when you install plugin Simple Share Buttons Adder', 'dbea' ),
'default' => true,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'enalble_related',
'type' => 'switch',
'title' => esc_html__( 'Enable Related Post', 'dbea' ),
'default' => false,
'on' => 'Yes',
'off' => 'No',
),
)
));
// WooCommerce
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Woo', 'dbea' ),
'icon' => 'el el-shopping-cart',
'id' => 'woo',
'desc' => __( 'These are really basic fields!', 'dbea' ),
'customizer_width' => '400px'
) );
Redux::setSection( $opt_name, array(
'title' => __( 'Archives Pages', 'dbea' ),
'id' => 'woo-shoppage',
'subsection' => true,
'customizer_width' => '450px',
'fields' => array(
array(
'id' => 'woo_uselazyload',
'type' => 'switch',
'title' => esc_html__( 'Use lazyload for Product Image', 'dbea' ),
'default' => false,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'woo_stickypfilter',
'type' => 'switch',
'title' => esc_html__( 'Sticky product filter in left', 'dbea' ),
'subtitle' => esc_html__( 'To use this option you need add Widgets for sidebar Woo Sidebar - Sticky', 'dbea' ),
'default' => false,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'woo_gridstyle',
'type' => 'select',
'title' => esc_html__( 'Grid style', 'dbea' ),
'options' => array(
'' => esc_html__( 'Default', 'dbea' ),
'' => esc_html__( 'Style 1', 'dbea' ),
),
'default' => ''
),
array(
'id' => 'woo_grid_col',
'type' => 'select',
'title' => esc_html__( 'Default Grid columns', 'dbea' ),
'subtitle' => esc_html__( 'We are using grid bootstap - 12 cols layout', 'dbea' ),
'default' => '3',
'options' => array(
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
'6' => '6',
),
),
array(
'id' => 'woo_value_number_cols',
'type' => 'text',
'title' => esc_html__( 'The numbers value columns', 'dbea' ),
'default' => '2/3',
'subtitle' => esc_html__( 'The numbers value to set product columns per row. Ex: 2/3/4/5', 'dbea' ),
),
array(
'id' => 'woo_number_perpage',
'type' => 'text',
'title' => esc_html__( 'Number products per listing page', 'dbea' ),
'default' => '9',
),
)
));
Redux::setSection( $opt_name, array(
'title' => __( 'Single Product', 'dbea' ),
'id' => 'woo-singleproduct',
'subsection' => true,
'customizer_width' => '450px',
'fields' => array(
array(
'id' => 'woo_gallery_type',
'type' => 'select',
'title' => esc_html__( 'Gallery Thumbnail Type', 'dbea' ),
'default' => 'h',
'options' => array(
'h' => esc_html__( 'Horizontal', 'dbea' ),
'v' => esc_html__( 'Vertical', 'dbea' ),
'n1' => esc_html__( 'None - Use scrolling layout', 'dbea' ),
),
),
array(
'id' => 'woo_thumb_num',
'type' => 'text',
'title' => esc_html__( 'Number Thumbnail to display', 'dbea' ),
'default' => '4',
),
array(
'id' => 'single_product_sidebar',
'type' => 'switch',
'title' => esc_html__( 'Use Sidebar in Single Product Page', 'dbea' ),
'default' => false,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'woo_designvariations',
'type' => 'switch',
'title' => esc_html__( 'Re-design Variations Form', 'dbea' ),
'default' => true,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'woo_sharebox',
'type' => 'switch',
'title' => esc_html__( 'Enable Share box', 'dbea' ),
'subtitle' => esc_html__( 'Just work when you install plugin Simple Share Buttons Adder', 'dbea' ),
'default' => true,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'woo_upsells',
'type' => 'switch',
'title' => esc_html__( 'Enable Upsells Products', 'dbea' ),
'default' => true,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'woo_upsells_num',
'type' => 'text',
'title' => esc_html__( 'Number limit of Upsells Products', 'dbea' ),
'required' => array( 'woo_upsells', '=', '1' ),
'default' => '6',
),
array(
'id' => 'woo_related',
'type' => 'switch',
'title' => esc_html__( 'Enable Related Products', 'dbea' ),
'default' => true,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'woo_related_num',
'type' => 'text',
'title' => esc_html__( 'Number limit of Related Products', 'dbea' ),
'required' => array( 'woo_related', '=', '1' ),
'default' => '6',
),
)
));
// Not Found
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Page Not Found', 'dbea' ),
'icon' => 'el el-warning-sign',
'customizer_width' => '450px',
'fields' => array(
array(
'id' => 'bg_404',
'type' => 'media',
'title' => esc_html__("Image for 404 not found page", 'dbea'),
),
array(
'id' => 'notfound_title',
'type' => 'text',
'title' => esc_html__( 'Title', 'dbea' ),
'default' => esc_html__('Page Not Found!', 'dbea'),
),
array(
'id' => 'notfound_content',
'type' => 'textarea',
'title' => esc_html__( 'Message Content', 'dbea' ),
'default' => esc_html__('It looks like nothing was found at this location. click on site logo to return home page or Maybe try a search?', 'dbea'),
),
)
));
// Advance
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Advance', 'dbea' ),
'icon' => 'el el-wrench',
'fields' => array(
array(
'id' => 'advance_tooltip',
'type' => 'switch',
'title' => esc_html__( 'Enable Tooltip', 'dbea' ),
'default' => false,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'advance_cpanel',
'type' => 'switch',
'title' => esc_html__( 'Enable Cpanel', 'dbea' ),
'default' => false,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'tf_p_link',
'type' => 'text',
'title' => esc_html__( 'Link to purchase theme', 'dbea' ),
'default' => esc_html__('#', 'dbea'),
'required' => array( 'advance_cpanel', '=', '1' )
),
array(
'id' => 'advance_scrolltotop',
'type' => 'switch',
'title' => esc_html__( 'Enable Button Scroll To Top', 'dbea' ),
'default' => true,
'on' => 'Yes',
'off' => 'No',
),
array(
'id' => 'advance_scss_compile',
'type' => 'select',
'title' => esc_html__( 'SCSS Compile', 'dbea' ),
'options' => array(
'1' => esc_html__( 'Only compile when don\'t have the css file', 'dbea' ),
'2' => esc_html__( 'Alway compile', 'dbea' ),
),
'default' => '1'
),
array(
'id' => 'advance_scss_format',
'type' => 'select',
'title' => esc_html__( 'CSS Format', 'dbea' ),
'options' => array(
'scss_formatter' => esc_html__( 'scss_formatter', 'dbea' ),
'scss_formatter_nested' => esc_html__( 'scss_formatter_nested', 'dbea' ),
'scss_formatter_compressed' => esc_html__( 'scss_formatter_compressed', 'dbea' ),
),
'default' => 'scss_formatter'
),
)
));