Skip to content

Commit

Permalink
refactoring flexible content
Browse files Browse the repository at this point in the history
  • Loading branch information
vBalatroni committed Mar 13, 2021
1 parent 7ac2d26 commit 692841a
Show file tree
Hide file tree
Showing 33 changed files with 17 additions and 32 deletions.
4 changes: 2 additions & 2 deletions wp-content/themes/tedx_theme/page-templates/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
get_header(); ?>

<div class="content-area">
<div class="container">
<div class="container">
<?php while (have_posts()): the_post();
get_template_part('template-parts/content','about');
get_template_part('template-parts/section','sections');
endwhile; ?>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/tedx_theme/page-templates/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="content-area">
<div class="container">
<?php while (have_posts()): the_post();
get_template_part('template-parts/content','contacts');
get_template_part('template-parts/section','sections');
endwhile; ?>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/tedx_theme/page-templates/homepage.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div class="content-area">
<?php while (have_posts()): the_post();
get_template_part('template-parts/content','homepage');
get_template_part('template-parts/section','sections');
endwhile; ?>
</div>

Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/tedx_theme/page-templates/partners.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="content-area">
<div class="container">
<?php while (have_posts()): the_post();
get_template_part('template-parts/content','partners');
get_template_part('template-parts/section','sections');
endwhile; ?>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/tedx_theme/page-templates/team.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div class="content-area">
<?php while (have_posts()): the_post();
get_template_part('template-parts/content','team');
get_template_part('template-parts/section','sections');
endwhile; ?>
</div>

Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/tedx_theme/page-templates/tedcircle.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="content-area">
<div class="container">
<?php while (have_posts()): the_post();
get_template_part('template-parts/content','tedcircle');
get_template_part('template-parts/section','sections');
endwhile; ?>
</div>
</div>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
<?php while( have_rows('page_content') ): the_row(); ?>
<?php include(locate_template('template-parts/about/section-'.get_row_layout().'.php')); ?>
<?php endwhile; ?>
<?php include(locate_template('template-parts/template-common-newsletter.php')); ?>
<?php include(locate_template('template-parts/content-newsletter.php')); ?>
<?php endif; ?>

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@
</div>
<?php endwhile; ?>
<?php endif; ?>

</div>

</section>
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<?php
$hero_image = get_the_post_thumbnail_url();
?>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@


<div class=" lg-col-6 md-col-6 sm-col-12 pt4 block__button-element mx4 pb2 pt2">
<form class='' action="<?php echo $sub_value['url']; ?>">
</form>
<form class='' action="<?php echo $sub_value['url']; ?>">
</form>

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
if( have_rows('page_content') ):
while ( have_rows('page_content') ) : the_row();
include(get_row_layout());
endwhile;
endif; ?>
File renamed without changes.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 692841a

Please sign in to comment.