banner.php
1 year ago
coming-soon-entire-site.php
1 year ago
coming-soon-store-only.php
1 year ago
coming-soon.php
1 year ago
content-right-image-left.php
1 year ago
featured-category-cover-image.php
1 year ago
featured-category-triple.php
1 year ago
filters.php
1 year ago
footer-large.php
1 year ago
footer-simple-menu.php
2 years ago
footer-with-3-menus.php
2 years ago
four-image-grid-content-left.php
1 year ago
header-centered-pattern.php
1 year ago
header-distraction-free.php
1 year ago
header-essential.php
1 year ago
header-large.php
1 year ago
header-minimal.php
1 year ago
heading-with-three-columns-of-content-with-link.php
1 year ago
hero-product-3-split.php
1 year ago
hero-product-chessboard.php
1 year ago
hero-product-split.php
1 year ago
intro-centered-content-with-image-below.php
1 year ago
just-arrived-full-hero.php
1 year ago
no-products-found-filters.php
2 years ago
no-products-found.php
2 years ago
page-coming-soon-default.php
1 year ago
page-coming-soon-with-header-footer.php
1 year ago
product-collection-3-columns.php
1 year ago
product-collection-4-columns.php
1 year ago
product-collection-5-columns.php
1 year ago
product-collection-featured-products-5-columns.php
1 year ago
product-query-product-gallery.php
1 year ago
product-search-form.php
2 years ago
related-products.php
1 year ago
social-follow-us-in-social-media.php
1 year ago
testimonials-3-columns.php
1 year ago
testimonials-single.php
1 year ago
three-columns-with-images-and-content.php
1 year ago
social-follow-us-in-social-media.php
96 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Title: Social: Follow us on social media |
| 4 | * Slug: woocommerce-blocks/social-follow-us-in-social-media |
| 5 | * Categories: WooCommerce, social-media |
| 6 | */ |
| 7 | |
| 8 | use Automattic\WooCommerce\Blocks\AIContent\PatternsHelper; |
| 9 | |
| 10 | $image1 = PatternsHelper::get_image_url( $images, 0, 'assets/images/pattern-placeholders/drinkware-liquid-tableware-dishware-bottle-fluid.jpg' ); |
| 11 | $image2 = PatternsHelper::get_image_url( $images, 1, 'assets/images/pattern-placeholders/watch-hand-brand-jewellery-strap-platinum.jpg' ); |
| 12 | $image3 = PatternsHelper::get_image_url( $images, 2, 'assets/images/pattern-placeholders/tree-branch-plant-wood-leaf-flower.jpg' ); |
| 13 | $image4 = PatternsHelper::get_image_url( $images, 3, 'assets/images/pattern-placeholders/road-sport-vintage-wheel-retro-old.jpg' ); |
| 14 | |
| 15 | $social_title = $content['titles'][0]['default'] ?? ''; |
| 16 | ?> |
| 17 | |
| 18 | <!-- wp:group {"metadata":{"name":"Social: Follow us on social media"},"align":"full","style":{"spacing":{"padding":{"top":"calc( 0.5 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))","bottom":"calc( 0.5 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))","left":"var(--wp--style--root--padding-left, var(--wp--custom--gap--horizontal))","right":"var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal))"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained","justifyContent":"center"}} --> |
| 19 | <div class="wp-block-group alignfull" style="margin-top:0;margin-bottom:0;padding-top:calc( 0.5 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)));padding-right:var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal));padding-bottom:calc( 0.5 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)));padding-left:var(--wp--style--root--padding-left, var(--wp--custom--gap--horizontal))"> |
| 20 | <!-- wp:spacer {"height":"calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))"} --> |
| 21 | <div style="height:calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))" aria-hidden="true" class="wp-block-spacer"></div> |
| 22 | <!-- /wp:spacer --> |
| 23 | |
| 24 | <!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} --> |
| 25 | <div class="wp-block-group alignwide"> |
| 26 | <!-- wp:heading {"level":3,"align":"wide"} --> |
| 27 | <h3 class="wp-block-heading alignwide"><?php echo esc_html( $social_title ); ?></h3> |
| 28 | <!-- /wp:heading --> |
| 29 | |
| 30 | <!-- wp:social-links {"iconColor":"primary","openInNewTab":true,"style":{"spacing":{"blockGap":{"top":"0","left":"16px"}}},"className":"has-icon-color is-style-logos-only","layout":{"type":"flex","justifyContent":"space-between","orientation":"horizontal"}} --> |
| 31 | <ul class="wp-block-social-links has-icon-color is-style-logos-only"> |
| 32 | <!-- wp:social-link {"url":"https://x.com","service":"x"} /--> |
| 33 | |
| 34 | <!-- wp:social-link {"url":"https://www.instagram.com/","service":"instagram"} /--> |
| 35 | |
| 36 | <!-- wp:social-link {"url":"https://www.facebook.com/","service":"facebook"} /--> |
| 37 | |
| 38 | <!-- wp:social-link {"url":"https://www.twitch.tv/","service":"twitch"} /--> |
| 39 | </ul> |
| 40 | <!-- /wp:social-links --> |
| 41 | </div> |
| 42 | <!-- /wp:group --> |
| 43 | |
| 44 | <!-- wp:spacer {"height":"var:preset|spacing|20"} --> |
| 45 | <div style="height:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div> |
| 46 | <!-- /wp:spacer --> |
| 47 | |
| 48 | <!-- wp:columns {"align":"wide"} --> |
| 49 | <div class="wp-block-columns alignwide"> |
| 50 | <!-- wp:column {"width":"25%"} --> |
| 51 | <div class="wp-block-column" style="flex-basis:25%"> |
| 52 | <!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none"} --> |
| 53 | <figure class="wp-block-image is-resized size-large"> |
| 54 | <img src="<?php echo esc_url( $image1 ); ?>" alt="<?php esc_attr_e( 'Placeholder image used to represent products being showcased under the social media icons. 1 out of 4.', 'woocommerce' ); ?>" style="aspect-ratio:1;object-fit:cover;"/> |
| 55 | </figure> |
| 56 | <!-- /wp:image --> |
| 57 | </div> |
| 58 | <!-- /wp:column --> |
| 59 | |
| 60 | <!-- wp:column {"width":"25%"} --> |
| 61 | <div class="wp-block-column" style="flex-basis:25%"> |
| 62 | <!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none"} --> |
| 63 | <figure class="wp-block-image is-resized size-large"> |
| 64 | <img src="<?php echo esc_url( $image2 ); ?>" alt="<?php esc_attr_e( 'Placeholder image used to represent products being showcased under the social media icons. 2 out of 4.', 'woocommerce' ); ?>" style="aspect-ratio:1;object-fit:cover;"/> |
| 65 | </figure> |
| 66 | <!-- /wp:image --> |
| 67 | </div> |
| 68 | <!-- /wp:column --> |
| 69 | |
| 70 | <!-- wp:column {"width":"25%"} --> |
| 71 | <div class="wp-block-column" style="flex-basis:25%"> |
| 72 | <!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none"} --> |
| 73 | <figure class="wp-block-image is-resized size-large"> |
| 74 | <img src="<?php echo esc_url( $image3 ); ?>" alt="<?php esc_attr_e( 'Placeholder image used to represent products being showcased under the social media icons. 3 out of 4.', 'woocommerce' ); ?>" style="aspect-ratio:1;object-fit:cover;"/> |
| 75 | </figure> |
| 76 | <!-- /wp:image --> |
| 77 | </div> |
| 78 | <!-- /wp:column --> |
| 79 | |
| 80 | <!-- wp:column {"width":"25%"} --> |
| 81 | <div class="wp-block-column" style="flex-basis:25%"> |
| 82 | <!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none"} --> |
| 83 | <figure class="wp-block-image is-resized size-large"> |
| 84 | <img src="<?php echo esc_url( $image4 ); ?>" alt="<?php esc_attr_e( 'Placeholder image used to represent products being showcased under the social media icons. 4 out of 4.', 'woocommerce' ); ?>" style="aspect-ratio:1;object-fit:cover;"/> |
| 85 | </figure> |
| 86 | <!-- /wp:image --> |
| 87 | </div> |
| 88 | <!-- /wp:column --> |
| 89 | </div> |
| 90 | <!-- /wp:columns --> |
| 91 | |
| 92 | <!-- wp:spacer {"height":"calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))"} --> |
| 93 | <div style="height:calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))" aria-hidden="true" class="wp-block-spacer"></div> |
| 94 | <!-- /wp:spacer --> |
| 95 | </div> |
| 96 | <!-- /wp:group --> |