Version Notes
Latest version with great features.
Download this release
Release Info
Developer | Umesh |
Extension | Bassi_Imageslider |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
- app/code/community/Bassi/Imageslider/Block/About.php +69 -0
- app/code/community/Bassi/Imageslider/Block/Adminhtml/Imageslider.php +13 -0
- app/code/community/Bassi/Imageslider/Block/Adminhtml/Imageslider/Edit.php +13 -1
- app/code/community/Bassi/Imageslider/Block/Adminhtml/Imageslider/Edit/Form.php +13 -0
- app/code/community/Bassi/Imageslider/Block/Adminhtml/Imageslider/Edit/Tab/Form.php +37 -0
- app/code/community/Bassi/Imageslider/Block/Adminhtml/Imageslider/Edit/Tabs.php +13 -0
- app/code/community/Bassi/Imageslider/Block/Adminhtml/Imageslider/Grid.php +31 -1
- app/code/community/Bassi/Imageslider/Block/Adminhtml/Renderer/Image.php +27 -0
- app/code/community/Bassi/Imageslider/Block/Imageslider.php +14 -2
- app/code/community/Bassi/Imageslider/Helper/Data.php +11 -3
- app/code/community/Bassi/Imageslider/Model/Imageslider.php +13 -0
- app/code/community/Bassi/Imageslider/Model/Imagethumbnails.php +13 -0
- app/code/community/Bassi/Imageslider/Model/Loader.php +13 -0
- app/code/community/Bassi/Imageslider/Model/Mysql4/Imageslider.php +13 -0
- app/code/community/Bassi/Imageslider/Model/Mysql4/Imageslider/Collection.php +14 -1
- app/code/community/Bassi/Imageslider/Model/Status.php +13 -0
- app/code/community/Bassi/Imageslider/Model/Style.php +13 -0
- app/code/community/Bassi/Imageslider/controllers/Adminhtml/ImagesliderController.php +39 -32
- app/code/community/Bassi/Imageslider/controllers/IndexController.php +13 -0
- app/code/community/Bassi/Imageslider/etc/adminhtml.xml +7 -2
- app/code/community/Bassi/Imageslider/etc/config.xml +17 -14
- app/code/community/Bassi/Imageslider/etc/system.xml +90 -25
- app/code/community/Bassi/Imageslider/sql/imageslider_setup/mysql4-upgrade-1.0.3-1.0.4.php +30 -0
- app/design/frontend/base/default/template/imageslider/imageslider.phtml +157 -0
- app/design/frontend/default/default/layout/imageslider.xml +0 -5
- app/design/frontend/default/default/template/imageslider/imageslider.phtml +0 -126
- js/bassi/imageslider/camera.js +86 -38
- package.xml +9 -9
- skin/frontend/{default → base}/default/css/bassi/imageslider/blank.gif +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/camera-loader.gif +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/camera.css +9 -1
- skin/frontend/{default → base}/default/css/bassi/imageslider/camera_skins.png +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/Thumbs.db +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/_notes/dwsync.xml +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay1.png +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay10.png +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay2.png +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay3.png +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay4.png +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay5.png +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay6.png +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay7.png +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay8.png +0 -0
- skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay9.png +0 -0
- skin/frontend/default/default/css/bassi/imageslider/Thumbs.db +0 -0
app/code/community/Bassi/Imageslider/Block/About.php
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
+
|
16 |
+
class Bassi_Imageslider_Block_About
|
17 |
+
extends Mage_Adminhtml_Block_Abstract
|
18 |
+
implements Varien_Data_Form_Element_Renderer_Interface
|
19 |
+
{
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Render fieldset html
|
23 |
+
*
|
24 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
25 |
+
* @return string
|
26 |
+
*/
|
27 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
28 |
+
{
|
29 |
+
$logopath = 'http://www.magentocommerce.com/images/avatars/uploads/avatar_179510.png';
|
30 |
+
$html = <<<HTML
|
31 |
+
<div style="background:url('$logopath') no-repeat scroll 14px 14px #EAF0EE;border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 5px 5px 164px;">
|
32 |
+
<p>
|
33 |
+
<strong>Magento Web Development and PREMIUM FREE/PAID MAGENTO EXTENSIONS</strong><br />
|
34 |
+
<a href="http://www.magebassi.com/" target="_blank">Magebassi</a> offers a wide choice of nice-looking and easily editable free and premium Magento extensions.<br />
|
35 |
+
</p>
|
36 |
+
<p>
|
37 |
+
You can <a href="http://www.magebassi.com/index.php/contacts/">Contact Us</a> for magento web development and customize new magento extensions per your requirement.
|
38 |
+
</p>
|
39 |
+
<p>
|
40 |
+
<b>Magento Development:</b> We are expert in Magento, you may contact us for Installation, configuration, customization and any other magento tasks.
|
41 |
+
</p>
|
42 |
+
<p>
|
43 |
+
<b>Magento IMS:</b> BrightPearl, Channel Advisor and Linnworks Integration.
|
44 |
+
</p>
|
45 |
+
<p>
|
46 |
+
<b>Magento App Development:</b> Magento Iphone and Android App Development.
|
47 |
+
</p>
|
48 |
+
|
49 |
+
<p>
|
50 |
+
My extensions on <a href="http://www.magentocommerce.com/magento-connect/developer/magebassi#extensions" target="_blank">MagentoConnect</a><br />
|
51 |
+
</p>
|
52 |
+
<p>For any questions or quote please email us at <a href="mailto:magebassi@gmail.com">magebassi@gmail.com</a> or Skype: magebassi</p>
|
53 |
+
<br />
|
54 |
+
<p>To add the banner slider, please add the below codes for specific location:<br /><br />
|
55 |
+
|
56 |
+
<b>Code for CMS and Static blocks:</b><br />
|
57 |
+
{{block type='imageslider/imageslider' template='imageslider/imageslider.phtml'}}
|
58 |
+
<br /><br />
|
59 |
+
<b>Code for Template files:</b><br />
|
60 |
+
<?php echo $this->getLayout()->createBlock('imageslider/imageslider')->setTemplate('imageslider/imageslider.phtml')->toHtml(); ?>
|
61 |
+
<br /><br />
|
62 |
+
<b>Code for layout XML files (need to add in reference content):</b><br />
|
63 |
+
<block type="imageslider/imageslider" template="imageslider/imageslider.phtml"></block>
|
64 |
+
|
65 |
+
</div>
|
66 |
+
HTML;
|
67 |
+
return $html;
|
68 |
+
}
|
69 |
+
}
|
app/code/community/Bassi/Imageslider/Block/Adminhtml/Imageslider.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
class Bassi_Imageslider_Block_Adminhtml_Imageslider extends Mage_Adminhtml_Block_Widget_Grid_Container
|
3 |
{
|
4 |
public function __construct()
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
class Bassi_Imageslider_Block_Adminhtml_Imageslider extends Mage_Adminhtml_Block_Widget_Grid_Container
|
16 |
{
|
17 |
public function __construct()
|
app/code/community/Bassi/Imageslider/Block/Adminhtml/Imageslider/Edit.php
CHANGED
@@ -1,5 +1,17 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
class Bassi_Imageslider_Block_Adminhtml_Imageslider_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
|
4 |
{
|
5 |
public function __construct()
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
class Bassi_Imageslider_Block_Adminhtml_Imageslider_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
|
16 |
{
|
17 |
public function __construct()
|
app/code/community/Bassi/Imageslider/Block/Adminhtml/Imageslider/Edit/Form.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
class Bassi_Imageslider_Block_Adminhtml_Imageslider_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
|
4 |
{
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
|
16 |
class Bassi_Imageslider_Block_Adminhtml_Imageslider_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
|
17 |
{
|
app/code/community/Bassi/Imageslider/Block/Adminhtml/Imageslider/Edit/Tab/Form.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
class Bassi_Imageslider_Block_Adminhtml_Imageslider_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
|
4 |
{
|
@@ -45,6 +58,30 @@ class Bassi_Imageslider_Block_Adminhtml_Imageslider_Edit_Tab_Form extends Mage_A
|
|
45 |
'after_element_html' => "<small>Image URL</small>",
|
46 |
'name' => 'weblink',
|
47 |
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
$fieldset->addField('content', 'editor', array(
|
50 |
'name' => 'content',
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
|
16 |
class Bassi_Imageslider_Block_Adminhtml_Imageslider_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
|
17 |
{
|
58 |
'after_element_html' => "<small>Image URL</small>",
|
59 |
'name' => 'weblink',
|
60 |
));
|
61 |
+
|
62 |
+
$fieldset->addField('linktarget', 'select', array(
|
63 |
+
'label' => Mage::helper('imageslider')->__('Link Target'),
|
64 |
+
'name' => 'linktarget',
|
65 |
+
'after_element_html' => "<small>New Tab: To open in new tab, Same Tab: To open in same tab</small>",
|
66 |
+
'values' => array(
|
67 |
+
array(
|
68 |
+
'value' => '_self',
|
69 |
+
'label' => Mage::helper('imageslider')->__('Same Tab'),
|
70 |
+
),
|
71 |
+
|
72 |
+
array(
|
73 |
+
'value' => '_blank',
|
74 |
+
'label' => Mage::helper('imageslider')->__('New Tab'),
|
75 |
+
)
|
76 |
+
),
|
77 |
+
));
|
78 |
+
|
79 |
+
$fieldset->addField('sort_order', 'text', array(
|
80 |
+
'name' => 'sort_order',
|
81 |
+
'label' => $this->__('Sort Order'),
|
82 |
+
'title' => $this->__('Sort Order'),
|
83 |
+
'class' => 'validate-digits'
|
84 |
+
));
|
85 |
|
86 |
$fieldset->addField('content', 'editor', array(
|
87 |
'name' => 'content',
|
app/code/community/Bassi/Imageslider/Block/Adminhtml/Imageslider/Edit/Tabs.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
class Bassi_Imageslider_Block_Adminhtml_Imageslider_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
4 |
{
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
|
16 |
class Bassi_Imageslider_Block_Adminhtml_Imageslider_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
17 |
{
|
app/code/community/Bassi/Imageslider/Block/Adminhtml/Imageslider/Grid.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
class Bassi_Imageslider_Block_Adminhtml_Imageslider_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
4 |
{
|
@@ -26,12 +39,29 @@ class Bassi_Imageslider_Block_Adminhtml_Imageslider_Grid extends Mage_Adminhtml_
|
|
26 |
'width' => '50px',
|
27 |
'index' => 'imageslider_id',
|
28 |
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
$this->addColumn('title', array(
|
31 |
-
'header' => Mage::helper('imageslider')->__('Title'),
|
32 |
'align' =>'left',
|
33 |
'index' => 'title',
|
34 |
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
/*
|
37 |
$this->addColumn('content', array(
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
|
16 |
class Bassi_Imageslider_Block_Adminhtml_Imageslider_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
17 |
{
|
39 |
'width' => '50px',
|
40 |
'index' => 'imageslider_id',
|
41 |
));
|
42 |
+
|
43 |
+
$this->addColumn('image',array(
|
44 |
+
'header' => Mage::helper('imageslider')->__('Banner Image'),
|
45 |
+
'align' =>'center',
|
46 |
+
'index' => 'image',
|
47 |
+
'filter' => false,
|
48 |
+
'sortable' => false,
|
49 |
+
'width' =>'150',
|
50 |
+
'renderer' => 'imageslider/adminhtml_renderer_image'
|
51 |
+
));
|
52 |
|
53 |
$this->addColumn('title', array(
|
54 |
+
'header' => Mage::helper('imageslider')->__('Banner Title'),
|
55 |
'align' =>'left',
|
56 |
'index' => 'title',
|
57 |
));
|
58 |
+
|
59 |
+
$this->addColumn('sort_order', array(
|
60 |
+
'header' => Mage::helper('imageslider')->__('Sort Order'),
|
61 |
+
'align' =>'left',
|
62 |
+
'width' => '80px',
|
63 |
+
'index' => 'sort_order',
|
64 |
+
));
|
65 |
|
66 |
/*
|
67 |
$this->addColumn('content', array(
|
app/code/community/Bassi/Imageslider/Block/Adminhtml/Renderer/Image.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
+
|
16 |
+
class Bassi_Imageslider_Block_Adminhtml_Renderer_Image extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
|
17 |
+
{
|
18 |
+
public function render(Varien_Object $row)
|
19 |
+
{
|
20 |
+
$model = Mage::getModel('imageslider/imageslider')->load($row->getId());
|
21 |
+
$file = $model->getFilename();
|
22 |
+
|
23 |
+
$url = Mage::getBaseUrl('media') . 'mbimages/thumbs/' . $file;
|
24 |
+
$out = "<img src=". $url ." width='80px'/>";
|
25 |
+
return $out;
|
26 |
+
}
|
27 |
+
}
|
app/code/community/Bassi/Imageslider/Block/Imageslider.php
CHANGED
@@ -1,9 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
class Bassi_Imageslider_Block_Imageslider extends Mage_Core_Block_Template {
|
3 |
|
4 |
public function getImageCollection() {
|
5 |
-
$collection = Mage::getModel('imageslider/imageslider')->getCollection()
|
6 |
-
->addFieldToFilter('status',1);
|
7 |
$banners = array();
|
8 |
foreach ($collection as $banner) {
|
9 |
$banners[] = $banner;
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
<?php
|
15 |
class Bassi_Imageslider_Block_Imageslider extends Mage_Core_Block_Template {
|
16 |
|
17 |
public function getImageCollection() {
|
18 |
+
$collection = Mage::getModel('imageslider/imageslider')->getCollection()->addFieldToFilter('status',1)->setOrder('sort_order', 'ASC');
|
|
|
19 |
$banners = array();
|
20 |
foreach ($collection as $banner) {
|
21 |
$banners[] = $banner;
|
app/code/community/Bassi/Imageslider/Helper/Data.php
CHANGED
@@ -1,11 +1,19 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
*
|
4 |
-
*
|
5 |
-
*
|
|
|
|
|
|
|
|
|
|
|
6 |
*
|
7 |
*/
|
|
|
|
|
|
|
8 |
class Bassi_Imageslider_Helper_Data extends Mage_Core_Helper_Abstract
|
9 |
{
|
10 |
|
11 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
*
|
12 |
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
+
|
16 |
class Bassi_Imageslider_Helper_Data extends Mage_Core_Helper_Abstract
|
17 |
{
|
18 |
|
19 |
+
}
|
app/code/community/Bassi/Imageslider/Model/Imageslider.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
class Bassi_Imageslider_Model_Imageslider extends Mage_Core_Model_Abstract
|
4 |
{
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
|
16 |
class Bassi_Imageslider_Model_Imageslider extends Mage_Core_Model_Abstract
|
17 |
{
|
app/code/community/Bassi/Imageslider/Model/Imagethumbnails.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
class Bassi_Imageslider_Model_Imagethumbnails{
|
3 |
protected $_options;
|
4 |
const IMAGETHUMB_THUMBNAIL = 'thumbnail';
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
class Bassi_Imageslider_Model_Imagethumbnails{
|
16 |
protected $_options;
|
17 |
const IMAGETHUMB_THUMBNAIL = 'thumbnail';
|
app/code/community/Bassi/Imageslider/Model/Loader.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
class Bassi_Imageslider_Model_Loader{
|
3 |
protected $_options;
|
4 |
const BANNERLOADER_PIE = 'pie';
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
class Bassi_Imageslider_Model_Loader{
|
16 |
protected $_options;
|
17 |
const BANNERLOADER_PIE = 'pie';
|
app/code/community/Bassi/Imageslider/Model/Mysql4/Imageslider.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
class Bassi_Imageslider_Model_Mysql4_Imageslider extends Mage_Core_Model_Mysql4_Abstract
|
4 |
{
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
|
16 |
class Bassi_Imageslider_Model_Mysql4_Imageslider extends Mage_Core_Model_Mysql4_Abstract
|
17 |
{
|
app/code/community/Bassi/Imageslider/Model/Mysql4/Imageslider/Collection.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
class Bassi_Imageslider_Model_Mysql4_Imageslider_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
4 |
{
|
@@ -6,5 +19,5 @@ class Bassi_Imageslider_Model_Mysql4_Imageslider_Collection extends Mage_Core_Mo
|
|
6 |
{
|
7 |
parent::_construct();
|
8 |
$this->_init('imageslider/imageslider');
|
9 |
-
}
|
10 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
|
16 |
class Bassi_Imageslider_Model_Mysql4_Imageslider_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
17 |
{
|
19 |
{
|
20 |
parent::_construct();
|
21 |
$this->_init('imageslider/imageslider');
|
22 |
+
}
|
23 |
}
|
app/code/community/Bassi/Imageslider/Model/Status.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
class Bassi_Imageslider_Model_Status extends Varien_Object
|
4 |
{
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
|
16 |
class Bassi_Imageslider_Model_Status extends Varien_Object
|
17 |
{
|
app/code/community/Bassi/Imageslider/Model/Style.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
class Bassi_Imageslider_Model_Style{
|
3 |
protected $_options;
|
4 |
const BANNERSTYLE_RANDOM = 'random';
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
class Bassi_Imageslider_Model_Style{
|
16 |
protected $_options;
|
17 |
const BANNERSTYLE_RANDOM = 'random';
|
app/code/community/Bassi/Imageslider/controllers/Adminhtml/ImagesliderController.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
class Bassi_Imageslider_Adminhtml_ImagesliderController extends Mage_Adminhtml_Controller_Action
|
4 |
{
|
@@ -70,49 +83,47 @@ class Bassi_Imageslider_Adminhtml_ImagesliderController extends Mage_Adminhtml_C
|
|
70 |
elseif(is_array($data['filename'])){
|
71 |
$data['filename']=$data['filename']['value'];
|
72 |
}
|
73 |
-
|
74 |
-
|
75 |
$file = new Varien_Io_File();
|
76 |
-
$
|
77 |
-
$
|
78 |
-
|
79 |
-
$thumbimageyDir = $mediaDir.DS.'bsimages'.DS.'thumbs';
|
80 |
-
|
81 |
if(!is_dir($imageDir)){
|
82 |
$imageDirResult = $file->mkdir($imageDir, 0777);
|
83 |
}
|
84 |
if(!is_dir($thumbimageyDir)){
|
85 |
$thumbimageDirResult = $file->mkdir($thumbimageyDir, 0777);
|
86 |
-
}
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
try {
|
92 |
/* Starting upload */
|
93 |
$uploader = new Varien_File_Uploader('filename');
|
94 |
-
|
95 |
// Any extention would work
|
96 |
-
|
97 |
-
$uploader->setAllowRenameFiles(
|
98 |
-
|
99 |
// Set the file upload mode
|
100 |
// false -> get the file directly in the specified folder
|
101 |
// true -> get the file in the product like folders
|
102 |
// (file.jpg will go in something like /media/f/i/file.jpg)
|
103 |
-
$uploader->setFilesDispersion(
|
104 |
-
|
105 |
// We set media as the upload dir
|
106 |
//$path = Mage::getBaseDir('media') . DS ;
|
107 |
$path = $imageDir . DS ;
|
108 |
-
$result = $uploader->save($path, $_FILES['filename']['name']
|
|
|
109 |
###############################################################################
|
110 |
// actual path of image
|
111 |
-
$imageUrl = Mage::getBaseDir('media').DS."
|
112 |
|
113 |
// path of the resized image to be saved
|
114 |
// here, the resized image is saved in media/resized folder
|
115 |
-
$imageResized = Mage::getBaseDir('media').DS."
|
116 |
|
117 |
// resize image only if the image file exists and the resized image file doesn't exist
|
118 |
// the image is resized proportionally with the width/height 135px
|
@@ -124,18 +135,14 @@ class Bassi_Imageslider_Adminhtml_ImagesliderController extends Mage_Adminhtml_C
|
|
124 |
$imageObj->quality(100);
|
125 |
$imageObj->resize(80, 50);
|
126 |
$imageObj->save($imageResized);
|
127 |
-
endif;
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
$data['filename'] = $result['file'];
|
134 |
} catch (Exception $e) {
|
135 |
-
$data['filename'] =
|
136 |
-
|
137 |
-
}
|
138 |
-
|
139 |
$model = Mage::getModel('imageslider/imageslider');
|
140 |
$model->setData($data)
|
141 |
->setId($this->getRequest()->getParam('id'));
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
|
16 |
class Bassi_Imageslider_Adminhtml_ImagesliderController extends Mage_Adminhtml_Controller_Action
|
17 |
{
|
83 |
elseif(is_array($data['filename'])){
|
84 |
$data['filename']=$data['filename']['value'];
|
85 |
}
|
86 |
+
|
|
|
87 |
$file = new Varien_Io_File();
|
88 |
+
$imageDir = Mage::getBaseDir('media') . DS . 'mbimages';
|
89 |
+
$thumbimageyDir = Mage::getBaseDir('media').DS.'mbimages'.DS.'thumbs';
|
90 |
+
|
|
|
|
|
91 |
if(!is_dir($imageDir)){
|
92 |
$imageDirResult = $file->mkdir($imageDir, 0777);
|
93 |
}
|
94 |
if(!is_dir($thumbimageyDir)){
|
95 |
$thumbimageDirResult = $file->mkdir($thumbimageyDir, 0777);
|
96 |
+
}
|
97 |
+
|
98 |
+
|
99 |
+
if(isset($_FILES['filename']['name']) && $_FILES['filename']['name'] != '')
|
100 |
+
{
|
101 |
try {
|
102 |
/* Starting upload */
|
103 |
$uploader = new Varien_File_Uploader('filename');
|
104 |
+
|
105 |
// Any extention would work
|
106 |
+
$uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
|
107 |
+
$uploader->setAllowRenameFiles(true);
|
108 |
+
|
109 |
// Set the file upload mode
|
110 |
// false -> get the file directly in the specified folder
|
111 |
// true -> get the file in the product like folders
|
112 |
// (file.jpg will go in something like /media/f/i/file.jpg)
|
113 |
+
$uploader->setFilesDispersion(true);
|
114 |
+
|
115 |
// We set media as the upload dir
|
116 |
//$path = Mage::getBaseDir('media') . DS ;
|
117 |
$path = $imageDir . DS ;
|
118 |
+
$result = $uploader->save($path, $_FILES['filename']['name']);
|
119 |
+
$file = str_replace(DS, '/', $result['file']);
|
120 |
###############################################################################
|
121 |
// actual path of image
|
122 |
+
$imageUrl = Mage::getBaseDir('media').DS."mbimages".$file;
|
123 |
|
124 |
// path of the resized image to be saved
|
125 |
// here, the resized image is saved in media/resized folder
|
126 |
+
$imageResized = Mage::getBaseDir('media').DS."mbimages".DS."thumbs".DS."mbimages".$file;
|
127 |
|
128 |
// resize image only if the image file exists and the resized image file doesn't exist
|
129 |
// the image is resized proportionally with the width/height 135px
|
135 |
$imageObj->quality(100);
|
136 |
$imageObj->resize(80, 50);
|
137 |
$imageObj->save($imageResized);
|
138 |
+
endif;
|
139 |
+
|
140 |
+
$data['filename'] = 'mbimages'.$file;
|
|
|
|
|
|
|
|
|
141 |
} catch (Exception $e) {
|
142 |
+
$data['filename'] = 'mbimages'.'/'.$_FILES['filename']['name'];
|
143 |
+
}
|
144 |
+
}
|
145 |
+
|
146 |
$model = Mage::getModel('imageslider/imageslider');
|
147 |
$model->setData($data)
|
148 |
->setId($this->getRequest()->getParam('id'));
|
app/code/community/Bassi/Imageslider/controllers/IndexController.php
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
class Bassi_Imageslider_IndexController extends Mage_Core_Controller_Front_Action
|
3 |
{
|
4 |
public function indexAction()
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
class Bassi_Imageslider_IndexController extends Mage_Core_Controller_Front_Action
|
16 |
{
|
17 |
public function indexAction()
|
app/code/community/Bassi/Imageslider/etc/adminhtml.xml
CHANGED
@@ -2,14 +2,19 @@
|
|
2 |
<config>
|
3 |
<menu>
|
4 |
<imageslider module="imageslider">
|
5 |
-
<title>
|
6 |
<sort_order>50</sort_order>
|
7 |
<children>
|
8 |
<items module="imageslider">
|
9 |
<title>Banner Manager</title>
|
10 |
-
<sort_order>
|
11 |
<action>imageslider/adminhtml_imageslider</action>
|
12 |
</items>
|
|
|
|
|
|
|
|
|
|
|
13 |
</children>
|
14 |
</imageslider>
|
15 |
</menu>
|
2 |
<config>
|
3 |
<menu>
|
4 |
<imageslider module="imageslider">
|
5 |
+
<title>Magebassi Easy Banner Slider</title>
|
6 |
<sort_order>50</sort_order>
|
7 |
<children>
|
8 |
<items module="imageslider">
|
9 |
<title>Banner Manager</title>
|
10 |
+
<sort_order>1</sort_order>
|
11 |
<action>imageslider/adminhtml_imageslider</action>
|
12 |
</items>
|
13 |
+
<configitems module="imageslider">
|
14 |
+
<title>Configuration Settings</title>
|
15 |
+
<sort_order>2</sort_order>
|
16 |
+
<action>adminhtml/system_config/edit/section/imageslider</action>
|
17 |
+
</configitems>
|
18 |
</children>
|
19 |
</imageslider>
|
20 |
</menu>
|
app/code/community/Bassi/Imageslider/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Bassi_Imageslider>
|
5 |
-
<version>1.0.
|
6 |
</Bassi_Imageslider>
|
7 |
</modules>
|
8 |
<global>
|
@@ -57,15 +57,25 @@
|
|
57 |
<general>
|
58 |
<enabled>1</enabled>
|
59 |
<style>random</style>
|
60 |
-
<thumbnails>
|
61 |
-
<slidingtime>
|
62 |
-
<slidingeffecttime>
|
63 |
<loader>pie</loader>
|
64 |
<navigation>1</navigation>
|
65 |
-
<imagewidth
|
66 |
-
<imageheight
|
67 |
<description>1</description>
|
68 |
-
</general>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
</imageslider>
|
70 |
|
71 |
</default>
|
@@ -79,13 +89,6 @@
|
|
79 |
</args>
|
80 |
</imageslider>
|
81 |
</routers>
|
82 |
-
<layout>
|
83 |
-
<updates>
|
84 |
-
<imageslider>
|
85 |
-
<file>imageslider.xml</file>
|
86 |
-
</imageslider>
|
87 |
-
</updates>
|
88 |
-
</layout>
|
89 |
</frontend>
|
90 |
|
91 |
<admin>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Bassi_Imageslider>
|
5 |
+
<version>1.0.4</version>
|
6 |
</Bassi_Imageslider>
|
7 |
</modules>
|
8 |
<global>
|
57 |
<general>
|
58 |
<enabled>1</enabled>
|
59 |
<style>random</style>
|
60 |
+
<thumbnails>pagination</thumbnails>
|
61 |
+
<slidingtime>4</slidingtime>
|
62 |
+
<slidingeffecttime>2</slidingeffecttime>
|
63 |
<loader>pie</loader>
|
64 |
<navigation>1</navigation>
|
65 |
+
<imagewidth></imagewidth>
|
66 |
+
<imageheight></imageheight>
|
67 |
<description>1</description>
|
68 |
+
</general>
|
69 |
+
<style>
|
70 |
+
<navcolor>#DBD5D0</navcolor>
|
71 |
+
<paginationcolor>#999999</paginationcolor>
|
72 |
+
<paginationdotcolor>#333333</paginationdotcolor>
|
73 |
+
<captionbgcolor>#333333</captionbgcolor>
|
74 |
+
<captiontextcolor>#FFFFFF</captiontextcolor>
|
75 |
+
<loaderColor>#DBD5D0</loaderColor>
|
76 |
+
<loaderBgColor>#000000</loaderBgColor>
|
77 |
+
|
78 |
+
</style>
|
79 |
</imageslider>
|
80 |
|
81 |
</default>
|
89 |
</args>
|
90 |
</imageslider>
|
91 |
</routers>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
</frontend>
|
93 |
|
94 |
<admin>
|
app/code/community/Bassi/Imageslider/etc/system.xml
CHANGED
@@ -2,24 +2,43 @@
|
|
2 |
<config>
|
3 |
<tabs>
|
4 |
<bassi_extensions>
|
5 |
-
<label>
|
6 |
<sort_order>195</sort_order>
|
7 |
</bassi_extensions>
|
8 |
</tabs>
|
9 |
<sections>
|
10 |
<imageslider translate="label" >
|
11 |
-
<label>Banner Slider</label>
|
12 |
<tab>bassi_extensions</tab>
|
13 |
<frontend_type>text</frontend_type>
|
14 |
<sort_order>90</sort_order>
|
15 |
<show_in_default>1</show_in_default>
|
16 |
<show_in_website>1</show_in_website>
|
17 |
<show_in_store>1</show_in_store>
|
18 |
-
<groups>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
<general translate="label">
|
20 |
<label>Banner Slider Settings</label>
|
21 |
<frontend_type>text</frontend_type>
|
22 |
-
<sort_order>
|
|
|
23 |
<show_in_default>1</show_in_default>
|
24 |
<show_in_website>1</show_in_website>
|
25 |
<show_in_store>1</show_in_store>
|
@@ -34,8 +53,6 @@
|
|
34 |
<show_in_store>1</show_in_store>
|
35 |
</enabled>
|
36 |
|
37 |
-
|
38 |
-
|
39 |
<style translate="label">
|
40 |
<label>Image Style</label>
|
41 |
<frontend_type>select</frontend_type>
|
@@ -129,40 +146,88 @@
|
|
129 |
<show_in_website>1</show_in_website>
|
130 |
<show_in_store>1</show_in_store>
|
131 |
</navigation>
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
<sort_order>4</sort_order>
|
138 |
<show_in_default>1</show_in_default>
|
139 |
<show_in_website>1</show_in_website>
|
140 |
<show_in_store>1</show_in_store>
|
141 |
-
</
|
142 |
|
143 |
-
<
|
144 |
-
<label>Color
|
145 |
-
|
146 |
-
<
|
147 |
<sort_order>5</sort_order>
|
148 |
<show_in_default>1</show_in_default>
|
149 |
<show_in_website>1</show_in_website>
|
150 |
<show_in_store>1</show_in_store>
|
151 |
-
</
|
152 |
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
<frontend_type>text</frontend_type>
|
157 |
<sort_order>6</sort_order>
|
158 |
<show_in_default>1</show_in_default>
|
159 |
<show_in_website>1</show_in_website>
|
160 |
<show_in_store>1</show_in_store>
|
161 |
-
</
|
162 |
|
163 |
-
|
164 |
-
|
165 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
|
167 |
|
168 |
</groups>
|
2 |
<config>
|
3 |
<tabs>
|
4 |
<bassi_extensions>
|
5 |
+
<label>Magebassi Extensions</label>
|
6 |
<sort_order>195</sort_order>
|
7 |
</bassi_extensions>
|
8 |
</tabs>
|
9 |
<sections>
|
10 |
<imageslider translate="label" >
|
11 |
+
<label>Easy Banner Slider</label>
|
12 |
<tab>bassi_extensions</tab>
|
13 |
<frontend_type>text</frontend_type>
|
14 |
<sort_order>90</sort_order>
|
15 |
<show_in_default>1</show_in_default>
|
16 |
<show_in_website>1</show_in_website>
|
17 |
<show_in_store>1</show_in_store>
|
18 |
+
<groups>
|
19 |
+
<about translate="label">
|
20 |
+
<label>Developer</label>
|
21 |
+
<frontend_type>text</frontend_type>
|
22 |
+
<sort_order>1</sort_order>
|
23 |
+
<expanded>1</expanded>
|
24 |
+
<show_in_default>1</show_in_default>
|
25 |
+
<show_in_website>1</show_in_website>
|
26 |
+
<show_in_store>1</show_in_store>
|
27 |
+
<fields>
|
28 |
+
<info translate="label">
|
29 |
+
<frontend_model>imageslider/about</frontend_model>
|
30 |
+
<sort_order>1</sort_order>
|
31 |
+
<show_in_default>1</show_in_default>
|
32 |
+
<show_in_website>1</show_in_website>
|
33 |
+
<show_in_store>1</show_in_store>
|
34 |
+
</info>
|
35 |
+
</fields>
|
36 |
+
</about>
|
37 |
<general translate="label">
|
38 |
<label>Banner Slider Settings</label>
|
39 |
<frontend_type>text</frontend_type>
|
40 |
+
<sort_order>2</sort_order>
|
41 |
+
<expanded>1</expanded>
|
42 |
<show_in_default>1</show_in_default>
|
43 |
<show_in_website>1</show_in_website>
|
44 |
<show_in_store>1</show_in_store>
|
53 |
<show_in_store>1</show_in_store>
|
54 |
</enabled>
|
55 |
|
|
|
|
|
56 |
<style translate="label">
|
57 |
<label>Image Style</label>
|
58 |
<frontend_type>select</frontend_type>
|
146 |
<show_in_website>1</show_in_website>
|
147 |
<show_in_store>1</show_in_store>
|
148 |
</navigation>
|
149 |
+
|
150 |
+
</fields>
|
151 |
+
</general>
|
152 |
+
|
153 |
+
<style translate="label">
|
154 |
+
<label>Style</label>
|
155 |
+
<frontend_type>text</frontend_type>
|
156 |
+
<sort_order>3</sort_order>
|
157 |
+
<expanded>1</expanded>
|
158 |
+
<show_in_default>1</show_in_default>
|
159 |
+
<show_in_website>1</show_in_website>
|
160 |
+
<show_in_store>1</show_in_store>
|
161 |
+
<fields>
|
162 |
+
<navcolor translate="label">
|
163 |
+
<label>Navigation Arrow backgorund Color</label>
|
164 |
+
<comment><![CDATA[Navigation Arrow backgorund Color code with '#' for e.g. #FFFFFF]]></comment>
|
165 |
+
<frontend_type>text</frontend_type>
|
166 |
+
<sort_order>1</sort_order>
|
167 |
+
<show_in_default>1</show_in_default>
|
168 |
+
<show_in_website>1</show_in_website>
|
169 |
+
<show_in_store>1</show_in_store>
|
170 |
+
</navcolor>
|
171 |
+
<paginationcolor translate="label">
|
172 |
+
<label>Pagination/Thumbnail background Color</label>
|
173 |
+
<comment><![CDATA[Pagination/Thumbnail background color code with '#' for e.g. #333333]]></comment>
|
174 |
+
<frontend_type>text</frontend_type>
|
175 |
+
<sort_order>2</sort_order>
|
176 |
+
<show_in_default>1</show_in_default>
|
177 |
+
<show_in_website>1</show_in_website>
|
178 |
+
<show_in_store>1</show_in_store>
|
179 |
+
</paginationcolor>
|
180 |
+
<paginationdotcolor translate="label">
|
181 |
+
<label>Pagination dot Color</label>
|
182 |
+
<comment><![CDATA[Pagination dot color code with '#' for e.g. #434648]]></comment>
|
183 |
+
<frontend_type>text</frontend_type>
|
184 |
+
<sort_order>3</sort_order>
|
185 |
+
<show_in_default>1</show_in_default>
|
186 |
+
<show_in_website>1</show_in_website>
|
187 |
+
<show_in_store>1</show_in_store>
|
188 |
+
</paginationdotcolor>
|
189 |
+
<captionbgcolor translate="label">
|
190 |
+
<label>Caption background Color</label>
|
191 |
+
<comment><![CDATA[Caption background color code with '#' for e.g. #333333]]></comment>
|
192 |
+
<frontend_type>text</frontend_type>
|
193 |
<sort_order>4</sort_order>
|
194 |
<show_in_default>1</show_in_default>
|
195 |
<show_in_website>1</show_in_website>
|
196 |
<show_in_store>1</show_in_store>
|
197 |
+
</captionbgcolor>
|
198 |
|
199 |
+
<captiontextcolor translate="label">
|
200 |
+
<label>Caption Text Color</label>
|
201 |
+
<comment><![CDATA[Caption text color code with '#' for e.g. #FFFFFF]]></comment>
|
202 |
+
<frontend_type>text</frontend_type>
|
203 |
<sort_order>5</sort_order>
|
204 |
<show_in_default>1</show_in_default>
|
205 |
<show_in_website>1</show_in_website>
|
206 |
<show_in_store>1</show_in_store>
|
207 |
+
</captiontextcolor>
|
208 |
|
209 |
+
<loaderColor translate="label">
|
210 |
+
<label>Loader Bar Color</label>
|
211 |
+
<comment><![CDATA[Loader Bar Color code with '#' for e.g. #FFFFFF]]></comment>
|
212 |
+
<frontend_type>text</frontend_type>
|
213 |
<sort_order>6</sort_order>
|
214 |
<show_in_default>1</show_in_default>
|
215 |
<show_in_website>1</show_in_website>
|
216 |
<show_in_store>1</show_in_store>
|
217 |
+
</loaderColor>
|
218 |
|
219 |
+
<loaderBgColor translate="label">
|
220 |
+
<label>Loader Background Color</label>
|
221 |
+
<comment><![CDATA[Loader Background Color code with '#' for e.g. #222222]]></comment>
|
222 |
+
<frontend_type>text</frontend_type>
|
223 |
+
<sort_order>7</sort_order>
|
224 |
+
<show_in_default>1</show_in_default>
|
225 |
+
<show_in_website>1</show_in_website>
|
226 |
+
<show_in_store>1</show_in_store>
|
227 |
+
</loaderBgColor>
|
228 |
+
|
229 |
+
</fields>
|
230 |
+
</style>
|
231 |
|
232 |
|
233 |
</groups>
|
app/code/community/Bassi/Imageslider/sql/imageslider_setup/mysql4-upgrade-1.0.3-1.0.4.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$installer = $this;
|
3 |
+
$connection = $installer->getConnection();
|
4 |
+
$installer->startSetup();
|
5 |
+
|
6 |
+
$installer->getConnection()
|
7 |
+
->addColumn(
|
8 |
+
$installer->getTable('imageslider/imageslider'),
|
9 |
+
'linktarget',
|
10 |
+
array(
|
11 |
+
'type' => Varien_Db_Ddl_Table::TYPE_TEXT,
|
12 |
+
'nullable' => true,
|
13 |
+
'length' => 255,
|
14 |
+
'default'=> '_self',
|
15 |
+
'comment' => 'Link Target'
|
16 |
+
)
|
17 |
+
);
|
18 |
+
$installer->getConnection()
|
19 |
+
->addColumn(
|
20 |
+
$installer->getTable('imageslider/imageslider'),
|
21 |
+
'sort_order',
|
22 |
+
array(
|
23 |
+
'type' => Varien_Db_Ddl_Table::TYPE_SMALLINT,
|
24 |
+
'nullable' => true,
|
25 |
+
'length' => 5,
|
26 |
+
'default'=> '0',
|
27 |
+
'comment' => 'Sort Order'
|
28 |
+
)
|
29 |
+
);
|
30 |
+
$installer->endSetup();
|
app/design/frontend/base/default/template/imageslider/imageslider.phtml
ADDED
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* Version : 1.0.4
|
5 |
+
* Edition : Community
|
6 |
+
* Compatible with : Magento 1.5.x to latest
|
7 |
+
* Developed By : Magebassi
|
8 |
+
* Email : magebassi@gmail.com
|
9 |
+
* Web URL : www.magebassi.com
|
10 |
+
* Extension : Magebassi Easy Banner slider
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
?>
|
14 |
+
<?php
|
15 |
+
// Developers are invited to give a positive review.
|
16 |
+
// If you have any suggestions or find any issue than please let me know directly by email.
|
17 |
+
// thanks to all developers::happy coding
|
18 |
+
$enabled = Mage::getStoreConfig('imageslider/general/enabled');
|
19 |
+
$style = Mage::getStoreConfig('imageslider/general/style');
|
20 |
+
$imagewidth = Mage::getStoreConfig('imageslider/general/imagewidth');
|
21 |
+
$imageheight = Mage::getStoreConfig('imageslider/general/imageheight');
|
22 |
+
$description = Mage::getStoreConfig('imageslider/general/description');
|
23 |
+
$slidingtime = Mage::getStoreConfig('imageslider/general/slidingtime');
|
24 |
+
$slidingtime = ($slidingtime*1000);
|
25 |
+
$slidingeffecttime = Mage::getStoreConfig('imageslider/general/slidingeffecttime');
|
26 |
+
$slidingeffecttime = ($slidingeffecttime*1000);
|
27 |
+
$loader = Mage::getStoreConfig('imageslider/general/loader');
|
28 |
+
$navigation = Mage::getStoreConfig('imageslider/general/navigation');
|
29 |
+
$thumbnails = Mage::getStoreConfig('imageslider/general/thumbnails');
|
30 |
+
$autoAdvance = 'true';
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
//style
|
35 |
+
$navcolor = Mage::getStoreConfig('imageslider/style/navcolor');
|
36 |
+
if(!$navcolor){$navcolor = 'none';}
|
37 |
+
|
38 |
+
$paginationcolor = Mage::getStoreConfig('imageslider/style/paginationcolor');
|
39 |
+
if(!$paginationcolor){$paginationcolor = 'none';}
|
40 |
+
|
41 |
+
$paginationdotcolor = Mage::getStoreConfig('imageslider/style/paginationdotcolor');
|
42 |
+
if(!$paginationdotcolor){$paginationdotcolor = 'none';}
|
43 |
+
|
44 |
+
$captionbgcolor = Mage::getStoreConfig('imageslider/style/captionbgcolor');
|
45 |
+
if(!$captionbgcolor){$captionbgcolor = 'none';}
|
46 |
+
|
47 |
+
$captiontextcolor = Mage::getStoreConfig('imageslider/style/captiontextcolor');
|
48 |
+
if(!$captiontextcolor){$captiontextcolor = 'none';}
|
49 |
+
|
50 |
+
$loaderColor = Mage::getStoreConfig('imageslider/style/loaderColor');
|
51 |
+
if(!$loaderColor){$loaderColor = 'none';}
|
52 |
+
|
53 |
+
$loaderBgColor = Mage::getStoreConfig('imageslider/style/loaderBgColor');
|
54 |
+
$loaderOpacity = .8;
|
55 |
+
if(!$loaderBgColor){
|
56 |
+
$loaderBgColor = 'none';
|
57 |
+
$loaderOpacity = 0;
|
58 |
+
}
|
59 |
+
|
60 |
+
if($thumbnails=='thumbnail'){ $thumbsts = 'true'; $pagests = 'false'; }
|
61 |
+
elseif($thumbnails=='pagination'){ $thumbsts = 'true'; $pagests = 'true';}
|
62 |
+
else{ $thumbsts = 'false'; $pagests = 'false';}
|
63 |
+
if($imagewidth){ $width = $imagewidth."px";}else {$width = "100%";}
|
64 |
+
|
65 |
+
// Get IMAGE COLLECTION
|
66 |
+
$imageCollection = $this->getImageCollection();
|
67 |
+
?>
|
68 |
+
<?php
|
69 |
+
if(count($imageCollection)==1){
|
70 |
+
$autoAdvance = 'false';
|
71 |
+
$pagests = 'false';
|
72 |
+
$navigation = 'false';
|
73 |
+
$thumbsts = 'false';
|
74 |
+
$description = false;
|
75 |
+
}
|
76 |
+
?>
|
77 |
+
<?php if($enabled){?>
|
78 |
+
<?php if(count($imageCollection)){?>
|
79 |
+
|
80 |
+
<!-- If jquery alredy loaded/conflicts then below jQuery file not required -->
|
81 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl('bassi/imageslider/jquery.min.js'); ?>"></script>
|
82 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl('bassi/imageslider/jquery.easing.1.3.js') ?>"></script>
|
83 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl('bassi/imageslider/camera.js') ?>"></script>
|
84 |
+
<script type="text/javascript">
|
85 |
+
var $ds = jQuery.noConflict();
|
86 |
+
$ds(function(){
|
87 |
+
$ds('#camera_wrap_1').camera({
|
88 |
+
thumbnails: <?php echo $thumbsts; ?>,
|
89 |
+
fx: '<?php echo $style; ?>',
|
90 |
+
time: <?php echo $slidingtime; ?>,
|
91 |
+
transPeriod: <?php echo $slidingeffecttime; ?>,
|
92 |
+
loader: '<?php echo $loader; ?>',
|
93 |
+
navigation: <?php echo $navigation; ?>,
|
94 |
+
<?php if($imageheight){?>height: '<?php echo $imageheight; ?>px', <?php } ?>
|
95 |
+
opacityOnGrid: true,
|
96 |
+
pauseOnClick: false,
|
97 |
+
//playPause: <?php echo $navigation; ?>,
|
98 |
+
pagination: <?php echo $pagests; ?>,
|
99 |
+
autoAdvance: <?php echo $autoAdvance; ?>,
|
100 |
+
loaderColor: '<?php echo $loaderColor; ?>',
|
101 |
+
loaderBgColor: '<?php echo $loaderBgColor; ?>',
|
102 |
+
loaderOpacity: <?php echo $loaderOpacity; ?>
|
103 |
+
});
|
104 |
+
});
|
105 |
+
</script>
|
106 |
+
<link rel='stylesheet' id='camera-css' href="<?php echo $this->getSkinUrl('css/bassi/imageslider/camera.css');?>" type='text/css' media='all'>
|
107 |
+
<style>
|
108 |
+
|
109 |
+
#back_to_camera {
|
110 |
+
clear: both;
|
111 |
+
display: block;
|
112 |
+
height: 80px;
|
113 |
+
line-height: 40px;
|
114 |
+
padding: 20px;
|
115 |
+
}
|
116 |
+
.fluid_container {
|
117 |
+
margin: 0 auto;
|
118 |
+
width: <?php echo $width; ?>;
|
119 |
+
}
|
120 |
+
.camera_prev, .camera_next, .camera_commands {
|
121 |
+
background: <?php echo $navcolor; ?>;
|
122 |
+
}
|
123 |
+
.camera_thumbs_cont, .camera_wrap .camera_pag .camera_pag_ul li {
|
124 |
+
background: <?php echo $paginationcolor; ?>;
|
125 |
+
}
|
126 |
+
.camera_wrap .camera_pag .camera_pag_ul li.cameracurrent > span {
|
127 |
+
background: <?php echo $paginationdotcolor; ?>;
|
128 |
+
}
|
129 |
+
.camera_caption > div {
|
130 |
+
background: <?php echo $captionbgcolor; ?>;
|
131 |
+
opacity: 0.69;
|
132 |
+
font-size:14px;
|
133 |
+
}
|
134 |
+
.camera_caption {
|
135 |
+
color: <?php echo $captiontextcolor; ?>;
|
136 |
+
}
|
137 |
+
|
138 |
+
</style>
|
139 |
+
<div class="fluid_container">
|
140 |
+
<div class="camera_wrap camera_coffee_skin" id="camera_wrap_1">
|
141 |
+
<?php foreach ($imageCollection as $banner): ?>
|
142 |
+
<div data-thumb="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."mbimages/thumbs/".$banner['filename']?>" data-src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).$banner['filename']?>" <?php if(isset($banner['weblink'])){?>data-link="<?php echo $banner['weblink']; ?>" data-target="<?php echo $banner['linktarget']; ?>" <?php }?>>
|
143 |
+
<?php if($description && !empty($banner['content'])){?>
|
144 |
+
<div class="camera_caption fadeFromBottom">
|
145 |
+
<?php echo $banner['content']; ?>
|
146 |
+
</div>
|
147 |
+
<?php } ?>
|
148 |
+
</div>
|
149 |
+
<?php endforeach; ?>
|
150 |
+
</div>
|
151 |
+
</div>
|
152 |
+
|
153 |
+
<div style="clear:both; display:block;"></div>
|
154 |
+
<?php }else{
|
155 |
+
echo "<p><b>Magebassi Easy Banner Slider.</b></p><p>Please upload banner images.</p>";
|
156 |
+
} ?>
|
157 |
+
<?php }?>
|
app/design/frontend/default/default/layout/imageslider.xml
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
|
3 |
-
<layout version="0.1.0">
|
4 |
-
|
5 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/imageslider/imageslider.phtml
DELETED
@@ -1,126 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$locale = Mage::app()->getLocale()->getLocaleCode();
|
3 |
-
$enabled = Mage::getStoreConfig('imageslider/general/enabled');
|
4 |
-
$style = Mage::getStoreConfig('imageslider/general/style');
|
5 |
-
$imagewidth = Mage::getStoreConfig('imageslider/general/imagewidth');
|
6 |
-
$imageheight = Mage::getStoreConfig('imageslider/general/imageheight');
|
7 |
-
$description = Mage::getStoreConfig('imageslider/general/description');
|
8 |
-
|
9 |
-
$slidingtime = Mage::getStoreConfig('imageslider/general/slidingtime');
|
10 |
-
$slidingtime = ($slidingtime*1000);
|
11 |
-
$slidingeffecttime = Mage::getStoreConfig('imageslider/general/slidingeffecttime');
|
12 |
-
$slidingeffecttime = ($slidingeffecttime*1000);
|
13 |
-
|
14 |
-
$loader = Mage::getStoreConfig('imageslider/general/loader');
|
15 |
-
$navigation = Mage::getStoreConfig('imageslider/general/navigation');
|
16 |
-
|
17 |
-
$thumbnails = Mage::getStoreConfig('imageslider/general/thumbnails');
|
18 |
-
if($thumbnails=='thumbnail'){ $thumbsts = 'true'; $pagests = 'false'; }
|
19 |
-
elseif($thumbnails=='pagination'){ $thumbsts = 'true'; $pagests = 'true';}
|
20 |
-
else{ $thumbsts = 'false'; $pagests = 'false';}
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
// Get IMAGE COLLECTION
|
25 |
-
$imageCollection = $this->getImageCollection();
|
26 |
-
|
27 |
-
|
28 |
-
?>
|
29 |
-
|
30 |
-
<?php if($enabled){?>
|
31 |
-
|
32 |
-
<?php if(count($imageCollection)){?>
|
33 |
-
<script type="text/javascript">
|
34 |
-
try{
|
35 |
-
var jqueryIsLoaded=jQuery;
|
36 |
-
jQueryIsLoaded=true;
|
37 |
-
}
|
38 |
-
catch(err){
|
39 |
-
var jQueryIsLoaded=false;
|
40 |
-
}
|
41 |
-
|
42 |
-
if(jQueryIsLoaded){
|
43 |
-
//alert('jQuery is loaded');
|
44 |
-
}
|
45 |
-
else{
|
46 |
-
//alert('Not Loaded.');
|
47 |
-
}
|
48 |
-
|
49 |
-
|
50 |
-
</script>
|
51 |
-
<!-- If jquery alredy loaded then below jQuery file not required -->
|
52 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl('bassi/imageslider/jquery.min.js'); ?>"></script>
|
53 |
-
|
54 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl('bassi/imageslider/jquery.mobile.customized.min.js') ?>"></script>
|
55 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl('bassi/imageslider/jquery.easing.1.3.js') ?>"></script>
|
56 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl('bassi/imageslider/camera.min.js') ?>"></script>
|
57 |
-
<script type="text/javascript">
|
58 |
-
var $ds = jQuery.noConflict();
|
59 |
-
$ds(function(){
|
60 |
-
|
61 |
-
$ds('#camera_wrap_1').camera({
|
62 |
-
thumbnails: <?php echo $thumbsts; ?>,
|
63 |
-
fx: '<?php echo $style; ?>',
|
64 |
-
time: <?php echo $slidingtime; ?>,
|
65 |
-
transPeriod: <?php echo $slidingeffecttime; ?>,
|
66 |
-
loader: '<?php echo $loader; ?>',
|
67 |
-
navigation: <?php echo $navigation; ?>,
|
68 |
-
height: '<?php echo $imageheight; ?>px',
|
69 |
-
opacityOnGrid: true,
|
70 |
-
pauseOnClick: false,
|
71 |
-
playPause: <?php echo $navigation; ?>,
|
72 |
-
pagination: <?php echo $pagests; ?>
|
73 |
-
|
74 |
-
|
75 |
-
});
|
76 |
-
});
|
77 |
-
</script>
|
78 |
-
<link rel='stylesheet' id='camera-css' href="<?php echo $this->getSkinUrl('css/bassi/imageslider/camera.css');?>" type='text/css' media='all'>
|
79 |
-
|
80 |
-
<style>
|
81 |
-
body {
|
82 |
-
margin: 0;
|
83 |
-
padding: 0;
|
84 |
-
}
|
85 |
-
a {
|
86 |
-
color: #09f;
|
87 |
-
}
|
88 |
-
a:hover {
|
89 |
-
text-decoration: none;
|
90 |
-
}
|
91 |
-
#back_to_camera {
|
92 |
-
clear: both;
|
93 |
-
display: block;
|
94 |
-
height: 80px;
|
95 |
-
line-height: 40px;
|
96 |
-
padding: 20px;
|
97 |
-
}
|
98 |
-
.fluid_container {
|
99 |
-
margin: 0 auto;
|
100 |
-
max-width: 1000px;
|
101 |
-
width: <?php echo $imagewidth; ?>px;
|
102 |
-
}
|
103 |
-
</style>
|
104 |
-
<div class="fluid_container">
|
105 |
-
<div class="camera_wrap camera_coffee_skin" id="camera_wrap_1">
|
106 |
-
|
107 |
-
<?php foreach ($imageCollection as $banner): ?>
|
108 |
-
<div data-thumb="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."bsimages/thumbs/".$banner['filename']?>" data-src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."bsimages/".$banner['filename']?>" <?php if(isset($banner['weblink'])){?>data-link="<?php echo $banner['weblink']; ?>" data-target="_blank" <?php }?>>
|
109 |
-
|
110 |
-
<?php if($description){?>
|
111 |
-
<div class="camera_caption fadeFromBottom">
|
112 |
-
<?php echo $banner['title']; ?>
|
113 |
-
</div>
|
114 |
-
<?php } ?>
|
115 |
-
|
116 |
-
</div>
|
117 |
-
<?php endforeach; ?>
|
118 |
-
|
119 |
-
</div>
|
120 |
-
</div>
|
121 |
-
|
122 |
-
<div style="clear:both; display:block;"></div>
|
123 |
-
<?php }else{
|
124 |
-
echo "<p><b>Banner Slider.</b></p><p>Please upload banner images.</p>";
|
125 |
-
} ?>
|
126 |
-
<?php }?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/bassi/imageslider/camera.js
CHANGED
@@ -45,7 +45,7 @@
|
|
45 |
|
46 |
loaderStroke : 7, //the thickness both of the pie loader and of the bar loader. Remember: for the pie, the loader thickness must be less than a half of the pie diameter
|
47 |
|
48 |
-
minHeight : '
|
49 |
|
50 |
navigation : true, //true or false, to display or not the navigation buttons
|
51 |
|
@@ -59,7 +59,7 @@
|
|
59 |
|
60 |
pagination : true,
|
61 |
|
62 |
-
playPause :
|
63 |
|
64 |
pauseOnClick : true, //true, false. It stops the slideshow when you click the sliders.
|
65 |
|
@@ -392,20 +392,39 @@
|
|
392 |
var res;
|
393 |
function resizeImageWork(){
|
394 |
w = wrap.width();
|
395 |
-
|
396 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
397 |
if(opts.minHeight != '' && startH < parseFloat(opts.minHeight)){
|
398 |
h = parseFloat(opts.minHeight);
|
399 |
} else {
|
400 |
h = startH;
|
401 |
}
|
402 |
wrap.css({height:h});
|
403 |
-
} else if (
|
404 |
h = wrap.height();
|
405 |
} else {
|
406 |
-
h = parseFloat(
|
407 |
wrap.css({height:h});
|
408 |
}
|
|
|
|
|
|
|
409 |
$('.camerarelative',target).css({'width':w,'height':h});
|
410 |
$('.imgLoaded',target).each(function(){
|
411 |
var t = $(this),
|
@@ -458,13 +477,10 @@
|
|
458 |
mTop = '-'+d*2+'px';
|
459 |
break;
|
460 |
}
|
461 |
-
t.css({
|
462 |
-
'height' : hT*r,
|
463 |
-
'margin-left' : 0,
|
464 |
-
'margin-top' : mTop,
|
465 |
'position' : 'absolute',
|
466 |
'visibility' : 'visible',
|
467 |
-
'width' :
|
468 |
});
|
469 |
}
|
470 |
else {
|
@@ -499,13 +515,10 @@
|
|
499 |
mLeft = '-'+d*2+'px';
|
500 |
break;
|
501 |
}
|
502 |
-
t.css({
|
503 |
-
'height' : h,
|
504 |
-
'margin-left' : mLeft,
|
505 |
-
'margin-top' : 0,
|
506 |
'position' : 'absolute',
|
507 |
'visibility' : 'visible',
|
508 |
-
'width' :
|
509 |
});
|
510 |
}
|
511 |
} else {
|
@@ -541,13 +554,10 @@
|
|
541 |
mLeft = d*2+'px';
|
542 |
break;
|
543 |
}
|
544 |
-
t.css({
|
545 |
-
'height' : h,
|
546 |
-
'margin-left' : mLeft,
|
547 |
-
'margin-top' : 0,
|
548 |
'position' : 'absolute',
|
549 |
'visibility' : 'visible',
|
550 |
-
'width' :
|
551 |
});
|
552 |
}
|
553 |
else {
|
@@ -582,13 +592,10 @@
|
|
582 |
mTop = d*2+'px';
|
583 |
break;
|
584 |
}
|
585 |
-
t.css({
|
586 |
-
'height' : hT*r,
|
587 |
-
'margin-left' : 0,
|
588 |
-
'margin-top' : mTop,
|
589 |
'position' : 'absolute',
|
590 |
'visibility' : 'visible',
|
591 |
-
'width' :
|
592 |
});
|
593 |
}
|
594 |
}
|
@@ -720,12 +727,12 @@
|
|
720 |
$(nextNav,wrap).animate({opacity:0},0);
|
721 |
$(commands,wrap).animate({opacity:0},0);
|
722 |
if(isMobile()){
|
723 |
-
fakeHover.
|
724 |
$(prevNav,wrap).animate({opacity:1},200);
|
725 |
$(nextNav,wrap).animate({opacity:1},200);
|
726 |
$(commands,wrap).animate({opacity:1},200);
|
727 |
});
|
728 |
-
fakeHover.
|
729 |
$(prevNav,wrap).delay(500).animate({opacity:0},200);
|
730 |
$(nextNav,wrap).delay(500).animate({opacity:0},200);
|
731 |
$(commands,wrap).delay(500).animate({opacity:0},200);
|
@@ -744,7 +751,7 @@
|
|
744 |
}
|
745 |
|
746 |
|
747 |
-
$(
|
748 |
autoAdv = false;
|
749 |
elem.addClass('paused');
|
750 |
if($('.camera_stop',camera_thumbs_wrap).length){
|
@@ -760,7 +767,7 @@
|
|
760 |
}
|
761 |
});
|
762 |
|
763 |
-
$(
|
764 |
autoAdv = true;
|
765 |
elem.removeClass('paused');
|
766 |
if($('.camera_play',camera_thumbs_wrap).length){
|
@@ -1052,7 +1059,7 @@
|
|
1052 |
canvasLoader();
|
1053 |
|
1054 |
|
1055 |
-
$('.moveFromLeft, .moveFromRight, .moveFromTop, .moveFromBottom, .fadeIn, .fadeFromLeft, .fadeFromRight, .fadeFromTop, .fadeFromBottom',fakeHover).each(function(){
|
1056 |
$(this).css('visibility','hidden');
|
1057 |
});
|
1058 |
|
@@ -1105,8 +1112,12 @@
|
|
1105 |
$(imgLoaded).attr('data-alignment',allAlign[slideI]).attr('data-portrait',allPor[slideI]);
|
1106 |
$(imgLoaded).attr('width',wT);
|
1107 |
$(imgLoaded).attr('height',hT);
|
1108 |
-
target.find('.cameraSlide_'+slideI).
|
1109 |
resizeImage();
|
|
|
|
|
|
|
|
|
1110 |
nextSlide(slideI+1);
|
1111 |
};
|
1112 |
}
|
@@ -1123,6 +1134,8 @@
|
|
1123 |
$(imgLoaded2).attr('width',wT);
|
1124 |
$(imgLoaded2).attr('height',hT);
|
1125 |
resizeImage();
|
|
|
|
|
1126 |
};
|
1127 |
}
|
1128 |
opts.onLoaded.call(this);
|
@@ -1802,7 +1815,7 @@
|
|
1802 |
|
1803 |
thumbnailPos();
|
1804 |
|
1805 |
-
$('.moveFromLeft, .moveFromRight, .moveFromTop, .moveFromBottom, .fadeIn, .fadeFromLeft, .fadeFromRight, .fadeFromTop, .fadeFromBottom',fakeHover).each(function(){
|
1806 |
$(this).css('visibility','hidden');
|
1807 |
});
|
1808 |
|
@@ -1821,7 +1834,7 @@
|
|
1821 |
|
1822 |
|
1823 |
var lMoveIn = selector.eq(slideI).find('.fadeIn').length;
|
1824 |
-
var lMoveInContent = $('.cameraContent',fakeHover).eq(slideI).find('.moveFromLeft, .moveFromRight, .moveFromTop, .moveFromBottom, .fadeIn, .fadeFromLeft, .fadeFromRight, .fadeFromTop, .fadeFromBottom').length;
|
1825 |
|
1826 |
if (lMoveIn!=0){
|
1827 |
$('.cameraSlide.cameracurrent .fadeIn',fakeHover).each(function(){
|
@@ -1862,16 +1875,21 @@
|
|
1862 |
$('.cameraContent.cameracurrent',fakeHover).show();
|
1863 |
if (lMoveInContent!=0){
|
1864 |
|
1865 |
-
$('.cameraContent.cameracurrent .moveFromLeft, .cameraContent.cameracurrent .moveFromRight, .cameraContent.cameracurrent .moveFromTop, .cameraContent.cameracurrent .moveFromBottom, .cameraContent.cameracurrent .fadeIn, .cameraContent.cameracurrent .fadeFromLeft, .cameraContent.cameracurrent .fadeFromRight, .cameraContent.cameracurrent .fadeFromTop, .cameraContent.cameracurrent .fadeFromBottom',fakeHover).each(function(){
|
1866 |
if($(this).attr('data-easing')!=''){
|
1867 |
var easeMove = $(this).attr('data-easing');
|
1868 |
} else {
|
1869 |
var easeMove = easing;
|
1870 |
}
|
|
|
|
|
|
|
|
|
|
|
1871 |
var t = $(this);
|
1872 |
var pos = t.position();
|
1873 |
var left = pos.left;
|
1874 |
-
var top = pos.top;
|
1875 |
var tClass = t.attr('class');
|
1876 |
var ind = t.index();
|
1877 |
var thisH = t.outerHeight();
|
@@ -1900,12 +1918,42 @@
|
|
1900 |
t.css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({'top':pos.top,opacity:1},(time/lMoveInContent)*0.15,easeMove,function(){
|
1901 |
t.css({top:'auto',bottom:0});
|
1902 |
});
|
1903 |
-
} else if(tClass.indexOf("fadeFromBottom") != -1) {
|
1904 |
t.animate({opacity:0},0).css({'bottom':'-'+thisH+'px'});
|
1905 |
t.css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({'bottom':'0',opacity:1},(time/lMoveInContent)*0.15,easeMove);
|
1906 |
} else if(tClass.indexOf("fadeIn") != -1) {
|
1907 |
t.animate({opacity:0},0).css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({opacity:1},(time/lMoveInContent)*0.15,easeMove);
|
1908 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1909 |
t.css('visibility','visible');
|
1910 |
}
|
1911 |
});
|
45 |
|
46 |
loaderStroke : 7, //the thickness both of the pie loader and of the bar loader. Remember: for the pie, the loader thickness must be less than a half of the pie diameter
|
47 |
|
48 |
+
minHeight : '', //you can also leave it blank
|
49 |
|
50 |
navigation : true, //true or false, to display or not the navigation buttons
|
51 |
|
59 |
|
60 |
pagination : true,
|
61 |
|
62 |
+
playPause : false, //true or false, to display or not the play/pause buttons
|
63 |
|
64 |
pauseOnClick : true, //true, false. It stops the slideshow when you click the sliders.
|
65 |
|
392 |
var res;
|
393 |
function resizeImageWork(){
|
394 |
w = wrap.width();
|
395 |
+
|
396 |
+
// Custom by Magebassi
|
397 |
+
var newheight;
|
398 |
+
var maxHeight = 50;
|
399 |
+
var imgLoaded = $('.imgLoaded',target);
|
400 |
+
var wT = imgLoaded.attr('width');
|
401 |
+
var hT = imgLoaded.attr('height');
|
402 |
+
|
403 |
+
var calHeight = Math.round((w*hT)/wT);
|
404 |
+
var hh = Math.round((calHeight*100)/w);
|
405 |
+
if(hh>maxHeight) {
|
406 |
+
newheight = maxHeight+'%';
|
407 |
+
}else{
|
408 |
+
newheight = hh+'%';
|
409 |
+
}
|
410 |
+
|
411 |
+
if(newheight.indexOf('%')!=-1) {
|
412 |
+
var startH = Math.round(w / (100/parseFloat(newheight)));
|
413 |
if(opts.minHeight != '' && startH < parseFloat(opts.minHeight)){
|
414 |
h = parseFloat(opts.minHeight);
|
415 |
} else {
|
416 |
h = startH;
|
417 |
}
|
418 |
wrap.css({height:h});
|
419 |
+
} else if (newheight=='auto') {
|
420 |
h = wrap.height();
|
421 |
} else {
|
422 |
+
h = parseFloat(newheight);
|
423 |
wrap.css({height:h});
|
424 |
}
|
425 |
+
|
426 |
+
// END
|
427 |
+
|
428 |
$('.camerarelative',target).css({'width':w,'height':h});
|
429 |
$('.imgLoaded',target).each(function(){
|
430 |
var t = $(this),
|
477 |
mTop = '-'+d*2+'px';
|
478 |
break;
|
479 |
}
|
480 |
+
t.css({
|
|
|
|
|
|
|
481 |
'position' : 'absolute',
|
482 |
'visibility' : 'visible',
|
483 |
+
'width' : '100%'
|
484 |
});
|
485 |
}
|
486 |
else {
|
515 |
mLeft = '-'+d*2+'px';
|
516 |
break;
|
517 |
}
|
518 |
+
t.css({
|
|
|
|
|
|
|
519 |
'position' : 'absolute',
|
520 |
'visibility' : 'visible',
|
521 |
+
'width' : '100%'
|
522 |
});
|
523 |
}
|
524 |
} else {
|
554 |
mLeft = d*2+'px';
|
555 |
break;
|
556 |
}
|
557 |
+
t.css({
|
|
|
|
|
|
|
558 |
'position' : 'absolute',
|
559 |
'visibility' : 'visible',
|
560 |
+
'width' : '100%'
|
561 |
});
|
562 |
}
|
563 |
else {
|
592 |
mTop = d*2+'px';
|
593 |
break;
|
594 |
}
|
595 |
+
t.css({
|
|
|
|
|
|
|
596 |
'position' : 'absolute',
|
597 |
'visibility' : 'visible',
|
598 |
+
'width' : '100%'
|
599 |
});
|
600 |
}
|
601 |
}
|
727 |
$(nextNav,wrap).animate({opacity:0},0);
|
728 |
$(commands,wrap).animate({opacity:0},0);
|
729 |
if(isMobile()){
|
730 |
+
fakeHover.on('vmouseover',function(){
|
731 |
$(prevNav,wrap).animate({opacity:1},200);
|
732 |
$(nextNav,wrap).animate({opacity:1},200);
|
733 |
$(commands,wrap).animate({opacity:1},200);
|
734 |
});
|
735 |
+
fakeHover.on('vmouseout',function(){
|
736 |
$(prevNav,wrap).delay(500).animate({opacity:0},200);
|
737 |
$(nextNav,wrap).delay(500).animate({opacity:0},200);
|
738 |
$(commands,wrap).delay(500).animate({opacity:0},200);
|
751 |
}
|
752 |
|
753 |
|
754 |
+
$(document).on('click','.camera_stop',function(){
|
755 |
autoAdv = false;
|
756 |
elem.addClass('paused');
|
757 |
if($('.camera_stop',camera_thumbs_wrap).length){
|
767 |
}
|
768 |
});
|
769 |
|
770 |
+
$(document).on('click','.camera_play',function(){
|
771 |
autoAdv = true;
|
772 |
elem.removeClass('paused');
|
773 |
if($('.camera_play',camera_thumbs_wrap).length){
|
1059 |
canvasLoader();
|
1060 |
|
1061 |
|
1062 |
+
$('.moveFromLeft, .productTitle, .productDescription, .productPrice, .productViewMore, .productImage, .moveFromRight, .moveFromTop, .moveFromBottom, .fadeIn, .fadeFromLeft, .fadeFromRight, .fadeFromTop, .fadeFromBottom',fakeHover).each(function(){
|
1063 |
$(this).css('visibility','hidden');
|
1064 |
});
|
1065 |
|
1112 |
$(imgLoaded).attr('data-alignment',allAlign[slideI]).attr('data-portrait',allPor[slideI]);
|
1113 |
$(imgLoaded).attr('width',wT);
|
1114 |
$(imgLoaded).attr('height',hT);
|
1115 |
+
target.find('.cameraSlide_'+slideI).css('visibility','visible');
|
1116 |
resizeImage();
|
1117 |
+
|
1118 |
+
//var imgheight = $('.imgLoaded',slide);
|
1119 |
+
//wrap.css({height:imgheight.height()});
|
1120 |
+
|
1121 |
nextSlide(slideI+1);
|
1122 |
};
|
1123 |
}
|
1134 |
$(imgLoaded2).attr('width',wT);
|
1135 |
$(imgLoaded2).attr('height',hT);
|
1136 |
resizeImage();
|
1137 |
+
//var imgheight = $('.imgLoaded',slide);
|
1138 |
+
//wrap.css({height:imgheight.height()});
|
1139 |
};
|
1140 |
}
|
1141 |
opts.onLoaded.call(this);
|
1815 |
|
1816 |
thumbnailPos();
|
1817 |
|
1818 |
+
$('.moveFromLeft, .moveFromRight, .productTitle, .productDescription, .productPrice,.productViewMore, .productImage, .moveFromTop, .moveFromBottom, .fadeIn, .fadeFromLeft, .fadeFromRight, .fadeFromTop, .fadeFromBottom',fakeHover).each(function(){
|
1819 |
$(this).css('visibility','hidden');
|
1820 |
});
|
1821 |
|
1834 |
|
1835 |
|
1836 |
var lMoveIn = selector.eq(slideI).find('.fadeIn').length;
|
1837 |
+
var lMoveInContent = $('.cameraContent',fakeHover).eq(slideI).find('.moveFromLeft, .moveFromRight, .productTitle, .productDescription, .productPrice, .productViewMore, .productImage, .moveFromTop, .moveFromBottom, .fadeIn, .fadeFromLeft, .fadeFromRight, .fadeFromTop, .fadeFromBottom').length;
|
1838 |
|
1839 |
if (lMoveIn!=0){
|
1840 |
$('.cameraSlide.cameracurrent .fadeIn',fakeHover).each(function(){
|
1875 |
$('.cameraContent.cameracurrent',fakeHover).show();
|
1876 |
if (lMoveInContent!=0){
|
1877 |
|
1878 |
+
$('.cameraContent.cameracurrent .moveFromLeft, .cameraContent.cameracurrent .moveFromRight, .cameraContent.cameracurrent .productTitle, .cameraContent.cameracurrent .productDescription, .cameraContent.cameracurrent .productPrice, .cameraContent.cameracurrent .productViewMore,.cameraContent.cameracurrent .productImage, .cameraContent.cameracurrent .moveFromTop, .cameraContent.cameracurrent .moveFromBottom, .cameraContent.cameracurrent .fadeIn, .cameraContent.cameracurrent .fadeFromLeft, .cameraContent.cameracurrent .fadeFromRight, .cameraContent.cameracurrent .fadeFromTop, .cameraContent.cameracurrent .fadeFromBottom',fakeHover).each(function(){
|
1879 |
if($(this).attr('data-easing')!=''){
|
1880 |
var easeMove = $(this).attr('data-easing');
|
1881 |
} else {
|
1882 |
var easeMove = easing;
|
1883 |
}
|
1884 |
+
|
1885 |
+
var datax = $(this).attr('data-x');
|
1886 |
+
var datay = $(this).attr('data-y');
|
1887 |
+
var dataspeed = parseInt($(this).attr('data-speed'));
|
1888 |
+
var datafontsize = $(this).attr('data-font-size');
|
1889 |
var t = $(this);
|
1890 |
var pos = t.position();
|
1891 |
var left = pos.left;
|
1892 |
+
var top = pos.top;// alert(pos.left); alert(pos.top); alert(w);
|
1893 |
var tClass = t.attr('class');
|
1894 |
var ind = t.index();
|
1895 |
var thisH = t.outerHeight();
|
1918 |
t.css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({'top':pos.top,opacity:1},(time/lMoveInContent)*0.15,easeMove,function(){
|
1919 |
t.css({top:'auto',bottom:0});
|
1920 |
});
|
1921 |
+
} else if(tClass.indexOf("fadeFromBottom") != -1) {
|
1922 |
t.animate({opacity:0},0).css({'bottom':'-'+thisH+'px'});
|
1923 |
t.css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({'bottom':'0',opacity:1},(time/lMoveInContent)*0.15,easeMove);
|
1924 |
} else if(tClass.indexOf("fadeIn") != -1) {
|
1925 |
t.animate({opacity:0},0).css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({opacity:1},(time/lMoveInContent)*0.15,easeMove);
|
1926 |
+
}
|
1927 |
+
|
1928 |
+
// Customized by magebassi
|
1929 |
+
else if(tClass.indexOf("productTitle") != -1) {
|
1930 |
+
|
1931 |
+
t.css({'left':(datax-20)+'px','top':'+'+datay+'px','right':'auto','font-size':datafontsize});
|
1932 |
+
t.css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({'left':datax,'right':'auto'},dataspeed,easeMove);
|
1933 |
+
|
1934 |
+
}else if(tClass.indexOf("productDescription") != -1) {
|
1935 |
+
|
1936 |
+
t.css({'left':datax+'px','top':'+'+datay+'px','right':'auto','font-size':datafontsize});
|
1937 |
+
t.animate({opacity:0},0).css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({'left':datax,'right':'auto',opacity:1},dataspeed,easeMove);
|
1938 |
+
|
1939 |
+
}else if(tClass.indexOf("productPrice") != -1) {
|
1940 |
+
|
1941 |
+
t.css({'left':datax+'px','top':'+'+datay+'px','right':'auto','font-size':datafontsize});
|
1942 |
+
t.animate({opacity:0},0).css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({'left':datax,'right':'auto',opacity:1},dataspeed,easeMove);
|
1943 |
+
|
1944 |
+
} else if(tClass.indexOf("productViewMore") != -1) {
|
1945 |
+
|
1946 |
+
t.css({'left':datax+'px','bottom':'-'+thisH+'px','top':'auto','font-size':datafontsize});
|
1947 |
+
t.css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({'left':datax,'top':'auto','bottom':100},dataspeed,easeMove);
|
1948 |
+
|
1949 |
+
} else if(tClass.indexOf("productImage") != -1) {
|
1950 |
+
|
1951 |
+
t.css({'right':'-'+(w)+'px','top':'+'+datay+'px','font-size':datafontsize});
|
1952 |
+
t.css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({'right':datax,'top':datay},dataspeed,easeMove);
|
1953 |
+
|
1954 |
+
}
|
1955 |
+
// End customization by magebassi
|
1956 |
+
else {
|
1957 |
t.css('visibility','visible');
|
1958 |
}
|
1959 |
});
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Bassi_Imageslider</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
<notes>
|
12 |
-
<authors><author><name>Umesh
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Bassi_Imageslider.xml" hash="a8c36ce206a7a9d8d2d8339b3f405b24"/></dir></target><target name="magecommunity"><dir name="Bassi"><dir name="Imageslider"><dir name="Block"><dir name="Adminhtml"><dir name="Imageslider"><dir name="Edit"><file name="Form.php" hash="
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>5.
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Bassi_Imageslider</name>
|
4 |
+
<version>1.0.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Magebassi Responsive Easy Banner Slider runs images as slider on CMS, Static and other custom locations</summary>
|
10 |
+
<description>Magebassi Responsive Easy Banner Slider runs images as slider on CMS, Static and other custom locations</description>
|
11 |
+
<notes>Latest version with great features.</notes>
|
12 |
+
<authors><author><name>Umesh</name><user>magebassi</user><email>magebassi@gmail.com</email></author></authors>
|
13 |
+
<date>2015-07-15</date>
|
14 |
+
<time>13:23:12</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Bassi_Imageslider.xml" hash="a8c36ce206a7a9d8d2d8339b3f405b24"/></dir></target><target name="magecommunity"><dir name="Bassi"><dir name="Imageslider"><dir name="Block"><file name="About.php" hash="4ba4ebc848a9c331252a0db03f18cd5b"/><dir name="Adminhtml"><dir name="Imageslider"><dir name="Edit"><file name="Form.php" hash="73754017c779889059e08847857cfcb2"/><dir name="Tab"><file name="Form.php" hash="6fd6cfc9a3ce0c11ae3a9a85320a9a8f"/></dir><file name="Tabs.php" hash="0027ca6619a101a1e3f74e1fdeda37c2"/></dir><file name="Edit.php" hash="5923f78330aba1235edc4df4c5a15944"/><file name="Grid.php" hash="7376b62a805d56d865067c4d2dde324e"/></dir><file name="Imageslider.php" hash="d867d9b9276617da08a3d196122f0918"/><dir name="Renderer"><file name="Image.php" hash="af8ff4d792b6aaf75fc7601eec2c4cc6"/></dir></dir><file name="Imageslider.php" hash="d40645c299f1c9873f363931a2c690fb"/></dir><dir name="Helper"><file name="Data.php" hash="35f56e21ffd3077c828660ccdf82c477"/></dir><dir name="Model"><file name="Imageslider.php" hash="e671f2eeda1cc42b4a40eda40976e7b6"/><file name="Imagethumbnails.php" hash="ecfd6af41125304096b2f456d32a9e1d"/><file name="Loader.php" hash="f3aba90f71a734baa4f85c6855c620f2"/><dir name="Mysql4"><dir name="Imageslider"><file name="Collection.php" hash="b0a9d2cb3a7f3ba14b4313f63f6fc803"/></dir><file name="Imageslider.php" hash="80ccef34bffd3d4f0b3e2456e85743d0"/></dir><file name="Status.php" hash="89601711d66ec1197a2a56bad82b8e71"/><file name="Style.php" hash="d3fc0185b402fa50b2fa4ee28f8e7ac8"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ImagesliderController.php" hash="4af9c80fb587f6dec195354a6b724872"/></dir><file name="IndexController.php" hash="024e2e9b3930d9a1599181d9d87c9b3a"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0be6f70945f6194997022598d1ac0b01"/><file name="config.xml" hash="86449d5934835cf02301be5be6e7d8d2"/><file name="system.xml" hash="5674b20fab176fc83204cf29ad55afd8"/></dir><dir name="sql"><dir name="imageslider_setup"><file name="mysql4-install-1.0.3.php" hash="0bfba0ac0e08cdca583e17a96bed496d"/><file name="mysql4-upgrade-1.0.3-1.0.4.php" hash="6f728ff7c001ed89c1ee66865b098853"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="imageslider.xml" hash="010a7877be47ff3dd60cc3956a541e79"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="imageslider"><file name="imageslider.phtml" hash="90c02c1107dc19d44c14c3d7c3da2746"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="bassi"><dir name="imageslider"><file name="blank.gif" hash="85fc87e214b7f9af23becb1f023a68ad"/><file name="camera-loader.gif" hash="cd2e13291ecdcac7f575beea6d84b099"/><file name="camera.css" hash="046a944f5490f8b893784a5387653723"/><file name="camera_skins.png" hash="44234b21bebe6b318aab47d9e9bbbee9"/><dir name="patterns"><file name="Thumbs.db" hash="b19b2fec4927988b4d12b6fd39902a0d"/><dir name="_notes"><file name="dwsync.xml" hash="bc529eeef5b0ff8170fe7b2cb9a95012"/></dir><file name="overlay1.png" hash="1f146c3ca45b7de58990fe35674f3c12"/><file name="overlay10.png" hash="e1eb49ee07e74a2c4fee9dad5f17a513"/><file name="overlay2.png" hash="ddcf42fed3bf5234b7846a74bf17fc6d"/><file name="overlay3.png" hash="d3deed31d1eed4f17432ff93aefd9daf"/><file name="overlay4.png" hash="8df992721519d21ba39626a8615393c4"/><file name="overlay5.png" hash="a839858206fe25a686265e5868a00fbf"/><file name="overlay6.png" hash="de8c31ab33ca41114addad876a7d057b"/><file name="overlay7.png" hash="8475f8c4b675c531f5fca9d0f8266889"/><file name="overlay8.png" hash="a13c787a719e0619ce82ba73bacd9498"/><file name="overlay9.png" hash="06b734ded54bbe1761e3b67acd2575e5"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="bassi"><dir name="imageslider"><file name="camera.js" hash="f0170141ae2b520c1665c3771073f665"/><file name="camera.min.js" hash="fb5074c5cf40020f7d0ab68a6d96db97"/><file name="jquery.easing.1.3.js" hash="6516449ed5089677ed3d7e2f11fc8942"/><file name="jquery.min.js" hash="00263d420f53a6db101ebdd11acef2f8"/><file name="jquery.mobile.customized.min.js" hash="ea59fe8222cc61ffdbd41119ce23fd25"/></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
skin/frontend/{default → base}/default/css/bassi/imageslider/blank.gif
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/camera-loader.gif
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/camera.css
RENAMED
@@ -25,7 +25,8 @@
|
|
25 |
z-index: 0;
|
26 |
}
|
27 |
.camera_wrap img {
|
28 |
-
max-width: none!important;
|
|
|
29 |
}
|
30 |
.camera_fakehover {
|
31 |
height: 100%;
|
@@ -213,6 +214,12 @@
|
|
213 |
margin: 0;
|
214 |
padding: 0;
|
215 |
text-align: right;
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
}
|
217 |
.camera_wrap .camera_pag .camera_pag_ul li {
|
218 |
-webkit-border-radius: 8px;
|
@@ -366,6 +373,7 @@
|
|
366 |
.camera_thumbs_cont ul li {
|
367 |
display: inline;
|
368 |
padding: 0 4px;
|
|
|
369 |
}
|
370 |
.camera_thumbs_cont ul li > img {
|
371 |
border: 1px solid;
|
25 |
z-index: 0;
|
26 |
}
|
27 |
.camera_wrap img {
|
28 |
+
/* max-width: none!important; */
|
29 |
+
height: 100%;
|
30 |
}
|
31 |
.camera_fakehover {
|
32 |
height: 100%;
|
214 |
margin: 0;
|
215 |
padding: 0;
|
216 |
text-align: right;
|
217 |
+
bottom: 27px;
|
218 |
+
position: absolute;
|
219 |
+
right: 37px;
|
220 |
+
z-index: 10;
|
221 |
+
height:20px;
|
222 |
+
|
223 |
}
|
224 |
.camera_wrap .camera_pag .camera_pag_ul li {
|
225 |
-webkit-border-radius: 8px;
|
373 |
.camera_thumbs_cont ul li {
|
374 |
display: inline;
|
375 |
padding: 0 4px;
|
376 |
+
float:left;
|
377 |
}
|
378 |
.camera_thumbs_cont ul li > img {
|
379 |
border: 1px solid;
|
skin/frontend/{default → base}/default/css/bassi/imageslider/camera_skins.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/Thumbs.db
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/_notes/dwsync.xml
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay1.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay10.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay2.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay3.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay4.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay5.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay6.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay7.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay8.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/css/bassi/imageslider/patterns/overlay9.png
RENAMED
File without changes
|
skin/frontend/default/default/css/bassi/imageslider/Thumbs.db
DELETED
Binary file
|