Loader = $loader; $this->stages = array( array( 'Threshold' => 10, 'content' => __('

Hello!, you have received %s submissions, that\'s Great!

Would like to keep receiving updates and support? If so could you do me a BIG favor and give it a 5-star rating on WordPress?

Honestly the competition is fierce and a good review really helps the plugin thrive (that means constant updates, support and more features for you)

', 'all-in-one-forms'), 'Reviewlink' => __('Sure, keep up the good work', 'all-in-one-forms'), 'DontShowAgain' => __('Already did or don\'t want to review (don\'t show again)', 'all-in-one-forms') ) ); } public function Start() { $this->currentStage = $this->GetCurrentStage(); if($this->currentStage == null) return; if(!$this->ShouldPrintNotice()) return; $this->PrintNotice(); } private function GetCurrentStage() { $stageNumber = get_option($this->stageProperty, 0); if($stageNumber >= count($this->stages)) return null; return $this->stages[$stageNumber]; } private function ShouldPrintNotice() { global $wpdb; $this->count = $wpdb->get_var("SELECT COUNT(*) FROM " . AllInOneForms()->GetLoader()->RECORDS_TABLE); return $this->count >= $this->currentStage['Threshold']; } private function GetContent() { return sprintf($this->currentStage['content'], $this->count); } private function PrintNotice() { ?>