\n";
- $sToRender .= "getID() . "&fForDownload=1\"> graphicsUrl/widgets/download.gif\" border=\"0\" /> | \n";
- $sToRender .= "getID()) . "\"> graphicsUrl/widgets/email.gif\" border=\"0\" /> | \n";
- $sToRender .= "getID()) . "\"> graphicsUrl/widgets/history.gif\" border=\"0\" /> | \n";
-
- // display the check in button if the document is checked out
- if ($oDocument->getIsCheckedOut()) {
- $sToRender .= "getID()) . "\"> graphicsUrl/widgets/checkin.gif\" border=\"0\" /> | \n";
- // otherwise display the check out button
- } else {
- $sToRender .= "getID()) . "\"> graphicsUrl/widgets/checkout.gif\" border=\"0\" /> | \n";
- }
-
- // display the unsubscribe button if the user is subscribed to the document
- if (Subscription::exists($_SESSION["userID"], $oDocument->getID(), SubscriptionConstants::subscriptionType("DocumentSubscription"))) {
- $sToRender .= "getID()) . "\"> graphicsUrl/widgets/unsubscribe.gif\" border=\"0\" /> | \n";
- // otherwise display the subscribe button
- } else {
- $sToRender .= "getID()) . "\"> graphicsUrl/widgets/subscribe.gif\" border=\"0\" /> | \n";
- }
-
- $sToRender .= "
\n";
- $sToRender .= "