Grove RanchesGrove Ranches
Grove RanchesGrove Ranches

Vr view prueba

Vr view prueba

June 29, 2023
  1. function twinmotion_embed_responsive($atts) {
  2. ob_start();
  3. ?>
  4. <style>
  5. .twinmotion-embed-wrapper {
  6. position: relative;
  7. padding-bottom: 56.25%;
  8. height: 0;
  9. overflow: hidden;
  10. }
  11.  
  12. .twinmotion-embed-wrapper iframe {
  13. position: absolute;
  14. top: 0;
  15. left: 0;
  16. width: 100%;
  17. height: 100%;
  18. }
  19. </style>
  20. <div class="twinmotion-embed-wrapper">
  21. <div style="padding-bottom: 56.25%; position: relative; height: 0; overflow: hidden;">
  22. <iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"
  23. title="Embedded panorama 'Panorama Set1'" frameborder="0"
  24. allow="fullscreen; gyroscope; accelerometer; magnetometer; execution-while-out-of-viewport; execution-while-not-rendered;"
  25. allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true"
  26. src="https://twinmotion.unrealengine.com/panorama/iDvv4x_kn_9pZ_JD?embed">
  27. </iframe>
  28. </div>
  29. </div>
  30. <?php
  31. return ob_get_clean();
  32. }
  33. add_shortcode('twinmotion_embed', 'twinmotion_embed_responsive');