blob: 1badb3d4f48a1a5a614a325ab71321bafc8915b4 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit;
if (isset($_POST['action'])) {
if ($_POST['action'] == 'getLoginAction') {
echo $this->options->loginAction;
exit;
}
}?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="<?php $this->options->charset(); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<meta name="HandheldFriendly" content="true">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<?php
$banner = '';
$description = '';
if($this->is('post') || $this->is('page')){
if(isset($this->fields->banner))
$banner=$this->fields->banner;
if(isset($this->fields->excerpt))
$description = $this->fields->excerpt;
}else{
$description = Helper::options()->description;
}
?>
<title><?php Contents::title($this); ?></title>
<meta name="author" content="<?php $this->author(); ?>" />
<meta name="description" content="<?php if($description != '') echo $description; else $this->excerpt(50); ?>" />
<meta property="og:title" content="<?php Contents::title($this); ?>" />
<meta property="og:description" content="<?php if($description != '') echo $description; else $this->excerpt(50); ?>" />
<meta property="og:site_name" content="<?php Helper::options()->title(); ?>" />
<meta property="og:type" content="<?php if($this->is('post') || $this->is('page')) echo 'article'; else echo 'website'; ?>" />
<meta property="og:url" content="<?php $this->permalink(); ?>" />
<meta property="og:image" content="<?php echo $banner; ?>" />
<meta property="article:published_time" content="<?php echo date('c', $this->created); ?>" />
<meta property="article:modified_time" content="<?php echo date('c', $this->modified); ?>" />
<meta name="twitter:title" content="<?php Contents::title($this); ?>" />
<meta name="twitter:description" content="<?php if($description != '') echo $description; else $this->excerpt(50); ?>" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:image" content<?php echo $banner; ?>" />
<link rel="icon" type="image/png" href="<?php Utils::indexTheme('favicon.ico'); ?>" />
<?php $this->header('description=&'); ?>
<?php $this->options->headerEcho(); ?>
<!-- css -->
<link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/normalize.css'); ?>" />
<link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/nprogress.css'); ?>" />
<link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/prism.css'); ?>" />
<link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/owo.min.css'); ?>" />
<link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/fancybox.css'); ?>" />
<link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/miracles.min.css'); ?>" />
<link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/dark.miracles.css'); ?>" />
<!-- icon font -->
<link rel="stylesheet" href="//at.alicdn.com/t/font_1165190_maespcngb4g.css" />
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC:300|Noto+Serif+SC:300&display=swap" rel="stylesheet">
<style>.body-dark .pio-action .pio-home{background-image: url(<?php Utils::indexTheme('images/icons/home.png'); ?>);}.body-dark .pio-action .pio-close{background-image: url(<?php Utils::indexTheme('images/icons/remove.png'); ?>);}.body-dark .pio-action .pio-skin{background-image: url(<?php Utils::indexTheme('images/icons/skin.png'); ?>);}.body-dark .pio-action .pio-info{background-image: url(<?php Utils::indexTheme('images/icons/info.png'); ?>);}.body-dark .pio-action .pio-night{background-image: url(<?php Utils::indexTheme('images/icons/night.png'); ?>);}@media (min-width:992px) {.search{background-image:url(<?php Utils::indexTheme('images/search.png'); ?>);}.login{background-image:url(<?php Utils::indexTheme('images/login.png'); ?>)}}
.search {background-position: bottom right;background-repeat: no-repeat}
.login {background-position: bottom left;background-repeat:no-repeat}
<?php $this->options->cssEcho(); ?>
<?php $this->options->cssEcho(); ?>
</style>
</head>
<body class="font-sans-serif">
|