<?php
/**
 * Blogin Aarambha Theme Customizer Post Meta settings
 *
 * @package Blogin_Aarambha
 */

class Blogin_Aarambha_Customize_Global_Post_Meta_Fields extends Blogin_Aarambha_Customize_Base_Field {

    /**
     * Arguments for fields.
     *
     * @return void
     */
    public function init() {
        $this->args = [
            // Meta Elements
            'blogin_aarambha_meta_elements' => [
                'type'              => 'sortable',
                'default'           => ['categories','date'],
                'sanitize_callback' => ['Blogin_Aarambha_Customizer_Sanitize_Callback', 'sanitize_sortable' ],
                'label'             => esc_html__( 'Post Meta Elements', 'blogin-aarambha' ),
                'description'       => esc_html__( 'Enable Post Meta elements and rearrange lists using drag and drop.', 'blogin-aarambha' ),
                'section'           => 'blogin_aarambha_post_meta_section',
                'priority'          => 10,
                'choices'           => [
                    'author'            => esc_html__( 'Author', 'blogin-aarambha' ),
                    'categories'        => esc_html__( 'Categories', 'blogin-aarambha' ),
                    'tags'              => esc_html__( 'Tags', 'blogin-aarambha' ),
                    'date'              => esc_html__( 'Publish Date', 'blogin-aarambha' ),
                    'comment'           => esc_html__( 'Comments', 'blogin-aarambha' )
                ],
            ]
        ];

    }

}
new Blogin_Aarambha_Customize_Global_Post_Meta_Fields();
