Skip to content

Commit

Permalink
finally I figured it out (line endings), images next to title (retina…
Browse files Browse the repository at this point in the history
… ready)
  • Loading branch information
Marvin Rühe committed Jul 4, 2012
1 parent 8d09de2 commit c36ee84
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Binary file added icon32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon64.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion includes/admin.php
Expand Up @@ -75,6 +75,9 @@ function __construct( &$instance = null) {
//edit flow support
add_action( 'admin_init', array( &$this, 'edit_flow_admin_support' ), 20 );

//admin css
add_action( 'admin_head', array( &$this, 'admin_css') );

}


Expand Down Expand Up @@ -261,7 +264,6 @@ function meta_cb() {
if ( taxonomy_exists( 'workflow_state' ) )
add_meta_box( 'workflow-state', __('Workflow State', 'wp-document-revisions'), array( &$this, 'workflow_state_metabox_cb'), 'document', 'side', 'default' );

add_action( 'admin_head', array( &$this, 'admin_css') );

//move author div to make room for ours
remove_meta_box( 'authordiv', 'document', 'normal' );
Expand Down Expand Up @@ -302,6 +304,16 @@ function hide_postcustom_metabox( $hidden, $screen ) {
function admin_css() {
global $post; ?>
<style>
.icon32-posts-document{background-position: 0 0 !important;
background-image:url('<?php echo plugins_url("icon32.png",dirname(__FILE__));?>') !important;}
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min-moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
.icon32-posts-document{
background-image:url('<?php echo plugins_url("icon64.png",dirname(__FILE__));?>') !important;
background-size:32px 32px !important;}
}
#postdiv {display:none;}
#lock-notice {background-color: #D4E8BA; border-color: #92D43B; }
#document-revisions {width: 100%; text-align: left;}
Expand Down

0 comments on commit c36ee84

Please sign in to comment.