vnd.oasis.opendocument.spreadsheet.php 597 B

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