Skip to content

Commit 434e403

Browse files
authored
Add icons in admin (icon-head) (#1384)
1 parent 6b9ab07 commit 434e403

File tree

43 files changed

+232
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+232
-110
lines changed

app/code/core/Mage/Adminhtml/Block/Report/Customer/Accounts.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Customer_Accounts extends Mage_Adminhtml_Block_Widget_Grid_Container
3636
{
37-
3837
public function __construct()
3938
{
4039
$this->_controller = 'report_customer_accounts';
@@ -43,4 +42,8 @@ public function __construct()
4342
$this->_removeButton('add');
4443
}
4544

45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4649
}

app/code/core/Mage/Adminhtml/Block/Report/Customer/Orders.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Customer_Orders extends Mage_Adminhtml_Block_Widget_Grid_Container
@@ -41,4 +41,9 @@ public function __construct()
4141
parent::__construct();
4242
$this->_removeButton('add');
4343
}
44+
45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4449
}

app/code/core/Mage/Adminhtml/Block/Report/Customer/Totals.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Customer_Totals extends Mage_Adminhtml_Block_Widget_Grid_Container
@@ -41,4 +41,9 @@ public function __construct()
4141
parent::__construct();
4242
$this->_removeButton('add');
4343
}
44+
45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4449
}

app/code/core/Mage/Adminhtml/Block/Report/Product.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
34+
3435
class Mage_Adminhtml_Block_Report_Product extends Mage_Adminhtml_Block_Widget_Grid_Container
3536
{
36-
3737
public function __construct()
3838
{
3939
$this->_controller = 'report_product';
@@ -42,4 +42,8 @@ public function __construct()
4242
$this->_removeButton('add');
4343
}
4444

45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4549
}

app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,16 @@ protected function _prepareLayout()
5555

5656
public function getStoreSwitcherHtml()
5757
{
58-
if (!Mage::app()->isSingleStoreMode()) {
59-
return $this->getChildHtml('store_switcher');
60-
}
61-
return '';
58+
return Mage::app()->isSingleStoreMode() ? '' : $this->getChildHtml('store_switcher');
6259
}
6360

6461
public function getGridHtml()
6562
{
6663
return $this->getStoreSwitcherHtml() . parent::getGridHtml();
6764
}
65+
66+
public function getHeaderCssClass()
67+
{
68+
return 'icon-head head-report';
69+
}
6870
}

app/code/core/Mage/Adminhtml/Block/Report/Product/Lowstock.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Product_Lowstock extends Mage_Adminhtml_Block_Widget_Grid_Container
@@ -50,20 +50,21 @@ protected function _prepareLayout()
5050
->setSwitchUrl($this->getUrl('*/*/*', array('store'=>null)))
5151
->setTemplate('report/store/switcher.phtml')
5252
);
53-
5453
return parent::_prepareLayout();
5554
}
5655

5756
public function getStoreSwitcherHtml()
5857
{
59-
if (Mage::app()->isSingleStoreMode()) {
60-
return '';
61-
}
62-
return $this->getChildHtml('store_switcher');
58+
return Mage::app()->isSingleStoreMode() ? '' : $this->getChildHtml('store_switcher');
6359
}
6460

6561
public function getGridHtml()
6662
{
6763
return $this->getStoreSwitcherHtml() . parent::getGridHtml();
6864
}
65+
66+
public function getHeaderCssClass()
67+
{
68+
return 'icon-head head-report';
69+
}
6970
}

app/code/core/Mage/Adminhtml/Block/Report/Product/Ordered.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*
3030
* @deprecated after 1.4.0.1
3131
*/
32+
3233
class Mage_Adminhtml_Block_Report_Product_Ordered extends Mage_Adminhtml_Block_Widget_Grid_Container
3334
{
3435
public function __construct()
@@ -38,4 +39,9 @@ public function __construct()
3839
parent::__construct();
3940
$this->_removeButton('add');
4041
}
42+
43+
public function getHeaderCssClass()
44+
{
45+
return 'icon-head head-report';
46+
}
4147
}

app/code/core/Mage/Adminhtml/Block/Report/Product/Sold.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,26 @@
2424
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
2525
*/
2626

27-
2827
/**
2928
* Adminhtml Report Sold Product Content Block
3029
*
3130
* @category Mage
3231
* @package Mage_Adminhtml
3332
* @author Magento Core Team <[email protected]>
3433
*/
34+
3535
class Mage_Adminhtml_Block_Report_Product_Sold extends Mage_Adminhtml_Block_Widget_Grid_Container
3636
{
37-
/**
38-
* Initialize container block settings
39-
*
40-
*/
4137
public function __construct()
4238
{
4339
$this->_controller = 'report_product_sold';
4440
$this->_headerText = Mage::helper('reports')->__('Products Ordered');
4541
parent::__construct();
4642
$this->_removeButton('add');
4743
}
44+
45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4849
}

app/code/core/Mage/Adminhtml/Block/Report/Product/Viewed.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Product_Viewed extends Mage_Adminhtml_Block_Widget_Grid_Container
@@ -47,14 +47,14 @@ public function __construct()
4747
));
4848
}
4949

50-
/**
51-
* Get filter url
52-
*
53-
* @return string
54-
*/
5550
public function getFilterUrl()
5651
{
5752
$this->getRequest()->setParam('filter', null);
5853
return $this->getUrl('*/*/viewed', array('_current' => true));
5954
}
55+
56+
public function getHeaderCssClass()
57+
{
58+
return 'icon-head head-report';
59+
}
6060
}

app/code/core/Mage/Adminhtml/Block/Report/Refresh/Statistics.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,9 @@ public function __construct()
4141
parent::__construct();
4242
$this->_removeButton('add');
4343
}
44+
45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4449
}

app/code/core/Mage/Adminhtml/Block/Report/Review/Customer.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Review_Customer extends Mage_Adminhtml_Block_Widget_Grid_Container
3636
{
37-
3837
public function __construct()
3938
{
4039
$this->_controller = 'report_review_customer';
@@ -43,4 +42,8 @@ public function __construct()
4342
$this->_removeButton('add');
4443
}
4544

45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4649
}

app/code/core/Mage/Adminhtml/Block/Report/Review/Detail.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,24 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Review_Detail extends Mage_Adminhtml_Block_Widget_Grid_Container
3636
{
37-
3837
public function __construct()
3938
{
4039
$this->_controller = 'report_review_detail';
41-
4240
$product = Mage::getModel('catalog/product')->load($this->getRequest()->getParam('id'));
4341
$this->_headerText = Mage::helper('reports')->__('Reviews for %s', $this->escapeHtml($product->getName()));
44-
4542
parent::__construct();
4643
$this->_removeButton('add');
4744
$this->setBackUrl($this->getUrl('*/report_review/product/'));
4845
$this->_addBackButton();
4946
}
5047

48+
public function getHeaderCssClass()
49+
{
50+
return 'icon-head head-report';
51+
}
5152
}

app/code/core/Mage/Adminhtml/Block/Report/Review/Product.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
34+
3435
class Mage_Adminhtml_Block_Report_Review_Product extends Mage_Adminhtml_Block_Widget_Grid_Container
3536
{
36-
3737
public function __construct()
3838
{
3939
$this->_controller = 'report_review_product';
@@ -42,4 +42,8 @@ public function __construct()
4242
$this->_removeButton('add');
4343
}
4444

45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4549
}

app/code/core/Mage/Adminhtml/Block/Report/Sales/Bestsellers.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Sales_Bestsellers extends Mage_Adminhtml_Block_Widget_Grid_Container
3636
{
37-
3837
public function __construct()
3938
{
4039
$this->_controller = 'report_sales_bestsellers';
@@ -53,4 +52,9 @@ public function getFilterUrl()
5352
$this->getRequest()->setParam('filter', null);
5453
return $this->getUrl('*/*/bestsellers', array('_current' => true));
5554
}
55+
56+
public function getHeaderCssClass()
57+
{
58+
return 'icon-head head-report';
59+
}
5660
}

app/code/core/Mage/Adminhtml/Block/Report/Sales/Coupons.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Sales_Coupons extends Mage_Adminhtml_Block_Widget_Grid_Container
@@ -52,4 +52,9 @@ public function getFilterUrl()
5252
$this->getRequest()->setParam('filter', null);
5353
return $this->getUrl('*/*/coupons', array('_current' => true));
5454
}
55+
56+
public function getHeaderCssClass()
57+
{
58+
return 'icon-head head-report';
59+
}
5560
}

app/code/core/Mage/Adminhtml/Block/Report/Sales/Invoiced.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Sales_Invoiced extends Mage_Adminhtml_Block_Widget_Grid_Container
@@ -52,4 +52,9 @@ public function getFilterUrl()
5252
$this->getRequest()->setParam('filter', null);
5353
return $this->getUrl('*/*/invoiced', array('_current' => true));
5454
}
55+
56+
public function getHeaderCssClass()
57+
{
58+
return 'icon-head head-report';
59+
}
5560
}

app/code/core/Mage/Adminhtml/Block/Report/Sales/Refunded.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,9 @@ public function getFilterUrl()
5252
$this->getRequest()->setParam('filter', null);
5353
return $this->getUrl('*/*/refunded', array('_current' => true));
5454
}
55+
56+
public function getHeaderCssClass()
57+
{
58+
return 'icon-head head-report';
59+
}
5560
}

0 commit comments

Comments
 (0)