Created
January 3, 2013 21:58
-
-
Save gicolek/4447756 to your computer and use it in GitHub Desktop.
Arturek :*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template name: Dla Arturq <3 | |
*/ | |
get_header() ?> | |
<?php the_post() ?> | |
<?php wpized_load_partial('breadcrumbs') ?> | |
<div class="<?php echo debt_america_get_layout_class() ?> container clearfix"> | |
<?php if ( wpized_layout_has_sidebar('left-sidebar') ) : ?> | |
<?php get_sidebar('left') ?> | |
<?php endif; ?> | |
<div id="main" role="main"> | |
<?php if ( has_post_thumbnail() ) : ?> | |
<?php | |
$image_atts = array( | |
'alt' => trim( strip_tags( $post->post_title ) ), | |
'title' => trim( strip_tags( $post->post_title ) ), | |
); | |
?> | |
<div class="banner banner-quote box-border"> | |
<?php | |
if ( wpized_layout_has_sidebar('left-sidebar') ) { | |
echo get_the_post_thumbnail( $post->ID, 'page-banner', $image_atts ); | |
} else { | |
echo get_the_post_thumbnail( $post->ID, 'page-banner-large', $image_atts ); | |
} | |
?> | |
<?php if ( get_post_meta( $post->ID, '_debt_america_page_caption_text', true ) || get_post_meta( $post->ID, '_debt_america_page_cta_button_text', true ) || get_post_meta( $post->ID, '_debt_america_page_cta_button_url', true ) ) : ?> | |
<div class="caption"> | |
<?php if ( get_post_meta( $post->ID, '_debt_america_page_caption_text', true ) ) : ?> | |
<h1><?php echo esc_html( get_post_meta( $post->ID, '_debt_america_page_caption_text', true ) ) ?></h1> | |
<?php endif; ?> | |
<?php if ( get_post_meta( $post->ID, '_debt_america_page_cta_button_text', true ) && get_post_meta( $post->ID, '_debt_america_page_cta_button_url', true ) ) : ?> | |
<button class="btn btn-a" onclick="window.location='<?php echo esc_url( get_post_meta( $post->ID, '_debt_america_page_cta_button_url', true ) ) ?>';"><?php echo esc_html( get_post_meta( $post->ID, '_debt_america_page_cta_button_text', true ) ) ?></button> | |
<?php endif; ?> | |
</div> | |
<?php endif; ?> | |
</div> | |
<!-- / banner --> | |
<?php endif; ?> | |
<div class="content box-border"> | |
<?php if ( wpized_layout_has_sidebar('inner-sidebar') ) : ?> | |
<div class="inner-content"> | |
<header class="entry-header"> | |
<h1 class="name name-page"><?php the_title() ?></h1> | |
</header> | |
<div class="entry-content"> | |
<?php wpized_load_partial('sharing-tools') ?> | |
<?php the_content() ?> | |
<?php if ( comments_open() ) : ?> | |
<?php wpized_load_partial('facebook-comments') ?> | |
<?php endif; ?> | |
</div> | |
</div> | |
<?php get_sidebar('inner') ?> | |
<?php else: ?> | |
<header class="entry-header"> | |
<h1 class="name name-page"><?php the_title() ?></h1> | |
</header> | |
<div class="entry-content"> | |
<?php wpized_load_partial('sharing-tools') ?> | |
<?php the_content() ?> | |
<?php if ( comments_open() ) : ?> | |
<?php wpized_load_partial('facebook-comments') ?> | |
<?php endif; ?> | |
</div> | |
<?php endif; ?> | |
</div> | |
<!-- / content --> | |
</div> | |
<!-- / main --> | |
<hr> | |
</div> | |
<!-- / container --> | |
<?php get_footer() ?> | |
/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment