HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
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',
        ));
    }
}