?? GreyFile — Mystic File Browser

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



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

?? Viewing: map.php

<?php

$edgtf_blog_categories = array();
$categories = get_categories();
foreach($categories as $category) {
    $edgtf_blog_categories[$category->term_id] = $category->name;
}

$blog_meta_box = edgtf_quadric_create_meta_box(
    array(
        'scope' => array('page'),
        'title' => esc_html__( 'Blog', 'quadric' ),
        'name' => 'blog-meta'
    )
);

    edgtf_quadric_create_meta_box_field(
        array(
            'name'        => 'edgtf_blog_category_meta',
            'type'        => 'selectblank',
            'label' => esc_html__( 'Blog Category', 'quadric' ),
            'description' => esc_html__( 'Choose category of posts to display (leave empty to display all categories)', 'quadric' ),
            'parent'      => $blog_meta_box,
            'options'     => $edgtf_blog_categories
        )
    );

    edgtf_quadric_create_meta_box_field(
        array(
            'name'        => 'edgtf_show_posts_per_page_meta',
            'type'        => 'text',
            'label' => esc_html__( 'Number of Posts', 'quadric' ),
            'description' => esc_html__( 'Enter the number of posts to display', 'quadric' ),
            'parent'      => $blog_meta_box,
            'options'     => $edgtf_blog_categories,
            'args'        => array("col_width" => 3)
        )
    );



??

??