<?php
/*
Template Name: Links
*/
?>
<?php get_header();
// USE THIS FILE AS A SITE MAP OR OPEN TEMPLATE. FOR SITE MAP, ENTER NO CONTENT
   include( "USERS_CONFIG.php" ); 
   include( "generator.php" );
?>
<div id="content" class="narrowcolumn" style="width:95%;"><a name="content"></a>

<?php  // We have a blank page if it's not the Site Map ID (USERS_CONFIG)
if ( is_page($site_map_id) ) {
?>

 <h2 class="pagetitle"><?=$blog_name ?> <?php the_title(); ?></h2>
  <p>This is a map of all <?=$blog_name ?>&#8217;s pages, including all <?=$my_or_our ?> <a href="#the_links">External Links</a>. Can&#8217;t find what you need? Try using <a href="<?php echo get_settings('home'); ?>?s=Enter+some+search+terms">Search</a>. 
<?php if ( $enable_form == "no" ) {
   echo( '<!--' );
} else {
   echo( '' );
}
?>
And if all else fails, you can always just <a href="<?=$install_path ?>/<?=$theme_path ?>/contact.php">Contact <?=$me_or_us ?></a> for assistance. <?=$I_or_We ?>&#8217;ll see what <?=$i_or_we ?> can do to help.
<?php if ( $enable_form == "no" ) {
   echo( '-->' );
} else {
   echo( '' );
}
?>
</p>
    <p style="display:block; text-align:right; color:<?=$highlight_color2 ?>; font-size:0.8em; clear:both; padding-bottom:30px;">| <a style="padding:1px;" href="#blog_pages">Skip Main Pages</a> | <a style="padding:1px;" href="#top">Top</a> | <a style="padding:1px;" href="#footer">Footer</a>|</p>
<h2 id="main_pages">Main Page<?php if ( $enable_form == "no" ) {
   echo( '<!--' );
} else {
   echo( '' );
}
?>s<?php if ( $enable_form == "no" ) {
   echo( '-->' );
} else {
   echo( '' );
} // This is the separation between pluralization and the main link
?></h2>
  <ul>
   <li><a href="<?=$install_path ?>"><?=$blog_home_link ?></a></li>
<?php if ( $enable_form == "no" ) {
   echo( '<!--' );
} else {
   echo( '' );
}
?>
   <li><a href="<?=$install_path ?>/<?=$theme_path ?>/contact.php">Contact Page</a></li>
<?php if ( $enable_form == "no" ) {
   echo( '-->' );
} else {
   echo( '' );
}
?>
  </ul>
    <p style="display:block; text-align:right; color:<?=$highlight_color2 ?>; font-size:0.8em; clear:both; padding-bottom:30px;">|<a style="padding:1px;" href="#main_pages">Main Pages Top</a> | <a style="padding:1px;" href="#blog_categories">Skip <?=$blog_pages ?></a> | <a style="padding:1px;" href="#top">Top</a> | <a style="padding:1px;" href="#content">Content</a>|</p>
  <ul id="blog_pages">
  <?php wp_list_pages('title_li=<h2>'.$blog_pages.'</h2>' ); ?>
  </ul>
    <p style="display:block; text-align:right; color:<?=$highlight_color2 ?>; font-size:0.8em; clear:both; padding-bottom:30px;">|<a style="padding:1px;" href="#blog_pages"><?=$blog_pages ?> Top</a> | <a style="padding:1px;" href="#blog_archives">Skip <?=$blog_categories ?></a> | <a style="padding:1px;" href="#top">Top</a> | <a style="padding:1px;" href="#content">Content</a>|</p>
<h2 id="blog_categories"><?=$blog_categories ?></h2>
  <ul>
    <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
  </ul>
    <p style="display:block; text-align:right; color:<?=$highlight_color2 ?>; font-size:0.8em; clear:both; padding-bottom:30px;">|<a style="padding:1px;" href="#blog_categories"><?=$blog_categories ?> Top</a> | <a style="padding:1px;" href="#the_links">Skip <?=$blog_archives ?></a> | <a style="padding:1px;" href="#top">Top</a> | <a style="padding:1px;" href="#content">Content</a>|</p>
<h2 id="blog_archives"><?=$blog_archives ?></h2>
  <ul>
    <?php wp_get_archives('type=monthly'); ?>
  </ul>
    <p style="display:block; text-align:right; color:<?=$highlight_color2 ?>; font-size:0.8em; clear:both;">|<a style="padding:1px;" href="#blog_archives"><?=$blog_archives ?> Top</a> | <a style="padding:1px;" href="#blog_meta">Skip External Links</a> | <a style="padding:1px;" href="#top">Top</a> | <a style="padding:1px;" href="#content">Content</a>|</p><br /><br />
  <ul id="the_links">
     <?php get_links_list(); ?>
  </ul>
    <p style="display:block; text-align:right; color:<?=$highlight_color2 ?>; font-size:0.8em; clear:both; padding-bottom:30px;">|<a style="padding:1px;" href="#the_links">External Links Top</a> | <a style="padding:1px;" href="#footer">Skip <?=$blog_meta ?></a> | <a style="padding:1px;" href="#top">Top</a> | <a style="padding:1px;" href="#content">Content</a>|</p>
<h2 id="blog_meta"><?=$blog_meta ?></h2>
  <ul>
   <?php wp_register(); ?>
   <li><?php wp_loginout(); ?></li>
   <li><a href="http://validator.w3.org/check/referer" title="Validate Extensible Hypertext Mark-up Language">XHTML</a></li>
   <li><a href="http://jigsaw.w3.org/css-validator/check/referer" title="Validate Cascading Style Sheet">CSS</a></li>
<?php wp_meta(); ?>
  </ul>
    <p style="display:block; text-align:right; color:<?=$highlight_color2 ?>; font-size:0.8em; clear:both; padding-bottom:30px;">|<a style="padding:1px;" href="#blog_meta"><?=$blog_meta ?> Top</a> | <a style="padding:1px;" href="#top">Top</a> | <a style="padding:1px;" href="#content" title="Jump to Content">Content</a>|</p>
<div class="hr"><hr /></div>

<?php
// This is the close of the site map content 
}
// And now I can start a blank page, Ah hah! 
else if ( is_page() ) {
?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  <div class="post" id="post-<?php the_ID(); ?>">
   <h2 class="dot2"><?php the_title(); ?></h2>
    <p style="font-size:0.8em;padding-bottom:20px;" class="highlight"><a href="<?php echo get_settings('home'); ?>"><?=$blog_home_link ?></a> <span class="highlight2">&raquo;</span> <?php the_title(); ?></p>
    <div class="entrytext">
<?php the_content('<p class="center bold">Read More&nbsp;&raquo;</p>'); ?>
<?php link_pages('<p class="center bold">Pages: ', '</p>', 'number'); ?>
	</div>
  <div class="hr"><hr /></div>
   <p class="alignright" style="font-size:0.8em; clear:both;">|<a style="padding:1px;" href="#top" title="Jump to Page Top">Top</a> | <a style="padding:1px;" href="#content" title="Jump to Content Top">Content</a> | <a href="http://validator.w3.org/check/referer" title="Validate Extensible Hypertext Mark-up Language">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" title="Validate Cascading Style Sheet">CSS</a> | <?php wp_loginout(); ?>|</p>
 </div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit', '<p>', '</p>'); ?>
<?php 
// And now I end the blank page 
}
?>

 </div>	
<?php 
/*
  Do not uncomment the Sidebar. If you do it'll call the Farbar and that 
  already contains the links on this page... and the IDs would be duped
  get_sidebar(); 
*/
get_footer();
?>