Return the full URL to the attached image.
public getAttachmentUrl ( ) : string | ||
return | string |
/left_arrow.png" BORDER="0"></td> <td><a href="<?php echo camp_html_article_url($articleObj, $f_language_id, "edit.php"); ?> "><b><?php echo $translator->trans("Back to Edit Article"); ?> </b></a></td> </table> <P> <?php if (strstr($attachmentObj->getMimeType(), "image/") && (strstr($_SERVER['HTTP_ACCEPT'], $attachmentObj->getMimeType()) || strstr($_SERVER['HTTP_ACCEPT'], "*/*"))) { ?> <div class="indent"> <IMG SRC="<?php echo $attachmentObj->getAttachmentUrl(); ?> " style="max-width: 600px;" BORDER="0" ALT="<?php echo htmlspecialchars($attachmentObj->getDescription($f_language_selected)); ?> "> </div> <P> <?php } ?> <FORM NAME="dialog" METHOD="POST" ACTION="/<?php echo $ADMIN; ?> /articles/files/do_edit.php" > <?php
<p class="dates"><?php putGS('Created'); ?> : <?php echo $object->getTimeCreated(); ?> , <?php putGS('Last modified'); ?> : <?php echo $object->getLastModified(); ?> </p> <?php echo new MediaPlayer($object->getAttachmentUrl() . '?g_show_in_browser=1', $object->getMimeType()); ?> <dl class="attachment"> <dt><?php putGS('Type'); ?> :</dt> <dd><?php echo $object->getMimeType(); ?> </dd> <dt><?php putGS('Size'); ?>
$crumbs[] = array(getGS("Attachments"), ""); $crumbs[] = array($title, ""); echo camp_html_breadcrumbs($crumbs); } ?> <table cellpadding="1" cellspacing="0" class="action_buttons" style="padding-top: 10px;"> <tr> <td><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/left_arrow.png" BORDER="0"></td> <td><a href="<?php echo camp_html_article_url($articleObj, $f_language_id, "edit.php"); ?>"><b><?php putGS("Back to Edit Article"); ?></b></a></td> </table> <P> <?php if (strstr($attachmentObj->getMimeType(), "image/") && (strstr($_SERVER['HTTP_ACCEPT'], $attachmentObj->getMimeType()) || (strstr($_SERVER['HTTP_ACCEPT'], "*/*")))) { ?> <div class="indent"> <IMG SRC="<?php echo $attachmentObj->getAttachmentUrl(); ?>" BORDER="0" ALT="<?php echo htmlspecialchars($attachmentObj->getDescription($f_language_selected)); ?>"> </div> <P> <?php } ?> <FORM NAME="dialog" METHOD="POST" ACTION="do_edit.php" > <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="6" class="table_input" width="400px"> <TR> <TD COLSPAN="2"> <B><?php p($title); ?></B> <HR NOSHADE SIZE="1" COLOR="BLACK"> </TD> </TR> <TR> <TD ALIGN="RIGHT"><?php putGS('File Name'); ?>:</TD> <TD><?php echo htmlspecialchars($attachmentObj->getFileName()); ?> <A HREF="/attachment/<?php p(basename($attachmentObj->getStorageLocation())); ?>"><IMG
/left_arrow.png" BORDER="0"></td> <td><a href="<?php echo camp_html_article_url($articleObj, $f_language_id, "edit.php"); ?> "><b><?php putGS("Back to Edit Article"); ?> </b></a></td> </table> <P> <?php if (strstr($attachmentObj->getMimeType(), "image/") && (strstr($_SERVER['HTTP_ACCEPT'], $attachmentObj->getMimeType()) || strstr($_SERVER['HTTP_ACCEPT'], "*/*"))) { ?> <div class="indent"> <IMG SRC="<?php echo $attachmentObj->getAttachmentUrl(); ?> " BORDER="0" ALT="<?php echo htmlspecialchars($attachmentObj->getDescription($f_language_selected)); ?> "> </div> <P> <?php } ?> <FORM NAME="dialog" METHOD="POST" ACTION="/<?php echo $ADMIN; ?> /articles/files/do_edit.php" > <?php