Xen 1 рік тому
батько
коміт
d84cfcee6b
1 змінених файлів з 7 додано та 0 видалено
  1. 7 0
      www/index.php

+ 7 - 0
www/index.php

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