├── 404.php ├── README.md ├── archive.php ├── author.php ├── category.php ├── comments.php ├── content-aside.php ├── content-image.php ├── content-link.php ├── content-none.php ├── content-page.php ├── content-quote.php ├── content-status.php ├── content.php ├── css └── ie.css ├── editor-style-rtl.css ├── editor-style.css ├── font ├── bold.woff ├── italic-bold.woff ├── italic.woff └── normal.woff ├── footer.php ├── functions.php ├── header.php ├── image.php ├── inc └── custom-header.php ├── index.php ├── js ├── android.js ├── html5.js ├── jquery.js ├── navigation.js └── theme-customizer.js ├── languages └── twentytwelve.pot ├── page-templates ├── front-page.php └── full-width.php ├── page.php ├── rtl.css ├── screenshot.png ├── screenshot.psd ├── search.php ├── sidebar-front.php ├── sidebar.php ├── single.php ├── style.css └── tag.php /404.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 |
14 | 15 |
16 |
17 |

18 |
19 | 20 |
21 |

22 | 23 |
24 |
25 | 26 |
27 |
28 | 29 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Android 2 | ======= 3 | 4 | Android Developer Style WordPress Theme 5 | 6 | #ChangeLog 7 | 8 | 2013.7.23 调整文章内导航代码顺序,SEO,推荐更新 9 | 10 | 11 | ##搜索 12 | 快捷键 / 直接跳到搜索框 13 | AJAX 结果展示 14 | 样式优化 15 | 16 | support [http://ooxx.me/theme-android.orz](http://ooxx.me/theme-android.orz) -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 21 | 22 |
23 |
24 | 25 | 26 |
27 |

' . get_the_date() . '' ); 30 | elseif ( is_month() ) : 31 | printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '' ); 32 | elseif ( is_year() ) : 33 | printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '' ); 34 | else : 35 | _e( 'Archives', 'twentytwelve' ); 36 | endif; 37 | ?>

38 |
39 | 40 | 54 | 55 | 56 | 57 | 58 | 59 |
60 |
61 | 62 | 63 | -------------------------------------------------------------------------------- /author.php: -------------------------------------------------------------------------------- 1 | 15 | 16 |
17 |
18 | 19 | 20 | 21 | 30 | 31 |
32 |

' . get_the_author() . '' ); ?>

33 |
34 | 35 | 42 | 43 | 44 | 45 | 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 | -------------------------------------------------------------------------------- /category.php: -------------------------------------------------------------------------------- 1 | 15 | 16 |
17 |
18 | 19 | 20 |
21 |

' . single_cat_title( '', false ) . '' ); ?>

22 | 23 | 24 |
25 | 26 |
27 | 28 | 42 | 43 | 44 | 45 | 46 | 47 |
48 |
49 | 50 | 51 | -------------------------------------------------------------------------------- /comments.php: -------------------------------------------------------------------------------- 1 | 23 | 24 |
25 | 26 | 27 | 28 | 29 |

30 | ' . get_the_title() . '' ); 33 | ?> 34 |

35 | 36 |
    37 | 'twentytwelve_comment', 'style' => 'ol' ) ); ?> 38 |
39 | 40 | 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> 41 | 46 | 47 | 48 | 53 |

54 | 55 | 56 | 57 | 58 | 59 | 60 |
-------------------------------------------------------------------------------- /content-aside.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
> 12 |
13 |

14 |
15 | →', 'twentytwelve' ) ); ?> 16 |
17 |
18 | 19 | 28 |
29 | -------------------------------------------------------------------------------- /content-image.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
> 12 |
13 | →', 'twentytwelve' ) ); ?> 14 |
15 | 16 | 28 |
29 | -------------------------------------------------------------------------------- /content-link.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
> 12 |
13 |
14 | →', 'twentytwelve' ) ); ?> 15 |
16 | 17 | 26 |
27 | -------------------------------------------------------------------------------- /content-none.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 |
13 |

14 |
15 | 16 |
17 |

18 | 19 |
20 |
21 | -------------------------------------------------------------------------------- /content-page.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
> 12 |
13 |

14 |
15 | 16 |
17 | 18 | '' ) ); ?> 19 |
20 | 23 |
24 | -------------------------------------------------------------------------------- /content-quote.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
> 12 |
13 | →', 'twentytwelve' ) ); ?> 14 |
15 | 16 | 25 |
26 | -------------------------------------------------------------------------------- /content-status.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
> 12 |
13 |
14 |

15 |

16 |
17 | 18 |
19 | 20 |
21 | →', 'twentytwelve' ) ); ?> 22 |
23 | 24 | 32 |
33 | -------------------------------------------------------------------------------- /content.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
> 12 | 13 |
14 | 15 |
16 | 17 |
18 | 19 | 20 |

21 | 22 |

23 | 24 |

25 | 26 | 27 | 30 | 31 |
32 | 33 | 34 |
35 | 36 |
37 | 38 |
39 | →', 'twentytwelve' ) ); ?> 40 | '' ) ); ?> 41 |
42 | 43 | 44 | 64 |
65 | -------------------------------------------------------------------------------- /css/ie.css: -------------------------------------------------------------------------------- 1 | /* 2 | Styles for older IE versions (previous to IE9). 3 | */ 4 | 5 | body { 6 | background-color: #e6e6e6; 7 | } 8 | body.custom-background-empty { 9 | background-color: #fff; 10 | } 11 | body.custom-background-empty .site, 12 | body.custom-background-white .site { 13 | box-shadow: none; 14 | margin-bottom: 0; 15 | margin-top: 0; 16 | padding: 0; 17 | } 18 | .assistive-text, 19 | .site .screen-reader-text { 20 | clip: rect(1px 1px 1px 1px); /* IE7 */ 21 | } 22 | .full-width .site-content { 23 | float: none; 24 | width: 100%; 25 | } 26 | img.size-full, 27 | img.size-large, 28 | img.header-image, 29 | img.wp-post-image, 30 | img[class*="align"], 31 | img[class*="wp-image-"], 32 | img[class*="attachment-"] { 33 | width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */ 34 | } 35 | .author-avatar { 36 | float: left; 37 | margin-top: 8px; 38 | margin-top: 0.571428571rem; 39 | } 40 | .author-description { 41 | float: right; 42 | width: 80%; 43 | } 44 | .site { 45 | box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3); 46 | margin: 48px auto; 47 | max-width: 960px; 48 | overflow: hidden; 49 | padding: 0 40px; 50 | } 51 | .site-content { 52 | float: left; 53 | width: 65.104166667%; 54 | } 55 | body.template-front-page .site-content, 56 | body.single-attachment .site-content, 57 | body.full-width .site-content { 58 | width: 100%; 59 | } 60 | .widget-area { 61 | float: right; 62 | width: 26.041666667%; 63 | } 64 | .site-header h1, 65 | .site-header h2 { 66 | text-align: left; 67 | } 68 | .site-header h1 { 69 | font-size: 26px; 70 | line-height: 1.846153846; 71 | } 72 | .main-navigation ul.nav-menu, 73 | .main-navigation div.nav-menu > ul { 74 | border-bottom: 1px solid #ededed; 75 | border-top: 1px solid #ededed; 76 | display: inline-block !important; 77 | text-align: left; 78 | width: 100%; 79 | } 80 | .main-navigation ul { 81 | margin: 0; 82 | text-indent: 0; 83 | } 84 | .main-navigation li a, 85 | .main-navigation li { 86 | display: inline-block; 87 | text-decoration: none; 88 | } 89 | .ie7 .main-navigation li a, 90 | .ie7 .main-navigation li { 91 | display: inline; 92 | } 93 | .main-navigation li a { 94 | border-bottom: 0; 95 | color: #6a6a6a; 96 | line-height: 3.692307692; 97 | text-transform: uppercase; 98 | } 99 | .main-navigation li a:hover { 100 | color: #000; 101 | } 102 | .main-navigation li { 103 | margin: 0 40px 0 0; 104 | position: relative; 105 | } 106 | .main-navigation li ul { 107 | display: none; 108 | margin: 0; 109 | padding: 0; 110 | position: absolute; 111 | top: 100%; 112 | z-index: 1; 113 | } 114 | .ie7 .main-navigation li ul { 115 | left: 0; 116 | } 117 | .main-navigation li ul ul, 118 | .ie7 .main-navigation li ul ul { 119 | top: 0; 120 | left: 100%; 121 | } 122 | .main-navigation ul li:hover > ul { 123 | border-left: 0; 124 | display: block; 125 | } 126 | .main-navigation li ul li a { 127 | background: #efefef; 128 | border-bottom: 1px solid #ededed; 129 | display: block; 130 | font-size: 11px; 131 | line-height: 2.181818182; 132 | padding: 8px 10px; 133 | width: 180px; 134 | } 135 | .main-navigation li ul li a:hover { 136 | background: #e3e3e3; 137 | color: #444; 138 | } 139 | .main-navigation .current-menu-item > a, 140 | .main-navigation .current-menu-ancestor > a, 141 | .main-navigation .current_page_item > a, 142 | .main-navigation .current_page_ancestor > a { 143 | color: #636363; 144 | font-weight: bold; 145 | } 146 | .menu-toggle { 147 | display: none; 148 | } 149 | .entry-header .entry-title { 150 | font-size: 22px; 151 | } 152 | #respond form input[type="text"] { 153 | width: 46.333333333%; 154 | } 155 | #respond form textarea.blog-textarea { 156 | width: 79.666666667%; 157 | } 158 | .template-front-page .site-content, 159 | .template-front-page article { 160 | overflow: hidden; 161 | } 162 | .template-front-page.has-post-thumbnail article { 163 | float: left; 164 | width: 47.916666667%; 165 | } 166 | .entry-page-image { 167 | float: right; 168 | margin-bottom: 0; 169 | width: 47.916666667%; 170 | } 171 | .template-front-page .widget-area .widget, 172 | .template-front-page.two-sidebars .widget-area .front-widgets { 173 | float: left; 174 | margin-bottom: 24px; 175 | width: 51.875%; 176 | } 177 | .template-front-page .widget-area .widget:nth-child(odd) { 178 | clear: right; 179 | } 180 | .template-front-page .widget-area .widget:nth-child(even), 181 | .template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets { 182 | float: right; 183 | margin: 0 0 24px; 184 | width: 39.0625%; 185 | } 186 | .template-front-page.two-sidebars .widget, 187 | .template-front-page.two-sidebars .widget:nth-child(even) { 188 | float: none; 189 | width: auto; 190 | } 191 | 192 | /* =RTL overrides for IE7 and IE8 193 | -------------------------------------------------------------- */ 194 | .rtl .site-header h1, 195 | .rtl .site-header h2 { 196 | text-align: right; 197 | } 198 | .rtl .widget-area, 199 | .rtl .author-description { 200 | float: left; 201 | } 202 | .rtl .author-avatar, 203 | .rtl .site-content { 204 | float: right; 205 | } 206 | .rtl .main-navigation ul.nav-menu, 207 | .rtl .main-navigation div.nav-menu > ul { 208 | text-align: right; 209 | } 210 | .rtl .main-navigation ul li ul li, 211 | .rtl .main-navigation ul li ul li ul li { 212 | margin-left: 40px; 213 | margin-right: auto; 214 | } 215 | .rtl .main-navigation li ul ul { 216 | position: absolute; 217 | bottom: 0; 218 | right: 100%; 219 | z-index: 1; 220 | } 221 | .ie7 .rtl .main-navigation li ul ul { 222 | position: absolute; 223 | bottom: 0; 224 | right: 100%; 225 | z-index: 1; 226 | } 227 | .ie7 .rtl .main-navigation ul li { 228 | z-index: 99; 229 | } 230 | .ie7 .rtl .main-navigation li ul { 231 | position: absolute; 232 | bottom: 100%; 233 | right: 0; 234 | z-index: 1; 235 | } 236 | .ie7 .rtl .main-navigation li { 237 | margin-right: auto; 238 | margin-left: 40px; 239 | } 240 | .ie7 .rtl .main-navigation li ul ul ul { 241 | position: relative; 242 | z-index: 1; 243 | } -------------------------------------------------------------------------------- /editor-style-rtl.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Twenty Twelve 3 | Description: Used to style the TinyMCE editor for RTL languages. 4 | See also rtl.css file. 5 | */ 6 | 7 | html .mceContentBody { 8 | direction: rtl; 9 | unicode-bidi: embed; 10 | } 11 | li { 12 | margin: 0 24px 0 0; 13 | margin: 0 1.714285714rem 0 0; 14 | } 15 | dl { 16 | margin: 0 24px; 17 | margin: 0 1.714285714rem; 18 | } 19 | tr th { 20 | text-align: right; 21 | } 22 | td { 23 | padding: 6px 0 6px 10px; 24 | text-align: right; 25 | } 26 | .wp-caption { 27 | text-align: right; 28 | } -------------------------------------------------------------------------------- /editor-style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Twenty Twelve 3 | Description: Used to style the TinyMCE editor. 4 | */ 5 | 6 | html { 7 | font-size: 87.5%; 8 | } 9 | html .mceContentBody { 10 | max-width: 625px; 11 | } 12 | body { 13 | color: #444; 14 | font-family: "Open Sans", Helvetica, Arial, sans-serif; 15 | font-size: 14px; 16 | font-size: 1rem; 17 | line-height: 1; 18 | text-rendering: optimizeLegibility; 19 | vertical-align: baseline; 20 | } 21 | 22 | 23 | /* =Headings 24 | -------------------------------------------------------------- */ 25 | 26 | h1, 27 | h2, 28 | h3, 29 | h4, 30 | h5, 31 | h6 { 32 | clear: both; 33 | line-height: 1.846153846; 34 | margin: 24px 0; 35 | margin: 1.714285714rem 0; 36 | } 37 | h1 { 38 | font-size: 21px; 39 | font-size: 1.5rem; 40 | line-height: 1.5; 41 | } 42 | h2 { 43 | font-size: 18px; 44 | font-size: 1.285714286rem; 45 | line-height: 1.6; 46 | } 47 | h3 { 48 | font-size: 16px; 49 | font-size: 1.142857143rem; 50 | } 51 | h4 { 52 | font-size: 14px; 53 | font-size: 1rem; 54 | } 55 | h5 { 56 | font-size: 13px; 57 | font-size: 0.928571429rem; 58 | } 59 | h6 { 60 | font-size: 12px; 61 | font-size: 0.857142857rem; 62 | } 63 | hr { 64 | background-color: #ccc; 65 | border: 0; 66 | height: 1px; 67 | margin: 24px; 68 | margin-bottom: 1.714285714rem; 69 | } 70 | 71 | 72 | /* =Text elements 73 | -------------------------------------------------------------- */ 74 | 75 | p { 76 | line-height: 1.714285714; 77 | margin: 0 0 24px; 78 | margin: 0 0 1.714285714rem; 79 | } 80 | ul, 81 | ol { 82 | margin: 0 0 24px; 83 | margin: 0 0 1.714285714rem; 84 | line-height: 1.714285714; 85 | padding: 0; 86 | } 87 | ul { 88 | list-style: disc outside; 89 | } 90 | ol { 91 | list-style: decimal outside; 92 | } 93 | ul ul, 94 | ol ol, 95 | ul ol, 96 | ol ul { 97 | margin-bottom: 0; 98 | } 99 | li { 100 | margin: 0 0 0 24px; 101 | margin: 0 0 0 1.714285714rem; 102 | } 103 | dl { 104 | margin: 0 24px; 105 | margin: 0 1.714285714rem; 106 | } 107 | dt { 108 | font-weight: bold; 109 | margin-bottom: 24px; 110 | margin-bottom: 1.714285714rem; 111 | } 112 | dd { 113 | line-height: 1.714285714; 114 | margin: 0 0 24px; 115 | margin: 0 0 1.714285714rem; 116 | } 117 | strong { 118 | font-weight: bold; 119 | } 120 | cite, 121 | em, 122 | i { 123 | font-style: italic; 124 | } 125 | cite { 126 | border: none; 127 | } 128 | big { 129 | font-size: 128.571429%; 130 | } 131 | .mceContentBody blockquote { 132 | font-style: italic !important; 133 | font-weight: normal; 134 | margin: 0; 135 | padding: 24px; 136 | padding: 1.714285714rem; 137 | } 138 | pre { 139 | border: 1px solid #ededed; 140 | color: #666; 141 | font-family: Consolas, Monaco, Lucida Console, monospace; 142 | font-size: 12px; 143 | font-size: 0.857142857rem; 144 | line-height: 1.714285714; 145 | margin: 24px 0; 146 | margin: 1.714285714rem 0; 147 | overflow: auto; 148 | padding: 24px; 149 | padding: 1.714285714rem; 150 | } 151 | code, 152 | kbd, 153 | samp, 154 | var { 155 | font-family: Consolas, Monaco, Lucida Console, monospace; 156 | font-size: 12px; 157 | font-size: 0.857142857rem; 158 | line-height: 2; 159 | } 160 | abbr, 161 | acronym, 162 | dfn { 163 | border-bottom: 1px dotted #666; 164 | cursor: help; 165 | } 166 | address { 167 | display: block; 168 | line-height: 1.714285714; 169 | margin: 0 0 24px; 170 | margin: 0 0 1.714285714rem; 171 | } 172 | del { 173 | color: #333; 174 | } 175 | ins { 176 | background: #fff9c0; 177 | border: none; 178 | color: #333; 179 | text-decoration: none; 180 | } 181 | sup, 182 | sub { 183 | font-size: 75%; 184 | line-height: 0; 185 | position: relative; 186 | vertical-align: baseline; 187 | } 188 | sup { 189 | top: -0.5em; 190 | } 191 | sub { 192 | bottom: -0.25em; 193 | } 194 | input[type="text"] { 195 | border: 1px solid #ccc; 196 | border-radius: 3px; 197 | font-family: inherit; 198 | padding: 6px; 199 | padding: 0.428571429rem; 200 | } 201 | textarea { 202 | border: 1px solid #d5d2ca; 203 | border-radius: 3px; 204 | font-family: inherit; 205 | font-size: 12px; 206 | font-size: 0.857142857rem; 207 | line-height: 1.714285714; 208 | padding: 10px; 209 | padding: 0.714285714rem; 210 | width: 96%; 211 | } 212 | 213 | 214 | /* =Links 215 | -------------------------------------------------------------- */ 216 | 217 | a, 218 | a em, 219 | a strong { 220 | color: #21759b; 221 | outline: none; 222 | } 223 | a:focus, 224 | a:active, 225 | a:hover { 226 | color: #0f3647; 227 | } 228 | 229 | 230 | /* =Alignment 231 | -------------------------------------------------------------- */ 232 | 233 | .alignleft { 234 | display: inline; 235 | float: left; 236 | margin: 12px 24px 12px 0; 237 | margin: 0.857142857rem 1.714285714rem 0.857142857rem 0; 238 | } 239 | .alignright { 240 | display: inline; 241 | float: right; 242 | margin: 12px 0 12px 24px; 243 | margin: 0.857142857rem 0 0.857142857rem 1.714285714rem; 244 | } 245 | .aligncenter { 246 | clear: both; 247 | display: block; 248 | margin-top: 12px; 249 | margin-top: 0.857142857rem; 250 | margin-bottom: 12px; 251 | margin-bottom: 0.857142857rem; 252 | } 253 | 254 | 255 | /* =Tables 256 | -------------------------------------------------------------- */ 257 | 258 | table { 259 | border-bottom: 1px solid #ededed; 260 | border-collapse: collapse; 261 | border-spacing: 0; 262 | color: #757575; 263 | font-size: 12px; 264 | font-size: 0.857142857rem; 265 | line-height: 2; 266 | margin: 0 0 24px; 267 | margin: 0 0 1.714285714rem; 268 | width: 100%; 269 | } 270 | tr th { 271 | color: #636363; 272 | font-size: 11px; 273 | font-size: 0.785714286rem; 274 | font-weight: bold; 275 | line-height: 2.181818182; 276 | text-align: left; 277 | text-transform: uppercase; 278 | } 279 | td { 280 | border-top: 1px solid #ededed !important; 281 | color: #757575; 282 | font-size: inherit; 283 | font-weight: normal; 284 | padding: 6px 10px 6px 0; 285 | text-align: left; 286 | } 287 | 288 | 289 | /* =Images 290 | -------------------------------------------------------------- */ 291 | 292 | img, 293 | .editor-attachment { 294 | border: 0; 295 | border-radius: 3px; 296 | box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); 297 | max-width: 100%; 298 | } 299 | img.size-full { 300 | width: auto/9; /* Prevent stretching of full-size images in IE8 */ 301 | } 302 | img[class*="wp-image-"] { 303 | height: auto; 304 | max-width: 100%; 305 | } 306 | img[class*="align"], 307 | img[class*="wp-image-"], 308 | img[class*="attachment-"] { 309 | height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ 310 | } 311 | img.mceWPnextpage { 312 | border-radius: 0; 313 | box-shadow: none; 314 | } 315 | img.wp-smiley { 316 | border: 0; 317 | border-radius: 0; 318 | box-shadow: none; 319 | margin-bottom: 0; 320 | margin-top: 0; 321 | padding: 0; 322 | } 323 | .wp-caption { 324 | background: transparent; 325 | border: none; 326 | margin: 0; 327 | padding: 4px; 328 | text-align: left; 329 | } 330 | .wp-caption-dt { 331 | margin: 0; 332 | } 333 | .wp-caption .wp-caption-text, 334 | .wp-caption-dd { 335 | color: #757575; 336 | font-style: italic; 337 | font-size: 12px; 338 | font-size: 0.857142857rem; 339 | line-height: 2; 340 | margin: 0 0 24px; 341 | margin: 0 0 1.71429rem; 342 | } -------------------------------------------------------------------------------- /font/bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damao/Android/4c2ec2403171e9ceca0dd2d1491df03b1acda7e7/font/bold.woff -------------------------------------------------------------------------------- /font/italic-bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damao/Android/4c2ec2403171e9ceca0dd2d1491df03b1acda7e7/font/italic-bold.woff -------------------------------------------------------------------------------- /font/italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damao/Android/4c2ec2403171e9ceca0dd2d1491df03b1acda7e7/font/italic.woff -------------------------------------------------------------------------------- /font/normal.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damao/Android/4c2ec2403171e9ceca0dd2d1491df03b1acda7e7/font/normal.woff -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 22 | 23 | 24 | 25 | 26 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | for posts and comments. 58 | add_theme_support( 'automatic-feed-links' ); 59 | 60 | // This theme supports a variety of post formats. 61 | add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) ); 62 | 63 | // This theme uses wp_nav_menu() in one location. 64 | register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) ); 65 | 66 | /* 67 | * This theme supports custom background color and image, and here 68 | * we also set up the default background color. 69 | */ 70 | add_theme_support( 'custom-background', array( 71 | 'default-color' => 'F9F9F9', 72 | ) ); 73 | 74 | // This theme uses a custom image size for featured images, displayed on "standard" posts. 75 | add_theme_support( 'post-thumbnails' ); 76 | set_post_thumbnail_size( 624, 9999 ); // Unlimited height, soft crop 77 | } 78 | add_action( 'after_setup_theme', 'twentytwelve_setup' ); 79 | 80 | /** 81 | * Adds support for a custom header image. 82 | */ 83 | require( get_template_directory() . '/inc/custom-header.php' ); 84 | 85 | /** 86 | * Enqueues scripts and styles for front-end. 87 | * 88 | * @since Twenty Twelve 1.0 89 | */ 90 | function twentytwelve_scripts_styles() { 91 | global $wp_styles; 92 | 93 | /* 94 | * Adds JavaScript to pages with the comment form to support 95 | * sites with threaded comments (when in use). 96 | */ 97 | if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) 98 | wp_enqueue_script( 'comment-reply' ); 99 | 100 | /* 101 | * Adds JavaScript for handling the navigation menu hide-and-show behavior. 102 | */ 103 | wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '1.0', true ); 104 | 105 | /* 106 | * Loads our special font CSS file. 107 | * 108 | * The use of Open Sans by default is localized. For languages that use 109 | * characters not supported by the font, the font can be disabled. 110 | * 111 | * To disable in a child theme, use wp_dequeue_style() 112 | * function mytheme_dequeue_fonts() { 113 | * wp_dequeue_style( 'twentytwelve-fonts' ); 114 | * } 115 | * add_action( 'wp_enqueue_scripts', 'mytheme_dequeue_fonts', 11 ); 116 | */ 117 | 118 | /* translators: If there are characters in your language that are not supported 119 | by Open Sans, translate this to 'off'. Do not translate into your own language. */ 120 | if ( 'off' !== _x( 'off', 'Open Sans font: on or off', 'twentytwelve' ) ) { 121 | $subsets = 'latin,latin-ext'; 122 | 123 | /* translators: To add an additional Open Sans character subset specific to your language, translate 124 | this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language. */ 125 | $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' ); 126 | 127 | if ( 'cyrillic' == $subset ) 128 | $subsets .= ',cyrillic,cyrillic-ext'; 129 | elseif ( 'greek' == $subset ) 130 | $subsets .= ',greek,greek-ext'; 131 | elseif ( 'vietnamese' == $subset ) 132 | $subsets .= ',vietnamese'; 133 | 134 | $protocol = is_ssl() ? 'https' : 'http'; 135 | $query_args = array( 136 | 'family' => 'Open+Sans:400italic,700italic,400,700', 137 | 'subset' => $subsets, 138 | ); 139 | wp_enqueue_style( 'twentytwelve-fonts', add_query_arg( $query_args, "$protocol://fonts.googleapis.com/css" ), array(), null ); 140 | } 141 | 142 | /* 143 | * Loads our main stylesheet. 144 | */ 145 | wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); 146 | 147 | /* 148 | * Loads the Internet Explorer specific stylesheet. 149 | */ 150 | wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' ); 151 | $wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' ); 152 | } 153 | add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' ); 154 | 155 | /** 156 | * Creates a nicely formatted and more specific title element text 157 | * for output in head of document, based on current view. 158 | * 159 | * @since Twenty Twelve 1.0 160 | * 161 | * @param string $title Default title text for current view. 162 | * @param string $sep Optional separator. 163 | * @return string Filtered title. 164 | */ 165 | function twentytwelve_wp_title( $title, $sep ) { 166 | global $paged, $page; 167 | 168 | if ( is_feed() ) 169 | return $title; 170 | 171 | // Add the site name. 172 | $title .= get_bloginfo( 'name' ); 173 | 174 | // Add the site description for the home/front page. 175 | $site_description = get_bloginfo( 'description', 'display' ); 176 | if ( $site_description && ( is_home() || is_front_page() ) ) 177 | $title = "$title $sep $site_description"; 178 | 179 | // Add a page number if necessary. 180 | if ( $paged >= 2 || $page >= 2 ) 181 | $title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) ); 182 | 183 | return $title; 184 | } 185 | add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 ); 186 | 187 | /** 188 | * Makes our wp_nav_menu() fallback -- wp_page_menu() -- show a home link. 189 | * 190 | * @since Twenty Twelve 1.0 191 | */ 192 | function twentytwelve_page_menu_args( $args ) { 193 | if ( ! isset( $args['show_home'] ) ) 194 | $args['show_home'] = true; 195 | return $args; 196 | } 197 | add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' ); 198 | 199 | /** 200 | * Registers our main widget area and the front page widget areas. 201 | * 202 | * @since Twenty Twelve 1.0 203 | */ 204 | function twentytwelve_widgets_init() { 205 | register_sidebar( array( 206 | 'name' => __( 'Main Sidebar', 'twentytwelve' ), 207 | 'id' => 'sidebar-1', 208 | 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ), 209 | 'before_widget' => '', 211 | 'before_title' => '

', 212 | 'after_title' => '

', 213 | ) ); 214 | 215 | register_sidebar( array( 216 | 'name' => __( 'First Front Page Widget Area', 'twentytwelve' ), 217 | 'id' => 'sidebar-2', 218 | 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), 219 | 'before_widget' => '', 221 | 'before_title' => '

', 222 | 'after_title' => '

', 223 | ) ); 224 | 225 | register_sidebar( array( 226 | 'name' => __( 'Second Front Page Widget Area', 'twentytwelve' ), 227 | 'id' => 'sidebar-3', 228 | 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), 229 | 'before_widget' => '', 231 | 'before_title' => '

', 232 | 'after_title' => '

', 233 | ) ); 234 | } 235 | add_action( 'widgets_init', 'twentytwelve_widgets_init' ); 236 | 237 | if ( ! function_exists( 'twentytwelve_content_nav' ) ) : 238 | /** 239 | * Displays navigation to next/previous pages when applicable. 240 | * 241 | * @since Twenty Twelve 1.0 242 | */ 243 | function twentytwelve_content_nav( $html_id ) { 244 | global $wp_query; 245 | 246 | $html_id = esc_attr( $html_id ); 247 | 248 | if ( $wp_query->max_num_pages > 1 ) : ?> 249 | 254 | comment_type ) : 272 | case 'pingback' : 273 | case 'trackback' : 274 | // Display trackbacks differently than normal comments. 275 | ?> 276 |
  • id="comment-"> 277 |

    ', '' ); ?>

    278 | 284 |
  • id="li-comment-"> 285 |
    286 |
    287 | %1$s %2$s', 290 | get_comment_author_link(), 291 | // If current post author is also comment author, make it known visually. 292 | ( $comment->user_id === $post->post_author ) ? ' ' . __( 'Post author', 'twentytwelve' ) . '' : '' 293 | ); 294 | printf( '', 295 | esc_url( get_comment_link( $comment->comment_ID ) ), 296 | get_comment_time( 'c' ), 297 | /* translators: 1: date, 2: time */ 298 | sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() ) 299 | ); 300 | ?> 301 |
    302 | 303 | comment_approved ) : ?> 304 |

    305 | 306 | 307 |
    308 | 309 | ', '

    ' ); ?> 310 |
    311 | 312 |
    313 | __( 'Reply', 'twentytwelve' ), 'after' => ' ', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> 314 |
    315 |
    316 | ', 338 | esc_url( get_permalink() ), 339 | esc_attr( get_the_time() ), 340 | esc_attr( get_the_date( 'c' ) ), 341 | esc_html( get_the_date() ) 342 | ); 343 | 344 | $author = sprintf( '', 345 | esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 346 | esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ), 347 | get_the_author() 348 | ); 349 | 350 | // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. 351 | if ( $tag_list ) { 352 | $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s by %4$s.', 'twentytwelve' ); 353 | } elseif ( $categories_list ) { 354 | $utility_text = __( 'This entry was posted in %1$s on %3$s by %4$s.', 'twentytwelve' ); 355 | } else { 356 | $utility_text = __( 'This entry was posted on %3$s by %4$s.', 'twentytwelve' ); 357 | } 358 | 359 | printf( 360 | $utility_text, 361 | $categories_list, 362 | $tag_list, 363 | $date, 364 | $author 365 | ); 366 | } 367 | endif; 368 | 369 | /** 370 | * Extends the default WordPress body class to denote: 371 | * 1. Using a full-width layout, when no active widgets in the sidebar 372 | * or full-width template. 373 | * 2. Front Page template: thumbnail in use and number of sidebars for 374 | * widget areas. 375 | * 3. White or empty background color to change the layout and spacing. 376 | * 4. Custom fonts enabled. 377 | * 5. Single or multiple authors. 378 | * 379 | * @since Twenty Twelve 1.0 380 | * 381 | * @param array Existing class values. 382 | * @return array Filtered class values. 383 | */ 384 | function twentytwelve_body_class( $classes ) { 385 | $background_color = get_background_color(); 386 | 387 | if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) ) 388 | $classes[] = 'full-width'; 389 | 390 | if ( is_page_template( 'page-templates/front-page.php' ) ) { 391 | $classes[] = 'template-front-page'; 392 | if ( has_post_thumbnail() ) 393 | $classes[] = 'has-post-thumbnail'; 394 | if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) ) 395 | $classes[] = 'two-sidebars'; 396 | } 397 | 398 | if ( empty( $background_color ) ) 399 | $classes[] = 'custom-background-empty'; 400 | elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) 401 | $classes[] = 'custom-background-white'; 402 | 403 | // Enable custom font class only if the font CSS is queued to load. 404 | if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) 405 | $classes[] = 'custom-font-enabled'; 406 | 407 | if ( ! is_multi_author() ) 408 | $classes[] = 'single-author'; 409 | 410 | return $classes; 411 | } 412 | add_filter( 'body_class', 'twentytwelve_body_class' ); 413 | 414 | /** 415 | * Adjusts content_width value for full-width and single image attachment 416 | * templates, and when there are no active widgets in the sidebar. 417 | * 418 | * @since Twenty Twelve 1.0 419 | */ 420 | function twentytwelve_content_width() { 421 | if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) { 422 | global $content_width; 423 | $content_width = 960; 424 | } 425 | } 426 | add_action( 'template_redirect', 'twentytwelve_content_width' ); 427 | 428 | /** 429 | * Add postMessage support for site title and description for the Theme Customizer. 430 | * 431 | * @since Twenty Twelve 1.0 432 | * 433 | * @param WP_Customize_Manager $wp_customize Theme Customizer object. 434 | * @return void 435 | */ 436 | function twentytwelve_customize_register( $wp_customize ) { 437 | $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 438 | $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 439 | } 440 | add_action( 'customize_register', 'twentytwelve_customize_register' ); 441 | 442 | /** 443 | * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. 444 | * 445 | * @since Twenty Twelve 1.0 446 | */ 447 | function twentytwelve_customize_preview_js() { 448 | wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20120827', true ); 449 | } 450 | add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' ); 451 | 452 | 453 | /* Damao custom , Android 主题 */ 454 | function android_related() 455 | { 456 | $posttags = get_the_tags(); 457 | $postid = get_the_ID(); 458 | if ($posttags) { 459 | foreach ($posttags as $tag) { 460 | query_posts('showposts=5&tag=' . $tag->name); 461 | while (have_posts()) : the_post(); 462 | if ($postid != get_the_ID()) { 463 | ?> 464 |
  • 466 | post_author != $commentdata['user_ID']) 492 | wp_notify_postauthor($comment_ID, $commentdata['comment_type']); 493 | break; 494 | default: 495 | echo "error"; 496 | } 497 | exit; 498 | } 499 | } 500 | 501 | //comment mail 502 | function android_mailtocommente_get_email($comments){ 503 | $temp =array(); 504 | foreach ($comments as $comment){ 505 | $name = $comment->comment_author; 506 | if(!array_key_exists($name,$temp)){ 507 | $email = $comment->comment_author_email; 508 | $temp["$name"] = $email; 509 | } 510 | } 511 | return $temp; 512 | } 513 | function android_mailtocommenter_get_names($content){ 514 | $content = preg_replace('//s','',$content); 515 | $content = preg_replace('//s','',$content); 516 | $content = preg_replace('//s','',$content); 517 | $names = explode(' ',$content); 518 | $output = array(); 519 | foreach($names as $name){ 520 | $name = $name; 521 | $number = substr_count($name,'@'); 522 | if ($number >0 ){ 523 | $length = strlen($name); 524 | $pos = strrpos($name,'@')+1; 525 | $n = substr($name,$pos,$length); 526 | $output["$n"] = $n; 527 | } 528 | } 529 | return $output; 530 | } 531 | function android_mailtocommenter_filter($comment,$username){ 532 | global $wpdb; 533 | 534 | $contents[0] = 'Your comment on [%blog_name%] just been replied by %comment_author%'; 535 | $contents[1] ='Hello, %user%.
    Your comment on 《%post_title%》just been replied by(%comment_author%). Why not check it rightnow. ^_^
    Your comment:
    %your_comment%
    New reply:
    %reply_comment%
    %comment_time%
    View reply, or click here to send mail to Admin
    DO Not reply this mail
    %blog_name%,Welcom to subscribe to %rss_name%.'; 536 | $comment_id = $comment['comment_ID']; 537 | $post_id = $comment['comment_post_ID']; 538 | $post = get_post($post_id); 539 | $admin_email = get_option('admin_email'); 540 | $blog_name = get_option('blogname'); 541 | $blog_link = get_option('home'); 542 | $comment_author = $comment['comment_author']; 543 | $post_link = get_permalink($post_id); 544 | $comment_link = $post_link."#comment-$comment_id"; 545 | $comment_time = $comment['comment_date']; 546 | $post_title = $post->post_title; 547 | $reply_comment = $comment['comment_content']; 548 | $your_comment = $wpdb->get_var("SELECT $wpdb->comments.comment_content FROM $wpdb->comments WHERE $wpdb->comments.comment_post_ID='$post_id' AND $wpdb->comments.comment_author='$username' ORDER BY $wpdb->comments.comment_date DESC"); 549 | $index = 0; 550 | foreach ($contents as $content){ 551 | $filter = $content; 552 | $filter= str_replace("%admin_email%",$admin_email,$filter); 553 | $filter= str_replace("%blog_name%",$blog_name,$filter); 554 | $filter= str_replace("%blog_link%",$blog_link,$filter); 555 | $filter= str_replace("%comment_author%",$comment_author,$filter); 556 | $filter= str_replace("%comment_link%",$comment_link,$filter); 557 | $filter= str_replace("%comment_time%",$comment_time,$filter); 558 | $filter= str_replace("%your_comment%",$your_comment,$filter); 559 | $filter= str_replace("%post_link%",$post_link,$filter); 560 | $filter= str_replace("%post_title%",$post_title,$filter); 561 | $filter= str_replace("%reply_comment%",$reply_comment,$filter); 562 | $filter= str_replace("%rss_name%","RSS",$filter); 563 | $filter= str_replace("%rss_link%",get_bloginfo_rss('rss2_url'),$filter); 564 | $filter= str_replace("%user%",$username,$filter); 565 | $output[$index]= $filter; 566 | $index++; 567 | } 568 | return $output; 569 | } 570 | function android_mailtocommenter_send_email($to,$subject,$message){ 571 | $blogname = get_option('blogname'); 572 | $charset = get_option('blog_charset'); 573 | $headers = "From: $blogname \n" ; 574 | $headers .= "MIME-Version: 1.0\n"; 575 | $headers .= "Content-Type: text/html;charset=\"$charset\"\n"; 576 | $to = strtolower($to); 577 | return @wp_mail($to, $subject, $message, $headers); 578 | } 579 | function android_mailtocommenter($cid){ 580 | global $wpdb; 581 | $cid = (int)$cid; 582 | $commentdata = get_commentdata($cid,1,false); 583 | $owner_email = $commentdata['comment_author_email']; 584 | $post_id = (int)$commentdata['comment_post_ID']; 585 | $comments = get_approved_comments($post_id); 586 | $commentcontent = $commentdata['comment_content']; 587 | $output = android_mailtocommenter_get_names($commentcontent); 588 | if (!$output) return; 589 | $mails = android_mailtocommente_get_email($comments); 590 | $n = array(); 591 | $admin_email = get_option('admin_email'); 592 | $result = 0; 593 | foreach ($output as $name){ 594 | if ((array_key_exists($name,$mails)) and ($mails["$name"]!=$owner_email)){ 595 | $to = $mails["$name"]; 596 | $filter = android_mailtocommenter_filter($commentdata,$name); 597 | $subject =$filter[0]; 598 | $message = $filter[1]; 599 | $message = apply_filters('comment_text', $message); 600 | if(android_mailtocommenter_send_email($to,$subject,$message)){ 601 | $result++; 602 | } 603 | $n["$name"] = $name; 604 | } 605 | } 606 | 607 | if ($result>0){ 608 | $subject = "CC. $subject"; 609 | $n = implode(',',$n); 610 | $n = "
    This comment has been sent to {$n}.
    "; 611 | $m = $n.'Backup copy sent to admin
    '.$message; 612 | $to = strtolower(get_option('admin_email')); 613 | android_mailtocommenter_send_email($to,$subject,$m); 614 | } 615 | } 616 | add_action('comment_post', create_function('$cid', 'return android_mailtocommenter($cid);')); 617 | 618 | 619 | 620 | /** 621 | * 判断是否移动终端 622 | */ 623 | 624 | function is_mobile() 625 | { 626 | if (stristr($_SERVER['HTTP_USER_AGENT'], 'android') || stristr($_SERVER['HTTP_USER_AGENT'], 'iphone')) { 627 | return true; 628 | } else { 629 | return false; 630 | } 631 | } 632 | 633 | function article_nav($content) 634 | { 635 | /** 636 | * 文章目录 637 | */ 638 | 639 | $matches = array(); 640 | $ul_li = ''; 641 | 642 | $r = "//im"; 643 | 644 | if (preg_match_all($r, $content, $matches)) { 645 | foreach ($matches[1] as $num => $title) { 646 | $title_txt = substr($title,1); 647 | $title_txt = preg_replace('/<.*?>/', '', $title_txt);/*干掉h2内标签*/ 648 | $title_txt = preg_replace('/.*?>/', '', $title_txt);/*干掉h2属性*/ 649 | $content = str_replace($matches[0][$num], '

    ', $content); 650 | $ul_li .= '
  • ' . $title_txt . "
  • \n"; 651 | } 652 | if (is_singular()) { 653 | $content = $content.''; 655 | } 656 | } 657 | 658 | 659 | return $content; 660 | } 661 | 662 | add_filter("the_content", "article_nav"); 663 | -------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | section and everything up till
    6 | * 7 | * @package WordPress 8 | * @subpackage Twenty_Twelve 9 | * @since Twenty Twelve 1.0 10 | */ 11 | ?> 12 | 15 | 18 | 19 | > 20 | 21 | 22 | 23 | 24 | <?php wp_title( '|', true, 'right' ); ?> 25 | 26 | 27 | 28 | 31 | 32 | 33 | 34 | > 35 |
    36 | 57 | 58 |
    -------------------------------------------------------------------------------- /image.php: -------------------------------------------------------------------------------- 1 | 13 | 14 |
    15 |
    16 | 17 | 18 | 19 |
    > 20 |
    21 |

    22 | 23 |
    24 | Published at %4$s × %5$s in %8$s.', 'twentytwelve' ), 27 | esc_attr( get_the_date( 'c' ) ), 28 | esc_html( get_the_date() ), 29 | esc_url( wp_get_attachment_url() ), 30 | $metadata['width'], 31 | $metadata['height'], 32 | esc_url( get_permalink( $post->post_parent ) ), 33 | esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ), 34 | get_the_title( $post->post_parent ) 35 | ); 36 | ?> 37 | ', '' ); ?> 38 |
    39 | 40 | 44 |
    45 | 46 |
    47 | 48 |
    49 |
    50 | $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); 56 | foreach ( $attachments as $k => $attachment ) : 57 | if ( $attachment->ID == $post->ID ) 58 | break; 59 | endforeach; 60 | 61 | $k++; 62 | // If there is more than 1 attachment in a gallery 63 | if ( count( $attachments ) > 1 ) : 64 | if ( isset( $attachments[ $k ] ) ) : 65 | // get the URL of the next image attachment 66 | $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); 67 | else : 68 | // or get the URL of the first image attachment 69 | $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID ); 70 | endif; 71 | else : 72 | // or, if there's only 1 image, get the URL of the image 73 | $next_attachment_url = wp_get_attachment_url(); 74 | endif; 75 | ?> 76 | ID, $attachment_size ); 79 | ?> 80 | 81 | post_excerpt ) ) : ?> 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 | -------------------------------------------------------------------------------- /inc/custom-header.php: -------------------------------------------------------------------------------- 1 | '444', 25 | 'default-image' => '', 26 | 27 | // Set height and width, with a maximum value for the width. 28 | 'height' => 250, 29 | 'width' => 960, 30 | 'max-width' => 2000, 31 | 32 | // Support flexible height and width. 33 | 'flex-height' => true, 34 | 'flex-width' => true, 35 | 36 | // Random image rotation off by default. 37 | 'random-default' => false, 38 | 39 | // Callbacks for styling the header and the admin preview. 40 | 'wp-head-callback' => 'twentytwelve_header_style', 41 | 'admin-head-callback' => 'twentytwelve_admin_header_style', 42 | 'admin-preview-callback' => 'twentytwelve_admin_header_image', 43 | ); 44 | 45 | add_theme_support( 'custom-header', $args ); 46 | } 47 | add_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' ); 48 | 49 | /** 50 | * Styles the header text displayed on the blog. 51 | * 52 | * get_header_textcolor() options: 444 is default, hide text (returns 'blank'), or any hex value. 53 | * 54 | * @since Twenty Twelve 1.0 55 | */ 56 | function twentytwelve_header_style() { 57 | $text_color = get_header_textcolor(); 58 | 59 | // If no custom options for text are set, let's bail 60 | if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) 61 | return; 62 | 63 | // If we get this far, we have custom styles. 64 | ?> 65 | 86 | Header admin panel. 91 | * 92 | * @since Twenty Twelve 1.0 93 | */ 94 | function twentytwelve_admin_header_style() { 95 | ?> 96 | 125 | Header admin panel. 130 | * This callback overrides the default markup displayed there. 131 | * 132 | * @since Twenty Twelve 1.0 133 | */ 134 | function twentytwelve_admin_header_image() { 135 | ?> 136 |
    137 | 143 |

    onclick="return false;" href="">

    144 |

    >

    145 | 147 | 148 | 149 |
    150 | 18 | 19 |
    20 |
    21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |
    33 | 34 | 37 |
    38 |

    39 |
    40 | 41 |
    42 |

    Get started here.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?>

    43 |
    44 | 45 | 48 |
    49 |

    50 |
    51 | 52 |
    53 |

    54 | 55 |
    56 | 57 | 58 |
    59 | 60 | 61 | 62 |
    63 |
    64 | 65 | 66 | -------------------------------------------------------------------------------- /js/android.js: -------------------------------------------------------------------------------- 1 | $().ready(function () { 2 | var input_search, commentform, is_admin_bar, fn_article_nav_right, fn_article_nav_top, primary_height, colophon_height; 3 | 4 | function init() { 5 | input_search = $("#s"); 6 | commentform = $('#commentform'); 7 | is_admin_bar = $('body').hasClass('admin-bar'); 8 | fn_article_nav_right = $(window).width() - ($('#content').offset().left + $('#content').outerWidth()); 9 | var fn_article_nav_toggle = false; 10 | if ($('#fn_article_nav_toggle')[0]) { 11 | fn_article_nav_top = $('body').hasClass('admin-bar') ? $('#fn_article_nav').offset().top - 28 : $('#fn_article_nav').offset().top; 12 | $("#fn_article_nav_toggle").bind("click", function () { 13 | if (fn_article_nav_toggle) { 14 | $("#fn_article_nav").removeClass("fn_article_nav_toggle"); 15 | fn_article_nav_toggle=false; 16 | } else { 17 | $("#fn_article_nav").addClass("fn_article_nav_toggle"); 18 | fn_article_nav_toggle=true; 19 | } 20 | return false; 21 | }); 22 | } 23 | 24 | primary_height = $('#primary').height(); 25 | colophon_height = $(document).height() - $('#colophon').height() - $('#colophon').offset().top; 26 | //smart-nav 27 | if ($("#side-nav").length > 0) { 28 | var side_nav_top = $("#side-nav").offset().top; // gotop button height 29 | $(document).scroll(function () { 30 | if ($(this).scrollTop() > side_nav_top) { 31 | $("#devdoc-nav").addClass("scroll-pane") 32 | } else { 33 | $("#devdoc-nav").removeClass("scroll-pane") 34 | } 35 | }); 36 | 37 | $(".nav-section-header").click(function () { 38 | if ($(this).parent().hasClass("expanded")) { 39 | $(".nav-section").removeClass("expanded"); 40 | $(".nav-section ul").slideUp(); 41 | } else { 42 | $(".nav-section").removeClass("expanded"); 43 | $(this).parent().addClass("expanded"); 44 | $(".nav-section ul").slideUp(); 45 | $(this).siblings("ul").stop().slideDown(); 46 | } 47 | }); 48 | if (!$(".nav-section").eq(0).find("li").size()) { 49 | $(".nav-section").eq(0).remove(); 50 | } 51 | $(".nav-section-header").eq(0).click(); 52 | if ($("#smart-nav-related li").size()) { 53 | $("#smart-nav-related").fadeIn() 54 | } 55 | $("#respond input,#respond textarea").attr("placeholder", function () { 56 | return $(this).siblings("label").text() 57 | }); 58 | } 59 | } 60 | 61 | init(); 62 | 63 | 64 | $('#comment').focus(function () { 65 | $('.form-allowed-tags').slideDown(); 66 | }); 67 | 68 | function searchActive() { 69 | $("#search-container").addClass("active"); 70 | input_search.focus().blur(function () { 71 | $("#search-container").removeClass("active"); 72 | }); 73 | } 74 | 75 | $("#search-container").mouseover(function () { 76 | searchActive(); 77 | }); 78 | function keydownSearch(e) { 79 | if (e.keyCode == 191) { 80 | e.preventDefault(); 81 | searchActive(); 82 | } 83 | } 84 | 85 | $(document).bind("keydown.search", function (e) { 86 | keydownSearch(e) 87 | }); 88 | $("input,textarea").focus(function () { 89 | $(document).unbind("keydown.search"); 90 | }).blur(function () { 91 | $(document).bind("keydown.search", function (e) { 92 | keydownSearch(e) 93 | }); 94 | }); 95 | 96 | 97 | //search 98 | function makeAjaxSearch(result) { 99 | if (result.length == 0) { 100 | $("#search_filtered").empty().show().append('
  • 神马也木有,呵呵
  • '); 101 | } else { 102 | $("#search_filtered").empty().show(); 103 | for (var i = 0; i < result.length - 1; i++) $("#search_filtered").append('
  • ' + result[i]["title"] + '
  • '); 104 | } 105 | } 106 | 107 | var delaySearch; 108 | 109 | function startSearch() { 110 | $.ajax({ 111 | type : "GET", 112 | url : home_url, //这玩意儿来自php,囧 113 | data : "s=" + input_search.val(), 114 | dataType: 'json', 115 | success : function (result) { 116 | makeAjaxSearch(result); 117 | console.log(result); 118 | } 119 | }); 120 | } 121 | 122 | var event_ajax_search = { 123 | bind_event : function () { 124 | input_search.bind('keyup', function (e) { 125 | if (input_search.val() != "" && e.keyCode != 40) { 126 | if (delaySearch) { 127 | clearTimeout(delaySearch) 128 | } 129 | delaySearch = setTimeout(startSearch, 200); 130 | } 131 | if (e.keyCode == 40) { 132 | search_filtered.moveable(); 133 | } 134 | }) 135 | }, 136 | unbind_event: function () { 137 | input_search.unbind('keyup'); 138 | } 139 | }; 140 | var search_filtered = { 141 | moveable: function () { 142 | var current = 0; 143 | $('#search_filtered').find('a').eq(current).focus(); 144 | $(document).bind("keydown.search_result", function (e) { 145 | if (e.keyCode == 40) { 146 | 147 | if (current >= $('#search_filtered').find('a').size()) { 148 | current = 0; 149 | } 150 | 151 | $('#search_filtered').find('a').eq(++current).focus(); 152 | e.preventDefault(); 153 | 154 | } 155 | if (e.keyCode == 38) { 156 | if (current < 0) { 157 | current = $('#search_filtered').find('a').size() - 1; 158 | } 159 | 160 | $('#search_filtered').find('a').eq(--current).focus(); 161 | e.preventDefault(); 162 | } 163 | }); 164 | }, 165 | hide : function () { 166 | $(document).unbind("keyup.search_result"); 167 | $('#search_filtered').fadeOut(); 168 | } 169 | }; 170 | input_search.focus(function () { 171 | event_ajax_search.bind_event(); 172 | }).blur(function () { 173 | event_ajax_search.unbind_event(); 174 | }); 175 | 176 | 177 | //ajax comments 178 | commentform.prepend('
    '); 179 | commentform.submit(function () { 180 | var infodiv = $('#ajax-comment-info'); 181 | infodiv.fadeIn(); 182 | //serialize and store form data in a variable 183 | var formdata = commentform.serialize(); 184 | //Add a status message 185 | infodiv.html('
    真的是AJAX提交数据中... ... 请耐心等待
    '); 186 | //Extract action URL from commentform 187 | var formurl = commentform.attr('action'); 188 | //Post Form with data 189 | $.ajax({ 190 | type : 'post', 191 | url : formurl, 192 | data : formdata, 193 | error : function (XMLHttpRequest, textStatus, errorThrown) { 194 | infodiv.html('
    ' + XMLHttpRequest.responseText.match(/

    (.*?)<\/p>/g) + '
    textStatus:' + textStatus + '
    errorThrown:' + errorThrown + '

    '); 195 | }, 196 | success: function (data, textStatus) { 197 | if (data == "success") { 198 | infodiv.html('
    评论成功. textStatus:' + textStatus + '
    '); 199 | $("#respond").before('
    • You said:

      ' + commentform.find('textarea[name=comment]').val() + '

    '); 200 | commentform.find('textarea[name=comment]').val(''); 201 | setTimeout(function () { 202 | $("#ajax-comment-info").fadeOut(); 203 | }, 3000); 204 | } else { 205 | infodiv.html('
    服务器脑瘫,八成被 Akismet 君跳大,请歇会儿再试.
    '); 206 | } 207 | } 208 | }); 209 | return false; 210 | }); 211 | 212 | 213 | //thread comment 214 | function moveEnd(id) { 215 | var obj = document.getElementById(id); 216 | obj.focus(); 217 | var len = obj.value.length; 218 | if (document.selection) { 219 | var sel = obj.createTextRange(); 220 | sel.moveStart('character', len); 221 | sel.collapse(); 222 | sel.select(); 223 | } else if (typeof obj.selectionStart == 'number' && typeof obj.selectionEnd == 'number') { 224 | obj.selectionStart = obj.selectionEnd = len; 225 | } 226 | } 227 | 228 | addComment = {moveForm: function (d, f, i, c) { 229 | var m = this, a, h = m.I(d), b = m.I(i), l = m.I("cancel-comment-reply-link"), j = m.I("comment_parent"), k = m.I("comment_post_ID"); 230 | if (!h || !b || !l || !j) { 231 | return 232 | } 233 | m.respondId = i; 234 | c = c || false; 235 | if (!m.I("wp-temp-form-div")) { 236 | a = document.createElement("div"); 237 | a.id = "wp-temp-form-div"; 238 | a.style.display = "none"; 239 | b.parentNode.insertBefore(a, b) 240 | } 241 | h.parentNode.insertBefore(b, h.nextSibling); 242 | if (k && c) { 243 | k.value = c 244 | } 245 | j.value = f; 246 | l.style.display = ""; 247 | l.onclick = function () { 248 | var n = addComment, e = n.I("wp-temp-form-div"), o = n.I(n.respondId); 249 | if (!e || !o) { 250 | return 251 | } 252 | n.I("comment_parent").value = "0"; 253 | e.parentNode.insertBefore(o, e); 254 | e.parentNode.removeChild(e); 255 | this.style.display = "none"; 256 | this.onclick = null; 257 | return false 258 | }; 259 | try { 260 | if ($("#comment").val() == "" || /@/.test($("#comment").val())) {//切换用户的时候@人也要变一下... 261 | $("#comment").val('@' + $("#" + d).find(".fn").eq(0).text() + ' '); 262 | } 263 | moveEnd("comment"); 264 | } catch (g) { 265 | } 266 | return false 267 | }, I : function (a) { 268 | return document.getElementById(a) 269 | }}; 270 | 271 | 272 | $(".morehover").hover(function () { 273 | $(this).toggleClass("hover") 274 | }); 275 | 276 | 277 | $(document).scroll(function () { 278 | if ($(this).scrollTop() > fn_article_nav_top) { 279 | if (is_admin_bar) { 280 | $('#fn_article_nav').css({'position': 'fixed', 'right': fn_article_nav_right, 'top': '38px'}); 281 | } else { 282 | $('#fn_article_nav').css({'position': 'fixed', 'right': fn_article_nav_right, 'top': '10px'}); 283 | } 284 | } else { 285 | $('#fn_article_nav').css({'position': 'absolute', 'right': 0, 'top': '10px'}); 286 | } 287 | }); 288 | 289 | $(window).resize(function () { 290 | init(); 291 | }); 292 | 293 | 294 | }); -------------------------------------------------------------------------------- /js/html5.js: -------------------------------------------------------------------------------- 1 | /*! HTML5 Shiv v3.6 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */ 2 | /* Source: https://github.com/aFarkas/html5shiv */ 3 | (function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); 4 | a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; 5 | c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a"); 6 | var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a, 7 | b){a||(a=f);if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d\n" 13 | "Language-Team: LANGUAGE \n" 14 | 15 | #: 404.php:17 16 | msgid "This is somewhat embarrassing, isn’t it?" 17 | msgstr "" 18 | 19 | #: 404.php:21 20 | msgid "" 21 | "It seems we can’t find what you’re looking for. Perhaps " 22 | "searching can help." 23 | msgstr "" 24 | 25 | #: archive.php:29 26 | msgid "Daily Archives: %s" 27 | msgstr "" 28 | 29 | #: archive.php:31 30 | msgid "Monthly Archives: %s" 31 | msgstr "" 32 | 33 | #: archive.php:31 34 | msgctxt "monthly archives date format" 35 | msgid "F Y" 36 | msgstr "" 37 | 38 | #: archive.php:33 39 | msgid "Yearly Archives: %s" 40 | msgstr "" 41 | 42 | #: archive.php:33 43 | msgctxt "yearly archives date format" 44 | msgid "Y" 45 | msgstr "" 46 | 47 | #: archive.php:35 48 | msgid "Archives" 49 | msgstr "" 50 | 51 | #: author.php:32 52 | msgid "Author Archives: %s" 53 | msgstr "" 54 | 55 | #: author.php:53 content.php:53 56 | msgid "About %s" 57 | msgstr "" 58 | 59 | #: category.php:21 60 | msgid "Category Archives: %s" 61 | msgstr "" 62 | 63 | #: comments.php:31 64 | msgid "One thought on “%2$s”" 65 | msgid_plural "%1$s thoughts on “%2$s”" 66 | msgstr[0] "" 67 | msgstr[1] "" 68 | 69 | #: comments.php:42 70 | msgid "Comment navigation" 71 | msgstr "" 72 | 73 | #: comments.php:43 74 | msgid "← Older Comments" 75 | msgstr "" 76 | 77 | #: comments.php:44 78 | msgid "Newer Comments →" 79 | msgstr "" 80 | 81 | #: comments.php:53 82 | msgid "Comments are closed." 83 | msgstr "" 84 | 85 | #: content-aside.php:13 content-aside.php:20 content-image.php:17 86 | #: content-link.php:18 content-quote.php:17 content-status.php:15 87 | #: content.php:23 88 | msgid "Permalink to %s" 89 | msgstr "" 90 | 91 | #: content-aside.php:15 content-image.php:13 content-link.php:14 92 | #: content-quote.php:13 content-status.php:21 content.php:39 93 | msgid "Continue reading " 94 | msgstr "" 95 | 96 | #: content-aside.php:23 content-image.php:23 content-link.php:21 97 | #: content-quote.php:20 content-status.php:27 content.php:28 98 | msgid "Leave a reply" 99 | msgstr "" 100 | 101 | #: content-aside.php:23 content-image.php:23 content-link.php:21 102 | #: content-quote.php:20 content-status.php:27 content.php:28 103 | msgid "1 Reply" 104 | msgstr "" 105 | 106 | #: content-aside.php:23 content-image.php:23 content-link.php:21 107 | #: content-quote.php:20 content-status.php:27 content.php:28 108 | msgid "% Replies" 109 | msgstr "" 110 | 111 | #: content-aside.php:26 content-image.php:26 content-link.php:24 112 | #: content-page.php:21 content-quote.php:23 content-status.php:30 113 | #: content.php:46 functions.php:309 image.php:37 114 | msgid "Edit" 115 | msgstr "" 116 | 117 | #: content-link.php:12 118 | msgid "Link" 119 | msgstr "" 120 | 121 | #: content-none.php:13 index.php:49 search.php:34 122 | msgid "Nothing Found" 123 | msgstr "" 124 | 125 | #: content-none.php:17 index.php:53 126 | msgid "" 127 | "Apologies, but no results were found. Perhaps searching will help find a " 128 | "related post." 129 | msgstr "" 130 | 131 | #: content-page.php:18 content.php:40 image.php:92 132 | msgid "Pages:" 133 | msgstr "" 134 | 135 | #: content.php:14 136 | msgid "Featured post" 137 | msgstr "" 138 | 139 | #: content.php:57 140 | msgid "View all posts by %s " 141 | msgstr "" 142 | 143 | #. #-#-#-#-# twentytwelve.pot (Twenty Twelve 1.1) #-#-#-#-# 144 | #. Author URI of the plugin/theme 145 | #: footer.php:17 146 | msgid "http://wordpress.org/" 147 | msgstr "" 148 | 149 | #: footer.php:17 150 | msgid "Semantic Personal Publishing Platform" 151 | msgstr "" 152 | 153 | #: footer.php:17 154 | msgid "Proudly powered by %s" 155 | msgstr "" 156 | 157 | #: functions.php:64 158 | msgid "Primary Menu" 159 | msgstr "" 160 | 161 | #. translators: If there are characters in your language that are not supported 162 | #. by Open Sans, translate this to 'off'. Do not translate into your own 163 | #. language. 164 | #: functions.php:120 165 | msgctxt "Open Sans font: on or off" 166 | msgid "on" 167 | msgstr "" 168 | 169 | #. translators: To add an additional Open Sans character subset specific to 170 | #. your language, translate 171 | #. this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your 172 | #. own language. 173 | #: functions.php:125 174 | msgctxt "Open Sans font: add new subset (greek, cyrillic, vietnamese)" 175 | msgid "no-subset" 176 | msgstr "" 177 | 178 | #: functions.php:181 179 | msgid "Page %s" 180 | msgstr "" 181 | 182 | #: functions.php:206 183 | msgid "Main Sidebar" 184 | msgstr "" 185 | 186 | #: functions.php:208 187 | msgid "" 188 | "Appears on posts and pages except the optional Front Page template, which " 189 | "has its own widgets" 190 | msgstr "" 191 | 192 | #: functions.php:216 193 | msgid "First Front Page Widget Area" 194 | msgstr "" 195 | 196 | #: functions.php:218 functions.php:228 197 | msgid "" 198 | "Appears when using the optional Front Page template with a page set as " 199 | "Static Front Page" 200 | msgstr "" 201 | 202 | #: functions.php:226 203 | msgid "Second Front Page Widget Area" 204 | msgstr "" 205 | 206 | #: functions.php:250 single.php:20 207 | msgid "Post navigation" 208 | msgstr "" 209 | 210 | #: functions.php:251 211 | msgid " Older posts" 212 | msgstr "" 213 | 214 | #: functions.php:252 215 | msgid "Newer posts " 216 | msgstr "" 217 | 218 | #: functions.php:277 219 | msgid "Pingback:" 220 | msgstr "" 221 | 222 | #: functions.php:277 223 | msgid "(Edit)" 224 | msgstr "" 225 | 226 | #: functions.php:292 227 | msgid "Post author" 228 | msgstr "" 229 | 230 | #. translators: 1: date, 2: time 231 | #: functions.php:298 232 | msgid "%1$s at %2$s" 233 | msgstr "" 234 | 235 | #: functions.php:304 236 | msgid "Your comment is awaiting moderation." 237 | msgstr "" 238 | 239 | #: functions.php:313 240 | msgid "Reply" 241 | msgstr "" 242 | 243 | #: functions.php:332 functions.php:335 244 | msgid ", " 245 | msgstr "" 246 | 247 | #: functions.php:346 248 | msgid "View all posts by %s" 249 | msgstr "" 250 | 251 | #: functions.php:352 252 | msgid "" 253 | "This entry was posted in %1$s and tagged %2$s on %3$s by %4$s." 255 | msgstr "" 256 | 257 | #: functions.php:354 258 | msgid "" 259 | "This entry was posted in %1$s on %3$s by %4$s." 261 | msgstr "" 262 | 263 | #: functions.php:356 264 | msgid "This entry was posted on %3$s by %4$s." 265 | msgstr "" 266 | 267 | #: header.php:43 268 | msgid "Menu" 269 | msgstr "" 270 | 271 | #: header.php:44 272 | msgid "Skip to content" 273 | msgstr "" 274 | 275 | #: image.php:26 276 | msgid "" 277 | "Published at %4$s × %5" 280 | "$s in %8$s." 281 | msgstr "" 282 | 283 | #: image.php:41 284 | msgid "← Previous" 285 | msgstr "" 286 | 287 | #: image.php:42 288 | msgid "Next →" 289 | msgstr "" 290 | 291 | #: index.php:38 292 | msgid "No posts to display" 293 | msgstr "" 294 | 295 | #: index.php:42 296 | msgid "Ready to publish your first post? Get started here." 297 | msgstr "" 298 | 299 | #: search.php:18 300 | msgid "Search Results for: %s" 301 | msgstr "" 302 | 303 | #: search.php:38 304 | msgid "" 305 | "Sorry, but nothing matched your search criteria. Please try again with some " 306 | "different keywords." 307 | msgstr "" 308 | 309 | #: single.php:21 310 | msgctxt "Previous post link" 311 | msgid "←" 312 | msgstr "" 313 | 314 | #: single.php:22 315 | msgctxt "Next post link" 316 | msgid "→" 317 | msgstr "" 318 | 319 | #: tag.php:21 320 | msgid "Tag Archives: %s" 321 | msgstr "" 322 | 323 | #. Theme Name of the plugin/theme 324 | msgid "Twenty Twelve" 325 | msgstr "" 326 | 327 | #. Theme URI of the plugin/theme 328 | msgid "http://wordpress.org/extend/themes/twentytwelve" 329 | msgstr "" 330 | 331 | #. Description of the plugin/theme 332 | msgid "" 333 | "The 2012 theme for WordPress is a fully responsive theme that looks great on " 334 | "any device. Features include a front page template with its own widgets, an " 335 | "optional display font, styling for post formats on both index and single " 336 | "views, and an optional no-sidebar page template. Make it yours with a custom " 337 | "menu, header image, and background." 338 | msgstr "" 339 | 340 | #. Author of the plugin/theme 341 | msgid "the WordPress team" 342 | msgstr "" 343 | 344 | #. Template Name of the plugin/theme 345 | msgid "Front Page Template" 346 | msgstr "" 347 | 348 | #. Template Name of the plugin/theme 349 | msgid "Full-width Page Template, No Sidebar" 350 | msgstr "" 351 | -------------------------------------------------------------------------------- /page-templates/front-page.php: -------------------------------------------------------------------------------- 1 | 16 | 17 |
    18 |
    19 | 20 | 21 | 22 |
    23 | 24 |
    25 | 26 | 27 | 28 | 29 | 30 | 31 |
    32 |
    33 | 34 | 35 | -------------------------------------------------------------------------------- /page-templates/full-width.php: -------------------------------------------------------------------------------- 1 | 18 | 19 |
    20 |
    21 | 22 | 23 | 24 | 25 | 26 | 27 |
    28 |
    29 | 30 | -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | 16 | 17 |
    18 |
    19 | 20 | 21 | 22 | 23 | 24 | 25 |
    26 |
    27 | 28 | 29 | -------------------------------------------------------------------------------- /rtl.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Twenty Twelve 3 | Description: Adds support for languages written in a Right To Left (RTL) direction. 4 | It's easy, just a matter of overwriting all the horizontal positioning attributes 5 | of your CSS stylesheet in a separate stylesheet file named rtl.css. 6 | 7 | See http://codex.wordpress.org/Right_to_Left_Language_Support 8 | */ 9 | 10 | 11 | body { 12 | direction: rtl; 13 | unicode-bidi: embed; 14 | } 15 | caption, 16 | th, 17 | td { 18 | text-align: right; 19 | } 20 | 21 | /* =Repeatable patterns 22 | -------------------------------------------------------------- */ 23 | 24 | /* Images */ 25 | .site-content .gallery-columns-4 .gallery-item { 26 | padding-left: 2%; 27 | padding-right: 0; 28 | } 29 | .site-content .gallery-columns-5 .gallery-item { 30 | padding-left: 2%; 31 | padding-right: 0; 32 | } 33 | 34 | /* Navigation */ 35 | .nav-previous, 36 | .previous-image { 37 | float: right; 38 | } 39 | .nav-next, 40 | .next-image { 41 | float: left; 42 | text-align: left; 43 | } 44 | 45 | /* Author profiles */ 46 | .author-avatar { 47 | float: right; 48 | } 49 | .author-description { 50 | float: right; 51 | margin-right: 15px; 52 | margin-right: 1.071428571rem; 53 | margin-left: auto; 54 | } 55 | 56 | 57 | /* =Main Content 58 | ----------------------------------------------- */ 59 | 60 | .comment-content ol, 61 | .comment-content ul { 62 | margin: 0 24px 0 0; 63 | margin: 0 1.714285714rem 0 0; 64 | } 65 | 66 | 67 | /* =Basic post styling 68 | -------------------------------------------------------------- */ 69 | 70 | .entry-content li, 71 | .comment-content li { 72 | margin: 0 24px 0 0; 73 | margin: 0 1.714285714rem 0 0; 74 | } 75 | .entry-content td, 76 | .comment-content td { 77 | padding: 6px 0 6px 10px; 78 | } 79 | 80 | 81 | /* Aside posts */ 82 | article.format-aside .aside { 83 | border-right: 22px solid #a8bfe8; 84 | border-left: none; 85 | } 86 | 87 | /* Link posts */ 88 | article.format-link header { 89 | float: left; 90 | } 91 | article.format-link .entry-content { 92 | float: right; 93 | } 94 | 95 | /* Status posts */ 96 | .format-status .entry-header img { 97 | float: right; 98 | margin-left: 21px; 99 | margin-left: 1.5rem; 100 | margin-right: 0; 101 | } 102 | 103 | 104 | /* =Comment styling 105 | -------------------------------------------------------------- */ 106 | 107 | .comments-area article header img { 108 | float: right; 109 | } 110 | .comments-area article header cite, 111 | .comments-area article header time { 112 | margin-right: 85px; 113 | margin-right: 6.071428571rem; 114 | margin-left: auto; 115 | } 116 | .comments-area article header h4 { 117 | left: 0; 118 | right: auto; 119 | } 120 | .comments-area li.bypostauthor cite span { 121 | margin-right: 5px; 122 | margin-right: 0.357142857rem; 123 | margin-left: auto; 124 | } 125 | 126 | /* Comment form */ 127 | #respond h3#reply-title #cancel-comment-reply-link { 128 | margin-right: 10px; 129 | margin-right: 0.714285714rem; 130 | margin-left: auto; 131 | } 132 | label ~ span.required { 133 | float: right; 134 | margin: -18px -16px 0 0; 135 | margin: -1.285714286rem -1.142857143rem 0 0; 136 | } 137 | 138 | 139 | /* =Front page template styling 140 | -------------------------------------------------------------- */ 141 | 142 | .template-front-page .widget-area .widget_text img { 143 | float: right; 144 | margin: 8px 0 8px 24px; 145 | margin: 0.571428571rem 0 0.571428571rem 1.714285714rem; 146 | } 147 | 148 | 149 | /* =Widget styling 150 | -------------------------------------------------------------- */ 151 | 152 | .widget-area .widget ul ul { 153 | margin-right: 12px; 154 | margin-right: 0.857142857rem; 155 | margin-left: auto; 156 | } 157 | .widget-area .textwidget li { 158 | margin-left: auto; 159 | margin-right: 36px; 160 | margin-right: 2.571428571rem; 161 | } 162 | .widget_recent_entries .post-date, 163 | .widget_rss .rss-date { 164 | margin-right: 12px; 165 | margin-right: 0.857142857rem; 166 | margin-left: auto; 167 | } 168 | #wp-calendar th, 169 | #wp-calendar td, 170 | #wp-calendar caption { 171 | text-align: right; 172 | } 173 | #wp-calendar #next { 174 | padding-left: 24px; 175 | padding-left: 1.714285714rem; 176 | text-align: left; 177 | padding-right: 0; 178 | } 179 | 180 | /* =Media queries 181 | -------------------------------------------------------------- */ 182 | 183 | /* Minimum width of 600 pixels. */ 184 | @media screen and (min-width: 600px) { 185 | .site-content, 186 | .template-front-page.has-post-thumbnail article { 187 | float: right; 188 | } 189 | .widget-area, 190 | .entry-page-image { 191 | float: left; 192 | } 193 | .site-header h1, 194 | .site-header h2 { 195 | text-align: right; 196 | } 197 | .template-front-page .widget-area .widget_text img { 198 | float: right; 199 | margin: 8px 0 8px 24px; 200 | } 201 | .template-front-page .widget-area .widget, 202 | .template-front-page.two-sidebars .widget-area .front-widgets { 203 | float: right; 204 | } 205 | .template-front-page .widget-area .widget:nth-child(odd) { 206 | clear: left; 207 | } 208 | .template-front-page .widget-area .widget:nth-child(even), 209 | .template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets { 210 | float: left; 211 | margin: 0 24px 0; 212 | margin: 0 1.714285714rem 0; 213 | } 214 | .main-navigation ul.nav-menu, 215 | .main-navigation div.nav-menu > ul { 216 | text-align: right; 217 | } 218 | .main-navigation li { 219 | margin-left: 40px; 220 | margin-left: 2.857142857rem; 221 | margin-right: auto; 222 | } 223 | .main-navigation li ul ul { 224 | margin-right: 0; 225 | right: 100%; 226 | left: auto; 227 | } 228 | .main-navigation ul li:hover > ul { 229 | border-right: 0; 230 | border-left: none; 231 | } 232 | .commentlist .children { 233 | margin-right: 48px; 234 | margin-right: 3.428571429rem; 235 | margin-left: auto; 236 | } 237 | } -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damao/Android/4c2ec2403171e9ceca0dd2d1491df03b1acda7e7/screenshot.png -------------------------------------------------------------------------------- /screenshot.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damao/Android/4c2ec2403171e9ceca0dd2d1491df03b1acda7e7/screenshot.psd -------------------------------------------------------------------------------- /search.php: -------------------------------------------------------------------------------- 1 | get_the_title(),"url"=>get_permalink())); 14 | endwhile; 15 | endif; 16 | echo json_encode($array_posts); 17 | } else { 18 | 19 | get_header(); ?> 20 | 21 |
    22 |
    23 | 24 | 25 | 26 | 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 | -------------------------------------------------------------------------------- /sidebar-front.php: -------------------------------------------------------------------------------- 1 | 23 | -------------------------------------------------------------------------------- /sidebar.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | 17 | -------------------------------------------------------------------------------- /single.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
    13 |
    14 | 15 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | 27 | 28 | 29 |
    30 |
    31 | 32 | 33 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Android 3 | Theme URI: http://ooxx.me/theme-android.orz 4 | Author: bigCat 5 | Author URI: http://ooxx.me/ 6 | Description: Android developer Design. 7 | Version: 2013.7.23 8 | License: GNU General Public License v2 or later 9 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 | Tags: light, white,gray, two-columns, left-sidebar, fixed-width, custom-background,editor-style, featured-image-header, featured-images, full-width-template, microformats, post-formats, sticky-post, theme-options, translation-ready 11 | Text Domain: Android 12 | 13 | 14 | This theme, like WordPress, is licensed under the GPL. 15 | Use it to make something cool, have fun, and share what you've learned with others. 16 | */ 17 | 18 | /* =Notes 19 | -------------------------------------------------------------- 20 | This stylesheet uses rem values with a pixel fallback. The rem 21 | values (and line heights) are calculated using two variables: 22 | 23 | $rembase: 14; 24 | $line-height: 24; 25 | 26 | ---------- Examples 27 | 28 | * Use a pixel value with a rem fallback for font-size, padding, margins, etc. 29 | padding: 5px 0; 30 | padding: 0.357142857rem 0; (5 / $rembase) 31 | 32 | * Set a font-size and then set a line-height based on the font-size 33 | font-size: 16px 34 | font-size: 1.142857143rem; (16 / $rembase) 35 | line-height: 1.5; ($line-height / 16) 36 | 37 | ---------- Vertical spacing 38 | 39 | Vertical spacing between most elements should use 24px or 48px 40 | to maintain vertical rhythm: 41 | 42 | .my-new-div { 43 | margin: 24px 0; 44 | margin: 1.714285714rem 0; ( 24 / $rembase ) 45 | } 46 | 47 | ---------- Further reading 48 | 49 | http://snook.ca/archives/html_and_css/font-size-with-rem 50 | http://blog.typekit.com/2011/11/09/type-study-sizing-the-legible-letter/ 51 | 52 | 53 | /* =Reset 54 | -------------------------------------------------------------- */ 55 | 56 | html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { 57 | margin: 0; 58 | padding: 0; 59 | border: 0; 60 | font-size: 100%; 61 | vertical-align: baseline; 62 | } 63 | body { 64 | line-height: 1; 65 | } 66 | ol, 67 | ul { 68 | list-style: none; 69 | } 70 | blockquote, 71 | q { 72 | quotes: none; 73 | } 74 | blockquote:before, 75 | blockquote:after, 76 | q:before, 77 | q:after { 78 | content: ''; 79 | content: none; 80 | } 81 | table { 82 | border-collapse: collapse; 83 | border-spacing: 0; 84 | } 85 | caption, 86 | th, 87 | td { 88 | font-weight: normal; 89 | text-align: left; 90 | } 91 | h1, 92 | h2, 93 | h3, 94 | h4, 95 | h5, 96 | h6 { 97 | clear: both; 98 | } 99 | html { 100 | overflow-y: scroll; 101 | font-size: 100%; 102 | -webkit-text-size-adjust: 100%; 103 | -ms-text-size-adjust: 100%; 104 | } 105 | a:focus { 106 | outline: thin dotted; 107 | } 108 | article, 109 | aside, 110 | details, 111 | figcaption, 112 | figure, 113 | footer, 114 | header, 115 | hgroup, 116 | nav, 117 | section { 118 | display: block; 119 | } 120 | audio, 121 | canvas, 122 | video { 123 | display: inline-block; 124 | } 125 | audio:not([controls]) { 126 | display: none; 127 | } 128 | del { 129 | color: #333; 130 | } 131 | ins { 132 | background: #fff9c0; 133 | text-decoration: none; 134 | } 135 | hr { 136 | background-color: #ccc; 137 | border: 0; 138 | height: 1px; 139 | margin: 24px; 140 | margin-bottom: 1.714285714rem; 141 | } 142 | sub, 143 | sup { 144 | font-size: 75%; 145 | line-height: 0; 146 | position: relative; 147 | vertical-align: baseline; 148 | } 149 | sup { 150 | top: -0.5em; 151 | } 152 | sub { 153 | bottom: -0.25em; 154 | } 155 | small { 156 | font-size: smaller; 157 | } 158 | img { 159 | border: 0; 160 | -ms-interpolation-mode: bicubic; 161 | } 162 | 163 | /* Clearing floats */ 164 | .clear:after, 165 | .wrapper:after, 166 | .format-status .entry-header:after { 167 | clear: both; 168 | } 169 | .clear:before, 170 | .clear:after, 171 | .wrapper:before, 172 | .wrapper:after, 173 | .format-status .entry-header:before, 174 | .format-status .entry-header:after { 175 | display: table; 176 | content: ""; 177 | } 178 | 179 | 180 | /* =Repeatable patterns 181 | -------------------------------------------------------------- */ 182 | 183 | /* Small headers */ 184 | .archive-title, 185 | .page-title, 186 | .widget-title, 187 | .entry-content th, 188 | .comment-content th { 189 | font-size: 11px; 190 | font-size: 0.785714286rem; 191 | line-height: 2.181818182; 192 | font-weight: bold; 193 | text-transform: uppercase; 194 | color: #636363; 195 | } 196 | 197 | /* Shared Post Format styling */ 198 | article.format-quote footer.entry-meta, 199 | article.format-link footer.entry-meta, 200 | article.format-status footer.entry-meta { 201 | font-size: 11px; 202 | font-size: 0.785714286rem; 203 | line-height: 2.181818182; 204 | } 205 | 206 | /* Form fields, general styles first */ 207 | button, 208 | input, 209 | textarea { 210 | border: 1px solid #ccc; 211 | border-radius: 3px; 212 | font-family: inherit; 213 | padding: 6px; 214 | padding: 0.428571429rem; 215 | } 216 | button, 217 | input { 218 | line-height: normal; 219 | } 220 | textarea { 221 | font-size: 100%; 222 | overflow: auto; 223 | vertical-align: top; 224 | } 225 | 226 | /* Reset non-text input types */ 227 | input[type="checkbox"], 228 | input[type="radio"], 229 | input[type="file"], 230 | input[type="hidden"], 231 | input[type="image"], 232 | input[type="color"] { 233 | border: 0; 234 | border-radius: 0; 235 | padding: 0; 236 | } 237 | 238 | /* Buttons */ 239 | .menu-toggle, 240 | input[type="submit"], 241 | input[type="button"], 242 | input[type="reset"], 243 | article.post-password-required input[type=submit], 244 | li.bypostauthor cite span { 245 | padding: 6px 10px; 246 | padding: 0.428571429rem 0.714285714rem; 247 | font-size: 11px; 248 | font-size: 0.785714286rem; 249 | line-height: 1.428571429; 250 | font-weight: normal; 251 | color: #7c7c7c; 252 | background-color: #e6e6e6; 253 | background-repeat: repeat-x; 254 | background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6); 255 | background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6); 256 | background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6); 257 | background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6); 258 | background-image: linear-gradient(top, #f4f4f4, #e6e6e6); 259 | border: 1px solid #d2d2d2; 260 | border-radius: 3px; 261 | box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1); 262 | } 263 | .menu-toggle, 264 | button, 265 | input[type="submit"], 266 | input[type="button"], 267 | input[type="reset"] { 268 | cursor: pointer; 269 | } 270 | button[disabled], 271 | input[disabled] { 272 | cursor: default; 273 | } 274 | .menu-toggle:hover, 275 | button:hover, 276 | input[type="submit"]:hover, 277 | input[type="button"]:hover, 278 | input[type="reset"]:hover, 279 | article.post-password-required input[type=submit]:hover { 280 | color: #5e5e5e; 281 | background-color: #ebebeb; 282 | background-repeat: repeat-x; 283 | background-image: -moz-linear-gradient(top, #f9f9f9, #ebebeb); 284 | background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb); 285 | background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb); 286 | background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb); 287 | background-image: linear-gradient(top, #f9f9f9, #ebebeb); 288 | } 289 | .menu-toggle:active, 290 | .menu-toggle.toggled-on, 291 | button:active, 292 | input[type="submit"]:active, 293 | input[type="button"]:active, 294 | input[type="reset"]:active { 295 | color: #757575; 296 | background-color: #e1e1e1; 297 | background-repeat: repeat-x; 298 | background-image: -moz-linear-gradient(top, #ebebeb, #e1e1e1); 299 | background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1); 300 | background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1); 301 | background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1); 302 | background-image: linear-gradient(top, #ebebeb, #e1e1e1); 303 | box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4; 304 | border: none; 305 | } 306 | li.bypostauthor cite span { 307 | color: #fff; 308 | background-color: #21759b; 309 | background-image: none; 310 | border: 1px solid #1f6f93; 311 | border-radius: 2px; 312 | box-shadow: none; 313 | padding: 0; 314 | } 315 | 316 | /* Responsive images */ 317 | .entry-content img, 318 | .comment-content img, 319 | .widget img { 320 | max-width: 100%; /* Fluid images for posts, comments, and widgets */ 321 | } 322 | img[class*="align"], 323 | img[class*="wp-image-"], 324 | img[class*="attachment-"] { 325 | height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ 326 | } 327 | img.size-full, 328 | img.size-large, 329 | img.header-image, 330 | img.wp-post-image { 331 | max-width: 100%; 332 | height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ 333 | } 334 | 335 | /* Make sure videos and embeds fit their containers */ 336 | embed, 337 | iframe, 338 | object, 339 | video { 340 | max-width: 100%; 341 | } 342 | .entry-content .twitter-tweet-rendered { 343 | max-width: 100% !important; /* Override the Twitter embed fixed width */ 344 | } 345 | 346 | /* Images */ 347 | .alignleft { 348 | float: left; 349 | } 350 | .alignright { 351 | float: right; 352 | } 353 | .aligncenter { 354 | display: block; 355 | margin-left: auto; 356 | margin-right: auto; 357 | } 358 | .entry-content img, 359 | .comment-content img, 360 | .widget img, 361 | img.header-image, 362 | .author-avatar img, 363 | img.wp-post-image { 364 | /* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */ 365 | border-radius: 3px; 366 | box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); 367 | } 368 | .wp-caption { 369 | max-width: 100%; /* Keep wide captions from overflowing their container. */ 370 | padding: 4px; 371 | } 372 | .wp-caption .wp-caption-text, 373 | .gallery-caption, 374 | .entry-caption { 375 | font-style: italic; 376 | font-size: 12px; 377 | font-size: 0.857142857rem; 378 | line-height: 2; 379 | color: #757575; 380 | } 381 | img.wp-smiley, 382 | .rsswidget img { 383 | border: 0; 384 | border-radius: 0; 385 | box-shadow: none; 386 | margin-bottom: 0; 387 | margin-top: 0; 388 | padding: 0; 389 | } 390 | .entry-content dl.gallery-item { 391 | margin: 0; 392 | } 393 | .gallery-item a, 394 | .gallery-caption { 395 | width: 90%; 396 | } 397 | .gallery-item a { 398 | display: block; 399 | } 400 | .gallery-caption a { 401 | display: inline; 402 | } 403 | .gallery-columns-1 .gallery-item a { 404 | max-width: 100%; 405 | width: auto; 406 | } 407 | .gallery .gallery-icon img { 408 | height: auto; 409 | max-width: 90%; 410 | padding: 5%; 411 | } 412 | .gallery-columns-1 .gallery-icon img { 413 | padding: 3%; 414 | } 415 | 416 | /* Navigation */ 417 | .site-content nav { 418 | clear: both; 419 | line-height: 2; 420 | overflow: hidden; 421 | } 422 | #nav-above { 423 | padding: 24px 0; 424 | padding: 1.714285714rem 0; 425 | } 426 | #nav-above { 427 | display: none; 428 | } 429 | .paged #nav-above { 430 | display: block; 431 | } 432 | .nav-previous, 433 | .previous-image { 434 | float: left; 435 | width: 50%; 436 | } 437 | .nav-next, 438 | .next-image { 439 | float: right; 440 | text-align: right; 441 | width: 50%; 442 | } 443 | .nav-single + .comments-area, 444 | #comment-nav-above { 445 | margin: 48px 0; 446 | margin: 3.428571429rem 0; 447 | } 448 | 449 | /* Author profiles */ 450 | .author .archive-header { 451 | margin-bottom: 24px; 452 | margin-bottom: 1.714285714rem; 453 | } 454 | .author-info { 455 | border-top: 1px solid #ededed; 456 | margin: 24px 0; 457 | margin: 1.714285714rem 0; 458 | padding-top: 24px; 459 | padding-top: 1.714285714rem; 460 | overflow: hidden; 461 | } 462 | .author-description p { 463 | color: #757575; 464 | font-size: 13px; 465 | font-size: 0.928571429rem; 466 | line-height: 1.846153846; 467 | } 468 | .author.archive .author-info { 469 | border-top: 0; 470 | margin: 0 0 48px; 471 | margin: 0 0 3.428571429rem; 472 | } 473 | .author.archive .author-avatar { 474 | margin-top: 0; 475 | } 476 | 477 | 478 | /* =Basic structure 479 | -------------------------------------------------------------- */ 480 | 481 | /* Body, links, basics */ 482 | html { 483 | font-size: 87.5%; 484 | } 485 | body { 486 | font-size: 14px; 487 | font-size: 1rem; 488 | font-family: Helvetica, Arial, sans-serif; 489 | text-rendering: optimizeLegibility; 490 | color: #444; 491 | } 492 | /* Font */ 493 | @font-face { 494 | font-family: 'Android'; 495 | font-style: normal; 496 | font-weight: 400; 497 | src: local('Android'), local('Android'), url(font/normal.woff) format('woff'); 498 | } 499 | @font-face { 500 | font-family: 'Android'; 501 | font-style: normal; 502 | font-weight: 700; 503 | src: local('Android Bold'), local('Android-Bold'), url(font/bold.woff) format('woff'); 504 | } 505 | @font-face { 506 | font-family: 'Android'; 507 | font-style: italic; 508 | font-weight: 400; 509 | src: local('Android Italic'), local('Android-Italic'), url(font/italic.woff) format('woff'); 510 | } 511 | @font-face { 512 | font-family: 'Android'; 513 | font-style: italic; 514 | font-weight: 700; 515 | src: local('Android Bold Italic'), local('Android-BoldItalic'), url(font/italic-bold.woff) format('woff'); 516 | } 517 | 518 | body.custom-font-enabled { 519 | font-family: "Android", Helvetica, Arial, sans-serif; 520 | } 521 | a { 522 | outline: none; 523 | color: #21759b; 524 | } 525 | a:hover { 526 | color: #0f3647; 527 | } 528 | 529 | /* Assistive text */ 530 | .assistive-text, 531 | .site .screen-reader-text { 532 | position: absolute !important; 533 | clip: rect(1px, 1px, 1px, 1px); 534 | } 535 | .main-navigation .assistive-text:hover, 536 | .main-navigation .assistive-text:active, 537 | .main-navigation .assistive-text:focus { 538 | background: #fff; 539 | border: 2px solid #333; 540 | border-radius: 3px; 541 | clip: auto !important; 542 | color: #000; 543 | display: block; 544 | font-size: 12px; 545 | padding: 12px; 546 | position: absolute; 547 | top: 5px; 548 | left: 5px; 549 | z-index: 100000; /* Above WP toolbar */ 550 | } 551 | 552 | /* Page structure */ 553 | .site { 554 | padding: 0 24px; 555 | padding: 0 1.714285714rem; 556 | } 557 | .site-content { 558 | margin: 24px 0 0; 559 | margin: 1.714285714rem 0 0; 560 | } 561 | .widget-area { 562 | margin: 24px 0 0; 563 | margin: 1.714285714rem 0 0; 564 | } 565 | 566 | /* Header */ 567 | .site-header { 568 | padding: 24px 0; 569 | padding: 1.714285714rem 0; 570 | } 571 | .site-header h1, 572 | .site-header h2 { 573 | text-align: center; 574 | } 575 | .site-header h1 a, 576 | .site-header h2 a { 577 | color: #515151; 578 | display: inline-block; 579 | text-decoration: none; 580 | } 581 | .site-header h1 a:hover, 582 | .site-header h2 a:hover { 583 | color: #21759b; 584 | } 585 | .site-header h1 { 586 | font-size: 24px; 587 | font-size: 1.714285714rem; 588 | line-height: 1.285714286; 589 | margin-bottom: 14px; 590 | margin-bottom: 1rem; 591 | } 592 | .site-header h2 { 593 | font-weight: normal; 594 | font-size: 13px; 595 | font-size: 0.928571429rem; 596 | line-height: 1.846153846; 597 | color: #757575; 598 | } 599 | .header-image { 600 | margin-top: 24px; 601 | margin-top: 1.714285714rem; 602 | } 603 | 604 | /* Navigation Menu */ 605 | .main-navigation { 606 | margin-top: 24px; 607 | margin-top: 1.714285714rem; 608 | text-align: center; 609 | } 610 | .main-navigation li { 611 | margin-top: 24px; 612 | margin-top: 1.714285714rem; 613 | font-size: 12px; 614 | font-size: 0.857142857rem; 615 | line-height: 1.42857143; 616 | } 617 | .main-navigation a { 618 | color: #5e5e5e; 619 | } 620 | .main-navigation a:hover { 621 | color: #21759b; 622 | } 623 | .main-navigation ul.nav-menu, 624 | .main-navigation div.nav-menu > ul { 625 | display: none; 626 | } 627 | .main-navigation ul.nav-menu.toggled-on, 628 | .menu-toggle { 629 | display: inline-block; 630 | } 631 | 632 | /* Banner */ 633 | section[role="banner"] { 634 | margin-bottom: 48px; 635 | margin-bottom: 3.428571429rem; 636 | } 637 | 638 | /* Sidebar */ 639 | .widget-area .widget { 640 | -webkit-hyphens: auto; 641 | -moz-hyphens: auto; 642 | hyphens: auto; 643 | margin-bottom: 48px; 644 | margin-bottom: 3.428571429rem; 645 | word-wrap: break-word; 646 | } 647 | .widget-area .widget h3 { 648 | margin-bottom: 24px; 649 | margin-bottom: 1.714285714rem; 650 | } 651 | .widget-area .widget p, 652 | .widget-area .widget li, 653 | .widget-area .widget .textwidget { 654 | font-size: 13px; 655 | font-size: 0.928571429rem; 656 | line-height: 1.846153846; 657 | } 658 | .widget-area .widget p { 659 | margin-bottom: 24px; 660 | margin-bottom: 1.714285714rem; 661 | } 662 | .widget-area .textwidget ul { 663 | list-style: disc outside; 664 | margin: 0 0 24px; 665 | margin: 0 0 1.714285714rem; 666 | } 667 | .widget-area .textwidget li { 668 | margin-left: 36px; 669 | margin-left: 2.571428571rem; 670 | } 671 | .widget-area .widget a { 672 | color: #757575; 673 | } 674 | .widget-area .widget a:hover { 675 | color: #21759b; 676 | } 677 | .widget-area #s { 678 | width: 53.66666666666%; /* define a width to avoid dropping a wider submit button */ 679 | } 680 | 681 | /* Footer */ 682 | footer[role="contentinfo"] { 683 | border-top: 1px solid #ededed; 684 | clear: both; 685 | font-size: 12px; 686 | font-size: 0.857142857rem; 687 | line-height: 2; 688 | max-width: 960px; 689 | max-width: 68.571428571rem; 690 | margin-top: 24px; 691 | margin-top: 1.714285714rem; 692 | margin-left: auto; 693 | margin-right: auto; 694 | padding: 24px 0; 695 | padding: 1.714285714rem 0; 696 | } 697 | footer[role="contentinfo"] a { 698 | color: #686868; 699 | } 700 | footer[role="contentinfo"] a:hover { 701 | color: #21759b; 702 | } 703 | 704 | 705 | /* =Main content and comment content 706 | -------------------------------------------------------------- */ 707 | 708 | .entry-meta { 709 | clear: both; 710 | } 711 | .entry-header { 712 | margin-bottom: 24px; 713 | margin-bottom: 1.714285714rem; 714 | } 715 | .entry-header img.wp-post-image { 716 | margin-bottom: 24px; 717 | margin-bottom: 1.714285714rem; 718 | } 719 | .entry-header .entry-title { 720 | font-size: 20px; 721 | font-size: 1.428571429rem; 722 | line-height: 1.2; 723 | font-weight: normal; 724 | } 725 | .entry-header .entry-title a { 726 | text-decoration: none; 727 | } 728 | .entry-header .entry-format { 729 | margin-top: 24px; 730 | margin-top: 1.714285714rem; 731 | font-weight: normal; 732 | } 733 | .entry-header .comments-link { 734 | margin-top: 24px; 735 | margin-top: 1.714285714rem; 736 | font-size: 13px; 737 | font-size: 0.928571429rem; 738 | line-height: 1.846153846; 739 | color: #757575; 740 | } 741 | .comments-link a, 742 | .entry-meta a { 743 | color: #757575; 744 | } 745 | .comments-link a:hover, 746 | .entry-meta a:hover { 747 | color: #21759b; 748 | } 749 | article.sticky .featured-post { 750 | border-top: 4px double #ededed; 751 | border-bottom: 4px double #ededed; 752 | color: #757575; 753 | font-size: 13px; 754 | font-size: 0.928571429rem; 755 | line-height: 3.692307692; 756 | margin-bottom: 24px; 757 | margin-bottom: 1.714285714rem; 758 | text-align: center; 759 | } 760 | .entry-content, 761 | .entry-summary, 762 | .mu_register { 763 | line-height: 1.714285714; 764 | } 765 | .entry-content h1, 766 | .comment-content h1, 767 | .entry-content h2, 768 | .comment-content h2, 769 | .entry-content h3, 770 | .comment-content h3, 771 | .entry-content h4, 772 | .comment-content h4, 773 | .entry-content h5, 774 | .comment-content h5, 775 | .entry-content h6, 776 | .comment-content h6 { 777 | margin: 24px 0; 778 | margin: 1.714285714rem 0; 779 | line-height: 1.714285714; 780 | } 781 | .entry-content h1, 782 | .comment-content h1 { 783 | font-size: 21px; 784 | font-size: 1.5rem; 785 | line-height: 1.5; 786 | } 787 | .entry-content h2, 788 | .comment-content h2, 789 | .mu_register h2 { 790 | font-size: 18px; 791 | font-size: 1.285714286rem; 792 | line-height: 1.6; 793 | } 794 | .entry-content h3, 795 | .comment-content h3 { 796 | font-size: 16px; 797 | font-size: 1.142857143rem; 798 | line-height: 1.846153846; 799 | } 800 | .entry-content h4, 801 | .comment-content h4 { 802 | font-size: 14px; 803 | font-size: 1rem; 804 | line-height: 1.846153846; 805 | } 806 | .entry-content h5, 807 | .comment-content h5 { 808 | font-size: 13px; 809 | font-size: 0.928571429rem; 810 | line-height: 1.846153846; 811 | } 812 | .entry-content h6, 813 | .comment-content h6 { 814 | font-size: 12px; 815 | font-size: 0.857142857rem; 816 | line-height: 1.846153846; 817 | } 818 | .entry-content p, 819 | .entry-summary p, 820 | .comment-content p, 821 | .mu_register p { 822 | margin: 0 0 24px; 823 | margin: 0 0 1.714285714rem; 824 | line-height: 1.714285714; 825 | } 826 | .entry-content ol, 827 | .comment-content ol, 828 | .entry-content ul, 829 | .comment-content ul, 830 | .mu_register ul { 831 | margin: 0 0 24px; 832 | margin: 0 0 1.714285714rem; 833 | line-height: 1.714285714; 834 | } 835 | .entry-content ul ul, 836 | .comment-content ul ul, 837 | .entry-content ol ol, 838 | .comment-content ol ol, 839 | .entry-content ul ol, 840 | .comment-content ul ol, 841 | .entry-content ol ul, 842 | .comment-content ol ul { 843 | margin-bottom: 0; 844 | } 845 | .entry-content ul, 846 | .comment-content ul, 847 | .mu_register ul { 848 | list-style: disc outside; 849 | } 850 | .entry-content ol, 851 | .comment-content ol { 852 | list-style: decimal outside; 853 | } 854 | .entry-content li, 855 | .comment-content li, 856 | .mu_register li { 857 | margin: 0 0 0 36px; 858 | margin: 0 0 0 2.571428571rem; 859 | } 860 | .entry-content blockquote, 861 | .comment-content blockquote { 862 | margin-bottom: 24px; 863 | margin-bottom: 1.714285714rem; 864 | padding: 24px; 865 | padding: 1.714285714rem; 866 | font-style: italic; 867 | } 868 | .entry-content blockquote p:last-child, 869 | .comment-content blockquote p:last-child { 870 | margin-bottom: 0; 871 | } 872 | .entry-content code, 873 | .comment-content code { 874 | font-family: Consolas, Monaco, Lucida Console, monospace; 875 | font-size: 12px; 876 | font-size: 0.857142857rem; 877 | line-height: 2; 878 | border: 1px solid #ddd; 879 | background-color: #f8f8f8; 880 | border-radius: 3px; 881 | padding:1px; 882 | } 883 | .entry-content pre, 884 | .comment-content pre { 885 | border: 1px solid #ededed; 886 | color: #666; 887 | font-family: Consolas, Monaco, Lucida Console, monospace; 888 | font-size: 12px; 889 | font-size: 0.857142857rem; 890 | line-height: 1.714285714; 891 | margin: 24px 0; 892 | margin: 1.714285714rem 0; 893 | overflow: auto; 894 | padding: 24px; 895 | padding: 1.714285714rem; 896 | } 897 | .entry-content pre code, 898 | .comment-content pre code { 899 | display: block; 900 | } 901 | .entry-content abbr, 902 | .comment-content abbr, 903 | .entry-content dfn, 904 | .comment-content dfn, 905 | .entry-content acronym, 906 | .comment-content acronym { 907 | border-bottom: 1px dotted #666; 908 | cursor: help; 909 | } 910 | .entry-content address, 911 | .comment-content address { 912 | display: block; 913 | line-height: 1.714285714; 914 | margin: 0 0 24px; 915 | margin: 0 0 1.714285714rem; 916 | } 917 | img.alignleft { 918 | margin: 12px 24px 12px 0; 919 | margin: 0.857142857rem 1.714285714rem 0.857142857rem 0; 920 | } 921 | img.alignright { 922 | margin: 12px 0 12px 24px; 923 | margin: 0.857142857rem 0 0.857142857rem 1.714285714rem; 924 | } 925 | img.aligncenter { 926 | margin-top: 12px; 927 | margin-top: 0.857142857rem; 928 | margin-bottom: 12px; 929 | margin-bottom: 0.857142857rem; 930 | } 931 | .entry-content embed, 932 | .entry-content iframe, 933 | .entry-content object, 934 | .entry-content video { 935 | margin-bottom: 24px; 936 | margin-bottom: 1.714285714rem; 937 | } 938 | .entry-content dl, 939 | .comment-content dl { 940 | margin: 0 24px; 941 | margin: 0 1.714285714rem; 942 | } 943 | .entry-content dt, 944 | .comment-content dt { 945 | font-weight: bold; 946 | line-height: 1.714285714; 947 | } 948 | .entry-content dd, 949 | .comment-content dd { 950 | line-height: 1.714285714; 951 | margin-bottom: 24px; 952 | margin-bottom: 1.714285714rem; 953 | } 954 | .entry-content table, 955 | .comment-content table { 956 | border-bottom: 1px solid #ededed; 957 | color: #757575; 958 | font-size: 12px; 959 | font-size: 0.857142857rem; 960 | line-height: 2; 961 | margin: 0 0 24px; 962 | margin: 0 0 1.714285714rem; 963 | width: 100%; 964 | } 965 | .entry-content table caption, 966 | .comment-content table caption { 967 | font-size: 16px; 968 | font-size: 1.142857143rem; 969 | margin: 24px 0; 970 | margin: 1.714285714rem 0; 971 | } 972 | .entry-content td, 973 | .comment-content td { 974 | border-top: 1px solid #ededed; 975 | padding: 6px 10px 6px 0; 976 | } 977 | .site-content article { 978 | border-bottom: 4px double #ededed; 979 | margin-bottom: 72px; 980 | margin-bottom: 5.142857143rem; 981 | padding-bottom: 24px; 982 | padding-bottom: 1.714285714rem; 983 | word-wrap: break-word; 984 | -webkit-hyphens: auto; 985 | -moz-hyphens: auto; 986 | hyphens: auto; 987 | } 988 | .page-links { 989 | clear: both; 990 | line-height: 1.714285714; 991 | } 992 | footer.entry-meta { 993 | margin-top: 24px; 994 | margin-top: 1.714285714rem; 995 | font-size: 13px; 996 | font-size: 0.928571429rem; 997 | line-height: 1.846153846; 998 | color: #757575; 999 | } 1000 | .single-author .entry-meta .by-author { 1001 | display: none; 1002 | } 1003 | .mu_register h2 { 1004 | color: #757575; 1005 | font-weight: normal; 1006 | } 1007 | 1008 | 1009 | /* =Archives 1010 | -------------------------------------------------------------- */ 1011 | 1012 | .archive-header, 1013 | .page-header { 1014 | margin-bottom: 48px; 1015 | margin-bottom: 3.428571429rem; 1016 | padding-bottom: 22px; 1017 | padding-bottom: 1.571428571rem; 1018 | border-bottom: 1px solid #ededed; 1019 | } 1020 | .archive-meta { 1021 | color: #757575; 1022 | font-size: 12px; 1023 | font-size: 0.857142857rem; 1024 | line-height: 2; 1025 | margin-top: 22px; 1026 | margin-top: 1.571428571rem; 1027 | } 1028 | 1029 | 1030 | /* =Single image attachment view 1031 | -------------------------------------------------------------- */ 1032 | 1033 | .article.attachment { 1034 | overflow: hidden; 1035 | } 1036 | .image-attachment div.attachment { 1037 | text-align: center; 1038 | } 1039 | .image-attachment div.attachment p { 1040 | text-align: center; 1041 | } 1042 | .image-attachment div.attachment img { 1043 | display: block; 1044 | height: auto; 1045 | margin: 0 auto; 1046 | max-width: 100%; 1047 | } 1048 | .image-attachment .entry-caption { 1049 | margin-top: 8px; 1050 | margin-top: 0.571428571rem; 1051 | } 1052 | 1053 | 1054 | /* =Aside post format 1055 | -------------------------------------------------------------- */ 1056 | 1057 | article.format-aside h1 { 1058 | margin-bottom: 24px; 1059 | margin-bottom: 1.714285714rem; 1060 | } 1061 | article.format-aside h1 a { 1062 | text-decoration: none; 1063 | color: #4d525a; 1064 | } 1065 | article.format-aside h1 a:hover { 1066 | color: #2e3542; 1067 | } 1068 | article.format-aside .aside { 1069 | padding: 24px 24px 0; 1070 | padding: 1.714285714rem; 1071 | background: #d2e0f9; 1072 | border-left: 22px solid #a8bfe8; 1073 | } 1074 | article.format-aside p { 1075 | font-size: 13px; 1076 | font-size: 0.928571429rem; 1077 | line-height: 1.846153846; 1078 | color: #4a5466; 1079 | } 1080 | article.format-aside blockquote:last-child, 1081 | article.format-aside p:last-child { 1082 | margin-bottom: 0; 1083 | } 1084 | 1085 | 1086 | /* =Post formats 1087 | -------------------------------------------------------------- */ 1088 | 1089 | /* Image posts */ 1090 | article.format-image footer h1 { 1091 | font-size: 13px; 1092 | font-size: 0.928571429rem; 1093 | line-height: 1.846153846; 1094 | font-weight: normal; 1095 | } 1096 | article.format-image footer h2 { 1097 | font-size: 11px; 1098 | font-size: 0.785714286rem; 1099 | line-height: 2.181818182; 1100 | } 1101 | article.format-image footer a h2 { 1102 | font-weight: normal; 1103 | } 1104 | 1105 | /* Link posts */ 1106 | article.format-link header { 1107 | padding: 0 10px; 1108 | padding: 0 0.714285714rem; 1109 | float: right; 1110 | font-size: 11px; 1111 | font-size: 0.785714286rem; 1112 | line-height: 2.181818182; 1113 | font-weight: bold; 1114 | font-style: italic; 1115 | text-transform: uppercase; 1116 | color: #848484; 1117 | background-color: #ebebeb; 1118 | border-radius: 3px; 1119 | } 1120 | article.format-link .entry-content { 1121 | max-width: 80%; 1122 | float: left; 1123 | } 1124 | article.format-link .entry-content a { 1125 | font-size: 22px; 1126 | font-size: 1.571428571rem; 1127 | line-height: 1.090909091; 1128 | text-decoration: none; 1129 | } 1130 | 1131 | /* Quote posts */ 1132 | article.format-quote .entry-content p { 1133 | margin: 0; 1134 | padding-bottom: 24px; 1135 | padding-bottom: 1.714285714rem; 1136 | } 1137 | article.format-quote .entry-content blockquote { 1138 | display: block; 1139 | padding: 24px 24px 0; 1140 | padding: 1.714285714rem 1.714285714rem 0; 1141 | font-size: 15px; 1142 | font-size: 1.071428571rem; 1143 | line-height: 1.6; 1144 | font-style: normal; 1145 | color: #6a6a6a; 1146 | background: #efefef; 1147 | } 1148 | 1149 | /* Status posts */ 1150 | .format-status .entry-header { 1151 | margin-bottom: 24px; 1152 | margin-bottom: 1.714285714rem; 1153 | } 1154 | .format-status .entry-header header { 1155 | display: inline-block; 1156 | } 1157 | .format-status .entry-header h1 { 1158 | font-size: 15px; 1159 | font-size: 1.071428571rem; 1160 | font-weight: normal; 1161 | line-height: 1.6; 1162 | margin: 0; 1163 | } 1164 | .format-status .entry-header h2 { 1165 | font-size: 12px; 1166 | font-size: 0.857142857rem; 1167 | font-weight: normal; 1168 | line-height: 2; 1169 | margin: 0; 1170 | } 1171 | .format-status .entry-header header a { 1172 | color: #757575; 1173 | } 1174 | .format-status .entry-header header a:hover { 1175 | color: #21759b; 1176 | } 1177 | .format-status .entry-header img { 1178 | float: left; 1179 | margin-right: 21px; 1180 | margin-right: 1.5rem; 1181 | } 1182 | 1183 | 1184 | /* =Comments 1185 | -------------------------------------------------------------- */ 1186 | 1187 | .comments-title { 1188 | margin-bottom: 48px; 1189 | margin-bottom: 3.428571429rem; 1190 | font-size: 16px; 1191 | font-size: 1.142857143rem; 1192 | line-height: 1.5; 1193 | font-weight: normal; 1194 | } 1195 | .comments-area article { 1196 | margin: 24px 0; 1197 | margin: 1.714285714rem 0; 1198 | } 1199 | .comments-area article header { 1200 | margin: 0 0 48px; 1201 | margin: 0 0 3.428571429rem; 1202 | overflow: hidden; 1203 | position: relative; 1204 | } 1205 | .comments-area article header img { 1206 | float: left; 1207 | padding: 0; 1208 | line-height: 0; 1209 | } 1210 | .comments-area article header cite, 1211 | .comments-area article header time { 1212 | display: block; 1213 | margin-left: 85px; 1214 | margin-left: 6.071428571rem; 1215 | } 1216 | .comments-area article header cite { 1217 | font-style: normal; 1218 | font-size: 15px; 1219 | font-size: 1.071428571rem; 1220 | line-height: 1.42857143; 1221 | } 1222 | .comments-area article header time { 1223 | line-height: 1.714285714; 1224 | text-decoration: none; 1225 | font-size: 12px; 1226 | font-size: 0.857142857rem; 1227 | color: #5e5e5e; 1228 | } 1229 | .comments-area article header a { 1230 | text-decoration: none; 1231 | color: #5e5e5e; 1232 | } 1233 | .comments-area article header a:hover { 1234 | color: #21759b; 1235 | } 1236 | .comments-area article header cite a { 1237 | color: #444; 1238 | } 1239 | .comments-area article header cite a:hover { 1240 | text-decoration: underline; 1241 | } 1242 | .comments-area article header h4 { 1243 | position: absolute; 1244 | top: 0; 1245 | right: 0; 1246 | padding: 6px 12px; 1247 | padding: 0.428571429rem 0.857142857rem; 1248 | font-size: 12px; 1249 | font-size: 0.857142857rem; 1250 | font-weight: normal; 1251 | color: #fff; 1252 | background-color: #0088d0; 1253 | background-repeat: repeat-x; 1254 | background-image: -moz-linear-gradient(top, #009cee, #0088d0); 1255 | background-image: -ms-linear-gradient(top, #009cee, #0088d0); 1256 | background-image: -webkit-linear-gradient(top, #009cee, #0088d0); 1257 | background-image: -o-linear-gradient(top, #009cee, #0088d0); 1258 | background-image: linear-gradient(top, #009cee, #0088d0); 1259 | border-radius: 3px; 1260 | border: 1px solid #007cbd; 1261 | } 1262 | .comments-area li.bypostauthor cite span { 1263 | position: absolute; 1264 | margin-left: 5px; 1265 | margin-left: 0.357142857rem; 1266 | padding: 2px 5px; 1267 | padding: 0.142857143rem 0.357142857rem; 1268 | font-size: 10px; 1269 | font-size: 0.714285714rem; 1270 | } 1271 | a.comment-reply-link, 1272 | a.comment-edit-link { 1273 | color: #686868; 1274 | font-size: 13px; 1275 | font-size: 0.928571429rem; 1276 | line-height: 1.846153846; 1277 | } 1278 | a.comment-reply-link:hover, 1279 | a.comment-edit-link:hover { 1280 | color: #21759b; 1281 | } 1282 | .commentlist .pingback { 1283 | line-height: 1.714285714; 1284 | margin-bottom: 24px; 1285 | margin-bottom: 1.714285714rem; 1286 | } 1287 | 1288 | /* Comment form */ 1289 | #respond { 1290 | margin-top: 48px; 1291 | margin-top: 3.428571429rem; 1292 | } 1293 | #respond h3#reply-title { 1294 | font-size: 16px; 1295 | font-size: 1.142857143rem; 1296 | line-height: 1.5; 1297 | } 1298 | #respond h3#reply-title #cancel-comment-reply-link { 1299 | margin-left: 10px; 1300 | margin-left: 0.714285714rem; 1301 | font-weight: normal; 1302 | font-size: 12px; 1303 | font-size: 0.857142857rem; 1304 | } 1305 | #respond form { 1306 | margin: 24px 0; 1307 | margin: 1.714285714rem 0; 1308 | } 1309 | #respond form p { 1310 | margin: 11px 0; 1311 | margin: 0.785714286rem 0; 1312 | } 1313 | #respond form p.logged-in-as { 1314 | margin-bottom: 24px; 1315 | margin-bottom: 1.714285714rem; 1316 | } 1317 | #respond form label { 1318 | display: block; 1319 | line-height: 1.714285714; 1320 | } 1321 | #respond form input[type="text"], 1322 | #respond form textarea { 1323 | -moz-box-sizing: border-box; 1324 | box-sizing: border-box; 1325 | font-size: 12px; 1326 | font-size: 0.857142857rem; 1327 | line-height: 1.714285714; 1328 | padding: 10px; 1329 | padding: 0.714285714rem; 1330 | width: 100%; 1331 | } 1332 | #respond form p.form-allowed-tags { 1333 | margin: 0; 1334 | font-size: 12px; 1335 | font-size: 0.857142857rem; 1336 | line-height: 2; 1337 | color: #5e5e5e; 1338 | } 1339 | .required { 1340 | color: red; 1341 | } 1342 | 1343 | 1344 | /* =Front page template 1345 | -------------------------------------------------------------- */ 1346 | 1347 | .entry-page-image { 1348 | margin-bottom: 14px; 1349 | margin-bottom: 1rem; 1350 | } 1351 | .template-front-page .site-content article { 1352 | border: 0; 1353 | margin-bottom: 0; 1354 | } 1355 | .template-front-page .widget-area { 1356 | clear: both; 1357 | float: none; 1358 | width: auto; 1359 | padding-top: 24px; 1360 | padding-top: 1.714285714rem; 1361 | border-top: 1px solid #ededed; 1362 | } 1363 | .template-front-page .widget-area .widget li { 1364 | margin: 8px 0 0; 1365 | margin: 0.571428571rem 0 0; 1366 | font-size: 13px; 1367 | font-size: 0.928571429rem; 1368 | line-height: 1.714285714; 1369 | list-style-type: square; 1370 | list-style-position: inside; 1371 | } 1372 | .template-front-page .widget-area .widget li a { 1373 | color: #757575; 1374 | } 1375 | .template-front-page .widget-area .widget li a:hover { 1376 | color: #21759b; 1377 | } 1378 | .template-front-page .widget-area .widget_text img { 1379 | float: left; 1380 | margin: 8px 24px 8px 0; 1381 | margin: 0.571428571rem 1.714285714rem 0.571428571rem 0; 1382 | } 1383 | 1384 | 1385 | /* =Widgets 1386 | -------------------------------------------------------------- */ 1387 | 1388 | .widget-area .widget ul ul { 1389 | margin-left: 12px; 1390 | margin-left: 0.857142857rem; 1391 | } 1392 | .widget_rss li { 1393 | margin: 12px 0; 1394 | margin: 0.857142857rem 0; 1395 | } 1396 | .widget_recent_entries .post-date, 1397 | .widget_rss .rss-date { 1398 | color: #aaa; 1399 | font-size: 11px; 1400 | font-size: 0.785714286rem; 1401 | margin-left: 12px; 1402 | margin-left: 0.857142857rem; 1403 | } 1404 | #wp-calendar { 1405 | margin: 0; 1406 | width: 100%; 1407 | font-size: 13px; 1408 | font-size: 0.928571429rem; 1409 | line-height: 1.846153846; 1410 | color: #686868; 1411 | } 1412 | #wp-calendar th, 1413 | #wp-calendar td, 1414 | #wp-calendar caption { 1415 | text-align: left; 1416 | } 1417 | #wp-calendar #next { 1418 | padding-right: 24px; 1419 | padding-right: 1.714285714rem; 1420 | text-align: right; 1421 | } 1422 | .widget_search label { 1423 | display: block; 1424 | font-size: 13px; 1425 | font-size: 0.928571429rem; 1426 | line-height: 1.846153846; 1427 | } 1428 | .widget_twitter li { 1429 | list-style-type: none; 1430 | } 1431 | .widget_twitter .timesince { 1432 | display: block; 1433 | text-align: right; 1434 | } 1435 | 1436 | 1437 | /* =Plugins 1438 | ----------------------------------------------- */ 1439 | 1440 | img#wpstats { 1441 | display: block; 1442 | margin: 0 auto 24px; 1443 | margin: 0 auto 1.714285714rem; 1444 | } 1445 | 1446 | 1447 | /* =Media queries 1448 | -------------------------------------------------------------- */ 1449 | 1450 | /* Minimum width of 600 pixels. */ 1451 | @media screen and (min-width: 600px) { 1452 | .author-avatar { 1453 | float: left; 1454 | margin-top: 8px; 1455 | margin-top: 0.571428571rem; 1456 | } 1457 | .author-description { 1458 | float: right; 1459 | width: 80%; 1460 | } 1461 | .site { 1462 | margin: 0 auto; 1463 | max-width: 960px; 1464 | max-width: 68.571428571rem; 1465 | overflow: hidden; 1466 | } 1467 | .site-content { 1468 | float: left; 1469 | width: 65.104166667%; 1470 | } 1471 | body.template-front-page .site-content, 1472 | body.single-attachment .site-content, 1473 | body.full-width .site-content { 1474 | width: 100%; 1475 | } 1476 | .widget-area { 1477 | float: right; 1478 | width: 26.041666667%; 1479 | } 1480 | .site-header h1{ 1481 | text-align: left; 1482 | } 1483 | .site-header h1 { 1484 | font-size: 26px; 1485 | font-size: 1.857142857rem; 1486 | line-height: 1.846153846; 1487 | margin-bottom: 0; 1488 | } 1489 | .main-navigation ul.nav-menu, 1490 | .main-navigation div.nav-menu > ul { 1491 | border-bottom: 1px solid #33B5E5; 1492 | display: inline-block !important; 1493 | text-align: left; 1494 | width: 100%; 1495 | } 1496 | .main-navigation ul { 1497 | margin: 0; 1498 | text-indent: 0; 1499 | } 1500 | .main-navigation li a, 1501 | .main-navigation li { 1502 | display: inline-block; 1503 | text-decoration: none; 1504 | } 1505 | .main-navigation li a { 1506 | border-bottom: 0; 1507 | color: #6a6a6a; 1508 | line-height: 3.692307692; 1509 | text-transform: uppercase; 1510 | white-space: nowrap; 1511 | } 1512 | .main-navigation li a:hover { 1513 | color: #000; 1514 | } 1515 | .main-navigation li { 1516 | margin: 0 40px 0 0; 1517 | margin: 0 2.857142857rem 0 0; 1518 | position: relative; 1519 | } 1520 | .main-navigation li ul { 1521 | display: none; 1522 | margin: 0; 1523 | padding: 0; 1524 | position: absolute; 1525 | top: 100%; 1526 | z-index: 1; 1527 | } 1528 | .main-navigation li ul ul { 1529 | top: 0; 1530 | left: 100%; 1531 | } 1532 | .main-navigation ul li:hover > ul { 1533 | border-left: 0; 1534 | display: block; 1535 | } 1536 | .main-navigation li ul li a { 1537 | background: #efefef; 1538 | border-bottom: 1px solid #ededed; 1539 | display: block; 1540 | font-size: 11px; 1541 | font-size: 0.785714286rem; 1542 | line-height: 2.181818182; 1543 | padding: 8px 10px; 1544 | padding: 0.571428571rem 0.714285714rem; 1545 | width: 180px; 1546 | width: 12.85714286rem; 1547 | white-space: normal; 1548 | } 1549 | .main-navigation li ul li a:hover { 1550 | background: #e3e3e3; 1551 | color: #444; 1552 | } 1553 | .main-navigation .current-menu-item > a, 1554 | .main-navigation .current-menu-ancestor > a, 1555 | .main-navigation .current_page_item > a, 1556 | .main-navigation .current_page_ancestor > a { 1557 | color: #1982d1; 1558 | border-bottom:4px solid #33B5E5; 1559 | margin-bottom:-4px; 1560 | } 1561 | .menu-toggle { 1562 | display: none; 1563 | } 1564 | .entry-header .entry-title { 1565 | font-size: 22px; 1566 | font-size: 1.571428571rem; 1567 | } 1568 | #respond form input[type="text"] { 1569 | width: 46.333333333%; 1570 | } 1571 | #respond form textarea.blog-textarea { 1572 | width: 79.666666667%; 1573 | } 1574 | .template-front-page .site-content, 1575 | .template-front-page article { 1576 | overflow: hidden; 1577 | } 1578 | .template-front-page.has-post-thumbnail article { 1579 | float: left; 1580 | width: 47.916666667%; 1581 | } 1582 | .entry-page-image { 1583 | float: right; 1584 | margin-bottom: 0; 1585 | width: 47.916666667%; 1586 | } 1587 | .template-front-page .widget-area .widget, 1588 | .template-front-page.two-sidebars .widget-area .front-widgets { 1589 | float: left; 1590 | width: 51.875%; 1591 | margin-bottom: 24px; 1592 | margin-bottom: 1.714285714rem; 1593 | } 1594 | .template-front-page .widget-area .widget:nth-child(odd) { 1595 | clear: right; 1596 | } 1597 | .template-front-page .widget-area .widget:nth-child(even), 1598 | .template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets { 1599 | float: right; 1600 | width: 39.0625%; 1601 | margin: 0 0 24px; 1602 | margin: 0 0 1.714285714rem; 1603 | } 1604 | .template-front-page.two-sidebars .widget, 1605 | .template-front-page.two-sidebars .widget:nth-child(even) { 1606 | float: none; 1607 | width: auto; 1608 | } 1609 | .commentlist .children { 1610 | margin-left: 48px; 1611 | margin-left: 3.428571429rem; 1612 | } 1613 | } 1614 | 1615 | /* Minimum width of 960 pixels. */ 1616 | @media screen and (min-width: 960px) { 1617 | body { 1618 | background-color: #F9F9F9; 1619 | } 1620 | body .site { 1621 | padding: 0 40px; 1622 | padding: 0 2.857142857rem; 1623 | margin-bottom: 48px; 1624 | margin-bottom: 3.428571429rem; 1625 | } 1626 | body.custom-background-empty { 1627 | background-color: #fff; 1628 | } 1629 | body.custom-background-empty .site, 1630 | body.custom-background-white .site { 1631 | padding: 0; 1632 | margin-top: 0; 1633 | margin-bottom: 0; 1634 | box-shadow: none; 1635 | } 1636 | } 1637 | 1638 | 1639 | /* =Print 1640 | ----------------------------------------------- */ 1641 | 1642 | @media print { 1643 | body { 1644 | background: none !important; 1645 | color: #000; 1646 | font-size: 10pt; 1647 | } 1648 | footer a[rel=bookmark]:link:after, 1649 | footer a[rel=bookmark]:visited:after { 1650 | content: " [" attr(href) "] "; /* Show URLs */ 1651 | } 1652 | a { 1653 | text-decoration: none; 1654 | } 1655 | .entry-content img, 1656 | .comment-content img, 1657 | .author-avatar img, 1658 | img.wp-post-image { 1659 | border-radius: 0; 1660 | box-shadow: none; 1661 | } 1662 | .site { 1663 | clear: both !important; 1664 | display: block !important; 1665 | float: none !important; 1666 | max-width: 100%; 1667 | position: relative !important; 1668 | } 1669 | .site-header { 1670 | margin-bottom: 72px; 1671 | margin-bottom: 5.142857143rem; 1672 | text-align: left; 1673 | } 1674 | .site-header h1 { 1675 | font-size: 21pt; 1676 | line-height: 1; 1677 | text-align: left; 1678 | } 1679 | .site-header h2 { 1680 | color: #000; 1681 | font-size: 10pt; 1682 | text-align: left; 1683 | } 1684 | .site-header h1 a, 1685 | .site-header h2 a { 1686 | color: #000; 1687 | } 1688 | .author-avatar, 1689 | #colophon, 1690 | #respond, 1691 | .commentlist .comment-edit-link, 1692 | .commentlist .reply, 1693 | .entry-header .comments-link, 1694 | .entry-meta .edit-link a, 1695 | .page-link, 1696 | .site-content nav, 1697 | .widget-area, 1698 | img.header-image, 1699 | .main-navigation { 1700 | display: none; 1701 | } 1702 | .wrapper { 1703 | border-top: none; 1704 | box-shadow: none; 1705 | } 1706 | .site-content { 1707 | margin: 0; 1708 | width: auto; 1709 | } 1710 | .singular .entry-header .entry-meta { 1711 | position: static; 1712 | } 1713 | .singular .site-content, 1714 | .singular .entry-header, 1715 | .singular .entry-content, 1716 | .singular footer.entry-meta, 1717 | .singular .comments-title { 1718 | margin: 0; 1719 | width: 100%; 1720 | } 1721 | .entry-header .entry-title, 1722 | .entry-title, 1723 | .singular .entry-title { 1724 | font-size: 21pt; 1725 | } 1726 | footer.entry-meta, 1727 | footer.entry-meta a { 1728 | color: #444; 1729 | font-size: 10pt; 1730 | } 1731 | .author-description { 1732 | float: none; 1733 | width: auto; 1734 | } 1735 | 1736 | /* Comments */ 1737 | .commentlist > li.comment { 1738 | background: none; 1739 | position: relative; 1740 | width: auto; 1741 | } 1742 | .commentlist .avatar { 1743 | height: 39px; 1744 | left: 2.2em; 1745 | top: 2.2em; 1746 | width: 39px; 1747 | } 1748 | .comments-area article header cite, 1749 | .comments-area article header time { 1750 | margin-left: 50px; 1751 | margin-left: 3.57142857rem; 1752 | } 1753 | } 1754 | 1755 | 1756 | /*damao custom*/ 1757 | a{text-decoration: none;color:#33B5E5;} 1758 | a:hover{text-decoration:underline;color:#33B5E5;} 1759 | body .site{margin-bottom: 0;} 1760 | footer[role="contentinfo"]{padding:10px 0} 1761 | .ui_input{position: relative;border-bottom:1px solid #33B5E5;display: inline-block} 1762 | .ui_input input, 1763 | .ui_input textarea {background:none;border:none;border-radius: 0;} 1764 | .ui_input:before{content:"";position: absolute;left:0;bottom:0;height:5px;width:0;border-left:1px solid #33B5E5} 1765 | .ui_input:after{content:"";position: absolute;right:0;bottom:0;height:5px;width:0;border-left:1px solid #33B5E5} 1766 | .ui_input input:focus,.ui_input textarea:focus{outline:none;background-color:rgba(255,255,255,.55)} 1767 | .menu-toggle, input[type="submit"], input[type="button"], input[type="reset"], article.post-password-required input[type=submit], .ui_button{ background-color: #09c; background-image: -webkit-gradient(linear, left top, left bottom, from(#2faddb), to(#09c)); background-image: -webkit-linear-gradient(top, #2faddb, #09c); background-image: -moz-linear-gradient(top, #2faddb, #09c); background-image: -ms-linear-gradient(top, #2faddb, #09c); background-image: -o-linear-gradient(top, #2faddb, #09c); background-image: linear-gradient(top, #2faddb, #09c); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#2faddb', EndColorStr='#0099cc',GradientType=0); border: 1px solid #3990ab; color: #fff; } 1768 | .menu-toggle:hover, input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover, article.post-password-required input[type=submit]:hover, .ui_button:hover{ border-color: #09c; background-color: #4cadcb; background-image: -webkit-gradient(linear, left top, left bottom, from(#5dbcd9), to(#4cadcb)); background-image: -webkit-linear-gradient(top, #5dbcd9, #4cadcb); background-image: -moz-linear-gradient(top, #5dbcd9, #4cadcb); background-image: -ms-linear-gradient(top, #5dbcd9, #4cadcb); background-image: -o-linear-gradient(top, #5dbcd9, #4cadcb); background-image: linear-gradient(top, #5dbcd9, #4cadcb); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#5dbcd9', EndColorStr='#4cadcb',GradientType=0); color: #fff !important; } 1769 | .menu-toggle:active, input[type="submit"]:active, input[type="button"]:active, input[type="reset"]:active, article.post-password-required input[type=submit]:active, .ui_button:active{ background-color: #1e799a; background-image: none; border-color: #30b7e6; box-shadow: none; color:#FFF; } 1770 | 1771 | 1772 | /*article*/ 1773 | .site-content article{border-bottom: 1px solid #ededed; box-shadow:0 1px 0 rgba(255,255,255,.5);} 1774 | .entry-content h1, 1775 | .comment-content h1, 1776 | .entry-content h2, 1777 | .comment-content h2, 1778 | .entry-content h3, 1779 | .comment-content h3, 1780 | .entry-content h4, 1781 | .comment-content h4, 1782 | .entry-content h5, 1783 | .comment-content h5, 1784 | .entry-content h6, 1785 | .comment-content h6 { 1786 | border-left: 2px solid #33B5E5; 1787 | padding-left: 5px; 1788 | margin-left:-7px; 1789 | } 1790 | .entry-content{position: relative}/*为 fn_article_nav 定位*/ 1791 | #fn_article_nav{position:absolute;right:0;top:10px;background-color:rgba(255,255,255,.8);border-radius: 3px;opacity: .8;z-index: 1;}/*z-index for comment area*/ 1792 | #fn_article_nav:hover{opacity: 1;} 1793 | #fn_article_nav li{display:none;list-style: none;padding:3px;max-width:90px;margin:0;font-size:12px;border-left: 2px solid #FFF;} 1794 | #fn_article_nav.fn_article_nav_toggle li{display:block;} 1795 | #fn_article_nav li:first-child{display:block;} 1796 | #fn_article_nav li:hover{border-left: 2px solid #33B5E5;background-color:rgba(255,255,255,.3);} 1797 | #fn_article_nav li a{display: block} 1798 | #fn_article_nav li a:hover{text-decoration: none;} 1799 | /*search*/ 1800 | .fn_search{text-align: center;} 1801 | .fn_search .search_filtered{ background-color:rgba(255, 255, 255, .95); position:absolute; top:102%; left:0; z-index:200;text-align: left;} 1802 | .fn_search .search_filtered a{ padding:7px 5px 7px 10px; display:block; width:153px; text-overflow:ellipsis; white-space:nowrap; overflow:hidden; font-size:12px; } 1803 | .fn_search .search_filtered a:hover, 1804 | .fn_search .search_filtered a:focus{ background-color:rgba(0, 0, 0, 0.03); text-decoration:none; } 1805 | 1806 | /* comments */ 1807 | #respond form p.form-allowed-tags{display:none;} 1808 | #respond form input[type="text"] { width: 100%; } 1809 | #respond form textarea.blog-textarea { width: 100%; } 1810 | .comments-area article header{margin-bottom: 10px;} 1811 | .comments-area .edit-link{float:right;} 1812 | /*ajax*/ 1813 | @-webkit-keyframes progressPulse { from { background-color:rgba(250,255,103, .3); -webkit-box-shadow: 0 0 9px rgba(250,255,103, .2); } 50% { background-color: rgba(250,255,103, .7); -webkit-box-shadow: 0 0 18px rgba(250,255,103, .7); } to { background-color: rgba(250,255,103, .3); -webkit-box-shadow: 0 0 9px rgba(250,255,103, .2); } } 1814 | @-webkit-keyframes errorPulse { from { background-color:rgba(242, 203, 206, .3); -webkit-box-shadow: 0 0 9px rgba(242, 203, 206, .2); } 50% { background-color: rgba(242, 203, 206, .7); -webkit-box-shadow: 0 0 18px rgba(242, 203, 206, .7); } to { background-color: rgba(242, 203, 206, .3); -webkit-box-shadow: 0 0 9px rgba(242, 203, 206, .2); } } 1815 | .ajax-success, .ajax-error, .ajax-progress{ background-color:rgba(153, 204, 0, .1); padding:3px; border-left:1px solid #9C0; border-top-right-radius:2px; border-bottom-right-radius:2px; font-size:12px; -webkit-animation-duration:1s; -webkit-animation-iteration-count:infinite; } 1816 | .ajax-error p{ margin:0 !important; } 1817 | .ajax-error{ background-color:rgba(242, 203, 206, .3); border-left:1px solid #F76A6C; -webkit-animation-name:errorPulse; } 1818 | .ajax-progress{ background-color:rgba(250, 255, 103, .3); border-left:1px solid #D8D836; -webkit-animation-name:progressPulse; } 1819 | 1820 | 1821 | /* Minimum width of 600 pixels. */ 1822 | @media screen and (min-width: 600px) { 1823 | .site-header h1{float:left;} 1824 | .site-header .fn_search{float:right;} 1825 | } 1826 | @media screen and (min-width: 1200px) { 1827 | body .site { 1828 | max-width: 1200px; 1829 | max-width: 85.7142857137rem; 1830 | } 1831 | } -------------------------------------------------------------------------------- /tag.php: -------------------------------------------------------------------------------- 1 | 15 | 16 |
    17 |
    18 | 19 | 20 |
    21 |

    ' . single_tag_title( '', false ) . '' ); ?>

    22 | 23 | 24 |
    25 | 26 |
    27 | 28 | 42 | 43 | 44 | 45 | 46 | 47 |
    48 |
    49 | 50 | 51 | --------------------------------------------------------------------------------