Plugin Directory

Changeset 2993776

Timestamp:
11/10/2023 09:35:31 AM (9 months ago)
Author:
roytanck
Message:

Version 1.3.2, tested with WP 6.4.

Location:
display-environment-type
Files:
10 added
4 edited

Legend:

Unmodified
Added
Removed
  • display-environment-type/trunk/app/Plugin.php

    r2702119 r2993776  
    8080                'id'    => 'det_env_type',
    8181                '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>',
    8383                'meta'  => array(
    84                     'title' => __( 'Environment Type', 'display-environment-type' ),
    8584                    'class' => 'det-' . sanitize_title( $env_type ),
    8685                ),
  • display-environment-type/trunk/css/admin.css

    r2367296 r2993776  
    11/* At a glance icons */
    22
    3 #dashboard_right_now li > span.det-env-type:before {
     3#dashboard_right_now li > span.det-env-type:before {
    44    content: "\f339";
    55}
    66
    7 #dashboard_right_now li > span.det-env-type.det-production:before {
     7#dashboard_right_now li > span.det-env-type.det-production:before {
    88    content: "\f319";
    99}
    1010
    11 #dashboard_right_now li > span.det-env-type.det-staging:before {
     11#dashboard_right_now li > span.det-env-type.det-staging:before {
    1212    content: "\f111";
    1313}
    1414
    15 #dashboard_right_now li > span.det-env-type.det-development:before {
     15#dashboard_right_now li > span.det-env-type.det-development:before {
    1616    content: "\f107";
    1717}
     
    1919/* Admin bar background colors */
    2020
     21
     22
     23
     24
     25
    2126#wpadminbar ul li#wp-admin-bar-det_env_type {
    2227    pointer-events: none;
    23     background-color: #0087b1;
     28    background-color: #0080a8;
     29    color: #fff;
    2430}
    2531
     
    3036#wpadminbar ul li#wp-admin-bar-det_env_type.det-staging {
    3137    background-color: #d79d00;
     38
    3239}
    3340
    3441#wpadminbar ul li#wp-admin-bar-det_env_type.det-development {
    35     background-color: #3b9843;
     42    background-color: #3;
    3643}
    3744
    3845/* Admin bar icons */
    3946
    40 #wp-admin-bar-det_env_type > div > span.ab-icon:before {
     47#wp-admin-bar-det_env_type > div > span.ab-icon:before {
    4148    content: "\f339";
    4249    top: 2px;
     50
    4351}
    4452
    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 {
    4654    content: "\f319";
    4755    top: 3px;
    4856}
    4957
    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 {
    5159    content: "\f111";
    5260    top: 1px;
    5361}
    5462
    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 {
    5664    content: "\f107";
    5765    top: 2px;
  • display-environment-type/trunk/display-environment-type.php

    r2702119 r2993776  
    44 * Plugin URI:        https://roytanck.com/2020/08/21/new-wordpress-plugin-display-environment-type/
    55 * Description:       Display the site's environment type in wp-admin.
    6  * Version:           1.3.1
     6 * Version:           1.3.
    77 * Requires at least: 5.5
    88 * Requires PHP:      5.6
  • display-environment-type/trunk/readme.txt

    r2961633 r2993776  
    11=== Display Environment Type ===
    2 Contributors: roytanck, markjaquith, tflight
     2Contributors: roytanck, markjaquith, tflight
    33Tags: environment type, dtap, production, staging, development
    44Requires at least: 5.5
    5 Tested up to: 6.3
     5Tested up to: 6.
    66Requires PHP: 5.6
    7 Stable tag: 1.3.1
     7Stable tag: 1.3.
    88License: GPLv3
    99
     
    5252== Changelog ==
    5353
     54
     55
     56
    5457= 1.3.1 (2022-03-30) =
    5558* 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.