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 |
-
|
| 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 |
-
$
|
| 37 |
-
|
| 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 |
-
|
|
|
|
| 27 |
if ( file_exists($dir.'view.phtml') )
|
| 28 |
{
|
| 29 |
// $xml .= '<box><