"; $display .= " "; $display .= " "; $display .= "
"; $display .= "
"; $display .= "
    "; if ($this->business->location->display_address[0]) { $display .= "
  • "; $display .= $this->business->location->display_address[0]; $display .= ( $this->business->location->display_address[1] ) ? "
    ".$this->business->location->display_address[1] : ""; $display .= ( $this->business->location->display_address[2] ) ? "
    ".$this->business->location->display_address[2] : ""; $display .= ( $this->business->location->display_address[3] ) ? "
    ".$this->business->location->display_address[3] : ""; $display .= "
  • "; } $display .= ( $this->business->display_phone ) ? "
  • ".$this->business->display_phone."
  • " : ""; $display .= "
  • "; $display .= " ".$this->business->rating." stars".$this->business->review_count." Reviews"; $display .= "
  • "; $display .= "
"; $display .= "
"; $linkreview = JRoute::_( 'index.php?option=com_ml_drcyelp&view=reviewform&id='.$this->business->id."&tmpl=review" ); $display .= "
"; $display .= "
"; $display .= " "; $display .= " "; $display .= " "; $display .= " "; $display .= " "; $display .= "
"; $display .= " "; $display .= "
"; if ($this->business->snippet_text) { $display .= "

Yelp! Reviews

".$this->business->snippet_text."Read More on Yelp!
"; } if ( count($this->reviews) > 0 ) { $display .= "
"; $display .= "

Disability Resource Community Reviews

"; foreach ( $this->reviews as $i => $item ): $display .= "
"; $display .= ( $item->date_entered_view ) ? "".$item->date_entered_view."
" : ""; $display .= $item->reviewer_name; if ($item->reviewer_comments) { $display .= "
"; #$display .= "Comment:
"; $display .= $item->reviewer_comments; } $display .= ( $item->flag_recommend ) ? "
Recommended: Yes" : ""; #if ($item->flag_disability_aware) { #$display .= "

"; #$display .= "Disability Aware: Yes
"; #$display .= "
    "; #$display .= ( $item->cb_explain_physically_accessible ) ? "
  • Physically Accessible
  • " : ""; #$display .= ( $item->cb_explain_welcoming ) ? "
  • Welcoming
  • " : ""; #$display .= ( $item->cb_explain_talked ) ? "
  • Talked directly to the person/people with disability
  • " : ""; #$display .= ( $item->cb_explain_friendly ) ? "
  • Friendly
  • " : ""; #$display .= ( $item->cb_explain_choices ) ? "
  • Provided choices
  • " : ""; #$display .= ( $item->cb_explain_time ) ? "
  • Provided extra time
  • " : ""; #$display .= ( $item->cb_explain_respectful ) ? "
  • Respectful
  • " : ""; #$display .= "
"; #} #$display .= ( $items->explain_other ) ? "
".$item->explain_other : ""; if (false) { $display .= "
    "; $display .= ( $item->business_name ) ? "
  • business_name: ".$item->business_name."
  • " : ""; $display .= ( $item->id_yelp ) ? "
  • id_yelp: ".$item->id_yelp."
  • " : ""; $display .= ( $item->date_entered ) ? "
  • date_entered: ".$item->date_entered."
  • " : ""; $display .= ( $item->date_entered_view ) ? "
  • date_entered_view: ".$item->date_entered_view."
  • " : ""; $display .= ( $item->reviewer_name ) ? "
  • reviewer_name: ".$item->reviewer_name."
  • " : ""; $display .= ( $item->reviewer_email ) ? "
  • reviewer_email: ".$item->reviewer_email."
  • " : ""; $display .= "
  • flag_recommend: ".$item->flag_recommend."
  • "; $display .= ( $item->reviewer_comments ) ? "
  • reviewer_comments: ".$item->reviewer_comments."
  • " : ""; $display .= ( $item->flag_disability_aware ) ? "
  • flag_disability_aware: ".$item->flag_disability_aware."
  • " : ""; $display .= ( $item->cb_explain_physically_accessible ) ? "
  • cb_explain_physically_accessible: ".$item->cb_explain_physically_accessible."
  • " : ""; $display .= ( $item->cb_explain_welcoming ) ? "
  • cb_explain_welcoming: ".$item->cb_explain_welcoming."
  • " : ""; $display .= ( $item->cb_explain_talked ) ? "
  • cb_explain_talked: ".$item->cb_explain_talked."
  • " : ""; $display .= ( $item->cb_explain_friendly ) ? "
  • cb_explain_friendly: ".$item->cb_explain_friendly."
  • " : ""; $display .= ( $item->cb_explain_choices ) ? "
  • cb_explain_choices: ".$item->cb_explain_choices."
  • " : ""; $display .= ( $item->cb_explain_time ) ? "
  • cb_explain_time: ".$item->cb_explain_time."
  • " : ""; $display .= ( $item->cb_explain_respectful ) ? "
  • cb_explain_respectful: ".$item->cb_explain_respectful."
  • " : ""; $display .= ( $items->explain_other ) ? "
  • explain_other: ".$item->explain_other."
  • " : ""; $display .= "
"; } $display .= "
"; endforeach; $display .= "
"; } if (false) { $display .= "

"; $display .= "
    "; $display .= ( $this->business->id ) ? "
  • id: ".$this->business->id."
  • " : ""; $display .= ( $this->business->name ) ? "
  • name: ".$this->business->name."
  • " : ""; $display .= ( $this->business->is_claimed ) ? "
  • is_claimed: ".$this->business->is_claimed."
  • " : ""; $display .= ( $this->business->rating ) ? "
  • rating: ".$this->business->rating."
  • " : ""; $display .= ( $this->business->mobile_url ) ? "
  • mobile_url: ".$this->business->mobile_url."
  • " : ""; $display .= ( $this->business->rating_img_url ) ? "
  • rating_img_url: ".$this->business->rating_img_url."
  • " : ""; $display .= ( $this->business->review_count ) ? "
  • review_count: ".$this->business->review_count."
  • " : ""; $display .= ( $this->business->snippet_image_url ) ? "
  • snippet_image_url: ".$this->business->snippet_image_url."
  • " : ""; $display .= ( $this->business->rating_img_url_small ) ? "
  • rating_img_url_small: ".$this->business->rating_img_url_small."
  • " : ""; $display .= ( $this->business->url ) ? "
  • url: ".$this->business->url."
  • " : ""; $display .= ( $this->business->menu_date_updated ) ? "
  • menu_date_updated: ".$this->business->menu_date_updated."
  • " : ""; $display .= ( $this->business->review_count ) ? "
  • review_count: ".$this->business->review_count."
  • " : ""; $display .= ( $this->business->phone ) ? "
  • phone: ".$this->business->phone."
  • " : ""; $display .= ( $this->business->snippet_text ) ? "
  • snippet_text: ".$this->business->snippet_text."
  • " : ""; $display .= ( $this->business->image_url ) ? "
  • image_url: ".$this->business->image_url."
  • " : ""; $display .= ( $this->business->display_phone ) ? "
  • display_phone: ".$this->business->display_phone."
  • " : ""; $display .= ( $this->business->rating_img_url_large ) ? "
  • review_count: ".$this->business->rating_img_url_large."
  • " : ""; $display .= ( $this->business->location->address[0] ) ? "
  • location address: ".$this->business->location->address[0]."
  • " : ""; $display .= ( $this->business->location->address[1] ) ? "
  • location address 1: ".$this->business->location->address[1]."
  • " : ""; $display .= ( $this->business->location->city ) ? "
  • location city: ".$this->business->location->city."
  • " : ""; $display .= ( $this->business->location->state_code ) ? "
  • location city: ".$this->business->location->state_code."
  • " : ""; $display .= ( $this->business->location->postal_code ) ? "
  • location city: ".$this->business->location->postal_code."
  • " : ""; $display .= ( $this->business->location->display_address[0] ) ? "
  • location display address: ".$this->business->location->display_address[0]."
  • " : ""; $display .= ( $this->business->location->display_address[1] ) ? "
  • location display address 1: ".$this->business->location->display_address[1]."
  • " : ""; $display .= "
"; } $display .= "
"; echo $display; ?>