Changeset 2993776
- Timestamp:
- 11/10/2023 09:35:31 AM (9 months ago)
- Location:
- display-environment-type
- Files:
-
- 10 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
display-environment-type/trunk/app/Plugin.php
r2702119 r2993776 80 80 'id' => 'det_env_type', 81 81 'parent'=> 'top-secondary', 82 'title' => '<span class="ab-icon" ></span><span class="ab-label">' . esc_html( ucfirst( $env_type ) ) . '</span>',82 'title' => '<span class="ab-icon"></span><span class="ab-label">' . esc_html( ucfirst( $env_type ) ) . '</span>', 83 83 'meta' => array( 84 'title' => __( 'Environment Type', 'display-environment-type' ),85 84 'class' => 'det-' . sanitize_title( $env_type ), 86 85 ), -
display-environment-type/trunk/css/admin.css
r2367296 r2993776 1 1 /* At a glance icons */ 2 2 3 #dashboard_right_now li > span.det-env-type: before {3 #dashboard_right_now li > span.det-env-type:before { 4 4 content: "\f339"; 5 5 } 6 6 7 #dashboard_right_now li > span.det-env-type.det-production: before {7 #dashboard_right_now li > span.det-env-type.det-production:before { 8 8 content: "\f319"; 9 9 } 10 10 11 #dashboard_right_now li > span.det-env-type.det-staging: before {11 #dashboard_right_now li > span.det-env-type.det-staging:before { 12 12 content: "\f111"; 13 13 } 14 14 15 #dashboard_right_now li > span.det-env-type.det-development: before {15 #dashboard_right_now li > span.det-env-type.det-development:before { 16 16 content: "\f107"; 17 17 } … … 19 19 /* Admin bar background colors */ 20 20 21 22 23 24 25 21 26 #wpadminbar ul li#wp-admin-bar-det_env_type { 22 27 pointer-events: none; 23 background-color: #0087b1; 28 background-color: #0080a8; 29 color: #fff; 24 30 } 25 31 … … 30 36 #wpadminbar ul li#wp-admin-bar-det_env_type.det-staging { 31 37 background-color: #d79d00; 38 32 39 } 33 40 34 41 #wpadminbar ul li#wp-admin-bar-det_env_type.det-development { 35 background-color: #3 b9843;42 background-color: #3; 36 43 } 37 44 38 45 /* Admin bar icons */ 39 46 40 #wp-admin-bar-det_env_type > div > span.ab-icon: before {47 #wp-admin-bar-det_env_type > div > span.ab-icon:before { 41 48 content: "\f339"; 42 49 top: 2px; 50 43 51 } 44 52 45 #wp-admin-bar-det_env_type.det-production > div > span.ab-icon: before {53 #wp-admin-bar-det_env_type.det-production > div > span.ab-icon:before { 46 54 content: "\f319"; 47 55 top: 3px; 48 56 } 49 57 50 #wp-admin-bar-det_env_type.det-staging > div > span.ab-icon: before {58 #wp-admin-bar-det_env_type.det-staging > div > span.ab-icon:before { 51 59 content: "\f111"; 52 60 top: 1px; 53 61 } 54 62 55 #wp-admin-bar-det_env_type.det-development > div > span.ab-icon: before {63 #wp-admin-bar-det_env_type.det-development > div > span.ab-icon:before { 56 64 content: "\f107"; 57 65 top: 2px; -
display-environment-type/trunk/display-environment-type.php
r2702119 r2993776 4 4 * Plugin URI: https://roytanck.com/2020/08/21/new-wordpress-plugin-display-environment-type/ 5 5 * Description: Display the site's environment type in wp-admin. 6 * Version: 1.3. 16 * Version: 1.3. 7 7 * Requires at least: 5.5 8 8 * Requires PHP: 5.6 -
display-environment-type/trunk/readme.txt
r2961633 r2993776 1 1 === Display Environment Type === 2 Contributors: roytanck, markjaquith, tflight 2 Contributors: roytanck, markjaquith, tflight 3 3 Tags: environment type, dtap, production, staging, development 4 4 Requires at least: 5.5 5 Tested up to: 6. 35 Tested up to: 6. 6 6 Requires PHP: 5.6 7 Stable tag: 1.3. 17 Stable tag: 1.3. 8 8 License: GPLv3 9 9 … … 52 52 == Changelog == 53 53 54 55 56 54 57 = 1.3.1 (2022-03-30) = 55 58 * Skip loading of the CSS file on the front end if toolbar is hidden (thanks @tflight).
Note: See TracChangeset
for help on using the changeset viewer.