Version Notes
Inital
Download this release
Release Info
Developer | Magento Core Team |
Extension | AuIt_FLASH_GALLERY_FLIP |
Version | 1.3.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.3.0
- app/code/community/AuIt/Gallery2/Block/Flash/Abstract.php +6 -4
- app/code/community/AuIt/Gallery2/Block/Flash/Photo.php +30 -6
- app/code/community/AuIt/Gallery2/Block/Jscript/Slider.php +109 -0
- app/code/community/AuIt/Gallery2/Block/Product/View.php +67 -0
- app/code/community/AuIt/Gallery2/Model/Category/Abstract.php +73 -15
- app/code/community/AuIt/Gallery2/templates/default/default.css +39 -0
- app/code/community/AuIt/Gallery2/templates/default/view.phtml +20 -0
- js/auit/gallery2/swf/flip.swf +0 -0
- js/auit/gallery2/swf/photo.swf +0 -0
- package.xml +5 -5
app/code/community/AuIt/Gallery2/Block/Flash/Abstract.php
CHANGED
@@ -106,7 +106,10 @@ abstract class AuIt_Gallery2_Block_Flash_Abstract extends Mage_Core_Block_Templa
|
|
106 |
// $this->flashattributes['width']='1';
|
107 |
// $this->flashattributes['height']='2';
|
108 |
$this->modelParam['dataurl']=$this->getUrl('au-it-gallery2/index/xml',$this->modelData);
|
109 |
-
|
|
|
|
|
|
|
110 |
if ( !self::$_isInit )
|
111 |
{
|
112 |
self::$_isInit =true;?>
|
@@ -121,7 +124,6 @@ abstract class AuIt_Gallery2_Block_Flash_Abstract extends Mage_Core_Block_Templa
|
|
121 |
<?php if ( $this->flashattributes['frame_style'] !=''):?>
|
122 |
</div>
|
123 |
<?php endif;?>
|
124 |
-
|
125 |
<script type="text/javascript" >
|
126 |
swfobject.embedSWF( "<?php echo $_jsUrl ?>auit/gallery2/swf/<?php echo $this->flashSwf;?>",
|
127 |
"swf<?php echo $ObjId?>",
|
@@ -131,7 +133,7 @@ abstract class AuIt_Gallery2_Block_Flash_Abstract extends Mage_Core_Block_Templa
|
|
131 |
<?php echo Zend_Json::encode($this->modelParam);?>,
|
132 |
<?php echo Zend_Json::encode($this->flashparam);?>, <?php echo Zend_Json::encode($this->flashattributes);?>);
|
133 |
</script>
|
134 |
-
<?
|
135 |
-
|
136 |
}
|
137 |
}
|
106 |
// $this->flashattributes['width']='1';
|
107 |
// $this->flashattributes['height']='2';
|
108 |
$this->modelParam['dataurl']=$this->getUrl('au-it-gallery2/index/xml',$this->modelData);
|
109 |
+
$this->modelParam['stagewidth']=$this->flashattributes['width'];
|
110 |
+
$this->modelParam['stageheight']=$this->flashattributes['height'];
|
111 |
+
|
112 |
+
ob_start();
|
113 |
if ( !self::$_isInit )
|
114 |
{
|
115 |
self::$_isInit =true;?>
|
124 |
<?php if ( $this->flashattributes['frame_style'] !=''):?>
|
125 |
</div>
|
126 |
<?php endif;?>
|
|
|
127 |
<script type="text/javascript" >
|
128 |
swfobject.embedSWF( "<?php echo $_jsUrl ?>auit/gallery2/swf/<?php echo $this->flashSwf;?>",
|
129 |
"swf<?php echo $ObjId?>",
|
133 |
<?php echo Zend_Json::encode($this->modelParam);?>,
|
134 |
<?php echo Zend_Json::encode($this->flashparam);?>, <?php echo Zend_Json::encode($this->flashattributes);?>);
|
135 |
</script>
|
136 |
+
<?php
|
137 |
+
return ob_get_clean();
|
138 |
}
|
139 |
}
|
app/code/community/AuIt/Gallery2/Block/Flash/Photo.php
CHANGED
@@ -8,19 +8,43 @@ class AuIt_Gallery2_Block_Flash_Photo extends AuIt_Gallery2_Block_Flash_Abstract
|
|
8 |
{
|
9 |
parent::initParams();
|
10 |
$this->flashSwf='photo.swf';
|
11 |
-
|
12 |
-
|
13 |
-
$this->modelParam['
|
|
|
|
|
|
|
|
|
|
|
14 |
$this->modelParam['randomise']=1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
$this->modelParam['timer']=2;
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|
18 |
protected function updateParams()
|
19 |
{
|
20 |
if ( !$this->modelData['picture_width'])
|
21 |
-
$this->modelData['picture_width']=$this->flashattributes['width']*0.
|
22 |
if ( !$this->modelData['picture_height'])
|
23 |
-
$this->modelData['picture_height']=$this->flashattributes['
|
|
|
24 |
parent::updateParams();
|
25 |
}
|
26 |
|
8 |
{
|
9 |
parent::initParams();
|
10 |
$this->flashSwf='photo.swf';
|
11 |
+
|
12 |
+
// Text-Block
|
13 |
+
$this->modelParam['show_textblock']=1;
|
14 |
+
$this->modelParam['textblock_height']=60;
|
15 |
+
$this->modelParam['textblock_background']='0x000000';
|
16 |
+
$this->modelParam['textblock_alpha']=0.5;
|
17 |
+
|
18 |
+
// Loader
|
19 |
$this->modelParam['randomise']=1;
|
20 |
+
//Player
|
21 |
+
$this->modelParam['effect_time']=1.5;
|
22 |
+
|
23 |
+
$this->modelParam['slices_picture_mode']=2;
|
24 |
+
$this->modelParam['slices_number']=1;
|
25 |
+
$this->modelParam['show_reflect']=0;
|
26 |
+
$this->modelParam['show_dropshadow']=1;
|
27 |
$this->modelParam['timer']=2;
|
28 |
+
|
29 |
+
// Frame
|
30 |
+
$this->modelParam['show_frame']=1;
|
31 |
+
$this->modelParam['border_size']=10;
|
32 |
+
$this->modelParam['border_color']='0xdddddd';
|
33 |
+
$this->modelParam['border_background']='0xffffff';
|
34 |
+
|
35 |
+
$this->flashattributes['width']=195;
|
36 |
+
$this->flashattributes['height']=195;
|
37 |
+
$this->flashattributes['align']='';
|
38 |
+
$this->flashattributes['frame_style']='';
|
39 |
+
$this->flashattributes['align']='';
|
40 |
}
|
41 |
protected function updateParams()
|
42 |
{
|
43 |
if ( !$this->modelData['picture_width'])
|
44 |
+
$this->modelData['picture_width']=$this->flashattributes['width']*0.7;
|
45 |
if ( !$this->modelData['picture_height'])
|
46 |
+
$this->modelData['picture_height']=$this->flashattributes['width']*0.7;
|
47 |
+
|
48 |
parent::updateParams();
|
49 |
}
|
50 |
|
app/code/community/AuIt/Gallery2/Block/Jscript/Slider.php
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class AuIt_Gallery2_Block_Jscript_Slider extends AuIt_Gallery2_Block_Flash_Abstract
|
3 |
+
{
|
4 |
+
public function __construct(){
|
5 |
+
parent::__construct();
|
6 |
+
}
|
7 |
+
protected function initParams()
|
8 |
+
{
|
9 |
+
parent::initParams();
|
10 |
+
$this->modelParam['startpage']=0;
|
11 |
+
$this->flashattributes['width']=195;
|
12 |
+
$this->flashattributes['height']=195;
|
13 |
+
}
|
14 |
+
protected function htmlentities_decode( $string ){
|
15 |
+
$trans = get_html_translation_table(HTML_ENTITIES, ENT_QUOTES);
|
16 |
+
$trans = array_flip($trans);
|
17 |
+
return strtr($string, $trans);
|
18 |
+
}
|
19 |
+
protected function _toHtml()
|
20 |
+
{
|
21 |
+
$ObjId = uniqid();
|
22 |
+
$_jsUrl = $this->getJsUrl();
|
23 |
+
$this->updateParams();
|
24 |
+
$this->modelParam['dataurl']=$this->getUrl('au-it-gallery2/index/xml',$this->modelData);
|
25 |
+
$modelTyp = $this->modelData['model'];
|
26 |
+
if ( !$modelTyp)
|
27 |
+
$modelTyp='category_list';
|
28 |
+
$model = null;
|
29 |
+
try {
|
30 |
+
$model = Mage::getModel('auit_gallery2/'.$modelTyp);
|
31 |
+
if ( !$model )
|
32 |
+
$model = Mage::getModel('auit_gallery2/category_list');
|
33 |
+
}catch (Exception $e) {
|
34 |
+
}
|
35 |
+
if ( !$model)
|
36 |
+
return '';
|
37 |
+
|
38 |
+
$Request = new Mage_Core_Controller_Request_Http();
|
39 |
+
$Request->setParams($this->modelData);
|
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'];?>">
|
47 |
+
<div class="navi"></div>
|
48 |
+
<br clear="all" />
|
49 |
+
<a class="prev"></a>
|
50 |
+
<div class="scrollable">
|
51 |
+
<div class="items">
|
52 |
+
<?php
|
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>
|
60 |
+
<a href="<?php echo $item->link ?>" title="<?php echo $this->htmlEscape($item->name) ?>">
|
61 |
+
<img class="product-image" src="<?php echo $item->image ?>" width="<?php echo $pcw;?>" height="<?php echo $pch;?>" alt="<?php echo $this->htmlEscape($item->name); ?>" />
|
62 |
+
</a>
|
63 |
+
<div class="featured-product-name" >
|
64 |
+
<h3>
|
65 |
+
<a href="<?php echo $item->link ?>" title="<?php echo $this->htmlEscape($item->name) ?>">
|
66 |
+
<?php echo $this->htmlEscape($item->name) ?>
|
67 |
+
</a>
|
68 |
+
</h3>
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
<?php
|
72 |
+
}
|
73 |
+
?>
|
74 |
+
</div>
|
75 |
+
</div>
|
76 |
+
<a class="next"></a>
|
77 |
+
<br clear="all" />
|
78 |
+
</div>
|
79 |
+
|
80 |
+
<script>
|
81 |
+
// custom easing called "custom"
|
82 |
+
jQuery.easing.feature = function (x, t, b, c, d) {
|
83 |
+
var s = 1.70158;
|
84 |
+
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
85 |
+
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
86 |
+
}
|
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>
|
105 |
+
<?php
|
106 |
+
return ob_get_clean();
|
107 |
+
}
|
108 |
+
}
|
109 |
+
|
app/code/community/AuIt/Gallery2/Block/Product/View.php
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class AuIt_Gallery2_Block_Product_View extends Mage_Catalog_Block_Product_Abstract
|
3 |
+
{
|
4 |
+
protected $_priceBlock;
|
5 |
+
|
6 |
+
protected function _prepareLayout()
|
7 |
+
{
|
8 |
+
$this->setTemplate('default/view.phtml');
|
9 |
+
return parent::_prepareLayout();
|
10 |
+
}
|
11 |
+
/**
|
12 |
+
* Return true if product has options
|
13 |
+
*
|
14 |
+
* @return bool
|
15 |
+
*/
|
16 |
+
public function hasOptions()
|
17 |
+
{
|
18 |
+
if ($this->getProduct()->getTypeInstance(true)->hasOptions($this->getProduct())) {
|
19 |
+
return true;
|
20 |
+
}
|
21 |
+
return false;
|
22 |
+
}
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Check if product has required options
|
26 |
+
*
|
27 |
+
* @return bool
|
28 |
+
*/
|
29 |
+
public function hasRequiredOptions()
|
30 |
+
{
|
31 |
+
return $this->getProduct()->getTypeInstance(true)->hasRequiredOptions($this->getProduct());
|
32 |
+
}
|
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;
|
41 |
+
}
|
42 |
+
|
43 |
+
//$templateName = Mage::getDesign()->getTemplateFilename($this->getTemplate(), $params);
|
44 |
+
|
45 |
+
$templateName = $this->getTemplate();
|
46 |
+
$html = $this->fetchView($templateName);
|
47 |
+
|
48 |
+
Varien_Profiler::stop(__METHOD__);
|
49 |
+
|
50 |
+
return $html;
|
51 |
+
}
|
52 |
+
|
53 |
+
public function getFlashHtml($product)
|
54 |
+
{
|
55 |
+
$this->setProduct($product);
|
56 |
+
return str_replace(Array("<div","</div"),Array('<p','</p'),$this->toHtml());
|
57 |
+
}
|
58 |
+
public function getPriceHtml($product, $displayMinimalPrice = false, $idSuffix='')
|
59 |
+
{
|
60 |
+
if ( !$this->_priceBlock )
|
61 |
+
{
|
62 |
+
$this->_priceBlock = Mage::getSingleton('core/layout')->createBlock('catalog/product_list');
|
63 |
+
}
|
64 |
+
return $this->_priceBlock->getPriceHtml($product, $displayMinimalPrice, $idSuffix);
|
65 |
+
}
|
66 |
+
|
67 |
+
}
|
app/code/community/AuIt/Gallery2/Model/Category/Abstract.php
CHANGED
@@ -3,12 +3,47 @@ abstract class AuIt_Gallery2_Model_Category_Abstract extends Mage_Core_Model_Abs
|
|
3 |
{
|
4 |
protected $_feprod;
|
5 |
protected $_cacheKey;
|
6 |
-
|
|
|
|
|
7 |
{
|
8 |
parent::__construct();
|
9 |
}
|
10 |
-
private function
|
11 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
$picWidth = (int)$request->getParam('picture_width',230);
|
13 |
if ( $picWidth <= 0 ) $picWidth=230;
|
14 |
$picHeight = (int)$request->getParam('picture_height',184);
|
@@ -26,19 +61,39 @@ abstract class AuIt_Gallery2_Model_Category_Abstract extends Mage_Core_Model_Abs
|
|
26 |
{
|
27 |
$url= ''.$iHelper->init($_product, $picType)
|
28 |
->keepFrame(false)->resize($picWidth,$picHeight);
|
29 |
-
|
30 |
if ($url!='')
|
31 |
{
|
32 |
-
$
|
33 |
-
$
|
34 |
-
$
|
35 |
-
$
|
36 |
-
$
|
|
|
|
|
|
|
37 |
$max--;
|
38 |
if ( !$max ) break;
|
39 |
}
|
40 |
}
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
}
|
43 |
protected function getCacheKey()
|
44 |
{
|
@@ -74,14 +129,17 @@ abstract class AuIt_Gallery2_Model_Category_Abstract extends Mage_Core_Model_Abs
|
|
74 |
public function getXML(Mage_Core_Controller_Request_Http $request)
|
75 |
{
|
76 |
$this->_cacheKey = crc32($request->getRequestUri());
|
77 |
-
if (!($
|
78 |
{
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
$this->
|
|
|
|
|
|
|
83 |
}
|
84 |
-
return $
|
85 |
}
|
86 |
abstract protected function _getProductCollection(Mage_Core_Controller_Request_Http $request);
|
87 |
protected function _shuffle()
|
3 |
{
|
4 |
protected $_feprod;
|
5 |
protected $_cacheKey;
|
6 |
+
protected $_priceBlock;
|
7 |
+
protected $_htmlBlock;
|
8 |
+
public function __construct()
|
9 |
{
|
10 |
parent::__construct();
|
11 |
}
|
12 |
+
private function codingXML($text)
|
13 |
{
|
14 |
+
$text = str_replace('&','[AMPAMP]',$text);
|
15 |
+
$text = str_replace('&','&',$text);
|
16 |
+
return str_replace('[AMPAMP]','&',$text);
|
17 |
+
}
|
18 |
+
private function addTemplate(Mage_Core_Controller_Request_Http $request)
|
19 |
+
{
|
20 |
+
$xml='<template>';
|
21 |
+
$templates = $request->getParam('template','');
|
22 |
+
if ( !$templates )
|
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[';
|
30 |
+
// $xml .= file_get_contents($dir.'view.phtml');
|
31 |
+
//$xml .= ']]></box>';
|
32 |
+
}
|
33 |
+
if ( file_exists($dir.'default.css') )
|
34 |
+
{
|
35 |
+
$xml .= '<css><![CDATA[';
|
36 |
+
$xml .= file_get_contents($dir.'default.css');
|
37 |
+
$xml .= ']]></css>';
|
38 |
+
}
|
39 |
+
}
|
40 |
+
$xml.='</template>';
|
41 |
+
return $xml;
|
42 |
+
}
|
43 |
+
private function buildXMl(Mage_Core_Controller_Request_Http $request,$_productCollection)
|
44 |
+
{
|
45 |
+
$xml='';
|
46 |
+
|
47 |
$picWidth = (int)$request->getParam('picture_width',230);
|
48 |
if ( $picWidth <= 0 ) $picWidth=230;
|
49 |
$picHeight = (int)$request->getParam('picture_height',184);
|
61 |
{
|
62 |
$url= ''.$iHelper->init($_product, $picType)
|
63 |
->keepFrame(false)->resize($picWidth,$picHeight);
|
|
|
64 |
if ($url!='')
|
65 |
{
|
66 |
+
$xml.='<item>';
|
67 |
+
$xml.='<image>'.$url.'</image>';
|
68 |
+
$xml.='<name><![CDATA['.$_product->getName().']]></name>';
|
69 |
+
$xml.='<short><![CDATA['.$_product->getshortDescription().']]></short>';
|
70 |
+
$xml.='<link>'.$_product->getProductUrl().'</link>';
|
71 |
+
// $xml.='<price><![CDATA['.str_replace(Array("\n","\t",''),'',$this->getPriceHtml($_product,true)).']]></price>';
|
72 |
+
$xml.='<html><![CDATA['.str_replace(Array("\n","\t",''),'',$this->getHtml($_product,true)).']]></html>';
|
73 |
+
$xml.='</item>';
|
74 |
$max--;
|
75 |
if ( !$max ) break;
|
76 |
}
|
77 |
}
|
78 |
+
return $xml;
|
79 |
+
}
|
80 |
+
/**
|
81 |
+
public function getPriceHtml($product, $displayMinimalPrice = false, $idSuffix='')
|
82 |
+
{
|
83 |
+
if ( !$this->_priceBlock )
|
84 |
+
{
|
85 |
+
$this->_priceBlock = Mage::getSingleton('core/layout')->createBlock('catalog/product_list');
|
86 |
+
}
|
87 |
+
return str_replace(Array("<div","</div"),Array('<p','</p'),$this->_priceBlock->getPriceHtml($product, $displayMinimalPrice, $idSuffix));
|
88 |
+
}
|
89 |
+
*/
|
90 |
+
public function getHtml($product, $displayMinimalPrice = false, $idSuffix='')
|
91 |
+
{
|
92 |
+
if ( !$this->_htmlBlock )
|
93 |
+
{
|
94 |
+
$this->_htmlBlock = Mage::getSingleton('core/layout')->createBlock('auit_gallery2/product_view');
|
95 |
+
}
|
96 |
+
return $this->_htmlBlock->getFlashHtml($product);
|
97 |
}
|
98 |
protected function getCacheKey()
|
99 |
{
|
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 = '';
|
135 |
+
$xml.= '<?xml version="1.0" encoding="UTF-8"?>'."\n";
|
136 |
+
$xml.= '<data>';
|
137 |
+
$xml.= $this->addTemplate($request);
|
138 |
+
$xml.= $this->buildXMl($request,$this->_getProductCollection($request));
|
139 |
+
$xml.= '</data>';
|
140 |
+
$this->_saveCache($xml);
|
141 |
}
|
142 |
+
return $xml;
|
143 |
}
|
144 |
abstract protected function _getProductCollection(Mage_Core_Controller_Request_Http $request);
|
145 |
protected function _shuffle()
|
app/code/community/AuIt/Gallery2/templates/default/default.css
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
Flash Player supports a subset of properties
|
3 |
+
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/StyleSheet.html
|
4 |
+
*/
|
5 |
+
.text
|
6 |
+
{
|
7 |
+
font-family:Arial;
|
8 |
+
color:#eeeeee;
|
9 |
+
font-size: 11px;
|
10 |
+
margin-left:5px;
|
11 |
+
margin-right:5px;
|
12 |
+
}
|
13 |
+
.price-box
|
14 |
+
{
|
15 |
+
color:#eeeeee;
|
16 |
+
text-align:right;
|
17 |
+
margin-right:5px;
|
18 |
+
font-size: 9px;
|
19 |
+
}
|
20 |
+
.price {
|
21 |
+
font-family:Arial;
|
22 |
+
color:#ff0000;
|
23 |
+
font-size: 12px;
|
24 |
+
font-weight: bold;
|
25 |
+
}
|
26 |
+
.old-price
|
27 |
+
{
|
28 |
+
font-size: 9px;
|
29 |
+
}
|
30 |
+
.special-price
|
31 |
+
{
|
32 |
+
color:#ffff00;
|
33 |
+
font-size: 10px;
|
34 |
+
font-weight: bold;
|
35 |
+
}
|
36 |
+
.regular-price
|
37 |
+
{
|
38 |
+
font-weight: bold;
|
39 |
+
}
|
app/code/community/AuIt/Gallery2/templates/default/view.phtml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$_helper = $this->helper('catalog/output');
|
3 |
+
$_product = $this->getProduct();
|
4 |
+
?>
|
5 |
+
<p class="text"><?php echo $_helper->productAttribute($_product, $this->htmlEscape($_product->getName()), 'name') ?></p>
|
6 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
7 |
+
<?php
|
8 |
+
/*
|
9 |
+
<p class="text">Flash Gallery - Accordion</p>
|
10 |
+
<p class="price-box">
|
11 |
+
<span class="regular-price" id="product-price-1">
|
12 |
+
<span class="price">29,00 €</span>
|
13 |
+
</span>
|
14 |
+
<small>Inkl. Steuern</small>
|
15 |
+
<small>
|
16 |
+
<span class="price" id="auit-basis-price-1"></span>
|
17 |
+
</small>
|
18 |
+
</p>
|
19 |
+
*/
|
20 |
+
?>
|
js/auit/gallery2/swf/flip.swf
CHANGED
Binary file
|
js/auit/gallery2/swf/photo.swf
CHANGED
Binary file
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>AuIt_FLASH_GALLERY_FLIP</name>
|
4 |
-
<version>1.
|
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>
|
@@ -10,11 +10,11 @@
|
|
10 |
<description>This Flash gallery can be integrated in various ways. The representation can be adapted by an abundance of parameter to the own web page.
|
11 |
|
12 |
More flash galleries? Can be found on the website http://www.snm-portal.de</description>
|
13 |
-
<notes>
|
14 |
<authors><author><name>Augsten</name><user>auto-converted</user><email>muc6104@googlemail.com</email></author></authors>
|
15 |
-
<date>2009-
|
16 |
-
<time>
|
17 |
-
<contents><target name="magecommunity"><dir name="AuIt"><dir name="Gallery2"><dir name="Block"><dir name="Flash"><file name="Abstract.php" hash="
|
18 |
<compatible/>
|
19 |
<dependencies/>
|
20 |
</package>
|
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>
|
10 |
<description>This Flash gallery can be integrated in various ways. The representation can be adapted by an abundance of parameter to the own web page.
|
11 |
|
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>
|