diff options
author | pzy <pzy@d1sturbed.org> | 2014-05-19 19:53:27 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-08-07 10:44:07 +0200 |
commit | dc15633111473dcd971bde8ad6b712cb0d4ae108 (patch) | |
tree | b2c23d76099b232c8cc7a1baeee94e4be041b932 /apps/files_sharing/templates | |
parent | a72dae6842d6b550ccc8e8eb9a03f6911ae46d18 (diff) | |
download | nextcloud-server-dc15633111473dcd971bde8ad6b712cb0d4ae108.tar.gz nextcloud-server-dc15633111473dcd971bde8ad6b712cb0d4ae108.zip |
Update public.php
added tag to make facebook load a preview picture
Update public.php
add check ifMimeSupported and put the thumbsize in a variable
generate preview for all supported mimes
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r-- | apps/files_sharing/templates/public.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 8406b79cf1a..42103296d87 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -1,4 +1,9 @@ <?php /** @var $l OC_L10N */ ?> +<?php $thumbSize=1024; ?> +<?php if ( \OC\Preview::isMimeSupported($_['mimetype'])): /* This enables preview images for links (e.g. on Facebook, Google+, ...)*/?> + <link rel="image_src" href="<?php p(OCP\Util::linkToRoute( 'core_ajax_public_preview', array('x' => $thumbSize, 'y' => $thumbSize, 'file' => $_['directory_path'], 't' => $_['dirToken']))); ?>" /> +<?php endif; ?> + <div id="notification-container"> <div id="notification" style="display: none;"></div> </div> |