WebRotate360_Catalog - Version 2.5.3

Version Notes

This Magento extension is integrated with version 2.5.3 of WebRotate 360 Product Viewer. To upgrade to the latest viewer release when available, please copy the imagerotator folder from the latest redistributable and overwrite the corresponding folder under default skin under WebRotate360.

Download this release

Release Info

Developer Magento Core Team
Extension WebRotate360_Catalog
Version 2.5.3
Comparing to
See all releases


Code changes from version 2.11 to 2.5.3

Files changed (118) hide show
  1. app/code/community/WebRotate360/Catalog/etc/config.xml +9 -8
  2. app/code/community/WebRotate360/Catalog/etc/system.xml +47 -27
  3. app/design/frontend/default/default/layout/wr360_product_view.xml +35 -3
  4. app/design/frontend/default/default/template/webrotate360/catalog/product/view/media.phtml +74 -25
  5. app/etc/modules/WebRotate360_Catalog.xml +4 -0
  6. package.xml +8 -19
  7. skin/frontend/default/default/js/swfobject21.js +0 -5
  8. skin/frontend/default/default/prettyPhoto/css/prettyPhoto.css +1 -0
  9. skin/frontend/default/default/prettyPhoto/images/backgrounds/bodyBackground.jpg +0 -0
  10. skin/frontend/default/default/prettyPhoto/images/backgrounds/checkmark.gif +0 -0
  11. skin/frontend/default/default/prettyPhoto/images/fullscreen/high.gif +0 -0
  12. skin/frontend/default/default/prettyPhoto/images/fullscreen/huge.gif +0 -0
  13. skin/frontend/default/default/prettyPhoto/images/fullscreen/wide.gif +0 -0
  14. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_rounded/btnNext.png +0 -0
  15. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_rounded/btnPrevious.png +0 -0
  16. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_rounded/contentPattern.png +0 -0
  17. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_rounded/default_thumbnail.gif +0 -0
  18. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_rounded/loader.gif +0 -0
  19. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_rounded/sprite.png +0 -0
  20. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_square/btnNext.png +0 -0
  21. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_square/btnPrevious.png +0 -0
  22. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_square/contentPattern.png +0 -0
  23. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_square/default_thumbnail.gif +0 -0
  24. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_square/loader.gif +0 -0
  25. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_square/sprite.png +0 -0
  26. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/btnNext.png +0 -0
  27. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/btnPrevious.png +0 -0
  28. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/contentPatternBottom.png +0 -0
  29. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/contentPatternLeft.png +0 -0
  30. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/contentPatternRight.png +0 -0
  31. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/contentPatternTop.png +0 -0
  32. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/default_thumbnail.gif +0 -0
  33. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/loader.gif +0 -0
  34. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/sprite.png +0 -0
  35. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_rounded/btnNext.png +0 -0
  36. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_rounded/btnPrevious.png +0 -0
  37. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_rounded/default_thumbnail.gif +0 -0
  38. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_rounded/loader.gif +0 -0
  39. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_rounded/sprite.png +0 -0
  40. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_square/btnNext.png +0 -0
  41. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_square/btnPrevious.png +0 -0
  42. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_square/default_thumbnail.gif +0 -0
  43. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_square/loader.gif +0 -0
  44. skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_square/sprite.png +0 -0
  45. skin/frontend/default/default/prettyPhoto/images/thumbnails/flash-logo.png +0 -0
  46. skin/frontend/default/default/prettyPhoto/images/thumbnails/quicktime-logo.gif +0 -0
  47. skin/frontend/default/default/prettyPhoto/images/thumbnails/t_1.jpg +0 -0
  48. skin/frontend/default/default/prettyPhoto/images/thumbnails/t_2.jpg +0 -0
  49. skin/frontend/default/default/prettyPhoto/images/thumbnails/t_3.jpg +0 -0
  50. skin/frontend/default/default/prettyPhoto/images/thumbnails/t_4.jpg +0 -0
  51. skin/frontend/default/default/prettyPhoto/images/thumbnails/t_5.jpg +0 -0
  52. skin/frontend/default/default/prettyPhoto/js/jquery.prettyPhoto.js +835 -0
  53. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_01.jpg +0 -0
  54. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_02.jpg +0 -0
  55. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_03.jpg +0 -0
  56. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_04.jpg +0 -0
  57. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_05.jpg +0 -0
  58. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_06.jpg +0 -0
  59. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_07.jpg +0 -0
  60. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_08.jpg +0 -0
  61. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_09.jpg +0 -0
  62. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_10.jpg +0 -0
  63. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_11.jpg +0 -0
  64. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_12.jpg +0 -0
  65. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_13.jpg +0 -0
  66. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_14.jpg +0 -0
  67. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_15.jpg +0 -0
  68. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_16.jpg +0 -0
  69. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_17.jpg +0 -0
  70. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_18.jpg +0 -0
  71. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_19.jpg +0 -0
  72. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_20.jpg +0 -0
  73. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_21.jpg +0 -0
  74. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_22.jpg +0 -0
  75. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_23.jpg +0 -0
  76. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_24.jpg +0 -0
  77. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_25.jpg +0 -0
  78. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_26.jpg +0 -0
  79. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_27.jpg +0 -0
  80. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_28.jpg +0 -0
  81. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_29.jpg +0 -0
  82. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_30.jpg +0 -0
  83. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_31.jpg +0 -0
  84. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_32.jpg +0 -0
  85. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_33.jpg +0 -0
  86. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_34.jpg +0 -0
  87. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_35.jpg +0 -0
  88. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_36.jpg +0 -0
  89. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/spots/hotspot.png +0 -0
  90. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/spots/logo.png +0 -0
  91. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/spots/spot.swf +0 -0
  92. skin/frontend/default/default/webrotate360/360_assets/SampleShoe/config.xml +147 -0
  93. skin/frontend/default/default/webrotate360/360thumb.png +0 -0
  94. skin/frontend/default/default/webrotate360/frame.html +65 -0
  95. skin/frontend/default/default/webrotate360/imagerotator/html/css/basic.css +167 -0
  96. skin/frontend/default/default/webrotate360/imagerotator/html/css/cusom-js.css +167 -0
  97. skin/frontend/default/default/webrotate360/imagerotator/html/css/custom-color.css +167 -0
  98. skin/frontend/default/default/webrotate360/imagerotator/html/img/basic/left_combined.png +0 -0
  99. skin/frontend/default/default/webrotate360/imagerotator/html/img/basic/load.gif +0 -0
  100. skin/frontend/default/default/webrotate360/imagerotator/html/img/basic/pause_combined.png +0 -0
  101. skin/frontend/default/default/webrotate360/imagerotator/html/img/basic/play_combined.png +0 -0
  102. skin/frontend/default/default/webrotate360/imagerotator/html/img/basic/right_combined.png +0 -0
  103. skin/frontend/default/default/webrotate360/imagerotator/html/img/custom-color/left_combined.png +0 -0
  104. skin/frontend/default/default/webrotate360/imagerotator/html/img/custom-color/load.gif +0 -0
  105. skin/frontend/default/default/webrotate360/imagerotator/html/img/custom-color/pause_combined.png +0 -0
  106. skin/frontend/default/default/webrotate360/imagerotator/html/img/custom-color/play_combined.png +0 -0
  107. skin/frontend/default/default/webrotate360/imagerotator/html/img/custom-color/right_combined.png +0 -0
  108. skin/frontend/default/default/webrotate360/imagerotator/html/img/custom-js/left_combined.png +0 -0
  109. skin/frontend/default/default/webrotate360/imagerotator/html/img/custom-js/load.gif +0 -0
  110. skin/frontend/default/default/webrotate360/imagerotator/html/img/custom-js/pause_combined.png +0 -0
  111. skin/frontend/default/default/webrotate360/imagerotator/html/img/custom-js/play_combined.png +0 -0
  112. skin/frontend/default/default/webrotate360/imagerotator/html/img/custom-js/right_combined.png +0 -0
  113. skin/frontend/default/default/webrotate360/imagerotator/html/js/imagerotator.js +4 -0
  114. skin/frontend/default/default/webrotate360/imagerotator/html/js/jquery-1.4.2.min.js +154 -0
  115. skin/frontend/default/default/webrotate360/imagerotator/html/js/jquery-1.6.1.min.js +18 -0
  116. skin/frontend/default/default/webrotate360/imagerotator/html/js/swfobject.js +777 -0
  117. skin/frontend/default/default/webrotate360/imagerotator/imagerotator.swf +0 -0
  118. skin/frontend/default/default/webrotate360/sample.html +58 -0
app/code/community/WebRotate360/Catalog/etc/config.xml CHANGED
@@ -14,7 +14,7 @@
14
* @category WebRotate 360
15
* @package WebRotate360_Catalog
16
* @author WebRotate 360 LLC
17
- * @copyright Copyright (c) 2010 WebRotate 360 LLC. (http://www.webrotate360.com)
18
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
*/
20
-->
@@ -80,13 +80,14 @@
80
<default>
81
<wr360_product_view>
82
<settings>
83
- <enabled>1</enabled>
84
- <demo_mode>1</demo_mode>
85
- <viewer_path>http://www.webrotate360.com/components/component_magento/magento_demo.swf</viewer_path>
86
- <config_path>http://www.webrotate360.com/components/component_magento</config_path>
87
- <popup_width>300</popup_width>
88
- <popup_height>250</popup_height>
89
- <image_label_id>360view</image_label_id>
90
</settings>
91
</wr360_product_view>
92
</default>
14
* @category WebRotate 360
15
* @package WebRotate360_Catalog
16
* @author WebRotate 360 LLC
17
+ * @copyright Copyright (c) 2011 WebRotate 360 LLC. (http://www.webrotate360.com)
18
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
*/
20
-->
80
<default>
81
<wr360_product_view>
82
<settings>
83
+ <embedded>1</embedded>
84
+ <lightboxgal>1</lightboxgal>
85
+ <popup_width>280</popup_width>
86
+ <popup_height>280</popup_height>
87
+ <margins>0px 0px 20px 0px</margins>
88
+ <border>1px solid #EBEBEB</border>
89
+ <jsonly>0</jsonly>
90
+ <license></license>
91
</settings>
92
</wr360_product_view>
93
</default>
app/code/community/WebRotate360/Catalog/etc/system.xml CHANGED
@@ -14,7 +14,7 @@
14
* @category WebRotate 360
15
* @package WebRotate360_Catalog
16
* @author WebRotate 360 LLC
17
- * @copyright Copyright (c) 2010 WebRotate 360 LLC. (http://www.webrotate360.com)
18
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
*/
20
-->
@@ -37,43 +37,42 @@
37
<show_in_default>1</show_in_default>
38
<show_in_website>1</show_in_website>
39
<show_in_store>0</show_in_store>
40
<fields>
41
- <enabled translate="label">
42
- <label>Enable 360 Views </label>
43
<frontend_type>select</frontend_type>
44
<source_model>adminhtml/system_config_source_yesno</source_model>
45
<sort_order>1</sort_order>
46
<show_in_default>1</show_in_default>
47
<show_in_website>0</show_in_website>
48
<show_in_store>0</show_in_store>
49
- </enabled>
50
- <demo_mode translate="label">
51
- <label>Demo Mode (applied to all) </label>
52
<frontend_type>select</frontend_type>
53
<source_model>adminhtml/system_config_source_yesno</source_model>
54
- <sort_order>1</sort_order>
55
- <show_in_default>1</show_in_default>
56
- <show_in_website>0</show_in_website>
57
- <show_in_store>0</show_in_store>
58
- </demo_mode>
59
- <viewer_path translate="label">
60
- <label>Viewer SWF Path</label>
61
- <frontend_type>text</frontend_type>
62
- <sort_order>3</sort_order>
63
<show_in_default>1</show_in_default>
64
<show_in_website>0</show_in_website>
65
<show_in_store>0</show_in_store>
66
- </viewer_path>
67
- <config_path translate="label">
68
- <label>Viewer Config Path</label>
69
- <frontend_type>text</frontend_type>
70
- <sort_order>5</sort_order>
71
<show_in_default>1</show_in_default>
72
<show_in_website>0</show_in_website>
73
<show_in_store>0</show_in_store>
74
- </config_path>
75
<popup_width translate="label">
76
- <label>Viewer Width</label>
77
<frontend_type>text</frontend_type>
78
<sort_order>8</sort_order>
79
<show_in_default>1</show_in_default>
@@ -81,21 +80,42 @@
81
<show_in_store>0</show_in_store>
82
</popup_width>
83
<popup_height translate="label">
84
- <label>Viewer Height</label>
85
<frontend_type>text</frontend_type>
86
<sort_order>14</sort_order>
87
<show_in_default>1</show_in_default>
88
<show_in_website>0</show_in_website>
89
<show_in_store>0</show_in_store>
90
</popup_height>
91
- <image_label_id translate="label">
92
- <label>Image Label Key</label>
93
<frontend_type>text</frontend_type>
94
- <sort_order>15</sort_order>
95
<show_in_default>1</show_in_default>
96
<show_in_website>0</show_in_website>
97
<show_in_store>0</show_in_store>
98
- </image_label_id>
99
</fields>
100
</settings>
101
</groups>
14
* @category WebRotate 360
15
* @package WebRotate360_Catalog
16
* @author WebRotate 360 LLC
17
+ * @copyright Copyright (c) 2011 WebRotate 360 LLC. (http://www.webrotate360.com)
18
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
*/
20
-->
37
<show_in_default>1</show_in_default>
38
<show_in_website>1</show_in_website>
39
<show_in_store>0</show_in_store>
40
+ <comment><![CDATA[Thank you for using Magento Extension for WebRotate 360 Product Viewer. Please download our quick Magento User Guide by following this <a href="http://www.webrotate360.com/360_product_viewer_download/Magento.pdf" target="_blank">link</a>. Full viewer documentation is available on our product page <a href="http://www.webrotate360.com/360-product-viewer.html" target="_blank">HERE</a>.]]></comment>
41
<fields>
42
+ <embedded translate="label">
43
+ <label>Embed 360 Views</label>
44
<frontend_type>select</frontend_type>
45
<source_model>adminhtml/system_config_source_yesno</source_model>
46
<sort_order>1</sort_order>
47
<show_in_default>1</show_in_default>
48
<show_in_website>0</show_in_website>
49
<show_in_store>0</show_in_store>
50
+ <comment><![CDATA[If set to NO, the viewer is not shown embedded on a product page in place of the main product image. Instead, a small thumbnail graphic image is added to the end of the image gallery below the main product image. When this thumb is clicked, a Javascript lightbox popup is presented and this is where the configured 360 view is loaded.]]></comment>
51
+ </embedded>
52
+ <jsonly translate="label">
53
+ <label>Use JavaScript 360 Only</label>
54
<frontend_type>select</frontend_type>
55
<source_model>adminhtml/system_config_source_yesno</source_model>
56
+ <sort_order>2</sort_order>
57
<show_in_default>1</show_in_default>
58
<show_in_website>0</show_in_website>
59
<show_in_store>0</show_in_store>
60
+ <comment><![CDATA[Force 360 viewer to show in Javascript mode (no Flash) even when Flash plugin is available.]]></comment>
61
+ </jsonly>
62
+ <lightboxgal translate="label">
63
+ <label>Enable prettyPhoto Gallery</label>
64
+ <frontend_type>select</frontend_type>
65
+ <source_model>adminhtml/system_config_source_yesno</source_model>
66
+ <sort_order>4</sort_order>
67
<show_in_default>1</show_in_default>
68
<show_in_website>0</show_in_website>
69
<show_in_store>0</show_in_store>
70
+ <comment><![CDATA[Enabled or disable prettyPhoto Javascript lightbox for the image gallery below the main product image. This setting has to be set to yes when "Embed 360 Views" is set to no.
71
+ The lightbox will still apply to image gallery even when a product doesn't have 360 view configured.]]></comment>
72
+
73
+ </lightboxgal>
74
<popup_width translate="label">
75
+ <label>Viewer Width (280)</label>
76
<frontend_type>text</frontend_type>
77
<sort_order>8</sort_order>
78
<show_in_default>1</show_in_default>
80
<show_in_store>0</show_in_store>
81
</popup_width>
82
<popup_height translate="label">
83
+ <label>Viewer Height (280)</label>
84
<frontend_type>text</frontend_type>
85
<sort_order>14</sort_order>
86
<show_in_default>1</show_in_default>
87
<show_in_website>0</show_in_website>
88
<show_in_store>0</show_in_store>
89
</popup_height>
90
+
91
+ <margins translate="label">
92
+ <label>CSS Margin (5px 5px 5px 5px)</label>
93
<frontend_type>text</frontend_type>
94
+ <sort_order>24</sort_order>
95
<show_in_default>1</show_in_default>
96
<show_in_website>0</show_in_website>
97
<show_in_store>0</show_in_store>
98
+ </margins>
99
+
100
+ <border translate="label">
101
+ <label>CSS Border (1px solid #cecfd2)</label>
102
+ <frontend_type>text</frontend_type>
103
+ <sort_order>34</sort_order>
104
+ <show_in_default>1</show_in_default>
105
+ <show_in_website>0</show_in_website>
106
+ <show_in_store>0</show_in_store>
107
+ </border>
108
+
109
+ <license translate="label">
110
+ <label>License Path</label>
111
+ <frontend_type>text</frontend_type>
112
+ <sort_order>44</sort_order>
113
+ <show_in_default>1</show_in_default>
114
+ <show_in_website>0</show_in_website>
115
+ <show_in_store>0</show_in_store>
116
+ <comment><![CDATA[Specify absolute URL path to license.lic if you have purchased PRO or Enterprise edition of the WebRotate 360 Product Viewer. Click <a href="http://www.webrotate360.com/360-product-viewer.html" target="_blank">HERE</a> to browse to WebRotate 360 product page for details or to download latest viewer updates and tools.]]></comment>
117
+ </license>
118
+
119
</fields>
120
</settings>
121
</groups>
app/design/frontend/default/default/layout/wr360_product_view.xml CHANGED
@@ -14,7 +14,7 @@
14
* @category WebRotate 360
15
* @package WebRotate360_Catalog
16
* @author WebRotate 360 LLC
17
- * @copyright Copyright (c) 2010 WebRotate 360 LLC. (http://www.webrotate360.com)
18
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
*/
20
-->
@@ -22,11 +22,43 @@
22
<catalog_product_view>
23
24
<reference name="head">
25
- <action method="addItem"><type>skin_js</type><name>js/swfobject21.js</name></action>
26
</reference>
27
28
<reference name="product.info.media">
29
- <action method="setTemplate" ifconfig="wr360_product_view/settings/enabled"><template>webrotate360/catalog/product/view/media.phtml</template></action>
30
</reference>
31
32
</catalog_product_view>
14
* @category WebRotate 360
15
* @package WebRotate360_Catalog
16
* @author WebRotate 360 LLC
17
+ * @copyright Copyright (c) 2011 WebRotate 360 LLC. (http://www.webrotate360.com)
18
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
*/
20
-->
22
<catalog_product_view>
23
24
<reference name="head">
25
+
26
+ <action method="addCss" ifconfig="wr360_product_view/settings/lightboxgal">
27
+ <stylesheet>prettyPhoto/css/prettyPhoto.css</stylesheet>
28
+ </action>
29
+
30
+ <action method="addCss" ifconfig="wr360_product_view/settings/embedded">
31
+ <stylesheet>webrotate360/imagerotator/html/css/basic.css</stylesheet>
32
+ </action>
33
+
34
+ <action method="addItem" ifconfig="wr360_product_view/settings/embedded">
35
+ <type>skin_js</type>
36
+ <name>webrotate360/imagerotator/html/js/swfobject.js</name>
37
+ </action>
38
+
39
+ <action method="addItem" ifconfig="wr360_product_view/settings/embedded">
40
+ <type>skin_js</type>
41
+ <name>webrotate360/imagerotator/html/js/jquery-1.6.1.min.js</name>
42
+ </action>
43
+
44
+ <action method="addItem" ifconfig="wr360_product_view/settings/lightboxgal">
45
+ <type>skin_js</type>
46
+ <name>webrotate360/imagerotator/html/js/jquery-1.6.1.min.js</name>
47
+ </action>
48
+
49
+ <action method="addItem" ifconfig="wr360_product_view/settings/lightboxgal">
50
+ <type>skin_js</type>
51
+ <name>prettyPhoto/js/jquery.prettyPhoto.js</name>
52
+ </action>
53
+
54
+ <action method="addItem" ifconfig="wr360_product_view/settings/embedded">
55
+ <type>skin_js</type>
56
+ <name>webrotate360/imagerotator/html/js/imagerotator.js</name>
57
+ </action>
58
</reference>
59
60
<reference name="product.info.media">
61
+ <action method="setTemplate"><template>webrotate360/catalog/product/view/media.phtml</template></action>
62
</reference>
63
64
</catalog_product_view>
app/design/frontend/default/default/template/webrotate360/catalog/product/view/media.phtml CHANGED
@@ -31,37 +31,45 @@
31
*/
32
?>
33
<?php
34
- $_product = $this->getProduct();
35
- $_helper = $this->helper('catalog/output');
36
- $_demoMode = Mage::getStoreConfig('wr360_product_view/settings/demo_mode');
37
- $_sku = $_product->getSku();
38
39
- if ($_demoMode)
40
- {
41
- $_sku = '1234567890';
42
- }
43
?>
44
45
- <?php if ($_demoMode || strchr($this->getImageLabel(), Mage::getStoreConfig('wr360_product_view/settings/image_label_id'))!= FALSE): ?>
46
47
48
- <div style= "width : <?php echo Mage::getStoreConfig('wr360_product_view/general/popup_width');?>px;
49
- height: <?php echo Mage::getStoreConfig('wr360_product_view/general/popup_height');?>px;
50
- margin: 0px 20px 20px 0px">
51
52
- <script language="javascript" type="text/javascript">
53
- var flashvars = {};
54
- var params = {};
55
- var attributes = {};
56
- flashvars.path = "<?php echo Mage::getStoreConfig('wr360_product_view/settings/config_path')."/".$_sku;?>"
57
- params.scale = "noScale";
58
- params.salign = "lt";
59
- swfobject.embedSWF("<?php echo Mage::getStoreConfig('wr360_product_view/settings/viewer_path');?>", "flashContent", "<?php echo Mage::getStoreConfig('wr360_product_view/settings/popup_width');?>", "<?php echo Mage::getStoreConfig('wr360_product_view/settings/popup_height');?>", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
60
- </script>
61
- <div id="flashContent">
62
- Detecting Flash...
63
- </div>
64
- </div>
65
<?php else: ?>
66
<p class="product-image product-image-zoom">
67
<?php
@@ -77,6 +85,7 @@
77
</div>
78
<img id="zoom_in" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_in.gif') ?>" alt="<?php echo $this->__('Zoom In') ?>" title="<?php echo $this->__('Zoom In') ?>" class="btn-zoom-in" />
79
</div>
80
<script type="text/javascript">
81
//<![CDATA[
82
Event.observe(window, 'load', function() {
@@ -86,3 +95,43 @@
86
</script>
87
88
<?php endif; ?>
31
*/
32
?>
33
<?php
34
35
+ $_product = $this->getProduct();
36
+ $_helper = $this->helper('catalog/output');
37
+ $_embedded = Mage::getStoreConfig('wr360_product_view/settings/embedded');
38
+ $_jsonly = Mage::getStoreConfig('wr360_product_view/settings/jsonly');
39
+ $_360path = $_product->getData('webrotate_path');
40
+ $_lightboxgalOn = Mage::getStoreConfig('wr360_product_view/settings/lightboxgal');
41
+ $_360viewWidth = Mage::getStoreConfig('wr360_product_view/settings/popup_width');
42
+ $_360viewHeight = Mage::getStoreConfig('wr360_product_view/settings/popup_height');
43
+ $_licensePath = Mage::getStoreConfig('wr360_product_view/settings/license');
44
+
45
?>
46
47
+ <?php if ($_embedded && $_360path): ?>
48
+
49
+ <div style="border: <?php echo Mage::getStoreConfig('wr360_product_view/settings/border');?>;
50
+ width : <?php echo $_360viewWidth;?>px;
51
+ height: <?php echo $_360viewHeight;?>px;
52
+ margin: <?php echo Mage::getStoreConfig('wr360_product_view/settings/margins');?>;" >
53
54
+ <div id="wr360PlayerId" class="wr360_player" style="width:100%; height:100%">
55
+ <script language="javascript" type="text/javascript">
56
+ _imageRotator.settings.jsScriptOnly = <?php if ($_jsonly):?> true; <?php else: ?> false; <?php endif; ?>
57
+ _imageRotator.settings.flybyJsMenuFix = true;
58
+ _imageRotator.licenseFileURL = "<?php echo $_licensePath; ?>";
59
+ _imageRotator.settings.swfFileURL = "<?php echo $this->getSkinUrl('webrotate360/imagerotator/imagerotator.swf'); ?>" ;
60
+ _imageRotator.settings.configFileURL = "<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).$_360path;?>";
61
+ _imageRotator.runImageRotator("wr360PlayerId");
62
+ </script>
63
+ </div>
64
+ </div>
65
66
+ <?php elseif ($_lightboxgalOn): ?>
67
+ <p class="product-image">
68
+ <a href="<?php echo (string)Mage::helper('catalog/image')->init($_product, 'image');?> " rel="prettyPhoto[mixed]">
69
+ <img id="image" width="100%" src="<?php echo (string)Mage::helper('catalog/image')->init($_product, 'image'); ?>" alt="<?php echo $this->htmlEscape($this->getImageLabel()); ?>"/>
70
+ </a>
71
+ </p>
72
73
<?php else: ?>
74
<p class="product-image product-image-zoom">
75
<?php
85
</div>
86
<img id="zoom_in" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_in.gif') ?>" alt="<?php echo $this->__('Zoom In') ?>" title="<?php echo $this->__('Zoom In') ?>" class="btn-zoom-in" />
87
</div>
88
+
89
<script type="text/javascript">
90
//<![CDATA[
91
Event.observe(window, 'load', function() {
95
</script>
96
97
<?php endif; ?>
98
+
99
+ <?php if (count($this->getGalleryImages()) > 0): ?>
100
+ <div class="more-views">
101
+ <h2><?php echo $this->__('More Views') ?></h2>
102
+ <ul>
103
+ <?php foreach ($this->getGalleryImages() as $_image): ?>
104
+ <li>
105
+ <?php if ( $_lightboxgalOn): ?>
106
+ <a href="<?php echo (string)Mage::helper('catalog/image')->init($_product, 'image', $_image->getFile()); ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>" rel="prettyPhoto[mixed]"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
107
+ <?php else: ?>
108
+ <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300, height=300, left=0, top=0, location=no, status=yes, scrollbars=yes, resizable=yes'); return false;" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
109
+ <?php endif; ?>
110
+ </li>
111
+ <?php endforeach; ?>
112
+ <?php if (!$_embedded && $_lightboxgalOn && $_360path):?>
113
+ <li>
114
+ <a href="<?php echo $this->getSkinUrl('webrotate360/frame.html').'?iframe=true&width='.$_360viewWidth.'&height='.$_360viewHeight ?>" rel="prettyPhoto[mixed]"><img src="<?php echo $this->getSkinUrl('webrotate360/360thumb.png') ?>" width="56" height="56" alt="" /></a>
115
+ </li>
116
+ <?php endif; ?>
117
+ </ul>
118
+ </div>
119
+ <?php endif; ?>
120
+
121
+ <?php if ( $_lightboxgalOn): ?>
122
+ <script type="text/javascript" charset="utf-8">
123
+
124
+ Magento360IFrameParams = function()
125
+ {
126
+ this.width = "<?php echo $_360viewWidth; ?>";
127
+ this.height = "<?php echo $_360viewHeight; ?>";
128
+ this.configFileURL = "<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).$_360path;?>";
129
+ this.jsonly = "<?php echo $_jsonly; ?>";
130
+ this.licensePath = "<?php echo $_licensePath; ?>";
131
+ }
132
+
133
+ jQuery(document).ready(function(){
134
+ jQuery("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_rounded', overlay_gallery: false, show_title: false, allow_resize: true, animation_speed:'fast'});
135
+ });
136
+ </script>
137
+ <?php endif; ?>
app/etc/modules/WebRotate360_Catalog.xml CHANGED
@@ -11,6 +11,10 @@
11
* obtain it through the world-wide-web, please send an email
12
* to license@magentocommerce.com so we can send you a copy immediately.
13
*
14
*/
15
-->
16
<config>
11
* obtain it through the world-wide-web, please send an email
12
* to license@magentocommerce.com so we can send you a copy immediately.
13
*
14
+ * @category WebRotate 360
15
+ * @package WebRotate360_Catalog
16
+ * @copyright Copyright (c) 2011 WebRotate 360 LLC (http://www.webrotate360.com)
17
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
*/
19
-->
20
<config>
package.xml CHANGED
@@ -1,29 +1,18 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>WebRotate360_Catalog</name>
4
- <version>2.11</version>
5
<stability>stable</stability>
6
- <license>OSL 3.0</license>
7
<channel>community</channel>
8
<extends/>
9
- <summary>Provides Magento integration with WebRotate 360's Product Viewer.</summary>
10
- <description>Provides Magento integration with WebRotate 360's Product Viewer.
11
-
12
- Usage:
13
-
14
- - Install extension via Magento Connect.
15
- - Select System-&gt;Configuration-&gt;Catalog tab-&gt;WebRotate 360 Viewer.
16
- - Select WebRotate 360 Settings and verify that both Enable 360 Views and Demo Mode are set to Yes.
17
- - Navigate to a product page of any existing product in your Magento store to see a demo 360 viewer loaded using sample data from WebRotate360.com.
18
- - Update Viewer SWF Path and Viewer Config Path under WebRotate 360 Viewer Settings to point to the corresponding locations per instructions provided by WebRotate360 and turn the Demo More off.
19
- - Use the default value inside the Image Label Key field under the viewer setting (or create a custom one) and paste it anywhere inside the Label field of the Base Image in the product catalog for those products that have 360 images. The presence of this string/key within the Base Image label serves as a command to replace the default product image with the 360 product viewer.
20
-
21
- For more information, please contact support@webrotate360.com or visit http://www.webrotate360.com</description>
22
- <notes>Released for users of WebRotate 360's Product Viewer. Contact support@webrotate360.com for more information or visit http://www.webrotate360.com</notes>
23
<authors><author><name>Dimitri Bir</name><user>auto-converted</user><email>support@webrotate360.com</email></author></authors>
24
- <date>2010-09-19</date>
25
- <time>05:28:28</time>
26
- <contents><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="js"><file name="swfobject21.js" hash="eaa5417940c71f441b016b12c534665d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="wr360_product_view.xml" hash="e1687f6d98ed7045f68c6f1d2de1103a"/></dir><dir name="template"><dir name="webrotate360"><dir name="catalog"><dir name="product"><dir name="view"><file name="media.phtml" hash="6d55c079cec4b316b12f89efb8bff4cd"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="WebRotate360_Catalog.xml" hash="45b5f2b52f335705468309964fef3e69"/></dir></target><target name="magecommunity"><dir name="WebRotate360"><dir name="Catalog"><dir name="etc"><file name="config.xml" hash="fc1c2e5fe96cb07575bd1ce037740d20"/><file name="system.xml" hash="89acf75576720c276bf38c0be5bf0d3f"/></dir><dir name="Helper"><file name="Data.php" hash="f8fdd5b7e93a6397a9583bf02f7f22fb"/></dir></dir></dir></target></contents>
27
<compatible/>
28
<dependencies/>
29
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>WebRotate360_Catalog</name>
4
+ <version>2.5.3</version>
5
<stability>stable</stability>
6
+ <license uri="http://www.webrotate360.com/360_product_viewer_download/License.pdf">WebRotate 360 Product Viewer Free Edition</license>
7
<channel>community</channel>
8
<extends/>
9
+ <summary>Provides Magento integration with WebRotate 360 Product Viewer</summary>
10
+ <description>Provides Magento integration with WebRotate 360 Product Viewer. For more information please refer to http://www.webrotate360.com/360-product-viewer.html</description>
11
+ <notes>This Magento extension is integrated with version 2.5.3 of WebRotate 360 Product Viewer. To upgrade to the latest viewer release when available, please copy the imagerotator folder from the latest redistributable and overwrite the corresponding folder under default skin under WebRotate360.</notes>
12
<authors><author><name>Dimitri Bir</name><user>auto-converted</user><email>support@webrotate360.com</email></author></authors>
13
+ <date>2011-07-29</date>
14
+ <time>20:45:07</time>
15
+ <contents><target name="mage"><dir name="app"><dir name="design"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="webrotate360"><dir name="catalog"><dir name="product"><dir name="view"><file name="media.phtml" hash="1b540a0e2f8ab96f53204ae544550524"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="wr360_product_view.xml" hash="e2b501b9ed6e64352485b73220b6f47d"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="prettyPhoto"><dir name="css"><file name="prettyPhoto.css" hash="efa0be8589ca9016d643d5d1dc4f51af"/></dir><dir name="images"><dir name="backgrounds"><file name="bodyBackground.jpg" hash="ab1d01dc42c2bdab8d545b5f13aeca3b"/><file name="checkmark.gif" hash="2d28d6bced288bfde0f1ff10b347404b"/></dir><dir name="fullscreen"><file name="high.gif" hash="aaad68f6d6f12679cb8b84c4f0866a8c"/><file name="huge.gif" hash="1fcab4f05d2356941d538a56761c6ee1"/><file name="wide.gif" hash="3c30573861d17719420067dcd403ddc3"/></dir><dir name="prettyPhoto"><dir name="dark_rounded"><file name="btnNext.png" hash="0a89018b6e4a1492623ca2b608b606ff"/><file name="btnPrevious.png" hash="9ad8565740908ecab23ff67990e590cc"/><file name="contentPattern.png" hash="2f2d883ab9986e7eaa9f1cba98e2bbaf"/><file name="default_thumbnail.gif" hash="ed52db277173876860b62071785a2177"/><file name="loader.gif" hash="4297900ae2d9d0c4eb00d1c15462fb19"/><file name="sprite.png" hash="272462d6f733a5f1723ea87916afa4f1"/></dir><dir name="dark_square"><file name="btnNext.png" hash="0a89018b6e4a1492623ca2b608b606ff"/><file name="btnPrevious.png" hash="9ad8565740908ecab23ff67990e590cc"/><file name="contentPattern.png" hash="6660e3acf8523be8de932abe1e075370"/><file name="default_thumbnail.gif" hash="ed52db277173876860b62071785a2177"/><file name="loader.gif" hash="4297900ae2d9d0c4eb00d1c15462fb19"/><file name="sprite.png" hash="6b25600839837ed891e1d2f17ba01c28"/></dir><dir name="facebook"><file name="btnNext.png" hash="b8d4bf8440aae57321064ecaf2efea7e"/><file name="btnPrevious.png" hash="b251170307bcb724ac5b4e97482dc6ed"/><file name="contentPatternBottom.png" hash="a6fab9b4551a6274d71703b610eb6abd"/><file name="contentPatternLeft.png" hash="3b7f995669ad8cbf24acccb8f1d70f4d"/><file name="contentPatternRight.png" hash="74bfb933f639e76971ca5db1ae612011"/><file name="contentPatternTop.png" hash="c2e5c4ec6fc9ee4e49c79ff7e18c9695"/><file name="default_thumbnail.gif" hash="ed52db277173876860b62071785a2177"/><file name="loader.gif" hash="df46993044576f83f2c2cc1a64e18f31"/><file name="sprite.png" hash="a157ef765ce8288984373a7eba6b9a23"/></dir><dir name="light_rounded"><file name="btnNext.png" hash="0a89018b6e4a1492623ca2b608b606ff"/><file name="btnPrevious.png" hash="9ad8565740908ecab23ff67990e590cc"/><file name="default_thumbnail.gif" hash="ed52db277173876860b62071785a2177"/><file name="loader.gif" hash="df46993044576f83f2c2cc1a64e18f31"/><file name="sprite.png" hash="45b32c620cfb4a677f9b8c4360a8d3c4"/></dir><dir name="light_square"><file name="btnNext.png" hash="0a89018b6e4a1492623ca2b608b606ff"/><file name="btnPrevious.png" hash="9ad8565740908ecab23ff67990e590cc"/><file name="default_thumbnail.gif" hash="ed52db277173876860b62071785a2177"/><file name="loader.gif" hash="df46993044576f83f2c2cc1a64e18f31"/><file name="sprite.png" hash="6b25600839837ed891e1d2f17ba01c28"/></dir></dir><dir name="thumbnails"><file name="flash-logo.png" hash="84308dc65ccd1ef6f2fd06c942790e2b"/><file name="quicktime-logo.gif" hash="c0bd48e2273d6398f7209b36b498c876"/><file name="t_1.jpg" hash="d185e9cd39358651d53ce76cb6c46cf8"/><file name="t_2.jpg" hash="a98ec51fae545d4fb92bdf89817e1a06"/><file name="t_3.jpg" hash="dc7105fbf87aa26c0c82797358cfaf82"/><file name="t_4.jpg" hash="0ef1f2247ff1117fcb97f691234e37b9"/><file name="t_5.jpg" hash="ec98f305a581b70763e478c24d0abcf0"/></dir></dir><dir name="js"><file name="jquery.prettyPhoto.js" hash="71785ac0e62704284c59a3466276a834"/></dir></dir><dir name="webrotate360"><file name="360thumb.png" hash="9b97c04a28c4f0b737f6dac22589e1b5"/><file name="frame.html" hash="3bc01d61287c9d8839056d6ade50bf62"/><file name="sample.html" hash="877608999f8692c9c69897f5d08f596d"/><dir name="360_assets"><dir name="SampleShoe"><file name="config.xml" hash="6f16be17be630e0b02c90ae102756dfb"/><dir name="Images"><file name="Filename_01.jpg" hash="fd34b16891550d9e9d845480c0abd0e1"/><file name="Filename_02.jpg" hash="362f13f92e602c17847157d9e8f7758b"/><file name="Filename_03.jpg" hash="cbb453067bf359f91205b8e172e4f702"/><file name="Filename_04.jpg" hash="54e4e9b0407ac73a6654a141a9c4f9c6"/><file name="Filename_05.jpg" hash="f9385553bea473e3f259fc5eb1df2a66"/><file name="Filename_06.jpg" hash="15ff5af57e213d30c9760acebf90cd22"/><file name="Filename_07.jpg" hash="2a3087cf8c1ee91fb0642c6646d75cca"/><file name="Filename_08.jpg" hash="4adcb3f0ceefe1a90e871bd384a67464"/><file name="Filename_09.jpg" hash="fa28d1f09861f4d2723250973b541c69"/><file name="Filename_10.jpg" hash="ec71dbac2fe3939cb0ac2534274d330a"/><file name="Filename_11.jpg" hash="7ab44b57c7ec3b0edee66c24021f5d79"/><file name="Filename_12.jpg" hash="0bd5d2d40dc2ec890950eddab81a04e9"/><file name="Filename_13.jpg" hash="2822820e05c3e4a5428f22ad5b42696f"/><file name="Filename_14.jpg" hash="0cf28ea8ce1053c78bdd5d9e8b140821"/><file name="Filename_15.jpg" hash="99fe3abfafe0b3ae4db7f9accc1a24ec"/><file name="Filename_16.jpg" hash="11b89bfc298bcbc41f42b9f3446ee491"/><file name="Filename_17.jpg" hash="615fefd11b0954220bd67f088c07853c"/><file name="Filename_18.jpg" hash="45043f76d09013d08c64d4f814727b82"/><file name="Filename_19.jpg" hash="45c4c7e3a59ffd6cd6abc1e7a073a83d"/><file name="Filename_20.jpg" hash="4952ea3c6e8856c3145cb55f8ae4b23f"/><file name="Filename_21.jpg" hash="3e0dd35a71176db2369e9e89ec5691be"/><file name="Filename_22.jpg" hash="26e9d61850324ae1835da9a8d72aeb61"/><file name="Filename_23.jpg" hash="fe7dfc5ee056362f98d7bfe3fda9889e"/><file name="Filename_24.jpg" hash="9ea40bb3981ec7babc7045acf16721ac"/><file name="Filename_25.jpg" hash="353b6f5bc3336a6354953585c5b49194"/><file name="Filename_26.jpg" hash="beac5925f4a6e834d3c1d36973697c6c"/><file name="Filename_27.jpg" hash="4a534dc08fdcbda3a610aa431ebf6374"/><file name="Filename_28.jpg" hash="8359c62e055c25eb6978d2abd0f5960e"/><file name="Filename_29.jpg" hash="c69556ee2d9a51e3cf5781a826e732d9"/><file name="Filename_30.jpg" hash="eb3a8079b3e031ee624224e4e1c24f4e"/><file name="Filename_31.jpg" hash="22036f9e3e01eaf65d3c17fb3fdf852a"/><file name="Filename_32.jpg" hash="87edf671078daec5e3f0532de502e01c"/><file name="Filename_33.jpg" hash="f7478eac7cd00c7a5872b3f45dfbac8f"/><file name="Filename_34.jpg" hash="bcff76c447d87935cf31acf405486aac"/><file name="Filename_35.jpg" hash="972faa179e4924d34c8d6d4204dd81a6"/><file name="Filename_36.jpg" hash="02925669f10ba1b2d55a193eb9644605"/><dir name="spots"><file name="hotspot.png" hash="350012810ed2aba3ba9db31826340f8d"/><file name="logo.png" hash="107f958f1bf5699788da52f8fa5e5a34"/><file name="spot.swf" hash="dfb7bd490a1a4c31aa6f5332485ce315"/></dir></dir></dir></dir><dir name="imagerotator"><file name="imagerotator.swf" hash="0ba0aafc56f8bd94f844f6f4555bd036"/><dir name="html"><dir name="css"><file name="basic.css" hash="96cdfc9249b2b52e801caa7b0b99a95f"/><file name="cusom-js.css" hash="6422fc7e4389ec6f45b78ab1c8dd60d3"/><file name="custom-color.css" hash="b00ff25c24ce8953cf39251a6ef708ec"/></dir><dir name="img"><dir name="basic"><file name="left_combined.png" hash="4acce9c8e1704ecb687f3fb10dc96366"/><file name="load.gif" hash="92dde7a455bf08ac7ada25bb388cb2e6"/><file name="pause_combined.png" hash="20b2a724bcac9c6fe4e9bc06b8ba98b5"/><file name="play_combined.png" hash="2dbe29e40b802fa1a76d2e66781f351c"/><file name="right_combined.png" hash="34d8c427b9e72ab0d01807b1c805acdf"/></dir><dir name="custom-color"><file name="left_combined.png" hash="a48526f1af307cb683f918375f48d404"/><file name="load.gif" hash="376f178a0994b6510917470ce7844ee1"/><file name="pause_combined.png" hash="d2fe1f49138dcf3161201973736ef5bb"/><file name="play_combined.png" hash="c4e499a90558e00fe44b54d0aa5fe9ab"/><file name="right_combined.png" hash="aaa9e4e12f088c36bf14c79cdb3e8ebd"/></dir><dir name="custom-js"><file name="left_combined.png" hash="37714fdcd018c05a8cbd299ddb0a56ad"/><file name="load.gif" hash="92dde7a455bf08ac7ada25bb388cb2e6"/><file name="pause_combined.png" hash="a8ebddb91adb65a6006ac2b433bb699c"/><file name="play_combined.png" hash="59d3a1eb13a67f239a94fdfca8689cbb"/><file name="right_combined.png" hash="9430e34784e43a3f366a5fc079bbc591"/></dir></dir><dir name="js"><file name="imagerotator.js" hash="fed3038a632a6d9d18ec3ccd0837fa80"/><file name="jquery-1.4.2.min.js" hash="10092eee563dec2dca82b77d2cf5a1ae"/><file name="jquery-1.6.1.min.js" hash="a34f78c3aecd182144818eb4b7303fda"/><file name="swfobject.js" hash="8c2ec4bc2c9a39bc3f4ff92223077cf6"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="WebRotate360_Catalog.xml" hash="713fb0dd84bf21cba16a8798e1a0d768"/></dir></target><target name="magecommunity"><dir name="WebRotate360"><dir name="Catalog"><dir name="etc"><file name="config.xml" hash="3afbef57f2ab7233c3e0f9e1a05825e4"/><file name="system.xml" hash="c832b78067e748ccea3896a72c9180b2"/></dir><dir name="Helper"><file name="Data.php" hash="f8fdd5b7e93a6397a9583bf02f7f22fb"/></dir></dir></dir></target></contents>
16
<compatible/>
17
<dependencies/>
18
</package>
skin/frontend/default/default/js/swfobject21.js DELETED
@@ -1,5 +0,0 @@
1
- /* SWFObject v2.1 <http://code.google.com/p/swfobject/>
2
- Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
3
- This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
4
- */
5
- var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*#x2F;,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*#x2F;,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)#x2F;,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*#x2F;,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%#x2F;.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%#x2F;.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();
skin/frontend/default/default/prettyPhoto/css/prettyPhoto.css ADDED
@@ -0,0 +1 @@
1
+ div.light_rounded .pp_top .pp_left{background: url(../images/prettyPhoto/light_rounded/sprite.png) -88px -53px no-repeat;}div.light_rounded .pp_top .pp_middle{background:#fff;}div.light_rounded .pp_top .pp_right{background: url(../images/prettyPhoto/light_rounded/sprite.png) -110px -53px no-repeat;}div.light_rounded .pp_content .ppt{color:#000;}div.light_rounded .pp_content_container .pp_left,div.light_rounded .pp_content_container .pp_right{background:#fff;}div.light_rounded .pp_content{background-color:#fff;}div.light_rounded .pp_next:hover{background: url(../images/prettyPhoto/light_rounded/btnNext.png) center right no-repeat;cursor: pointer;}div.light_rounded .pp_previous:hover{background: url(../images/prettyPhoto/light_rounded/btnPrevious.png) center left no-repeat;cursor: pointer;}div.light_rounded .pp_expand{background: url(../images/prettyPhoto/light_rounded/sprite.png) -31px -26px no-repeat;cursor: pointer;}div.light_rounded .pp_expand:hover{background: url(../images/prettyPhoto/light_rounded/sprite.png) -31px -47px no-repeat;cursor: pointer;}div.light_rounded .pp_contract{background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -26px no-repeat;cursor: pointer;}div.light_rounded .pp_contract:hover{background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -47px no-repeat;cursor: pointer;}div.light_rounded .pp_close{width:75px;height:22px;background: url(../images/prettyPhoto/light_rounded/sprite.png) -1px -1px no-repeat;cursor: pointer;}div.light_rounded #pp_full_res .pp_inline{color:#000;}div.light_rounded .pp_gallery a.pp_arrow_previous,div.light_rounded .pp_gallery a.pp_arrow_next{margin-top:12px !important;}div.light_rounded .pp_nav .pp_play{background: url(../images/prettyPhoto/light_rounded/sprite.png) -1px -100px no-repeat;height:15px;width:14px;}div.light_rounded .pp_nav .pp_pause{background: url(../images/prettyPhoto/light_rounded/sprite.png) -24px -100px no-repeat;height:15px;width:14px;}div.light_rounded .pp_arrow_previous{background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -71px no-repeat;}div.light_rounded .pp_arrow_previous.disabled{background-position:0 -87px;cursor:default;}div.light_rounded .pp_arrow_next{background: url(../images/prettyPhoto/light_rounded/sprite.png) -22px -71px no-repeat;}div.light_rounded .pp_arrow_next.disabled{background-position: -22px -87px;cursor:default;}div.light_rounded .pp_bottom .pp_left{background: url(../images/prettyPhoto/light_rounded/sprite.png) -88px -80px no-repeat;}div.light_rounded .pp_bottom .pp_middle{background:#fff;}div.light_rounded .pp_bottom .pp_right{background: url(../images/prettyPhoto/light_rounded/sprite.png) -110px -80px no-repeat;}div.light_rounded .pp_loaderIcon{background: url(../images/prettyPhoto/light_rounded/loader.gif) center center no-repeat;}div.dark_rounded .pp_top .pp_left{background: url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -53px no-repeat;}div.dark_rounded .pp_top .pp_middle{background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat;}div.dark_rounded .pp_top .pp_right{background: url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -53px no-repeat;}div.dark_rounded .pp_content_container .pp_left{background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat-y;}div.dark_rounded .pp_content_container .pp_right{background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top right repeat-y;}div.dark_rounded .pp_content{background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat;}div.dark_rounded .pp_next:hover{background: url(../images/prettyPhoto/dark_rounded/btnNext.png) center right no-repeat;cursor: pointer;}div.dark_rounded .pp_previous:hover{background: url(../images/prettyPhoto/dark_rounded/btnPrevious.png) center left no-repeat;cursor: pointer;}div.dark_rounded .pp_expand{background: url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -26px no-repeat;cursor: pointer;}div.dark_rounded .pp_expand:hover{background: url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -47px no-repeat;cursor: pointer;}div.dark_rounded .pp_contract{background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -26px no-repeat;cursor: pointer;}div.dark_rounded .pp_contract:hover{background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -47px no-repeat;cursor: pointer;}div.dark_rounded .pp_close{width:75px;height:22px;background: url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -1px no-repeat;cursor: pointer;}div.dark_rounded .currentTextHolder{color:#c4c4c4;}div.dark_rounded .pp_description{color:#fff;}div.dark_rounded #pp_full_res .pp_inline{color:#fff;}div.dark_rounded .pp_gallery a.pp_arrow_previous,div.dark_rounded .pp_gallery a.pp_arrow_next{margin-top:12px !important;}div.dark_rounded .pp_nav .pp_play{background: url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -100px no-repeat;height:15px;width:14px;}div.dark_rounded .pp_nav .pp_pause{background: url(../images/prettyPhoto/dark_rounded/sprite.png) -24px -100px no-repeat;height:15px;width:14px;}div.dark_rounded .pp_arrow_previous{background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -71px no-repeat;}div.dark_rounded .pp_arrow_previous.disabled{background-position:0 -87px;cursor:default;}div.dark_rounded .pp_arrow_next{background: url(../images/prettyPhoto/dark_rounded/sprite.png) -22px -71px no-repeat;}div.dark_rounded .pp_arrow_next.disabled{background-position: -22px -87px;cursor:default;}div.dark_rounded .pp_bottom .pp_left{background: url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -80px no-repeat;}div.dark_rounded .pp_bottom .pp_middle{background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat;}div.dark_rounded .pp_bottom .pp_right{background: url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -80px no-repeat;}div.dark_rounded .pp_loaderIcon{background: url(../images/prettyPhoto/dark_rounded/loader.gif) center center no-repeat;}div.dark_square .pp_left ,div.dark_square .pp_middle,div.dark_square .pp_right,div.dark_square .pp_content{background: url(../images/prettyPhoto/dark_square/contentPattern.png) top left repeat;}div.dark_square .currentTextHolder{color:#c4c4c4;}div.dark_square .pp_description{color:#fff;}div.dark_square .pp_loaderIcon{background: url(../images/prettyPhoto/dark_rounded/loader.gif) center center no-repeat;}div.dark_square .pp_content_container .pp_left{background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat-y;}div.dark_square .pp_content_container .pp_right{background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top right repeat-y;}div.dark_square .pp_expand{background: url(../images/prettyPhoto/dark_square/sprite.png) -31px -26px no-repeat;cursor: pointer;}div.dark_square .pp_expand:hover{background: url(../images/prettyPhoto/dark_square/sprite.png) -31px -47px no-repeat;cursor: pointer;}div.dark_square .pp_contract{background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -26px no-repeat;cursor: pointer;}div.dark_square .pp_contract:hover{background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -47px no-repeat;cursor: pointer;}div.dark_square .pp_close{width:75px;height:22px;background: url(../images/prettyPhoto/dark_square/sprite.png) -1px -1px no-repeat;cursor: pointer;}div.dark_square #pp_full_res .pp_inline{color:#fff;}div.dark_square .pp_gallery a.pp_arrow_previous,div.dark_square .pp_gallery a.pp_arrow_next{margin-top:12px !important;}div.dark_square .pp_nav .pp_play{background: url(../images/prettyPhoto/dark_square/sprite.png) -1px -100px no-repeat;height:15px;width:14px;}div.dark_square .pp_nav .pp_pause{background: url(../images/prettyPhoto/dark_square/sprite.png) -24px -100px no-repeat;height:15px;width:14px;}div.dark_square .pp_arrow_previous{background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -71px no-repeat;}div.dark_square .pp_arrow_previous.disabled{background-position:0 -87px;cursor:default;}div.dark_square .pp_arrow_next{background: url(../images/prettyPhoto/dark_square/sprite.png) -22px -71px no-repeat;}div.dark_square .pp_arrow_next.disabled{background-position: -22px -87px;cursor:default;}div.dark_square .pp_next:hover{background: url(../images/prettyPhoto/dark_square/btnNext.png) center right no-repeat;cursor: pointer;}div.dark_square .pp_previous:hover{background: url(../images/prettyPhoto/dark_square/btnPrevious.png) center left no-repeat;cursor: pointer;}div.light_square .pp_left ,div.light_square .pp_middle,div.light_square .pp_right,div.light_square .pp_content{background:#fff;}div.light_square .pp_content .ppt{color:#000;}div.light_square .pp_expand{background: url(../images/prettyPhoto/light_square/sprite.png) -31px -26px no-repeat;cursor: pointer;}div.light_square .pp_expand:hover{background: url(../images/prettyPhoto/light_square/sprite.png) -31px -47px no-repeat;cursor: pointer;}div.light_square .pp_contract{background: url(../images/prettyPhoto/light_square/sprite.png) 0 -26px no-repeat;cursor: pointer;}div.light_square .pp_contract:hover{background: url(../images/prettyPhoto/light_square/sprite.png) 0 -47px no-repeat;cursor: pointer;}div.light_square .pp_close{width:75px;height:22px;background: url(../images/prettyPhoto/light_square/sprite.png) -1px -1px no-repeat;cursor: pointer;}div.light_square #pp_full_res .pp_inline{color:#000;}div.light_square .pp_gallery a.pp_arrow_previous,div.light_square .pp_gallery a.pp_arrow_next{margin-top:12px !important;}div.light_square .pp_nav .pp_play{background: url(../images/prettyPhoto/light_square/sprite.png) -1px -100px no-repeat;height:15px;width:14px;}div.light_square .pp_nav .pp_pause{background: url(../images/prettyPhoto/light_square/sprite.png) -24px -100px no-repeat;height:15px;width:14px;}div.light_square .pp_arrow_previous{background: url(../images/prettyPhoto/light_square/sprite.png) 0 -71px no-repeat;}div.light_square .pp_arrow_previous.disabled{background-position:0 -87px;cursor:default;}div.light_square .pp_arrow_next{background: url(../images/prettyPhoto/light_square/sprite.png) -22px -71px no-repeat;}div.light_square .pp_arrow_next.disabled{background-position: -22px -87px;cursor:default;}div.light_square .pp_next:hover{background: url(../images/prettyPhoto/light_square/btnNext.png) center right no-repeat;cursor: pointer;}div.light_square .pp_previous:hover{background: url(../images/prettyPhoto/light_square/btnPrevious.png) center left no-repeat;cursor: pointer;}div.facebook .pp_top .pp_left{background: url(../images/prettyPhoto/facebook/sprite.png) -88px -53px no-repeat;}div.facebook .pp_top .pp_middle{background: url(../images/prettyPhoto/facebook/contentPatternTop.png) top left repeat-x;}div.facebook .pp_top .pp_right{background: url(../images/prettyPhoto/facebook/sprite.png) -110px -53px no-repeat;}div.facebook .pp_content .ppt{color:#000;}div.facebook .pp_content_container .pp_left{background: url(../images/prettyPhoto/facebook/contentPatternLeft.png) top left repeat-y;}div.facebook .pp_content_container .pp_right{background: url(../images/prettyPhoto/facebook/contentPatternRight.png) top right repeat-y;}div.facebook .pp_content{background:#fff;}div.facebook .pp_expand{background: url(../images/prettyPhoto/facebook/sprite.png) -31px -26px no-repeat;cursor: pointer;}div.facebook .pp_expand:hover{background: url(../images/prettyPhoto/facebook/sprite.png) -31px -47px no-repeat;cursor: pointer;}div.facebook .pp_contract{background: url(../images/prettyPhoto/facebook/sprite.png) 0 -26px no-repeat;cursor: pointer;}div.facebook .pp_contract:hover{background: url(../images/prettyPhoto/facebook/sprite.png) 0 -47px no-repeat;cursor: pointer;}div.facebook .pp_close{width:22px;height:22px;background: url(../images/prettyPhoto/facebook/sprite.png) -1px -1px no-repeat;cursor: pointer;}div.facebook #pp_full_res .pp_inline{color:#000;}div.facebook .pp_loaderIcon{background: url(../images/prettyPhoto/facebook/loader.gif) center center no-repeat;}div.facebook .pp_arrow_previous{background: url(../images/prettyPhoto/facebook/sprite.png) 0 -71px no-repeat;height:22px;margin-top:0;width:22px;}div.facebook .pp_arrow_previous.disabled{background-position:0 -96px;cursor:default;}div.facebook .pp_arrow_next{background: url(../images/prettyPhoto/facebook/sprite.png) -32px -71px no-repeat;height:22px;margin-top:0;width:22px;}div.facebook .pp_arrow_next.disabled{background-position: -32px -96px;cursor:default;}div.facebook .pp_nav{margin-top:0;}div.facebook .pp_nav p{font-size:15px;padding:0 3px 0 4px;}div.facebook .pp_nav .pp_play{background: url(../images/prettyPhoto/facebook/sprite.png) -1px -123px no-repeat;height:22px;width:22px;}div.facebook .pp_nav .pp_pause{background: url(../images/prettyPhoto/facebook/sprite.png) -32px -123px no-repeat;height:22px;width:22px;}div.facebook .pp_next:hover{background: url(../images/prettyPhoto/facebook/btnNext.png) center right no-repeat;cursor: pointer;}div.facebook .pp_previous:hover{background: url(../images/prettyPhoto/facebook/btnPrevious.png) center left no-repeat;cursor: pointer;}div.facebook .pp_bottom .pp_left{background: url(../images/prettyPhoto/facebook/sprite.png) -88px -80px no-repeat;}div.facebook .pp_bottom .pp_middle{background: url(../images/prettyPhoto/facebook/contentPatternBottom.png) top left repeat-x;}div.facebook .pp_bottom .pp_right{background: url(../images/prettyPhoto/facebook/sprite.png) -110px -80px no-repeat;}div.pp_pic_holder a:focus{outline:none;}div.pp_overlay{background:#000;display: none;left:0;position:absolute;top:0;width:100%;z-index:9500;}div.pp_pic_holder{display: none;position:absolute;width:100px;z-index:10000;}.pp_top{height:20px;position: relative;}* html .pp_top{padding:0 20px;}.pp_top .pp_left{height:20px;left:0;position:absolute;width:20px;}.pp_top .pp_middle{height:20px;left:20px;position:absolute;right:20px;}* html .pp_top .pp_middle{left:0;position: static;}.pp_top .pp_right{height:20px;left:auto;position:absolute;right:0;top:0;width:20px;}.pp_content{height:40px;}.pp_fade{display: none;}.pp_content_container{position: relative;text-align: left;width:100%;}.pp_content_container .pp_left{padding-left:20px;}.pp_content_container .pp_right{padding-right:20px;}.pp_content_container .pp_details{float: left;margin:10px 0 2px 0;}.pp_description{display: none;margin:0 0 5px 0;}.pp_nav{clear: left;float: left;margin:3px 0 0 0;}.pp_nav p{float: left;margin:2px 4px;}.pp_nav .pp_play,.pp_nav .pp_pause{float: left;margin-right:4px;text-indent: -10000px;}a.pp_arrow_previous,a.pp_arrow_next{display:block;float: left;height:15px;margin-top:3px;overflow: hidden;text-indent: -10000px;width:14px;}.pp_hoverContainer{position:absolute;top:0;width:100%;z-index:2000;}.pp_gallery{left:50%;margin-top: -50px;position:absolute;z-index:10000;}.pp_gallery ul{float: left;height:35px;margin:0 0 0 5px;overflow: hidden;position: relative;}.pp_gallery ul a{border:1px #000 solid;border:1px rgba(0,0,0,0.5) solid;display:block;float: left;height:33px;overflow: hidden;}.pp_gallery ul a:hover,.pp_gallery li.selected a{border-color:#fff;}.pp_gallery ul a img{border:0;}.pp_gallery li{display:block;float: left;margin:0 5px 0 0;}.pp_gallery li.default a{background: url(../images/prettyPhoto/facebook/default_thumbnail.gif) 0 0 no-repeat;display:block;height:33px;width:50px;}.pp_gallery li.default a img{display: none;}.pp_gallery .pp_arrow_previous,.pp_gallery .pp_arrow_next{margin-top:7px !important;}a.pp_next{background: url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;display:block;float: right;height:100%;text-indent: -10000px;width:49%;}a.pp_previous{background: url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;display:block;float: left;height:100%;text-indent: -10000px;width:49%;}a.pp_expand,a.pp_contract{cursor: pointer;display: none;height:20px;position:absolute;right:30px;text-indent: -10000px;top:10px;width:20px;z-index:20000;}a.pp_close{display:block;float: right;line-height:22px;text-indent: -10000px;}.pp_bottom{height:20px;position: relative;}* html .pp_bottom{padding:0 20px;}.pp_bottom .pp_left{height:20px;left:0;position:absolute;width:20px;}.pp_bottom .pp_middle{height:20px;left:20px;position:absolute;right:20px;}* html .pp_bottom .pp_middle{left:0;position: static;}.pp_bottom .pp_right{height:20px;left:auto;position:absolute;right:0;top:0;width:20px;}.pp_loaderIcon{display:block;height:24px;left:50%;margin: -12px 0 0 -12px;position:absolute;top:50%;width:24px;}#pp_full_res{line-height:1 !important;}#pp_full_res .pp_inline{text-align: left;}#pp_full_res .pp_inline p{margin:0 0 15px 0;}div.ppt{color:#fff;display: none;font-size:17px;margin:0 0 5px 15px;z-index:9999;}.clearfix:after{content: ".";display:block;height:0;clear:both;visibility: hidden;}.clearfix {display: inline-block;}* html .clearfix {height:1%;}.clearfix {display:block;}
skin/frontend/default/default/prettyPhoto/images/backgrounds/bodyBackground.jpg ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/backgrounds/checkmark.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/fullscreen/high.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/fullscreen/huge.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/fullscreen/wide.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_rounded/btnNext.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_rounded/btnPrevious.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_rounded/contentPattern.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_rounded/default_thumbnail.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_rounded/loader.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_rounded/sprite.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_square/btnNext.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_square/btnPrevious.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_square/contentPattern.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_square/default_thumbnail.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_square/loader.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/dark_square/sprite.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/btnNext.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/btnPrevious.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/contentPatternBottom.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/contentPatternLeft.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/contentPatternRight.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/contentPatternTop.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/default_thumbnail.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/loader.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/facebook/sprite.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_rounded/btnNext.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_rounded/btnPrevious.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_rounded/default_thumbnail.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_rounded/loader.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_rounded/sprite.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_square/btnNext.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_square/btnPrevious.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_square/default_thumbnail.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_square/loader.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/prettyPhoto/light_square/sprite.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/thumbnails/flash-logo.png ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/thumbnails/quicktime-logo.gif ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/thumbnails/t_1.jpg ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/thumbnails/t_2.jpg ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/thumbnails/t_3.jpg ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/thumbnails/t_4.jpg ADDED
Binary file
skin/frontend/default/default/prettyPhoto/images/thumbnails/t_5.jpg ADDED
Binary file
skin/frontend/default/default/prettyPhoto/js/jquery.prettyPhoto.js ADDED
@@ -0,0 +1,835 @@
1
+ /* ------------------------------------------------------------------------
2
+ Class: prettyPhoto
3
+ Use: Lightbox clone for jQuery
4
+ Author: Stephane Caron (http://www.no-margin-for-errors.com)
5
+ Version: 3.0
6
+ ------------------------------------------------------------------------- */
7
+
8
+ (function(jQuery) {
9
+ jQuery.prettyPhoto = {version: '3.0'};
10
+
11
+ jQuery.fn.prettyPhoto = function(pp_settings) {
12
+ pp_settings = jQuery.extend({
13
+ animation_speed: 'fast', /* fast/slow/normal */
14
+ slideshow: false, /* false OR interval time in ms */
15
+ autoplay_slideshow: false, /* true/false */
16
+ opacity: 0.80, /* Value between 0 and 1 */
17
+ show_title: true, /* true/false */
18
+ allow_resize: true, /* Resize the photos bigger than viewport. true/false */
19
+ default_width: 500,
20
+ default_height: 344,
21
+ counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
22
+ theme: 'facebook', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
23
+ hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
24
+ wmode: 'opaque', /* Set the flash wmode attribute */
25
+ autoplay: true, /* Automatically start videos: True/False */
26
+ modal: false, /* If set to true, only the close button will close the window */
27
+ overlay_gallery: true, /* If set to true, a gallery will overlay the fullscreen image on mouse over */
28
+ keyboard_shortcuts: true, /* Set to false if you open forms inside prettyPhoto */
29
+ changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
30
+ callback: function(){}, /* Called when prettyPhoto is closed */
31
+ markup: '<div class="pp_pic_holder"> \
32
+ <div class="ppt">&nbsp;</div> \
33
+ <div class="pp_top"> \
34
+ <div class="pp_left"></div> \
35
+ <div class="pp_middle"></div> \
36
+ <div class="pp_right"></div> \
37
+ </div> \
38
+ <div class="pp_content_container"> \
39
+ <div class="pp_left"> \
40
+ <div class="pp_right"> \
41
+ <div class="pp_content"> \
42
+ <div class="pp_loaderIcon"></div> \
43
+ <div class="pp_fade"> \
44
+ <a href="#" class="pp_expand" title="Expand the image">Expand</a> \
45
+ <div class="pp_hoverContainer"> \
46
+ <a class="pp_next" href="#">next</a> \
47
+ <a class="pp_previous" href="#">previous</a> \
48
+ </div> \
49
+ <div id="pp_full_res"></div> \
50
+ <div class="pp_details clearfix"> \
51
+ <p class="pp_description"></p> \
52
+ <a class="pp_close" href="#">Close</a> \
53
+ <div class="pp_nav"> \
54
+ <a href="#" class="pp_arrow_previous">Previous</a> \
55
+ <p class="currentTextHolder">0/0</p> \
56
+ <a href="#" class="pp_arrow_next">Next</a> \
57
+ </div> \
58
+ </div> \
59
+ </div> \
60
+ </div> \
61
+ </div> \
62
+ </div> \
63
+ </div> \
64
+ <div class="pp_bottom"> \
65
+ <div class="pp_left"></div> \
66
+ <div class="pp_middle"></div> \
67
+ <div class="pp_right"></div> \
68
+ </div> \
69
+ </div> \
70
+ <div class="pp_overlay"></div>',
71
+ gallery_markup: '<div class="pp_gallery"> \
72
+ <a href="#" class="pp_arrow_previous">Previous</a> \
73
+ <ul> \
74
+ {gallery} \
75
+ </ul> \
76
+ <a href="#" class="pp_arrow_next">Next</a> \
77
+ </div>',
78
+ image_markup: '<img id="fullResImage" src="" />',
79
+ flash_markup: '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',
80
+ quicktime_markup: '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',
81
+ iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no" SCROLLING="no" MARGINWIDTH="0" MARGINHEIGHT="0"></iframe>',
82
+ inline_markup: '<div class="pp_inline clearfix">{content}</div>',
83
+ custom_markup: ''
84
+ }, pp_settings);
85
+
86
+ // Global variables accessible only by prettyPhoto
87
+ var matchedObjects = this, percentBased = false, correctSizes, pp_open,
88
+
89
+ // prettyPhoto container specific
90
+ pp_contentHeight, pp_contentWidth, pp_containerHeight, pp_containerWidth,
91
+
92
+ // Window size
93
+ windowHeight = jQuery(window).height(), windowWidth = jQuery(window).width(),
94
+
95
+ // Global elements
96
+ pp_slideshow;
97
+
98
+ doresize = true, scroll_pos = _get_scroll();
99
+
100
+ // Window/Keyboard events
101
+ jQuery(window).unbind('resize').resize(function(){ _center_overlay(); _resize_overlay(); });
102
+
103
+ if(pp_settings.keyboard_shortcuts) {
104
+ jQuery(document).unbind('keydown').keydown(function(e){
105
+ if(typeof $pp_pic_holder != 'undefined'){
106
+ if($pp_pic_holder.is(':visible')){
107
+ switch(e.keyCode){
108
+ case 37:
109
+ jQuery.prettyPhoto.changePage('previous');
110
+ break;
111
+ case 39:
112
+ jQuery.prettyPhoto.changePage('next');
113
+ break;
114
+ case 27:
115
+ if(!settings.modal)
116
+ jQuery.prettyPhoto.close();
117
+ break;
118
+ };
119
+ return false;
120
+ };
121
+ };
122
+ });
123
+ }
124
+
125
+
126
+ /**
127
+ * Initialize prettyPhoto.
128
+ */
129
+ jQuery.prettyPhoto.initialize = function() {
130
+ settings = pp_settings;
131
+
132
+ if(jQuery.browser.msie && parseInt(jQuery.browser.version) == 6) settings.theme = "light_square"; // Fallback to a supported theme for IE6
133
+
134
+ _buildOverlay(this); // Build the overlay {this} being the caller
135
+
136
+ if(settings.allow_resize)
137
+ jQuery(window).scroll(function(){ _center_overlay(); });
138
+
139
+ _center_overlay();
140
+
141
+ set_position = jQuery.inArray(jQuery(this).attr('href'), pp_images); // Define where in the array the clicked item is positionned
142
+
143
+ jQuery.prettyPhoto.open();
144
+
145
+ return false;
146
+ }
147
+
148
+
149
+ /**
150
+ * Opens the prettyPhoto modal box.
151
+ * @param image {String,Array} Full path to the image to be open, can also be an array containing full images paths.
152
+ * @param title {String,Array} The title to be displayed with the picture, can also be an array containing all the titles.
153
+ * @param description {String,Array} The description to be displayed with the picture, can also be an array containing all the descriptions.
154
+ */
155
+ jQuery.prettyPhoto.open = function() {
156
+ if(typeof settings == "undefined"){ // Means it's an API call, need to manually get the settings and set the variables
157
+ settings = pp_settings;
158
+ if(jQuery.browser.msie && jQuery.browser.version == 6) settings.theme = "light_square"; // Fallback to a supported theme for IE6
159
+ _buildOverlay(this); // Build the overlay {this} being the caller
160
+ pp_images = jQuery.makeArray(arguments[0]);
161
+ pp_titles = (arguments[1]) ? jQuery.makeArray(arguments[1]) : jQuery.makeArray("");
162
+ pp_descriptions = (arguments[2]) ? jQuery.makeArray(arguments[2]) : jQuery.makeArray("");
163
+ isSet = (pp_images.length > 1) ? true : false;
164
+ set_position = 0;
165
+ }
166
+
167
+ if(jQuery.browser.msie && jQuery.browser.version == 6) jQuery('select').css('visibility','hidden'); // To fix the bug with IE select boxes
168
+
169
+ if(settings.hideflash) jQuery('object,embed').css('visibility','hidden'); // Hide the flash
170
+
171
+ _checkPosition(jQuery(pp_images).size()); // Hide the next/previous links if on first or last images.
172
+
173
+ jQuery('.pp_loaderIcon').show();
174
+
175
+ // Fade the content in
176
+ if($ppt.is(':hidden')) $ppt.css('opacity',0).show();
177
+ $pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);
178
+
179
+ // Display the current position
180
+ $pp_pic_holder.find('.currentTextHolder').text((set_position+1) + settings.counter_separator_label + jQuery(pp_images).size());
181
+
182
+ // Set the description
183
+ $pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));
184
+
185
+ // Set the title
186
+ (settings.show_title && pp_titles[set_position] != "") ? $ppt.html(unescape(pp_titles[set_position])) : $ppt.html('&nbsp;');
187
+
188
+ // Get the dimensions
189
+ movie_width = ( parseFloat(grab_param('width',pp_images[set_position])) ) ? grab_param('width',pp_images[set_position]) : settings.default_width.toString();
190
+ movie_height = ( parseFloat(grab_param('height',pp_images[set_position])) ) ? grab_param('height',pp_images[set_position]) : settings.default_height.toString();
191
+
192
+ // If the size is % based, calculate according to window dimensions
193
+ if(movie_width.indexOf('%') != -1 || movie_height.indexOf('%') != -1){
194
+ movie_height = parseFloat((jQuery(window).height() * parseFloat(movie_height) / 100) - 150);
195
+ movie_width = parseFloat((jQuery(window).width() * parseFloat(movie_width) / 100) - 150);
196
+ percentBased = true;
197
+ }else{
198
+ percentBased = false;
199
+ }
200
+
201
+ // Fade the holder
202
+ $pp_pic_holder.fadeIn(function(){
203
+ imgPreloader = "";
204
+
205
+ // Inject the proper content
206
+ switch(_getFileType(pp_images[set_position])){
207
+ case 'image':
208
+ imgPreloader = new Image();
209
+
210
+ // Preload the neighbour images
211
+ nextImage = new Image();
212
+ if(isSet && set_position > jQuery(pp_images).size()) nextImage.src = pp_images[set_position + 1];
213
+ prevImage = new Image();
214
+ if(isSet && pp_images[set_position - 1]) prevImage.src = pp_images[set_position - 1];
215
+
216
+ $pp_pic_holder.find('#pp_full_res')[0].innerHTML = settings.image_markup;
217
+ $pp_pic_holder.find('#fullResImage').attr('src',pp_images[set_position]);
218
+
219
+ imgPreloader.onload = function(){
220
+ // Fit item to viewport
221
+ correctSizes = _fitToViewport(imgPreloader.width,imgPreloader.height);
222
+
223
+ _showContent();
224
+ };
225
+
226
+ imgPreloader.onerror = function(){
227
+ alert('Image cannot be loaded. Make sure the path is correct and image exist.');
228
+ jQuery.prettyPhoto.close();
229
+ };
230
+
231
+ imgPreloader.src = pp_images[set_position];
232
+ break;
233
+
234
+ case 'youtube':
235
+ correctSizes = _fitToViewport(movie_width,movie_height); // Fit item to viewport
236
+
237
+ movie = 'http://www.youtube.com/v/'+grab_param('v',pp_images[set_position]);
238
+ if(settings.autoplay) movie += "&autoplay=1";
239
+
240
+ toInject = settings.flash_markup.replace(/{width}/g,correctSizes['width']).replace(/{height}/g,correctSizes['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);
241
+ break;
242
+
243
+ case 'vimeo':
244
+ correctSizes = _fitToViewport(movie_width,movie_height); // Fit item to viewport
245
+
246
+ movie_id = pp_images[set_position];
247
+ var regExp = /http:\/\/(www\.)?vimeo.com\/(\d+)/;
248
+ var match = movie_id.match(regExp);
249
+
250
+ movie = 'http://player.vimeo.com/video/'+ match[2] +'?title=0&amp;byline=0&amp;portrait=0';
251
+ if(settings.autoplay) movie += "&autoplay=1;";
252
+
253
+ vimeo_width = correctSizes['width'] + '/embed/?moog_width='+ correctSizes['width'];
254
+
255
+ toInject = settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,correctSizes['height']).replace(/{path}/g,movie);
256
+ break;
257
+
258
+ case 'quicktime':
259
+ correctSizes = _fitToViewport(movie_width,movie_height); // Fit item to viewport
260
+ correctSizes['height']+=15; correctSizes['contentHeight']+=15; correctSizes['containerHeight']+=15; // Add space for the control bar
261
+
262
+ toInject = settings.quicktime_markup.replace(/{width}/g,correctSizes['width']).replace(/{height}/g,correctSizes['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);
263
+ break;
264
+
265
+ case 'flash':
266
+ correctSizes = _fitToViewport(movie_width,movie_height); // Fit item to viewport
267
+
268
+ flash_vars = pp_images[set_position];
269
+ flash_vars = flash_vars.substring(pp_images[set_position].indexOf('flashvars') + 10,pp_images[set_position].length);
270
+
271
+ filename = pp_images[set_position];
272
+ filename = filename.substring(0,filename.indexOf('?'));
273
+
274
+ toInject = settings.flash_markup.replace(/{width}/g,correctSizes['width']).replace(/{height}/g,correctSizes['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);
275
+ break;
276
+
277
+ case 'iframe':
278
+ correctSizes = _fitToViewport(movie_width,movie_height); // Fit item to viewport
279
+
280
+ frame_url = pp_images[set_position];
281
+ frame_url = frame_url.substr(0,frame_url.indexOf('iframe')-1);
282
+
283
+ toInject = settings.iframe_markup.replace(/{width}/g,correctSizes['width']).replace(/{height}/g,correctSizes['height']).replace(/{path}/g,frame_url);
284
+ break;
285
+
286
+ case 'custom':
287
+ correctSizes = _fitToViewport(movie_width,movie_height); // Fit item to viewport
288
+
289
+ toInject = settings.custom_markup;
290
+ break;
291
+
292
+ case 'inline':
293
+ // to get the item height clone it, apply default width, wrap it in the prettyPhoto containers , then delete
294
+ myClone = jQuery(pp_images[set_position]).clone().css({'width':settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline clearfix"></div></div>').appendTo(jQuery('body'));
295
+ correctSizes = _fitToViewport(jQuery(myClone).width(),jQuery(myClone).height());
296
+ jQuery(myClone).remove();
297
+ toInject = settings.inline_markup.replace(/{content}/g,jQuery(pp_images[set_position]).html());
298
+ break;
299
+ };
300
+
301
+ if(!imgPreloader){
302
+ $pp_pic_holder.find('#pp_full_res')[0].innerHTML = toInject;
303
+
304
+ // Show content
305
+ _showContent();
306
+ };
307
+ });
308
+
309
+ return false;
310
+ };
311
+
312
+
313
+ /**
314
+ * Change page in the prettyPhoto modal box
315
+ * @param direction {String} Direction of the paging, previous or next.
316
+ */
317
+ jQuery.prettyPhoto.changePage = function(direction){
318
+ currentGalleryPage = 0;
319
+
320
+ if(direction == 'previous') {
321
+ set_position--;
322
+ if (set_position < 0){
323
+ set_position = 0;
324
+ return;
325
+ };
326
+ }else if(direction == 'next'){
327
+ set_position++;
328
+ if(set_position > jQuery(pp_images).size()-1) {
329
+ set_position = 0;
330
+ }
331
+ }else{
332
+ set_position=direction;
333
+ };
334
+
335
+ if(!doresize) doresize = true; // Allow the resizing of the images
336
+ jQuery('.pp_contract').removeClass('pp_contract').addClass('pp_expand');
337
+
338
+ _hideContent(function(){ jQuery.prettyPhoto.open(); });
339
+ };
340
+
341
+
342
+ /**
343
+ * Change gallery page in the prettyPhoto modal box
344
+ * @param direction {String} Direction of the paging, previous or next.
345
+ */
346
+ jQuery.prettyPhoto.changeGalleryPage = function(direction){
347
+ if(direction=='next'){
348
+ currentGalleryPage ++;
349
+
350
+ if(currentGalleryPage > totalPage){
351
+ currentGalleryPage = 0;
352
+ };
353
+ }else if(direction=='previous'){
354
+ currentGalleryPage --;
355
+
356
+ if(currentGalleryPage < 0){
357
+ currentGalleryPage = totalPage;
358
+ };
359
+ }else{
360
+ currentGalleryPage = direction;
361
+ };
362
+
363
+ // Slide the pages, if we're on the last page, find out how many items we need to slide. To make sure we don't have an empty space.
364
+ itemsToSlide = (currentGalleryPage == totalPage) ? pp_images.length - ((totalPage) * itemsPerPage) : itemsPerPage;
365
+
366
+ $pp_pic_holder.find('.pp_gallery li').each(function(i){
367
+ jQuery(this).animate({
368
+ 'left': (i * itemWidth) - ((itemsToSlide * itemWidth) * currentGalleryPage)
369
+ });
370
+ });
371
+ };
372
+
373
+
374
+ /**
375
+ * Start the slideshow...
376
+ */
377
+ jQuery.prettyPhoto.startSlideshow = function(){
378
+ if(typeof pp_slideshow == 'undefined'){
379
+ $pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){
380
+ jQuery.prettyPhoto.stopSlideshow();
381
+ return false;
382
+ });
383
+ pp_slideshow = setInterval(jQuery.prettyPhoto.startSlideshow,settings.slideshow);
384
+ }else{
385
+ jQuery.prettyPhoto.changePage('next');
386
+ };
387
+ }
388
+
389
+
390
+ /**
391
+ * Stop the slideshow...
392
+ */
393
+ jQuery.prettyPhoto.stopSlideshow = function(){
394
+ $pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){
395
+ jQuery.prettyPhoto.startSlideshow();
396
+ return false;
397
+ });
398
+ clearInterval(pp_slideshow);
399
+ pp_slideshow=undefined;
400
+ }
401
+
402
+
403
+ /**
404
+ * Closes prettyPhoto.
405
+ */
406
+ jQuery.prettyPhoto.close = function(){
407
+
408
+ clearInterval(pp_slideshow);
409
+
410
+ $pp_pic_holder.stop().find('object,embed').css('visibility','hidden');
411
+
412
+ jQuery('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){ jQuery(this).remove(); });
413
+
414
+ $pp_overlay.fadeOut(settings.animation_speed, function(){
415
+ if(jQuery.browser.msie && jQuery.browser.version == 6) jQuery('select').css('visibility','visible'); // To fix the bug with IE select boxes
416
+
417
+ if(settings.hideflash) jQuery('object,embed').css('visibility','visible'); // Show the flash
418
+
419
+ jQuery(this).remove(); // No more need for the prettyPhoto markup
420
+
421
+ jQuery(window).unbind('scroll');
422
+
423
+ settings.callback();
424
+
425
+ doresize = true;
426
+
427
+ pp_open = false;
428
+
429
+ delete settings;
430
+ });
431
+ };
432
+
433
+ /**
434
+ * Set the proper sizes on the containers and animate the content in.
435
+ */
436
+ _showContent = function(){
437
+ jQuery('.pp_loaderIcon').hide();
438
+
439
+ $ppt.fadeTo(settings.animation_speed,1);
440
+
441
+ // Calculate the opened top position of the pic holder
442
+ projectedTop = scroll_pos['scrollTop'] + ((windowHeight/2) - (correctSizes['containerHeight']/2));
443
+ if(projectedTop < 0) projectedTop = 0;
444
+
445
+ // Resize the content holder
446
+ $pp_pic_holder.find('.pp_content').animate({'height':correctSizes['contentHeight']},settings.animation_speed);
447
+
448
+ // Resize picture the holder
449
+ $pp_pic_holder.animate({
450
+ 'top': projectedTop,
451
+ 'left': (windowWidth/2) - (correctSizes['containerWidth']/2),
452
+ 'width': correctSizes['containerWidth']
453
+ },settings.animation_speed,function(){
454
+ $pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(correctSizes['height']).width(correctSizes['width']);
455
+
456
+ $pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed); // Fade the new content
457
+
458
+ // Show the nav
459
+ if(isSet && _getFileType(pp_images[set_position])=="image") { $pp_pic_holder.find('.pp_hoverContainer').show(); }else{ $pp_pic_holder.find('.pp_hoverContainer').hide(); }
460
+
461
+ if(correctSizes['resized']) jQuery('a.pp_expand,a.pp_contract').fadeIn(settings.animation_speed); // Fade the resizing link if the image is resized
462
+
463
+ if(settings.autoplay_slideshow && !pp_slideshow && !pp_open) jQuery.prettyPhoto.startSlideshow();
464
+
465
+ settings.changepicturecallback(); // Callback!
466
+
467
+ pp_open = true;
468
+ });
469
+
470
+ _insert_gallery();
471
+ };
472
+
473
+ /**
474
+ * Hide the content...DUH!
475
+ */
476
+ function _hideContent(callback){
477
+
478
+ // Fade out the current picture
479
+ $pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');
480
+ $pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){
481
+ jQuery('.pp_loaderIcon').show();
482
+ callback();
483
+ }
484
+ );
485
+ };
486
+
487
+ /**
488
+ * Check the item position in the gallery array, hide or show the navigation links
489
+ * @param setCount {integer} The total number of items in the set
490
+ */
491
+ function _checkPosition(setCount){
492
+ // If at the end, hide the next link
493
+ if(set_position == setCount-1) {
494
+ $pp_pic_holder.find('a.pp_next').css('visibility','hidden');
495
+ $pp_pic_holder.find('a.pp_next').addClass('disabled').unbind('click');
496
+ }else{
497
+ $pp_pic_holder.find('a.pp_next').css('visibility','visible');
498
+ $pp_pic_holder.find('a.pp_next.disabled').removeClass('disabled').bind('click',function(){
499
+ jQuery.prettyPhoto.changePage('next');
500
+ return false;
501
+ });
502
+ };
503
+
504
+ // If at the beginning, hide the previous link
505
+ if(set_position == 0) {
506
+ $pp_pic_holder
507
+ .find('a.pp_previous')
508
+ .css('visibility','hidden')
509
+ .addClass('disabled')
510
+ .unbind('click');
511
+ }else{
512
+ $pp_pic_holder.find('a.pp_previous.disabled')
513
+ .css('visibility','visible')
514
+ .removeClass('disabled')
515
+ .bind('click',function(){
516
+ jQuery.prettyPhoto.changePage('previous');
517
+ return false;
518
+ });
519
+ };
520
+
521
+ (setCount > 1) ? jQuery('.pp_nav').show() : jQuery('.pp_nav').hide(); // Hide the bottom nav if it's not a set.
522
+ };
523
+
524
+ /**
525
+ * Resize the item dimensions if it's bigger than the viewport
526
+ * @param width {integer} Width of the item to be opened
527
+ * @param height {integer} Height of the item to be opened
528
+ * @return An array containin the "fitted" dimensions
529
+ */
530
+ function _fitToViewport(width,height){
531
+ resized = false;
532
+
533
+ _getDimensions(width,height);
534
+
535
+ // Define them in case there's no resize needed
536
+ imageWidth = width, imageHeight = height;
537
+
538
+ if( ((pp_containerWidth > windowWidth) || (pp_containerHeight > windowHeight)) && doresize && settings.allow_resize && !percentBased) {
539
+ resized = true, fitting = false;
540
+
541
+ while (!fitting){
542
+ if((pp_containerWidth > windowWidth)){
543
+ imageWidth = (windowWidth - 200);
544
+ imageHeight = (height/width) * imageWidth;
545
+ }else if((pp_containerHeight > windowHeight)){
546
+ imageHeight = (windowHeight - 200);
547
+ imageWidth = (width/height) * imageHeight;
548
+ }else{
549
+ fitting = true;
550
+ };
551
+
552
+ pp_containerHeight = imageHeight, pp_containerWidth = imageWidth;
553
+ };
554
+
555
+ _getDimensions(imageWidth,imageHeight);
556
+ };
557
+
558
+ return {
559
+ width:Math.floor(imageWidth),
560
+ height:Math.floor(imageHeight),
561
+ containerHeight:Math.floor(pp_containerHeight),
562
+ containerWidth:Math.floor(pp_containerWidth) + 40, // 40 behind the side padding
563
+ contentHeight:Math.floor(pp_contentHeight),
564
+ contentWidth:Math.floor(pp_contentWidth),
565
+ resized:resized
566
+ };
567
+ };
568
+
569
+ /**
570
+ * Get the containers dimensions according to the item size
571
+ * @param width {integer} Width of the item to be opened
572
+ * @param height {integer} Height of the item to be opened
573
+ */
574
+ function _getDimensions(width,height){
575
+ width = parseFloat(width);
576
+ height = parseFloat(height);
577
+
578
+ // Get the details height, to do so, I need to clone it since it's invisible
579
+ $pp_details = $pp_pic_holder.find('.pp_details');
580
+ $pp_details.width(width);
581
+ detailsHeight = parseFloat($pp_details.css('marginTop')) + parseFloat($pp_details.css('marginBottom'));
582
+ $pp_details = $pp_details.clone().appendTo(jQuery('body')).css({
583
+ 'position':'absolute',
584
+ 'top':-10000
585
+ });
586
+ detailsHeight += $pp_details.height();
587
+ detailsHeight = (detailsHeight <= 34) ? 36 : detailsHeight; // Min-height for the details
588
+ if(jQuery.browser.msie && jQuery.browser.version==7) detailsHeight+=8;
589
+ $pp_details.remove();
590
+
591
+ // Get the container size, to resize the holder to the right dimensions
592
+ pp_contentHeight = height + detailsHeight;
593
+ pp_contentWidth = width;
594
+ pp_containerHeight = pp_contentHeight + $ppt.height() + $pp_pic_holder.find('.pp_top').height() + $pp_pic_holder.find('.pp_bottom').height();
595
+ pp_containerWidth = width;
596
+ }
597
+
598
+ function _getFileType(itemSrc){
599
+ if (itemSrc.match(/youtube\.com\/watch/i)) {
600
+ return 'youtube';
601
+ }else if (itemSrc.match(/vimeo\.com/i)) {
602
+ return 'vimeo';
603
+ }else if(itemSrc.indexOf('.mov') != -1){
604
+ return 'quicktime';
605
+ }else if(itemSrc.indexOf('.swf') != -1){
606
+ return 'flash';
607
+ }else if(itemSrc.indexOf('iframe') != -1){
608
+ return 'iframe';
609
+ }else if(itemSrc.indexOf('custom') != -1){
610
+ return 'custom';
611
+ }else if(itemSrc.substr(0,1) == '#'){
612
+ return 'inline';
613
+ }else{
614
+ return 'image';
615
+ };
616
+ };
617
+
618
+ function _center_overlay(){
619
+ if(doresize && typeof $pp_pic_holder != 'undefined') {
620
+ scroll_pos = _get_scroll();
621
+
622
+ titleHeight = $ppt.height(), contentHeight = $pp_pic_holder.height(), contentwidth = $pp_pic_holder.width();
623
+
624
+ projectedTop = (windowHeight/2) + scroll_pos['scrollTop'] - (contentHeight/2);
625
+
626
+ $pp_pic_holder.css({
627
+ 'top': projectedTop,
628
+ 'left': (windowWidth/2) + scroll_pos['scrollLeft'] - (contentwidth/2)
629
+ });
630
+ };
631
+ };
632
+
633
+ function _get_scroll(){
634
+ if (self.pageYOffset) {
635
+ return {scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};
636
+ } else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict
637
+ return {scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};
638
+ } else if (document.body) {// all other Explorers
639
+ return {scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft};
640
+ };
641
+ };
642
+
643
+ function _resize_overlay() {
644
+ windowHeight = jQuery(window).height(), windowWidth = jQuery(window).width();
645
+
646
+ if(typeof $pp_overlay != "undefined") $pp_overlay.height(jQuery(document).height());
647
+ };
648
+
649
+ function _insert_gallery(){
650
+ if(isSet && settings.overlay_gallery && _getFileType(pp_images[set_position])=="image") {
651
+ itemWidth = 52+5; // 52 beign the thumb width, 5 being the right margin.
652
+ navWidth = (settings.theme == "facebook") ? 58 : 38; // Define the arrow width depending on the theme
653
+
654
+ itemsPerPage = Math.floor((correctSizes['containerWidth'] - 100 - navWidth) / itemWidth);
655
+ itemsPerPage = (itemsPerPage < pp_images.length) ? itemsPerPage : pp_images.length;
656
+ totalPage = Math.ceil(pp_images.length / itemsPerPage) - 1;
657
+
658
+ // Hide the nav in the case there's no need for links
659
+ if(totalPage == 0){
660
+ navWidth = 0; // No nav means no width!
661
+ $pp_pic_holder.find('.pp_gallery .pp_arrow_next,.pp_gallery .pp_arrow_previous').hide();
662
+ }else{
663
+ $pp_pic_holder.find('.pp_gallery .pp_arrow_next,.pp_gallery .pp_arrow_previous').show();
664
+ };
665
+
666
+ galleryWidth = itemsPerPage * itemWidth + navWidth;
667
+
668
+ // Set the proper width to the gallery items
669
+ $pp_pic_holder.find('.pp_gallery')
670
+ .width(galleryWidth)
671
+ .css('margin-left',-(galleryWidth/2));
672
+
673
+ $pp_pic_holder
674
+ .find('.pp_gallery ul')
675
+ .width(itemsPerPage * itemWidth)
676
+ .find('li.selected')
677
+ .removeClass('selected');
678
+
679
+ goToPage = (Math.floor(set_position/itemsPerPage) <= totalPage) ? Math.floor(set_position/itemsPerPage) : totalPage;
680
+
681
+
682
+ if(itemsPerPage) {
683
+ $pp_pic_holder.find('.pp_gallery').hide().show().removeClass('disabled');
684
+ }else{
685
+ $pp_pic_holder.find('.pp_gallery').hide().addClass('disabled');
686
+ }
687
+
688
+ jQuery.prettyPhoto.changeGalleryPage(goToPage);
689
+
690
+ $pp_pic_holder
691
+ .find('.pp_gallery ul li:eq('+set_position+')')
692
+ .addClass('selected');
693
+ }else{
694
+ $pp_pic_holder.find('.pp_content').unbind('mouseenter mouseleave');
695
+ $pp_pic_holder.find('.pp_gallery').hide();
696
+ }
697
+ }
698
+
699
+ function _buildOverlay(caller){
700
+ // Find out if the picture is part of a set
701
+ theRel = jQuery(caller).attr('rel');
702
+ galleryRegExp = /\[(?:.*)\]/;
703
+ isSet = (galleryRegExp.exec(theRel)) ? true : false;
704
+
705
+ // Put the SRCs, TITLEs, ALTs into an array.
706
+ pp_images = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if(jQuery(n).attr('rel').indexOf(theRel) != -1) return jQuery(n).attr('href'); }) : jQuery.makeArray(jQuery(caller).attr('href'));
707
+ pp_titles = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if(jQuery(n).attr('rel').indexOf(theRel) != -1) return (jQuery(n).find('img').attr('alt')) ? jQuery(n).find('img').attr('alt') : ""; }) : jQuery.makeArray(jQuery(caller).find('img').attr('alt'));
708
+ pp_descriptions = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if(jQuery(n).attr('rel').indexOf(theRel) != -1) return (jQuery(n).attr('title')) ? jQuery(n).attr('title') : ""; }) : jQuery.makeArray(jQuery(caller).attr('title'));
709
+
710
+ jQuery('body').append(settings.markup); // Inject the markup
711
+
712
+ $pp_pic_holder = jQuery('.pp_pic_holder') , $ppt = jQuery('.ppt'), $pp_overlay = jQuery('div.pp_overlay'); // Set my global selectors
713
+
714
+ // Inject the inline gallery!
715
+ if(isSet && settings.overlay_gallery) {
716
+ currentGalleryPage = 0;
717
+ toInject = "";
718
+ for (var i=0; i < pp_images.length; i++) {
719
+ var regex = new RegExp("(.*?)\.(jpg|jpeg|png|gif)quot;);
720
+ var results = regex.exec( pp_images[i] );
721
+ if(!results){
722
+ classname = 'default';
723
+ }else{
724
+ classname = '';
725
+ }
726
+ toInject += "<li class='"+classname+"'><a href='#'><img src='" + pp_images[i] + "' width='50' alt='' /></a></li>";
727
+ };
728
+
729
+ toInject = settings.gallery_markup.replace(/{gallery}/g,toInject);
730
+
731
+ $pp_pic_holder.find('#pp_full_res').after(toInject);
732
+
733
+ $pp_pic_holder.find('.pp_gallery .pp_arrow_next').click(function(){
734
+ jQuery.prettyPhoto.changeGalleryPage('next');
735
+ jQuery.prettyPhoto.stopSlideshow();
736
+ return false;
737
+ });
738
+
739
+ $pp_pic_holder.find('.pp_gallery .pp_arrow_previous').click(function(){
740
+ jQuery.prettyPhoto.changeGalleryPage('previous');
741
+ jQuery.prettyPhoto.stopSlideshow();
742
+ return false;
743
+ });
744
+
745
+ $pp_pic_holder.find('.pp_content').hover(
746
+ function(){
747
+ $pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();
748
+ },
749
+ function(){
750
+ $pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();
751
+ });
752
+
753
+ itemWidth = 52+5; // 52 beign the thumb width, 5 being the right margin.
754
+ $pp_pic_holder.find('.pp_gallery ul li').each(function(i){
755
+ jQuery(this).css({
756
+ 'position':'absolute',
757
+ 'left': i * itemWidth
758
+ });
759
+
760
+ jQuery(this).find('a').unbind('click').click(function(){
761
+ jQuery.prettyPhoto.changePage(i);
762
+ jQuery.prettyPhoto.stopSlideshow();
763
+ return false;
764
+ });
765
+ });
766
+ };
767
+
768
+
769
+ // Inject the play/pause if it's a slideshow
770
+ if(settings.slideshow){
771
+ $pp_pic_holder.find('.pp_nav').prepend('<a href="#" class="pp_play">Play</a>')
772
+ $pp_pic_holder.find('.pp_nav .pp_play').click(function(){
773
+ jQuery.prettyPhoto.startSlideshow();
774
+ return false;
775
+ });
776
+ }
777
+
778
+ $pp_pic_holder.attr('class','pp_pic_holder ' + settings.theme); // Set the proper theme
779
+
780
+ $pp_overlay
781
+ .css({
782
+ 'opacity':0,
783
+ 'height':jQuery(document).height(),
784
+ 'width':jQuery(document).width()
785
+ })
786
+ .bind('click',function(){
787
+ if(!settings.modal) jQuery.prettyPhoto.close();
788
+ });
789
+
790
+ jQuery('a.pp_close').bind('click',function(){ jQuery.prettyPhoto.close(); return false; });
791
+
792
+ jQuery('a.pp_expand').bind('click',function(e){
793
+ // Expand the image
794
+ if(jQuery(this).hasClass('pp_expand')){
795
+ jQuery(this).removeClass('pp_expand').addClass('pp_contract');
796
+ doresize = false;
797
+ }else{
798
+ jQuery(this).removeClass('pp_contract').addClass('pp_expand');
799
+ doresize = true;
800
+ };
801
+
802
+ _hideContent(function(){ jQuery.prettyPhoto.open(); });
803
+
804
+ return false;
805
+ });
806
+
807
+ $pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){
808
+ jQuery.prettyPhoto.changePage('previous');
809
+ jQuery.prettyPhoto.stopSlideshow();
810
+ return false;
811
+ });
812
+
813
+ $pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){
814
+ jQuery.prettyPhoto.changePage('next');
815
+ jQuery.prettyPhoto.stopSlideshow();
816
+ return false;
817
+ });
818
+
819
+ _center_overlay(); // Center it
820
+ };
821
+
822
+ return this.unbind('click').click(jQuery.prettyPhoto.initialize); // Return the jQuery object for chaining. The unbind method is used to avoid click conflict when the plugin is called more than once
823
+ };
824
+
825
+ function grab_param(name,url){
826
+ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
827
+ var regexS = "[\\?&]"+name+"=([^&#]*)";
828
+ var regex = new RegExp( regexS );
829
+ var results = regex.exec( url );
830
+ return ( results == null ) ? "" : results[1];
831
+ }
832
+
833
+ })(jQuery);
834
+
835
+ jQuery.noConflict();
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_01.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_02.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_03.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_04.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_05.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_06.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_07.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_08.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_09.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_10.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_11.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_12.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_13.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_14.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_15.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_16.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_17.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_18.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_19.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_20.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_21.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_22.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_23.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_24.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_25.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_26.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_27.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_28.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_29.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_30.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_31.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_32.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_33.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_34.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_35.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/Filename_36.jpg ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/spots/hotspot.png ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/spots/logo.png ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/Images/spots/spot.swf ADDED
Binary file
skin/frontend/default/default/webrotate360/360_assets/SampleShoe/config.xml ADDED
@@ -0,0 +1,147 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <config>
3
+ <application />
4
+ <settings>
5
+ <preloader image="Images/Filename_34.jpg" />
6
+ <userInterface showZoomButtons="true" showToolTips="true" showHotspotsButton="true" showFullScreenButton="true" showTogglePlayButton="true" showArrows="true" toolbarAlign="center" />
7
+ <control dragSpeed="0.1" maxZoom="200" maxZoomFullScreen="160" fullScreenStretch="100" doubleClickZooms="true" disableMouseControl="false" />
8
+ <rotation firstImage="33" rotate="false" rotatePeriod="8" />
9
+ </settings>
10
+ <hotspots>
11
+ <hotspot id="text" type="custom" absolutePosition="false" className="imageSpotClass" color="#28a8d7" alpha="0.75">
12
+ <spotinfo id="text" txt="This is a text content. The following settings can be customized in XML manually or using WebRotate 360 SpotEditor software:&#xD;&#xA;&#xD;&#xA;- Text color&#xD;&#xA;- Background color&#xD;&#xA;- Text box width&#xD;&#xA;- Font height&#xD;&#xA;" txtWidth="210" txtBkColor="#FFFFFF" txtColor="#5B5B5B" fntHeight="13" />
13
+ </hotspot>
14
+ <hotspot id="flash" type="custom" absolutePosition="false" className="WebRotate360.ImageRotator.LoopCircleActionHotspot" color="#e38902" alpha="0.85">
15
+ <spotinfo id="flash" src="Images/spots/spot.swf" />
16
+ </hotspot>
17
+ <hotspot id="img" type="custom" absolutePosition="false" className="imageSpotClass" color="#e95497" alpha="0.67">
18
+ <spotinfo id="img" src="Images/spots/hotspot.png" url="http://www.twitter.com/webrotate360" urlTarget="_blank"/>
19
+ </hotspot>
20
+ <hotspot id="logo" type="custom" absolutePosition="true" className="WebRotate360.ImageRotator.StaticHotspotPresenter" offsetX="5" offsetY="5">
21
+ <spotinfo id="logo" src="Images/spots/logo.png" url="http://www.webrotate360.com" urlTarget="_blank"/>
22
+ </hotspot>
23
+ </hotspots>
24
+ <images>
25
+ <image src="Images/Filename_01.jpg">
26
+ <hotspot source="text" offsetX="172" offsetY="267" />
27
+ <hotspot source="flash" offsetX="600" offsetY="239" />
28
+ </image>
29
+ <image src="Images/Filename_02.jpg">
30
+ <hotspot source="text" offsetX="165" offsetY="257" />
31
+ <hotspot source="flash" offsetX="582" offsetY="248" />
32
+ </image>
33
+ <image src="Images/Filename_03.jpg">
34
+ <hotspot source="text" offsetX="165" offsetY="247" />
35
+ <hotspot source="flash" offsetX="560" offsetY="254" />
36
+ </image>
37
+ <image src="Images/Filename_04.jpg">
38
+ <hotspot source="text" offsetX="172" offsetY="238" />
39
+ <hotspot source="flash" offsetX="531" offsetY="262" />
40
+ </image>
41
+ <image src="Images/Filename_05.jpg">
42
+ <hotspot source="text" offsetX="186" offsetY="228" />
43
+ <hotspot source="flash" offsetX="499" offsetY="266" />
44
+ </image>
45
+ <image src="Images/Filename_06.jpg">
46
+ <hotspot source="text" offsetX="206" offsetY="220" />
47
+ <hotspot source="flash" offsetX="461" offsetY="269" />
48
+ </image>
49
+ <image src="Images/Filename_07.jpg">
50
+ <hotspot source="text" offsetX="231" offsetY="212" />
51
+ <hotspot source="flash" offsetX="421" offsetY="271" />
52
+ </image>
53
+ <image src="Images/Filename_08.jpg">
54
+ <hotspot source="text" offsetX="261" offsetY="206" />
55
+ <hotspot source="flash" offsetX="382" offsetY="271" />
56
+ </image>
57
+ <image src="Images/Filename_09.jpg">
58
+ <hotspot source="flash" offsetX="342" offsetY="269" />
59
+ </image>
60
+ <image src="Images/Filename_10.jpg" />
61
+ <image src="Images/Filename_11.jpg">
62
+ <hotspot source="img" offsetX="483" offsetY="237" />
63
+ </image>
64
+ <image src="Images/Filename_12.jpg">
65
+ <hotspot source="img" offsetX="475" offsetY="240" />
66
+ </image>
67
+ <image src="Images/Filename_13.jpg">
68
+ <hotspot source="img" offsetX="463" offsetY="242" />
69
+ </image>
70
+ <image src="Images/Filename_14.jpg">
71
+ <hotspot source="img" offsetX="450" offsetY="245" />
72
+ </image>
73
+ <image src="Images/Filename_15.jpg">
74
+ <hotspot source="img" offsetX="436" offsetY="247" />
75
+ </image>
76
+ <image src="Images/Filename_16.jpg">
77
+ <hotspot source="img" offsetX="421" offsetY="248" />
78
+ </image>
79
+ <image src="Images/Filename_17.jpg">
80
+ <hotspot source="img" offsetX="405" offsetY="249" />
81
+ </image>
82
+ <image src="Images/Filename_18.jpg">
83
+ <hotspot source="img" offsetX="388" offsetY="248" />
84
+ </image>
85
+ <image src="Images/Filename_19.jpg">
86
+ <hotspot source="img" offsetX="372" offsetY="248" />
87
+ </image>
88
+ <image src="Images/Filename_20.jpg">
89
+ <hotspot source="img" offsetX="356" offsetY="246" />
90
+ </image>
91
+ <image src="Images/Filename_21.jpg">
92
+ <hotspot source="img" offsetX="342" offsetY="244" />
93
+ </image>
94
+ <image src="Images/Filename_22.jpg">
95
+ <hotspot source="img" offsetX="331" offsetY="242" />
96
+ </image>
97
+ <image src="Images/Filename_23.jpg">
98
+ <hotspot source="img" offsetX="321" offsetY="238" />
99
+ </image>
100
+ <image src="Images/Filename_24.jpg">
101
+ <hotspot source="img" offsetX="315" offsetY="235" />
102
+ </image>
103
+ <image src="Images/Filename_25.jpg">
104
+ <hotspot source="img" offsetX="310" offsetY="231" />
105
+ </image>
106
+ <image src="Images/Filename_26.jpg">
107
+ <hotspot source="img" offsetX="307" offsetY="228" />
108
+ </image>
109
+ <image src="Images/Filename_27.jpg">
110
+ <hotspot source="text" offsetX="523" offsetY="302" />
111
+ </image>
112
+ <image src="Images/Filename_28.jpg">
113
+ <hotspot source="text" offsetX="482" offsetY="308" />
114
+ </image>
115
+ <image src="Images/Filename_29.jpg">
116
+ <hotspot source="text" offsetX="438" offsetY="310" />
117
+ </image>
118
+ <image src="Images/Filename_30.jpg">
119
+ <hotspot source="text" offsetX="395" offsetY="312" />
120
+ <hotspot source="flash" offsetX="543" offsetY="185" />
121
+ </image>
122
+ <image src="Images/Filename_31.jpg">
123
+ <hotspot source="text" offsetX="351" offsetY="310" />
124
+ <hotspot source="flash" offsetX="567" offsetY="190" />
125
+ </image>
126
+ <image src="Images/Filename_32.jpg">
127
+ <hotspot source="text" offsetX="308" offsetY="307" />
128
+ <hotspot source="flash" offsetX="585" offsetY="197" />
129
+ </image>
130
+ <image src="Images/Filename_33.jpg">
131
+ <hotspot source="text" offsetX="270" offsetY="301" />
132
+ <hotspot source="flash" offsetX="600" offsetY="205" />
133
+ </image>
134
+ <image src="Images/Filename_34.jpg">
135
+ <hotspot source="text" offsetX="236" offsetY="294" />
136
+ <hotspot source="flash" offsetX="609" offsetY="213" />
137
+ </image>
138
+ <image src="Images/Filename_35.jpg">
139
+ <hotspot source="text" offsetX="208" offsetY="286" />
140
+ <hotspot source="flash" offsetX="612" offsetY="221" />
141
+ </image>
142
+ <image src="Images/Filename_36.jpg">
143
+ <hotspot source="text" offsetX="186" offsetY="277" />
144
+ <hotspot source="flash" offsetX="609" offsetY="231" />
145
+ </image>
146
+ </images>
147
+ </config>
skin/frontend/default/default/webrotate360/360thumb.png ADDED
Binary file
skin/frontend/default/default/webrotate360/frame.html ADDED
@@ -0,0 +1,65 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
3
+
4
+ <head>
5
+ <title>WebRotate 360 Viewer Integration Sample</title>
6
+
7
+ <link type="text/css" rel="stylesheet" href="imagerotator/html/css/basic.css"/>
8
+ <script type="text/javascript" src="imagerotator/html/js/swfobject.js"></script>
9
+ <script type="text/javascript" src="imagerotator/html/js/jquery-1.6.1.min.js"></script>
10
+ <script type="text/javascript" src="imagerotator/html/js/imagerotator.js"></script>
11
+
12
+
13
+ <style type= "text/css">
14
+
15
+ body
16
+ {
17
+ background: #fff;
18
+ }
19
+
20
+
21
+ </style>
22
+
23
+ <script language="javascript" type="text/javascript">
24
+ function startFrame360Viewer()
25
+ {
26
+ _360IFrameParams = new parent.Magento360IFrameParams();
27
+
28
+ _360width = parseInt(_360IFrameParams.width);
29
+ _360height = parseInt(_360IFrameParams.height);
30
+ _jsonly = parseInt(_360IFrameParams.jsonly);
31
+ _360configFileURL = _360IFrameParams.configFileURL;
32
+ _licensePath = _360IFrameParams.licensePath;
33
+
34
+ if ((!_360width ) ||
35
+ (!_360height ) ||
36
+ (!_360configFileURL))
37
+ {
38
+ alert("One or more 360 iFrame parameters are missing");
39
+ }
40
+ else
41
+ {
42
+ jQuery('#frame_content').css('width', _360width);
43
+ jQuery('#frame_content').css('height', _360height);
44
+ }
45
+
46
+ _imageRotator.settings.jsScriptOnly = _jsonly ? true : false;
47
+ _imageRotator.settings.swfFileURL = "imagerotator/imagerotator.swf";
48
+ _imageRotator.settings.configFileURL = _360configFileURL;
49
+ _imageRotator.licenseFileURL = _licensePath;
50
+ _imageRotator.runImageRotator("wr360PlayerId");
51
+ }
52
+
53
+ </script>
54
+
55
+ </head>
56
+
57
+ <body onload="setTimeout('startFrame360Viewer()', 200);">
58
+
59