Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The main template file for display single post page.
- *
- * @package WordPress
- * @subpackage Pim
- */
- get_header();
- ?>
- <!-- Begin content -->
- <div id="content_wrapper">
- <div class="inner">
- <!-- Begin main content -->
- <div class="inner_wrapper">
- <div class="two_third large">
- <?php
- if (have_posts()) : while (have_posts()) : the_post();
- ?>
- <!-- Begin each blog post -->
- <div class="post_wrapper">
- <hr class="feat vid">
- <div style="padding:0 15px;">
- <div class="post_header">
- <div style="width:85%;margin-top:25px">
- <span class="tag_green">
- <span style="font-size:24px;">
- <a href="<?php home_url(); ?>/videopagine-della-comunicazione/" title="Torna alle Videopagine della comunicazione">Videopagine della comunicazione</a> / </span>
- <span style="font-size:18px;"><?php
- $category = get_the_category();
- if($category[0]){
- echo '<a href="'.get_category_link($category[0]->term_id ).'">'.$category[0]->cat_name.'</a>';
- }
- ?></span>
- </span>
- </div>
- <h1 class="cufon" style="margin-top:0;margin-bottom:20px;">
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
- <?php the_title(); ?>
- </a>
- </h1>
- </div>
- <?php
- if( get_post_meta(get_the_ID(), 'blog_thumb_image_url', true) ) :
- $image_thumb = get_post_meta(get_the_ID(), 'blog_thumb_image_url', true);
- ?>
- <div class="post_img">
- <img class="alignleft image_box" src="<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/timthumb.php?src=<?php echo $image_thumb; ?>&h=380&w=601&zc=1" alt="" />
- </div>
- <?php endif; ?>
- <?php
- print_custom_field('videopreview:wrapper'
- , '<div class="post_vid pagine"><div class="lite videos" id="[+content+]" style="width:601px;height:380px;"></div></div>'
- , '<em></em>');
- ?>
- <?php echo the_content(); ?>
- <br class="clear"/>
- <?php
- print_custom_field('competenze:wrapper:do_shortcode'
- , '<div style="margin-bottom:25px;">
- <hr class="section" /><span class="tag_section">Competenze</span><hr class="section" /><div style="margin-top:25px;">[+content+]</div>
- </div>'
- );
- ?>
- <?php
- print_custom_field('contatti:wrapper:do_shortcode'
- , '<div class="one_half" style="margin-bottom: 25px;">
- <hr class="section" /><span class="tag_section">Contatti</span><hr class="section" /><div style="margin-top:25px;">[+content+]</div>
- </div>'
- );
- ?>
- <?php
- print_custom_field('board:wrapper:do_shortcode'
- , '<div class="one_half last" style="margin-bottom: 25px;">
- <hr class="section" /><span class="tag_section">Board</span><hr class="section" /><div style="margin-top:25px;">[+content+]</div>
- </div>'
- );
- ?>
- <?php
- print_custom_field('conosciamoci:wrapper:do_shortcode'
- , '<div style="margin-bottom:25px;clear:both;">
- <hr class="section" /><span class="tag_section">Conosciamoci meglio</span><hr class="section" /><div style="margin-top:25px;">[+content+]</div></div>'
- );
- ?>
- </div>
- </div>
- <!-- End each blog post -->
- <hr/>
- <br class="clear"/>
- <?php
- //for use in the loop, list 5 post titles related to first tag on current post
- $tags = wp_get_post_tags($post->ID);
- if ($tags) {
- $first_tag = $tags[0]->term_id;
- $args=array(
- 'tag__in' => array($first_tag),
- 'post__not_in' => array($post->ID),
- 'showposts'=>100,
- 'caller_get_posts'=>1
- );
- $my_query = new WP_Query($args);
- if( $my_query->have_posts() ) {
- echo '<h5><span class="tag_green">Articoli Correlati</span></h5>';
- echo '<ul class="posts related">';
- while ($my_query->have_posts()) : $my_query->the_post();
- ?>
- <div class="post_wrapper rubrica" style="display:inline-block">
- <hr class="feat rub">
- <div class="title_home">
- <?php
- $category = get_the_category();
- echo '<span class="tag_red">'.$category[0]->cat_name.'</span>';
- ?>
- <h3>
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
- <?php the_title(); ?>
- </a>
- </h3>
- </div>
- <div class="date_post">
- <?php
- $x = get_custom_field('datapub');
- $time = strtotime($x);
- print date('d', $time);
- ?>
- <div class="month_post"><?php print date('M', $time); ?></div>
- </div>
- </div>
- <?php
- endwhile;
- wp_reset_query();
- echo '</ul>';
- }
- }
- ?>
- <?php endwhile; endif; ?>
- <div style="clear: both; position: relative;">
- <div class="video_email">Se vuoi una Videopagina manda una mail a <a href="mailto:info@youmark.it">info@youmark.it</a></div>
- <div class="pagination"><p><?php posts_nav_link(' '); ?></p></div>
- </div>
- </div>
- <div class="one_fourth home last">
- <div class="sidebar">
- <div class="content">
- <ul class="sidebar_widget">
- <?php dynamic_sidebar('Videopagine Single'); ?>
- </ul>
- </div>
- </div>
- <br class="clear"/>
- <div class="sidebar_bottom"></div>
- </div>
- </div>
- <!-- End main content -->
- <br class="clear"/>
- </div>
- <div class="bottom"></div>
- </div>
- <!-- End content -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement