summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-04-02 09:56:41 +0100
committerlsces <lester@lsces.co.uk>2026-04-02 09:56:41 +0100
commit2e132cbab719b9d1ff93ce932096e6a21b6c8977 (patch)
tree096377e7f1647fe6f4fc59f5b3cfaf984f29ad5b /templates
parentcb8a70fed8e6667a3b6f61e090786b6cd2f67216 (diff)
downloadliberty-2e132cbab719b9d1ff93ce932096e6a21b6c8977.tar.gz
liberty-2e132cbab719b9d1ff93ce932096e6a21b6c8977.tar.bz2
liberty-2e132cbab719b9d1ff93ce932096e6a21b6c8977.zip
Cull unused plugins. Flash is no longer available and pdfx thumbnails have been sorted in non-flash version of pdf plugin
Diffstat (limited to 'templates')
-rw-r--r--templates/mime/flash/inline.tpl17
-rw-r--r--templates/mime/flash/view.tpl25
-rwxr-xr-xtemplates/mime/pdfx/view.tpl11
3 files changed, 0 insertions, 53 deletions
diff --git a/templates/mime/flash/inline.tpl b/templates/mime/flash/inline.tpl
deleted file mode 100644
index d2d1eba..0000000
--- a/templates/mime/flash/inline.tpl
+++ /dev/null
@@ -1,17 +0,0 @@
-<div class="item">
- {* this should really get a max h or w and base size on the bounding box -or- even better would be to thumbnail swfs for list views*}
- {assign var=height value=$attachment.preferences.height}
- {assign var=width value=$attachment.preferences.width}
- {assign var=size value=$smarty.request.size|default:medium}
- {assign var=swfwidth value=$gThumbSizes.$thumbsize.width}
- {math assign=multiplier equation="$swfwidth/$width"}
- {math assign=swfheight equation="round($height*$multiplier)"}
- <object width="{$swfwidth}" height="{$swfheight}">
- <param name="movie" value="{$attachment.source_url}" />
- <embed src="{$attachment.source_url}" width="{$swfwidth}" height="{$swfheight}">
- </embed>
- <img src="{$smarty.const.LIBERTY_PKG_URL}templates/noflash.container.gif" width="200" height="100" alt="" />
- </object>
- <br />
- <a href="{$attachment.display_url}">View SWF</a>
-</div>
diff --git a/templates/mime/flash/view.tpl b/templates/mime/flash/view.tpl
deleted file mode 100644
index 586ede8..0000000
--- a/templates/mime/flash/view.tpl
+++ /dev/null
@@ -1,25 +0,0 @@
-{strip}
-<div class="form-group aligncenter">
- {* this should really get a max h or w and base size on the bounding box *}
- {assign var=height value=$attachment.preferences.height}
- {assign var=width value=$attachment.preferences.width}
- {assign var=size value=$smarty.request.size|default:medium}
- {assign var=swfwidth value=$gThumbSizes.$size.width}
- {math assign=multiplier equation="$swfwidth/$width"}
- {math assign=swfheight equation="round($height*$multiplier)"}
- <object width="{$swfwidth}" height="{$swfheight}">
- <param name="movie" value="{$attachment.source_url}" />
- <embed src="{$attachment.source_url}" width="{$swfwidth}" height="{$swfheight}">
- </embed>
- <img src="{$smarty.const.LIBERTY_PKG_URL}templates/noflash.container.gif" width="200" height="100" alt="" />
- </object>
-</div>
-<div class="pagination">
- {tr}View other sizes{/tr}<br />
- {foreach name=size key=size from=$attachment.thumbnail_url item=url}
- <a href="{$attachment.display_url|escape}{if strpos($attachment.display_url,'?')}&amp;{else}?{/if}size={$size}">{tr}{$size}{/tr}</a>
- {if !$smarty.foreach.size.last}&nbsp;&bull;&nbsp;{/if}
- {/foreach}
-</div>
-{/strip}
-{include file="bitpackage:liberty/mime_meta_inc.tpl"}
diff --git a/templates/mime/pdfx/view.tpl b/templates/mime/pdfx/view.tpl
deleted file mode 100755
index bac144a..0000000
--- a/templates/mime/pdfx/view.tpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{strip}
-{if !empty($attachment.source_file)}
- <div id="pdf-container" style="width: 100%; height: 600px;"></div>
- <script>PDFObject.embed("{$smarty.const.BIT_ROOT_URI}{$attachment.source_url}", "#pdf-container");</script>
- </div>
-
- {include file="bitpackage:liberty/mime_meta_inc.tpl"}
-{else}
- {include file=$gLibertySystem->getMimeTemplate('view', $smarty.const.LIBERTY_DEFAULT_MIME_HANDLER)}
-{/if}
-{/strip}