?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/wdp/wp-content/themes/quadric/framework/admin/meta-boxes/portfolio-settings/



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

?? Viewing: map.php

<?php

if(!function_exists('edgtf_quadric_map_portfolio_settings')) {
    function edgtf_quadric_map_portfolio_settings() {
        $meta_box = edgtf_quadric_create_meta_box(array(
            'scope' => 'portfolio-item',
            'title' => esc_html__( 'Portfolio Settings', 'quadric' ),
            'name'  => 'portfolio-settings-meta-box'
        ));

        edgtf_quadric_create_meta_box_field(array(
            'name'        => 'edgtf_portfolio_single_template_meta',
            'type'        => 'select',
            'label' => esc_html__( 'Portfolio Type', 'quadric' ),
            'description' => esc_html__( 'Choose a default type for Single Project pages', 'quadric' ),
            'parent'      => $meta_box,
            'options'     => array(
                ''                  => esc_html__( 'Default', 'quadric' ),
                'small-images' => esc_html__( 'Portfolio small images', 'quadric' ),
                'small-slider' => esc_html__( 'Portfolio small slider', 'quadric' ),
                'big-images' => esc_html__( 'Portfolio big images', 'quadric' ),
                'big-slider' => esc_html__( 'Portfolio big slider', 'quadric' ),
                'custom' => esc_html__( 'Portfolio custom', 'quadric' ),
                'full-width-custom' => esc_html__( 'Portfolio full width custom', 'quadric' ),
                'gallery' => esc_html__( 'Portfolio gallery', 'quadric' )
            )
        ));

        $all_pages = array();
        $pages     = get_pages();
        foreach($pages as $page) {
            $all_pages[$page->ID] = $page->post_title;
        }

        edgtf_quadric_create_meta_box_field(array(
            'name'        => 'edgtf_portfolio_single_back_to_link',
            'type'        => 'select',
            'label'       => esc_html__( '"Back To" Link', 'quadric' ),
            'description' => esc_html__( 'Choose "Back To" page to link from portfolio Single Project page', 'quadric' ),
            'parent'      => $meta_box,
            'options'     => $all_pages
        ));

		edgtf_quadric_create_meta_box_field(array(
            'name'        => 'edgtf_portfolio_external_link',
            'type'        => 'text',
            'label' => esc_html__( 'Portfolio External Link', 'quadric' ),
            'description' => esc_html__( 'Enter URL to link from Portfolio List page', 'quadric' ),
            'parent'      => $meta_box,
            'args'        => array(
                'col_width' => 3
            )
        ));

        edgtf_quadric_create_meta_box_field(array(
            'name'        => 'edgtf_portfolio_masonry_dimenisions',
            'type'        => 'select',
            'label' => esc_html__( 'Dimensions for Masonry', 'quadric' ),
            'description' => esc_html__( 'Choose image layout when it appears in Masonry type portfolio lists', 'quadric' ),
            'parent'      => $meta_box,
            'options'     => array(
                'default' => esc_html__( 'Default', 'quadric' ),
                'large_width' => esc_html__( 'Large width', 'quadric' ),
                'large_height' => esc_html__( 'Large height', 'quadric' ),
                'large_width_height' => esc_html__( 'Large width/height', 'quadric' )
            )
        ));
    }

    add_action('edgtf_quadric_meta_boxes_map', 'edgtf_quadric_map_portfolio_settings');
}


??

??