-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
executable file
·60 lines (39 loc) · 1.38 KB
/
page.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
60
<?php
get_header();
// if we have components for this page
if( have_rows('components') ):
// loop through the components
while ( have_rows('components') ) : the_row();
// layout switch
if ( get_row_layout() == 'header' ):
the_header();
elseif ( get_row_layout() == 'slides' ):
the_slides();
elseif ( get_row_layout() == 'separator' ):
the_separator();
elseif ( get_row_layout() == 'content' ):
the_content_area();
elseif ( get_row_layout() == 'content-two' ):
the_content_two_column();
elseif ( get_row_layout() == 'icons' ):
the_icons();
elseif ( get_row_layout() == 'blockquote' ):
the_blockquote();
elseif ( get_row_layout() == 'image_text' ):
the_image_text();
elseif ( get_row_layout() == 'people_photos' ):
the_people_photos();
elseif ( get_row_layout() == 'people' ):
the_people();
elseif ( get_row_layout() == 'button_columns' ):
the_button_columns();
elseif ( get_row_layout() == 'accordions' ):
the_accordions();
elseif ( get_row_layout() == 'post_list' ):
the_post_list();
endif;
// End loop.
endwhile;
endif;
get_footer();
?>