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/Tab.php
<?php

namespace Layerdrops\Aivons\Metaboxes;


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

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

        $general = new_cmb2_box(array(
            'id'           => $prefix . 'tab_option',
            'title'        => __('Tab Options', 'aivons-addon'),
            'object_types' => array('tab'),
            'context'      => 'normal',
            'priority'     => 'default',
        ));


        $tab_content = $general->add_field(array(
            'name' => __('Tab Meta', 'aivons-addon'),
            'id' => $prefix . 'tab_content',
            'type' => 'group',
        ));

        $general->add_group_field($tab_content, array(
            'name' => __('icon', 'aivons-addon'),
            'id' => $prefix . 'icon',
            'type' => 'pw_select',
            'default' => 'fa-facebook-f',
            'options' => aivons_get_fa_icons(),
        ));

        $general->add_group_field($tab_content, array(
            'name' => __('title', 'aivons-addon'),
            'id' => $prefix . 'title',
            'type' => 'text',
        ));

        $general->add_group_field($tab_content, array(
            'name' => __('text', 'aivons-addon'),
            'id' => $prefix . 'text',
            'type' => 'textarea',
        ));
    }
}