wordpress/php-fpm/wordpress_files/themes/hero/home-template.php

20 lines
472 B
PHP
Raw Normal View History

2020-05-22 03:40:23 +02:00
<?php
/**
* Template Name: Home Page
*
* @package hero
*/
get_header();
$hero_home_sections = hero_home_section();
get_template_part( 'elements/section', 'slider' );
foreach ($hero_home_sections as $hero_home_section) {
$hero_home_section = str_replace('hero_', '', $hero_home_section);
$hero_home_section = str_replace('_section', '', $hero_home_section);
get_template_part( 'elements/section', $hero_home_section );
}
get_footer();