template-surecart-blank.php
2 years ago
template-surecart-collection.php
1 year ago
template-surecart-dashboard.php
2 years ago
template-surecart-product.php
1 year ago
template-surecart-product.php
24 lines
| 1 | <?php |
| 2 | get_header(); |
| 3 | global $content_width; |
| 4 | echo '<style> |
| 5 | .sc-template-wrapper, |
| 6 | .sc-template-container { |
| 7 | width: 100%; |
| 8 | } |
| 9 | .sc-template-wrapper .sc-template-container { |
| 10 | max-width: var(--wp--style--global--wide-size, ' . (int) ( $content_width ?? 1170 ) . 'px) !important; |
| 11 | margin-left: auto; |
| 12 | margin-right: auto; |
| 13 | } |
| 14 | </style>'; |
| 15 | $product = sc_get_product(); |
| 16 | ?> |
| 17 | <div class="wp-block-group is-layout-constrained sc-template-wrapper" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)"> |
| 18 | <div class="wp-block-group alignwide sc-template-container"> |
| 19 | <?php echo surecart_get_the_block_template_html( $product->template_part->content ?? '' ); // phpcs:ignore WordPress.Security.EscapeOutput ?> |
| 20 | </div> |
| 21 | </div> |
| 22 | <?php |
| 23 | get_footer(); |
| 24 |