Advertisement
Guest User

Untitled

a guest
Dec 15th, 2012
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. <?php
  2. global $options;
  3. foreach ($options as $value) {
  4. if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
  5. }
  6. $dateformat = get_option('date_format');
  7. $timeformat = get_option('time_format');
  8. get_header(); ?>
  9.  
  10. <div id="content">
  11. <div class="wrap">
  12.  
  13. <?php wp_reset_query(); if (have_posts()) : while (have_posts()) : the_post(); ?>
  14.  
  15. <div class="postInfo">
  16.  
  17. <h1 class="title"><?php the_title(); ?></h1>
  18. <p class="postmetadata"><?php _e('Posted by','wpzoom');?> <?php the_author_posts_link(); ?> <?php _e('in','wpzoom');?> <span class="category"><?php the_category(', '); ?></span> <?php _e('on','wpzoom');?> <?php the_time("$dateformat $timeformat"); ?> / <a href="<?php the_permalink() ?>#commentspost" title="Jump to the comments"><?php comments_number(__('no comments', 'wpzoom'),__('1 comment', 'wpzoom'),__('% comments', 'wpzoom')); ?></a><?php edit_post_link( __('EDIT', 'wpzoom'), ' / ', ''); ?></p>
  19.  
  20. </div>
  21.  
  22. <div id="main">
  23.  
  24. <div class="column column-double column-last widget single">
  25.  
  26. <?php if (strlen($wpzoom_ad_content_imgpath) > 1 && $wpzoom_ad_content_select == 'Yes' && $wpzoom_ad_content_pos == 'Before') { echo '<div class="banner">'.stripslashes($wpzoom_ad_content_imgpath)."</div>"; }?>
  27.  
  28. <div class="post-content">
  29. <?php the_content(''); ?>
  30. </div>
  31. <?php wp_link_pages(array('before' => '<p class="pages"><strong>'.__('Pages', 'wpzoom').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  32. <div class="clear">&nbsp;</div>
  33. <?php the_tags( '<p class="tags">'.__('Tags', 'wpzoom').': ', ', ', '</p>'); ?>
  34. <?php if (strlen($wpzoom_ad_content_imgpath) > 1 && $wpzoom_ad_content_select == 'Yes' && $wpzoom_ad_content_pos == 'After') { echo '<div class="banner">'.stripslashes($wpzoom_ad_content_imgpath)."</div>"; }?>
  35.  
  36. <div class="social">
  37. <h3><?php _e('Share this article','wpzoom');?></h3>
  38. <ul>
  39. <li><a href="http://twitter.com/share?url=<?php echo urlencode(the_permalink()); ?>&amp;text=<?php echo urlencode(the_title()); ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/twitter.png" alt="Tweet This!" /></a></li>
  40. <li><a href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>&amp;title=<?php the_title_attribute();?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/digg.png" alt="Digg it!" /></a></li>
  41. <li><a href="http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=<?php the_permalink();?>&amp;title=<?php the_title_attribute();?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/delicious.png" alt="Add to Delicious!" /></a></li>
  42. <li><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&amp;t=<?php the_title(); ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/facebook.png" alt="Share on Facebook!" /></a></li>
  43. <li><a href="http://reddit.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute();?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/reddit.png" alt="Share on Reddit!" /></a></li>
  44. </ul>
  45. <div class="clear">&nbsp;</div>
  46. </div><!-- end .social -->
  47.  
  48. <?php comments_template(); ?>
  49.  
  50. <div class="clear">&nbsp;</div>
  51.  
  52. </div><!-- end .single -->
  53.  
  54. </div><!-- end #main -->
  55.  
  56. <?php endwhile; endif; ?>
  57.  
  58. <div id="sidebar">
  59.  
  60. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar') ) : endif; ?>
  61.  
  62. <?php if ($wpzoom_tabs_show_single == 'Yes') { include(TEMPLATEPATH . '/tabs.php'); } ?>
  63.  
  64. <div class="clear">&nbsp;</div>
  65.  
  66. </div><!-- end #sidebar -->
  67.  
  68.  
  69. <div class="clear">&nbsp;</div>
  70.  
  71. </div><!-- end .wrap -->
  72. </div><!-- end #content -->
  73.  
  74. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement