Submit
Path:
~
/
/
home
/
getwphos
/
public_html
/
techniquetechs
/
wp-content
/
themes
/
plexify
/
inc
/
theme-options
/
File Content:
theme-options.php
<?php if (!class_exists('ReduxFramework')) { return; } if (class_exists('ReduxFrameworkPlugin')) { remove_action('admin_notices', array(ReduxFrameworkPlugin::instance(), 'admin_notices')); } $opt_name = plexify()->get_option_name(); $version = plexify()->get_version(); $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' => $version, // Version that appears at the top of your panel 'menu_type' => 'submenu', //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__('Theme Options', 'plexify'), 'page_title' => esc_html__('Theme Options', 'plexify'), // You will need to generate a Google API key to use this feature. // Please visit: https://developers.google.com/fonts/docs/developer_api#Auth 'google_api_key' => '', // Set it you want google fonts to update weekly. A google_api_key value is required. 'google_update_weekly' => false, // Must be defined to add google fonts to the typography module 'async_typography' => false, // Use a asynchronous font on the front end or font string 'disable_google_fonts_link' => false, // Disable this in case you want to create your own google fonts loader 'font_display' => 'swap', 'admin_bar' => false, // Show the panel pages on the admin bar 'admin_bar_icon' => 'dashicons-admin-generic', // Choose an icon for the admin bar menu 'admin_bar_priority' => 50, // Choose an priority for the admin bar menu 'global_variable' => '', // Set a different name for your global variable other than the opt_name 'dev_mode' => true, // Show the time the page took to load, etc 'update_notice' => true, // If dev_mode is enabled, will notify developer of updated versions available in the GitHub Repo 'customizer' => true, // Enable basic customizer support //'open_expanded' => true, // Allow you to start the panel in an expanded way initially. //'disable_save_warn' => true, // Disable the save warning when a user changes a field 'show_options_object' => false, // OPTIONAL -> Give you extra features 'page_priority' => 80, // Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning. 'page_parent' => 'pxlart', // For a full list of options, visit: //codex.wordpress.org/Function_Reference/add_submenu_page#Parameters 'page_permissions' => 'manage_options', // Permissions needed to access the options panel. 'menu_icon' => '', // Specify a custom URL to an icon 'last_tab' => '', // Force your panel to always open to a specific tab (by id) 'page_icon' => 'icon-themes', // Icon displayed in the admin panel next to your menu_title 'page_slug' => 'pxlart-theme-options', // Page slug used to denote the panel, will be based off page title then menu title then opt_name if not provided 'save_defaults' => true, // On load save the defaults to DB before user clicks save or not 'default_show' => false, // If true, shows the default value next to each field that is not the default value. 'default_mark' => '', // What to print by the field's title if the value shown is default. Suggested: * 'show_import_export' => true, // Shows the Import/Export panel when not used as a field. // CAREFUL -> These options are for advanced use only 'transient_time' => 60 * MINUTE_IN_SECONDS, 'output' => true, // Global shut-off for dynamic CSS output by the framework. Will also disable google fonts output 'output_tag' => true, // Allows dynamic CSS to be generated for customizer and google fonts, but stops the dynamic CSS from going to the head // 'footer_credit' => '', // Disable the footer credit of Redux. Please leave if you can help it. // FUTURE -> Not in use yet, but reserved or partially implemented. Use at your own risk. 'database' => '', // possible: options, theme_mods, theme_mods_expanded, transient. Not fully functional, warning! 'use_cdn' => true, // If you prefer not to use the CDN for Select2, Ace Editor, and others, you may download the Redux Vendor Support plugin yourself and run locally or embed it in your code. // 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); /*-------------------------------------------------------------- # General --------------------------------------------------------------*/ Redux::setSection($opt_name, array( 'title' => esc_html__('General', 'plexify'), 'icon' => 'el el-icon-home', 'fields' => array( array( 'id' => 'favicon', 'type' => 'media', 'title' => esc_html__('Favicon', 'plexify'), 'default' => '' ), array( 'id' => 'site_loader', 'type' => 'select', 'title' => esc_html__('Site Loader', 'plexify'), 'options' => array( '0' => esc_html__('Off', 'plexify'), '1' => esc_html__('Upload Gif', 'plexify'), '2' => esc_html__('Style 2 Dots', 'plexify'), '3' => esc_html__('Style 2 Dots Rotate', 'plexify'), '4' => esc_html__('Style Dot', 'plexify'), ), 'default' => '0', ), array( 'id' => 'loading_img', 'type' => 'media', 'title' => esc_html__('Loading icon image ', 'plexify'), 'default' => array( 'url'=>'' ), 'required' => array( 'site_loader' , '=', '1' ) ), array( 'id' => 'page_overlay_bg_color', 'type' => 'color_rgba', 'title' => esc_html__('Page Overlay Background Color', 'plexify'), 'subtitle' => esc_html__('Background color when open hidden panel.', 'plexify'), 'output' => array('background-color' => '.pxl-page-overlay') ), array( 'id' => 'enable_awesome_pro', 'type' => 'button_set', 'title' => esc_html__('Enable Font Awesome Pro', 'plexify'), 'options' => [ '1' => esc_html__('Yes','plexify'), '0' => esc_html__('No','plexify'), ], 'default' => '0', ), array( 'id' => 'add_menu_location', 'type' => 'multi_text', 'title' => esc_html__('Add Extra Menu Location', 'plexify'), 'subtitle' => esc_html__('Default is primary location', 'plexify'), ), array( 'id' => 'enable_menu_icons', 'type' => 'button_set', 'title' => esc_html__('Enable Menu Icons', 'plexify'), 'subtitle' => esc_html__('Icon select will be show in menu item managerment', 'plexify'), 'options' => [ '1' => esc_html__('Yes','plexify'), '0' => esc_html__('No','plexify'), ], 'default' => '0' ), array( 'id' => 'gsap_animation_toggle_actions', 'type' => 'select', 'title' => esc_html__( 'Gsap Animation Toggle Actions', 'plexify' ), 'options' => array( 'play none none none' => 'play none none reverse', 'play reverse play reverse' => 'play reverse play reverse', 'play none none reverse' => 'play none none reverse', 'play none none reset' => 'play none none reset', ), 'default' => 'play none none none', ), array( 'id' => 'gsap_splittext_toggle_actions', 'type' => 'select', 'title' => esc_html__( 'Gsap Split Text Toggle Actions', 'plexify' ), 'options' => array( 'play none none none' => 'play none none reverse', 'play reverse play reverse' => 'play reverse play reverse', 'play none none reverse' => 'play none none reverse', 'play none none reset' => 'play none none reset', ), 'default' => 'play none none none', ), array( 'id' => 'smoothscroll', 'type' => 'switch', 'title' => esc_html__('Smooth Scroll', 'plexify'), 'default' => false ), array( 'id' => 'custom_cursor', 'type' => 'switch', 'title' => esc_html__('Custom Cursor', 'plexify'), 'subtitle' => esc_html__('Custom default cursor.', 'plexify'), 'default' => false ), array( 'id' => 'site_bg_color', 'type' => 'color_rgba', 'title' => esc_html__('Background Color', 'plexify'), 'subtitle' => esc_html__('Default Background Color Mode.', 'plexify'), 'output' => array('background-color' => 'body') ) ) )); /*-------------------------------------------------------------- # Colors --------------------------------------------------------------*/ Redux::setSection($opt_name, array( 'title' => esc_html__('Colors', 'plexify'), 'icon' => 'el el-icon-file-edit', 'fields' => array( array( 'id' => 'primary_color', 'type' => 'color', 'title' => esc_html__('Primary Color', 'plexify'), 'transparent' => false, 'default' => '#E3FF75' ), array( 'id' => 'second_color', 'type' => 'color', 'title' => esc_html__('Secondary Color', 'plexify'), 'transparent' => false, 'default' => '#505050' ), array( 'id' => 'third_color', 'type' => 'color', 'title' => esc_html__('Third Color', 'plexify'), 'transparent' => false, 'default' => '#666666' ), array( 'id' => 'link_color', 'type' => 'link_color', 'title' => esc_html__('Link Colors', 'plexify'), 'default' => array( 'regular' => '#191B1D', 'hover' => '#E3FF75', 'active' => '#E3FF75' ), 'output' => array('a') ), ) )); /*-------------------------------------------------------------- # Header --------------------------------------------------------------*/ Redux::setSection($opt_name, array( 'title' => esc_html__('Header', 'plexify'), 'icon' => 'el el-icon-website', 'fields' => array_merge( plexify_header_opts(), array( array( 'id' => 'sticky_header_direction', 'type' => 'button_set', 'title' => esc_html__('Sticky Direction Display', 'plexify'), 'options' => array( 'scroll-down' => esc_html__('Scroll Down', 'plexify'), 'scroll-up' => esc_html__('Scroll Up', 'plexify'), 'scroll' => esc_html__('Scroll', 'plexify'), ), 'default' => 'scroll-down' ), ) ) )); /*-------------------------------------------------------------- # Page Title area --------------------------------------------------------------*/ Redux::setSection($opt_name, array( 'title' => esc_html__('Page Title', 'plexify'), 'icon' => 'el el-icon-map-marker', 'fields' => array_merge( plexify_page_title_opts(), array( array( 'id' => 'pt_bg_parallax', 'title' => esc_html__('Parallax Background', 'plexify'), 'subtitle' => esc_html__('Scroll parallax effect', 'plexify'), 'type' => 'switch', 'default' => false, 'required' => array( 'pt_mode', '!=', 'none') ), array( 'id' => 'pt_parallax', 'type' => 'select', 'title' => esc_html__( 'Parallax Type', 'plexify' ), 'options' => [ '' => esc_html__( 'None', 'plexify' ), 'x' => esc_html__( 'Transform X', 'plexify' ), 'y' => esc_html__( 'Transform Y', 'plexify' ), 'z' => esc_html__( 'Transform Z', 'plexify' ), 'rotateX' => esc_html__( 'RotateX', 'plexify' ), 'rotateY' => esc_html__( 'RotateY', 'plexify' ), 'rotateZ' => esc_html__( 'RotateZ', 'plexify' ), 'scaleX' => esc_html__( 'ScaleX', 'plexify' ), 'scaleY' => esc_html__( 'ScaleY', 'plexify' ), 'scaleZ' => esc_html__( 'ScaleZ', 'plexify' ), 'scale' => esc_html__( 'Scale', 'plexify' ), ], 'default' => '', 'required' => array( 'pt_bg_parallax', '=', true ) ), array( 'id' => 'pt_parallax_value', 'title' => esc_html__('Parallax Value', 'plexify' ), 'type' => 'text', 'default' => '', 'required' => array( 'pt_parallax', '!=', '' ) ), array( 'id' => 'parallax_position', 'type' => 'spacing', 'output' => array('.pxl-page-title-bg'), 'mode' => 'absolute', 'units' => array('px'), 'units_extended' => 'false', 'title' => esc_html__('Parallax Position', 'plexify' ), 'default' => array( 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'units' => 'px', ), 'required' => array( 'pt_parallax', '!=', '' ) ) ) ) )); /*-------------------------------------------------------------- # Footer --------------------------------------------------------------*/ Redux::setSection($opt_name, array( 'title' => esc_html__('Footer', 'plexify'), 'icon' => 'el el-website', 'fields' => array_merge( plexify_footer_opts() ) )); /*-------------------------------------------------------------- # WordPress default content --------------------------------------------------------------*/ Redux::setSection($opt_name, array( 'title' => esc_html__('Content', 'plexify'), 'icon' => 'el el-icon-pencil', 'fields' => array( array( 'id' => 'content_bg_color', 'type' => 'color_rgba', 'title' => esc_html__('Background Color', 'plexify'), 'subtitle' => esc_html__('Content background color.', 'plexify'), 'output' => array('background-color' => '.pxl-main') ) ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Blog Archive', 'plexify'), 'subsection' => true, 'fields' => array_merge( array( array( 'id' => 'archive_custom_sub_title', 'type' => 'textarea', 'title' => esc_html__( 'Custom Sub title', 'plexify' ), 'subtitle' => esc_html__( 'Add short description for blog page title', 'plexify' ), 'required' => array( 'pt_mode', '!=', 'none' ) ), array( 'id' => 'blog_custom_archive_link', 'type' => 'select', 'title' => esc_html__('Custom Archive Link Page', 'plexify'), 'options' => plexify_list_post('page', false), 'default' => '0' ) ), plexify_sidebar_pos_opts([ 'prefix' => 'blog_']), array( /*array( 'id' => 'archive_date', 'title' => esc_html__('Date', 'plexify'), 'subtitle' => esc_html__('Display the Date for each blog post.', 'plexify'), 'type' => 'switch', 'default' => true, ),*/ array( 'id' => 'archive_author', 'title' => esc_html__('Author', 'plexify'), 'subtitle' => esc_html__('Display the Author for each blog post.', 'plexify'), 'type' => 'switch', 'default' => true, ), array( 'id' => 'archive_category', 'title' => esc_html__('Category', 'plexify'), 'subtitle' => esc_html__('Display the Category for each blog post.', 'plexify'), 'type' => 'switch', 'default' => false, ), array( 'id' => 'archive_tags', 'title' => esc_html__('Tags', 'plexify'), 'subtitle' => esc_html__('Display the Tag for blog post.', 'plexify'), 'type' => 'switch', 'default' => true ), array( 'id' => 'archive_comment_count', 'title' => esc_html__('Comment Count', 'plexify'), 'subtitle' => esc_html__('Display the Comment count for blog post.', 'plexify'), 'type' => 'switch', 'default' => true ), array( 'id' => 'archive_view_count', 'title' => esc_html__('View Count', 'plexify'), 'subtitle' => esc_html__('Display the view count for blog post.', 'plexify'), 'type' => 'switch', 'default' => false ), array( 'id' => 'archive_readmore', 'title' => esc_html__('Readmore Button', 'plexify'), 'subtitle' => esc_html__('Display the Readmore button for each blog post.', 'plexify'), 'type' => 'switch', 'default' => true, ), array( 'id' => 'archive_readmore_text', 'type' => 'text', 'title' => esc_html__('Read More Text', 'plexify'), 'default' => '', 'subtitle' => esc_html__('Default: Read more', 'plexify'), 'required' => array('archive_readmore', '=', true) ), array( 'id' => 'archive_sticky_mark', 'title' => esc_html__('Show Sticky Mark Icon', 'plexify'), 'subtitle' => esc_html__('Display icon mark for post sticky', 'plexify'), 'type' => 'switch', 'default' => true, ), ) ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Single Post', 'plexify'), 'subsection' => true, 'fields' => array_merge( array( array( 'id' => 'single_post_layout', 'type' => 'select', 'title' => esc_html__('Select Post Layout', 'plexify'), 'options' => array( 'layout-1' => esc_html__('Layout 1', 'plexify'), 'layout-2' => esc_html__('Layout 2', 'plexify'), 'layout-3' => esc_html__('Layout 3', 'plexify'), ), 'default' => 'layout-1' ), array( 'id' => 'post_pt_mode', 'type' => 'button_set', 'title' => esc_html__('Page title Mode', 'plexify'), 'options' => [ '-1' => esc_html__('Inherit', 'plexify'), 'df' => esc_html__('Default', 'plexify'), 'bd' => esc_html__('Builder', 'plexify'), 'none' => esc_html__('Disable', 'plexify') ], 'default' => 'df' ), array( 'id' => 'post_ptitle_layout', 'type' => 'select', 'title' => esc_html__('Page Title Layout', 'plexify'), 'subtitle' => esc_html__('Select a layout for page title.', 'plexify'), 'options' => plexify_get_templates_option('page-title',false), 'default' => '-1', 'required' => array( 'post_pt_mode', '=', 'bd' ) ), array( 'id' => 'custom_post_title', 'type' => 'text', 'title' => esc_html__( 'Custom Title', 'plexify' ), 'subtitle' => esc_html__( 'Custom heading text page title (case post title is not empty)', 'plexify' ), ), array( 'id' => 'custom_post_subtitle', 'type' => 'textarea', 'title' => esc_html__( 'Custom Single Sub Title', 'plexify' ), 'subtitle' => esc_html__( 'Custom subtitle text page title (case post title is not empty)', 'plexify' ), ), array( 'id' => 'post_breadcrumb', 'type' => 'button_set', 'title' => esc_html__('Breadcrumb', 'plexify'), 'options' => array( 'on' => esc_html__('On', 'plexify'), 'off' => esc_html__('Off', 'plexify') ), 'default' => 'off', ), array( 'id' => 'post_remove_breadcrumb_category', 'type' => 'button_set', 'title' => esc_html__('Remove Breadcrumb Category', 'plexify'), 'options' => array( 'yes' => esc_html__('Yes', 'plexify'), 'no' => esc_html__('No', 'plexify') ), 'default' => 'no', 'required' => ['post_breadcrumb', '=', 'on'] ), ), plexify_sidebar_pos_opts([ 'prefix' => 'post_']), array( array( 'id' => 'post_feature_image_on', 'title' => esc_html__('Show Post featured', 'plexify'), 'subtitle' => esc_html__('Display post featured for single post.', 'plexify'), 'type' => 'switch', 'default' => '1', 'required' => ['post_layout', '=', '1'] ), array( 'id' => 'post_feature_image_type', 'type' => 'button_set', 'title' => esc_html__('Feature Image Type', 'plexify'), 'subtitle' => esc_html__('Feature image Type on single post.', 'plexify'), 'options' => array( 'cropped' => esc_html__('Cropped Image', 'plexify'), 'full' => esc_html__('Full Image', 'plexify') ), 'default' => 'cropped', 'required' => ['post_feature_image_on', '=', '1'] ), array( 'id' => 'post_author_summary', 'title' => esc_html__('Author Summary', 'plexify'), 'subtitle' => esc_html__('Display on bottom of single post.', 'plexify'), 'type' => 'switch', 'default' => '0' ), array( 'id' => 'post_tag', 'title' => esc_html__('Tags', 'plexify'), 'subtitle' => esc_html__('Display the Tag for single post.', 'plexify'), 'type' => 'switch', 'default' => '1' ), array( 'id' => 'post_social_share', 'title' => esc_html__('Social Share', 'plexify'), 'subtitle' => esc_html__('Display the Social Share for single post.', 'plexify'), 'type' => 'switch', 'default' => '0', ), array( 'id' => 'post_social_share_icon', 'type' => 'button_set', 'title' => esc_html__('Select Social Share', 'plexify'), 'subtitle' => esc_html__('Show social share on single post.', 'plexify'), 'multi' => '1', 'options' => array( 'facebook' => esc_html__('Facebook', 'plexify'), 'twitter' => esc_html__('Twitter', 'plexify'), 'linkedin' => esc_html__('Linkedin', 'plexify'), 'pinterest' => esc_html__('Pinterest', 'plexify'), ), 'default' => array('facebook', 'twitter', 'linkedin', 'pinterest'), 'required' => ['post_social_share', 'equals', '1'] ), array( 'id' => 'post_navigation', 'title' => esc_html__('Navigation', 'plexify'), 'subtitle' => esc_html__('Display the Navigation for blog post.', 'plexify'), 'type' => 'switch', 'default' => '0', ), array( 'id' => 'post_comment', 'title' => esc_html__('Post Comments', 'plexify'), 'subtitle' => esc_html__('Display the Comment form for blog post.', 'plexify'), 'type' => 'switch', 'default' => '1', ), array( 'id' => 'post_related_on', 'title' => esc_html__('Related Post', 'plexify'), 'subtitle' => esc_html__('Display the related for blog post.', 'plexify'), 'type' => 'switch', 'default' => '1', ), array( 'id' => 'related_title', 'type' => 'text', 'title' => esc_html__('Relate Title', 'plexify'), 'default' => '', ), array( 'id' => 'related_subtitle', 'type' => 'text', 'title' => esc_html__('Relate Subtitle', 'plexify'), 'default' => '', ), array( 'id' => 'related_button_text', 'type' => 'text', 'title' => esc_html__('Relate Button Text', 'plexify'), 'default' => '', ), ) ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Services', 'plexify'), 'subsection' => true, 'fields' => array_merge( array( array( 'id' => 'services_slug', 'title' => esc_html__('Services Slug', 'plexify'), 'subtitle' => esc_html__('Enter services slug ', 'plexify'), 'type' => 'text', 'default' => '' ), array( 'id' => 'services_name', 'title' => esc_html__('Services Name', 'plexify'), 'subtitle' => esc_html__('Enter services name ', 'plexify'), 'type' => 'text', 'default' => '' ), array( 'id' => 'services_ptitle_bg', 'type' => 'background', 'title' => esc_html__('Page Title Background', 'plexify'), 'output' => array('.post-type-archive-services .pxl-pagetitle .pxl-page-title-bg, .single-services .pxl-pagetitle .pxl-page-title-bg'), ), array( 'id' => 'custom_service_title', 'type' => 'text', 'title' => esc_html__( 'Custom Single Title', 'plexify' ), 'subtitle' => esc_html__( 'Custom heading text page title', 'plexify' ) ), array( 'id' => 'custom_service_subtitle', 'type' => 'text', 'title' => esc_html__( 'Custom Single Sub Title', 'plexify' ), 'subtitle' => esc_html__( 'Custom subtitle text page title', 'plexify' ) ) ) ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('404 Page', 'plexify'), 'subsection' => true, 'fields' => array( array( 'id' => 'template_404', 'type' => 'select', 'title' => esc_html__('Select 404 Page Template', 'plexify'), 'desc' => sprintf(esc_html__('Please create your template before choosing. %sClick Here%s','plexify'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=page' ) ) . '">','</a>'), 'options' => plexify_list_post('page'), 'default' => '' ) ) )); /*-------------------------------------------------------------- # Woocommerce --------------------------------------------------------------*/ if(class_exists('Woocommerce')) { Redux::set_section( $opt_name, [ 'title' => esc_html__( 'Shop', 'plexify' ), 'icon' => 'el el-shopping-cart', ] ); Redux::setSection($opt_name, array( 'title' => esc_html__('General', 'plexify'), 'subsection' => true, 'fields' => array_merge( array( array( 'id' => 'shop_header_layout', 'type' => 'select', 'title' => esc_html__('Header Desktop Layout', 'plexify'), 'desc' => sprintf(esc_html__('Please create your layout before choosing. %sClick Here%s','plexify'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=pxl-template' ) ) . '">','</a>'), 'options' => plexify_get_templates_option('header',true), 'default' => '-1' ), array( 'id' => 'shop_header_mobile_layout', 'type' => 'select', 'title' => esc_html__('Header Mobile Layout', 'plexify'), 'desc' => sprintf(esc_html__('Please create your layout before choosing. %sClick Here%s','plexify'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=pxl-template' ) ) . '">','</a>'), 'options' => plexify_get_templates_option('header-mobile',true), 'default' => '-1', ), array( 'id' => 'shop_ptitle_layout', 'type' => 'select', 'title' => esc_html__('Page Title Layout', 'plexify'), 'subtitle' => esc_html__('Select a layout for page title.', 'plexify'), 'options' => plexify_get_templates_option('page-title',false), 'default' => 0 ), array( 'id' => 'shop_ptitle_bg', 'type' => 'background', 'title' => esc_html__('Page Title Background', 'plexify'), 'output' => array('.woocommerce-page .pxl-pagetitle .pxl-page-title-bg'), ), array( 'id' => 'product_image_cropped', 'title' => esc_html__('Image Cropped', 'plexify'), 'subtitle' => esc_html__('Crop image for thumbnail, single, gallery', 'plexify'), 'type' => 'switch', 'default' => '1', ), array( 'id' => 'shop_new_badges_days', 'type' => 'text', 'title' => esc_html__( 'Number of day for new badges', 'plexify' ), 'default' => '8' ), ) ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Archive Product', 'plexify'), 'subsection' => true, 'fields' => array_merge( plexify_sidebar_pos_opts([ 'prefix' => 'shop_']), array( array( 'id' => 'shop_custom_sub_title', 'type' => 'text', 'title' => esc_html__( 'Custom Sub title', 'plexify' ), 'subtitle' => esc_html__( 'Add short description for page title', 'plexify' ), ), array( 'id' => 'shop_builder_before', 'type' => 'select', 'title' => esc_html__('Shop builder before', 'plexify'), 'desc' => sprintf(esc_html__('Please create your layout with shop filter before choosing. %sClick Here%s','plexify'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=pxl-template' ) ) . '">','</a>'), 'options' => plexify_get_templates_option('shop'), ), array( 'id' => 'shop_builder_after', 'type' => 'select', 'title' => esc_html__('Shop builder after', 'plexify'), 'desc' => sprintf(esc_html__('Please create your layout with shop filter before choosing. %sClick Here%s','plexify'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=pxl-template' ) ) . '">','</a>'), 'options' => plexify_get_templates_option('shop'), ), array( 'id' => 'shop_resetall_sidebar', 'type' => 'button_set', 'title' => esc_html__('Display Reset All', 'plexify'), 'options' => array( 'off' => esc_html__('Off', 'plexify'), 'ontop' => esc_html__('On Top', 'plexify'), 'onbottom' => esc_html__('On Bottom', 'plexify'), ), 'default' => 'onbottom', 'class' => 'field-child', ), array( 'id' => 'shop_active_filter', 'type' => 'button_set', 'title' => esc_html__('Display Active Filter Remove Link', 'plexify'), 'options' => array( 'off' => esc_html__('Off', 'plexify'), 'on' => esc_html__('On', 'plexify'), ), 'default' => 'on' ), ), array( array( 'id' => 'shop_layout_label_info', 'type' => 'info', 'title' => esc_html__('Layout', 'plexify'), ), array( 'id' => 'shop_archive_product_per_page', 'title' => esc_html__( 'Products displayed per page', 'plexify' ), 'description' => esc_html__( 'Number products display on shop archive page', 'plexify' ), 'type' => 'slider', 'default' => 12, 'min' => 1, 'max' => 100, 'step' => 1, 'display_value' => 'text', ), array( 'title' => esc_html__('Grid Column XXL Devices >= 1400px', 'plexify'), 'id' => 'products_col_xxl', 'type' => 'slider', 'default' => 3, 'min' => 1, 'step' => 1, 'max' => 6, 'display_value' => 'text' ), array( 'title' => esc_html__('Grid Column XL Devices (1200px - 1399px)', 'plexify'), 'id' => 'products_col_xl', 'type' => 'slider', 'default' => 3, 'min' => 1, 'step' => 1, 'max' => 6, 'display_value' => 'text' ), array( 'title' => esc_html__('Grid Column LG Devices (992px - 1199px)', 'plexify'), 'id' => 'products_col_lg', 'type' => 'slider', 'default' => 2, 'min' => 1, 'step' => 1, 'max' => 4, 'display_value' => 'text' ), array( 'title' => esc_html__('Grid Column MD Devices (768px - 991px)', 'plexify'), 'id' => 'products_col_md', 'type' => 'slider', 'default' => 2, 'min' => 1, 'step' => 1, 'max' => 4, 'display_value' => 'text' ), array( 'title' => esc_html__('Grid Column SM Devices (576px - 767px)', 'plexify'), 'id' => 'products_col_sm', 'type' => 'slider', 'default' => 2, 'min' => 1, 'step' => 1, 'max' => 3, 'display_value' => 'text' ), array( 'title' => esc_html__('Grid Column XS Devices (480px - 575px)', 'plexify'), 'id' => 'products_col_xs', 'type' => 'slider', 'default' => 2, 'min' => 1, 'step' => 1, 'max' => 2, 'display_value' => 'text' ), array( 'id' => 'shop_grid_list_view', 'type' => 'button_set', 'title' => esc_html__( 'View as Grid / List', 'plexify' ), 'options' => array( 'grid-view' => esc_html__( 'Grid', 'plexify' ), 'list-view' => esc_html__( 'List', 'plexify' ), ), 'default' => 'grid-view', ), ), ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Single Product', 'plexify'), 'subsection' => true, 'fields' => array_merge( array( array( 'id' => 'custom_product_title', 'type' => 'text', 'title' => esc_html__( 'Custom Title', 'plexify' ), 'subtitle' => esc_html__( 'Custom heading text page title', 'plexify' ) ), array( 'id' => 'custom_product_subtitle', 'type' => 'text', 'title' => esc_html__( 'Custom Single Sub Title', 'plexify' ), 'subtitle' => esc_html__( 'Custom subtitle text page title', 'plexify' ) ), array( 'id' => 'product_zoom_img_hover', 'type' => 'button_set', 'title' => esc_html__('Zoom Image Hover', 'plexify'), 'options' => array( 'off' => esc_html__( 'Off', 'plexify' ), 'on' => esc_html__( 'On', 'plexify' ), ), 'default' => 'on', ), array( 'id' => 'product_people_viewing', 'type' => 'button_set', 'title' => esc_html__('Number People Viewing', 'plexify'), 'options' => array( 'off' => esc_html__( 'Off', 'plexify' ), 'on' => esc_html__( 'On', 'plexify' ), ), 'default' => 'off', ), array( 'id' => 'product_custom_extra', 'type' => 'repeater', 'group_values' => true, 'title' => esc_html__('Custom Extra content', 'plexify'), 'fields' => array( array( 'id' => 'product_extra_content_item', 'type' => 'editor', 'title' => esc_html__( 'Extra Content Item', 'plexify'), 'args' => array( 'teeny' => true, 'textarea_rows' => 5 ) ), ) ), array( 'id' => 'product_social_share_on', 'type' => 'button_set', 'title' => esc_html__('Social Share', 'plexify'), 'subtitle' => esc_html__('Show social share on single product.', 'plexify'), 'options' => array( '0' => esc_html__('Off', 'plexify'), '1' => esc_html__('On', 'plexify') ), 'default' => '0', ), array( 'id' => 'product_social_share_icon', 'type' => 'button_set', 'title' => esc_html__('Select Social Share', 'plexify'), 'subtitle' => esc_html__('Show social share on single product.', 'plexify'), 'multi' => true, 'options' => array( 'twitter' => esc_html__('Twitter', 'plexify'), 'facebook' => esc_html__('Facebook', 'plexify'), 'linkedin' => esc_html__('Linkedin', 'plexify'), 'pinterest' => esc_html__('Pinterest', 'plexify'), ), 'default' => array( 'twitter', 'facebook', 'linkedin', 'pinterest'), 'required' => ['product_social_share_on','equals','1'] ), array( 'id' => 'product_social_share_site_on', 'type' => 'button_set', 'title' => esc_html__('Social Site Share', 'plexify'), 'subtitle' => esc_html__('Show social share on Website', 'plexify'), 'options' => array( '0' => esc_html__('Off', 'plexify'), '1' => esc_html__('On', 'plexify') ), 'default' => '0', ), array( 'id' => 'product_social_share_site_icon', 'type' => 'button_set', 'title' => esc_html__('Select Social Share', 'plexify'), 'subtitle' => esc_html__('Show social share on Website', 'plexify'), 'multi' => true, 'options' => array( 'twitter' => esc_html__('Twitter', 'plexify'), 'facebook' => esc_html__('Facebook', 'plexify'), 'linkedin' => esc_html__('Linkedin', 'plexify'), 'pinterest' => esc_html__('Pinterest', 'plexify'), ), 'default' => array( 'twitter', 'facebook', 'linkedin', 'pinterest'), 'required' => ['product_social_share_site_on','equals','1'] ), array( 'id' => 'product_upsell_on', 'type' => 'button_set', 'title' => esc_html__('Product Upsell', 'plexify'), 'subtitle' => esc_html__('Show/Hide Upsell product.', 'plexify'), 'options' => array( '0' => esc_html__('Off', 'plexify'), '1' => esc_html__('On', 'plexify') ), 'default' => '0', ), array( 'id' => 'product_related_on', 'type' => 'button_set', 'title' => esc_html__('Product Related', 'plexify'), 'subtitle' => esc_html__('Show/Hide related product.', 'plexify'), 'options' => array( '0' => esc_html__('Off', 'plexify'), '1' => esc_html__('On', 'plexify') ), 'default' => '0', ), array( 'id' => 'shop_archive_hover_image', 'type' => 'button_set', 'title' => esc_html__( 'Product Related Hover Image', 'plexify' ), 'options' => array( '0' => esc_html__( 'No', 'plexify' ), '1' => esc_html__( 'Gallery First Image', 'plexify' ), ), 'default' => '0', ), ) ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Cart Page', 'plexify'), 'subsection' => true, 'fields' => array_merge( array( array( 'id' => 'cart_cross_sell', 'type' => 'button_set', 'title' => esc_html__('Cross Sells', 'plexify'), 'subtitle' => esc_html__('Show/Hide Cross Sells product', 'plexify'), 'options' => array( 'off' => esc_html__('Off', 'plexify'), 'on' => esc_html__('On', 'plexify'), ), 'default' => 'off', ), array( 'id' => 'bank_title', 'type' => 'text', 'title' => esc_html__( 'Title Bank', 'plexify' ), 'default' => esc_html__( 'Bank Offer 10% Cashback', 'plexify' ), 'subtitle' => esc_html__( 'Bank Offer Cashback', 'plexify' ) ), array( 'id' => 'show_shipping', 'type' => 'switch', 'title' => esc_html__('Shop Shipping', 'plexify'), 'default' => true, 'options' => array( 'off' => esc_html__('Off', 'plexify'), 'on' => esc_html__('On', 'plexify'), ), ), array( 'id' => 'show_enjoy_product', 'type' => 'switch', 'title' => esc_html__('Shop Box Custom', 'plexify'), 'default' => true, 'options' => array( 'off' => esc_html__('Off', 'plexify'), 'on' => esc_html__('On', 'plexify'), ), ), array( 'id' => 'des_box_custom', 'type' => 'text', 'title' => esc_html__( 'Box Custom Description ', 'plexify' ), 'default' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting', 'plexify' ), 'required' => array( 'show_enjoy_product', '=', true ), ), ) ) )); } //* Input Redux::setSection($opt_name, array( 'title' => esc_html__('Global Input', 'plexify'), 'icon' => 'el el-italic', 'fields' => array( array( 'id' => 'input_padding', 'type' => 'spacing', 'title' => esc_html__('Text Box Padding', 'plexify'), 'desc' => esc_html__('Default: Right - 0px, Left - 0px', 'plexify'), 'left' => true, 'right' => true, 'top' => false, 'bottom' => false, 'mode' => 'padding', 'units' => array('px'), 'units_extended' => false, 'default' => array( 'left' => '0px', 'right' => '0px', ), 'output' => array('input[type="text"], input[type="password"], input[type="email"], input[type="phone"], input[type="time"], input[type="date"], input[type="tel"], input[type="datetime-local"], textarea, select'), ), array( 'id' => 'input_bg_color', 'type' => 'color', 'title' => esc_html__('Text Box Background Color', 'plexify'), 'transparent' => false, 'output' => array('background-color' => 'input[type="text"], input[type="password"], input[type="email"], input[type="phone"], input[type="time"], input[type="date"], input[type="tel"], input[type="datetime-local"], textarea, select'), ), array( 'id' => 'input_bg_hover', 'type' => 'color', 'title' => esc_html__('Text Box Background Color (Hover)', 'plexify'), 'transparent' => false, 'output' => array('background-color' => 'input[type="text"]:hover, input[type="password"]:hover, input[type="email"]:hover, input[type="phone"]:hover, input[type="time"]:hover, input[type="date"]:hover, input[type="tel"]:hover, input[type="datetime-local"]:hover, textarea:hover, select:hover,input[type="text"]:active, input[type="password"]:active, input[type="email"]:active, input[type="phone"]:active, input[type="time"]:active, input[type="date"]:active, input[type="tel"]:active, input[type="datetime-local"]:active, textarea:active, select:active, input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="phone"]:focus, input[type="time"]:focus, input[type="date"]:focus, input[type="tel"]:focus, input[type="datetime-local"]:focus, textarea:focus, select:focus'), ), array( 'id' => 'input_border_px', 'type' => 'border', 'output' => array('input[type="text"], input[type="password"], input[type="email"], input[type="phone"], input[type="time"], input[type="date"], input[type="tel"], input[type="datetime-local"], textarea, select'), 'title' => esc_html__('Input Border', 'plexify'), 'desc' => esc_html__('Default: solid 1px', 'plexify'), 'all' => false, 'top' => true, 'right' => true, 'bottom' => true, 'left' => true, 'style' => true, 'color' => true, 'default' => array( 'border-top' => '', 'border-right' => '', 'border-bottom' => '', 'border-left' => '', 'border-style' => '', 'border-color' => '', ), ), array( 'id' => 'input_border_hover', 'type' => 'color', 'title' => esc_html__('Text Box Border Hover', 'plexify'), 'transparent' => false, 'output' => array('border-color' => 'input[type="text"]:hover, input[type="password"]:hover, input[type="email"]:hover, input[type="phone"]:hover, input[type="time"]:hover, input[type="date"]:hover, input[type="tel"]:hover, input[type="datetime-local"]:hover, textarea:hover, select:hover,input[type="text"]:active, input[type="password"]:active, input[type="email"]:active, input[type="phone"]:active, input[type="time"]:active, input[type="date"]:active, input[type="tel"]:active, input[type="datetime-local"]:active, textarea:active, select:active, input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="phone"]:focus, input[type="time"]:focus, input[type="date"]:focus, input[type="tel"]:focus, input[type="datetime-local"]:focus, textarea:focus, select:focus'), ), array( 'id' => 'input_height', 'type' => 'dimensions', 'title' => esc_html__('Text Box Height', 'plexify'), 'width' => false, 'height' => true, 'units' => array('px'), 'default' => array( 'height' => '50px', ), 'output' => array('input[type="text"], input[type="password"], input[type="email"], input[type="phone"], input[type="time"], input[type="date"], input[type="tel"], input[type="datetime-local"], select'), ), array( 'id' => 'input_border_radius', 'type' => 'slider', 'title' => esc_html__('Border Radius', 'plexify'), 'min' => 0, 'max' => 100, 'step' => 1, 'default' => 0, 'output' => array('input[type="text"], input[type="password"], input[type="email"], input[type="phone"], input[type="time"], input[type="date"], input[type="tel"], input[type="datetime-local"],textarea, select' => 'border-radius'), ), array( 'id' => 'font_input', 'type' => 'typography', 'title' => esc_html__('Text Box Typography', 'plexify'), 'google' => true, 'line-height' => true, 'font-size' => true, 'text-align' => false, 'letter-spacing' => true, 'units' => 'px', 'weights' => array( '400' => 'Normal 400', '500' => 'Medium 500', '700' => 'Bold 700', '400italic' => 'Normal 400 Italic', '500italic' => 'Medium 500 Italic', '700italic' => 'Bold 700 Italic', ), 'output' => array('input[type="text"], input[type="password"], input[type="email"], input[type="phone"], input[type="time"], input[type="date"], input[type="tel"], input[type="datetime-local"],textarea, select, input[type="text"]::placeholder, input[type="password"]::placeholder, input[type="email"]::placeholder, input[type="phone"]::placeholder, input[type="time"]::placeholder, input[type="date"]::placeholder, input[type="tel"]::placeholder, input[type="datetime-local"]::placeholder,textarea::placeholder, select::placeholder'), ), array( 'id' => 'text_color_hover', 'type' => 'color', 'title' => esc_html__('Text Color Hover', 'plexify'), 'transparent' => false, 'default' => '', 'output' => array('color' => 'input[type="text"]:hover, input[type="password"]:hover, input[type="email"]:hover, input[type="phone"]:hover, input[type="time"]:hover, input[type="date"]:hover, input[type="tel"]:hover, input[type="datetime-local"]:hover, textarea:hover, select:hover,input[type="text"]:active, input[type="password"]:active, input[type="email"]:active, input[type="phone"]:active, input[type="time"]:active, input[type="date"]:active, input[type="tel"]:active, input[type="datetime-local"]:active, textarea:active, select:active, input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="phone"]:focus, input[type="time"]:focus, input[type="date"]:focus, input[type="tel"]:focus, input[type="datetime-local"]:focus, textarea:focus, select:focus'), ), ), )); /*-------------------------------------------------------------- # Typography --------------------------------------------------------------*/ Redux::setSection($opt_name, array( 'title' => esc_html__('Typography', 'plexify'), 'icon' => 'el el-icon-text-width', 'fields' => array( array( 'id' => 'font_body', 'type' => 'typography', 'title' => esc_html__('Body', 'plexify'), 'google' => true, 'line-height' => true, 'font-size' => true, 'text-align' => false, 'letter-spacing' => true, 'units' => 'px', ), array( 'id' => 'font_heading', 'type' => 'typography', 'title' => esc_html__('Heading', 'plexify'), 'google' => true, 'line-height' => true, 'font-size' => false, 'text-align' => false, 'letter-spacing' => true, 'text-transform' => true, 'units' => 'em', ), array( 'id' => 'font_h1', 'type' => 'text', 'title' => esc_html__('H1 Font Size', 'plexify'), 'default' => '', 'placeholder' => '70px' ), array( 'id' => 'font_h2', 'type' => 'text', 'title' => esc_html__('H2 Font Size', 'plexify'), 'default' => '', 'placeholder' => '48px' ), array( 'id' => 'font_h3', 'type' => 'text', 'title' => esc_html__('H3 Font Size', 'plexify'), 'default' => '', 'placeholder' => '36px' ), array( 'id' => 'font_h4', 'type' => 'text', 'title' => esc_html__('H4 Font Size', 'plexify'), 'default' => '', 'placeholder' => '24px' ), array( 'id' => 'font_h5', 'type' => 'text', 'title' => esc_html__('H5 Font Size', 'plexify'), 'default' => '', 'placeholder' => '18px' ), array( 'id' => 'font_h6', 'type' => 'text', 'title' => esc_html__('H6 Font Size', 'plexify'), 'default' => '', 'placeholder' => '16px' ), ) ));
Submit
FILE
FOLDER
Name
Size
Permission
Action
option-functions.php
17583 bytes
0644
page-options.php
18292 bytes
0644
theme-options.php
62997 bytes
0644
N4ST4R_ID | Naxtarrr