banner.php
2 years ago
discount-banner-with-image.php
2 years ago
discount-banner.php
2 years ago
featured-category-cover-image.php
2 years ago
featured-category-focus.php
2 years ago
featured-category-triple.php
2 years ago
featured-products-fresh-and-tasty.php
2 years ago
filters.php
2 years ago
footer-large-dark.php
2 years ago
footer-large.php
2 years ago
footer-simple-dark.php
2 years ago
footer-simple-menu.php
2 years ago
footer-simple.php
2 years ago
footer-with-2-menus-dark.php
2 years ago
footer-with-2-menus.php
2 years ago
footer-with-3-menus.php
2 years ago
header-centered-pattern.php
2 years ago
header-essential-dark.php
2 years ago
header-essential.php
2 years ago
header-large-dark.php
2 years ago
header-large.php
2 years ago
header-minimal.php
2 years ago
hero-product-3-split.php
2 years ago
hero-product-chessboard.php
2 years ago
hero-product-split.php
2 years ago
just-arrived-full-hero.php
2 years ago
no-products-found.php
2 years ago
product-collection-3-columns.php
2 years ago
product-collection-4-columns.php
2 years ago
product-collection-5-columns.php
2 years ago
product-collection-banner.php
2 years ago
product-collection-featured-products-5-columns.php
2 years ago
product-collection-full-grid.php
2 years ago
product-collection-grid.php
2 years ago
product-collection-rows.php
2 years ago
product-collection-simple-grid.php
2 years ago
product-collections-featured-collection.php
2 years ago
product-collections-featured-collections.php
2 years ago
product-collections-newest-arrivals.php
2 years ago
product-details-listing.php
2 years ago
product-details-pattern.php
2 years ago
product-featured-2-columns.php
2 years ago
product-hero-2-col-2-row.php
2 years ago
product-hero.php
2 years ago
product-listing-with-gallery-and-description.php
2 years ago
product-query-4-column-product-row.php
2 years ago
product-query-large-image-product-gallery.php
2 years ago
product-query-minimal-product-list.php
2 years ago
product-query-product-gallery.php
2 years ago
product-query-product-list-with-1-1-images.php
2 years ago
product-query-product-list-with-full-product-description.php
2 years ago
product-search-form.php
2 years ago
related-products.php
2 years ago
shop-by-price.php
2 years ago
small-discount-banner-with-image.php
2 years ago
social-follow-us-in-social-media.php
2 years ago
store-info-alt-image-and-text.php
2 years ago
testimonials-3-columns.php
2 years ago
testimonials-single.php
2 years ago
social-follow-us-in-social-media.php
85 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 |
| 6 | */ |
| 7 | |
| 8 | use Automattic\WooCommerce\Blocks\Patterns\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 {"align":"wide","style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"var:preset|spacing|30","right":"var:preset|spacing|30"},"margin":{"top":"0px","bottom":"80px"}}},"layout":{"type":"constrained"}} --> |
| 19 | <div class="wp-block-group alignwide" style="margin-top:0px;margin-bottom:80px;padding-top:0;padding-right:var(--wp--preset--spacing--30);padding-bottom:0;padding-left:var(--wp--preset--spacing--30)"> |
| 20 | <!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} --> |
| 21 | <div class="wp-block-group alignwide"> |
| 22 | <!-- wp:heading {"level":3,"align":"wide"} --> |
| 23 | <h3 class="wp-block-heading alignwide"><?php echo esc_html( $social_title ); ?></h3> |
| 24 | <!-- /wp:heading --> |
| 25 | |
| 26 | <!-- 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"}} --> |
| 27 | <ul class="wp-block-social-links has-icon-color is-style-logos-only"> |
| 28 | <!-- wp:social-link {"url":"https://x.com","service":"x"} /--> |
| 29 | |
| 30 | <!-- wp:social-link {"url":"https://www.instagram.com/","service":"instagram"} /--> |
| 31 | |
| 32 | <!-- wp:social-link {"url":"https://www.facebook.com/","service":"facebook"} /--> |
| 33 | |
| 34 | <!-- wp:social-link {"url":"https://www.twitch.tv/","service":"twitch"} /--> |
| 35 | </ul> |
| 36 | <!-- /wp:social-links --> |
| 37 | </div> |
| 38 | <!-- /wp:group --> |
| 39 | |
| 40 | <!-- wp:columns {"align":"wide","style":{"spacing":{"margin":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}}} --> |
| 41 | <div class="wp-block-columns alignwide" style="margin-top:var(--wp--preset--spacing--40);margin-bottom:var(--wp--preset--spacing--40)"> |
| 42 | <!-- wp:column {"width":"25%"} --> |
| 43 | <div class="wp-block-column" style="flex-basis:25%"> |
| 44 | <!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none"} --> |
| 45 | <figure class="wp-block-image is-resized size-large"> |
| 46 | <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;"/> |
| 47 | </figure> |
| 48 | <!-- /wp:image --> |
| 49 | </div> |
| 50 | <!-- /wp:column --> |
| 51 | |
| 52 | <!-- wp:column {"width":"25%"} --> |
| 53 | <div class="wp-block-column" style="flex-basis:25%"> |
| 54 | <!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none"} --> |
| 55 | <figure class="wp-block-image is-resized size-large"> |
| 56 | <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;"/> |
| 57 | </figure> |
| 58 | <!-- /wp:image --> |
| 59 | </div> |
| 60 | <!-- /wp:column --> |
| 61 | |
| 62 | <!-- wp:column {"width":"25%"} --> |
| 63 | <div class="wp-block-column" style="flex-basis:25%"> |
| 64 | <!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none"} --> |
| 65 | <figure class="wp-block-image is-resized size-large"> |
| 66 | <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;"/> |
| 67 | </figure> |
| 68 | <!-- /wp:image --> |
| 69 | </div> |
| 70 | <!-- /wp:column --> |
| 71 | |
| 72 | <!-- wp:column {"width":"25%"} --> |
| 73 | <div class="wp-block-column" style="flex-basis:25%"> |
| 74 | <!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none"} --> |
| 75 | <figure class="wp-block-image is-resized size-large"> |
| 76 | <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;"/> |
| 77 | </figure> |
| 78 | <!-- /wp:image --> |
| 79 | </div> |
| 80 | <!-- /wp:column --> |
| 81 | </div> |
| 82 | <!-- /wp:columns --> |
| 83 | </div> |
| 84 | <!-- /wp:group --> |
| 85 |