Home « Server software «
Documentation: skins/layout_home_articles_as_newspaper.php
Class Layout_home_articles_as_newspaper extends Layout_interface - Layout articles as newspaper do
The three very first articles are displayed side-by-side, with a thumbnail image if one is present.Subsequent articles are listed below an horizontal line, with text only.
This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com
items_per_page() - The preferred number of items for this layout
function items_per_page()
- returns 11 - One first article, then a row of three, plus 7 other links
Voir aussi:
layout() - List articles as newspaper do
function &layout(&$result, $capability='?')
- &$result - resource the SQL result
- $capability='?' - string '?' or 'A', to support editors and to impersonate associates, where applicable
- returns string the rendered text
Voir aussi:
layout_first() - Layout one of the newest articles
function layout_first($item, $anchor, $dead_line)
- $item - array the article
- $anchor - object the anchor of this article, if any
- $dead_line -
- returns string the rendered text
layout_newest() - Layout one of the newest articles
function layout_newest($item, $anchor)
- $item - array the article
- $anchor - object the anchor of this article, if any
- returns string the rendered text
layout_recent() - Layout one recent article
function layout_recent($item, $anchor, $dead_line)
- $item - array the article
- $anchor - object the anchor of this article, if any
- $dead_line - string the minimum stamp for newest articles
- returns an array ($prefix, $label, $suffix)