diff --git a/src/Plugin/Block/TYPProfileFacebook.php b/src/Plugin/Block/TYPProfileFacebook.php --- a/src/Plugin/Block/TYPProfileFacebook.php +++ b/src/Plugin/Block/TYPProfileFacebook.php @@ -1,57 +1,57 @@ getRequestUri(); $s = explode("/",$url); $bid = end($s); $this->data = \Drupal::service("typ.search")->getProfile($bid ,AUTO); $this->result = \Drupal::service('typ.unvservice')->loadListing($this->data['customerid'],NULL); $facebook = ''; - if($this->data['customertype'] == 'FL' || $this->data['customertype'] == '' || $this->result['accounting_status'] == '1'){ + if($this->data['customertype'] == 'FL' || $this->data['customertype'] == '' || $this->result['accounting_status'] == '1' || $this->data['hide'] == '1' || $this->data['accounting_status'] == '1'){ $facebook = format_string('
'); } $build = array(); $build[] = array( '#markup' => $facebook, ); return $build; } } \ No newline at end of file