1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
---|
2 |
|
---|
3 | <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
|
---|
4 |
|
---|
5 | <head profile="http://gmpg.org/xfn/11">
|
---|
6 | <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
|
---|
7 |
|
---|
8 | <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
|
---|
9 |
|
---|
10 | <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
|
---|
11 |
|
---|
12 | <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
|
---|
13 | <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
|
---|
14 | <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
|
---|
15 |
|
---|
16 | <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/style.css" />
|
---|
17 |
|
---|
18 | <!--[if IE]>
|
---|
19 | <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/style_ie.css" />
|
---|
20 | <![endif]-->
|
---|
21 |
|
---|
22 | <!--[if lt IE 7]>
|
---|
23 | <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/style_ie6.css" />
|
---|
24 | <![endif]-->
|
---|
25 |
|
---|
26 | <?php wp_head(); ?>
|
---|
27 | </head>
|
---|
28 |
|
---|
29 | <body>
|
---|
30 |
|
---|
31 | <!-- Page -->
|
---|
32 | <div id="page">
|
---|
33 |
|
---|
34 | <!-- Header -->
|
---|
35 | <div id="header">
|
---|
36 |
|
---|
37 | <!-- Menu -->
|
---|
38 | <div id="header-menu">
|
---|
39 | <ul>
|
---|
40 | <?php wp_list_pages('title_li='); ?>
|
---|
41 | </ul>
|
---|
42 | </div>
|
---|
43 | <!-- /Menu -->
|
---|
44 |
|
---|
45 | <!-- Title -->
|
---|
46 | <div id="header-info">
|
---|
47 | <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
|
---|
48 | <div class="description"><?php bloginfo('description'); ?></div>
|
---|
49 | </div>
|
---|
50 | <!-- /Title -->
|
---|
51 |
|
---|
52 | <!-- Topbar -->
|
---|
53 | <div id="topbar">
|
---|
54 | <div id="topbar-left">
|
---|
55 |
|
---|
56 | </div>
|
---|
57 | <div id="topbar-center">
|
---|
58 | <h3></h3>
|
---|
59 | <ul>
|
---|
60 | <?php wp_get_archives('type=postbypost&limit=3'); ?>
|
---|
61 | </ul>
|
---|
62 | </div>
|
---|
63 | <div id="topbar-right">
|
---|
64 | <h3></h3>
|
---|
65 | <ul>
|
---|
66 | <?php
|
---|
67 | $sql = "SELECT * FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) WHERE comment_approved = '1' AND comment_type = '' ORDER BY comment_date DESC LIMIT 0 , 3";
|
---|
68 | $comments = $wpdb->get_results($sql);
|
---|
69 | foreach ($comments as $comment) {
|
---|
70 | $data = $comment->comment_author . " @ " . $comment->post_title;
|
---|
71 | echo "<li><a href=\"" . get_permalink($comment->comment_post_ID) . "\">" . substr($data,0,40) . " ...</a></li>";
|
---|
72 | }
|
---|
73 | ?>
|
---|
74 | </ul>
|
---|
75 | </div>
|
---|
76 | </div>
|
---|
77 | <!-- /Topbar -->
|
---|
78 |
|
---|
79 | </div>
|
---|
80 | <!-- /Header -->
|
---|
81 |
|
---|
82 | <!-- Main -->
|
---|
83 | <div id="main"><div id="main-top"><div id="main-bottom">
|
---|
84 | |
---|