if ( !isset($_GET['page_id']) and !isset($_GET['post_id']) and !isset($_GET['category']) and !isset($_GET['tag']) ) { echo displaySidebarContent( $dbLink, TRUE, '', '', $assetPath ); } elseif ( isset($_GET['page_id']) and is_numeric($_GET['page_id']) ) { echo displaySidebarContent( $dbLink, FALSE, $_GET['page_id'], 'page', $assetPath ); } elseif ( isset($_GET['post_id']) and is_numeric($_GET['post_id']) ) { echo displaySidebarContent( $dbLink, FALSE, $_GET['post_id'], 'post', $assetPath ); } elseif ( isset($_GET['category']) or isset($_GET['tag']) ) { echo displaySidebarContent( $dbLink, FALSE, '', 'post', $assetPath ); } ?>