Changeset 2910333
- Timestamp:
- 05/09/2023 06:59:21 PM (3 years ago)
- Location:
- colored-admin-post-list/trunk
- Files:
-
- 1 added
- 6 edited
-
colored-admin-post-list.php (modified) (1 diff)
-
languages/colored-admin-post-list.pot (added)
-
readme.txt (modified) (2 diffs)
-
src/Controller/PluginController.php (modified) (1 diff)
-
src/Controller/SettingsController.php (modified) (3 diffs)
-
src/Controller/StyleController.php (modified) (1 diff)
-
src/Enums/DefaultColor.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
colored-admin-post-list/trunk/colored-admin-post-list.php
r2910237 r2910333 7 7 * Author: rockschtar 8 8 * Author URI: http://www.eracer.de 9 * Version: 3.0. 29 * Version: 3.0.3 10 10 * Requires at least: 6.2 11 11 * Requires PHP: 8.0 -
colored-admin-post-list/trunk/readme.txt
r2910237 r2910333 1 1 === Colored Admin Post List === 2 2 Contributors: rockschtar 3 Tags: wp-admin, admin, color, colored, post, list, highlight, post-status, poststatus, status, draft, pending, future, private, published, custom, custom post status, edit-flow 3 4 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=B2WSC5FR2L8MU 4 Tags: wp-admin, admin, color, colored, post, list, highlight, post-status, poststatus, status, draft, pending, future, private, published, custom, custom post status, edit-flow 5 Requires at least: 6.2 5 Requires at least: 6.0 6 6 Tested up to: 6.2 7 Stable tag: 3.0.28 7 Requires PHP: 8.0 8 Stable tag: 3.0.3 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html 11 11 12 Highlights the background of draft, pending, future, private, and published posts in the wordpress admin. Also supports custom post statuses!12 Highlights the background of draft, pending, future, private, published and custom post status posts in the wordpress admin. 13 13 14 14 == Description == 15 16 Highlights the background of draft, pending, future, private and published posts in the wordpress admin<span style=\"white-space: pre;\"> </span> 15 Highlights the background of draft, pending, future, private, published and custom post status posts in the wordpress admin. 17 16 18 17 == Installation == 19 20 18 Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page. 21 19 22 == Frequently asked questions ==23 20 21 == Frequently Asked Questions == 24 22 = Is it possible to define own colors? = 25 23 … … 27 25 28 26 == Screenshots == 29 30 1. This is how it looks like (with my default colors) 27 1. Colored rows by post status 31 28 2. Options 32 29 33 30 == Changelog == 31 **Version 3.0.3** 32 33 Code cleanup 34 34 35 **Version 3.0** 35 36 -
colored-admin-post-list/trunk/src/Controller/PluginController.php
r2910237 r2910333 14 14 private function __construct() 15 15 { 16 register_activation_hook(CAPL_PLUGIN_FILE, array($this, "onActivation"));17 register_deactivation_hook(CAPL_PLUGIN_FILE, array($this, "onDeactivation"));18 register_uninstall_hook(CAPL_PLUGIN_FILE, array(__CLASS__, "onUninstall"));19 add_action('plugins_loaded', array($this, "pluginsLoaded"));20 add_action("init", array($this, "loadPluginTextdomain"));16 register_activation_hook(CAPL_PLUGIN_FILE, [$this, "onActivation"]); 17 register_deactivation_hook(CAPL_PLUGIN_FILE, [$this, "onDeactivation"]); 18 register_uninstall_hook(CAPL_PLUGIN_FILE, [__CLASS__, "onUninstall"]); 19 add_action('plugins_loaded', [$this, "pluginsLoaded"]); 20 add_action("init", [$this, "loadPluginTextdomain"]); 21 21 22 22 SettingsController::init(); -
colored-admin-post-list/trunk/src/Controller/SettingsController.php
r2910207 r2910333 36 36 wp_enqueue_style("wp-color-picker"); 37 37 wp_enqueue_script("wp-color-picker"); 38 wp_enqueue_script("capl-settings", CAPL_PLUGIN_URL . "scripts/settings.js", array("jquery", "wp-color-picker"));38 wp_enqueue_script("capl-settings", CAPL_PLUGIN_URL . "scripts/settings.js", ["jquery", "wp-color-picker"]); 39 39 } 40 40 … … 86 86 $section 87 87 ); 88 register_setting(Setting::PAGE_DEFAULT, $postStatus->getOptionKey(), ['type' => 'string', 'default' => $postStatus->getDefaultColor()]); 88 89 register_setting( 90 Setting::PAGE_DEFAULT, 91 $postStatus->getOptionKey(), 92 ['type' => 'string', 'default' => $postStatus->getDefaultColor()] 93 ); 89 94 }; 90 95 … … 99 104 } 100 105 101 if (sizeof($customPostStati) > 0) : 102 add_settings_section(Setting::SECTION_COLORS_CUSTOM, __("Custom Post Statuses", "colored-admin-post-list"), $dummyCallback, Setting::PAGE_DEFAULT); 103 endif; 106 if (sizeof($customPostStati) > 0) { 107 add_settings_section( 108 Setting::SECTION_COLORS_CUSTOM, 109 __("Custom Post Statuses", "colored-admin-post-list"), 110 $dummyCallback, 111 Setting::PAGE_DEFAULT 112 ); 113 } 104 114 } 105 115 -
colored-admin-post-list/trunk/src/Controller/StyleController.php
r2910114 r2910333 12 12 private function __construct() 13 13 { 14 add_action('admin_footer-edit.php', array(&$this, "addStyles"));14 add_action('admin_footer-edit.php', [$this, "addStyles"]); 15 15 } 16 16 -
colored-admin-post-list/trunk/src/Enums/DefaultColor.php
r2910114 r2910333 2 2 3 3 namespace Rockschtar\WordPress\ColoredAdminPostList\Enums; 4 5 use ReflectionClass; 4 6 5 7 class DefaultColor … … 13 15 public static function all(): array 14 16 { 15 return (new \ReflectionClass(self::class))->getConstants();17 return (new ReflectionClass(self::class))->getConstants(); 16 18 } 17 19 }
Note: See TracChangeset
for help on using the changeset viewer.