[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:
parent
b308132799
commit
ef4ecd286a
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: update
|
||||||
|
Comment: Update unreleased feature
|
||||||
|
|
|
@ -153,8 +153,8 @@ class LaunchYourStore {
|
||||||
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||||
<!-- /wp:spacer -->
|
<!-- /wp:spacer -->
|
||||||
|
|
||||||
<!-- wp:heading {"textAlign":"center","level":1} -->
|
<!-- wp:heading {"textAlign":"center","level":1,"align":"wide"} -->
|
||||||
<h1 class="wp-block-heading has-text-align-center">%s</h1>
|
<h1 class="wp-block-heading alignwide has-text-align-center">%s</h1>
|
||||||
<!-- /wp:heading -->
|
<!-- /wp:heading -->
|
||||||
|
|
||||||
<!-- wp:spacer -->
|
<!-- wp:spacer -->
|
||||||
|
@ -228,6 +228,7 @@ class LaunchYourStore {
|
||||||
*
|
*
|
||||||
* - User must be either an admin or store editor (must be logged in).
|
* - User must be either an admin or store editor (must be logged in).
|
||||||
* - 'woocommerce_coming_soon' option value must be 'yes'
|
* - '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() {
|
public function maybe_add_coming_soon_banner_on_frontend() {
|
||||||
// Do not show the banner if the site is being previewed.
|
// Do not show the banner if the site is being previewed.
|
||||||
|
@ -246,6 +247,13 @@ class LaunchYourStore {
|
||||||
return false;
|
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' );
|
$link = admin_url( 'admin.php?page=wc-settings#wc_settings_general_site_visibility_slotfill' );
|
||||||
|
|
||||||
$text = sprintf(
|
$text = sprintf(
|
||||||
|
|
|
@ -10,11 +10,11 @@
|
||||||
|
|
||||||
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
|
<!-- 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"} -->
|
<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:social-links -->
|
||||||
|
|
||||||
<!-- wp:loginout /--></div>
|
<!-- wp:loginout /--></div>
|
||||||
|
|
|
@ -10,11 +10,11 @@
|
||||||
|
|
||||||
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
|
<!-- 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"} -->
|
<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:social-links -->
|
||||||
|
|
||||||
<!-- wp:loginout /--></div>
|
<!-- wp:loginout /--></div>
|
||||||
|
@ -51,3 +51,4 @@
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue