-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
39 lines (33 loc) · 888 Bytes
/
front-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
<?php
/**
*
* Description: A page template that provides a key component of WordPress as a CMS
* by meeting the need for a carefully crafted introductory page. The front page template
* in Twenty Twelve consists of a page content area for adding text, images, video --
* anything you'd like -- followed by front-page-only widgets in one or two columns.
*
* @package portafolio-theme
*
* @version 0.9.0
* @since 0.9.0
* @author Gerardo Gonzalez
*
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
get_header();
$container = get_option( '_container' );
?>
<main class="<?php echo esc_attr( $container ); ?> bg-light p-0" id="front-page">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
the_content();
endwhile;
else :
_e( 'Sorry, no posts matched your criteria.', 'textdomain' );
endif;
?>
</main>
<?php
get_footer();