CTCR_View360 - Version 1.0.0.0

Version Notes

First released version.

Download this release

Release Info

Developer Magento Core Team
Extension CTCR_View360
Version 1.0.0.0
Comparing to
See all releases


Version 1.0.0.0

app/code/community/CTCR/View360/Helper/Data.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+ class CTCR_View360_Helper_Data extends Mage_Core_Helper_Abstract{
3
+ }
app/code/community/CTCR/View360/Model/Resource/Setup.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+ class CTCR_View360_Model_Resource_Setup extends Mage_Eav_Model_Entity_Setup {
3
+ }
app/code/community/CTCR/View360/etc/config.xml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <CTCR_View360>
5
+ <version>1.0.0.0</version>
6
+ </CTCR_View360>
7
+ </modules>
8
+
9
+ <global>
10
+ <helpers>
11
+ <view360>
12
+ <class>CTCR_View360_Helper</class>
13
+ </view360>
14
+ </helpers>
15
+ <resources>
16
+ <ctcrview360_setup>
17
+ <setup>
18
+ <module>CTCR_View360</module>
19
+ <class>CTCR_View360_Model_Resource_Setup</class>
20
+ </setup>
21
+ </ctcrview360_setup>
22
+ </resources>
23
+ </global>
24
+
25
+ <frontend>
26
+ <layout>
27
+ <updates>
28
+ <ctcr_view360>
29
+ <file>ctcr_view360.xml</file>
30
+ </ctcr_view360>
31
+ </updates>
32
+ </layout>
33
+ </frontend>
34
+
35
+ <adminhtml>
36
+ <acl>
37
+ <resources>
38
+ <admin>
39
+ <children>
40
+ <system>
41
+ <children>
42
+ <config>
43
+ <children>
44
+ <view360_config translate="title" module="view360">
45
+ <title>CTCR View360 Settings</title>
46
+ </view360_config>
47
+ </children>
48
+ </config>
49
+ </children>
50
+ </system>
51
+ </children>
52
+ </admin>
53
+ </resources>
54
+ </acl>
55
+ </adminhtml>
56
+
57
+ <default>
58
+ <ctcr_view360>
59
+ <general>
60
+ <enabled>1</enabled>
61
+ </general>
62
+ </ctcr_view360>
63
+ <view360_config>
64
+ <view360_group>
65
+ <view360_enabled>1</view360_enabled>
66
+ </view360_group>
67
+ <view360_popup>
68
+ <view360_popup_display>1</view360_popup_display>
69
+ <view360_popup_width>500</view360_popup_width>
70
+ <view360_popup_height>500</view360_popup_height>
71
+ <view360_popup_opacity>50</view360_popup_opacity>
72
+ <view360_popup_helptext>Drag to spin</view360_popup_helptext>
73
+ <view360_popup_link>360&#176; View</view360_popup_link>
74
+ </view360_popup>
75
+ <view360_productimages>
76
+ <view360_show_images>1</view360_show_images>
77
+ <view360_productimages_width>56</view360_productimages_width>
78
+ <view360_productimages_height>56</view360_productimages_height>
79
+ <view360_show_images_popup>1</view360_show_images_popup>
80
+ <view360_show_images_popup_width>300</view360_show_images_popup_width>
81
+ <view360_show_images_popup_height>300</view360_show_images_popup_height>
82
+ <view360_show_images_popup_left>0</view360_show_images_popup_left>
83
+ <view360_show_images_popup_top>0</view360_show_images_popup_top>
84
+ </view360_productimages>
85
+ </view360_config>
86
+ </default>
87
+ </config>
app/code/community/CTCR/View360/etc/system.xml ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" ?>
2
+ <config>
3
+ <sections>
4
+ <view360_config module="view360" translate="label">
5
+ <label>View360</label>
6
+ <tab>catalog</tab>
7
+ <sort_order>314</sort_order>
8
+ <show_in_default>1</show_in_default>
9
+ <show_in_website>1</show_in_website>
10
+ <show_in_store>1</show_in_store>
11
+ <groups>
12
+ <view360_group translate="label">
13
+ <label>General</label>
14
+ <comment><![CDATA[<strong>General settings for View360 display</strong>]]></comment>
15
+ <sort_order>0</sort_order>
16
+ <show_in_default>1</show_in_default>
17
+ <show_in_website>1</show_in_website>
18
+ <show_in_store>1</show_in_store>
19
+ <fields>
20
+ <view360_enabled translate="label tooltip comment">
21
+ <label>Enable View360 display</label>
22
+ <frontend_type>select</frontend_type>
23
+ <source_model>adminhtml/system_config_source_yesno</source_model>
24
+ <sort_order>0</sort_order>
25
+ <show_in_default>1</show_in_default>
26
+ <show_in_website>1</show_in_website>
27
+ <show_in_store>1</show_in_store>
28
+ <comment>Enable the display to view the 360 models of products.</comment>
29
+ </view360_enabled>
30
+ </fields>
31
+ </view360_group>
32
+ <view360_popup>
33
+ <label>Pop-up display</label>
34
+ <comment><![CDATA[<strong>Settings of the popup display for viewing 360 model</strong>]]></comment>
35
+ <sort_order>1</sort_order>
36
+ <show_in_default>1</show_in_default>
37
+ <show_in_website>1</show_in_website>
38
+ <show_in_store>1</show_in_store>
39
+ <fields>
40
+ <view360_popup_display translate="label tooltip comment">
41
+ <label>Pop-up mode display</label>
42
+ <frontend_type>select</frontend_type>
43
+ <source_model>adminhtml/system_config_source_yesno</source_model>
44
+ <sort_order>1</sort_order>
45
+ <show_in_default>1</show_in_default>
46
+ <show_in_website>1</show_in_website>
47
+ <show_in_store>1</show_in_store>
48
+ <comment>The 360 view of the product is viewed in a pop-up display.</comment>
49
+ </view360_popup_display>
50
+ <view360_popup_width translate="label tooltip comment">
51
+ <label>Pop-up display width</label>
52
+ <frontend_type>text</frontend_type>
53
+ <sort_order>2</sort_order>
54
+ <show_in_default>1</show_in_default>
55
+ <show_in_website>1</show_in_website>
56
+ <show_in_store>1</show_in_store>
57
+ <comment>Width in pixels of the pop-up display.</comment>
58
+ </view360_popup_width>
59
+ <view360_popup_height translate="label tooltip comment">
60
+ <label>Pop-up display height</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>1</show_in_website>
65
+ <show_in_store>1</show_in_store>
66
+ <comment>Height in pixels of the pop-up display.</comment>
67
+ </view360_popup_height>
68
+ <view360_popup_opacity translate="label tooltip comment">
69
+ <label>Pop-up display opacity (percentage)</label>
70
+ <frontend_type>text</frontend_type>
71
+ <sort_order>4</sort_order>
72
+ <show_in_default>1</show_in_default>
73
+ <show_in_website>1</show_in_website>
74
+ <show_in_store>1</show_in_store>
75
+ <comment>Opacity percentage for the pop-up display.</comment>
76
+ </view360_popup_opacity>
77
+ <view360_popup_helptext>
78
+ <label>Pop-up help text</label>
79
+ <frontend_type>text</frontend_type>
80
+ <sort_order>5</sort_order>
81
+ <show_in_default>1</show_in_default>
82
+ <show_in_website>1</show_in_website>
83
+ <show_in_store>1</show_in_store>
84
+ <comment>Text that appears at the top of the pop-up to guide the user.</comment>
85
+ </view360_popup_helptext>
86
+ <view360_popup_link translate="label tooltip comment">
87
+ <label>Pop-up link text</label>
88
+ <frontend_type>text</frontend_type>
89
+ <sort_order>6</sort_order>
90
+ <show_in_default>1</show_in_default>
91
+ <show_in_website>1</show_in_website>
92
+ <show_in_store>1</show_in_store>
93
+ <comment>Text that appears in the button to activate the pop-up display.</comment>
94
+ </view360_popup_link>
95
+ </fields>
96
+ </view360_popup>
97
+ <view360_productimages>
98
+ <label>Product images</label>
99
+ <comment><![CDATA[<strong>Settings of the additional images of the product</strong>]]></comment>
100
+ <sort_order>2</sort_order>
101
+ <show_in_default>1</show_in_default>
102
+ <show_in_website>1</show_in_website>
103
+ <show_in_store>1</show_in_store>
104
+ <fields>
105
+ <view360_show_images translate="label tooltip comment">
106
+ <label>Show product images</label>
107
+ <frontend_type>select</frontend_type>
108
+ <source_model>adminhtml/system_config_source_yesno</source_model>
109
+ <sort_order>0</sort_order>
110
+ <show_in_default>1</show_in_default>
111
+ <show_in_website>1</show_in_website>
112
+ <show_in_store>1</show_in_store>
113
+ <comment>Displays all product images.</comment>
114
+ </view360_show_images>
115
+ <view360_productimages_width translate="label tooltip comment">
116
+ <label>Product images width</label>
117
+ <frontend_type>text</frontend_type>
118
+ <sort_order>1</sort_order>
119
+ <show_in_default>1</show_in_default>
120
+ <show_in_website>1</show_in_website>
121
+ <show_in_store>1</show_in_store>
122
+ <comment>Width in pixels of the product images.</comment>
123
+ </view360_productimages_width>
124
+ <view360_productimages_height translate="label tooltip comment">
125
+ <label>Product images height</label>
126
+ <frontend_type>text</frontend_type>
127
+ <sort_order>2</sort_order>
128
+ <show_in_default>1</show_in_default>
129
+ <show_in_website>1</show_in_website>
130
+ <show_in_store>1</show_in_store>
131
+ <comment>Height in pixels of the product images.</comment>
132
+ </view360_productimages_height>
133
+ <view360_show_images_popup translate="label tooltip comment">
134
+ <label>Show product images in popup window</label>
135
+ <frontend_type>select</frontend_type>
136
+ <source_model>adminhtml/system_config_source_yesno</source_model>
137
+ <sort_order>3</sort_order>
138
+ <show_in_default>1</show_in_default>
139
+ <show_in_website>1</show_in_website>
140
+ <show_in_store>1</show_in_store>
141
+ <comment>Product images are viewed in a popup window.</comment>
142
+ </view360_show_images_popup>
143
+ <view360_show_images_popup_width translate="label tooltip comment">
144
+ <label>Popup window width</label>
145
+ <frontend_type>text</frontend_type>
146
+ <sort_order>4</sort_order>
147
+ <show_in_default>1</show_in_default>
148
+ <show_in_website>1</show_in_website>
149
+ <show_in_store>1</show_in_store>
150
+ <comment>Width in pixels of the popup window for viewing product images.</comment>
151
+ </view360_show_images_popup_width>
152
+ <view360_show_images_popup_height translate="label tooltip comment">
153
+ <label>Popup window height</label>
154
+ <frontend_type>text</frontend_type>
155
+ <sort_order>5</sort_order>
156
+ <show_in_default>1</show_in_default>
157
+ <show_in_website>1</show_in_website>
158
+ <show_in_store>1</show_in_store>
159
+ <comment>Height in pixels of the popup window for viewing product images.</comment>
160
+ </view360_show_images_popup_height>
161
+ <view360_show_images_popup_left translate="label tooltip comment">
162
+ <label>Popup window left</label>
163
+ <frontend_type>text</frontend_type>
164
+ <sort_order>6</sort_order>
165
+ <show_in_default>1</show_in_default>
166
+ <show_in_website>1</show_in_website>
167
+ <show_in_store>1</show_in_store>
168
+ <comment>Distance in pixels of the popup window to left margin of the screen.</comment>
169
+ </view360_show_images_popup_left>
170
+ <view360_show_images_popup_top translate="label tooltip comment">
171
+ <label>Popup window top</label>
172
+ <frontend_type>text</frontend_type>
173
+ <sort_order>7</sort_order>
174
+ <show_in_default>1</show_in_default>
175
+ <show_in_website>1</show_in_website>
176
+ <show_in_store>1</show_in_store>
177
+ <comment>Distance in pixels of the popup window to upper margin of the screen.</comment>
178
+ </view360_show_images_popup_top>
179
+ </fields>
180
+ </view360_productimages>
181
+ </groups>
182
+ </view360_config>
183
+ </sections>
184
+ </config>
app/code/community/CTCR/View360/sql/ctcrview360_setup/mysql4-install-1.0.0.0.php ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $setup = new Mage_Eav_Model_Entity_Setup('core_setup');;
3
+ $setup->startSetup();
4
+
5
+ $setup->addAttributeGroup('catalog_product', 'Default', 'View360');
6
+ $setup->addAttribute('catalog_product', 'ctcrview360_model_url', array(
7
+ 'group' => 'View360',
8
+ 'input' => 'text',
9
+ 'type' => 'text',
10
+ 'label' => 'Model URL',
11
+ 'backend' => '',
12
+ 'visible' => 1,
13
+ 'required' => 0,
14
+ 'user_defined' => 1,
15
+ 'sort order' => 0,
16
+ 'searchable' => 0,
17
+ 'filterable' => 0,
18
+ 'comparable' => 0,
19
+ 'visible_on_front' => 1,
20
+ 'visible_in_advanced_search' => 0,
21
+ 'is_html_allowed_on_front' => 0,
22
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
23
+ ));
24
+ $setup->addAttribute('catalog_product', 'ctcrview360_popup_model', array(
25
+ 'group' => 'View360',
26
+ 'type' => 'int',
27
+ 'input' => 'select',
28
+ 'label' => 'Popup mode display',
29
+ 'backend' => '',
30
+ 'visible' => 1,
31
+ 'required' => 0,
32
+ 'user_defined' => 1,
33
+ 'sort order' => 5,
34
+ 'default' => '2',
35
+ 'source' => 'giftmessage/entity_attribute_source_boolean_config',
36
+ 'searchable' => 0,
37
+ 'filterable' => 0,
38
+ 'comparable' => 0,
39
+ 'visible_on_front' => 1,
40
+ 'visible_in_advanced_search' => 0,
41
+ 'is_html_allowed_on_front' => 0,
42
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
43
+ ));
44
+ $setup->addAttribute('catalog_product', 'ctcrview360_popup_width', array(
45
+ 'group' => 'View360',
46
+ 'type' => 'int',
47
+ 'input' => 'text',
48
+ 'label' => 'Popup display width',
49
+ 'backend' => '',
50
+ 'visible' => 1,
51
+ 'required' => 0,
52
+ 'user_defined' => 1,
53
+ 'sort order' => 2,
54
+ 'default' => '0',
55
+ 'searchable' => 0,
56
+ 'filterable' => 0,
57
+ 'comparable' => 0,
58
+ 'visible_on_front' => 1,
59
+ 'visible_in_advanced_search' => 0,
60
+ 'is_html_allowed_on_front' => 0,
61
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
62
+ ));
63
+ $setup->addAttribute('catalog_product', 'ctcrview360_popup_height', array(
64
+ 'group' => 'View360',
65
+ 'type' => 'int',
66
+ 'input' => 'text',
67
+ 'label' => 'Popup display height',
68
+ 'backend' => '',
69
+ 'visible' => 1,
70
+ 'required' => 0,
71
+ 'user_defined' => 1,
72
+ 'sort order' => 3,
73
+ 'default' => '0',
74
+ 'searchable' => 0,
75
+ 'filterable' => 0,
76
+ 'comparable' => 0,
77
+ 'visible_on_front' => 1,
78
+ 'visible_in_advanced_search' => 0,
79
+ 'is_html_allowed_on_front' => 0,
80
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
81
+ ));
82
+ $setup->addAttribute('catalog_product', 'ctcrview360_popup_opacity', array(
83
+ 'group' => 'View360',
84
+ 'type' => 'int',
85
+ 'input' => 'text',
86
+ 'label' => 'Popup display opacity (percentage)',
87
+ 'backend' => '',
88
+ 'visible' => 1,
89
+ 'required' => 0,
90
+ 'user_defined' => 1,
91
+ 'sort order' => 4,
92
+ 'searchable' => 0,
93
+ 'filterable' => 0,
94
+ 'comparable' => 0,
95
+ 'visible_on_front' => 1,
96
+ 'visible_in_advanced_search' => 0,
97
+ 'is_html_allowed_on_front' => 0,
98
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
99
+ ));
100
+ $setup->addAttribute('catalog_product', 'ctcrview360_see_product_images', array(
101
+ 'group' => 'View360',
102
+ 'type' => 'int',
103
+ 'input' => 'select',
104
+ 'label' => 'Show product images',
105
+ 'backend' => '',
106
+ 'visible' => 1,
107
+ 'required' => 0,
108
+ 'user_defined' => 1,
109
+ 'sort order' => 5,
110
+ 'default' => '2',
111
+ 'source' => 'giftmessage/entity_attribute_source_boolean_config',
112
+ 'searchable' => 0,
113
+ 'filterable' => 0,
114
+ 'comparable' => 0,
115
+ 'visible_on_front' => 1,
116
+ 'visible_in_advanced_search' => 0,
117
+ 'is_html_allowed_on_front' => 0,
118
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
119
+ ));
120
+ $setup->addAttribute('catalog_product', 'ctcrview360_pr_img_width', array(
121
+ 'group' => 'View360',
122
+ 'type' => 'int',
123
+ 'input' => 'text',
124
+ 'label' => 'Product images width',
125
+ 'backend' => '',
126
+ 'visible' => 1,
127
+ 'required' => 0,
128
+ 'user_defined' => 1,
129
+ 'sort order' => 6,
130
+ 'default' => '0',
131
+ 'searchable' => 0,
132
+ 'filterable' => 0,
133
+ 'comparable' => 0,
134
+ 'visible_on_front' => 1,
135
+ 'visible_in_advanced_search' => 0,
136
+ 'is_html_allowed_on_front' => 0,
137
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
138
+ ));
139
+ $setup->addAttribute('catalog_product', 'ctcrview360_pr_img_height', array(
140
+ 'group' => 'View360',
141
+ 'type' => 'int',
142
+ 'input' => 'text',
143
+ 'label' => 'Product images height',
144
+ 'backend' => '',
145
+ 'visible' => 1,
146
+ 'required' => 0,
147
+ 'user_defined' => 1,
148
+ 'sort order' => 7,
149
+ 'default' => '0',
150
+ 'searchable' => 0,
151
+ 'filterable' => 0,
152
+ 'comparable' => 0,
153
+ 'visible_on_front' => 1,
154
+ 'visible_in_advanced_search' => 0,
155
+ 'is_html_allowed_on_front' => 0,
156
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
157
+ ));
158
+ $setup->addAttribute('catalog_product', 'ctcrview360_see_pr_img_popup', array(
159
+ 'group' => 'View360',
160
+ 'type' => 'int',
161
+ 'input' => 'select',
162
+ 'label' => 'Show product images in popup window',
163
+ 'backend' => '',
164
+ 'visible' => 1,
165
+ 'required' => 0,
166
+ 'user_defined' => 1,
167
+ 'sort order' => 8,
168
+ 'default' => '2',
169
+ 'source' => 'giftmessage/entity_attribute_source_boolean_config',
170
+ 'searchable' => 0,
171
+ 'filterable' => 0,
172
+ 'comparable' => 0,
173
+ 'visible_on_front' => 1,
174
+ 'visible_in_advanced_search' => 0,
175
+ 'is_html_allowed_on_front' => 0,
176
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
177
+ ));
178
+
179
+ $setup->endSetup();
app/design/frontend/default/default/layout/ctcr_view360.xml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ *
5
+ * Package :- CTCR_View360-1.0.0.0.tgz
6
+ * Version :- 1.0.0.0
7
+ * Edition :- Community
8
+ * Developed By :- CTCR
9
+ *
10
+ */
11
+ -->
12
+ <layout version="0.1.0">
13
+ <catalog_product_view>
14
+ <reference name="head">
15
+ <action method="addCss"><stylesheet>css/ctcr_view360.css</stylesheet></action>
16
+ <action method="addJs"><script>ctcr/ctcrview360.js</script></action>
17
+ </reference>
18
+
19
+ <reference name="product.info.media">
20
+ <action method="setTemplate" ifconfig="ctcr_view360/general/enabled">
21
+ <template>ctcr/catalog/product/view/media.phtml</template>
22
+ </action>
23
+ </reference>
24
+ </catalog_product_view>
25
+
26
+ <review_product_list>
27
+ <reference name="head">
28
+ <action method="addCss"><stylesheet>css/ctcr_view360.css</stylesheet></action>
29
+ <action method="addJs"><script>ctcr/popupMode.js</script></action>
30
+ </reference>
31
+
32
+ <reference name="product.info.media">
33
+ <action method="setTemplate" ifconfig="ctcr_view360/general/enabled">
34
+ <template>ctcr/catalog/product/view/media.phtml</template>
35
+ </action>
36
+ </reference>
37
+ </review_product_list>
38
+ </layout>
app/design/frontend/default/default/template/ctcr/catalog/product/view/media.phtml ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Moo Extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Moo
16
+ * @package Moo_Catalog
17
+ * @author Mohamed Alsharaf <mohamed.alsharaf@gmail.com>
18
+ * @copyright Copyright (c) 2010 Mohamed Alsharaf. (http://jamandcheese-on-phptoast.com)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+
22
+ /**
23
+ * Product media data template
24
+ *
25
+ * @see Mage_Catalog_Block_Product_View_Media
26
+ */
27
+ ?>
28
+
29
+ <?php
30
+ function modelExist($url)
31
+ {
32
+ $options['http'] = array(
33
+ 'method' => "HEAD",
34
+ 'ignore_errors' => 1,
35
+ 'max_redirects' => 0
36
+ );
37
+ $body = file_get_contents($url, NULL, stream_context_create($options));
38
+ sscanf($http_response_header[0], 'HTTP/%*d.%*d %d', $code);
39
+ return $code == 200;
40
+ }
41
+
42
+ $_product = $this->getProduct();
43
+ $_helper = $this->helper('catalog/output');
44
+
45
+ // Variables para las im�genes del producto
46
+ $_productImages = 0;
47
+ $_productImagesWidth = 0;
48
+ $_productImagesHeight = 0;
49
+ $_productImagesPopup = 0;
50
+
51
+ // Variables del modelo 360
52
+ $_enabledModule = Mage::getStoreConfig('view360_config/view360_group/view360_enabled');
53
+ $_xmlModel = $_product->getData('ctcrview360_model_url');
54
+ $_3dModel = 0;
55
+
56
+ // Variables del modo popup
57
+ $_popupModel = 0;
58
+ $anchoPopup = 0;
59
+ $altoPopup = 0;
60
+ $popupOpacidad = 50;
61
+
62
+ // Comprueba si las im�genes del producto se van a presentar en un popup o no
63
+ $_productImagesPopup = $_product->getData('ctcrview360_see_pr_img_popup');
64
+ if($_productImagesPopup == 2):
65
+ $_productImagesPopup = Mage::getStoreConfig('view360_config/view360_productimages/view360_show_images_popup');
66
+ endif;
67
+
68
+ // Comprueba las dimensiones de las im�genes del producto
69
+ $_productImagesWidth = $_product->getData('ctcrview360_pr_img_width');
70
+ if($_productImagesWidth == "" || $_productImagesWidth == 0):
71
+ $_productImagesWidth = Mage::getStoreConfig('view360_config/view360_productimages/view360_productimages_width');
72
+ endif;
73
+
74
+ $_productImagesHeight = $_product->getData('ctcrview360_pr_img_height');
75
+ if($_productImagesHeight == "" || $_productImagesHeight == 0):
76
+ $_productImagesHeight = Mage::getStoreConfig('view360_config/view360_productimages/view360_productimages_height');
77
+ endif;
78
+
79
+ if ($_xmlModel != "" && $_enabledModule):
80
+ $_3dModel = modelExist($_xmlModel);
81
+ $_productImages = $_product->getData('ctcrview360_see_product_images');
82
+ if($_productImages == 2):
83
+ $_productImages = Mage::getStoreConfig('view360_config/view360_productimages/view360_show_images');
84
+ endif;
85
+
86
+ $_popupModel = $_product->getData('ctcrview360_popup_model');
87
+ if($_popupModel == 2):
88
+ $_popupModel = Mage::getStoreConfig('view360_config/view360_popup/view360_popup_display');
89
+ endif;
90
+
91
+ if ($_popupModel == 1):
92
+ $anchoPopup = $_product->getData('ctcrview360_popup_width');
93
+ if($anchoPopup == "" || $anchoPopup == 0):
94
+ $anchoPopup = Mage::getStoreConfig('view360_config/view360_popup/view360_popup_width');
95
+ endif;
96
+
97
+ $altoPopup = $_product->getData('ctcrview360_popup_height');
98
+ if($altoPopup == "" || $altoPopup == 0):
99
+ $altoPopup = Mage::getStoreConfig('view360_config/view360_popup/view360_popup_height');
100
+ endif;
101
+
102
+ $popupOpacidad = $_product->getData('ctcrview360_popup_opacity');
103
+ if($popupOpacidad == ""):
104
+ $popupOpacidad = Mage::getStoreConfig('view360_config/view360_popup/view360_popup_opacity');
105
+ endif;
106
+ endif;
107
+ endif;
108
+ ?>
109
+
110
+ <?php if ($_product->getImage() != 'no_selection' && $_product->getImage()):
111
+ $_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
112
+ if($_3dModel && $_popupModel == 0):
113
+ echo "<div id='productImage'>";
114
+ endif; ?>
115
+ <p class="product-image product-image-zoom">
116
+ <?php
117
+ echo $_helper->productAttribute($_product, $_img, 'image');
118
+ ?>
119
+ </p>
120
+ <p class="zoom-notice" id="track_hint"><?php echo $this->__('Double click on above image to view full picture') ?></p>
121
+ <div class="zoom">
122
+ <img id="zoom_out" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_out.gif') ?>" alt="<?php echo $this->__('Zoom Out') ?>" title="<?php echo $this->__('Zoom Out') ?>" class="btn-zoom-out" />
123
+ <div id="track">
124
+ <div id="handle"></div>
125
+ </div>
126
+ <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" />
127
+ </div>
128
+ <?php if($_3dModel && $_popupModel == 0):
129
+ echo "</div>";
130
+ endif; ?>
131
+
132
+ <script type="text/javascript">
133
+ //<![CDATA[
134
+ Event.observe(window, 'load', function() {
135
+ var establecerDimensiones = "<?php echo $_3dModel; ?>";
136
+ product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint');
137
+ //var image = 'image';
138
+ if(establecerDimensiones)
139
+ {
140
+ var ancho = document.getElementById('image').width;
141
+ var alto = document.getElementById('image').height;
142
+
143
+ var src = "<?php echo $_xmlModel; ?>";
144
+ document.getElementById('view360').src = src + "?width=" + ancho + "&height=" + alto;
145
+ document.getElementById('view360').width = ancho;
146
+ document.getElementById('view360').height = alto;
147
+ document.getElementById('productImage').style.display = "none";
148
+ }
149
+ });
150
+ //]]>
151
+ </script>
152
+
153
+ <?php if($_3dModel && $_popupModel == 0): ?>
154
+ <iframe id="view360" frameborder="0" width="0" height="0" scrolling='no'></iframe>
155
+ <?php endif; ?>
156
+ <?php else: ?>
157
+ <p class="product-image">
158
+ <?php
159
+ if($_3dModel && $_popupModel == 0):
160
+ echo "<iframe id='view360' src='$_xmlModel?width=265&height=265' frameborder='0' width='265' height='265' scrolling='no'></iframe>";
161
+ else:
162
+ $_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
163
+ echo $_helper->productAttribute($_product, $_img, 'image');
164
+ endif;
165
+ ?>
166
+ </p>
167
+ <?php endif; ?>
168
+
169
+ <?php // Im�genes del producto
170
+ if ((!$_3dModel || ($_3dModel && ($_productImages == 1 || $_popupModel == 1))) && count($this->getGalleryImages()) > 0): ?>
171
+ <div class="more-pr-views">
172
+ <h2><?php echo $this->__('More Views') ?></h2>
173
+ <ul>
174
+ <?php foreach ($this->getGalleryImages() as $_image): ?>
175
+ <li>
176
+ <?php if($_productImagesPopup || ($_3dModel && $_popupModel == 0)): ?>
177
+ <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', '<?php echo 'width='.Mage::getStoreConfig('view360_config/view360_productimages/view360_show_images_popup_width').',height='.Mage::getStoreConfig('view360_config/view360_productimages/view360_show_images_popup_height').',left='.Mage::getStoreConfig('view360_config/view360_productimages/view360_show_images_popup_left').',top='.Mage::getStoreConfig('view360_config/view360_productimages/view360_show_images_popup_top');?>,directories=no,location=no,status=no,scrollbars=yes,resizable=yes'); return false;" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>" width="<?php echo $_productImagesWidth; ?>" height="<?php echo $_productImagesHeight; ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize($_productImagesWidth); ?>" width="<?php echo $_productImagesWidth; ?>" height="<?php echo $_productImagesHeight; ?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
178
+ <?php else: ?>
179
+ <a href="#" onclick="changeProductImage('<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile()); ?>', 'image');" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>" width="<?php echo $_productImagesWidth; ?>" height="<?php echo $_productImagesHeight; ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize($_productImagesWidth); ?>" width="<?php echo $_productImagesWidth; ?>" height="<?php echo $_productImagesHeight; ?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
180
+ <?php endif; ?>
181
+ </li>
182
+ <?php endforeach; ?>
183
+ </ul>
184
+ </div>
185
+ <?php endif;
186
+
187
+ // Producto en modo popup display
188
+ if ($_popupModel == 1): ?>
189
+ <div class="contenedor-boton">
190
+ <input class="boton" type="button" value="<?php echo Mage::getStoreConfig('view360_config/view360_popup/view360_popup_link'); ?>" onclick="openpopup('popup1', <?php echo ($anchoPopup+4); ?>, <?php echo ($altoPopup+4); ?>, 1)">
191
+ </div>
192
+ <div id="popup1" class="popup">
193
+ <span class="texto-popup"><?php echo Mage::getStoreConfig('view360_config/view360_popup/view360_popup_helptext'); ?></span><br>
194
+ <?php
195
+ echo "<center><iframe src='".$_xmlModel."?width=".$anchoPopup."&amp;height=".$altoPopup."&amp;rel=1' frameborder='0' width='$anchoPopup' height='$altoPopup' scrolling='no'></iframe></center>";
196
+ ?>
197
+ </div>
198
+ <div id="bg" class="popup_bg" style="opacity: <?php echo ($popupOpacidad/100); ?>; filter: alpha(opacity=<?php echo ($popupOpacidad); ?>);" onclick="closepopup('popup1')"></div>
199
+ <?php endif; ?>
app/etc/modules/CTCR_View360.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <config>
2
+ <modules>
3
+ <CTCR_View360>
4
+ <active>true</active>
5
+ <codePool>community</codePool>
6
+ </CTCR_View360>
7
+ </modules>
8
+ </config>
js/ctcr/ctcrview360.js ADDED
@@ -0,0 +1 @@
 
1
+ var _0x6d57=["\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x73\x72\x63","\x69\x6E\x6E\x65\x72\x57\x69\x64\x74\x68","\x69\x6E\x6E\x65\x72\x48\x65\x69\x67\x68\x74","\x6E\x75\x6D\x62\x65\x72","\x63\x6F\x6D\x70\x61\x74\x4D\x6F\x64\x65","\x43\x53\x53\x31\x43\x6F\x6D\x70\x61\x74","\x63\x6C\x69\x65\x6E\x74\x57\x69\x64\x74\x68","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x6C\x69\x65\x6E\x74\x48\x65\x69\x67\x68\x74","\x62\x6F\x64\x79","\x62\x67","\x76\x69\x73\x69\x62\x69\x6C\x69\x74\x79","\x73\x74\x79\x6C\x65","\x76\x69\x73\x69\x62\x6C\x65","\x61\x70\x70\x4E\x61\x6D\x65","\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x20\x49\x6E\x74\x65\x72\x6E\x65\x74\x20\x45\x78\x70\x6C\x6F\x72\x65\x72","\x63\x75\x72\x72\x65\x6E\x74\x53\x74\x79\x6C\x65","\x67\x65\x74\x43\x6F\x6D\x70\x75\x74\x65\x64\x53\x74\x79\x6C\x65","\x64\x65\x66\x61\x75\x6C\x74\x56\x69\x65\x77","\x77\x69\x64\x74\x68","\x70\x78","\x68\x65\x69\x67\x68\x74","\x6C\x65\x66\x74","\x74\x6F\x70","\x63\x6C\x6F\x73\x65\x70\x6F\x70\x75\x70\x28\x27","\x27\x29","\x69\x6E\x64\x65\x78\x4F\x66","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x3C\x61\x20\x68\x72\x65\x66\x3D\x22\x23\x22\x20\x6F\x6E\x63\x6C\x69\x63\x6B\x3D\x22\x63\x6C\x6F\x73\x65\x70\x6F\x70\x75\x70\x28\x27","\x27\x29\x22\x3E\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x63\x6C\x6F\x73\x65\x5F\x62\x75\x74\x74\x6F\x6E\x22\x3E\x58\x3C\x2F\x73\x70\x61\x6E\x3E\x3C\x2F\x61\x3E","\x6F\x6E\x6B\x65\x79\x70\x72\x65\x73\x73","\x6B\x65\x79\x43\x6F\x64\x65","\x68\x69\x64\x64\x65\x6E"];var pid;function changeProductImage(_0x51d9x3,_0x51d9x4){var _0x51d9x5=document[_0x6d57[0]](_0x51d9x4);_0x51d9x5[_0x6d57[1]]=_0x51d9x3;} ;function openpopup(_0x51d9x4,_0x51d9x7,_0x51d9x8,_0x51d9x9){pid=_0x51d9x4;var _0x51d9xa=window[_0x6d57[2]];var _0x51d9xb=window[_0x6d57[3]];if( typeof _0x51d9xa!=_0x6d57[4]){if(document[_0x6d57[5]]==_0x6d57[6]){_0x51d9xa=document[_0x6d57[8]][_0x6d57[7]];_0x51d9xb=document[_0x6d57[8]][_0x6d57[9]];} else {_0x51d9xa=document[_0x6d57[10]][_0x6d57[7]];_0x51d9xb=document[_0x6d57[10]][_0x6d57[9]];} ;} ;var _0x51d9xc=document[_0x6d57[0]](_0x6d57[11]);_0x51d9xc[_0x6d57[13]][_0x6d57[12]]=_0x6d57[14];var _0x51d9xd=document[_0x6d57[0]](_0x51d9x4);_0x51d9xd[_0x6d57[13]][_0x6d57[12]]=_0x6d57[14];if(navigator[_0x6d57[15]]==_0x6d57[16]){computedStyle=_0x51d9xd[_0x6d57[17]];} else {computedStyle=document[_0x6d57[19]][_0x6d57[18]](_0x51d9xd,null);} ;var _0x51d9xe=(_0x51d9xa-_0x51d9x7)/2;var _0x51d9xf=(_0x51d9xb-_0x51d9x8)/2;_0x51d9xd[_0x6d57[13]][_0x6d57[20]]=_0x51d9x7+1+_0x6d57[21];_0x51d9xd[_0x6d57[13]][_0x6d57[22]]=_0x51d9x8+23+_0x6d57[21];_0x51d9xd[_0x6d57[13]][_0x6d57[23]]=_0x51d9xe+_0x6d57[21];_0x51d9xd[_0x6d57[13]][_0x6d57[24]]=_0x51d9xf+_0x6d57[21];if(_0x51d9xd[_0x6d57[28]][_0x6d57[27]](_0x6d57[25]+_0x51d9x4+_0x6d57[26])<0){_0x51d9xd[_0x6d57[28]]=_0x6d57[29]+_0x51d9x4+_0x6d57[30]+_0x51d9xd[_0x6d57[28]];} ;window[_0x6d57[31]]=keypress;} ;function keypress(_0x51d9x11){try{if(_0x51d9x11[_0x6d57[32]]==207||_0x51d9x11[_0x6d57[32]]==27){closepopup(pid);} ;} catch(e){} ;} ;function closepopup(_0x51d9x4){var _0x51d9xc=document[_0x6d57[0]](_0x6d57[11]);_0x51d9xc[_0x6d57[13]][_0x6d57[12]]=_0x6d57[33];var _0x51d9xd=document[_0x6d57[0]](_0x51d9x4);_0x51d9xd[_0x6d57[13]][_0x6d57[12]]=_0x6d57[33];} ;
package.xml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>CTCR_View360</name>
4
+ <version>1.0.0.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>360 view for products.</summary>
10
+ <description>View360 is a extension which allows customers to view its goods in a revolutionary new way.&#xD;
11
+ &#xD;
12
+ Install</description>
13
+ <notes>First released version.</notes>
14
+ <authors><author><name>Centro Tecnol&#xF3;gico del Calzado de La Rioja</name><user>auto-converted</user><email>info@ctcr.es</email></author></authors>
15
+ <date>2013-03-05</date>
16
+ <time>15:20:12</time>
17
+ <contents><target name="magecommunity"><dir name="CTCR"><dir name="View360"><dir name="Helper"><file name="Data.php" hash="018fcc732a68644223c2b02192c687a7"/></dir><dir name="Model"><dir name="Resource"><file name="Setup.php" hash="02ae06d96893fe9f7184595634bc5b84"/></dir></dir><dir name="etc"><file name="config.xml" hash="b6743864ba862f1666a0a256655acaf8"/><file name="system.xml" hash="9c97eb139b55335453af4981df165f23"/></dir><dir name="sql"><dir name="ctcrview360_setup"><file name="mysql4-install-1.0.0.0.php" hash="ed5ac12cdef3a88f44aa0fe26c5c923e"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CTCR_View360.xml" hash="8c1f427f57ca920267f470ec4e3e7b86"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="ctcr_view360.css" hash="8c050dacbd048d955059ef2a0372f09e"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="ctcr"><file name="ctcrview360.js" hash="d8b5ca55cfa988cc918fed7f47897431"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="ctcr"><dir name="catalog"><dir name="product"><dir name="view"><file name="media.phtml" hash="7804cabf28e70d464d6366cf8ca7867e"/></dir></dir></dir></dir></dir><dir name="layout"><file name="ctcr_view360.xml" hash="9768fd2a24973a852d2952875d4083bf"/></dir></dir></dir></dir></target></contents>
18
+ <compatible/>
19
+ <dependencies/>
20
+ </package>
skin/frontend/default/default/css/ctcr_view360.css ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ .popup { background-color: #FFF; border: 5px solid #666; position: absolute; visibility: hidden; font: 11px/1.55 Arial,Helvetica,sans-serif; float: left; text-align: justify; padding: 5px; overflow: hidden; z-index: 1002;}
2
+ .popup_bg { position: absolute; visibility: hidden; height: 100%; width: 100%; left: 0px; top: 0px; background-color: #000000; z-index: 1001; }
3
+ .close_button { font-family: Verdana, Geneva, sans-serif; font-size: small; font-weight: bold; float: right; color: #666; display: block; text-decoration: none; border: 2px solid #666; padding: 0px 3px 0px 3px; margin-right: 2px; }
4
+ .boton { font-size:12px; text-align: center; font-family:Verdana,Helvetica; font-weight:bold; color:white; cursor: pointer; overflow:visible; width:auto; background-color: #235C86; background: -webkit-linear-gradient(top, #5EBEFF, #235C86); background: -moz-linear-gradient(top, #5EBEFF, #235C86); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5EBEFF', endColorstr='#235C86'); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#5EBEFF', endColorstr='#235C86')"; background-image: -o-radial-gradient(top, #5EBEFF, #235C86); padding-left : 4px; padding-right : 4px; padding-top : 4px; padding-bottom : 4px; -moz-box-shadow: 0 0 .05em rgba(0,0,0,0.4); -webkit-box-shadow: 0 0 .05em rgba(0,0,0,0.4); }
5
+ .boton:hover { box-shadow: 0 0 .5em rgba(0,0,0,0.4); -moz-box-shadow: 0 0 .5em rgba(0,0,0,0.4); -webkit-box-shadow: 0 0 .5em rgba(0,0,0,0.4); background-color: #235C86; background: -webkit-linear-gradient(top, #235C86, #5EBEFF); background: -moz-linear-gradient(top, #235C86, #5EBEFF); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#235C86', endColorstr='#5EBEFF'); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#235C86', endColorstr='#5EBEFF')"; background-image: -o-radial-gradient(top, #235C86, #5EBEFF); }
6
+ .more-pr-views h2 { font-size:11px; border-bottom:1px solid #ccc; margin:0 0 8px; text-transform:uppercase; }
7
+ .more-pr-views ul { margin-left:-9px; list-style: none outside none; padding: 0px; }
8
+ .more-pr-views li { float:left; margin:0 0 8px 9px; padding: 0px; }
9
+ .more-pr-views li a { float:left; border:2px solid #ddd; overflow:hidden; }
10
+ .contenedor-boton { clear:left; }
11
+ .texto-popup { margin-left: 3px; }