0xsec Shell
0xSec


Server : LiteSpeed
System : Linux webbox1.ncrdns.net 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
User : rahcos ( 1533)
PHP Version : 8.4.24
Disable Function : NONE
Directory :  /home4/rahcos/.trash/wp-content/themes/hara/inc/vendors/cmb2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home4/rahcos/.trash/wp-content/themes/hara/inc/vendors/cmb2/page.php
<?php
if (!function_exists('hara_tbay_page_metaboxes')) {
    function hara_tbay_page_metaboxes(array $metaboxes)
    {
        $sidebars = hara_sidebars_array();

        $footers = array_merge(array('global' => esc_html__('Global Setting', 'hara')), hara_tbay_get_footer_layouts());
        $headers = array_merge(array('global' => esc_html__('Global Setting', 'hara')), hara_tbay_get_header_layouts());


        $prefix = 'tbay_page_';
        $fields = array(
            array(
                'name' => esc_html__('Select Layout', 'hara'),
                'id'   => $prefix.'layout',
                'type' => 'select',
                'options' => array(
                    'main' => esc_html__('Main Content Only', 'hara'),
                    'left-main' => esc_html__('Left Sidebar - Main Content', 'hara'),
                    'main-right' => esc_html__('Main Content - Right Sidebar', 'hara'),
                )
            ),
            array(
                'id' => $prefix.'left_sidebar',
                'type' => 'select',
                'name' => esc_html__('Left Sidebar', 'hara'),
                'options' => $sidebars
            ),
            array(
                'id' => $prefix.'right_sidebar',
                'type' => 'select',
                'name' => esc_html__('Right Sidebar', 'hara'),
                'options' => $sidebars
            ),
            array(
                'id' => $prefix.'show_breadcrumb',
                'type' => 'select',
                'name' => esc_html__('Show Breadcrumb?', 'hara'),
                'options' => array(
                    'no' => esc_html__('No', 'hara'),
                    'yes' => esc_html__('Yes', 'hara')
                ),
                'default' => 'yes',
            ),
            array(
                'name' => esc_html__('Select Breadcrumbs Layout', 'hara'),
                'id'   => $prefix.'breadcrumbs_layout',
                'type' => 'select',
                'options' => array(
                    'image' => esc_html__('Background Image', 'hara'),
                    'color' => esc_html__('Background color', 'hara'),
                    'text' => esc_html__('Just text', 'hara')
                ),
                'default' => 'text',
            ),
            array(
                'id' => $prefix.'breadcrumb_color',
                'type' => 'colorpicker',
                'name' => esc_html__('Breadcrumb Background Color', 'hara')
            ),
            array(
                'id' => $prefix.'breadcrumb_image',
                'type' => 'file',
                'name' => esc_html__('Breadcrumb Background Image', 'hara')
            ),
        );

        $after_array = array(
            array(
                'id' => $prefix.'header_type',
                'type' => 'select',
                'name' => esc_html__('Header Layout Type', 'hara'),
                'description' => esc_html__('Choose a header for your website.', 'hara'),
                'options' => $headers,
                'default' => 'global'
            ),
            array(
                'id' => $prefix.'footer_type',
                'type' => 'select',
                'name' => esc_html__('Footer Layout Type', 'hara'),
                'description' => esc_html__('Choose a footer for your website.', 'hara'),
                'options' => $footers,
                'default' => 'global'
            ),
            array(
                'id' => $prefix.'extra_class',
                'type' => 'text',
                'name' => esc_html__('Extra Class', 'hara'),
                'description' => esc_html__('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'hara')
            )
        );
        $fields = array_merge($fields, $after_array);
        
        $metaboxes[$prefix . 'display_setting'] = array(
            'id'                        => $prefix . 'display_setting',
            'title'                     => esc_html__('Display Settings', 'hara'),
            'object_types'              => array( 'page' ),
            'context'                   => 'normal',
            'priority'                  => 'high',
            'show_names'                => true,
            'fields'                    => $fields
        );

        return $metaboxes;
    }
}
add_filter('cmb2_meta_boxes', 'hara_tbay_page_metaboxes');

if (!function_exists('hara_tbay_cmb2_style')) {
    function hara_tbay_cmb2_style()
    {
        wp_enqueue_style('hara-cmb2', HARA_THEME_DIR . '/inc/vendors/cmb2/assets/cmb2.css', array(), '1.0');
    }
    add_action('admin_enqueue_scripts', 'hara_tbay_cmb2_style', 10);
}

c0oded By c0rpz