1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <head>
- </head>
- <?php
- /**
- * First, get Publisher ID, URL and Setting
- */
- $power_setting = elgg_get_plugin_setting('power', 'webodf_elgg');
- $date = new DateTime();
- $download_url = elgg_get_site_url() . "webodf_elgg/{$vars['entity']->getGUID()}/{$date->format('U')}";
- $js_url = elgg_get_site_url();
- if ($power_setting == 1)
- {
- echo <<<HTML
- <div class="file-photo">
-
- </body>
-
- <iframe src = "$js_url/mod/webodf_elgg/vendors/ViewerJS/#$download_url" width='700' height='550' allowfullscreen webkitallowfullscreen></iframe>
- </html>
- </br>
- </br>
- </br>
- </div>
- HTML;
- }
-
|