-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-full.php
44 lines (33 loc) · 1.19 KB
/
page-full.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
<?php
/*
Template Name: Full Width Page
*/
?>
<?php get_header(); ?>
<?php
$thumb = '';
$width = (int) apply_filters( 'et_blog_image_width', 1280 );
$height = (int) apply_filters( 'et_blog_image_height', 420 );
$classtext = '';
$titletext = get_the_title();
$thumbnail = get_thumbnail( $width, $height, $classtext, $titletext, $titletext, false, 'Singleimage' );
$thumb = $thumbnail["thumb"];
$show_thumb = et_get_option( 'foxy_page_thumbnails', 'false' );
?>
<?php if ( 'on' == $show_thumb && '' != $thumb ) : ?>
<div class="post-thumbnail">
<?php print_thumbnail( $thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext ); ?>
</div> <!-- .post-thumbnail -->
<?php endif; ?>
<div id="content" class="clearfix fullwidth">
<div id="left-area"<?php if ( 'on' == $show_thumb && '' != $thumb ) echo ' class="et_full_width_image"'; ?>>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php
if ( comments_open() && 'on' == et_get_option( 'foxy_show_pagescomments', 'false' ) )
comments_template( '', true );
?>
<?php endwhile; ?>
</div> <!-- #left-area -->
</div> <!-- #content -->
<?php get_footer(); ?>