<?php

namespace  InstantPopupBuildr\Admin\PopupBuilder\Trigger;
class Class_instant_popup_builder_trigger
{

     protected static $trigger_options = [
        'onload'  => 'On Load',
        'onclick' => 'On Click',
        'onhover' => 'On Hover',
    ];

    public $popup_version;
    public $popup_name;

    public function __construct($popup_version, $popup_name)
    {

        $this->popup_version = $popup_version;
        $this->popup_name = $popup_name;
    }

    public static function get_trigger_options()
    {
        // $is_trigger = get_option('instant_popup_builder_exit');

        // if ($is_trigger == 'yes') {

        //     self::$trigger_options['exit-intent'] = "Exit Intent";
        // }

        return apply_filters('instant_popup_trigger_options', self::$trigger_options);

        // return self::$trigger_options;
    }
}

