'155', '160-170cm' => '165', '170-180cm' => '175', '180-190cm' => '185', '> 190cm' => '195', ); $AgeTags = array( 'věk 19-24' => '22', 'věk 25-30' => '27', 'věk 31-39' => '35', 'věk 40-49' => '45', 'věk 50+' => '55', ); $LevelTags = array( 'Začátečník' => 'Začátečník', 'Mírně pokročilý' => 'Mírně pokročilý', 'Pokročilý' => 'Pokročilý', 'Více pokročilý' => 'Více pokročilý', 'Profi' => 'Profi', 'Master' => 'Master', ); class MeetSourceAmblar extends MeetSource { function Import(): string { $Output = parent::Import(); $this->AddTimeInterval = 24 * 60 * 60; $Content = file_get_contents($this->URL); //echo($Content); $BlockStart = '
Link = trim(GetTextBetween($Item, 'Title = trim(GetTextBetween($Item, 'rel="bookmark">', '')); $MeetItem->Gender = trim(GetTextBetween($Item, 'class="dwqa-status status-search-dancer">', '')); if ($MeetItem->Gender == 'Inzerent hledá tanečníka') $MeetItem->Gender = Gender::Female; else $MeetItem->Gender = Gender::Male; $MeetItem->Name = trim(GetTextBetween($Item, '', '')); $Type = trim(GetTextBetween($Item, ' ', ' ')); if ($Type == 'odpovězeno') continue; $MeetItem->Time = trim(GetTextBetween($Item, '', '')); if (mb_substr($MeetItem->Time, 0, 4) == 'před') { $Parts = explode(' ', $MeetItem->Time); if ($Parts[2] == 'hours') $MeetItem->Time = strtotime("-".$Parts[1]." hours"); else if ($Parts[2] == 'dní') $MeetItem->Time = strtotime("-".$Parts[1]." days"); else if ($Parts[2] == 'dny') $MeetItem->Time = strtotime("-".$Parts[1]." days"); } else $MeetItem->Time = HumanDateToTime($MeetItem->Time); $MeetItem->Email = ''; $MeetItem->Message = ''; $MeetItem->Phone = ''; $MeetItem->Height = ''; $MeetItem->Weight = ''; $MeetItem->Age = ''; $MeetItem->Location = ''; $MeetItem->Database = $this->Database; $MeetItem->Source = $this->Id; $Output .= $this->ImportItem($MeetItem); $this->MeetItems[] = $MeetItem; } return $Output; } function ImportItem(MeetItem &$MeetItem): string { global $HeightTags, $AgeTags, $LevelTags; $Output = ''; $Content = file_get_contents($MeetItem->Link); $BlockStart = '
'; $BlockEnd = '