File: /home/nudepix.eu/public_html/wp-content/themes/cpp/page.php
<?php get_header(); ?>
<?php if((imwb_interest_get_option('pagesidebar') == '1' || imwb_interest_get_option('pagesidebar') == '2')) get_sidebar(); ?>
<?php while(have_posts()): the_post();
$postImage = imwb_interest_get_the_image(Array('image_class' => 'tack_entry_img', "link_to_post" => false, 'echo' => false, 'size' => '', 'use_image_scan_link' => true));
preg_match_all( '|<img.*?src=[\'"](.*?)[\'"].*?>|i', $postImage, $matches );
$postImageSrc = $matches[1][0];
?>
<div class="tack_entry">
<?php if(imwb_interest_get_option('hidepgtitle') == 'N') { ?>
<h2><?php the_title(); ?></h2>
<?php } ?>
<?php if(imwb_interest_get_option('hidepgdetails') == 'N') { ?>
<p class='stats'>Pinned on <?php the_date(); ?> at <?php the_time(); ?> by <?php the_author(); ?></p>
<?php } ?>
<div class="actions">
<?php if(imwb_interest_get_option('pgrepinbtn') == '1') { ?>
<a class="button" href="http://pinterest.com/pin/create/bookmarklet/?media=<?php echo urlencode($postImageSrc)?>&url=<?php urlencode(the_permalink())?>&title=<?php echo urlencode(the_title('','',false))?>&is_video=false&description=<?php echo urlencode(the_title('','',false))?>" <?php echo imwb_interest_get_option('pgpinopen') == 'Y' ? "target='_blank'" : "" ?>><strong><em></em>Repin</strong></a>
<?php }
if(imwb_interest_get_option('pglikebtn') == '1') { ?>
<?php if(imwb_interest_get_option('sneakylikebtn') == '1') { ?>
<div id="facebook_like_button_holder" >
<iframe src="//www.facebook.com/plugins/like.php?href=<?php urlencode(the_permalink())?>&send=false&layout=button_count&width=450&show_faces=false&action=like&colorscheme=light&font=verdana&height=21&appId=208343952536987" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>
<div id="fake_facebook_button" class="button likebtn"><strong><em></em>Like</strong></div>
</div>
<?php } else { ?>
<a class="button likebtn" onclick="window.open(this.href, 'popupwindow', 'width=655,height=380,scrollbars,resizable'); return false;" href="http://www.facebook.com/sharer.php?u=<?php urlencode(the_permalink())?>&t=<?php echo urlencode(the_title('','',false))?>" target='_blank'><em></em>Like</a> <?php } ?>
<?php
}
$post_id = get_the_ID();
if (!empty($post_id)) {
$post_link = get_post_meta( $post_id, 'imwb_interest_post_link_url', true );
if (!empty($post_link)) {
$post_link_text = get_post_meta( $post_id, 'imwb_interest_post_link_text', true );
echo '<div id="meta_data">';
if(!empty($post_link_text))
echo '<a href="'.$post_link.'" target="_blank" rel="nofollow">'.$post_link_text.'</a>';
else
echo '<a href="'.$post_link.'" target="_blank" rel="nofollow">'.$post_link.'</a>';
echo '</div>';
}
}
?>
</div>
<?php if(!is_cvc_post($post_id)) { ?>
<div id="image">
<?php echo $postImage; ?>
</div>
<?php } ?>
<div id="content">
<?php
$content = get_the_content();
$content = apply_filters('imwb_interest_filter_content', $content, $postImageSrc );
// $content = do_shortcode( $content );
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
?>
</div>
<?php if(imwb_interest_get_option('hidepgcomments') == 'N') { ?>
<?php comments_template("", true); ?>
<?php } ?>
</div>
<?php endwhile;?>
<?php get_footer(); ?>