Posted By

llbbl on 05/25/07


Tagged

php textmate template html wordpress


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

jbo
vali29
tmbrenneke
prismatiq
srdjan
fhenderson


Wordpress Static HTML Template


 / Published in: PHP
 

  1. <?php
  2.  
  3. unset($_SERVER['PATH_INFO']);
  4.  
  5. //Include current WordPress Theme Header etc.
  6. // Change the path if wordpress isn't in the webserver root directory
  7.  
  8. require($_SERVER['DOCUMENT_ROOT'] . '/wp-blog-header.php');
  9.  
  10.  
  11.  
  12. //Check if we're wrapping the WP Theme
  13. //Get Theme settings.
  14. $themes = get_themes();
  15. $current_theme = get_current_theme();
  16. $current_template_dir = $themes[$current_theme]['Template Dir'];
  17. $current_stylesheet_dir = $themes[$current_theme]['Stylesheet Dir'];
  18.  
  19. //Include the WP Header
  20. get_header();
  21.  
  22. /* Your static HTML goes after here */ ?>
  23.  
  24.  
  25. <?php
  26.  
  27. get_sidebar();
  28. get_footer();
  29.  
  30. ?>

Report this snippet  

You need to login to post a comment.