Advertisement
Dexmaster

single.php

Apr 18th, 2011
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.73 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="main">
  4.  
  5.     <div id="page-content">
  6.    
  7.     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  8.  
  9.     <div class="post" id="post-<?php the_ID(); ?>">
  10.    
  11.     <span id="map"><a href="<?php echo get_option('home'); ?>/">Головна</a> &raquo; <?php the_category(', ') ?></span>
  12.     <br class="clear">
  13. <div id="stats" class="blockstyle"><span class="left">Опубліковано:<?php the_author_posts_link(); ?> , <?php the_time('l, j F Y') ?> | <?php if(function_exists('the_views')) { the_views(); } ?> |</span><span class="left"><a href="#respond"><?php comments_number('Без коментарів', 'Один коментар', '% коментарів' );?></a></span>
  14.     <br class="clear">
  15.  
  16. </div>
  17.  
  18. <div class="post-label">
  19.  
  20.         <?php
  21.         $key="made_in_Ukraine";
  22.         $spec=get_post_custom_values($key);
  23.         if($spec[0]=='1'){ ?>
  24.                 <div class="post-label"> <span class="madeUA-label infrontpage">Made in Ukraine</span> </div>
  25.         <?php } ?>
  26.  
  27.         <?php
  28.         $key="millionaire20";
  29.         $spec=get_post_custom_values($key);
  30.         if($spec[0]=='1'){ ?>
  31.                 <div class="post-label"> <span class="mill20-label infrontpage">Мільйонери в 20+</span> </div>
  32.         <?php } ?>
  33.  
  34. </div>
  35.     <h2 class="title"><?php the_title(); ?></h2>
  36.        
  37.  
  38.     <br class="clear">
  39.     <div class="entry blockstyle">
  40.    
  41.     <?php $status = get_settings ( "cp_postThumb" );
  42.         $status2 = get_settings ( "cp_thumbAuto" );
  43.         $ar_video = get_settings( "ar_video" );
  44.        
  45.         if (!in_category($ar_video)) {
  46.        
  47.         if (( $status2 != "first" ) && ( $status != "no" )) { ?>
  48.  
  49.     <?php $width = get_settings ( "cp_thumbWidth_Post" );
  50.         $height = get_settings ( "cp_thumbHeight_Post" );
  51.         if ( $width == 0 ) { $width = 150; }
  52.         if ( $height == 0 ) { $height = 150; }
  53.     ?> 
  54.  
  55.     <?php $values = get_post_custom_values("Image");
  56.     if (isset($values[0])) { ?>
  57.     <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_option('home'); ?>/<?php
  58. $values = get_post_custom_values("Image"); echo $values[0]; ?>&amp;w=<?php echo $width; ?>&amp;h=<?php echo $height; ?>&amp;zc=1&amp;q=100"
  59. alt="<?php the_title(); ?>" class="left" width="<?php echo $width; ?>px" height="<?php echo $height; ?>px"  />
  60.     <?php } ?>
  61.    
  62.         <?php } } ?>
  63.    
  64.    
  65.    
  66.     <?php the_content('Читати далі &raquo;'); ?>
  67.  
  68.     <?php wp_link_pages(array('before' => '<p><strong>Сторінки:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  69.    
  70.     </div>
  71. <!-- Put this script tag to the <head> of your page -->
  72. <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;layout=standard&amp;show_faces=false&amp;width=400&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:400px; height:40px;"></iframe>
  73.  
  74. <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="interviwer_line">Tweet</a>
  75. <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
  76.  
  77. <script type="text/javascript" src="http://vkontakte.ru/js/api/share.js?10" charset="windows-1251"></script>
  78.  
  79. <!-- Put this script tag to the place, where the Share button will be -->
  80. <p style="text-align: center;"><script type="text/javascript"><!--
  81. document.write(VK.Share.button(false,{type: "round", text: "Мені сподобалось!"}));
  82. --></script></p><br>
  83.  
  84.     </div>
  85.    
  86.    
  87. </p>
  88.    
  89.     <div id="comments">
  90.     <?php comments_template(); ?>
  91.     </div>
  92.  
  93.     <?php endwhile; else: ?>
  94.  
  95.     <p>Вибачте, але немає інтерв&#039;ю.</p>
  96.  
  97.     <?php endif; ?>
  98.  
  99.     </div>
  100.  
  101. </div> <!-- close main -->
  102.  
  103. <?php get_sidebar(); ?>
  104.  
  105. <div class="clear"></div>
  106. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement