-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from svenvarkel/master
Added Widget block
- Loading branch information
Showing
5 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/nbproject |
44 changes: 44 additions & 0 deletions
44
app/code/community/Inchoo/FeaturedProducts/Block/Widget.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
/** | ||
* Widget | ||
* | ||
* PHP version 5 | ||
* | ||
* @category Deployment | ||
* @package Application | ||
* @author Sven Varkel <[email protected]> | ||
* @license http://eepohs.com/ Eepohs Special License | ||
* @link http://esc.eepohs.com/ Eepohs Software Channel | ||
*/ | ||
//namespace Application; | ||
|
||
/** | ||
* Widget | ||
* | ||
* @category Deployment | ||
* @package Application | ||
* @author Sven Varkel <[email protected]> | ||
* @license http://eepohs.com/ Eepohs Special License | ||
* @link http://esc.eepohs.com/ Eepohs Software Channel | ||
*/ | ||
class Inchoo_FeaturedProducts_Block_Widget extends Inchoo_FeaturedProducts_Block_Listing | ||
implements Mage_Widget_Block_Interface | ||
{ | ||
|
||
public function addData(array $arr) | ||
{ | ||
$this->_data = array_merge($this->_data, $arr); | ||
} | ||
|
||
public function setData($key, $value = null) | ||
{ | ||
$this->_data[$key] = $value; | ||
} | ||
|
||
protected function _toHtml() | ||
{ | ||
return parent::_toHtml(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,9 @@ Featured Products by Inchoo | |
* @authors Mladen Lotar <[email protected]>, Vedran Subotic <[email protected]> | ||
*********************************************** | ||
|
||
RELEASE NOTES (2.0.1) | ||
*********************************************** | ||
1. Added real CMS widget that can be inserted to CMS blocks and pages (contribution by Sven Varkel <[email protected]>) | ||
|
||
RELEASE NOTES (1.2.3) | ||
*********************************************** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
To change this template, choose Tools | Templates | ||
and open the template in the editor. | ||
--> | ||
|
||
|
||
<widgets> | ||
<featuredproduts type="featuredproducts/widget"> | ||
<name>Featured Products widget</name> | ||
<description type="desc">Adds featured products listing to CMS page or static block</description> | ||
</featuredproduts> | ||
</widgets> |