1 Star 1 Fork 0

阿宣/WebStack-typecho

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
header.php 3.39 KB
一键复制 编辑 原始数据 按行查看 历史
gogobody 提交于 2021-01-09 09:57 . 域名切换
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="<?php $this->options->charset(); ?>">
<title><?php $this->archiveTitle(array(
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ' - '); ?><?php $this->options->title(); ?><?php if ($this->is('index')): ?><?php endif; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="copyright" content="webstack_gogobody_1.0_bbs.ijkxs.com">
<link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.3/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.min.css" rel="stylesheet">
<link href="https://cdn.bootcdn.net/ajax/libs/lightbox2/2.11.3/css/lightbox.min.css" rel="stylesheet">
<?php if ($this->options->usecdn):?>
<link href="https://cdn.jsdelivr.net/gh/gogobody/WebStack/css/webstack.min.css" rel="stylesheet">
<?php else:?>
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/webstack.min.css'); ?>">
<?php endif ?>
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/icon.png">
<?php $this->header(); ?>
<style>.fk_service_qrimg_site {background-image: url(<?php $this->options->fk_one_gzhimg(); ?>);}
<?php /*单栏*/if($this->options->one_pcsl == 0): ?>
.col-sm-3 {width: 100%;}
<?php /*双栏*/elseif($this->options->one_pcsl == 1): ?>
.col-sm-3 { width: 50%;}
<?php /*三栏*/elseif($this->options->one_pcsl == 2): ?>
.col-sm-3 {width: 33%;}
<?php /*四栏*/elseif($this->options->one_pcsl == 3): ?>
.col-sm-3 {width: 25%;}
<?php /*五栏*/elseif($this->options->one_pcsl == 4): ?>
.col-sm-3 {width: 20%;}
<?php /*六栏*/elseif($this->options->one_pcsl == 5): ?>
.col-sm-3 {width: 16.6%;}
<?php /*七栏*/elseif($this->options->one_pcsl == 6): ?>
.col-sm-3 {width: 14.2%;}
<?php /*八栏*/elseif($this->options->one_pcsl == 7): ?>
.col-sm-3 {width: 12.5%;}
<?php endif; ?>
@media (max-width: 768px) {
<?php /*手机端双栏显示 常规尺寸*/if($this->options->one_wapsl == 0): ?>
.col-sm-3 {width: 100%;}
<?php elseif($this->options->one_wapsl == 1): ?>
.col-sm-3 {width: 50%;float: left;}.xe-widget.xe-conversations {position: relative;background: #fff;margin-bottom: 0;}
<?php elseif($this->options->one_wapsl == 2): ?>
.col-sm-3 {width: 33%;float: left;position: relative;min-height: 1px;padding-left: 1px !important;padding-right: 1px !important;}
<?php endif; ?>}
.bright{
--background-c:<?php _e($this->options->bgcolor); ?>
}
.night{
--background-c:<?php _e($this->options->nbgcolor); ?>
}
</style>
</head>
<body class="page-body <?php echo($_COOKIE['night'] == 1 ? 'night' : 'bright'); ?>">
<div class="all-layout">
<?php $this->need('components/nav.php');?>
<?php $this->need('components/sidebar.php'); ?>
<!-- skin-white -->
<div class="page-container">
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mhhpc/WebStack-typecho.git
git@gitee.com:mhhpc/WebStack-typecho.git
mhhpc
WebStack-typecho
WebStack-typecho
main

搜索帮助