';
if (empty($_GET["post"]) and strpos($_SERVER["REQUEST_URI"], "post-new") === false):
$gf_message = 'Use
Add new button above to create new sql report. And click on any existing rule names below
to manage them. ';
else:
$gf_message = '
1. Give any name to your report.
2. Choose chart type, type sql query, enter field names, labels and then press to Publish/Update
3. After update you will see the name and the demo of the needed shortcode at the bottom of this admin page. You can use that shortcode anywhere in your website: in pages, posts, widgets etc.
';
endif;
_e('
' . $gf_message . '
', 'guaven_sqlcharts');
echo '
';
endif;
}
add_action('admin_notices', 'guaven_sqlcharts_my_admin_notice');
function guaven_sqlcharts_onboarding_notice(){
if((function_exists('wp_doing_ajax') and wp_doing_ajax()) or get_option('guaven_sqlcharts_onboarding_notice_dismissed') == 1)
return;
printf('