<?php

/**
 * Views class for Controls settings.
 *
 * @link       https://themeatelier.net
 * @since      1.0.0
 *
 * @package greet-bubble
 * @subpackage greet-bubble/Admin/Views/GreetBubbleControls
 * @author     ThemeAtelier<themeatelierbd@gmail.com>
 */

namespace ThemeAtelier\GreetBubble\Admin\Views;

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

class GreetBubbleControls
{

    /**
     * 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'       => esc_html__('CONTROLS', 'greet-bubble'),
            'icon'        => 'icofont-eye-alt',
            'fields'      => array(
                array(
                    'type'    => 'notice',
                    'style'   => 'normal',
                    'class'   => 'greet_pro_notice',
                    'content' => esc_html__('Want more control over your', 'greet-bubble') . ' <strong>' . esc_html__('Greet Bubble', 'greet-bubble') . '</strong>? <a href="https://themeatelier.net/downloads/greet-bubble" target="_blank"><b>' . esc_html__('Upgrade to Pro!', 'greet-bubble') . '</b></a>',
                ),

                array(
                    'title'      => esc_html__('Loop Video', 'greet-bubble'),
                    'class'      => 'switcher_pro_only',
                    'id'         => 'loop_video',
                    'type'       => 'switcher',
                    'text_on'    => esc_html__('Yes', 'greet-bubble'),
                    'text_off'   => esc_html__('No', 'greet-bubble'),
                    'inline'     => true,
                    'default'    => true,
                    'title_help' => '<div class="greet-bubble-info-label">' . esc_html__('Enable or disable looping for your bubble video.', 'greet-bubble') . '</div><a class="tooltip_btn_primary" href="' . GREET_BUBBLE_DEMO_URL . '" target="_blank">' . esc_html__('Live Demo', 'greet-bubble') . '</a><a class="tooltip_btn_secondary" href="' . GREET_BUBBLE_DOCS_URL . 'greet-bubble-settings/controls/" target="_blank">' . esc_html__('Open Docs', 'greet-bubble') . '</a>',
                ),

                array(
                    'title'      => esc_html__('Hide Replay Button', 'greet-bubble'),
                    'class'      => 'switcher_pro_only',
                    'id'         => 'hide_replay',
                    'type'       => 'switcher',
                    'text_on'    => esc_html__('Yes', 'greet-bubble'),
                    'text_off'   => esc_html__('No', 'greet-bubble'),
                    'inline'     => true,
                    'default'    => true,
                    'title_help' => '<div class="greet-bubble-info-label">' . esc_html__('Hide the video replay button from the bubble.', 'greet-bubble') . '</div><a class="tooltip_btn_primary" href="' . GREET_BUBBLE_DOCS_URL . 'greet-bubble-settings/controls/" target="_blank">' . esc_html__('Open Docs', 'greet-bubble') . '</a>',
                ),

                array(
                    'title'      => esc_html__('Hide Mute/Unmute Button', 'greet-bubble'),
                    'class'      => 'switcher_pro_only',
                    'id'         => 'hide_mute_unmute',
                    'type'       => 'switcher',
                    'text_on'    => esc_html__('Yes', 'greet-bubble'),
                    'text_off'   => esc_html__('No', 'greet-bubble'),
                    'inline'     => true,
                    'default'    => true,
                    'title_help' => '<div class="greet-bubble-info-label">' . esc_html__('Hide the mute/unmute button from the video.', 'greet-bubble') . '</div><a class="tooltip_btn_primary" href="' . GREET_BUBBLE_DOCS_URL . 'greet-bubble-settings/controls/" target="_blank">' . esc_html__('Open Docs', 'greet-bubble') . '</a>',
                ),

                array(
                    'title'      => esc_html__('Hide Fullscreen Button', 'greet-bubble'),
                    'class'      => 'switcher_pro_only',
                    'id'         => 'hide_fullscreen',
                    'type'       => 'switcher',
                    'text_on'    => esc_html__('Yes', 'greet-bubble'),
                    'text_off'   => esc_html__('No', 'greet-bubble'),
                    'inline'     => true,
                    'default'    => true,
                    'title_help' => '<div class="greet-bubble-info-label">' . esc_html__('Hide the fullscreen button from the video.', 'greet-bubble') . '</div><a class="tooltip_btn_primary" href="' . GREET_BUBBLE_DOCS_URL . 'greet-bubble-settings/controls/" target="_blank">' . esc_html__('Open Docs', 'greet-bubble') . '</a>',
                ),
            )
        ));
    }
}
