-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
60 lines (44 loc) · 1.42 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php get_header(); ?>
<div id="main" role="main">
<?php while (have_posts()) : the_post(); ?>
<?php the_breadcrumb(); ?>
<article class="clear">
<h1 id="page-title"><?php the_title() ?></h1>
<section class="entry-content cf" itemprop="articleBody">
<?php if( has_post_thumbnail()) : ?>
<div id="featured-image-container">
<img class="featured-image" src="
<?php
$thumb_id = get_post_thumbnail_id();
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'large', true);
echo $thumb_url_array[0];
?>
">
</div><!-- end featured image -->
<?php endif; ?>
<?php the_content(); ?>
<?php wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'marta' ),
'after' => '</div>',
) ); ?>
</section>
<?php if ( get_edit_post_link() ) : ?>
<footer class="entry-footer">
<?php
edit_post_link(
sprintf(
/* translators: %s: Name of current post */
esc_html__( 'Edit %s', 'marta' ),
the_title( '<span class="screen-reader-text">"', '"</span>', false )
),
'<span class="edit-link">',
'</span>'
);
?>
</footer><!-- .entry-footer -->
<?php endif; ?>
</article>
<?php endwhile; ?>
</div> <!-- end #main -->
<?php get_template_part('page-footer'); ?>
<?php get_footer(); ?>