Submit
Path:
~
/
/
home
/
getwphos
/
public_html
/
techniquetechs
/
wp-content
/
themes
/
plexify
/
inc
/
theme-options
/
File Content:
page-options.php
<?php add_action( 'pxl_post_metabox_register', 'plexify_page_options_register' ); function plexify_page_options_register( $metabox ) { $panels = [ 'post' => [ //post_type 'opt_name' => 'post_option', 'display_name' => esc_html__( 'Post Settings', 'plexify' ), 'show_options_object' => false, 'context' => 'advanced', 'priority' => 'default', 'sections' => [ 'header' => [ 'title' => esc_html__( 'Header', 'plexify' ), 'icon' => 'el-icon-website', 'fields' => array_merge( array( array( 'id' => 'disable_header', 'title' => esc_html__('Disable', 'plexify'), 'type' => 'switch', 'default' => '0', ), ), plexify_header_opts([ 'default' => true, 'default_value' => '-1' ]), array( array( 'id' => 'menu_location_desktop', 'type' => 'select', 'title' => esc_html__( 'Menu Location Desktop', 'plexify' ), 'options' => plexify_get_nav_menu_locations(), 'default' => '-1', ), array( 'id' => 'menu_location_mobile', 'type' => 'select', 'title' => esc_html__( 'Menu Location Mobile', 'plexify' ), 'options' => plexify_get_nav_menu_locations(), 'default' => '-1', ) ) ) ], 'post_title_setting' => [ 'title' => esc_html__( 'Post Title Settings', 'plexify' ), 'icon' => 'el el-indent-left', 'fields' => array_merge( plexify_page_title_opts([ 'default' => true, 'default_value' => '-1' ]), array( array( 'id' => 'dark_light_option', 'type' => 'button_set', 'title' => esc_html__('Dark Light Mode', 'plexify'), 'options' => [ '' => esc_html__('Light Mode', 'plexify'), 'dark-mode' => esc_html__('Dark Mode', 'plexify'), ], 'default' => '', ), ), ) ], 'footer' => [ 'title' => esc_html__( 'Footer', 'plexify' ), 'icon' => 'el el-website', 'fields' => array_merge( plexify_footer_opts([ 'default' => true, 'default_value' => '-1' ]) ) ], ] ], 'page' => [ //post_type 'opt_name' => 'pxl_page_options', 'display_name' => esc_html__( 'Page Settings', 'plexify' ), 'show_options_object' => false, 'context' => 'advanced', 'priority' => 'default', 'sections' => [ 'header' => [ 'title' => esc_html__( 'Header', 'plexify' ), 'icon' => 'el-icon-website', 'fields' => array_merge( array( array( 'id' => 'disable_header', 'title' => esc_html__('Disable', 'plexify'), 'type' => 'switch', 'default' => '0', ), ), plexify_header_opts([ 'default' => true, 'default_value' => '-1' ]), array( array( 'id' => 'menu_location_desktop', 'type' => 'select', 'title' => esc_html__( 'Menu Location Desktop', 'plexify' ), 'options' => plexify_get_nav_menu_locations(), 'default' => '-1', ), array( 'id' => 'menu_location_mobile', 'type' => 'select', 'title' => esc_html__( 'Menu Location Mobile', 'plexify' ), 'options' => plexify_get_nav_menu_locations(), 'default' => '-1', ) ) ) ], 'page_title' => [ 'title' => esc_html__( 'Page Title', 'plexify' ), 'icon' => 'el el-indent-left', 'fields' => array_merge( plexify_page_title_opts([ 'default' => true, 'default_value' => '-1' ]) ) ], 'content' => [ 'title' => esc_html__( 'Content', 'plexify' ), 'icon' => 'el-icon-pencil', 'fields' => array( array( 'id' => 'content_bb_color', 'type' => 'color', 'title' => esc_html__('Background Color', 'plexify'), 'transparent' => false, 'default' => '' ), array( 'id' => 'dark_light_option', 'type' => 'button_set', 'title' => esc_html__('Dark Light Mode', 'plexify'), 'options' => [ '' => esc_html__('Light Mode', 'plexify'), 'dark-mode' => esc_html__('Dark Mode', 'plexify'), ], 'default' => '', ), ) ], 'footer' => [ 'title' => esc_html__( 'Footer', 'plexify' ), 'icon' => 'el el-website', 'fields' => array_merge( plexify_footer_opts([ 'default' => true, 'default_value' => '-1' ]) ) ], 'colors' => [ 'title' => esc_html__( 'Colors', 'plexify' ), 'icon' => 'el el-website', 'fields' => array( array( 'id' => 'primary_color', 'type' => 'color', 'title' => esc_html__('Primary Color', 'plexify'), 'transparent' => false, 'default' => '' ), array( 'id' => 'second_color', 'type' => 'color', 'title' => esc_html__('Secondary Color', 'plexify'), 'transparent' => false, 'default' => '' ), array( 'id' => 'heading_color', 'type' => 'color', 'title' => esc_html__('Heading Color', 'plexify'), 'transparent' => false, 'default' => '' ), array( 'id' => 'link_color', 'type' => 'link_color', 'title' => esc_html__('Link Colors', 'plexify'), 'default' => array( 'regular' => '', 'hover' => '', 'active' => '' ), 'output' => array('a') ), ) ], ] ], 'services' => [ //post_type 'opt_name' => 'services_option', 'display_name' => esc_html__( 'Settings', 'plexify' ), 'show_options_object' => false, 'context' => 'advanced', 'priority' => 'default', 'sections' => [ 'header' => [ 'title' => esc_html__( 'Header', 'plexify' ), 'icon' => 'el-icon-website', 'fields' => array_merge( array( array( 'id' => 'disable_header', 'title' => esc_html__('Disable', 'plexify'), 'type' => 'switch', 'default' => '0', ), ), plexify_header_opts([ 'default' => true, 'default_value' => '-1' ]), array( array( 'id' => 'menu_location_desktop', 'type' => 'select', 'title' => esc_html__( 'Menu Location Desktop', 'plexify' ), 'options' => plexify_get_nav_menu_locations(), 'default' => '-1', ), array( 'id' => 'menu_location_mobile', 'type' => 'select', 'title' => esc_html__( 'Menu Location Mobile', 'plexify' ), 'options' => plexify_get_nav_menu_locations(), 'default' => '-1', ) ) ) ], 'service_page_title_setting' => [ 'title' => esc_html__( 'Page Title', 'plexify' ), 'icon' => 'el el-indent-left', 'fields' => array_merge( plexify_page_title_opts([ 'default' => true, 'default_value' => '-1', 'output_prefix' => 'body.single-services' ]) ) ], 'services_settings' => [ 'title' => esc_html__( 'Settings', 'plexify' ), 'icon' => 'el-icon-website', 'fields' => array( array( 'id' => 'service_icon', 'type' => 'media', 'title' => esc_html__( 'Icon', 'plexify' ), 'subtitle' => esc_html__( 'Upload images or svg icon', 'plexify' ) ), array( 'id' => 'dark_light_option', 'type' => 'button_set', 'title' => esc_html__('Dark Light Mode', 'plexify'), 'options' => [ '' => esc_html__('Light Mode', 'plexify'), 'dark-mode' => esc_html__('Dark Mode', 'plexify'), ], 'default' => '', ), ) ], 'footer' => [ 'title' => esc_html__( 'Footer', 'plexify' ), 'icon' => 'el el-website', 'fields' => array_merge( plexify_footer_opts([ 'default' => true, 'default_value' => '-1' ]) ) ], ] ], 'product' => [ //post_type 'opt_name' => 'product_option', 'display_name' => esc_html__( 'Product Settings', 'plexify' ), 'show_options_object' => false, 'context' => 'advanced', 'priority' => 'default', 'sections' => [ 'product_settings' => [ 'title' => esc_html__( 'General Settings', 'plexify' ), 'icon' => 'el-icon-website', 'fields' => array_merge( array( array( 'id' => 'product_layout', 'type' => 'select', 'title' => esc_html__('Select Product Layout', 'plexify'), 'options' => [ 'df' => esc_html__('Layout 1', 'plexify'), 'style-2' => esc_html__('Layout 2', 'plexify'), 'style-3' => esc_html__('Layout 3', 'plexify'), ], 'default' => 'df', ), array( 'id' => 'text_shipping', 'type' => 'text', 'title' => esc_html__('Shipping Text', 'plexify'), 'default' => esc_html__('FREE Shipping', 'plexify'), ), array( 'id' => 'text_returns', 'type' => 'text', 'title' => esc_html__('Returns Text', 'plexify'), 'default' => esc_html__('Easy Returns 30 Days', 'plexify'), ), ), ) ], 'header' => [ 'title' => esc_html__( 'Header', 'plexify' ), 'icon' => 'el-icon-website', 'fields' => array_merge( array( array( 'id' => 'disable_header', 'title' => esc_html__('Disable', 'plexify'), 'type' => 'switch', 'default' => '0', ), ), plexify_header_opts([ 'default' => true, 'default_value' => '-1' ]), array( array( 'id' => 'menu_location_desktop', 'type' => 'select', 'title' => esc_html__( 'Menu Location Desktop', 'plexify' ), 'options' => plexify_get_nav_menu_locations(), 'default' => '-1', ), array( 'id' => 'menu_location_mobile', 'type' => 'select', 'title' => esc_html__( 'Menu Location Mobile', 'plexify' ), 'options' => plexify_get_nav_menu_locations(), 'default' => '-1', ) ) ) ], 'product_title_setting' => [ 'title' => esc_html__( 'Page Title Settings', 'plexify' ), 'icon' => 'el el-indent-left', 'fields' => array_merge( plexify_page_title_opts([ 'default' => true, 'default_value' => '-1', 'output_prefix' => 'body.single-product' ]) ) ], 'footer' => [ 'title' => esc_html__( 'Footer', 'plexify' ), 'icon' => 'el el-website', 'fields' => array_merge( plexify_footer_opts([ 'default' => true, 'default_value' => '-1' ]) ) ], ] ], 'pxl-template' => [ //post_type 'opt_name' => 'pxl_template_options', 'display_name' => esc_html__( 'Template Settings', 'plexify' ), 'show_options_object' => false, 'context' => 'advanced', 'priority' => 'default', 'sections' => [ 'general' => [ 'title' => esc_html__( 'General', 'plexify' ), 'icon' => 'el-icon-website', 'fields' => array( array( 'id' => 'template_type', 'type' => 'select', 'title' => esc_html__('Type', 'plexify'), 'options' => [ 'df' => esc_html__('Select Type', 'plexify'), 'header' => esc_html__('Header', 'plexify'), 'header-mobile' => esc_html__('Header Mobile', 'plexify'), 'footer' => esc_html__('Footer', 'plexify'), 'mega-menu' => esc_html__('Mega Menu', 'plexify'), 'page-title' => esc_html__('Page Title', 'plexify'), 'hidden-panel' => esc_html__('Hidden Panel', 'plexify'), 'tab' => esc_html__('Tab', 'plexify'), // 'shop' => esc_html__('Shop', 'plexify'), ], 'default' => 'df', ), array( 'id' => 'template_position', 'type' => 'select', 'title' => esc_html__('Display Position', 'plexify'), 'options' => [ 'left' => esc_html__('Left Position', 'plexify'), 'top' => esc_html__('Top Position', 'plexify'), 'center' => esc_html__('Center Position (popup)', 'plexify'), 'right' => esc_html__('Right Position', 'plexify'), 'full' => esc_html__('Full Screen', 'plexify'), 'custom' => esc_html__('Custom Offset', 'plexify'), ], 'default' => 'left', 'required' => [ 'template_type', '=', 'hidden-panel'] ), array( 'id' => 'template_custom_style', 'type' => 'select', 'title' => esc_html__('Custom Style', 'plexify'), 'options' => [ '' => esc_html__('None', 'plexify'), 'pxl-side-mobile' => esc_html__('Mobile Menu', 'plexify'), 'pxl-canvas-menu' => esc_html__('Canvas Menu', 'plexify'), 'pxl-hidden-sidebar' => esc_html__('Hidden Sidebar', 'plexify'), ], 'default' => '', 'required' => [ 'template_type', '=', 'hidden-panel'] ), array( 'id' => 'mega_menu_max_width', 'title' => esc_html__( 'Mega Menu Max Width (px)', 'plexify' ), 'type' => 'slider', 'default' => 0, 'min' => 0, 'max' => 2560, 'step' => 1, 'display_value' => 'text', 'required' => [ 'template_type', '=', 'mega-menu'] ), array( 'id' => 'custom_offset', 'type' => 'spacing', 'mode' => 'absolute', 'units' => array('px', 'em', '%', 'vw'), 'units_extended' => 'true', 'title' => esc_html__( 'Custom Offset', 'plexify' ), 'desc' => esc_html__('You can enable or disable any piece of this field. Top, Right, Bottom, Left, or Units.', 'plexify'), 'default' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', 'units' => 'px', ), 'required' => [ 'template_position', '=', 'custom'] ), array( 'id' => 'custom_offset_mobile', 'type' => 'spacing', 'mode' => 'absolute', 'units' => array('px', 'em', '%', 'vw'), 'units_extended' => 'true', 'title' => esc_html__( 'Custom Offset Mobile', 'plexify' ), 'desc' => esc_html__('You can enable or disable any piece of this field. Top, Right, Bottom, Left, or Units.', 'plexify'), 'default' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', 'units' => 'px', ), 'required' => [ 'template_position', '=', 'custom'] ), array( 'id' => 'template_bg_color', 'type' => 'color_rgba', 'title' => esc_html__('Background Color', 'plexify'), 'required' => [ 'template_type', '=', 'hidden-panel'] ), ), ], ] ], ]; $metabox->add_meta_data( $panels ); }
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