Make WordPress Core

source: trunk/index-smarty.php @ 544

Last change on this file since 544 was 544, checked in by mikelittle, 22 years ago

Backed out my invalid change.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1<?php /* Don't remove these lines, they call the b2 function files ! */
2
3/* $Id: index-smarty.php 544 2003-11-12 01:30:40Z mikelittle $ */
4
5require_once( 'Smarty.class.php' );
6$wpsmarty = new Smarty;
7$wpsmarty->template_dir = './wp-blogs/main/templates';
8$wpsmarty->compile_dir  = './wp-blogs/main/templates_c';
9$wpsmarty->cache_dir    = './wp-blogs/main/smartycache';
10$wpsmarty->plugin_dir    = './wp-plugins';
11require_once( 'b2-include/smarty.inc.php' );
12$blog = 1;
13require_once('blog.header.php');
14require_once($abspath.'wp-links/links.php');
15// not on by default: require_once($abspath.'wp-links/links.weblogs.com.php');
16
17define( 'NODISPLAY', false );
18
19$wpsmarty->assign( 'siteurl', $siteurl );
20$wpsmarty->assign( 'b2_version', $b2_version );
21
22if($posts) 
23{ 
24        foreach ($posts as $post) 
25        { 
26                start_b2(); 
27                $content .= $wpsmarty->fetch( 'post.html' );
28                ob_start();
29                include($abspath . 'b2comments.php');
30                $txt = ob_get_contents();
31                ob_end_clean();
32                $content .= $txt;
33        }
34}
35else
36{
37        $content = 'No posts made';
38}
39
40$wpsmarty->assign( 'content', $content );
41$wpsmarty->display( 'top.html' );
42
43$wpsmarty->display( 'end.html' );
44
45?>
Note: See TracBrowser for help on using the repository browser.