{php} include (LIBERTY_PKG_PATH."edit_storage_inc.php"); {/php} {strip} {if $gContent->mStorage}
{if $attachmentBrowser} {else} {/if} {foreach from=$gContent->mStorage item=storage key=attachmentId name=atts} {/foreach}
{tr}Your Attachments{/tr}{tr}Items {if $libertyUploader && empty($gContent->mContentId)}That Will Be{/if} Attached Directly to this Content{/tr}
{tr}Thumbnail{/tr} {tr}File Properties{/tr} {tr}Inclusion Code{/tr}
{jspopup href=$storage.source_url title=$storage.title|default:$storage.filename notra=1 img=$storage.thumbnail_url.avatar} {if $smarty.foreach.atts.first} {formhelp note="click to see large preview"} {/if} Attachment ID: {$attachmentId}
Filename: {$storage.filename}
Actions: {if ($gBitUser->isAdmin() || $gBitUser->hasPermission( 'p_liberty_detach_attachment' ) || $storage.user_id == $gBitUser->mUserId) && !empty($gContent->mContentId)} {if $attachmentBrowser} {if in_array($gContent->mContentId, $storage.attached_to)} {biticon ipackage=icons iname="edit-cut" iexplain="detach"} {/if} {elseif $libertyUploader or $gBitSystem->getConfig('liberty_attachment_style') == 'ajax'} {biticon ipackage=icons iname="edit-cut" iexplain="detach"} {else} {biticon ipackage=icons iname="edit-cut" iexplain="detach"} {/if} {/if} {if $gBitUser->isAdmin() || $storage.user_id == $gBitUser->mUserId} {if $attachmentBrowser} {biticon ipackage="icons" iname="edit-delete" iexplain="delete"} {elseif $libertyUploader || $gBitSystem->getConfig('liberty_attachment_style') == 'ajax'} {biticon ipackage="icons" iname="edit-delete" iexplain="delete"} {else} {biticon ipackage="icons" iname="edit-delete" iexplain="delete"} {/if} {/if}
{$storage.wiki_plugin_link} {if $smarty.foreach.atts.first} {formhelp note="copy this code into your edit window to embed the file into your text"} {/if}
{/if} {/strip}