This repository was archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfront-page.php
More file actions
86 lines (75 loc) · 2.24 KB
/
Copy pathfront-page.php
File metadata and controls
86 lines (75 loc) · 2.24 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php
wp_head();
?>
</head>
<body <?php body_class( 'front-page' ); ?>>
<header>
<section id="site-header-wrapper">
<div class="container">
<?php
tdt_one_woo_site_header_menu();
?>
<div id="site-header" class="align-center">
<?php
tdt_one_site_header(array( 'print_description' => true ));
?>
</div>
<div id="menu-wrap" class="ts-ns-3-1 ts-s-1-3">
<div id="menu">
<?php
tdt_one_header_menu();
?>
</div>
<div id="social" class="align-right">
<?php
tdt_one_social_icons();
?>
</div>
</div>
</div>
</section>
</header>
<?php
do_action('after_header');
?>
<section id="main">
<div class="container">
<?php
if(is_home()&&is_front_page()){
// Posts page
if(have_posts() ) {
get_template_part('parts/the-loop');
} else {
get_template_part('parts/content-none');
}
} else {
// Front page
the_post();
?>
<article id="post-<?php the_id(); ?>" <?php post_class('full-post'); ?>>
<div class="post-content">
<?php the_content(); ?>
</div>
<?php
global $numpages;
if($numpages > 1 ) {
print '<div class="post-pages">';
wp_link_pages();
print '</div>';
}
?>
</article>
<?php
}
?>
</div>
</section>
<?php
get_footer();
?>