vnd.oasis.opendocument.text.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <head>
  2. <link rel="stylesheet" type="text/css" href="<?php echo elgg_get_site_url(); ?>mod/webodf_elgg/vendors/webodf/demo-viewer.css" media="screen"/>
  3. <script src="<?php echo elgg_get_site_url(); ?>mod/webodf_elgg/vendors/webodf/webodf.js" type="text/javascript" charset="utf-8"></script>
  4. <script src="<?php echo elgg_get_site_url(); ?>mod/webodf_elgg/vendors/webodf/demo-viewer.js" type="text/javascript" charset="utf-8"></script>
  5. </head>
  6. <?php
  7. /**
  8. * First, get Publisher ID, URL and Setting
  9. */
  10. $wordc_setting = elgg_get_plugin_setting('wordc', 'webodf_elgg');
  11. $date = new DateTime();
  12. $download_url = elgg_get_site_url() . "webodf_elgg/{$vars['entity']->getGUID()}/{$date->format('U')}";
  13. $js_url = elgg_get_site_url();
  14. if ($wordc_setting == 1)
  15. {
  16. echo <<<HTML
  17. <div class="file-photo">
  18. </body>
  19. <iframe src = "$js_url/mod/webodf_elgg/vendors/ViewerJS/#$download_url" width='700' height='550' allowfullscreen webkitallowfullscreen></iframe>
  20. </html>
  21. </br>
  22. </br>
  23. </br>
  24. </div>
  25. HTML;
  26. }