?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/wdp/wp-content/themes/quadric/framework/admin/options/page/



?? Go up: /home/webdevt/www/wdp/wp-content/themes/quadric/framework/admin/options

?? Viewing: map.php

<?php

if ( ! function_exists('edgtf_quadric_page_options_map') ) {

    function edgtf_quadric_page_options_map() {

        edgtf_quadric_add_admin_page(
            array(
                'slug'  => '_page_page',
                'title' => 'Page',
                'icon'  => 'fa fa-file-o'
            )
        );

        $custom_sidebars = edgtf_quadric_get_custom_sidebars();

        $panel_sidebar = edgtf_quadric_add_admin_panel(
            array(
                'page'  => '_page_page',
                'name'  => 'panel_sidebar',
                'title' => esc_html__( 'Design Style', 'quadric' )
            )
        );

        edgtf_quadric_add_admin_field(array(
            'name'        => 'page_sidebar_layout',
            'type'        => 'select',
            'label' => esc_html__( 'Sidebar Layout', 'quadric' ),
            'description' => esc_html__( 'Choose a sidebar layout for pages', 'quadric' ),
            'default_value' => 'default',
            'parent'      => $panel_sidebar,
            'options'     => array(
                'default' => esc_html__( 'No Sidebar', 'quadric' ),
                'sidebar-33-right' => esc_html__( 'Sidebar 1/3 Right', 'quadric' ),
                'sidebar-25-right' => esc_html__( 'Sidebar 1/4 Right', 'quadric' ),
                'sidebar-33-left' => esc_html__( 'Sidebar 1/3 Left', 'quadric' ),
                'sidebar-25-left' => esc_html__( 'Sidebar 1/4 Left', 'quadric' )
            )
        ));


        if(count($custom_sidebars) > 0) {
            edgtf_quadric_add_admin_field(array(
                'name' => 'page_custom_sidebar',
                'type' => 'selectblank',
                'label' => esc_html__( 'Sidebar to Display', 'quadric' ),
                'description' => esc_html__( 'Choose a sidebar to display on pages. Default sidebar is "Sidebar"', 'quadric' ),
                'parent' => $panel_sidebar,
                'options' => $custom_sidebars
            ));
        }

        edgtf_quadric_add_admin_field(array(
            'name'        => 'page_show_comments',
            'type'        => 'yesno',
            'label' => esc_html__( 'Show Comments', 'quadric' ),
            'description' => esc_html__( 'Enabling this option will show comments on your page', 'quadric' ),
            'default_value' => 'no',
            'parent'      => $panel_sidebar
        ));

    }

    add_action( 'edgtf_quadric_options_map', 'edgtf_quadric_page_options_map',7 );

}


??

??