📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 10:31:06
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
inc
/
theme-options
✏️
Editing: page-options.php
<?php add_action( 'pxl_post_metabox_register', 'berich_page_options_register' ); function berich_page_options_register( $metabox ) { $panels = [ 'post' => [ 'opt_name' => 'post_option', 'display_name' => esc_html__( 'Post Options', 'berich' ), 'show_options_object' => false, 'context' => 'advanced', 'priority' => 'default', 'sections' => [ 'post_settings' => [ 'title' => esc_html__( 'Post Options', 'berich' ), 'icon' => 'el el-cog', 'fields' => array_merge( berich_sidebar_pos_opts(['prefix' => 'post_', 'default' => true, 'default_value' => '-1']), array( array( 'id'=> 'post_video_link', 'type' => 'text', 'title' => esc_html__('Video Link', 'berich'), 'validate' => 'url', 'default' => '', ), array( 'id' => 'content_spacing', 'type' => 'spacing', 'output' => array( '#pxl-wapper #pxl-main' ), 'right' => false, 'left' => false, 'mode' => 'padding', 'units' => array( 'px' ), 'units_extended' => 'false', 'title' => esc_html__( 'Spacing Top/Bottom', 'berich' ), 'default' => array( 'padding-top' => '', 'padding-bottom' => '', 'units' => 'px', ) ), ) ) ] ] ], 'page' => [ 'opt_name' => 'pxl_page_options', 'display_name' => esc_html__( 'Page Options', 'berich' ), 'show_options_object' => false, 'context' => 'advanced', 'priority' => 'default', 'sections' => [ 'header' => [ 'title' => esc_html__( 'Header', 'berich' ), 'icon' => 'el-icon-website', 'fields' => array_merge( berich_header_opts([ 'default' => true, 'default_value' => '-1' ]), berich_header_mobile_opts([ 'default' => true, 'default_value' => '-1' ]), array( array( 'id' => 'header_display', 'type' => 'button_set', 'title' => esc_html__('Header Display', 'berich'), 'options' => array( 'show' => esc_html__('Show', 'berich'), 'hide' => esc_html__('Hide', 'berich'), ), 'default' => 'show', ), array( 'id' => 'page_mobile_style', 'type' => 'button_set', 'title' => esc_html__('Mobile Style', 'berich'), 'options' => array( 'inherit' => esc_html__('Inherit', 'berich'), 'light' => esc_html__('Light', 'berich'), 'dark' => esc_html__('Dark', 'berich'), ), 'default' => 'inherit', ), array( 'id' => 'logo_m', 'type' => 'media', 'title' => esc_html__('Mobile Logo', 'berich'), 'default' => '', 'url' => false, ), array( 'id' => 'p_menu', 'type' => 'select', 'title' => esc_html__( 'Menu', 'berich' ), 'options' => berich_get_nav_menu_slug(), 'default' => '', ), ), array( array( 'id' => 'sticky_scroll', 'type' => 'button_set', 'title' => esc_html__('Sticky Scroll', 'berich'), 'options' => array( '-1' => esc_html__('Inherit', 'berich'), 'pxl-sticky-stt' => esc_html__('Scroll To Top', 'berich'), 'pxl-sticky-stb' => esc_html__('Scroll To Bottom', 'berich'), ), 'default' => '-1', ), array( 'id' => 'header_margin', 'type' => 'spacing', 'mode' => 'margin', 'title' => esc_html__('Margin', 'berich'), 'width' => false, 'unit' => 'px', 'output' => array('#pxl-header-elementor .pxl-header-elementor-main'), ), ) ) ], 'page_title' => [ 'title' => esc_html__( 'Page Title', 'berich' ), 'icon' => 'el el-indent-left', 'fields' => array_merge( berich_page_title_opts([ 'default' => true, 'default_value' => '-1' ]) ) ], 'content' => [ 'title' => esc_html__( 'Content', 'berich' ), 'icon' => 'el-icon-pencil', 'fields' => array_merge( berich_sidebar_pos_opts(['prefix' => 'page_', 'default' => false, 'default_value' => '0']), array( array( 'id' => 'page_title_name', 'type' => 'text', 'title' => esc_html__('Page Title', 'berich'), ), array( 'id' => 'sub_page_title', 'type' => 'text', 'title' => esc_html__('Sub Page Title', 'berich'), ), array( 'id' => 'content_spacing', 'type' => 'spacing', 'output' => array( '#pxl-wapper #pxl-main' ), 'right' => false, 'left' => false, 'mode' => 'padding', 'units' => array( 'px' ), 'units_extended' => 'false', 'title' => esc_html__( 'Spacing Top/Bottom', 'berich' ), 'default' => array( 'padding-top' => '', 'padding-bottom' => '', 'units' => 'px', ) ), ) ) ], 'footer' => [ 'title' => esc_html__( 'Footer', 'berich' ), 'icon' => 'el el-website', 'fields' => array_merge( berich_footer_opts([ 'default' => true, 'default_value' => '-1' ]), array( array( 'id' => 'footer_display', 'type' => 'button_set', 'title' => esc_html__('Footer Display', 'berich'), 'options' => array( 'show' => esc_html__('Show', 'berich'), 'hide' => esc_html__('Hide', 'berich'), ), 'default' => 'show', ), array( 'id' => 'p_footer_fixed', 'type' => 'button_set', 'title' => esc_html__('Footer Fixed', 'berich'), 'options' => array( 'inherit' => esc_html__('Inherit', 'berich'), 'on' => esc_html__('On', 'berich'), 'off' => esc_html__('Off', 'berich'), ), 'default' => 'inherit', ), array( 'id' => 'back_top_top_style', 'type' => 'button_set', 'title' => esc_html__('Back to Top Style', 'berich'), 'options' => array( 'style-default' => esc_html__('Default', 'berich'), 'style-round' => esc_html__('Round', 'berich'), ), 'default' => 'style-default', ), ) ) ], 'colors' => [ 'title' => esc_html__( 'Colors', 'berich' ), 'icon' => 'el el-website', 'fields' => array_merge( array( array( 'id' => 'page_body_color', 'type' => 'color', 'title' => esc_html__('Body Background Color', 'berich'), 'default' => '', 'transparent' => false, 'output' => array( 'background-color' => 'body', ) ), array( 'id' => 'primary_color', 'type' => 'color', 'title' => esc_html__('Primary Color', 'berich'), 'transparent' => false, 'default' => '' ), array( 'id' => 'gradient_color', 'type' => 'color_gradient', 'title' => esc_html__('Gradient Color', 'berich'), 'transparent' => false, 'default' => array( 'from' => '', 'to' => '', ), ), ) ) ], 'extra' => [ 'title' => esc_html__( 'Extra', 'berich' ), 'icon' => 'el el-website', 'fields' => array_merge( array( array( 'id' => 'body_custom_class', 'type' => 'text', 'title' => esc_html__('Body Custom Class', 'berich'), ), ) ) ] ] ], 'portfolio' => [ 'opt_name' => 'pxl_portfolio_options', 'display_name' => esc_html__( 'Portfolio Options', 'berich' ), 'show_options_object' => false, 'context' => 'advanced', 'priority' => 'default', 'sections' => [ 'header' => [ 'title' => esc_html__( 'General', 'berich' ), 'icon' => 'el-icon-website', 'fields' => array_merge( array( array( 'id'=> 'portfolio_excerpt', 'type' => 'textarea', 'title' => esc_html__('Excerpt', 'berich'), 'validate' => 'html_custom', 'default' => '', ), array( 'id' => 'content_spacing', 'type' => 'spacing', 'output' => array( '#pxl-wapper #pxl-main' ), 'right' => false, 'left' => false, 'mode' => 'padding', 'units' => array( 'px' ), 'units_extended' => 'false', 'title' => esc_html__( 'Content Spacing Top/Bottom', 'berich' ), 'default' => array( 'padding-top' => '', 'padding-bottom' => '', 'units' => 'px', ) ), ) ) ], ] ], 'service' => [ 'opt_name' => 'pxl_service_options', 'display_name' => esc_html__( 'Service Options', 'berich' ), 'show_options_object' => false, 'context' => 'advanced', 'priority' => 'default', 'sections' => [ 'header' => [ 'title' => esc_html__( 'General', 'berich' ), 'icon' => 'el-icon-website', 'fields' => array_merge( array( array( 'id'=> 'service_external_link', 'type' => 'text', 'title' => esc_html__('External Link', 'berich'), 'validate' => 'url', 'default' => '', ), array( 'id'=> 'service_excerpt', 'type' => 'textarea', 'title' => esc_html__('Excerpt', 'berich'), 'validate' => 'html_custom', 'default' => '', ), array( 'id' => 'service_icon_type', 'type' => 'button_set', 'title' => esc_html__('Icon Type', 'berich'), 'options' => array( 'icon' => esc_html__('Icon', 'berich'), 'image' => esc_html__('Image', 'berich'), ), 'default' => 'icon' ), array( 'id' => 'service_icon_font', 'type' => 'pxl_iconpicker', 'title' => esc_html__('Icon', 'berich'), 'required' => array( 0 => 'service_icon_type', 1 => 'equals', 2 => 'icon' ), 'force_output' => true ), array( 'id' => 'service_icon_img', 'type' => 'media', 'title' => esc_html__('Icon Image', 'berich'), 'default' => '', 'required' => array( 0 => 'service_icon_type', 1 => 'equals', 2 => 'image' ), 'force_output' => true ), array( 'id' => 'content_spacing', 'type' => 'spacing', 'output' => array( '#pxl-wapper #pxl-main' ), 'right' => false, 'left' => false, 'mode' => 'padding', 'units' => array( 'px' ), 'units_extended' => 'false', 'title' => esc_html__( 'Content Spacing Top/Bottom', 'berich' ), 'default' => array( 'padding-top' => '', 'padding-bottom' => '', 'units' => 'px', ) ), ), berich_footer_opts([ 'default' => true, 'default_value' => '-1' ]) ) ], ] ], 'pxl-template' => [ //post_type 'opt_name' => 'pxl_hidden_template_options', 'display_name' => esc_html__( 'Template Options', 'berich' ), 'show_options_object' => false, 'context' => 'advanced', 'priority' => 'default', 'sections' => [ 'header' => [ 'title' => esc_html__( 'General', 'berich' ), 'icon' => 'el-icon-website', 'fields' => array( array( 'id' => 'template_type', 'type' => 'select', 'title' => esc_html__('Type', 'berich'), 'options' => [ 'df' => esc_html__('Select Type', 'berich'), 'header' => esc_html__('Header Desktop', 'berich'), 'header-mobile' => esc_html__('Header Mobile', 'berich'), 'footer' => esc_html__('Footer', 'berich'), 'mega-menu' => esc_html__('Mega Menu', 'berich'), 'page-title' => esc_html__('Page Title', 'berich'), 'tab' => esc_html__('Tab', 'berich'), 'hidden-panel' => esc_html__('Hidden Panel', 'berich'), 'popup' => esc_html__('Popup', 'berich'), 'page' => esc_html__('Page', 'berich'), 'slider' => esc_html__('Slider', 'berich'), ], 'default' => 'df', ), array( 'id' => 'header_type', 'type' => 'select', 'title' => esc_html__('Header Type', 'berich'), 'options' => [ 'px-header--default' => esc_html__('Default', 'berich'), 'px-header--transparent' => esc_html__('Transparent', 'berich'), 'px-header--left_sidebar' => esc_html__('Left Sidebar', 'berich'), ], 'default' => 'px-header--default', 'indent' => true, 'required' => array( 0 => 'template_type', 1 => 'equals', 2 => 'header' ), ), array( 'id' => 'header_mobile_type', 'type' => 'select', 'title' => esc_html__('Header Type', 'berich'), 'options' => [ 'px-header--default' => esc_html__('Default', 'berich'), 'px-header--transparent' => esc_html__('Transparent', 'berich'), ], 'default' => 'px-header--default', 'indent' => true, 'required' => array( 0 => 'template_type', 1 => 'equals', 2 => 'header-mobile' ), ), array( 'id' => 'hidden_panel_position', 'type' => 'select', 'title' => esc_html__('Hidden Panel Position', 'berich'), 'options' => [ 'top' => esc_html__('Top', 'berich'), 'right' => esc_html__('Right', 'berich'), ], 'default' => 'right', 'required' => array( 0 => 'template_type', 1 => 'equals', 2 => 'hidden-panel' ), ), array( 'id' => 'hidden_panel_height', 'type' => 'text', 'title' => esc_html__('Hidden Panel Height', 'berich'), 'subtitle' => esc_html__('Enter number.', 'berich'), 'transparent' => false, 'default' => '', 'force_output' => true, 'required' => array( 0 => 'hidden_panel_position', 1 => 'equals', 2 => 'top' ), ), array( 'id' => 'hidden_panel_boxcolor', 'type' => 'color', 'title' => esc_html__('Box Color', 'berich'), 'transparent' => false, 'default' => '', 'required' => array( 0 => 'template_type', 1 => 'equals', 2 => 'hidden-panel' ), ), array( 'id' => 'header_sidebar_width', 'type' => 'slider', 'title' => esc_html__('Header Sidebar Width', 'berich'), "default" => 300, "min" => 50, "step" => 1, "max" => 900, 'force_output' => true, 'required' => array( 0 => 'header_type', 1 => 'equals', 2 => 'px-header--left_sidebar' ), ), array( 'id' => 'header_sidebar_style', 'type' => 'select', 'title' => esc_html__('Header Sidebar Style', 'berich'), 'options' => [ 'px-header-sidebar-style1' => esc_html__('Style 1', 'berich'), 'px-header-sidebar-style2' => esc_html__('Style 2', 'berich'), ], 'default' => 'px-header-sidebar-style1', 'indent' => true, 'required' => array( 0 => 'header_type', 1 => 'equals', 2 => 'px-header--left_sidebar' ), ), ), ], ] ], ]; $metabox->add_meta_data( $panels ); }
💾 Save Changes
❌ Cancel