summaryrefslogtreecommitdiff
path: root/view_component_details.php
blob: 4c473cba71daa75d2fd23bebb1fe1ab5bf0892f3 (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: /cvsroot/bitweaver/_bit_stock/view_component_details.php,v 1.1 2010/11/11 22:58:23 spiderr Exp $
 * @package stock
 * @subpackage functions
 */

/**
 * required setup
 */
require_once '../kernel/includes/setup_inc.php';

$gBitSystem->verifyPackage( 'stock' );

global $gBitSystem, $gDebug;

include_once STOCK_PKG_INCLUDE_PATH.'component_lookup_inc.php';

$displayHash = [ 'perm_name' => 'p_stock_view' ];
$gContent->invokeServices( 'content_display_function', $displayHash );
$gContent->addHit();

if( is_object( $gGallery ) && $gGallery->isCommentable() ) {
	$commentsParentId = $gContent->mContentId;
	$comments_vars = [ 'stockcomponent' ];
	$comments_prefix_var='stockcomponent:';
	$comments_object_var='stockcomponent';
	$comments_return_url = STOCK_PKG_URL."view_component.php?content_id=".$gContent->mContentId;
	include_once LIBERTY_PKG_INCLUDE_PATH.'comments_inc.php';
}

$gBitSmarty->display( 'bitpackage:stock/view_component_details.tpl' );