2003-11-07 16:16:12 -05:00
|
|
|
<?php /* Don't remove these lines, they call the b2 function files ! */
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
require_once( 'Smarty.class.php' );
|
2003-11-10 18:47:28 -05:00
|
|
|
$wpsmarty = new Smarty;
|
2003-11-11 20:30:40 -05:00
|
|
|
$wpsmarty->template_dir = './wp-blogs/main/templates';
|
|
|
|
$wpsmarty->compile_dir = './wp-blogs/main/templates_c';
|
|
|
|
$wpsmarty->cache_dir = './wp-blogs/main/smartycache';
|
2003-11-10 18:47:28 -05:00
|
|
|
$wpsmarty->plugin_dir = './wp-plugins';
|
2003-11-07 16:16:12 -05:00
|
|
|
require_once( 'b2-include/smarty.inc.php' );
|
|
|
|
$blog = 1;
|
|
|
|
require_once('blog.header.php');
|
|
|
|
require_once($abspath.'wp-links/links.php');
|
|
|
|
// not on by default: require_once($abspath.'wp-links/links.weblogs.com.php');
|
|
|
|
|
|
|
|
define( 'NODISPLAY', false );
|
|
|
|
|
2003-11-10 18:47:28 -05:00
|
|
|
$wpsmarty->assign( 'siteurl', $siteurl );
|
|
|
|
$wpsmarty->assign( 'b2_version', $b2_version );
|
2003-11-07 16:16:12 -05:00
|
|
|
|
|
|
|
if($posts)
|
|
|
|
{
|
|
|
|
foreach ($posts as $post)
|
|
|
|
{
|
|
|
|
start_b2();
|
2003-11-10 18:47:28 -05:00
|
|
|
$content .= $wpsmarty->fetch( 'post.html' );
|
2003-11-07 16:16:12 -05:00
|
|
|
ob_start();
|
|
|
|
include($abspath . 'b2comments.php');
|
|
|
|
$txt = ob_get_contents();
|
|
|
|
ob_end_clean();
|
|
|
|
$content .= $txt;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$content = 'No posts made';
|
|
|
|
}
|
|
|
|
|
2003-11-10 18:47:28 -05:00
|
|
|
$wpsmarty->assign( 'content', $content );
|
|
|
|
$wpsmarty->display( 'top.html' );
|
2003-11-07 16:16:12 -05:00
|
|
|
|
2003-11-10 18:47:28 -05:00
|
|
|
$wpsmarty->display( 'end.html' );
|
2003-11-07 16:16:12 -05:00
|
|
|
|
|
|
|
?>
|