{strip} {* don't replicate the surrounding div when inserting ajax content *} {if !$gBitThemes->isAjaxRequest()}
{/if} {if $gContent->mStorage}
{if $uploadTab} {/if} {foreach from=$gContent->mStorage item=storage key=attachmentId name=atts} {if $gBitThemes->isJavascriptEnabled()} {capture name=inputhelp} {/capture} {/if} {/foreach}
{tr}Items {if $libertyUploader && empty($gContent->mContentId)}That Will Be{/if} Attached Directly to this Content{/tr}
{tr}Attachment ID{/tr} {tr}Thumbnail{/tr} {tr}Inclusion Code{/tr} {tr}Actions{/tr}
 
{$storage.attachment_id} {if $storage.is_mime} {include file=$gLibertySystem->getMimeTemplate('storage',$storage.attachment_plugin_guid) thumbsize=small preferences=$gContent->mStoragePrefs.$attachmentId attachment=$storage} {else} {jspopup href=$storage.source_url title=$storage.title|default:$storage.filename notra=1 img=$storage.thumbnail_url.avatar}
{$storage.filename} {$storage.file_size|display_bytes} {if $smarty.foreach.atts.first} {formhelp note="click to see large preview"} {/if} {/if}
{if $gBitThemes->isJavascriptEnabled()} {else} {$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} {if $uploadTab} {* these radio buttons can not be displayed twice in the same form due to interference in $_REQUEST *}
{/if} {if $gBitUser->isAdmin() || ($storage.user_id == $gBitUser->mUserId && $gBitUser->hasPermission('p_liberty_delete_attachments') ) } {capture name=urlArgs}{$attachmentBaseArgs}content_id={$gContent->mContentId}{if empty($gContent->mContentId)}{foreach from=$gContent->mStorage key=key item=val}&STORAGE[existing][{$val.attachment_id}]={$val.attachment_id}{/foreach}{/if}{/capture} {if $libertyUploader || $gBitSystem->getConfig('liberty_attachment_style') == 'ajax'} {biticon ipackage="icons" iname="edit-delete" iexplain="delete"} {else} {if $storage.is_mime} {biticon ipackage="icons" iname="document-open" iexplain="View"} {/if} {biticon ipackage="icons" iname="edit-delete" iexplain="Delete"} {/if} {/if}
{formhelp note="copy this code into your edit window to embed the file into your text"}
{/if} {if !$gBitThemes->isAjaxRequest()}
{/if} {/strip}