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