This commit is contained in:
15
Passport/theme/common.php
Normal file
15
Passport/theme/common.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
if (!defined('__DIR__')) {
|
||||
define('__DIR__', dirname(__FILE__));
|
||||
}
|
||||
|
||||
define('__TYPECHO_ADMIN__', true);
|
||||
define('__ADMIN_DIR__', __TYPECHO_ROOT_DIR__ . __TYPECHO_ADMIN_DIR__);
|
||||
|
||||
/** 初始化组件 */
|
||||
Typecho_Widget::widget('Widget_Init');
|
||||
Typecho_Widget::widget('Widget_Options')->to($options);
|
||||
Typecho_Widget::widget('Widget_Security')->to($security);
|
||||
Typecho_Widget::widget('Widget_Menu')->to($menu);
|
||||
|
||||
list($prefixVersion, $suffixVersion) = explode('/', $options->version);
|
||||
61
Passport/theme/forgot.php
Normal file
61
Passport/theme/forgot.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
|
||||
<?php
|
||||
include 'common.php';
|
||||
|
||||
$menu->title = _t('找回密码');
|
||||
|
||||
include 'header.php';
|
||||
?>
|
||||
<style>
|
||||
body {
|
||||
font-family: "Microsoft YaHei", tahoma, arial, 'Hiragino Sans GB', '\5b8b\4f53', sans-serif;
|
||||
}
|
||||
.typecho-logo {
|
||||
margin: 50px 0 30px;
|
||||
text-align: center;
|
||||
}
|
||||
.typecho-table-wrap {
|
||||
padding: 50px 30px;
|
||||
}
|
||||
.typecho-page-title h2 {
|
||||
margin: 0 0 30px;
|
||||
font-weight: 500;
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
label:after {
|
||||
content: " *";
|
||||
color: #ed1c24;
|
||||
}
|
||||
.btn {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
padding: 10px 16px;
|
||||
font-size: 18px;
|
||||
line-height: 1.33;
|
||||
}
|
||||
</style>
|
||||
<div class="body container">
|
||||
<div class="typecho-logo">
|
||||
<h1><a href="<?php $options->siteUrl(); ?>"><?php $options->title(); ?></a></h1>
|
||||
</div>
|
||||
|
||||
<div class="row typecho-page-main">
|
||||
<div class="col-mb-12 col-tb-6 col-tb-offset-3 typecho-content-panel">
|
||||
<div class="typecho-table-wrap">
|
||||
<div class="typecho-page-title">
|
||||
<h2>找回密码</h2>
|
||||
</div>
|
||||
<?php @$this->forgotForm()->render(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
include __ADMIN_DIR__ . '/common-js.php';
|
||||
?>
|
||||
<script>
|
||||
</script>
|
||||
<?php
|
||||
include __ADMIN_DIR__ . '/footer.php';
|
||||
?>
|
||||
27
Passport/theme/header.php
Normal file
27
Passport/theme/header.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
if (!defined('__TYPECHO_ADMIN__')) {
|
||||
exit;
|
||||
}
|
||||
$header = '<link rel="stylesheet" href="' . Typecho_Common::url('normalize.css?v=' . $suffixVersion, $options->adminStaticUrl('css')) . '">
|
||||
<link rel="stylesheet" href="' . Typecho_Common::url('grid.css?v=' . $suffixVersion, $options->adminStaticUrl('css')) . '">
|
||||
<link rel="stylesheet" href="' . Typecho_Common::url('style.css?v=' . $suffixVersion, $options->adminStaticUrl('css')) . '">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="' . Typecho_Common::url('html5shiv.js?v=' . $suffixVersion, $options->adminStaticUrl('js')) . '"></script>
|
||||
<script src="' . Typecho_Common::url('respond.js?v=' . $suffixVersion, $options->adminStaticUrl('js')) . '"></script>
|
||||
<![endif]-->';
|
||||
|
||||
?><!DOCTYPE HTML>
|
||||
<html class="no-js">
|
||||
<head>
|
||||
<meta charset="<?php $options->charset(); ?>">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?php _e('%s - %s - Powered by Typecho', $menu->title, $options->title); ?></title>
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<?php echo $header; ?>
|
||||
</head>
|
||||
<body<?php if (isset($bodyClass)) {echo ' class="' . $bodyClass . '"';} ?>>
|
||||
<!--[if lt IE 9]>
|
||||
<div class="message error browsehappy" role="dialog"><?php _e('当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>'); ?>.</div>
|
||||
<![endif]-->
|
||||
61
Passport/theme/reset.php
Normal file
61
Passport/theme/reset.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
|
||||
<?php
|
||||
include 'common.php';
|
||||
|
||||
$menu->title = _t('重置密码');
|
||||
|
||||
include 'header.php';
|
||||
?>
|
||||
<style>
|
||||
body {
|
||||
font-family: "Microsoft YaHei", tahoma, arial, 'Hiragino Sans GB', '\5b8b\4f53', sans-serif;
|
||||
}
|
||||
.typecho-logo {
|
||||
margin: 50px 0 30px;
|
||||
text-align: center;
|
||||
}
|
||||
.typecho-table-wrap {
|
||||
padding: 50px 30px;
|
||||
}
|
||||
.typecho-page-title h2 {
|
||||
margin: 0 0 30px;
|
||||
font-weight: 500;
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
label:after {
|
||||
content: " *";
|
||||
color: #ed1c24;
|
||||
}
|
||||
.btn {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
padding: 10px 16px;
|
||||
font-size: 18px;
|
||||
line-height: 1.33;
|
||||
}
|
||||
</style>
|
||||
<div class="body container">
|
||||
<div class="typecho-logo">
|
||||
<h1><a href="<?php $options->siteUrl(); ?>"><?php $options->title(); ?></a></h1>
|
||||
</div>
|
||||
|
||||
<div class="row typecho-page-main">
|
||||
<div class="col-mb-12 col-tb-6 col-tb-offset-3 typecho-content-panel">
|
||||
<div class="typecho-table-wrap">
|
||||
<div class="typecho-page-title">
|
||||
<h2>重置密码</h2>
|
||||
</div>
|
||||
<?php @$this->resetForm()->render(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
include __ADMIN_DIR__ . '/common-js.php';
|
||||
?>
|
||||
<script>
|
||||
</script>
|
||||
<?php
|
||||
include __ADMIN_DIR__ . '/footer.php';
|
||||
?>
|
||||
Reference in New Issue
Block a user