!empty(get_option('az_welcome_popup_shown')) ? false : true,
'url' => AZ_WELCOME_URL,
'ajax_url' => admin_url('admin-ajax.php'),
'nonce' => wp_create_nonce('az-welcome-nonce'),
't' => [
'close' => __('Close', 'az-welcome'),
'hero' => __('Only together we can make web content
more accessible to everyone!', 'az-welcome'),
'h2' => __('Just a couple of steps and you will contribute to web accessibility!', 'az-welcome'),
'thank_you' => __('Thank you!', 'az-welcome'),
'thank_you_sub' => __('Thank you for making the Internet accessible to everyone!', 'az-welcome'),
'contact_us' => __('Do you have accessibility issues or questions? We can help you! The Accessibility Zone team is always ready to help you with web accessibility, just contact us!', 'az-welcome'),
'contact_us_btn' => __('Contact Us', 'az-welcome'),
'callback' => __('Callback', 'az-welcome'),
'callback_message' => __('Would you like to get in touch with us and receive news from us?', 'az-welcome'),
'your_email' => __('Your email', 'az-welcome'),
'your_email2' => __('Your e-mail', 'az-welcome'),
'tellus' => __('Tell us which wordpress plugins need web accessibility', 'az-welcome'),
'about_plugins' => __('About inaccessible plugins', 'az-welcome'),
'textarea_plr' => __("The plugin I'm using and it's not accessible", 'az-welcome'),
'qst' => __('Are you a developer?', 'az-welcome'),
'yes' => __('Yes', 'az-welcome'),
'no' => __('No', 'az-welcome'),
'to_back' => __('To back', 'az-welcome'),
'close_popup' => __("I'm not interested in anything, close this popup!", 'az-welcome'),
'send' => __('Send', 'az-welcome'),
'skip' => __('Skip', 'az-welcome'),
'next' => __('Next ➝', 'az-welcome'),
'skip_and_finish' => __('Skip and finish', 'az-welcome')
]
));
}
public function admin_enqueue_scripts()
{
wp_enqueue_script('az-welcome-popup');
}
public static function plugin_activated()
{
delete_option('az_welcome_popup_shown');
}
public static function init($plugin)
{
register_activation_hook($plugin, ['AZ_WELCOME', 'plugin_activated']);
register_deactivation_hook($plugin, ['AZ_WELCOME', 'plugin_activated']);
}
}
$AZ_WELCOME = new AZ_WELCOME();