Guest User

Untitled

a guest
Oct 9th, 2011
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.77 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  4.  
  5. <div class="page_heading blog_single_header no_margin_top"><h1><?php the_title(); ?></h1></div>
  6.  
  7. <div class="blog_date">
  8.  
  9. <div class="the_date">
  10.  
  11. <p> <?php _e('Written By: '); ?> <?php the_author_posts_link(); ?></p> <span class="seperator"><?php _e('|'); ?></span>
  12.  
  13. <p><?php the_date(); ?> </p> <span class="seperator"><?php _e('|'); ?></span>
  14.  
  15. <p><?php _e('Posted In: '); ?></p> <?php the_category(); ?>
  16.  
  17. </div><!-- #the_date -->
  18.  
  19. </div><!-- #date -->
  20.  
  21. <?php $skyali_video = get_post_meta($post->ID, 'skyali_video', true); ?>
  22.  
  23. <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
  24.  
  25. <?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'large'); $image_url = $image_url[0]; ?><div class="thumb <?php disable_blog_img(); ?>">
  26.  
  27. <?php $blogurl = get_template_directory_uri() ; ?>
  28.  
  29. <?php if(!empty($skyali_video)){ $lightbox = '#video_holder';} else { $lightbox = $image_url; } ?>
  30.  
  31. <a href="<?php echo $lightbox; ?>" title="<?php the_title(); ?>" rel="prettyPhoto[inline]"><img src="<?php echo get_template_directory_uri() ; ?>/thumb.php?src=<?php echo $image_url; ?>
  32. &amp;w=581&amp;h=252&amp;zc=1&amp;q=100" width="581" height="252" alt="<?php the_title(); ?>" class="blog_single_img imgf"/></a></div><!-- #thumb --><?php } ?>
  33.  
  34. <div id="video_holder" style="display:none;"><p><?php echo $skyali_video; ?></p></div>
  35.  
  36.  
  37. <div class="pure_content">
  38.  
  39. <?php the_content(); ?>
  40.  
  41. </div><!-- #pure_content -->
  42.  
  43. <div class="list_category <?php disable_share_icons(); ?>">
  44.  
  45. <div class="heading"><h2><?php _e('Share This Article', 'skyali'); ?></h2></div>
  46.  
  47. <div class="share ">
  48.  
  49. <a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>">
  50. <img src="<?php bloginfo('template_directory'); ?>/images/facebook-icon.png" class="shareimg" /></a>
  51.  
  52. <a href="https://twitter.com/intent/tweet?text=<?php the_title(); ?>&nbsp;-&nbsp;<?php the_permalink(); ?>">
  53. <img src="<?php bloginfo('template_directory'); ?>/images/twitter-icon.png" class="shareimg" /></a>
  54.  
  55. <a href="http://www.reddit.com/submit?url=<?php urlencode(the_permalink()); ?>&amp;title=<?php the_title(); ?>">
  56. <img src="<?php bloginfo('template_directory'); ?>/images/reddit-icon.png" class="shareimg" /></a>
  57.  
  58. <a href="http://digg.com/submit?url=<?php the_permalink();?>&amp;title=<?php the_title(); ?>&amp;thumbnails=1">
  59. <img src="<?php bloginfo('template_directory'); ?>/images/digg-icon.png" class="shareimg" /></a>
  60.  
  61. <a href="http://www.google.com/reader/link?title=<?php the_title();?>&amp;url=<?php the_permalink();?>">
  62. <img src="<?php bloginfo('template_directory'); ?>/images/google-icon.png" class="shareimg" /></a>
  63.  
  64. <a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>">
  65. <img src="<?php bloginfo('template_directory'); ?>/images/stumbleupon-icon.png" class="shareimg" /></a>
  66.  
  67. <a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>&amp;source=">
  68. <img src="<?php bloginfo('template_directory'); ?>/images/linkedin-icon.png" class="shareimg" /></a>
  69.  
  70. <a href="http://del.icio.us/post?url=<?php the_permalink();?>&amp;title=<?php the_title(); ?>" class="no_margin_right">
  71. <img src="<?php bloginfo('template_directory'); ?>/images/delicious-icon.png" class="last shareimg" /></a>
  72.  
  73. </div><!-- #share -->
  74.  
  75. </div><!-- #list_category -->
  76.  
  77. <div class="list_category unique_margin_bottom <?php disable_related_news(); ?>">
  78.  
  79. <div class="heading"><h2><?php _e('Related News', 'skyali'); ?></h2></div><!-- #heading -->
  80.  
  81. <?php $post_num = 3; ?>
  82. <?php $i = 1; ?>
  83. <?php
  84. $category = get_the_category();
  85. $categories = array();
  86. foreach($category as $x){ array_push($categories, $x->cat_ID); }
  87. $categories_join = implode(',',$categories);
  88. $exclude_post_id = $post->ID;
  89. $args = array('cat' => $categories_join, 'showposts' => $post_num, 'post__not_in' => array($exclude_post_id));
  90. ?>
  91. <?php $related = new WP_Query($args); while($related->have_posts()) : $related->the_post(); ?>
  92. <?php if($i <= $post_num){ ?>
  93. <?php if($i == $post_num) { $no_margin_right = 'no_margin_right'; } else { $no_margin_right = ''; } ?>
  94.  
  95. <div class="other_news_item <?php echo $no_margin_right; ?> single_item_height">
  96.  
  97. <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
  98.  
  99. <?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'large'); $image_url = $image_url[0]; ?>
  100.  
  101. <?php $blogurl = get_template_directory_uri() ; //$image_url = str_replace($blogurl, '', $image_url); ?>
  102.  
  103. <a href="<?php the_permalink(); ?>"><img src="<?php echo get_template_directory_uri() ; ?>/thumb.php?src=<?php echo $image_url; ?>&amp;w=163&amp;h=99&amp;zc=1&amp;q=100" width="163" height="99" alt="<?php the_title(); ?>" /></a>
  104.  
  105. <?php } ?>
  106.  
  107. </div><!-- #other_news_item -->
  108.  
  109. <?php } ?>
  110. <?php $i++; ?>
  111. <?php endwhile; ?>
  112. <?php wp_reset_query(); ?>
  113.  
  114. </div><!-- #list_category -->
  115.  
  116. <div class="list_category unique_margin_bottom <?php disable_author(); ?>">
  117.  
  118. <div class="heading"><h2><?php _e('About Author', 'skyali'); ?></h2></div>
  119.  
  120. <div class="about_author">
  121.  
  122. <div class="image"><?php echo get_avatar( get_the_author_meta('email'), '75' ); ?></div><!-- image -->
  123.  
  124. <div class="content"><h3><?php echo get_the_author_link(); ?></h3><p><?php the_author_meta("description"); ?></p></div><!-- #content -->
  125.  
  126. </div><!-- about_author -->
  127.  
  128. </div><!-- list_category -->
  129.  
  130. <?php if(get_option('skyali_broadcast_comment_section') != 'disable') { comments_template( '', true ); } ?>
  131.  
  132. <?php endwhile; // end of the loop. ?>
  133.  
  134. <?php get_sidebar(); ?>
  135.  
  136. <?php get_footer(); ?>
  137.  
  138.  
Add Comment
Please, Sign In to add comment