Your IP : 216.73.216.0


Current Path : /home/goldnueh/netsetsolution.com/wp-content/plugins/zeinet-addon/includes/Metaboxes/
Upload File :
Current File : /home/goldnueh/netsetsolution.com/wp-content/plugins/zeinet-addon/includes/Metaboxes/Movie.php

<?php

namespace Layerdrops\Zeinet\Metaboxes;


class Movie
{
    function __construct()
    {
        add_action('cmb2_admin_init', [$this, 'add_metabox']);
    }

    function add_metabox()
    {
        $prefix = 'zeinet_movie_';

        $general = new_cmb2_box(array(
            'id'           => $prefix . 'movie_option',
            'title'        => __('Movie Options', 'zeinet-addon'),
            'object_types' => array('movie'),
            'context'      => 'normal',
            'priority'     => 'default',
        ));

        $general->add_field(array(
            'name' => __('Year', 'zeinet-addon'),
            'id' => $prefix . 'year',
            'type' => 'text',
        ));

        $general->add_field(array(
            'name' => __('Video Url', 'zeinet-addon'),
            'id' => $prefix . 'video_url',
            'type' => 'text',
        ));

        $general->add_field(array(
            'name' => __('Duration', 'zeinet-addon'),
            'id' => $prefix . 'duration',
            'type' => 'text',
        ));

        $general->add_field(array(
            'name' => __('Summary', 'zeinet-addon'),
            'id' => $prefix . 'summary',
            'type' => 'textarea',
        ));

        $general->add_field(array(
            'name' => __('Header Image', 'zeinet-addon'),
            'id' => $prefix . 'set_header_image',
            'type' => 'file',
        ));
    }
}