-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the styling of all app/code files to be follow CSR-0 like Magen…
…to core and fixed modman file to support other 'TBT' (Sweet Tooth) modules as well.
- Loading branch information
1 parent
43d3f47
commit 7f0dc84
Showing
25 changed files
with
2,380 additions
and
2,319 deletions.
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
/var | ||
.idea | ||
/var |
128 changes: 63 additions & 65 deletions
128
app/code/community/TBT/Enhancedgrid/Block/Catalog/Product.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 |
---|---|---|
@@ -1,65 +1,63 @@ | ||
<?php | ||
/** | ||
* Magento | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to license@magentocommerce.com so we can send you a copy immediately. | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade Magento to newer | ||
* versions in the future. If you wish to customize Magento for your | ||
* needs please refer to http://www.magentocommerce.com for more information. | ||
* | ||
* @category Mage | ||
* @package Mage_Adminhtml | ||
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
|
||
/** | ||
* Catalog manage products block | ||
* | ||
* @category Mage | ||
* @package Mage_Adminhtml | ||
* @author Magento Core Team <core@magentocommerce.com> | ||
*/ | ||
class TBT_Enhancedgrid_Block_Catalog_Product extends Mage_Adminhtml_Block_Catalog_Product | ||
{ | ||
|
||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
$this->_headerText = Mage::helper('enhancedgrid')->__('Manage Products (Enhanced)'); | ||
|
||
} | ||
|
||
protected function _prepareLayout() | ||
{ | ||
parent::_prepareLayout(); | ||
$this->setTemplate('tbt'.DS.'enhancedgrid'.DS.'catalog'.DS.'product.phtml'); | ||
$this->setChild('grid', $this->getLayout()->createBlock('enhancedgrid/catalog_product_grid', 'product.enhancedgrid')); | ||
|
||
//@nelkaake -a 16/11/10: | ||
$store_switcher = $this->getLayout()->createBlock('adminhtml/store_switcher', 'store_switcher'); | ||
$store_switcher->setUseConfirm(false); | ||
$this->setChild('store_switcher', $store_switcher); | ||
|
||
$this->setChild('add_new_button', | ||
$this->getLayout()->createBlock('adminhtml/widget_button') | ||
->setData(array( | ||
'label' => Mage::helper('catalog')->__('Add Product'), | ||
'onclick' => "setLocation('".$this->getUrl('adminhtml/*/new')."')", | ||
'class' => 'add' | ||
)) | ||
); | ||
} | ||
} | ||
|
||
<?php | ||
|
||
/** | ||
* Magento. | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to license@magentocommerce.com so we can send you a copy immediately. | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade Magento to newer | ||
* versions in the future. If you wish to customize Magento for your | ||
* needs please refer to http://www.magentocommerce.com for more information. | ||
* | ||
* @category Mage | ||
* | ||
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
|
||
/** | ||
* Catalog manage products block. | ||
* | ||
* @category Mage | ||
* | ||
* @author Magento Core Team <core@magentocommerce.com> | ||
*/ | ||
class TBT_Enhancedgrid_Block_Catalog_Product extends Mage_Adminhtml_Block_Catalog_Product | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
$this->_headerText = Mage::helper('enhancedgrid')->__('Manage Products (Enhanced)'); | ||
} | ||
|
||
protected function _prepareLayout() | ||
{ | ||
parent::_prepareLayout(); | ||
$this->setTemplate('tbt'.DS.'enhancedgrid'.DS.'catalog'.DS.'product.phtml'); | ||
$this->setChild('grid', $this->getLayout()->createBlock('enhancedgrid/catalog_product_grid', 'product.enhancedgrid')); | ||
|
||
//@nelkaake -a 16/11/10: | ||
$store_switcher = $this->getLayout()->createBlock('adminhtml/store_switcher', 'store_switcher'); | ||
$store_switcher->setUseConfirm(false); | ||
$this->setChild('store_switcher', $store_switcher); | ||
|
||
$this->setChild('add_new_button', | ||
$this->getLayout()->createBlock('adminhtml/widget_button') | ||
->setData(array( | ||
'label' => Mage::helper('catalog')->__('Add Product'), | ||
'onclick' => "setLocation('".$this->getUrl('adminhtml/*/new')."')", | ||
'class' => 'add', | ||
)) | ||
); | ||
} | ||
} |
Oops, something went wrong.