Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

finally I figured it out (line endings), images next to title (retina…

… ready)
  • Loading branch information...
commit c36ee849512f77432db8e6783a0bc4389f33f0ab 1 parent 8d09de2
Marvin Rühe Marv51 authored
BIN  icon32.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  icon64.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 includes/admin.php
View
@@ -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') );
+
}
@@ -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' );
@@ -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;}
Please sign in to comment.
Something went wrong with that request. Please try again.