8889841cunlimited-elements-for-elementor-premium/provider/admin_notices/builders/builder_abstract.class.php000064400000004214150515053720042674 0ustar00home/clixcotz/travelport.clix.co.tz/wp-content/pluginsid = $id; } /** * set the notice as dismissible */ public function dismissible(){ $this->dismissible = true; return $this; } /** * set the notice debug data */ public function debug($data){ $this->debug = $data; return $this; } /** * get the notice identifier */ protected function getId(){ return $this->id; } /** * get the dismiss html */ protected function getDismissHtml(){ if($this->dismissible === false) return ''; $ajaxUrl = $this->getDismissAjaxUrl(); $text = __('Dismiss', 'unlimited-elements-for-elementor'); $title = __('Dismiss Notice', 'unlimited-elements-for-elementor'); return '' . $text . ''; } /** * get the debug html */ protected function getDebugHtml(){ if(empty($this->debug)) return ''; return '

DEBUG: ' . $this->debug . '

'; } /** * get the dismiss ajax url */ protected function getDismissAjaxUrl(){ $ajaxUrl = HelperUC::getUrlAjax('dismiss_notice'); $ajaxUrl = UniteFunctionsUC::addUrlParams($ajaxUrl, array('id' => $this->id)); return $ajaxUrl; } /** * get the postpone ajax url (duration in hours) */ protected function getPostponeAjaxUrl($duration){ $ajaxUrl = HelperUC::getUrlAjax('postpone_notice'); $ajaxUrl = UniteFunctionsUC::addUrlParams($ajaxUrl, array('id' => $this->id, 'duration' => $duration)); return $ajaxUrl; } }