linea21-modules
[ class tree: linea21-modules ] [ index: linea21-modules ] [ all elements ]

Source for file display.php

Documentation is available at display.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage page
  5.  * @author Simon Georget <simon@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. include_once(override('../page/' SQL '.inc.php'));
  12.  
  13. /**
  14.  * DisplayOnePage()
  15.  * Affichage d'une pageen détail
  16.  *
  17.  * @param  $page_id 
  18.  * @return $stat Nom du statut + echo content
  19.  */
  20. if(!function_exists('DisplayOnePage')) {
  21.  
  22.   function DisplayOnePage($page_id)
  23.   {
  24.     $data $GLOBALS['sql_object']->DBSelect(SQL_getoneCompletePage($page_id));
  25.     $content '';
  26.     if (count($data!= 1exit;
  27.     else {
  28.  
  29.         $title formatText($data[0]['page_title']'2HTML');
  30.         $header linkin_content(formatText($data[0]['page_header']'2HTML'));
  31.         $body linkin_content(formatText($data[0]['page_body']'2HTML'));
  32.         $posted_on formatText($data[0]['page_published_date_display']'2HTML');
  33.         $modify_on formatText($data[0]['page_last_modify_display']'2HTML');
  34.         $posted_by formatText($data[0]['user_login']'2HTML');
  35.         $statut $data[0]['page_status'];
  36.         
  37.       $link_user array('rub' => $GLOBALS['links'][U_L]['user-profile']['linkvalue']'id' => $data[0]['page_posted_by']'name' => $data[0]['user_login']);
  38.       $link_self array('rub' => $GLOBALS['links'][U_L]['page']['linkvalue']'id' => $page_id'name' => $title);
  39.       
  40.       
  41.  
  42.       $content .= '<h1>' $title '</h1>' END_LINE;
  43.  
  44. //       $content .= '<p class="published_by">' . END_LINE;
  45. //       $content .= _t('statut','published_on') . ' ' . $posted_on . ' ';
  46. //       $content .= _t('divers','by').' <a href="' . HrefMaker($link_user) . '" title="' . $GLOBALS['links'][U_L]['user-profile']['desc'] . ' (' . $posted_by . ')">' . $posted_by . '</a>';
  47. //       $content .= formatted_permalink($link_self, ' - ');
  48. //       $content .= '</p>' . END_LINE;
  49.  
  50.       $content .= '<div class="chapo">' $header '</div>' END_LINE;
  51.       $content .= '<div class="body">' $body '</div>' END_LINE;
  52.  
  53.     }
  54.     echo $content;
  55.   }
  56. }
  57.  
  58.  
  59. ?>

Documentation generated on Mon, 08 Apr 2013 18:13:47 +0200 by phpDocumentor 1.4.1