Skip to content

Commit

Permalink
Fixed the styling of all app/code files to be follow CSR-0 like Magen…
Browse files Browse the repository at this point in the history
…to core and fixed modman file to support other 'TBT' (Sweet Tooth) modules as well.
  • Loading branch information
jayelkaake committed Oct 18, 2015
1 parent 43d3f47 commit 7f0dc84
Show file tree
Hide file tree
Showing 25 changed files with 2,380 additions and 2,319 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

/var
.idea
/var
128 changes: 63 additions & 65 deletions app/code/community/TBT/Enhancedgrid/Block/Catalog/Product.php
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',
))
);
}
}
Loading

0 comments on commit 7f0dc84

Please sign in to comment.