|
@@ -105,14 +105,14 @@ function clean_str($str) {
|
|
*/
|
|
*/
|
|
foreach ($feed->get_items() as $item):
|
|
foreach ($feed->get_items() as $item):
|
|
$item_title = clean_str($item->get_title());
|
|
$item_title = clean_str($item->get_title());
|
|
|
|
+ $item_link = "article.php?loc=" . $loc . '&a=' . $item->get_permalink();
|
|
|
|
|
|
if (str_contains(strtoupper($item_title), strtoupper("sports")))
|
|
if (str_contains(strtoupper($item_title), strtoupper("sports")))
|
|
{
|
|
{
|
|
- echo '<h3 style="font-size: 1;">⚽ 🏀 🏈 ⚾️ 🎾 🏐 🏉 🎱 🏆 🏟 ⛹️ happened</h3>'; // 🧒 👦 👦 👨👦👦
|
|
|
|
|
|
+ echo '<font size="1">⚽ 🏀 🏈 ⚾️ 🎾 🏐 🏉 🎱 🏆 🏟 ⛹️ <a href="$item_link">happened</a></font>'; // 🧒 👦 👦 👨👦👦
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
- $item_link = "article.php?loc=" . $loc . '&a=' . $item->get_permalink();
|
|
|
|
$subheadlines = clean_str($item->get_description());
|
|
$subheadlines = clean_str($item->get_description());
|
|
|
|
|
|
$remove_google_link = explode("<li><strong>", $subheadlines);
|
|
$remove_google_link = explode("<li><strong>", $subheadlines);
|