public static function initGentleNotifications()
 {
     if (!get_option(PDF_LIGHT_VIEWER_PLUGIN . '-notification-pro-ad-viewed') && !defined('PDF_LIGHT_VIEWER_PRO_PLUGIN')) {
         PdfLightViewer_AdminController::showDirectMessage(sprintf(__('PDF Light Viewer Team: We created PRO Addon with printing, search and SEO-friendly mode <a class="button-primary js-pdf-light-viewer-hide-notification" data-notification="pro-ad-viewed" target="_blank" href="%s">Check It</a> <a class="button-secondary js-pdf-light-viewer-hide-notification" data-notification="pro-ad-viewed" href="#">Not interested</a>', PDF_LIGHT_VIEWER_PLUGIN), 'http://codecanyon.net/item/pdf-light-viewer-pro-addon/14089505'));
     } elseif (!get_option(PDF_LIGHT_VIEWER_PLUGIN . '-notification-survey-viewed')) {
         PdfLightViewer_AdminController::showDirectMessage(sprintf(__('PDF Light Viewer Team: Please, take part in our 1-minute survey to make PDF Light Viewer plugin better <a class="button-primary js-pdf-light-viewer-hide-notification" data-notification="survey-viewed" target="_blank" href="%s">Take Survey</a> <a class="button-secondary js-pdf-light-viewer-hide-notification" data-notification="survey-viewed" href="#">Not interested</a>', PDF_LIGHT_VIEWER_PLUGIN), 'https://teamlead-power.typeform.com/to/Mr7eVs'));
     }
 }
 public static function showImportProgressMessages()
 {
     if (!PdfLightViewer_Model::$unimported) {
         PdfLightViewer_Model::$unimported = PdfLightViewer_Model::getOneUnimported();
     }
     if (!empty(PdfLightViewer_Model::$unimported)) {
         $status = PdfLightViewer_Plugin::get_post_meta(PdfLightViewer_Model::$unimported->ID, '_pdf-light-viewer-import-status', true);
         $progress = PdfLightViewer_Plugin::get_post_meta(PdfLightViewer_Model::$unimported->ID, '_pdf-light-viewer-import-progress', true);
         PdfLightViewer_AdminController::showDirectMessage(sprintf(__('<i class="icons icon-settings"></i> <b>%s</b> PDF import is <span class="js-pdf-light-viewer-current-status">%s</span>. <span class="js-pdf-light-viewer-current-progress">%d</span>%% is complete. <i>Please do not leave the admin interface until the import would not finished. %s</i>', PDF_LIGHT_VIEWER_PLUGIN), PdfLightViewer_Model::$unimported->post_title, $status, $progress, '<a href="#!" class="js-tip tip" title="' . __('Otherwise the import will be continued during your next visit.', PDF_LIGHT_VIEWER_PLUGIN) . '"><span class="icons icon-question"></span></a>'), false);
     }
 }