Advertisement
Guest User

Untitled

a guest
Aug 30th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. <?php
  2. /**
  3. * Template Name: Archives
  4. *
  5. * A custom page template without sidebar.
  6. *
  7. * The "Template Name:" bit above allows this to be selectable
  8. * from a dropdown menu on the edit page screen.
  9. */
  10.  
  11. if ($post->ID == get_option('sb_contact_page')) $contactpage = true;
  12.  
  13. $portfliocount = get_option('sb_portfolio_count');
  14. $get_custom_options = get_option('sb_custom_portfolio');
  15. $portfoliopage = false;
  16. if($portfliocount > 0) {
  17. for($z = 0; $z < $portfliocount; $z++) {
  18. if ($post->ID == $get_custom_options['custom_portfolio_url_'.$z]) {
  19. $portfoliopage = true;
  20. $portfolionumber = $z;
  21. $portfoliocats = $get_custom_options['custom_portfolio_cats_'.$z];
  22. }
  23. }
  24. }
  25.  
  26. if($contactpage)
  27. {
  28. include(TEMPLATEPATH."/contact_template.php");
  29. }
  30. if($portfoliopage)
  31. {
  32. include(TEMPLATEPATH."/portfolio_template.php");
  33. }
  34. else {
  35.  
  36. get_header(); ?>
  37.  
  38. <div id="contentinner">
  39. <div class="content fullwidth">
  40.  
  41. <?php
  42.  
  43.  
  44. if ( have_posts() ) while ( have_posts() ) : the_post();
  45.  
  46.  
  47.  
  48.  
  49. the_content('TEST...');
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56. wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) );
  57. edit_post_link( __( 'Edit' ), '<span class="edit-link">', '</span>' );
  58.  
  59. endwhile; ?>
  60. <span class="top"><a href="#top">top</a></span>
  61. </div><!-- #content -->
  62. </div><!-- #container -->
  63.  
  64. <?php get_footer(); }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement