Browse Source

Version 1.0.0

main
Ryan 10 years ago
commit
0c0ed76009
  1. BIN
      assets/banner-1544x500.jpg
  2. BIN
      assets/banner-772x250.jpg
  3. BIN
      assets/icon-128x128.png
  4. BIN
      assets/icon-256x256.png
  5. BIN
      assets/screenshot-1.jpg
  6. 9
      js/obvious-post-states.js
  7. 41
      obvious-post-states.css
  8. 18
      obvious-post-states.php
  9. 41
      readme.txt

BIN
assets/banner-1544x500.jpg

After

Width: 1544  |  Height: 500  |  Size: 144 KiB

BIN
assets/banner-772x250.jpg

After

Width: 772  |  Height: 250  |  Size: 54 KiB

BIN
assets/icon-128x128.png

After

Width: 128  |  Height: 128  |  Size: 8.5 KiB

BIN
assets/icon-256x256.png

After

Width: 256  |  Height: 256  |  Size: 20 KiB

BIN
assets/screenshot-1.jpg

After

Width: 1200  |  Height: 876  |  Size: 193 KiB

9
js/obvious-post-states.js

@ -0,0 +1,9 @@
jQuery(document).ready(function( $ ) {
if ($('span.post-state').length != 0) {
$('span.post-state').each(function() {
$(this).insertBefore($(this).parent());
});
}
});

41
obvious-post-states.css

@ -0,0 +1,41 @@
.post-state {
background: #999;
border-radius: 2px;
color: #fff;
font-size: 12px;
font-weight: 400;
margin: -1px 8px 0 0;
padding: 1px 5px;
vertical-align: top;
}
.admin-color-fresh .post-state {
background: #333333;
}
.admin-color-light .post-state {
background: #888888;
}
.admin-color-blue .post-state {
background: #4796b3;
}
.admin-color-coffee .post-state {
background: #59524c;
}
.admin-color-ectoplasm .post-state {
background: #523f6d;
}
.admin-color-midnight .post-state {
background: #363b3f;
}
.admin-color-ocean .post-state {
background: #627c83;
}
.admin-color-sunrise .post-state {
background: #cf4944;
}
td.post-title strong {
color: rgba(255,255,255,0);
display: inline;
}
.row-actions {
padding: 4px 0 0 0;
}

18
obvious-post-states.php

@ -0,0 +1,18 @@
<?php
/*
Plugin Name: Obvious Post States
Plugin URI: https://github.com/ryansommers/slate
Description: Make your WordPress post state text (draft, pending, sticky, etc) stand out.
Author: Ryan Sommers
Version: 1.0.0
Author URI: http://ryansommers.com
*/
function obvious_post_states_files() {
wp_enqueue_style( 'obvious-post-states', plugins_url('obvious-post-states.css', __FILE__) );
wp_enqueue_script( 'obvious-post-states', plugins_url( "js/obvious-post-states.js", __FILE__ ), array( 'jquery' ), '1.0.0', true );
}
add_action( 'admin_enqueue_scripts', 'obvious_post_states_files' );
add_action( 'login_enqueue_scripts', 'obvious_post_states_files' );
?>

41
readme.txt

@ -0,0 +1,41 @@
=== Obvious Post States ===
Contributors: ryansommers
Tags: post state, drafts, pending, sticky, password protected, ryan sommers.
Requires at least: 4.0
Tested up to: 4.0
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Make the WordPress post state text (draft, pending, sticky, etc) stand out.
== Description ==
Obvious Post States does what its name implies: makes the post states of your Posts and Pages stand out.
Post states like Draft, Pending, Sticky, Password Protected, etc. will be more prominent and obvious.
Takes into account the built-in WordPress Admin Color Schemes so everything matches.
Check out the screenshot to see an example.
== Installation ==
1. Unzip `obvious-post-states.zip`
2. Upload the `obvious-post-states' folder to the `/wp-content/plugins/` directory
3. Activate the plugin through the 'Plugins' menu in WordPress
== Frequently Asked Questions ==
= How do I know it's working? =
The post state text (draft, pending, etc) will be moved to the beginning of the column and have a background color. Check out the screenshot.
== Screenshots ==
1. Obvious Post States Example
== Changelog ==
= 1.0.0 =
* Initial release.
Loading…
Cancel
Save