Location: PHPKode > projects > Bitweaver > recommends/bit_setup_inc.php
<?php
global $gBitSystem, $gBitSmarty, $gBitThemes;

$registerHash = array(
	'package_name' => 'recommends',
	'package_path' => dirname( __FILE__ ).'/',
	'service' => 'recommendation',
);
$gBitSystem->registerPackage( $registerHash );

if( $gBitSystem->isPackageActive( 'recommends' ) ) {
	require_once( RECOMMENDS_PKG_PATH.'LibertyRecommends.php' );

	// if we are using a text browser theme, make sure not to use ajax
	if( $gBitThemes->getStyle()  == 'lynx' ) {
		$gBitSystem->setConfig( 'recommends_use_ajax', FALSE );
	}

	$menuHash =
		array(
			'package_name' => RECOMMENDS_PKG_NAME,
			'menu_template' => 'bitpackage:recommends/menu_recommends.tpl',
			'index_url' => RECOMMENDS_PKG_URL.'index.php',
			);
	$gBitSystem->registerAppMenu($menuHash);

	$gLibertySystem->registerService( 'recommendation', RECOMMENDS_PKG_NAME, array(
//		'content_display_function'  => 'recommends_content_display',
		'content_load_sql_function' => 'recommends_content_load_sql',
		'content_list_sql_function' => 'recommends_content_list_sql',
		'content_expunge_function'  => 'recommends_content_expunge',
		'content_view_tpl'          => 'bitpackage:recommends/view_recommends_view.tpl',
		'content_nav_tpl'           => 'bitpackage:recommends/view_recommends_nav.tpl',
		'content_body_tpl'          => 'bitpackage:recommends/view_recommends_body.tpl',
		//		'content_list_sort_tpl'     => 'bitpackage:recommends/recommends_list_sort_service.tpl',
		//		'content_list_tpl'          => 'bitpackage:recommends/recommends_list_service.tpl',
	) );
}
?>
Return current item: Bitweaver