59 lines
2.7 KiB
PHP
59 lines
2.7 KiB
PHP
<?php dt_storage('have_sidebar', true);
|
|
$p_active = get_post_meta($post->ID, 'wpcf-active', true);
|
|
$p_offline=get_post_meta($post->ID, 'wpcf-temporarily-offline', true);
|
|
$p_product_link = get_post_meta($post->ID, 'wpcf-product-link', true);
|
|
$p_international_link = get_post_meta($post->ID, 'wpcf-international-product-link', true);
|
|
$p_tracking_pixel = get_post_meta($post->ID, 'wpcf-tracking-pixel', true);
|
|
$p_content = get_post_meta($post->ID,'wpcf-use-content',true);
|
|
$p_button = get_post_meta($post->ID, 'wpcf-merchant-link-button-text', true);
|
|
$p_video= get_post_meta($post->ID, 'wpcf-video-display-options', true);
|
|
$p_custom_page_header=get_post_meta($post->ID, 'wpcf-custom-page-header', true);
|
|
if($p_content==""){$p_content=0;}
|
|
$international=0;
|
|
if(strpos($_SERVER['HTTP_REFERER'],"international-products") != false){$international=1;}
|
|
?>
|
|
<?php get_header(); ?>
|
|
<?php get_template_part('top-bg'); ?>
|
|
<?php get_template_part('parallax'); ?>
|
|
<div id="wrapper">
|
|
<?php get_template_part('nav'); ?>
|
|
<div id="content_bg">
|
|
<div id="container">
|
|
|
|
<?php if ( function_exists('yoast_breadcrumb') ) {yoast_breadcrumb('<p id="breadcrumbs">','</p>');} ?>
|
|
<?php
|
|
if( of_get_option('misc-show_next_prev_post') ) {
|
|
dt_get_next_prev_post();
|
|
}
|
|
?>
|
|
<?php if( have_posts() ): while( have_posts() ): the_post(); ?>
|
|
<?php if ( get_the_title() && $p_custom_page_header == "") : ?>
|
|
<?php wp_gdsr_render_article(10, false, 'oxygen', 16); ?>
|
|
|
|
<h1 style="line-height:28px;padding:0px !important;"><?php the_title();?></h1>
|
|
<?php endif; ?>
|
|
<?php if ( get_the_title() && $p_custom_page_header !="") : ?>
|
|
<div style="width:100% !important;margin:0px auto !important;">
|
|
<div style="margin:7px 20px 0 20px;"><?php echo $p_custom_page_header; ?>aaa</div>
|
|
</div>
|
|
<h1 style="font-size:12px !important;line-height:16px !important;"><?php the_title();?></h1>
|
|
<?php endif; ?>
|
|
|
|
<?php if( !post_password_required() ): ?>
|
|
<?php ; ?>
|
|
<?php if( $p_content==0 && $p_active==1){get_template_part('single', 'dt-product');} ?>
|
|
<?php if( $p_content==1 && $p_active==1){get_template_part('single', 'dt-product-content');} ?>
|
|
|
|
<?php else: ?>
|
|
<div class="hr hr-wide gap-small"></div>
|
|
<?php echo get_the_password_form(); ?>
|
|
<?php endif;// password protection
|
|
endwhile;
|
|
endif;
|
|
?>
|
|
</div><?php // end container ?>
|
|
<?php dt_widget_area( 'sidebar', null, 'sidebar_8' ); ?>
|
|
<div class="clrfix"> </div>
|
|
</div>
|
|
</div>
|
|
<?php get_footer(); ?>
|