URL);
$BlockStart = 'Novinky:';
$BlockEnd = '';
$Content = GetTextBetween($Content, $BlockStart, $BlockEnd);
if ($Content == '')
{
$Output .= 'Main block not isolated.';
return $Output;
}
$ItemStart = '
';
$ItemEnd = '
';
while (strpos($Content, $ItemStart) !== false)
{
$Item = GetTextBetween($Content, $ItemStart, $ItemEnd);
$NewsItem = new NewsItem();
$NewsItem->Link = 'https://www.zdechov.net';
$NewsItem->Title = GetTextBetween($Item, '', '');
$Date = GetTextBetween($Item, '(', ')');
$NewsItem->Date = HumanDateToTime($Date);
$NewsItem->Category = $this->Category;
$NewsItem->Content = html_entity_decode(GetTextBetween($Item, '
', ''));
$NewsItem->Author = 'Automat';
$NewsItem->Database = $this->Database;
$this->NewsItems[] = $NewsItem;
}
return $Output;
}
}