AuIt_FLASH_GALLERY_FLIP - Version 1.2.2

Version Notes

Inital

Download this release

Release Info

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


Version 1.2.2

app/code/community/AuIt/Gallery2/Block/Flash/Abstract.php ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * {{block type="catalog/product_list" category_id="4" template="catalog/product/list.phtml"}}
4
+ */
5
+ abstract class AuIt_Gallery2_Block_Flash_Abstract extends Mage_Core_Block_Template
6
+ {
7
+ private static $_isInit=false;
8
+ protected $flashSwf;
9
+ protected $modelData=array();
10
+ protected $modelParam=array();
11
+ protected $flashparam=array();
12
+ protected $flashattributes=array();
13
+ protected function _prepareLayout()
14
+ {
15
+ parent::_prepareLayout();
16
+ $this->initParams();
17
+ // $this->updateParams();
18
+ return $this;
19
+ }
20
+
21
+ protected function initParams()
22
+ {
23
+ $this->flashSwf='flip.swf';
24
+
25
+ $this->modelData['picture_type']='small_image';
26
+ $this->modelData['picture_width']=0;
27
+ $this->modelData['picture_height']=0;
28
+ $this->modelData['model']='category_mostviewed';
29
+ $this->modelData['max_products']=20;
30
+ $this->modelData['category']=13;
31
+ $this->modelParam['licensekey']='0000-0000-0000-0000';
32
+
33
+ $this->flashattributes['width']=685;
34
+ $this->flashattributes['height']=135;
35
+ $this->flashattributes['align']='left';
36
+ $this->flashattributes['frame_style']='display:block;width:100%;height:135px;margin-bottom:10px;';
37
+ $this->flashattributes['style']='';
38
+
39
+ $this->flashparam['wmode']='transparent';
40
+ $this->flashparam['allowfullscreen']='1';
41
+ $this->flashparam['allowscriptaccess']='sameDomain';
42
+ $this->flashparam['play']='1';
43
+ $this->flashparam['menu']='false';
44
+ $this->flashparam['quality']='best';
45
+ $this->flashparam['scale']='';
46
+ $this->flashparam['bgcolor']='';
47
+
48
+ }
49
+ protected function updateParams()
50
+ {
51
+ if ( !$this->modelData['picture_width'])
52
+ $this->modelData['picture_width']=$this->flashattributes['height'];
53
+ if ( !$this->modelData['picture_height'])
54
+ $this->modelData['picture_height']=$this->flashattributes['height'];
55
+
56
+ $myData = $this->getData();
57
+ foreach ( $this->modelData as $k => $v )
58
+ if ( isset($myData['modelData_'.$k]) )
59
+ $this->modelData[$k]=$myData['modelData_'.$k];
60
+ foreach ( $this->flashattributes as $k => $v )
61
+ if ( isset($myData['flashAttribute_'.$k]) )
62
+ $this->flashattributes[$k]=$myData['flashAttribute_'.$k];
63
+ foreach ( $this->flashparam as $k => $v )
64
+ if ( isset($myData['flashParam_'.$k]) )
65
+ $this->flashparam[$k]=$myData['flashParam_'.$k];
66
+ foreach ( $this->modelParam as $k => $v )
67
+ if ( isset($myData['modelParam_'.$k]) )
68
+ $this->modelParam[$k]=$myData['modelParam_'.$k];
69
+ if ( $this->modelData['model']=='category_current' )
70
+ {
71
+ $this->modelData['model']='category_list';
72
+ $category = Mage::registry('current_category');
73
+ if ( $category )
74
+ $this->modelData['category']=$category->getId();
75
+ }
76
+ }
77
+ public function modelParam($key,$value)
78
+ {
79
+ if ( isset($this->modelParam[$key]))
80
+ $this->modelParam[$key]=$value;
81
+ return $this;
82
+ }
83
+ public function modelData($key,$value)
84
+ {
85
+ if ( isset($this->modelData[$key]))
86
+ $this->modelData[$key]=$value;
87
+ return $this;
88
+ }
89
+ public function flashParam($key,$value)
90
+ {
91
+ if ( isset($this->flashparam[$key]))
92
+ $this->flashparam[$key]=$value;
93
+ return $this;
94
+ }
95
+ public function flashAttribute($key,$value)
96
+ {
97
+ if ( isset($this->flashattributes[$key]))
98
+ $this->flashattributes[$key]=$value;
99
+ return $this;
100
+ }
101
+ protected function _toHtml()
102
+ {
103
+ $ObjId = uniqid();
104
+ $_jsUrl = $this->getJsUrl();
105
+ $this->updateParams();
106
+ // $this->flashattributes['width']='1';
107
+ // $this->flashattributes['height']='2';
108
+ $this->modelParam['dataurl']=$this->getUrl('au-it-gallery2/index/xml',$this->modelData);
109
+ ob_start();
110
+ if ( !self::$_isInit )
111
+ {
112
+ self::$_isInit =true;?>
113
+ <script src="<?php echo $_jsUrl;?>auit/gallery2/swf/swfobject.js" type="text/javascript"></script>
114
+ <?php }
115
+ if ( $this->flashattributes['frame_style'] !=''):?>
116
+ <div style="<?php echo $this->flashattributes['frame_style'];?>">
117
+ <?php endif;?>
118
+ <div id="swf<?php echo $ObjId?>">
119
+ <a href="http://www.adobe.com/go/getflashplayer">Download Adobe Flash Player</a>
120
+ </div>
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?>",
128
+ "<?php echo $this->flashattributes['width'];?>",
129
+ "<?php echo $this->flashattributes['height'];?>",
130
+ "9.0.0", null,
131
+ <?php echo json_encode($this->modelParam);?>,
132
+ <?php echo json_encode($this->flashparam);?>, <?php echo json_encode($this->flashattributes);?>);
133
+ </script>
134
+ <?
135
+ return ob_get_clean();
136
+ }
137
+ }
app/code/community/AuIt/Gallery2/Block/Flash/Accordion.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_Gallery2_Block_Flash_Accordion extends AuIt_Gallery2_Block_Flash_Abstract
3
+ {
4
+ protected function initParams()
5
+ {
6
+ parent::initParams();
7
+ $this->flashSwf='accordion.swf';
8
+ $this->modelParam['accord_width']=25;
9
+ $this->modelParam['font_size']=12;
10
+ $this->modelParam['font_color']='0xe5e5e5';
11
+ $this->modelParam['background_color']='0x0A263D';
12
+ $this->modelParam['frame_color']='0xFFFFFF';
13
+ $this->modelParam['randomise']=1;
14
+ $this->modelParam['alpha']=0.5;
15
+ $this->modelParam['font']='Arial';
16
+ $this->modelParam['random_click']=3;
17
+ $this->modelParam['orientation']='horizontal';
18
+ $this->modelParam['text_bgcolor']='';
19
+ $this->modelParam['left_margin']=10;
20
+ $this->modelParam['right_margin']=10;
21
+ }
22
+ }
23
+ ?>
app/code/community/AuIt/Gallery2/Block/Flash/Flip.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_Gallery2_Block_Flash_Flip 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->flashSwf='flip.swf';
11
+ $this->modelParam['border_color']='0xdddddd';
12
+ $this->modelParam['border_background']='0xffffff';
13
+ $this->modelParam['randomise']=1;
14
+ $this->modelParam['timer']=2;
15
+
16
+ $this->flashattributes['width']=195;
17
+ $this->flashattributes['height']=195;
18
+ $this->flashattributes['align']='';
19
+ $this->flashattributes['frame_style']='';
20
+
21
+
22
+ }
23
+ }
app/code/community/AuIt/Gallery2/Block/Flash/Pageflip.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_Gallery2_Block_Flash_Flip 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->flashSwf='pageflip.swf';
11
+ }
12
+ }
app/code/community/AuIt/Gallery2/Block/Flash/Photo.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_Gallery2_Block_Flash_Photo 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->flashSwf='photo.swf';
11
+ $this->modelParam['border_color']='0xdddddd';
12
+ $this->modelParam['border_background']='0xffffff';
13
+ $this->modelParam['border_size']='7';
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.5;
22
+ if ( !$this->modelData['picture_height'])
23
+ $this->modelData['picture_height']=$this->flashattributes['height']*0.5;
24
+ parent::updateParams();
25
+ }
26
+
27
+ }
28
+ ?>
app/code/community/AuIt/Gallery2/Helper/Data.php ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <?php
2
+ class AuIt_Gallery2_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ }
app/code/community/AuIt/Gallery2/Model/Category/Abstract.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ abstract class AuIt_Gallery2_Model_Category_Abstract extends Mage_Core_Model_Abstract
3
+ {
4
+ protected $_feprod;
5
+ protected $_cacheKey;
6
+ public function __construct()
7
+ {
8
+ parent::__construct();
9
+ }
10
+ private function buildXMl(Mage_Core_Controller_Request_Http $request,&$xml,$_productCollection)
11
+ {
12
+ $picWidth = (int)$request->getParam('picture_width',230);
13
+ if ( $picWidth <= 0 ) $picWidth=230;
14
+ $picHeight = (int)$request->getParam('picture_height',184);
15
+ if ( $picHeight <= 0 ) $picHeight=184;
16
+ $picType = $request->getParam('picture_type','small_image');
17
+ if ( $picType != 'image' && $picType != 'small_image' && $picType != 'thumbnail' )
18
+ $picType='small_image';
19
+
20
+ $max = (int)$request->getParam('max_products',10);
21
+ if ( $max <= 0 ) $max=10;
22
+ $iHelper = Mage::helper('catalog/image');
23
+
24
+ if ( $_productCollection )
25
+ foreach ($_productCollection as $_product)
26
+ {
27
+ $url= ''.$iHelper->init($_product, $picType)
28
+ ->keepFrame(false)->resize($picWidth,$picHeight);
29
+
30
+ if ($url!='')
31
+ {
32
+ $NTmp = $xml->addChild('item');
33
+ $NTmp->addChild('image',$url);
34
+ $NTmp->addChild('name',htmlentities ($_product->getName(),ENT_COMPAT ,'UTF-8'));
35
+ $NTmp->addChild('short',$_product->getshortDescription());
36
+ $NTmp->addChild('link',$_product->getProductUrl());
37
+ $max--;
38
+ if ( !$max ) break;
39
+ }
40
+ }
41
+
42
+ }
43
+ protected function getCacheKey()
44
+ {
45
+ return 'auit_de_gallery_'.$this->_cacheKey;
46
+ }
47
+ protected function getCacheTags()
48
+ {
49
+ $tags = array();
50
+ $tags[] = 'auit_de_data';
51
+ return $tags;
52
+ }
53
+
54
+ protected function getCacheLifetime()
55
+ {
56
+ return 60*60*5; // Sekunden
57
+ }
58
+
59
+ protected function _loadCache()
60
+ {
61
+ if (is_null($this->getCacheLifetime()) || !Mage::app()->useCache('auit_de')) {
62
+ return false;
63
+ }
64
+ return Mage::app()->loadCache($this->getCacheKey());
65
+ }
66
+ protected function _saveCache($data)
67
+ {
68
+ if (is_null($this->getCacheLifetime()) || !Mage::app()->useCache('auit_de')) {
69
+ return false;
70
+ }
71
+ Mage::app()->saveCache($data, $this->getCacheKey(), $this->getCacheTags(), $this->getCacheLifetime());
72
+ return $this;
73
+ }
74
+ public function getXML(Mage_Core_Controller_Request_Http $request)
75
+ {
76
+ $this->_cacheKey = crc32($request->getRequestUri());
77
+ if (!($data = $this->_loadCache()))
78
+ {
79
+ $xml = new SimpleXMLElement("<?xml version='1.0' encoding='utf-8'?><data></data>");
80
+ $this->buildXMl($request,$xml,$this->_getProductCollection($request));
81
+ $data = $xml->asXML();
82
+ $this->_saveCache($data);
83
+ }
84
+ return $data;
85
+ }
86
+ abstract protected function _getProductCollection(Mage_Core_Controller_Request_Http $request);
87
+ protected function _shuffle()
88
+ {
89
+ $shuff=array();
90
+ $keys=array();
91
+ $_productCollection=self::$_feprod;
92
+ foreach ($_productCollection as $k => $_product)
93
+ {
94
+ $shuff[]=$_product;$keys[]=$k;
95
+ }
96
+ foreach ($keys as $k)
97
+ {
98
+ $_productCollection->removeItemByKey($k);
99
+ }
100
+ // $this->_productCollectionas->clear()
101
+ shuffle($shuff);
102
+ foreach ($shuff as $k => $_product)
103
+ {
104
+ //$_product->setId($k);
105
+ $_productCollection->addItem($_product);
106
+ }
107
+ self::$_feprod =$_productCollection;
108
+ }
109
+
110
+ }
111
+
112
+ ?>
app/code/community/AuIt/Gallery2/Model/Category/Bestseller.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_Gallery2_Model_Categoryt_Bestseller extends AuIt_Gallery2_Model_Category_Abstract
3
+ {
4
+ protected function _getProductCollection(Mage_Core_Controller_Request_Http $request)
5
+ {
6
+ if (is_null($this->_feprod))
7
+ {
8
+ $storeId = Mage::app()->getStore()->getId();
9
+ $this->_feprod = Mage::getResourceModel('reports/product_collection')
10
+ ->addOrderedQty()
11
+ ->addAttributeToSelect(array('name', 'price'))
12
+ ->setStoreId($storeId)
13
+ ->addStoreFilter($storeId)
14
+ ->setOrder('ordered_qty', 'desc');
15
+ }
16
+ return $this->_feprod;
17
+ }
18
+ }
19
+ ?>
app/code/community/AuIt/Gallery2/Model/Category/List.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_Gallery2_Model_Category_List extends AuIt_Gallery2_Model_Category_Abstract
3
+ {
4
+ protected function _getProductCollection(Mage_Core_Controller_Request_Http $request)
5
+ {
6
+ if (is_null($this->_feprod))
7
+ {
8
+ $category = Mage::getModel('catalog/category')->load($request->getParam('category',4));
9
+ if ( !$category )
10
+ {
11
+ $category = Mage::getModel('catalog/category')->load($request->getParam('category',Mage::app()->getStore()->getRootCategoryId()));
12
+ }
13
+ $origCategory = null;
14
+ if ( $category )
15
+ {
16
+ $layer = Mage::getSingleton('catalog/layer');
17
+ $collection = $category->getProductCollection();
18
+ $this->prepareProductCollection($category,$collection);
19
+ $this->_feprod =$collection;
20
+ }
21
+ }
22
+ return $this->_feprod;
23
+ }
24
+ public function prepareProductCollection($category,$collection)
25
+ {
26
+ $attributes = Mage::getSingleton('catalog/config')
27
+ ->getProductAttributes();
28
+ $collection->addAttributeToSelect($attributes)
29
+ ->addMinimalPrice()
30
+ ->addFinalPrice()
31
+ ->addTaxPercents()
32
+ //->addStoreFilter()
33
+ ;
34
+
35
+ Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
36
+ Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);
37
+ $collection->addUrlRewrite($category->getId());
38
+ return $this;
39
+ }
40
+ }
41
+ ?>
app/code/community/AuIt/Gallery2/Model/Category/Mostviewed.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_Gallery2_Model_Category_Mostviewed extends AuIt_Gallery2_Model_Category_Abstract
3
+ {
4
+ protected function _getProductCollection(Mage_Core_Controller_Request_Http $request)
5
+ {
6
+ if (is_null($this->_feprod))
7
+ {
8
+ $storeId = Mage::app()->getStore()->getId();
9
+ $this->_feprod = Mage::getResourceModel('reports/product_collection')
10
+ ->addAttributeToSelect('*')
11
+ ->addViewsCount()
12
+ ->setStoreId($storeId)
13
+ ->addStoreFilter($storeId);
14
+ }
15
+ return $this->_feprod;
16
+ }
17
+ }
18
+ ?>
app/code/community/AuIt/Gallery2/Model/Category/New.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_Gallery2_Model_Category_New extends AuIt_Gallery2_Model_Category_Abstract
3
+ {
4
+ protected function _getProductCollection(Mage_Core_Controller_Request_Http $request)
5
+ {
6
+ if (is_null($this->_feprod))
7
+ {
8
+ $todayDate = Mage::app()->getLocale()->date()->toString(Varien_Date::DATETIME_INTERNAL_FORMAT);
9
+
10
+ $collection = Mage::getResourceModel('catalog/product_collection');
11
+ Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
12
+ Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);
13
+ $collection->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes());
14
+ $this->_feprod = $collection
15
+ ->addStoreFilter()
16
+ ->addAttributeToFilter('news_from_date', array('date' => true, 'to' => $todayDate))
17
+ ->addAttributeToFilter('news_to_date', array('or'=> array(
18
+ 0 => array('date' => true, 'from' => $todayDate),
19
+ 1 => array('is' => new Zend_Db_Expr('null')))
20
+ ), 'left')
21
+ ->addAttributeToSort('news_from_date', 'desc')
22
+ ->setPageSize(30)
23
+ ->setCurPage(1)
24
+ ;
25
+
26
+ }
27
+ return $this->_feprod;
28
+ }
29
+ }
30
+ ?>
app/code/community/AuIt/Gallery2/controllers/IndexController.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class AuIt_Gallery2_IndexController extends Mage_Core_Controller_Front_Action
3
+ {
4
+ public function xmlAction()
5
+ {
6
+ $modelTyp = $this->getRequest()->getParam('model');
7
+ if ( !$modelTyp)
8
+ $modelTyp='category_list';
9
+ $model = null;
10
+ try {
11
+ $model = Mage::getModel('auit_gallery2/'.$modelTyp);
12
+ if ( !$model )
13
+ $model = Mage::getModel('auit_gallery2/category_list');
14
+ }catch (Exception $e) {
15
+ }
16
+ return $this->getResponse()
17
+ ->setHeader('Content-type', 'text/xml; charset=UTF-8')
18
+ ->setBody($model->getXML($this->getRequest()));
19
+ }
20
+ }
app/code/community/AuIt/Gallery2/etc/config.xml ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <AuIt_Gallery2>
5
+ <version>1.2.2</version>
6
+ </AuIt_Gallery2>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <auit_gallery2>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>AuIt_Gallery2</module>
14
+ <frontName>au-it-gallery2</frontName>
15
+ </args>
16
+ </auit_gallery2>
17
+ </routers>
18
+ </frontend>
19
+ <default>
20
+ </default>
21
+ <global>
22
+ <blocks>
23
+ <auit_gallery2>
24
+ <class>AuIt_Gallery2_Block</class>
25
+ </auit_gallery2>
26
+ </blocks>
27
+ <helpers>
28
+ <auit_gallery2>
29
+ <class>AuIt_Gallery2_Helper</class>
30
+ </auit_gallery2>
31
+ </helpers>
32
+ <models>
33
+ <auit_gallery2>
34
+ <class>AuIt_Gallery2_Model</class>
35
+ </auit_gallery2>
36
+ </models>
37
+ <cache>
38
+ <types>
39
+ <auit_de translate="label" module="auit_gallery2"><label>AuIt Gallery</label></auit_de>
40
+ </types>
41
+ </cache>
42
+ </global>
43
+ </config>
app/etc/modules/XAuIt_Gallery2.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <AuIt_Gallery2>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </AuIt_Gallery2>
8
+ </modules>
9
+ </config>
js/auit/gallery2/swf/accordion.swf ADDED
Binary file
js/auit/gallery2/swf/assets/Arial.swf ADDED
Binary file
js/auit/gallery2/swf/assets/Comic Sans MS.swf ADDED
Binary file
js/auit/gallery2/swf/flip.swf ADDED
Binary file
js/auit/gallery2/swf/pageflip.swf ADDED
Binary file
js/auit/gallery2/swf/photo.swf ADDED
Binary file
js/auit/gallery2/swf/swfobject.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ /* SWFObject v2.1 <http://code.google.com/p/swfobject/>
2
+ Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
3
+ This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
4
+ */
5
+ var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();
package.xml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>AuIt_FLASH_GALLERY_FLIP</name>
4
+ <version>1.2.2</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>
8
+ <extends/>
9
+ <summary>Flash gallery, simple integration</summary>
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-06-07</date>
16
+ <time>12:51:35</time>
17
+ <contents><target name="magecommunity"><dir name="AuIt"><dir name="Gallery2"><dir name="Block"><dir name="Flash"><file name="Abstract.php" hash="3598a25b44fa3d674277427e400dd22c"/><file name="Accordion.php" hash="f7ddfbbfb1aff2a7644cfa1824dc9cc9"/><file name="Flip.php" hash="9d6eedcfdd89443b5fc59931123b3c23"/><file name="Pageflip.php" hash="1dacf4c5a1a97852191c5fb33fef9679"/><file name="Photo.php" hash="b8151c7dc94f6bba8dd82aa1312aea6d"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="52d7180d7430bcad024160f5dc8d8d35"/></dir><dir name="etc"><file name="config.xml" hash="6242188b616933d17c84f7170b93f962"/></dir><dir name="Helper"><file name="Data.php" hash="a3c58c7a46dd6da06bb998ed0936207f"/></dir><dir name="Model"><dir name="Category"><file name="Abstract.php" hash="63135d3f3634901e370a542d98c05898"/><file name="Bestseller.php" hash="446bd8dafbb52abbbee61929f2768628"/><file name="List.php" hash="86add8640f8db250b45462ff9f857292"/><file name="Mostviewed.php" hash="55c086490e8b282a74d34671491232f9"/><file name="New.php" hash="2c08979e24797f63ef6d23cb1abb73af"/></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="56875c879c923d19e5d8d65cb535b48d"/><file name="flip.swf" hash="029eed4bcb53c7dd50e7630f9ed05ea0"/><file name="pageflip.swf" hash="3d05f10eac9c015aada13957660b632a"/><file name="photo.swf" hash="b1869cc7f46581cfcd6658685ddd87f3"/><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>