Permalink
Browse files

32px option page implementation, fixes #1

- for explanation read the rewritten passages under "Plugin And Theme Options Icons" http://kremalicious.com/wp-icons-template/
  • Loading branch information...
1 parent 5b5462f commit 3eb3c9819c76da97fd2251a864e1691426dfadf7 @kremalicious committed May 21, 2012
Showing with 14 additions and 1 deletion.
  1. +14 −1 functions-option-page.php
View
@@ -30,6 +30,11 @@ function option_page_icon() {
#toplevel_page_PLUGINNAME-FILENAME:hover .wp-menu-image, #toplevel_page_PLUGINNAME-FILENAME.wp-has-current-submenu .wp-menu-image {
background-position: 6px -26px !important;
}
+
+ /* Option Screen - 32px */
+ #PLUGINNAME.icon32 {
+ background: url(<?php bloginfo('template_url') ?>/images/icon-adminpage32.png) no-repeat left top !important;
+ }
@media
only screen and (-webkit-min-device-pixel-ratio: 1.5),
@@ -44,7 +49,15 @@ function option_page_icon() {
-webkit-background-size: 16px 48px;
-moz-background-size: 16px 48px;
background-size: 16px 48px;
- }
+ }
+
+ /* Option Screen - 32px @2x */
+ #PLUGINNAME.icon32 {
+ background-image: url('<?php bloginfo('template_url') ?>/images/icon-adminpage32@2x.png') !important;
+ -webkit-background-size: 32px 32px;
+ -moz-background-size: 32px 32px;
+ background-size: 32px 32px;
+ }
}
</style>
<?php }

0 comments on commit 3eb3c98

Please sign in to comment.