public static function admin_notices()
{
// Show tracker notice after 24 hours from installed time.
if (self::_get_installed_time() > strtotime('-24 hours')) {
return;
}
if ('1' === get_option('elementor_tracker_notice')) {
return;
}
if (self::is_allow_track()) {
return;
}
if (!current_user_can('manage_options')) {
return;
}
// TODO: Skip for development env
$optin_url = wp_nonce_url(add_query_arg('elementor_tracker', 'opt_into'), 'opt_into');
$optout_url = wp_nonce_url(add_query_arg('elementor_tracker', 'opt_out'), 'opt_out');
?>
<div class="updated">
<p><?php
_e('Love using Elementor? Become a super contributor by opting in to our anonymous plugin data collection and to our updates. We guarantee no sensitive data is collected.', 'elementor');
?>
<a href="https://go.elementor.com/usage-data-tracking/" target="_blank"><?php
_e('Learn more.', 'elementor');
?>
</a></p>
<p><a href="<?php
echo $optin_url;
?>
" class="button-primary"><?php
_e('Sure! I\'d love to help', 'elementor');
?>
</a> <a href="<?php
echo $optout_url;
?>
" class="button-secondary"><?php
_e('No thanks', 'elementor');
?>
</a></p>
</div>
<?php
}