articles
[ class tree: articles ] [ index: articles ] [ all elements ]

Source for file display_article_inc.php

Documentation is available at display_article_inc.php

  1. <?php
  2. /**
  3.  * @version $Header$
  4.  * @package articles
  5.  * @subpackage functions
  6.  */
  7.  
  8. /**
  9.  * Initialization
  10.  */
  11. $gBitSmarty->assign_by_ref'article'$gContent->mInfo );
  12.  
  13. // get all the services that want to display something on this page
  14. $displayHash array'perm_name' => 'p_articles_read' );
  15. $gContent->invokeServices'content_display_function'$displayHash );
  16.  
  17. $gBitSmarty->assign_by_ref'topics'$topics );
  18.  
  19. // Comments engine!
  20. if@$gContent->mInfo['allow_comments'== 'y' {
  21.     $comments_vars Array'article' );
  22.     $comments_prefix_var='article:';
  23.     $comments_object_var='article';
  24.     $commentsParentId $gContent->mContentId;
  25.     $comments_return_url $_SERVER['SCRIPT_NAME']."?article_id=".$_REQUEST['article_id'];
  26.     include_onceLIBERTY_PKG_PATH.'comments_inc.php' );
  27. }
  28.  
  29. // Display the Index Template
  30. $gBitSystem->display'bitpackage:articles/read_article.tpl'@$gContent->mInfo['title'array'display_mode' => 'display' ));

Documentation generated on Wed, 29 Jul 2015 13:56:22 +0000 by phpDocumentor 1.5.0-lsces