Merge pull request #10218 from owncloud/pzy-master

Adding link tag to enable facebook timeline previews
This commit is contained in:
Thomas Müller 2014-08-07 12:14:30 +02:00
commit 8b2fe69bb2

View file

@ -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>