-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontent-page.php
executable file
·49 lines (48 loc) · 1.7 KB
/
content-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
<?php
/**
* The template used for displaying page content.
*
* @package Odin
* @since 2.2.0
*/
$entry_content_class = '';
if ( is_page_template( 'page-contato.php' ) ) {
$entry_content_class = 'col-md-5 pull-left col-xs-12';
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' ); ?>
<div class="entry-content <?php echo $entry_content_class;?>">
<?php
the_content();
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'odin' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
) );
?>
</div><!-- .entry-content -->
<?php if ( $value = get_post_meta( get_the_ID(), 'right_content', true ) ) : ?>
<div class="col-md-6 pull-right right-content">
<?php echo apply_filters( 'the_content', $value );?>
</div><!-- .col-md-6 pull-right right-content -->
<?php endif;?>
<?php if ( is_page_template( 'page-contato.php' ) ) : ?>
<div class="entry-content acompanhe">
<h1 class="entry-title">
<?php _e( 'Quer acompanhar nosso dia-dia aqui na roça? Siga nosso instagram e facebook!', 'odin' );?>
</h1><!-- .entry-title -->
<?php if ( $value = get_theme_mod( 'facebook', false ) ) : ?>
<a href="<?php echo esc_url( $value );?>" class="rounded-icon">
<i class="fa fa-facebook"></i>
</a>
<?php endif;?>
<?php if ( $value = get_theme_mod( 'instagram', false ) ) : ?>
<a href="<?php echo esc_url( $value );?>" class="rounded-icon">
<i class="fa fa-instagram"></i>
</a>
<?php endif;?>
</div>
<?php endif;?>
</article><!-- #post-## -->