URL); echo($Content); $BlockStart = 'id="newsFeedHeading">Vybrané příspěvky'; $BlockEnd = ''; $Content = GetTextBetween($Content, $BlockStart, $BlockEnd); if ($Content == '') { $Output .= 'Main block not isolated.
'; return $Output; } $ItemStart = 'fbfeed_location'; $ItemEnd = ''; while (strpos($Content, $ItemStart) !== false) { $Item = GetTextBetween($Content, $ItemStart, $ItemEnd); echo($Item); $MeetItem = new MeetItem(); $MeetItem->Gender = trim(html_entity_decode(GetTextBetween($Item, 'class="kategorie">', 'Gender == 'Hledám partnera') $MeetItem->Gender = Gender::Female; else if ($MeetItem->Gender == 'Hledám partnerku') $MeetItem->Gender = Gender::Male; else $MeetItem->Gender = Gender::Undefined; $MeetItem->Name = trim(html_entity_decode(GetTextBetween($Item, '', ''))); $MeetItem->Time = trim(GetTextBetween($Item, ' ', '')); $MeetItem->Time = HumanDateTimeToTime($MeetItem->Time); $MeetItem->Height = trim(GetTextBetween($Item, "výška:", 'cm')); $MeetItem->Message = trim(html_entity_decode(strip_tags(GetTextBetween($Item, 'data-ft="{"tn":"K"}">', '')))); $MeetItem->Age = GetAgeFromText($MeetItem->Message); $MeetItem->Height = GetHeightFromText($MeetItem->Message); $MeetItem->Weight = GetWeightFromText($MeetItem->Message); $MeetItem->Location = GetLocationFromText($MeetItem->Message); $MeetItem->Email = trim(GetTextBetween($Item, '', '')); $MeetItem->Phone = trim(html_entity_decode(strip_tags(GetTextBetween($Item, 'Telefon:', '')))); if ($MeetItem->Phone == 'neuveden') $MeetItem->Phone = ''; $MeetItem->Link = ''; print_r($MeetItem); die(); $MeetItem->Database = $this->Database; $MeetItem->Source = $this->Id; $this->MeetItems[] = $MeetItem; } return $Output; } }