-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpost.php
133 lines (108 loc) · 5.85 KB
/
post.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?php
$this->need('inc/header.php');
if ($this->options->langis == '0') {
require_once(dirname(__FILE__) . '/inc/lang/en-us.php');
} elseif ($this->options->langis == '1') {
require_once(dirname(__FILE__) . '/inc/lang/zh-cn.php');
} elseif ($this->options->langis == '2') {
require_once(dirname(__FILE__) . '/inc/lang/zh-tw.php');
}
$MultiLang = new LangDict();
?>
<!-- Standalone CSS Calling For Index -->
<?php if (!empty($this->options->CDNUrl)): ?>
<link class="pjax-load" rel="stylesheet" type="text/css" media="all" href="<?php $this->options->CDNUrl(); ?>/MaterialCDN/css/post.css" />
<?php else: ?>
<link class="pjax-load" rel="stylesheet" type="text/css" media="all" href="<?php $this->options->themeUrl('css/post.css'); ?>" />
<?php endif; ?>
<!-- Standalone CSS END-->
<link rel="prefetch" href="<?php $this->options->themeUrl('css/index.css') ?>" as="style">
</head>
<body class="mdui-drawer-body-left mdui-theme-primary-<?php $this->options->ThemeColor(); ?> mdui-theme-accent-<?php $this->options->AccentColor(); ?> <?php if (in_array('DarkTheme', $this->options->FunctionSwitch)) { echo 'mdui-theme-layout-dark'; }?>">
<main id="main">
<!-- Header & Appbar & Title -->
<header class="mdui-appbar mdui-appbar-fixed mdui-appbar-scroll-hide header-responsive" >
<div class="mdui-toolbar mdui-color-theme mdui-color-white" >
<!--<div class="mdui-toolbar-spacer"></div>-->
<span class="mdui-btn mdui-btn-icon mdui-ripple mdui-ripple-white" mdui-drawer="{target: '#sidebar', swipe: true}"><i class="mdui-icon material-icons">menu</i></span>
<a href="<?php $this->options->siteUrl(); ?>" class="mdui-typo-headline mdui-center" >
<?php $this->options->title(); ?>
</a>
</div>
</header>
<!-- Header & Appbar & Title End -->
<div class="mdui-container-fluid mdui-appbar-with-toolbar pjax-load" >
<div class="mdui-row" >
<div class="mdui-col-xs-12 mdui-col-md-10 mdui-col-offset-md-1">
<!--Post Content Md Card Begin-->
<div class="mdui-card" >
<div class="mdui-card-media post-card-media" >
<img src="<?php showThumbnail($this); ?>">
<div class="mdui-card-primary mdui-card-media-covered mdui-card-media-covered-gradient" >
<div clas="mdui-card-primary-title mdui-typo">
<h1><?php $this->title() ?></h1>
</div>
</div>
</div>
<div class="mdui-card-header" >
<?php if (!empty($this->options->avatarURL)): ?>
<img class="mdui-card-header-avatar" src="<?php $this->options->avatarURL() ?>" width="44px" height="44px" />
<?php else: ?>
<?php $this->author->gravatar(64,'X','https://i.loli.net/2018/06/10/5b1d11b5bed74.png',"mdui-card-header-avatar"); ?>
<?php endif; ?>
<!--Author Name-->
<span class="mdui-card-header-title mdui-typo"><a href="<?php $this->author->permalink(); ?>">
<?php $this->author(); ?></a>
</span>
<span class="mdui-card-header-subtitle" >
<?php if ($this->options->langis == '0'): ?>
<?php $this->date('F j, Y'); ?>
<?php else: ?>
<?php $this->dateWord(); ?>
<?php endif; ?>
</span>
<!--Row Of Subtitle End-->
<!-- favorite
<?php $allplugin = Typecho_Plugin::export(); ?>
<?php if (array_key_exists('TeStat', $allplugin['activated'])): ?>
<button id="article-functions-like-button" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon btn-like" data-cid="<?php $this->cid();?>" data-num="<?php $this->likesNum();?>">
<i class="material-icons mdl-badge mdl-badge--overlap" role="presentation" data-badge="<?php $this->likesNum();?>">favorite</i>
<span class="visuallyhidden">favorites</span>
</button>
<?php endif; ?> -->
</div>
<div class="mdui-card-content">
<?php $this->content(); ?>
</div>
</div>
<!--Post Content MD Card End -->
</div>
</div>
</div>
<?php $this->need('inc/comments.php'); ?>
<!-- theNext thePrev button -->
<div class="mdui-container mdui-m-b-4 pjax-load">
<nav class="mdui-row">
<?php $this->theNext('%s', null, array('title' => '
<div class="mdui-col-xs-4">
<button class="mdui-btn mdui-btn-raised mdui-ripple round-btn mdui-color-white mdui-text-color-theme-accent" role="presentation">
<i class="mdui-icon material-icons">arrow_back</i>
Newer
</button>
</div> ', 'tagClass' => 'prev-content')); ?>
<div class="mdui-col-xs-4"></div>
<?php $this->thePrev('%s', null, array('title' => '
<div class="mdui-col-xs-4 mdui-text-right">
<button class="mdui-btn mdui-btn-raised mdui-ripple round-btn mdui-color-white mdui-text-color-theme-accent" role="presentation">
Older
<i class="mdui-icon material-icons">arrow_forward</i>
</button>
</div>', 'tagClass' => 'prev-content')); ?>
</nav>
</div>
<?php include('inc/sidebar.php'); ?>
<?php include('inc/footer.php'); ?>
<!-- Execute getViewsStr one time to let $views++ -->
<?php if (in_array('ViewCount',$this->options->FunctionSwitch)): ?>
<?php getViewsStr($this); ?>
<?php endif; ?>