diff --git a/projects/packages/jetpack-mu-wpcom/changelog/remove-launch-bar b/projects/packages/jetpack-mu-wpcom/changelog/remove-launch-bar new file mode 100644 index 0000000000000..02cd87736498f --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/remove-launch-bar @@ -0,0 +1,4 @@ +Significance: minor +Type: removed + +Remove the launch bar from the frontend of Atomic sites diff --git a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-global-styles/wpcom-global-styles-view.js b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-global-styles/wpcom-global-styles-view.js index a49cc1501a969..0fb13789218ed 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-global-styles/wpcom-global-styles-view.js +++ b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-global-styles/wpcom-global-styles-view.js @@ -32,17 +32,7 @@ document.addEventListener( 'DOMContentLoaded', () => { document.body.style.scrollPaddingTop = '50px'; launchBanner.style.display = null; - let container; - if ( launchBarUserData?.isAtomic ) { - const isShadowDOM = !! ( document.head.attachShadow || document.head.createShadowRoot ); - if ( isShadowDOM ) { - container = document.querySelector( '#wpcom-launch-banner-wrapper' ).shadowRoot; - } else { - container = document.querySelector( '#wpcom-launch-banner-wrapper' ); - } - } else { - container = document; - } + const container = document; const popoverToggle = container.querySelector( '.launch-bar-global-styles-toggle' ); const popover = container.querySelector( '.launch-bar-global-styles-popover' ); const upgradeButton = container.querySelector( '.launch-bar-global-styles-upgrade' ); diff --git a/projects/plugins/wpcomsh/changelog/remove-launch-bar b/projects/plugins/wpcomsh/changelog/remove-launch-bar new file mode 100644 index 0000000000000..02cd87736498f --- /dev/null +++ b/projects/plugins/wpcomsh/changelog/remove-launch-bar @@ -0,0 +1,4 @@ +Significance: minor +Type: removed + +Remove the launch bar from the frontend of Atomic sites diff --git a/projects/plugins/wpcomsh/private-site/logged-in-banner.css b/projects/plugins/wpcomsh/private-site/logged-in-banner.css deleted file mode 100644 index e6ce05d014e5f..0000000000000 --- a/projects/plugins/wpcomsh/private-site/logged-in-banner.css +++ /dev/null @@ -1,182 +0,0 @@ -.wpcom-launch-banner { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif; - font-size: 16px; - display: flex; - justify-content: center; - line-height: 1.4; - position: relative; - z-index: 99998; -} - -.wpcom-launch-banner a { - color: #016087; - text-decoration: underline; -} - -.wpcom-launch-banner a:hover { - color: #23354b; -} - -.wpcom-launch-banner .launch-banner-content { - align-items: center; - background: #fff; - border-bottom: 1px solid rgb(200, 215, 225); - justify-content: space-between; - overflow: hidden; - padding: 1em; - position: relative; - width: 100%; - word-break: break-word; -} - -.wpcom-launch-banner .launch-banner-image { - margin-right: 1em; - position: absolute; - left: 1em; - top: 1em; - max-width: 170px; -} - -.wpcom-launch-banner button.text-button { - background: none; - border: none; - color: #016087; - display: inline; - font-family: inherit; - font-size: 16px; - font-weight: normal; - letter-spacing: inherit; - line-height: inherit; - padding: 0; - text-transform: none; - text-decoration: underline; -} - -.wpcom-launch-bannerbutton .text-button:hover { - background: none; - color: #23354b; - text-decoration: underline; -} - -.wpcom-launch-banner button.dismiss-button { - background: none; - border-color: transparent; - border-style: solid; - border-width: 1px 1px 2px; - color: #d52c82; - display: inline; - font-family: inherit; - font-size: 14px; - font-weight: normal; - letter-spacing: inherit; - line-height: 21px; - margin: 0; - padding: 9px 14px 9px; - text-transform: none; -} - -.wpcom-launch-banner button.dismiss-button:hover { - background: none; - color: #992053; -} - -.wpcom-launch-banner .launch-banner-text { - color: #1a1a1a; - flex-grow: 1; - font-size: 16px; -} - -.wpcom-launch-banner .launch-banner-button { - display: flex; - justify-content: flex-end; - min-height: 44px; - white-space: nowrap; -} - -.wpcom-launch-banner .launch-banner-button form { - align-items: center; - display: flex; - margin: 0; -} - -.wpcom-launch-banner .launch-banner-button button { - margin: 0 1em; -} - -.wpcom-launch-banner input.launch-site-button { - background: #d52c82; - border-color: #992053; - border-radius: 4px; - color: #fff; - border-style: solid; - border-width: 1px 1px 2px; - cursor: pointer; - display: inline-block; - margin: 0; - outline: 0; - overflow: hidden; - font-weight: 500; - font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif; - text-overflow: ellipsis; - text-decoration: none; - text-transform: none; - vertical-align: top; - box-sizing: border-box; - font-size: 14px; - letter-spacing: 0; - line-height: 21px; - padding: 7px 14px 9px; -} - -.wpcom-launch-banner input.launch-site-button:hover { - background: #ff3997; -} - -.wpcom-launch-banner input.launch-site-button.disabled { - background: #fff; - border-color: #e1e2e2; - color: #e1e2e2; - cursor: not-allowed; -} - -.wpcom-launch-banner input.launch-site-button.disabled:hover { - background: #fff; -} - -@media (min-width: 961px ) { - .wpcom-launch-banner .launch-banner-content { - display: flex; - } -} - -@media (min-width: 661px ) { - .wpcom-launch-banner .launch-banner-text { - padding-left: 170px; - } -} - -@media (max-width: 960px) { - .wpcom-launch-banner .launch-banner-button { - margin-top: 1em; - } -} - -@media (max-width: 660px) { - .wpcom-launch-banner .launch-banner-image { - display: none; - } -} - -[dir='rtl'] .wpcom-launch-banner .launch-banner-image { - left: auto; - right: 1em; - margin-right: auto; - margin-left: 1em; -} - -@media (min-width: 661px ) { - [dir='rtl'] .wpcom-launch-banner .launch-banner-text { - padding-left: 0; - padding-right: 170px; - } -} \ No newline at end of file diff --git a/projects/plugins/wpcomsh/private-site/logged-in-banner.php b/projects/plugins/wpcomsh/private-site/logged-in-banner.php deleted file mode 100644 index b478ff329c70c..0000000000000 --- a/projects/plugins/wpcomsh/private-site/logged-in-banner.php +++ /dev/null @@ -1,233 +0,0 @@ -get_site_suffix(); - - $my_home_url = 'https://wordpress.com/home/' . $blog_domain; - $change_theme_url = 'https://wordpress.com/themes/' . $blog_domain; - - $is_launchpad_enabled = get_option( 'launchpad_screen' ) === 'full'; - $site_intent = get_option( 'site_intent' ); - $launchpad_url = 'https://wordpress.com/setup/' . $site_intent . '/launchpad?siteSlug=' . $blog_domain; - - $is_coming_soon_mode = site_is_coming_soon() || site_is_public_coming_soon(); - $is_launched_and_coming_soon = $is_site_launched && $is_coming_soon_mode; - - $launch_url = ''; - $launch_text = ''; - $launch_text_mobile = ''; - if ( $is_launched_and_coming_soon ) { - $launch_url = 'https://wordpress.com/settings/general/' . $blog_domain . '#site-privacy-settings'; - $launch_text = __( 'Update visibility', 'wpcomsh' ); - $launch_text_mobile = __( 'Update', 'wpcomsh' ); - } elseif ( ! $is_site_launched ) { - $launch_url = 'https://wordpress.com/start/launch-site?siteSlug=' . $blog_domain . '&source=site'; - $launch_text = __( 'Launch site', 'wpcomsh' ); - $launch_text_mobile = __( 'Launch', 'wpcomsh' ); - } - - $edit_url = ''; - $post_type = get_post_type(); - $path_prefix = ''; - if ( is_singular() && in_array( $post_type, array( 'post', 'page' ), true ) ) { - $path_prefix = $post_type; - } elseif ( is_singular() && in_array( $post_type, apply_filters( 'rest_api_allowed_post_types', array( 'post', 'page', 'revision' ) ), true ) ) { - $path_prefix = sprintf( 'edit/%s', $post_type ); - } - - if ( ! empty( $path_prefix ) ) { - $edit_url = sprintf( 'https://wordpress.com/%s/%s/%d', $path_prefix, $blog_domain, get_the_ID() ); - } - - $bar_controls = array(); - - if ( ! empty( $path_prefix ) ) { - ob_start(); - ?> - - - - - - - - - - - - - - - - - - -
- -