-
Notifications
You must be signed in to change notification settings - Fork 5
/
woocommerce-page-my-account.php
59 lines (56 loc) · 2.47 KB
/
woocommerce-page-my-account.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
// Template Name: Woocomerce Page My Account
get_header(); ?>
<div class="w-full">
<?php
/*
if (!is_front_page()) : ?>
<section class="px-4 md:px-6 font-roboto text-sm my-4 md:my-8">
<div class="border-t border-b border-gray-400 py-2">
<?php echo do_shortcode(' [wpseo_breadcrumb] '); ?>
</div>
</section>
<?php endif; */?>
<section class="w-full px-4 md:px-6 mx-auto my-4 md:my-8">
<?php echo
the_content();
?>
</section>
<?php
$index = 0;
if (have_rows('layout_de_pagina')):
while (have_rows('layout_de_pagina')):
the_row();
if (get_row_layout() == 'video_e_texto'):
get_template_part('template-parts/layout/blocks/video_e_texto', 'video_e_texto', array('index' => $index));
endif;
if (get_row_layout() == 'imagem_e_texto'):
get_template_part('template-parts/layout/blocks/imagem_e_texto', 'imagem_e_texto', array('index' => $index));
endif;
if (get_row_layout() == 'texto_sobre_imagem'):
get_template_part('template-parts/layout/blocks/texto_sobre_imagem', 'texto_sobre_imagem', array('index' => $index));
endif;
if (get_row_layout() == 'spacer'):
get_template_part('template-parts/layout/blocks/spacer', 'spacer', array('index' => $index));
endif;
if (get_row_layout() == 'hero_com_texto'):
get_template_part('template-parts/layout/blocks/hero_com_texto', 'hero_com_texto', array('index' => $index));
endif;
if (get_row_layout() == 'texto_e_btn'):
get_template_part('template-parts/layout/blocks/texto_e_btn', 'texto_e_btn', array('index' => $index));
endif;
if (get_row_layout() == 'imagem_texto_hashtag'):
get_template_part('template-parts/layout/blocks/imagem_texto_hashtag', 'imagem_texto_hashtag', array('index' => $index));
endif;
if (get_row_layout() == 'grid_texto_img_btn'):
get_template_part('template-parts/layout/blocks/grid_texto_img_btn', 'grid_texto_img_btn', array('index' => $index));
endif;
if (get_row_layout() == 'cta_categorias'):
get_template_part('template-parts/layout/blocks/cta_categorias', 'cta_categorias', array('index' => $index));
endif;
$index++;
endwhile;
endif;
?>
</div>
<?php get_footer(); ?>