<?php
namespace admin;
if (!defined('ABSPATH')) {
    exit;
} // Exit if accessed directly

if ( !function_exists('is_plugin_active') ) {
    include_once(ABSPATH . 'wp-admin/includes/plugin.php');
}

class Pro_El_Widget_Service {

    public static function get_widget_settings($callable)
    {

        $settings_fields = [
            'bbpc_active_modules' => [
                [
                    'name' => 'ama_ajax_forum',
                    'label' => esc_html__('Forumax Ajax Forums', 'forumax'),
                    'type' => 'checkbox',
                    'default' => 'off',
                    'widget_type' => 'pro',
                    'demo_url' => 'https://forumax.spider-themes.net/',
                    //'video_url'    => 'https://youtu.be/Lq_st2IWZiE',
                ],
                [
                    'name' => 'ama_forum_posts',
                    'label' => esc_html__('Forumax Forum Topics', 'forumax'),
                    'type' => 'checkbox',
                    'default' => 'off',
                    'widget_type' => 'pro',
                    'demo_url' => 'https://forumax.spider-themes.net/',
                    //'video_url'    => 'https://youtu.be/Lq_st2IWZiE',
                ],
                [
                    'name' => 'ama_forum_tab',
                    'label' => esc_html__('Forumax Forum Tabs', 'forumax'),
                    'type' => 'checkbox',
                    'default' => 'off',
                    'widget_type' => 'pro',
                    'demo_url' => 'https://forumax.spider-themes.net/',
                    //'video_url'    => 'https://youtu.be/Lq_st2IWZiE',
                ],
                [
                    'name' => 'ama_forums',
                    'label' => esc_html__('Forumax Forums', 'forumax'),
                    'type' => 'checkbox',
                    'default' => 'off',
                    'widget_type' => 'pro',
                    'demo_url' => 'https://forumax.spider-themes.net/',
                    //'video_url'    => 'https://youtu.be/Lq_st2IWZiE',
                ],
                [
                    'name' => 'ama_search',
                    'label' => esc_html__('Forumax Search', 'forumax'),
                    'type' => 'checkbox',
                    'default' => 'off',
                    'widget_type' => 'pro',
                    'demo_url' => 'https://forumax.spider-themes.net/',
                    //'video_url'    => 'https://youtu.be/Lq_st2IWZiE',
                ],
                [
                    'name' => 'ama_single_forum',
                    'label' => esc_html__('Forumax Single Forum', 'forumax'),
                    'type' => 'checkbox',
                    'default' => 'off',
                    'widget_type' => 'pro',
                    'demo_url' => 'https://forumax.spider-themes.net/',
                    //'video_url'    => 'https://youtu.be/Lq_st2IWZiE',
                ],
            ]
        ];

        $settings = [];
        $settings['settings_fields'] = $settings_fields;

        return $callable($settings);
    }

}

