Latest News Articles

array()); foreach ($informations as $information){ $tmp_pos = strpos($information['title'], ':'); $tmp_begin = substr($information['title'], 0, $tmp_pos); $found = FALSE; foreach (array_keys($list) as $key ){ if (strtolower($tmp_begin) == strtolower($key)){ $tmp_array = array('href' => '', 'title' => '', 'description' => ''); $tmp_array['href'] = $information['href']; $tmp_array['title'] = substr($information['title'], $tmp_pos + 2); $tmp_array['description'] = $information['description']; $list[$key][] = $tmp_array; $found = TRUE; } } } foreach($list as $parent => $child){ foreach(array_reverse($child, true) as $item){ echo '
'; echo '

' . $item['title'] . '

'; $text_tags = $item['description']; $text_no_tags = strip_tags($text_tags); $text = substr($text_no_tags, 0, 700); if (substr($text, -1) == ' ') { $text = substr($text, -1); } $img = preg_match('/src="(.*?)"/', $text_tags, $match); echo '

'; if ($img) { echo '' . $item['title'] . ''; } echo $text; echo '...

'; echo '

Click here to read more