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' );