Advertisement
Guest User

index.php

a guest
Nov 26th, 2012
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.67 KB | None | 0 0
  1. <?php get_header(); global $more; ?>
  2.  
  3. <div class="container">
  4. <div class="content">
  5. <div class="page-title">
  6. <?php if(is_search()) { ?>
  7. <h1><?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $count = $allsearch->post_count; echo $count . ' '; wp_reset_query(); ?><?php _e('Search results for','okay'); ?> "<?php the_search_query() ?>" </h1>
  8. <?php } else if(is_tag()) { ?>
  9. <h1><?php _e('Tag','okay'); ?>: <?php single_tag_title(); ?></h1>
  10. <?php } else if(is_day()) { ?>
  11. <h1> <?php _e('Archive','okay'); ?>: <?php echo get_the_date(); ?></h1>
  12. <?php } else if(is_month()) { ?>
  13. <h1><?php _e('Archive','okay'); ?>: <?php echo get_the_date('F Y'); ?></h1>
  14. <?php } else if(is_year()) { ?>
  15. <h1><?php _e('Archive','okay'); ?>: <?php echo get_the_date('Y'); ?></h1>
  16. <?php } else if(is_404()) { ?>
  17. <h1><?php _e('404 - Page Not Found','okay'); ?></h1>
  18. <?php } else if(is_category()) { ?>
  19. <h1><?php _e('Category','okay'); ?>: <?php single_cat_title(); ?></h1>
  20. <?php } else if(is_author()) { ?>
  21. <h1><?php _e('Posts by Author','okay'); ?>: <?php the_author_posts(); ?> <?php _e('posts by','okay'); ?> <?php
  22. $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); echo $curauth->nickname; ?></h1>
  23. <?php } ?>
  24. </div>
  25.  
  26. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  27.  
  28. <div id="post-<?php the_ID(); ?>" <?php post_class('blog-post clearfix'); ?>>
  29.  
  30. <?php if ( get_post_meta($post->ID, 'okvideo', true) ) { ?>
  31. <div class="okvideo">
  32. <?php echo get_post_meta($post->ID, 'okvideo', true) ?>
  33. </div>
  34. <?php } else { ?>
  35.  
  36. <?php if ( has_post_thumbnail() ) { ?>
  37. <a class="blog-image" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail( 'blog-image' ); ?></a>
  38. <?php } ?>
  39.  
  40. <?php } ?>
  41.  
  42. <div class="blog-inside clearfix">
  43. <div class="blog-text">
  44. <div class="title-meta">
  45. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  46. </div>
  47.  
  48. <div class="blog-entry">
  49. <div class="blog-content">
  50. <?php the_content(); ?>
  51. </div>
  52.  
  53. <?php if(is_single()) { ?>
  54. <div class="pagelink">
  55. <?php wp_link_pages(); ?>
  56. </div>
  57. <?php } ?>
  58. </div><!-- blog entry -->
  59. </div><!-- blog text -->
  60.  
  61.  
  62. <!-- Show this on full site -->
  63. <div class="blog-meta">
  64. <ul class="meta-links">
  65. <li><span class="meta-list"><span class="entypo">+</span> <?php the_author_link(); ?></span></li>
  66. <li><span class="meta-list"><span class="entypo">P</span> <?php echo get_the_date('m/d/Y'); ?></span></li>
  67. <li><span class="meta-list"><span class="entypo">t</span> <span class="tag-wrap"><?php the_category(', ') ?></span></span></li>
  68. <?php the_tags('<li><span><span class="entypo">C</span><span class="tag-wrap">', ', ', '</span></span></li>'); ?>
  69. <li><span class="meta-list"><span class="entypo">9</span> <a href="<?php the_permalink(); ?>#comments"><?php comments_number(__('No Comments',radius),__('1 Comment',radius),__( '% Comments',radius) );?></a></span></li>
  70. </ul>
  71. <div class="clear"></div>
  72. <ul class="post-share">
  73. <li class="share-title"><?php _e('Share','okay'); ?></li>
  74. <li class="twitter">
  75. <a onclick="window.open('http://twitter.com/home?status=<?php the_title(); ?> - <?php the_permalink(); ?>','twitter','width=450,height=300,left='+(screen.availWidth/2-375)+',top='+(screen.availHeight/2-150)+'');return false;" href="http://twitter.com/home?status=<?php the_title(); ?> - <?php the_permalink(); ?>" title="<?php the_title(); ?>" target="blank"><?php _e('Twitter','okay'); ?></a>
  76. </li>
  77.  
  78. <li class="facebook">
  79. <a onclick="window.open('http://www.facebook.com/share.php?u=<?php the_permalink(); ?>','facebook','width=450,height=300,left='+(screen.availWidth/2-375)+',top='+(screen.availHeight/2-150)+'');return false;" href="http://www.facebook.com/share.php?u=<?php the_permalink(); ?>" title="<?php the_title(); ?>" target="blank"><?php _e('Facebook','okay'); ?></a>
  80. </li>
  81.  
  82. <li class="googleplus">
  83. <a href="https://plus.google.com/share?url=<?php the_permalink(); ?>" onclick="window.open('https://plus.google.com/share?url=<?php the_permalink(); ?>','gplusshare','width=450,height=300,left='+(screen.availWidth/2-375)+',top='+(screen.availHeight/2-150)+'');return false;"><?php _e('Google+','okay'); ?></a>
  84. </li>
  85. </ul>
  86. </div><!-- tags -->
  87. </div><!-- blog inside -->
  88. <div class="clear"></div>
  89. </div><!-- blog post -->
  90.  
  91. <?php endwhile; ?>
  92.  
  93. <div class="blog-navigation clearfix">
  94. <div class="alignleft"><?php next_posts_link( __('&larr; Older Entries','okay') ); ?></div>
  95. <div class="alignright"><?php previous_posts_link( __('Newer Entries &rarr;','okay') ); ?></div>
  96. </div>
  97.  
  98. <?php endif; ?>
  99.  
  100. <!-- 404 page code -->
  101. <?php if(is_404()) { ?>
  102. <div class="intro"><?php _e('Sorry, but the page you are looking for is no longer here. Please use the navigations or the search to find what what you are looking for.','okay'); ?></div>
  103.  
  104. <?php include('searchform.php'); ?>
  105. <?php } ?>
  106. </div><!-- content -->
  107.  
  108. <?php get_sidebar(); ?>
  109. </div><!-- container -->
  110.  
  111. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement