Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Archives
- *
- * A custom page template without sidebar.
- *
- * The "Template Name:" bit above allows this to be selectable
- * from a dropdown menu on the edit page screen.
- */
- if ($post->ID == get_option('sb_contact_page')) $contactpage = true;
- $portfliocount = get_option('sb_portfolio_count');
- $get_custom_options = get_option('sb_custom_portfolio');
- $portfoliopage = false;
- if($portfliocount > 0) {
- for($z = 0; $z < $portfliocount; $z++) {
- if ($post->ID == $get_custom_options['custom_portfolio_url_'.$z]) {
- $portfoliopage = true;
- $portfolionumber = $z;
- $portfoliocats = $get_custom_options['custom_portfolio_cats_'.$z];
- }
- }
- }
- if($contactpage)
- {
- include(TEMPLATEPATH."/contact_template.php");
- }
- if($portfoliopage)
- {
- include(TEMPLATEPATH."/portfolio_template.php");
- }
- else {
- get_header(); ?>
- <div id="contentinner">
- <div class="content fullwidth">
- <?php
- if ( have_posts() ) while ( have_posts() ) : the_post();
- the_content('TEST...');
- wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) );
- edit_post_link( __( 'Edit' ), '<span class="edit-link">', '</span>' );
- endwhile; ?>
- <span class="top"><a href="#top">top</a></span>
- </div><!-- #content -->
- </div><!-- #container -->
- <?php get_footer(); }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement