Skip to content

Commit

Permalink
Coding standards no arquivo template-frontpage.php
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldomatias committed May 24, 2018
1 parent a1381fa commit 514751f
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions template-frontpage.php
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
<?php
/**
*Template Name: Frontpage
* Template Name: Frontpage
*
* @link https://developer.wordpress.org/themes/template-files-section/page-template-files/
*
* @package coletivo
*/

get_header(); ?>

<div id="content" class="site-content">
<main id="main" class="site-main" role="main">
<?php
<div id="content" class="site-content">
<main id="main" class="site-main" role="main">

do_action( 'coletivo_frontpage_before_section_parts' );
<?php
do_action( 'coletivo_frontpage_before_section_parts' );

if ( ! has_action( 'coletivo_frontpage_section_parts' ) ) {

$order = get_theme_mod( 'coletivo_sections_order', 'hero,features,yourslider,featuredpage,services,portfolio,videolightbox,gallery,team,news,contact,social' );
$order = explode( ',', $order );
if ( ! has_action( 'coletivo_frontpage_section_parts' ) ) {

$order = get_theme_mod( 'coletivo_sections_order', 'hero,features,yourslider,featuredpage,services,portfolio,videolightbox,gallery,team,news,contact,social' );
$order = explode( ',', $order );
$sections = apply_filters( 'coletivo_frontpage_sections_order', $order );

foreach ( $sections as $section ) {

// var_dump( get_theme_mod( 'coletivo_sections_order' ) );
$sections = apply_filters( 'coletivo_frontpage_sections_order',
$order );

foreach ( $sections as $section ){
/**
* Hook before section
*/
do_action('coletivo_before_section_'.$section );
do_action( 'coletivo_before_section_part', $section );

/**
* Load section template part
*/
get_template_part( 'section-parts/section', $section );

/**
* Hook after section
*/
do_action('coletivo_after_section_part', $section );
do_action('coletivo_after_section_'.$section );
}

} else {
do_action( 'coletivo_frontpage_section_parts' );
/**
* Hook before section
*/
do_action( 'coletivo_before_section_' . $section );
do_action( 'coletivo_before_section_part', $section );

/**
* Load section template part
*/
get_template_part( 'section-parts/section', $section );

/**
* Hook after section
*/
do_action( 'coletivo_after_section_part', $section );
do_action( 'coletivo_after_section_' . $section );

}

do_action( 'coletivo_frontpage_after_section_parts' );
} else {
do_action( 'coletivo_frontpage_section_parts' );
}

?>
</main><!-- #main -->
</div><!-- #content -->
do_action( 'coletivo_frontpage_after_section_parts' );
?>
</main><!-- #main -->
</div><!-- #content -->

<?php get_footer(); ?>
<?php get_footer();

0 comments on commit 514751f

Please sign in to comment.