File: /home/slyfwmm/adspray/wp-content/plugins/aivons-addon/includes/Metaboxes/Testimonial.php
<?php
namespace Layerdrops\Aivons\Metaboxes;
class Testimonial
{
function __construct()
{
add_action('cmb2_admin_init', [$this, 'add_metabox']);
}
function add_metabox()
{
$prefix = 'aivons_';
$general = new_cmb2_box(array(
'id' => $prefix . 'testimonial_option',
'title' => __('Testimonial Options', 'aivons-addon'),
'object_types' => array('testimonial'),
'context' => 'normal',
'priority' => 'default',
));
$general->add_field(array(
'name' => __('Content', 'aivons-addon'),
'id' => $prefix . 'content',
'type' => 'textarea',
));
$general->add_field(array(
'name' => __('Designation', 'aivons-addon'),
'id' => $prefix . 'designation',
'type' => 'text',
));
}
}