AuIt_FLASH_GALLERY_FLIP - Version 1.3.1

Version Notes

Inital

Download this release

Release Info

Developer Magento Core Team
Extension AuIt_FLASH_GALLERY_FLIP
Version 1.3.1
Comparing to
See all releases


Code changes from version 1.3.0 to 1.3.1

app/code/community/AuIt/Gallery2/Block/Jscript/Slider.php CHANGED
@@ -7,7 +7,6 @@ class AuIt_Gallery2_Block_Jscript_Slider extends AuIt_Gallery2_Block_Flash_Abstr
7
  protected function initParams()
8
  {
9
  parent::initParams();
10
- $this->modelParam['startpage']=0;
11
  $this->flashattributes['width']=195;
12
  $this->flashattributes['height']=195;
13
  }
@@ -40,7 +39,6 @@ class AuIt_Gallery2_Block_Jscript_Slider extends AuIt_Gallery2_Block_Flash_Abstr
40
  //return $model->getXML($Request);
41
  //$xmlData = simplexml_load_string($this->htmlentities_decode($model->getXML($Request)));
42
  $xmlData = simplexml_load_string($model->getXML($Request));
43
- $StartPage=$this->modelParam['startpage']-1;
44
  ob_start();
45
  ?>
46
  <div class="featured" style="<?php echo $this->flashattributes['frame_style'];?>">
@@ -53,7 +51,6 @@ class AuIt_Gallery2_Block_Jscript_Slider extends AuIt_Gallery2_Block_Flash_Abstr
53
  // echo $item->short;
54
  $pcw= $this->modelData['picture_width'];
55
  $pch=$this->modelData['picture_height'];
56
-
57
  foreach($xmlData->item as $item) {
58
  ?>
59
  <div>
@@ -87,18 +84,13 @@ jQuery.easing.feature = function (x, t, b, c, d) {
87
 
88
  jQuery(function() {
89
  // initialize scrollable
90
- var x = jQuery("div.scrollable").scrollable({
91
- api:true,
92
  size: 3,
93
  clickable: false,
94
  loop: true,
95
  easing: 'feature',
96
  speed: 700
97
  });
98
- <?php if ( $StartPage >= 0 ) :?>
99
- if ( x )
100
- x.setPage(<?php echo $StartPage?>);
101
- <?php endif;?>
102
  });
103
 
104
  </script>
7
  protected function initParams()
8
  {
9
  parent::initParams();
 
10
  $this->flashattributes['width']=195;
11
  $this->flashattributes['height']=195;
12
  }
39
  //return $model->getXML($Request);
40
  //$xmlData = simplexml_load_string($this->htmlentities_decode($model->getXML($Request)));
41
  $xmlData = simplexml_load_string($model->getXML($Request));
 
42
  ob_start();
43
  ?>
44
  <div class="featured" style="<?php echo $this->flashattributes['frame_style'];?>">
51
  // echo $item->short;
52
  $pcw= $this->modelData['picture_width'];
53
  $pch=$this->modelData['picture_height'];
 
54
  foreach($xmlData->item as $item) {
55
  ?>
56
  <div>
84
 
85
  jQuery(function() {
86
  // initialize scrollable
87
+ jQuery("div.scrollable").scrollable({
 
88
  size: 3,
89
  clickable: false,
90
  loop: true,
91
  easing: 'feature',
92
  speed: 700
93
  });
 
 
 
 
94
  });
95
 
96
  </script>
app/code/community/AuIt/Gallery2/Block/Product/View.php CHANGED
@@ -33,8 +33,8 @@ class AuIt_Gallery2_Block_Product_View extends Mage_Catalog_Block_Product_Abstra
33
  public function renderView()
34
  {
35
  Varien_Profiler::start(__METHOD__);
36
- $this->setScriptPath(dirname(__FILE__).'/../../templates');
37
- // $this->setScriptPath(Mage::getBaseDir('design'));
38
  $params = array('_relative'=>true);
39
  if ($area = $this->getArea()) {
40
  $params['_area'] = $area;
33
  public function renderView()
34
  {
35
  Varien_Profiler::start(__METHOD__);
36
+ $baseDir = Mage::getBaseDir() . DS . 'app'. DS .'code'. DS .'community'. DS .'AuIt'. DS . 'Gallery2';
37
+ $this->setScriptPath($baseDir. DS .'templates');
38
  $params = array('_relative'=>true);
39
  if ($area = $this->getArea()) {
40
  $params['_area'] = $area;
app/code/community/AuIt/Gallery2/Model/Category/Abstract.php CHANGED
@@ -23,7 +23,8 @@ abstract class AuIt_Gallery2_Model_Category_Abstract extends Mage_Core_Model_Abs
23
  $templates='default';
24
  if ( $templates )
25
  {
26
- $dir = dirname(__FILE__)."/../../templates/$templates/";
 
27
  if ( file_exists($dir.'view.phtml') )
28
  {
29
  // $xml .= '<box><![CDATA[';
@@ -59,6 +60,8 @@ abstract class AuIt_Gallery2_Model_Category_Abstract extends Mage_Core_Model_Abs
59
  if ( $_productCollection )
60
  foreach ($_productCollection as $_product)
61
  {
 
 
62
  $url= ''.$iHelper->init($_product, $picType)
63
  ->keepFrame(false)->resize($picWidth,$picHeight);
64
  if ($url!='')
@@ -128,7 +131,7 @@ abstract class AuIt_Gallery2_Model_Category_Abstract extends Mage_Core_Model_Abs
128
  }
129
  public function getXML(Mage_Core_Controller_Request_Http $request)
130
  {
131
- $this->_cacheKey = crc32($request->getRequestUri());
132
  if (!($xml = $this->_loadCache()))
133
  {
134
  $xml = '';
23
  $templates='default';
24
  if ( $templates )
25
  {
26
+ $baseDir = Mage::getBaseDir() . DS . 'app'. DS .'code'. DS .'community'. DS .'AuIt'. DS . 'Gallery2';
27
+ $dir = $baseDir. DS .'templates'. DS .$templates. DS;
28
  if ( file_exists($dir.'view.phtml') )
29
  {
30
  // $xml .= '<box><![CDATA[';
60
  if ( $_productCollection )
61
  foreach ($_productCollection as $_product)
62
  {
63
+ if ( $_product->getStatus() != Mage_Catalog_Model_Product_Status::STATUS_ENABLED )
64
+ continue;
65
  $url= ''.$iHelper->init($_product, $picType)
66
  ->keepFrame(false)->resize($picWidth,$picHeight);
67
  if ($url!='')
131
  }
132
  public function getXML(Mage_Core_Controller_Request_Http $request)
133
  {
134
+ $this->_cacheKey = crc32($request->getRequestUri().Mage::app()->getStore()->getId());
135
  if (!($xml = $this->_loadCache()))
136
  {
137
  $xml = '';
app/code/community/AuIt/Gallery2/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <AuIt_Gallery2>
5
- <version>1.2.3</version>
6
  </AuIt_Gallery2>
7
  </modules>
8
  <frontend>
2
  <config>
3
  <modules>
4
  <AuIt_Gallery2>
5
+ <version>1.3.1</version>
6
  </AuIt_Gallery2>
7
  </modules>
8
  <frontend>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>AuIt_FLASH_GALLERY_FLIP</name>
4
- <version>1.3.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -12,9 +12,9 @@
12
  More flash galleries? Can be found on the website http://www.snm-portal.de</description>
13
  <notes>Inital</notes>
14
  <authors><author><name>Augsten</name><user>auto-converted</user><email>muc6104@googlemail.com</email></author></authors>
15
- <date>2009-08-08</date>
16
- <time>19:10:11</time>
17
- <contents><target name="magecommunity"><dir name="AuIt"><dir name="Gallery2"><dir name="Block"><dir name="Flash"><file name="Abstract.php" hash="00551182166ed5db2ab9534f4cb13763"/><file name="Accordion.php" hash="f7ddfbbfb1aff2a7644cfa1824dc9cc9"/><file name="Flip.php" hash="9d6eedcfdd89443b5fc59931123b3c23"/><file name="Pageflip.php" hash="1dacf4c5a1a97852191c5fb33fef9679"/><file name="Photo.php" hash="50240eb25087dcf71f8f24728b7f0405"/></dir><dir name="Jscript"><file name="Slider.php" hash="c420c3a1e501e13c5d0315cadc224c00"/></dir><dir name="Product"><file name="View.php" hash="3b4f6653941a47e66344ca3945e0dd85"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="52d7180d7430bcad024160f5dc8d8d35"/></dir><dir name="etc"><file name="config.xml" hash="41592c46f37f3bde8fb49973e0fd838d"/></dir><dir name="Helper"><file name="Data.php" hash="a3c58c7a46dd6da06bb998ed0936207f"/></dir><dir name="Model"><dir name="Category"><file name="Abstract.php" hash="816fb4bdf9e0d4e871f706c1442ac1c9"/><file name="Bestseller.php" hash="446bd8dafbb52abbbee61929f2768628"/><file name="List.php" hash="c632dbb037b1e4d3ca5f8d9772fa6c17"/><file name="Mostviewed.php" hash="55c086490e8b282a74d34671491232f9"/><file name="New.php" hash="2c08979e24797f63ef6d23cb1abb73af"/></dir></dir><dir name="templates"><dir name="default"><file name="default.css" hash="0417777def0fa02cb9dab7955f2b57df"/><file name="view.phtml" hash="58f646da0b903c97874c809fce31bab9"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="auit"><dir name="gallery2"><dir name="swf"><dir name="assets"><file name="Arial.swf" hash="9e4b288ca0adfff3e7816c14780f528a"/><file name="Comic Sans MS.swf" hash="24e641848e5947b972ee9d9c56935813"/></dir><file name="accordion.swf" hash="fa9797e0459863a605f8b960149a0108"/><file name="flip.swf" hash="aa56429536e1e5574c368d12b3ab4674"/><file name="pageflip.swf" hash="3d05f10eac9c015aada13957660b632a"/><file name="photo.swf" hash="fcf671495499a7373fdb57b72fa305f8"/><file name="swfobject.js" hash="eaa5417940c71f441b016b12c534665d"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="XAuIt_Gallery2.xml" hash="7ca7828811ddb938dd11d27ac953ffce"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>AuIt_FLASH_GALLERY_FLIP</name>
4
+ <version>1.3.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
12
  More flash galleries? Can be found on the website http://www.snm-portal.de</description>
13
  <notes>Inital</notes>
14
  <authors><author><name>Augsten</name><user>auto-converted</user><email>muc6104@googlemail.com</email></author></authors>
15
+ <date>2009-09-01</date>
16
+ <time>17:31:54</time>
17
+ <contents><target name="magecommunity"><dir name="AuIt"><dir name="Gallery2"><dir name="Block"><dir name="Flash"><file name="Abstract.php" hash="00551182166ed5db2ab9534f4cb13763"/><file name="Accordion.php" hash="f7ddfbbfb1aff2a7644cfa1824dc9cc9"/><file name="Flip.php" hash="9d6eedcfdd89443b5fc59931123b3c23"/><file name="Pageflip.php" hash="1dacf4c5a1a97852191c5fb33fef9679"/><file name="Photo.php" hash="50240eb25087dcf71f8f24728b7f0405"/></dir><dir name="Jscript"><file name="Slider.php" hash="2ff9711832f0ba163075bd0f79f8efc0"/></dir><dir name="Product"><file name="View.php" hash="e2aaefbe88c34cd0a5d31934fad239bf"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="52d7180d7430bcad024160f5dc8d8d35"/></dir><dir name="etc"><file name="config.xml" hash="0f3bb5306f8481251874b0c950157874"/></dir><dir name="Helper"><file name="Data.php" hash="a3c58c7a46dd6da06bb998ed0936207f"/></dir><dir name="Model"><dir name="Category"><file name="Abstract.php" hash="72b95ed0e61ce32e8cc0aae54a2e8a1d"/><file name="Bestseller.php" hash="446bd8dafbb52abbbee61929f2768628"/><file name="List.php" hash="c632dbb037b1e4d3ca5f8d9772fa6c17"/><file name="Mostviewed.php" hash="55c086490e8b282a74d34671491232f9"/><file name="New.php" hash="2c08979e24797f63ef6d23cb1abb73af"/></dir></dir><dir name="templates"><dir name="default"><file name="default.css" hash="0417777def0fa02cb9dab7955f2b57df"/><file name="view.phtml" hash="58f646da0b903c97874c809fce31bab9"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="auit"><dir name="gallery2"><dir name="swf"><dir name="assets"><file name="Arial.swf" hash="9e4b288ca0adfff3e7816c14780f528a"/><file name="Comic Sans MS.swf" hash="24e641848e5947b972ee9d9c56935813"/></dir><file name="accordion.swf" hash="fa9797e0459863a605f8b960149a0108"/><file name="flip.swf" hash="aa56429536e1e5574c368d12b3ab4674"/><file name="pageflip.swf" hash="3d05f10eac9c015aada13957660b632a"/><file name="photo.swf" hash="fcf671495499a7373fdb57b72fa305f8"/><file name="swfobject.js" hash="eaa5417940c71f441b016b12c534665d"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="XAuIt_Gallery2.xml" hash="7ca7828811ddb938dd11d27ac953ffce"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>