[LYS] Coming Soon template tweaks (#46402)

* Update social link urls

* Align wide

* hide banner on Coming soon page

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Paul Sealock 2024-04-11 10:37:24 +12:00 committed by GitHub
parent b308132799
commit ef4ecd286a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 21 additions and 8 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: update
Comment: Update unreleased feature

View File

@ -153,8 +153,8 @@ class LaunchYourStore {
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading {"textAlign":"center","level":1} -->
<h1 class="wp-block-heading has-text-align-center">%s</h1>
<!-- wp:heading {"textAlign":"center","level":1,"align":"wide"} -->
<h1 class="wp-block-heading alignwide has-text-align-center">%s</h1>
<!-- /wp:heading -->
<!-- wp:spacer -->
@ -228,6 +228,7 @@ class LaunchYourStore {
*
* - User must be either an admin or store editor (must be logged in).
* - 'woocommerce_coming_soon' option value must be 'yes'
* - The page must not be the Coming soon page itself.
*/
public function maybe_add_coming_soon_banner_on_frontend() {
// Do not show the banner if the site is being previewed.
@ -246,6 +247,13 @@ class LaunchYourStore {
return false;
}
// No need to show the banner on the Coming soon page itself.
$page_id = get_the_ID();
$coming_soon_page_id = intval( get_option( 'woocommerce_coming_soon_page_id' ) );
if ( $page_id === $coming_soon_page_id ) {
return false;
}
$link = admin_url( 'admin.php?page=wc-settings#wc_settings_general_site_visibility_slotfill' );
$text = sprintf(

View File

@ -10,11 +10,11 @@
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:social-links {"iconColor":"contrast","iconColorValue":"#111111","style":{"layout":{"selfStretch":"fit","flexSize":null}},"className":"is-style-logos-only"} -->
<ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"admin@example.com","service":"linkedin"} /-->
<ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"https://www.linkedin.com/","service":"linkedin"} /-->
<!-- wp:social-link {"url":"admin@example.com","service":"instagram"} /-->
<!-- wp:social-link {"url":"https://www.instagram.com","service":"instagram"} /-->
<!-- wp:social-link {"url":"admin@example.com","service":"facebook"} /--></ul>
<!-- wp:social-link {"url":"https://www.facebook.com","service":"facebook"} /--></ul>
<!-- /wp:social-links -->
<!-- wp:loginout /--></div>

View File

@ -10,11 +10,11 @@
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:social-links {"iconColor":"contrast","iconColorValue":"#111111","style":{"layout":{"selfStretch":"fit","flexSize":null}},"className":"is-style-logos-only"} -->
<ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"admin@example.com","service":"linkedin"} /-->
<ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"https://www.linkedin.com/","service":"linkedin"} /-->
<!-- wp:social-link {"url":"admin@example.com","service":"instagram"} /-->
<!-- wp:social-link {"url":"https://www.instagram.com","service":"instagram"} /-->
<!-- wp:social-link {"url":"admin@example.com","service":"facebook"} /--></ul>
<!-- wp:social-link {"url":"https://www.facebook.com","service":"facebook"} /--></ul>
<!-- /wp:social-links -->
<!-- wp:loginout /--></div>
@ -51,3 +51,4 @@
line-height: 26px;
}
</style>