php get_header php get_sidebar td align left valign top table width 10

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php get_header(); ?>
<?php get_sidebar(); ?>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" align="right" valign="top" background="<?php bloginfo('template_directory'); ?>/img/zagolovok_bkgr.jpg"><img src="<?php bloginfo('template_directory'); ?>/img/zagolovok_ves.jpg" width="270" height="62" /></td>
</tr>
<tr>
<td width="100%" height="209" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php if (have_posts()) : ?>
<tr>
<td colspan=2>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="pagetitle"><?php printf(__('Archive for the &#8216;%s&#8217; Category', 'kubrick'), single_cat_title('', false)); ?></h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class="pagetitle"><?php printf(__('Posts Tagged &#8216;%s&#8217;', 'kubrick'), single_tag_title('', false) ); ?></h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'kubrick'), get_the_time(__('F jS, Y', 'kubrick'))); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'kubrick'), get_the_time(__('F, Y', 'kubrick'))); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'kubrick'), get_the_time(__('Y', 'kubrick'))); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle"><?php _e('Author Archive', 'kubrick'); ?></h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle"><?php _e('Blog Archives', 'kubrick'); ?></h2>
<?php } ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'kubrick')); ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'kubrick')); ?></div>
</div>
</td>
</tr>
<?php $i=0; ?>
<?php while (have_posts()) : the_post(); ?>
<?php if ($i % 2 == 0){ echo '<tr>'; } ?>
<td align="left" valign="top" class="txt" width="50%">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a>
</td>
<?php if ($i % 2 != 0){ echo '</tr>'; } ?>
<?php $i+=1; ?>
<?php endwhile; ?>
<tr>
<td colspan=2>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries'), 'kubrick'); ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'kubrick')); ?></div>
</div>
</td>
</tr>
<?php else : ?>
<tr>
<td align="left" valign="top" class="txt">
<h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</td>
</tr>
<?php endif; ?>
</table></td>
<td width="69" align="right" valign="top" background="<?php bloginfo('template_directory'); ?>/img/fon_right.jpg"><img src="<?php bloginfo('template_directory'); ?>/img/fon_right.jpg" width="69" height="10" /></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?php get_footer(); ?>