<?php display_news_items($group_id, $max_news_items, $max_news_length,$display_mode, $header_text, $readmore_text, $no_news_text); ?>
echo "<div id=\"mynews\">";display_news_items(0, 3, 15, 1, "Last news", "more...", "no news yet");echo "</div>";
#mynews p {font-size:80%; }
#mynews strong {color:brown; }
#mynews h2 {border:1px dotted brown; margin:5px; padding:0;}
//$data['content_short'] = strip_tags($data['content_short']);
display_news_items(5, 1, -1, 1, "Latest News", "read more", "no news available yet...", true);display_news_items(6, 1, -1, 1, "Latest News", "read more", "no news available yet...", true);
<?php// getting the calling page URL (../webserver/en/home.php)$current_page = $_SERVER['PHP_SELF'];// using regular expression to extract the language part from the URL (/en/, /ge/, /it/...)$language_used = "";if(preg_match('#/(..)/#i', $current_page, $language)) { $language_used = $language[1];}// define text output depending on choosen languageswitch ($language_used) { case "DE": // german language $news_header = "Letzte Nachrichten"; $news_more = "mehr..."; $news_no = "keine Nachrichten vorhanden..."; break; case "EN": // english language $news_header = "Latest News"; $news_more = "read more"; $news_no = "no news available yet..."; break; default: // if LANGUAGE could not be detected $news_header = "Your heading text"; $news_more = "Your more text"; $news_no = "your no new text"; break;} // call the anynews snippetdisplay_news_items(0, 10, -1, 1, $news_header, $news_more, $news_no, true);?>
echo date("m/d/Y", $data[posted_when]);