pdf.php 620 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <head>
  2. </head>
  3. <?php
  4. /**
  5. * First, get Publisher ID, URL and Setting
  6. */
  7. $power_setting = elgg_get_plugin_setting('power', 'webodf_elgg');
  8. $date = new DateTime();
  9. $download_url = elgg_get_site_url() . "webodf_elgg/{$vars['entity']->getGUID()}/{$date->format('U')}";
  10. $js_url = elgg_get_site_url();
  11. if ($power_setting == 1)
  12. {
  13. echo <<<HTML
  14. <div class="file-photo">
  15. </body>
  16. <iframe src = "$js_url/mod/webodf_elgg/vendors/ViewerJS/#$download_url" width='700' height='550' allowfullscreen webkitallowfullscreen></iframe>
  17. </html>
  18. </br>
  19. </br>
  20. </br>
  21. </div>
  22. HTML;
  23. }