Ver Fonte

trying get_category

Xen há 1 ano atrás
pai
commit
8e02540591
1 ficheiros alterados com 4 adições e 3 exclusões
  1. 4 3
      www/index.php

+ 4 - 3
www/index.php

@@ -109,7 +109,6 @@ function clean_str($str) {
 			<h3 style="font-size: 5;"><a href="<?php echo 'article.php?loc=' . $loc . '&a=' . $item->get_permalink(); ?>"><?php echo clean_str($item->get_title()); ?></a></h3>
 			<p style="font-size: 4;">
 			<?php 
-				$source = clean_str($item->get_source());
 				$subheadlines = clean_str($item->get_description());
 				$remove_google_link = explode("<li><strong>", $subheadlines);
 				$no_blank = str_replace('target="_blank"', "", $remove_google_link[0]) . "</li></ol></font></p>"; 
@@ -125,9 +124,11 @@ function clean_str($str) {
 				<?php 
 					echo $item->get_date('j F Y | g:i a');
 				?>
-				on the site
+				|
 				<?php 
-					echo clean_str($item->get_source());
+					echo clean_str($item->get_source()); 
+					echo '|';
+					echo clean_str($item->get_category(0));
 				?>
 			</p>