Value=$value; } public function Format($includeLabel=true) { $html="
"; if($this->Value->Label!=''&&$includeLabel) { $html.=""; } $value=[]; foreach($this->Value->Value->Texts as $text) { $value[]=$text->Value; $html.='
'; if($text->Label!='') $html.=""; $html.="".\esc_html($text->Value).""; $html.='
'; } $html.="
"; return [array('name'=>$this->Value->Label,'value'=>implode(', ',$value),'field'=>$this->Value->Label,'key'=>$this->Value->Label,'display'=>$html)]; } private function AddLine($label,$property) { $value=$this->Value->Value; if(!isset($value->$property)||$value->$property=='') return ''; $value=$value->$property; $section='
'; $section.=''; $section.=''.\esc_html($value).''; $section.='
'; return $section; } }