commit 0c0ed76009d56174fdbba40fbd71fcc58958b343 Author: Ryan Date: Tue Sep 30 15:40:12 2014 -0700 Version 1.0.0 diff --git a/assets/banner-1544x500.jpg b/assets/banner-1544x500.jpg new file mode 100644 index 0000000..6797cd3 Binary files /dev/null and b/assets/banner-1544x500.jpg differ diff --git a/assets/banner-772x250.jpg b/assets/banner-772x250.jpg new file mode 100644 index 0000000..0e8d087 Binary files /dev/null and b/assets/banner-772x250.jpg differ diff --git a/assets/icon-128x128.png b/assets/icon-128x128.png new file mode 100644 index 0000000..a328b1c Binary files /dev/null and b/assets/icon-128x128.png differ diff --git a/assets/icon-256x256.png b/assets/icon-256x256.png new file mode 100644 index 0000000..5f84169 Binary files /dev/null and b/assets/icon-256x256.png differ diff --git a/assets/screenshot-1.jpg b/assets/screenshot-1.jpg new file mode 100644 index 0000000..276fd7c Binary files /dev/null and b/assets/screenshot-1.jpg differ diff --git a/js/obvious-post-states.js b/js/obvious-post-states.js new file mode 100644 index 0000000..4f398b9 --- /dev/null +++ b/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()); + }); + } + +}); \ No newline at end of file diff --git a/obvious-post-states.css b/obvious-post-states.css new file mode 100644 index 0000000..c066f08 --- /dev/null +++ b/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; +} \ No newline at end of file diff --git a/obvious-post-states.php b/obvious-post-states.php new file mode 100644 index 0000000..51bdb1a --- /dev/null +++ b/obvious-post-states.php @@ -0,0 +1,18 @@ + diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..00aa411 --- /dev/null +++ b/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.