<?php

/**
 * Views class for Shortcode generator options.
 *
 * @link       https://themeatelier.net
 * @since      1.0.0
 *
 * @package greet-bubble
 * @subpackage greet-bubble/Admin/Views/GreetBubbleAdvanced
 * @author     ThemeAtelier<themeatelierbd@gmail.com>
 */

namespace ThemeAtelier\GreetBubble\Admin\Views;

use ThemeAtelier\GreetBubble\Admin\Framework\Classes\GREET_BUBBLE;

class GreetBubbleAdvanced
{

    /**
     * Create Option fields for the setting options.
     *
     * @param string $prefix Option setting key prefix.
     * @return void
     */
    public static function options($prefix)
    {
        GREET_BUBBLE::createSection($prefix, array(
            'title'       => __('ADVANCED', 'greet-bubble'),
            'icon'        => 'icofont-code-alt',
            'fields' => array(
                array(
                    'type' => 'section_tab',
                    'tabs' => array(
                        array(
                            'title' => esc_html__('Additional CSS & JS', 'greet-bubble'),
                            'icon'  => 'icofont-code-alt',
                            'fields' => array(
                                array(
                                    'id'       => 'greet_additional_css',
                                    'type'     => 'code_editor',
                                    'title' => esc_html__('Custom CSS', 'greet-bubble'),
                                    'title_help' =>
                                    '<div class="greet-bubble-info-label">' .
                                        esc_html__('Add your own custom CSS to override or extend the default styling of the Greet Bubble widget.', 'greet-bubble') .
                                        '</div>' .
                                        ' <a class="tooltip_btn_primary" target="_blank" href="' . esc_url('https://docs.themeatelier.net/docs/additional-css-js/?ref=1') . '">' . esc_html__('Open Docs', 'greet-bubble') . '</a>',

                                    'settings' => array(
                                        'theme'  => 'mbo',
                                        'mode'   => 'css',
                                    ),
                                ),

                                array(
                                    'id'       => 'greet_additional_js',
                                    'type'     => 'code_editor',
                                    'title' => esc_html__('Custom JavaScript', 'greet-bubble'),
                                    'title_help' =>
                                    '<div class="greet-bubble-info-label">' .
                                        esc_html__('Add your own custom JavaScript to extend or customize the Greet Bubble widget behavior.', 'greet-bubble') .
                                        '</div>' .
                                        ' <a class="tooltip_btn_primary" target="_blank" href="' . esc_url('https://docs.themeatelier.net/docs/additional-css-js/?ref=1') . '">' . esc_html__('Open Docs', 'greet-bubble') . '</a>',

                                    'settings' => array(
                                        'theme'  => 'mbo',
                                        'mode'   => 'js',
                                    ),
                                ),
                            )
                        ),
                        array(
                            'title' => esc_html__('Backup', 'greet-bubble'),
                            'icon'  => 'icofont-shield',
                            'fields' => array(
                                array(
                                    'title'    => esc_html__('Backup', 'greet-bubble'),
                                    'title_help' =>
                                    '<div class="greet-bubble-info-label">' .
                                        esc_html__('Export or import plugin settings for backup or migration purposes.', 'greet-bubble') .
                                        '</div>' .
                                        ' <a class="tooltip_btn_primary" target="_blank" href="' . esc_url('https://docs.themeatelier.net/docs/backup/?ref=1') . '">' . esc_html__('Open Docs', 'greet-bubble') . '</a>',
                                    'type' => 'backup',
                                ),
                            )
                        ),
                    ),
                ),
            ),
        ));
    }
}
