diff options
author | zotlabs <mike@macgirvin.com> | 2018-12-03 19:19:31 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-12-03 19:19:31 -0800 |
commit | ffc3dba6825933d8e3ddc1a9a1ee93785acb2fca (patch) | |
tree | 6b42761029370c325064d2790b4c3d8debb7dd38 /include/oembed.php | |
parent | 1acc5ceb5f17b3bd36eeba9245c4bb3923793c34 (diff) | |
parent | 5e14da67e1329947a14cc4f009cebcfe4a5ece2f (diff) | |
download | volse-hubzilla-ffc3dba6825933d8e3ddc1a9a1ee93785acb2fca.tar.gz volse-hubzilla-ffc3dba6825933d8e3ddc1a9a1ee93785acb2fca.tar.bz2 volse-hubzilla-ffc3dba6825933d8e3ddc1a9a1ee93785acb2fca.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into xdev_merge
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-x | include/oembed.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/oembed.php b/include/oembed.php index e5557dc11..426197c5f 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -221,7 +221,11 @@ function oembed_fetch_url($embedurl){ if(strpos(strtolower($embedurl),'.pdf') !== false) { $action = 'allow'; - $j = [ 'html' => '<object data="' . $embedurl . '" type="application/pdf" width="500" height="720">' . '<a href="' . $embedurl . '">' . t('View PDF') . '</a></object>', 'width' => 500, 'height' => 720, 'type' => 'pdf' ]; + $j = [ + 'html' => '<object data="' . $embedurl . '" type="application/pdf" style="width: 100%; height: 300px;"></object>', + 'title' => t('View PDF'), + 'type' => 'pdf' + ]; } |