Skip to content

Commit

Permalink
3d viewer template changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nczirjak-acdh committed Apr 25, 2020
1 parent 51c4e11 commit 0308b8b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/Helper/DisseminationServicesHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private function threeDDissService() {
if ($extension == "nxs" || $extension == "ply") {
if (!empty($filename)) {
$dir = str_replace(".", "_", $filename);
$tmpDir = $_SERVER['DOCUMENT_ROOT'].'/sites/default/files/'.$dir.'/';
$tmpDir = \Drupal::service('file_system')->realpath(file_default_scheme() . "://")."/".$dir."/";
//if the file dir is not exists then we will create it
// and we will download the file
if (!file_exists($tmpDir) || !file_exists($tmpDir.'/'.$filename)) {
Expand Down
36 changes: 18 additions & 18 deletions templates/acdh-repo-ds-3d-viewer.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@


<!--STYLESHEET-->
<link type="text/css" rel="stylesheet" href="/browser/modules/custom/acdh_repo_gui/css/3d/3dhop.css"/>
<link type="text/css" rel="stylesheet" href="/browser/modules/contrib/arche-gui/css/3d/3dhop.css"/>
<!--SPIDERGL-->
<script type="text/javascript" src="/browser/modules/custom/acdh_repo_gui/js/3d/spidergl.js"></script>
<script type="text/javascript" src="/browser/modules/contrib/arche-gui/js/3d/spidergl.js"></script>
<!--JQUERY-->
<script type="text/javascript" src="/browser/modules/custom/acdh_repo_gui/js/3d/jquery.js"></script>
<script type="text/javascript" src="/browser/modules/contrib/arche-gui/js/3d/jquery.js"></script>
<!--PRESENTER-->
<script type="text/javascript" src="/browser/modules/custom/acdh_repo_gui/js/3d/presenter.js"></script>
<script type="text/javascript" src="/browser/modules/contrib/arche-gui/js/3d/presenter.js"></script>
<!--3D MODELS LOADING AND RENDERING-->
<script type="text/javascript" src="/browser/modules/custom/acdh_repo_gui/js/3d/nexus.js"></script>
<script type="text/javascript" src="/browser/modules/custom/acdh_repo_gui/js/3d/ply.js"></script>
<script type="text/javascript" src="/browser/modules/contrib/arche-gui/js/3d/nexus.js"></script>
<script type="text/javascript" src="/browser/modules/contrib/arche-gui/js/3d/ply.js"></script>
<!--TRACKBALLS-->
<script type="text/javascript" src="/browser/modules/custom/acdh_repo_gui/js/3d/trackball_sphere.js"></script>
<script type="text/javascript" src="/browser/modules/custom/acdh_repo_gui/js/3d/trackball_turntable.js"></script>
<script type="text/javascript" src="/browser/modules/custom/acdh_repo_gui/js/3d/trackball_turntable_pan.js"></script>
<script type="text/javascript" src="/browser/modules/custom/acdh_repo_gui/js/3d/trackball_pantilt.js"></script>
<script type="text/javascript" src="/browser/modules/contrib/arche-gui/js/3d/trackball_sphere.js"></script>
<script type="text/javascript" src="/browser/modules/contrib/arche-gui/js/3d/trackball_turntable.js"></script>
<script type="text/javascript" src="/browser/modules/contrib/arche-gui/js/3d/trackball_turntable_pan.js"></script>
<script type="text/javascript" src="/browser/modules/contrib/arche-gui/js/3d/trackball_pantilt.js"></script>
<!--UTILITY-->
<script type="text/javascript" src="/browser/modules/custom/acdh_repo_gui/js/3d/init.js"></script>
<script type="text/javascript" src="/browser/modules/contrib/arche-gui/js/3d/init.js"></script>

<div>
{% if basic.getRepoId() %}
Expand All @@ -37,13 +37,13 @@

<div id="3dhop" class="tdhop" onmousedown="if (event.preventDefault) event.preventDefault()"><div id="tdhlg"></div>
<div id="toolbar">
<img id="home" title="Home" src="/browser/modules/custom/acdh_repo_gui/images/viewer/home.png" /><br/>
<img id="zoomin" title="Zoom In" src="/browser/modules/custom/acdh_repo_gui/images/viewer/zoomin.png" /><br/>
<img id="zoomout" title="Zoom Out" src="/browser/modules/custom/acdh_repo_gui/images/viewer/zoomout.png"/><br/>
<img id="light_on" title="Disable Light Control" src="/browser/modules/custom/acdh_repo_gui/images/viewer/light_on.png" style="position:absolute; visibility:hidden;"/>
<img id="light" title="Enable Light Control" src="/browser/modules/custom/acdh_repo_gui/images/viewer/light.png"/><br/>
<img id="full_on" title="Exit Full Screen" src="/browser/modules/custom/acdh_repo_gui/images/viewer/full_on.png" style="position:absolute; visibility:hidden;"/>
<img id="full" title="Full Screen" src="/browser/modules/custom/acdh_repo_gui/images/viewer/full.png" />
<img id="home" title="Home" src="/browser/modules/contrib/arche-gui/images/viewer/home.png" /><br/>
<img id="zoomin" title="Zoom In" src="/browser/modules/contrib/arche-gui/images/viewer/zoomin.png" /><br/>
<img id="zoomout" title="Zoom Out" src="/browser/modules/contrib/arche-gui/images/viewer/zoomout.png"/><br/>
<img id="light_on" title="Disable Light Control" src="/browser/modules/contrib/arche-gui/images/viewer/light_on.png" style="position:absolute; visibility:hidden;"/>
<img id="light" title="Enable Light Control" src="/browser/modules/contrib/arche-gui/images/viewer/light.png"/><br/>
<img id="full_on" title="Exit Full Screen" src="/browser/modules/contrib/arche-gui/images/viewer/full_on.png" style="position:absolute; visibility:hidden;"/>
<img id="full" title="Full Screen" src="/browser/modules/contrib/arche-gui/images/viewer/full.png" />
</div>
<canvas id="draw-canvas" height="500px" />
</div>
Expand Down

0 comments on commit 0308b8b

Please sign in to comment.