Source for file display.php
Documentation is available at display.php
* @package linea21.modules
* @author Simon Georget <simon@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
include_once(override('../page/' . SQL . '.inc.php'));
* @return $content string
function get_page($page_id, $display_title = true, $display_header = true, $html_title = false, $breadcrumb = false) {
if (!isset ($data[0]['page_title'] )) {
_debug(__FUNCTION__ . ' : no data retrieved (the given ID may be incorrect or the page is not public).');
$title = formatText($data[0]['page_title'], '2HTML');
$posted_on = formatText($data[0]['page_published_date_display'], '2HTML');
$modify_on = formatText($data[0]['page_last_modify_display'], '2HTML');
$posted_by = formatText($data[0]['user_login'], '2HTML');
$statut = $data[0]['page_status'];
$link_user = array('rub' => $GLOBALS['links'][U_L]['user-profile']['linkvalue'], 'id' => $data[0]['page_posted_by'], 'name' => $data[0]['user_login']);
$link_self = array('rub' => $GLOBALS['links'][U_L]['page']['linkvalue'], 'id' => $page_id, 'name' => $title);
if($display_title) $content .= '<h1>' . $title . '</h1>' . END_LINE;
if($display_header) $content .= '<div class="chapo">' . $header . '</div>' . END_LINE;
$content .= '<div class="body">' . $body . '</div>' . END_LINE;
function display_page($page_id, $display_title = true, $display_header = true, $html_title = false, $breadcrumb = false) {
echo get_page($page_id, $display_title, $display_header, $html_title, $breadcrumb);
* @return $content string
$content = '<div class="page-slot slot-'. $page_id. '">';
$content .= get_page($page_id, $display_title, false, false, false);
echo get_page_slot($page_id, $display_title, false, false, false);
* @return $content string
_debug(__FUNCTION__ . ' : no data retrieved (the given ID may be incorrect).');
$title = formatText($data[0]['page_title'], '2HTML');
$link = array('rub' => $GLOBALS['links'][U_L]['page']['linkvalue'], 'id' => $page_id, 'name' => $title);
* @return $content string
$data = $GLOBALS['sql_object']->DBSelect(SQL_getPageTitle($page_id, array('P')));
_debug(__FUNCTION__ . ' : no data retrieved (the given ID may be incorrect).');
$title = formatText($data[0]['page_title'], '2HTML');
|