Skip to content

Commit

Permalink
Merge pull request #1 from svenvarkel/master
Browse files Browse the repository at this point in the history
Added Widget block
  • Loading branch information
buric committed Jun 16, 2013
2 parents a504c5a + 91c47e9 commit 0afca86
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/nbproject
44 changes: 44 additions & 0 deletions app/code/community/Inchoo/FeaturedProducts/Block/Widget.php
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();
}

}
3 changes: 3 additions & 0 deletions app/code/community/Inchoo/FeaturedProducts/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
***********************************************
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Inchoo/FeaturedProducts/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
-->
<modules>
<Inchoo_FeaturedProducts>
<version>2.0.0</version>
<version>2.0.1</version>
</Inchoo_FeaturedProducts>
</modules>

Expand Down
13 changes: 13 additions & 0 deletions app/code/community/Inchoo/FeaturedProducts/etc/widget.xml
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>

0 comments on commit 0afca86

Please sign in to comment.