2003-12-11 01:22:36 +01:00
|
|
|
<?php
|
2008-05-25 17:50:15 +02:00
|
|
|
/**
|
|
|
|
* Loads the WordPress environment and template.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
*/
|
2003-12-11 01:22:36 +01:00
|
|
|
|
2008-05-21 07:59:27 +02:00
|
|
|
if ( !isset($wp_did_header) ) {
|
2006-10-04 07:32:18 +02:00
|
|
|
|
2008-05-21 07:59:27 +02:00
|
|
|
$wp_did_header = true;
|
2005-02-13 22:20:00 +01:00
|
|
|
|
2015-12-19 12:19:57 +01:00
|
|
|
// Load the WordPress library.
|
2008-05-21 07:59:27 +02:00
|
|
|
require_once( dirname(__FILE__) . '/wp-load.php' );
|
2003-12-11 01:22:36 +01:00
|
|
|
|
2015-12-19 12:19:57 +01:00
|
|
|
// Set up the WordPress query.
|
2008-05-21 07:59:27 +02:00
|
|
|
wp();
|
2004-08-27 22:59:38 +02:00
|
|
|
|
2015-12-19 12:19:57 +01:00
|
|
|
// Load the theme template.
|
2008-05-21 07:59:27 +02:00
|
|
|
require_once( ABSPATH . WPINC . '/template-loader.php' );
|
2004-06-01 01:35:32 +02:00
|
|
|
|
2008-05-21 07:59:27 +02:00
|
|
|
}
|