mirror of
https://github.com/typecho/typecho.git
synced 2025-03-18 08:59:40 +01:00
修复旧模板几个多年的bug
This commit is contained in:
parent
1dc3b22200
commit
e9793a8cdc
@ -13,28 +13,32 @@
|
||||
|
||||
<body>
|
||||
<div id="header" class="container_16 clearfix">
|
||||
<form id="search" method="post" action="/">
|
||||
<div><input type="text" name="s" class="text" size="20" /> <input type="submit" class="submit" value="<?php _e('搜索'); ?>" /></div>
|
||||
</form>
|
||||
<div id="logo">
|
||||
<h1><a href="<?php $this->options->siteUrl(); ?>">
|
||||
<?php if ($this->options->logoUrl): ?>
|
||||
<img height="60" src="<?php $this->options->logoUrl() ?>" alt="<?php $this->options->title() ?>" />
|
||||
<?php endif; ?>
|
||||
<?php $this->options->title() ?>
|
||||
</a></h1>
|
||||
<p class="description"><?php $this->options->description() ?></p>
|
||||
<div class="grid_14">
|
||||
<form id="search" method="post" action="/">
|
||||
<div><input type="text" name="s" class="text" size="20" /> <input type="submit" class="submit" value="<?php _e('搜索'); ?>" /></div>
|
||||
</form>
|
||||
<div id="logo">
|
||||
<h1><a href="<?php $this->options->siteUrl(); ?>">
|
||||
<?php if ($this->options->logoUrl): ?>
|
||||
<img height="60" src="<?php $this->options->logoUrl() ?>" alt="<?php $this->options->title() ?>" />
|
||||
<?php endif; ?>
|
||||
<?php $this->options->title() ?>
|
||||
</a></h1>
|
||||
<p class="description"><?php $this->options->description() ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- end #header -->
|
||||
|
||||
<div id="nav_box" class="clearfix">
|
||||
<ul class="container_16 clearfix" id="nav_menu">
|
||||
<li<?php if($this->is('index')): ?> class="current"<?php endif; ?>><a href="<?php $this->options->siteUrl(); ?>"><?php _e('首页'); ?></a></li>
|
||||
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
|
||||
<?php while($pages->next()): ?>
|
||||
<li<?php if($this->is('page', $pages->slug)): ?> class="current"<?php endif; ?>><a href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>"><?php $pages->title(); ?></a></li>
|
||||
<?php endwhile; ?>
|
||||
</ul>
|
||||
<div class="container_16">
|
||||
<ul class="grid_14 clearfix" id="nav_menu">
|
||||
<li<?php if($this->is('index')): ?> class="current"<?php endif; ?>><a href="<?php $this->options->siteUrl(); ?>"><?php _e('首页'); ?></a></li>
|
||||
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
|
||||
<?php while($pages->next()): ?>
|
||||
<li<?php if($this->is('page', $pages->slug)): ?> class="current"<?php endif; ?>><a href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>"><?php $pages->title(); ?></a></li>
|
||||
<?php endwhile; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container_16 clearfix">
|
||||
|
@ -17,8 +17,8 @@ body {
|
||||
background: #fff;
|
||||
color: #444;
|
||||
font-size: 13px;
|
||||
line-height: 1.7;
|
||||
font-family: Georgia,Times,"Times New Roman",serif;
|
||||
line-height: 1.6;
|
||||
font-family: Georgia, Times, "Times New Roman", STHeiti, serif;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 { font-weight: normal; }
|
||||
@ -39,15 +39,16 @@ textarea { *padding: 3px; }
|
||||
a {
|
||||
color: #3354AA;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px dotted #3354AA;
|
||||
border-bottom: 1px solid #EEE;
|
||||
}
|
||||
a:hover {
|
||||
color: #444;
|
||||
border-bottom: none;
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
|
||||
pre, code, tt {
|
||||
font: 12px Menlo,Monaco,Consolas,"Lucida Console","Courier New",monospace; line-height: 1.5;
|
||||
pre, code {
|
||||
font: 12px Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||
line-height: 1.5;
|
||||
}
|
||||
code { margin-bottom: 20px; }
|
||||
pre, code {
|
||||
@ -62,7 +63,12 @@ border: 1px solid #eee;
|
||||
blockquote:before, blockquote:after, q:before, q:after { content: ""; }
|
||||
blockquote, q { quotes: "" ""; }
|
||||
|
||||
blockquote { margin: 1.5em; color: #666; font-style: italic; }
|
||||
blockquote {
|
||||
margin: 1.5em 0;
|
||||
padding-left: 1.5em;
|
||||
border-left: 4px solid #EEE;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
/*code {display: block; border: 1px solid #AAAAAA; background: #F1ECDD; color: #444; line-height: 16px; overflow: auto;
|
||||
font-family: 'andale mono','lucida console',monospace; padding: 10px; margin: 10px 0;}*/
|
||||
@ -132,7 +138,6 @@ margin-top: 30px;
|
||||
#nav_box {
|
||||
border-bottom: 1px solid #eee;
|
||||
margin-bottom: 20px;
|
||||
font-family: "Lucida Grande",Tahoma,"Bitstream Vera Sans",Arial,sans-serif;
|
||||
}
|
||||
|
||||
ul#nav_menu {
|
||||
@ -192,7 +197,7 @@ h2.entry_title {
|
||||
margin-bottom: 0;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
font-family: "Lucida Grande","Lucida Sans Unicode","Lucida Sans",Helvetica,Arial,sans-serif;
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
h2.entry_title a {
|
||||
|
Loading…
x
Reference in New Issue
Block a user