blob: 4a63de4c5e3b70a665edcdaee4b1d22229f14603 (
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
|
<?php
require_once( "../kernel/setup_inc.php" );
require_once( TAGS_PKG_PATH."LibertyTag.php" );
$gBitSystem->verifyPackage( 'tags' );
$gBitSystem->verifyPermission('p_tags_view');
$tag = new LibertyTag();
$_REQUEST['max_records'] = !empty( $_REQUEST['max_records'] ) ? $_REQUEST['max_records'] : NULL;
$listHash = $_REQUEST;
$tagHash = $_REQUEST;
$gBitSmarty->assign( 'cloud', TRUE );
if( isset($_REQUEST['tags']) ){
$listData = $tag->assignContentList( $listHash );
$tagData = $tag->getList( $tagHash );
$gBitSmarty->assign( 'tagData', $tagData["data"] );
$gBitSmarty->assign( 'tagsReq', $_REQUEST['tags'] );
$gBitSystem->display( 'bitpackage:tags/list_content.tpl', tra( 'Tagged Content' ) , array( 'display_mode' => 'display' ));
}else{
$listData = $tag->getList( $listHash );
$gBitSmarty->assign( 'tagData', $listData["data"] );
$gBitSystem->display( 'bitpackage:tags/list_tags.tpl', tra( 'Tags' ) , array( 'display_mode' => 'display' ));
}
?>
|