Ver código fonte

small sports

Xen 1 ano atrás
pai
commit
a07f201f90
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      www/index.php

+ 2 - 2
www/index.php

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