-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-hero.php
41 lines (36 loc) · 1.32 KB
/
content-hero.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
<?php
/**
* The template used for displaying hero content in page.php and page-templates.
*
* @package w314a
*/
?>
<div class="hero <?php echo w314a_additional_class(); ?>">
<?php if ( ! is_page_template( 'page-templates/front-page.php' ) ) : ?>
<?php the_title( '<div class="hero-wrapper"><h1 class="page-title">', '</h1></div>' ); ?>
<?php else : ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_title( '<div class="hero-wrapper"><h1 class="page-title">', '</h1></div>' ); ?>
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'w314a' ),
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
) );
?>
</div><!-- .entry-content -->
<?php edit_post_link( __( 'Edit', 'w314a' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer>' ); ?>
</article><!-- #post-## -->
<?php endif; ?>
</div><!-- .hero -->
<?php
if ( ! function_exists( 'jetpack_breadcrumbs' ) || 0 == get_theme_mod( 'w314a_breadcrumbs' ) || ! is_page() || is_page_template( 'page-templates/front-page.php' ) || is_front_page() ) {
return;
}
?>
<div class="breadcrumbs-wrapper">
<?php jetpack_breadcrumbs(); ?>
</div><!-- .breadcrumbs-wrapper -->