forked from panxianhai/TypExport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanel.php
executable file
·44 lines (40 loc) · 1.86 KB
/
panel.php
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
<?php
$current_version = 0.9;
$version = file_get_contents('http://upgrade.sinaapp.com/typecho/TypExport/version.php');
$message = '';
if ($version > $current_version) {
$message = "此插件有新版本({$version}),当前版本({$current_version}),请到<a href='https://github.com/panxianhai/TypExport'><strong>这里</strong></a>下载更新";
}
include_once 'common.php';
include 'header.php';
include 'menu.php';
?>
<div class="main">
<div class="body container">
<div class="typecho-page-title">
<h2><?php _e('数据导出'); ?></h2>
</div>
<div class="row typecho-page-main" role="form">
<div id="dbmanager-plugin" class="col-mb-12 col-tb-8 col-tb-offset-2">
<p>在您点击下面的按钮后,Typecho会创建一个XML文件,供您保存到计算机中。</p>
<p>我们称这种格式为WordPress eXtended RSS或WXR,它包含了您的全部文章、页面、评论、分类目录和标签。</p>
<p>使用过程中如果有问题,请到 <a href="https://github.com/panxianhai/TypExport/issues">Github</a> 或者 <a
href="http://panxianhai.com/2014/11/typexport-0-9-released/">博客</a> 提出。</p>
<p style="background: #f4ff1c"><?php echo $message; ?></p>
<form action="<?php $options->index('/action/typexport?export'); ?>" method="post">
<ul class="typecho-option typecho-option-submit" id="typecho-option-item-submit-3">
<li>
<button type="submit" class="primary"><?php _e('导出XML文件'); ?></button>
</li>
</ul>
</form>
</div>
</div>
</div>
</div>
<?php
include 'copyright.php';
include 'common-js.php';
include 'table-js.php';
include 'footer.php';
?>