Well, the trend is now on blogs. On displaying several news in short form on the page, with, when appropriate links to more information.
This is also supported, albeight with few options, in CSE_Display:
Note: blogs are outputted after the basic Body records, but before extra body layers...
News 1(23-01-2008) by This is a very, very important body of news, you know like the sky fell on my head the other day. It's so important that you have a full article. | |
News 3(23-01-2008) This is a very, very important body of news, the problem being only that nobody wanted to take responsability for it. No author... |
News 4 This is a very, very important body of news, this one has not even a date, but is pretty important and has a full article as well. |
News 5 No News, Good News. |
News 2(23-01-2008) by This is a very, very important body of news, but actually it has a low priority. |
The source code for this page:
<?php
require_once 'CSE_display/CSE_display.php';
$myHTML = new CSE_display;
// The headers and footers
$myHTML->setTitle("CSE Display - Blogmania");
$myHTML->setCopyright("Made with CSE_display, © <a href=http://www.cavin.name>CSE</a>, 2008");
$myHTML->setBodyTitle("Trendy display as a blog");
$myHTML->setBodyFooter("Go to the <a href=index8b.php>Next Page</a> or return to the <a href=index7.php>Previous Page</a>");
// The buttons
$myHTML->appendRegion("BUTTON","<a onClick=\"myFunc('Nothing');\" class='button'>Nothing</a>",1);
$myHTML->appendRegion("BUTTON","<a onClick=\"myFunc('Else');\" class='button'>Else</a>",8);
// The body
$myHTML->setBody("<p>Well, the trend is now on blogs. On displaying several news in short form on the page, with, when appropriate links to more information.</p>");
$myHTML->appendBody("<p>This is also supported, albeight with few options, in CSE_Display:</p>");
$myHTML->registerBlogs("News 1", "This is a very, very important body of news, you know like the sky fell on my head the other day. It's so important that you have a full article.", 0, "23-01-2008", "index8.php", "CSE");
$myHTML->registerBlogs("News 2", "This is a very, very important body of news, but actually it has a low priority.", 5, "23-01-2008", "", "CSE");
$myHTML->registerBlogs("News 3", "This is a very, very important body of news, the problem being only that nobody wanted to take responsability for it. No author...", 2, "23-01-2008");
$myHTML->registerBlogs("News 4", "This is a very, very important body of news, this one has not even a date, but is pretty important and has a full article as well.", 3, "", "index8.php");
$myHTML->registerBlogs("News 5", "No News, Good News.", 4);
$myHTML->appendBody("<p><i>Note: blogs are outputted after the basic Body records, but before extra body layers...</i></p><hr>");
$myHTML->appendBody("<br><hr><p>The source code for this page:</p>", 1); // this second parameter 1 makes it print after the blogs...
$myHTML->appendBody(highlight_file(basename(__FILE__), true), 1); // here also...
// THe Javascript
$myHTML->registerJSfunction("myFunc(myVar)", "alert('Javascript with value:'+myVar);");
// The Information Panels
require_once 'infopanels.php';
writePanels($myHTML, basename(__FILE__));
// Dump
$myHTML->dump();
?>