Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Site status component in the site header #26

Merged
merged 3 commits into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions includes/ComingSoon.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function __construct( Container $container ) {
'admin_notice_text' => __( 'Your site has Coming Soon mode active.', 'newfold-module-coming-soon' ),
'admin_bar_text' => '<div>' . __( 'Coming Soon Active', 'newfold-module-coming-soon' ) . '</div>',
'admin_bar_label' => __( 'Site Status: ', 'newfold-module-coming-soon' ),
'admin_bar_cs_active' => __( 'Coming Soon', 'newfold-module-coming-soon' ),
'admin_bar_cs_inactive' => __( 'Live', 'newfold-module-coming-soon' ),
'admin_bar_cs_active' => __( 'NOT LIVE', 'newfold-module-coming-soon' ),
'admin_bar_cs_inactive' => __( 'LIVE', 'newfold-module-coming-soon' ),
'template_page_title' => __( 'Coming Soon!', 'newfold-module-coming-soon' ),
'template_styles' => false,
'template_content' => false,
Expand Down Expand Up @@ -173,18 +173,39 @@ public function admin_bar_coming_soon_admin_styles() {
background-color: #F8F8F8;
color: #333333;
padding: 0 16px;
font-weight: 510;
display:flex;
height: 22px;
align-items: center;
gap: 2px;
border-radius: 2px;
margin-top: 4px;
}

#wpadminbar #wp-admin-bar-site-status .ab-item{
height:22px;
}

#nfd-site-status-coming-soon {
color: #E01C1C;
display: none;
font-weight: 510;
}

#nfd-site-status-live {
color: #048200;
display: none;
font-weight: 510;
}

#nfd-site-status[data-coming-soon="true"] {
border: 1px solid var(--Dark-Red, #C71919);
}

#nfd-site-status[data-coming-soon="false"] {
border: 1px solid var(--A11y-GRN, #278224);
}

#nfd-site-status[data-coming-soon="true"] #nfd-site-status-coming-soon {
display: inline-block;
}
Expand Down
Loading