Watch 7 Star 10 Fork 2

shrekuu / typecho-bootstrap-themeMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
bootstrap 风格的 typecho 主题。白色。 spread retract

Clone or download
header.php 4.69 KB
Copy Edit Web IDE Raw Blame History
shrekuu authored 2015-06-06 20:25 . optimize font for mac users
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<html class="no-js">
<meta charset="<?php $this->options->charset(); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?php $this->archiveTitle(array(
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ' - '); ?><?php $this->options->title(); ?></title>
<!-- 使用url函数转换相关路径 -->
<link rel="stylesheet" href="">
<!-- bootstrap -->
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/bootstrap.min.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/style.css'); ?>">
<script src=""></script>
<script src=""></script>
<link href="" rel="stylesheet">
<!--[if lt IE 9]>
<script src=""></script>
<script src=""></script>
<!-- 通过自有函数输出HTML头部信息 -->
<?php $this->header(); ?>
/* override the font that is not within the theme but affects the theme
* copied from style.scss
html, body, button, input, select, textarea {
font-family: "Helvetica neue",Helvetica,Tahoma,"lantinghei sc", "Hiragino Sans GB","Microsoft Yahei", sans-serif;
-webkit-font-smoothing: antialiased;
<!--[if lt IE 8]>
<div class="browsehappy" role="dialog"><?php _e('当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="">升级你的浏览器</a>'); ?>.</div>
<header id="header" class="clearfix">
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<a class="navbar-brand" href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title() ?></a>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="<?php if($this->is('index')) echo 'active' ?>">
<a href="<?php $this->options->siteUrl(); ?>"><?php _e('首页'); ?></a>
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<?php while($pages->next()): ?>
<li class="<?php echo $this->is('page', $pages->slug)?'active':'' ?>">
<a href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>"><?php $pages->title(); ?></a>
<?php endwhile; ?>
<form class="navbar-form navbar-right" role="search" method="post" action="./">
<div class="input-group">
<label for="s" class="sr-only"><?php _e('搜索关键字'); ?></label>
<input type="text" name="s" class="form-control" placeholder="<?php _e('输入关键字搜索'); ?>">
<span class="input-group-btn">
<button type="submit" class="submit btn btn-default" title="<?php _e('搜索'); ?>"><i class="glyphicon glyphicon-search"></i></button>
</div><!-- /.navbar-collapse -->
</div><!-- /.container -->
</header><!-- end #header -->
<div id="body">
<div class="container-fluid">
<div class="row">

Comment ( 0 )

Sign in for post a comment


Help Search