Skip to content

Commit 9d849a9

Browse files
committed
V0.1 自用版本
* 发布至博客 * HTML5 语义化 * 修正部分 Bug
0 parents  commit 9d849a9

17 files changed

+942
-0
lines changed

.gitattributes

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
*.sln merge=union
7+
*.csproj merge=union
8+
*.vbproj merge=union
9+
*.fsproj merge=union
10+
*.dbproj merge=union
11+
12+
# Standard to msysgit
13+
*.doc diff=astextplain
14+
*.DOC diff=astextplain
15+
*.docx diff=astextplain
16+
*.DOCX diff=astextplain
17+
*.dot diff=astextplain
18+
*.DOT diff=astextplain
19+
*.pdf diff=astextplain
20+
*.PDF diff=astextplain
21+
*.rtf diff=astextplain
22+
*.RTF diff=astextplain

.gitignore

Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
#################
2+
## Eclipse
3+
#################
4+
5+
*.pydevproject
6+
.project
7+
.metadata
8+
bin/
9+
tmp/
10+
*.tmp
11+
*.bak
12+
*.swp
13+
*~.nib
14+
local.properties
15+
.classpath
16+
.settings/
17+
.loadpath
18+
19+
# External tool builders
20+
.externalToolBuilders/
21+
22+
# Locally stored "Eclipse launch configurations"
23+
*.launch
24+
25+
# CDT-specific
26+
.cproject
27+
28+
# PDT-specific
29+
.buildpath
30+
31+
32+
#################
33+
## Visual Studio
34+
#################
35+
36+
## Ignore Visual Studio temporary files, build results, and
37+
## files generated by popular Visual Studio add-ons.
38+
39+
# User-specific files
40+
*.suo
41+
*.user
42+
*.sln.docstates
43+
44+
# Build results
45+
46+
[Dd]ebug/
47+
[Rr]elease/
48+
x64/
49+
build/
50+
[Bb]in/
51+
[Oo]bj/
52+
53+
# MSTest test Results
54+
[Tt]est[Rr]esult*/
55+
[Bb]uild[Ll]og.*
56+
57+
*_i.c
58+
*_p.c
59+
*.ilk
60+
*.meta
61+
*.obj
62+
*.pch
63+
*.pdb
64+
*.pgc
65+
*.pgd
66+
*.rsp
67+
*.sbr
68+
*.tlb
69+
*.tli
70+
*.tlh
71+
*.tmp
72+
*.tmp_proj
73+
*.log
74+
*.vspscc
75+
*.vssscc
76+
.builds
77+
*.pidb
78+
*.log
79+
*.scc
80+
81+
# Visual C++ cache files
82+
ipch/
83+
*.aps
84+
*.ncb
85+
*.opensdf
86+
*.sdf
87+
*.cachefile
88+
89+
# Visual Studio profiler
90+
*.psess
91+
*.vsp
92+
*.vspx
93+
94+
# Guidance Automation Toolkit
95+
*.gpState
96+
97+
# ReSharper is a .NET coding add-in
98+
_ReSharper*/
99+
*.[Rr]e[Ss]harper
100+
101+
# TeamCity is a build add-in
102+
_TeamCity*
103+
104+
# DotCover is a Code Coverage Tool
105+
*.dotCover
106+
107+
# NCrunch
108+
*.ncrunch*
109+
.*crunch*.local.xml
110+
111+
# Installshield output folder
112+
[Ee]xpress/
113+
114+
# DocProject is a documentation generator add-in
115+
DocProject/buildhelp/
116+
DocProject/Help/*.HxT
117+
DocProject/Help/*.HxC
118+
DocProject/Help/*.hhc
119+
DocProject/Help/*.hhk
120+
DocProject/Help/*.hhp
121+
DocProject/Help/Html2
122+
DocProject/Help/html
123+
124+
# Click-Once directory
125+
publish/
126+
127+
# Publish Web Output
128+
*.Publish.xml
129+
*.pubxml
130+
131+
# NuGet Packages Directory
132+
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
133+
#packages/
134+
135+
# Windows Azure Build Output
136+
csx
137+
*.build.csdef
138+
139+
# Windows Store app package directory
140+
AppPackages/
141+
142+
# Others
143+
sql/
144+
*.Cache
145+
ClientBin/
146+
[Ss]tyle[Cc]op.*
147+
~$*
148+
*~
149+
*.dbmdl
150+
*.[Pp]ublish.xml
151+
*.pfx
152+
*.publishsettings
153+
154+
# RIA/Silverlight projects
155+
Generated_Code/
156+
157+
# Backup & report files from converting an old project file to a newer
158+
# Visual Studio version. Backup files are not needed, because we have git ;-)
159+
_UpgradeReport_Files/
160+
Backup*/
161+
UpgradeLog*.XML
162+
UpgradeLog*.htm
163+
164+
# SQL Server files
165+
App_Data/*.mdf
166+
App_Data/*.ldf
167+
168+
#############
169+
## Windows detritus
170+
#############
171+
172+
# Windows image file caches
173+
Thumbs.db
174+
ehthumbs.db
175+
176+
# Folder config file
177+
Desktop.ini
178+
179+
# Recycle Bin used on file shares
180+
$RECYCLE.BIN/
181+
182+
# Mac crap
183+
.DS_Store
184+
185+
186+
#############
187+
## Python
188+
#############
189+
190+
*.py[co]
191+
192+
# Packages
193+
*.egg
194+
*.egg-info
195+
dist/
196+
build/
197+
eggs/
198+
parts/
199+
var/
200+
sdist/
201+
develop-eggs/
202+
.installed.cfg
203+
204+
# Installer logs
205+
pip-log.txt
206+
207+
# Unit test / coverage reports
208+
.coverage
209+
.tox
210+
211+
#Translations
212+
*.mo
213+
214+
#Mr Developer
215+
.mr.developer.cfg

comments.php

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?php if ( post_password_required() ) return; ?>
2+
3+
<div id="cmt" class="cmt">
4+
5+
<?php if ( have_comments() ) : ?>
6+
7+
<ol class="cmt_list">
8+
<?php wp_list_comments( array( 'callback' => 'tt_comment', 'style' => 'ol' ) ); ?>
9+
</ol>
10+
11+
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
12+
<nav id="cmt-nav" class="navigation" role="navigation">
13+
<div class="cmt-nav-prev"><?php previous_comments_link( '&larr; 更旧的吐槽' ); ?></div>
14+
<div class="cmt-nav-next"><?php next_comments_link( '更新的吐槽 &rarr;' ); ?></div>
15+
</nav>
16+
<?php endif; ?>
17+
18+
<?php if ( ! comments_open() && get_comments_number() ) : ?>
19+
<p class="nocomments">要和谐,不要吐槽~</p>
20+
<?php endif; ?>
21+
22+
<?php endif; ?>
23+
24+
<?php $comments_args = array(
25+
'id_form' => 'cmt_form',
26+
'id_submit' => 'cmt_submit',
27+
'title_reply' => '',
28+
'title_reply_to' => '吐槽 %s',
29+
'cancel_reply_link' => '放弃吐槽',
30+
'label_submit' => '发射',
31+
32+
'comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true">' .
33+
'</textarea></p>',
34+
35+
'must_log_in' => '<p class="must-log-in">' .
36+
sprintf(
37+
__( '你必须 <a href="%s">登录</a> 后吐槽。' ),
38+
wp_login_url( apply_filters( 'the_permalink', get_permalink() ) )
39+
) . '</p>',
40+
41+
'logged_in_as' => '<p class="logged-in-as">' .
42+
sprintf(
43+
'以 <a href="%1$s">%2$s</a> 登录。 <a href="%3$s" title="Log out of this account">退出</a>',
44+
admin_url( 'profile.php' ),
45+
$user_identity,
46+
wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) )
47+
) . '</p>',
48+
49+
'comment_notes_before' => '',
50+
51+
'comment_notes_after' => '',
52+
53+
'fields' => apply_filters( 'comment_form_default_fields', array(
54+
55+
'author' =>
56+
'<div id="cmt_form_meta"><input placeholder="称呼" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) .
57+
'" ' . $aria_req . ' />',
58+
59+
'email' =>
60+
'<input placeholder="邮箱" id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) .
61+
'" ' . $aria_req . ' />',
62+
63+
'url' =>
64+
'<input placeholder="站点" id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) .
65+
'" /></div>'
66+
)
67+
),
68+
); ?>
69+
70+
<?php comment_form($comments_args); ?>
71+
72+
</div>

footer.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<footer id="footer" role="contentinfo">
2+
3+
Design by <a href="http://dimpurr.com" title="Dimpurr (钉子)">Dimpurr</a><br />
4+
Theme <a href="http://blog.dimpurr.com/clearision" title="Clearision">Clearision</a><br />
5+
<a href="http://wordpress.org/" title="WordPress">Wordress</a> & <script type="text/javascript">
6+
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
7+
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fa391a46c7756f37d830b6b897861631b' type='text/javascript'%3E%3C/script%3E"));
8+
</script><br /><?php wp_footer(); ?>
9+
10+
</footer>
11+
12+
</div>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)