Footer 改进方案(一)

以下是我搜集到的有关 Footer 文件改进的方案:

?> <div id="footer">  <div id="navigation"><div id="wrapper"><div id="content"><?php wp_reset_query(); wp_breadcrumb(); ?></div></div></div>  <div id="sidebar">   <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer – Sidebar 3') ) : ?> <?php endif; ?>   <div class="clear"></div>   <?php $display_ad_on_sidebar3 = get_settings("ftoptions_display_ad_sidebar3"); ?>   <?php if($display_ad_on_sidebar3 != "") { echo htmlspecialchars_decode($display_ad_on_sidebar3); } ?>  </div>  <div class="clear"></div>  </div>  <br/>  <?php  if( get_settings("ftoptions_copyright_message") != "")  {   echo "<p>" . get_settings("ftoptions_copyright_message") . "</p>";  }  else  {  ?>  <p><?php echo sprintf(__("Powered by <a href='http://wordpress.org/' title='%s'><strong>WordPress</strong></a>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?> – Designed by <a href=http://www.yourname.com>wordpress affiliate</a></p>  <?php   }  ?> <p class="credit">&#169; <?php echo date('Y'); ?> <span class="url fn org"><?php bloginfo('name'); ?></span></p> <!–<?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. –>  </div><!– wrapper end –><script type='text/javascript'>  $(document).ready(function() {$('a').click(function(){  var url = $(this).attr('href');if(!url) { return; } if(url.charAt(0) == "#") { return; }  //$("#loading").height($(document).height());  $('#loading').fadeIn('slow', function(){    document.location.href = url;  });  return false;});  Cufon.replace('h1', { textShadow: '1px 1px rgba(0, 0, 0, 0.2)' });  //Cufon.replace('h1');  Cufon.replace('h2');  Cufon.replace('h3');
  Cufon.replace('h4');
  Cufon.replace('h5');
  //Cufon.set('fontFamily', 'vista').replace('h3');  //Cufon.set('fontFamily', 'vista').replace('h5');  //Cufon.replace('ul#subnavbar li a');  //Cufon.replace('ul#navbar li a')('ul#tabmenu li a');  Cufon.refresh; });     function showDetail()   {    $("#left-col .box").attr("style", "width: 95%;");    $(".box_image").attr("style", "float: left; absolute; width: 200px; ");    $(".box_detail").attr("style", "float: left; width: 350px;");    $(".box_description").show();       }   function showGallery()   {    $("#left-col .box").attr("style", "width: 175px;");    $(".box_image").attr("style", "");    $(".box_detail").attr("style", "");    $(".box_description").hide();       }  </script><?php if(get_settings("ftoptions_google_tracking_code") != "") { echo htmlspecialchars_decode(get_settings("ftoptions_google_tracking_code"));} ?><?php wp_footer(); ?></body></html><?

看过这篇文章的读者还看过:

留下您的脚印