tour.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <krpano version="1.19" title="{$_lang.title}" debugmode="false">
  2. <!-- xml公用包含文件,设置皮肤,初始化场景,定义公用方法等 -->
  3. <security>
  4. <crossdomainxml url="{$cdn_host}crossdomain.xml"/>
  5. <allowdomain domain="*"/>
  6. </security>
  7. <include url="%SWFPATH%/skin/vtourskin.xml" />
  8. <include url="%SWFPATH%/autorotate.xml" />
  9. <include url="%SWFPATH%/object.xml" />
  10. <contextmenu fullscreen="false" versioninfo="false">
  11. <item name="logo" caption="{$_lang.title}" separator="true" onclick="openurl('{$_lang.host}')" devices="flash|webgl"/>
  12. </contextmenu>
  13. {foreach $plugins as $k => $v}
  14. {if $v.enable eq 1 AND $v.xml }
  15. <include url="%SWFPATH%/../plugin/{$k}/xml/{$v.xml}" />
  16. {/if}
  17. {/foreach}
  18. <action name="startup" autorun="onstart">
  19. {if !empty($startscene)}
  20. set(startscene,'{$startscene}');
  21. {/if}
  22. if(startscene === null OR !scene[get(startscene)],
  23. copy(startscene,scene[0].name); );
  24. if(device.fullscreensupport == true,js(showFullscreenBtn()););
  25. if(device.mobile OR device.tablet,js(hideShareAndFootmarkBtn()););
  26. loadscene(get(startscene), null, MERGE);
  27. if(startactions !== null, startactions() );
  28. </action>
  29. {foreach $scenesRes as $v}
  30. <scene name="scene_{$v.viewuuid}" title="{$v.sceneTitle}" {if $v.album}album="{$v.album}"{/if} onstart="activatespot(90)" thumburl="{$v.imgPath}?{time()}" lat="" lng="" heading="">
  31. <view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" fovmin="5" fovmax="120" vlookatmin="-90" vlookatmax="90" limitview="lookat"/>
  32. <preview url="{$prefix}/{$v.viewuuid}/preview.jpg" />
  33. <image>
  34. <cube url="{$prefix}/{$v.viewuuid}/pano_%s.jpg" />
  35. <cube url="{$prefix}/{$v.viewuuid}/mobile/pano_%s.jpg" devices="mobile" />
  36. </image>
  37. </scene>
  38. {/foreach}
  39. {if $hotspot neq ''}
  40. {assign var="index" value="0"}
  41. {foreach $hotspot as $v}
  42. {if $v.image neq ''}
  43. {foreach $v.image as $v1}
  44. <gallery name="{$v1.galleryName}" >
  45. {foreach $v1.imgs as $v2}
  46. <img name="img_{$index}" url="{$v2.src}" />
  47. {$index = $index+1}
  48. {/foreach}
  49. </gallery>
  50. {/foreach}
  51. {/if}
  52. {/foreach}
  53. {/if}
  54. </krpano>