Version Notes
v1.1.0
Download this release
Release Info
Developer | Wyomind |
Extension | Wyomind_Flashmediagallery |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.1.0
app/code/community/Wyomind/Flashmediagallery/Model/Catalog/Product/Image.php
CHANGED
@@ -39,12 +39,12 @@ class Wyomind_Flashmediagallery_Model_Catalog_Product_Image extends Mage_Catalog
|
|
39 |
}
|
40 |
|
41 |
public function getUrl() {
|
42 |
-
$baseDir = Mage::getBaseDir();
|
|
|
43 |
$file = ($this->isMedia()) ? $this->_baseFile : $this->_newFile;
|
44 |
-
|
45 |
$path = str_replace($baseDir . DS, "", $file);
|
46 |
-
|
47 |
-
return Mage::getBaseUrl() . str_replace(DS, '/', $path);
|
48 |
}
|
49 |
|
50 |
}
|
39 |
}
|
40 |
|
41 |
public function getUrl() {
|
42 |
+
$baseDir = Mage::getBaseDir('media');
|
43 |
+
|
44 |
$file = ($this->isMedia()) ? $this->_baseFile : $this->_newFile;
|
|
|
45 |
$path = str_replace($baseDir . DS, "", $file);
|
46 |
+
|
47 |
+
return Mage::getBaseUrl('media') . str_replace(DS, '/', $path);
|
48 |
}
|
49 |
|
50 |
}
|
app/design/frontend/{default → base}/default/layout/flashmediagallery.xml
RENAMED
File without changes
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Wyomind_Flashmediagallery</name>
|
4 |
-
<version>1.0
|
5 |
<stability>stable</stability>
|
6 |
-
<license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
<notes>
|
12 |
-
<authors><author><name>Wyomind</name><user>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Wyomind"><dir name="Flashmediagallery"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Helper"><dir name="Form"><dir name="Gallery"><file name="Content.php" hash="c989ad476280ccbbb2de2cbbff0431d3"/></dir></dir></dir></dir></dir></dir><file name="Script.php" hash="76ca8c4ee75de15cc43b943222472a6c"/></dir><dir name="Helper"><dir name="Catalog"><file name="Image.php" hash="9ff40a69e51f46591a4991dd617ec73c"/></dir></dir><dir name="Model"><dir name="Catalog"><dir name="Product"><file name="Image.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>4.0.0</min><max>5.6.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Wyomind_Flashmediagallery</name>
|
4 |
+
<version>1.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license>free</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Add flash files (swf) and animated GIFs into the product's media gallery.</summary>
|
10 |
+
<description>Add flash files (swf) and animated GIFs into the product's media gallery.</description>
|
11 |
+
<notes>v1.1.0</notes>
|
12 |
+
<authors><author><name>Wyomind</name><user>Wyomind</user><email>contact@wyomind.com</email></author></authors>
|
13 |
+
<date>2015-02-09</date>
|
14 |
+
<time>16:09:01</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Wyomind"><dir name="Flashmediagallery"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Helper"><dir name="Form"><dir name="Gallery"><file name="Content.php" hash="c989ad476280ccbbb2de2cbbff0431d3"/></dir></dir></dir></dir></dir></dir><file name="Script.php" hash="76ca8c4ee75de15cc43b943222472a6c"/></dir><dir name="Helper"><dir name="Catalog"><file name="Image.php" hash="9ff40a69e51f46591a4991dd617ec73c"/></dir></dir><dir name="Model"><dir name="Catalog"><dir name="Product"><file name="Image.php" hash="1e99ddf25c2cf70b261f8cc4e791b764"/></dir></dir><file name="Observer.php" hash="08ca28e0fbeb379f00401dc559e9e787"/><dir name="System"><dir name="Config"><dir name="Source"><file name="selectorAndSize.php" hash="0616d43d50187ea1a5ef00be74411c32"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><file name="GalleryController.php" hash="f9a14e8b7509cedd209315b39c15910f"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="0efa76c1900f07975397ec92dea6f7ad"/><file name="system.xml" hash="13b6540c74b5ec723303c19fa8f599a7"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wyomind_Flashmediagallery.xml" hash="bac7ccf2e4f4fab7ec79a40ef5e20f18"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="flashmediagallery.xml" hash="5eb87ce02a014eb125abb56897845f7b"/></dir><dir name="template"><dir name="flashmediagallery"><dir name="catalog"><dir name="product"><dir name="helper"><file name="gallery.phtml" hash="c22f5360873bdf2be861a44f358ff733"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="flashmediagallery.xml" hash="52f5c7441d1a6666a506102e7d7ce0b8"/></dir></dir></dir></dir></target><target name="magelib"><dir name="Varien"><dir name="Data"><dir name="Form"><dir name="Element"><file name="Fmgscript.php" hash="82c8f4e2e54151c23fc40286d57efc7a"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="flashmediagallery"><file name="script.js" hash="3a50809fff182d6f8f96c21e8d8d9099"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>4.0.0</min><max>5.6.0</max></php></required></dependencies>
|
18 |
</package>
|
skin/frontend/{default → base}/default/flashmediagallery/script.js
RENAMED
@@ -6,6 +6,7 @@ document.observe("dom:loaded", function() {
|
|
6 |
paths = new Array;
|
7 |
data.each(function(s) {
|
8 |
if (s.selector != "") {
|
|
|
9 |
$$(s.selector).each(function(img) {
|
10 |
src = img.src;
|
11 |
|
6 |
paths = new Array;
|
7 |
data.each(function(s) {
|
8 |
if (s.selector != "") {
|
9 |
+
|
10 |
$$(s.selector).each(function(img) {
|
11 |
src = img.src;
|
12 |
|