title = __('Bit Integrations', 'notificationx'); $this->module_title = __('Bit Integrations', 'notificationx'); $this->popup = [ "denyButtonText" => __("More Info", "notificationx"), "confirmButtonText" => __("Upgrade to PRO", "notificationx"), "html"=> __(' Display review alerts from popular social media networks & encourage visitors to place trust in your business. ', 'notificationx') ]; } /** * Error message if BitIntegrations is disabled. * * @param array $messages * @return array */ public function source_error_message($messages) { if (!$this->class_exists()) { $url = admin_url('plugin-install.php?s=bit+integrations&tab=search&type=term'); $messages[$this->id] = [ 'message' => sprintf( '%s %s %s', __('You have to install', 'notificationx'), $url, __('Bit Integrations', 'notificationx'), __('plugin first.', 'notificationx') ), 'html' => true, 'type' => 'error', 'rules' => Rules::is('source', $this->id), ]; } return $messages; } /** * Get data for BitIntegrations Extension. * * @param array $args Settings arguments. * @return array */ public function get_data( $args = array() ){ return 'Hello From BitIntegrations'; } public function doc(){ return ' '; } }