├── 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 ├── blocks.css ├── editor-blocks.css └── ie.css ├── editor-style-rtl.css ├── editor-style.css ├── footer.php ├── functions.php ├── header.php ├── image.php ├── inc └── custom-header.php ├── index.php ├── js ├── html5.js ├── navigation.js └── theme-customizer.js ├── page-templates ├── front-page.php └── full-width.php ├── page.php ├── readme.txt ├── rtl.css ├── screenshot.png ├── 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 | 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 21 | 22 |
23 |
24 | 25 | 26 |
27 |

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

40 |
41 | 42 | 57 | 58 | 59 | 60 | 61 | 62 |
63 |
64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /author.php: -------------------------------------------------------------------------------- 1 | 15 | 16 |
17 |
18 | 19 | 20 | 21 | 30 | 31 |
32 |

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

33 |
34 | 35 | 42 | 43 | 44 | 45 | 49 |
50 |
51 | 62 |
63 |
64 |

65 |

66 |
67 |
68 | 69 | 70 | 71 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 |
85 |
86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /category.php: -------------------------------------------------------------------------------- 1 | 15 | 16 |
17 |
18 | 19 | 20 |
21 |

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

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

31 | ' . get_the_title() . '' 36 | ); 37 | ?> 38 |

39 | 40 |
    41 | 'twentytwelve_comment', 45 | 'style' => 'ol', 46 | ) 47 | ); 48 | ?> 49 |
50 | 51 | 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> 52 | 57 | 58 | 59 | 65 |

66 | 67 | 68 | 69 | 70 | 71 | 72 |
73 | -------------------------------------------------------------------------------- /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 | 21 | '', 26 | ) 27 | ); 28 | ?> 29 |
30 | 33 |
34 | -------------------------------------------------------------------------------- /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 | 28 |
29 | 30 |
31 | →', 'twentytwelve' ) ); ?> 32 |
33 | 34 | 42 |
43 | -------------------------------------------------------------------------------- /content.php: -------------------------------------------------------------------------------- 1 | 12 | 13 |
> 14 | 15 |
16 | 17 |
18 | 19 |
20 | 25 | 26 | 27 |

28 | 29 |

30 | 31 |

32 | 33 | 34 | 37 | 38 |
39 | 40 | 41 |
42 | 43 |
44 | 45 |
46 | →', 'twentytwelve' ) ); ?> 47 | '', 52 | ) 53 | ); 54 | ?> 55 |
56 | 57 | 58 | 82 |
83 | -------------------------------------------------------------------------------- /css/blocks.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Twenty Twelve 3 | Description: Used to style blocks. 4 | */ 5 | 6 | /*-------------------------------------------------------------- 7 | >>> TABLE OF CONTENTS: 8 | ---------------------------------------------------------------- 9 | 1.0 General Block Styles 10 | 2.0 Blocks - Common Blocks 11 | 3.0 Blocks - Formatting 12 | 4.0 Blocks - Layout Elements 13 | 5.0 Blocks - Widgets 14 | 6.0 Blocks - Colors 15 | --------------------------------------------------------------*/ 16 | 17 | /*-------------------------------------------------------------- 18 | 1.0 General Block Styles 19 | --------------------------------------------------------------*/ 20 | 21 | /* Captions */ 22 | 23 | [class^="wp-block-"] figcaption { 24 | color: #757575; 25 | font-size: 12px; 26 | font-size: 0.857142857rem; 27 | line-height: 2; 28 | font-style: italic; 29 | text-align: left; 30 | } 31 | 32 | [class^="wp-block-"].alignleft, 33 | [class^="wp-block-"] .alignleft { 34 | margin-right: 24px; 35 | } 36 | 37 | [class^="wp-block-"].alignright, 38 | [class^="wp-block-"] .alignright { 39 | margin-left: 24px; 40 | } 41 | 42 | .rtl [class^="wp-block-"] figcaption { 43 | text-align: right; 44 | } 45 | 46 | /*-------------------------------------------------------------- 47 | 2.0 Blocks - Common Blocks 48 | --------------------------------------------------------------*/ 49 | 50 | /* Paragraph */ 51 | 52 | p.has-drop-cap:not(:focus)::first-letter { 53 | font-size: 5em; 54 | margin-top: 0.1em; 55 | } 56 | 57 | /* Image */ 58 | 59 | .wp-block-image figure:not(.aligncenter) { 60 | line-height: 0; 61 | margin: 0 1.714285714rem; 62 | } 63 | 64 | .wp-block-image figure.alignleft { 65 | margin: 0.857142857rem 1.714285714rem 0.857142857rem 0; 66 | } 67 | 68 | .wp-block-image figure.alignright { 69 | margin: 0.857142857rem 0 0.857142857rem 1.714285714rem; 70 | } 71 | 72 | .wp-block-image figcaption { 73 | padding-top: 0.75em; 74 | } 75 | 76 | [class^="wp-block-"].alignleft, 77 | [class^="wp-block-"] .alignleft, 78 | [class^="wp-block-"].alignright, 79 | [class^="wp-block-"] .alignright { 80 | 81 | } 82 | 83 | /* Gallery */ 84 | 85 | .wp-block-gallery { 86 | margin-bottom: 24px; 87 | margin-bottom: 1.714285714rem; 88 | } 89 | 90 | .wp-block-gallery .blocks-gallery-image figcaption, 91 | .wp-block-gallery .blocks-gallery-item figcaption { 92 | left: 0; 93 | right: 0; 94 | text-align: center; 95 | width: auto; 96 | } 97 | 98 | /* Quote */ 99 | 100 | .wp-block-quote:not(.is-large):not(.is-style-large) { 101 | border: 0; 102 | padding: 24px; 103 | padding: 1.714285714rem; 104 | } 105 | 106 | .wp-block-quote { 107 | padding: 24px; 108 | padding: 1.714285714rem; 109 | } 110 | 111 | .wp-block-quote cite { 112 | color: inherit; 113 | font-size: inherit; 114 | font-style: italic; 115 | } 116 | 117 | .wp-block-quote.is-large p, 118 | .wp-block-quote.is-style-large p { 119 | font-size: 20px; 120 | } 121 | 122 | /* Audio */ 123 | 124 | .wp-block-audio audio { 125 | display: block; 126 | margin-bottom: 1.714285714rem; 127 | width: 100%; 128 | } 129 | 130 | /* Cover */ 131 | 132 | .wp-block-cover-image.aligncenter, 133 | .wp-block-cover.aligncenter { 134 | display: flex; 135 | } 136 | 137 | /* File */ 138 | 139 | .wp-block-file .wp-block-file__button { 140 | background-color: #e6e6e6; 141 | background-repeat: repeat-x; 142 | background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6); 143 | background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6); 144 | background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6); 145 | background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6); 146 | background-image: linear-gradient(top, #f4f4f4, #e6e6e6); 147 | border: 1px solid #d2d2d2; 148 | border-radius: 3px; 149 | box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1); 150 | color: #7c7c7c; 151 | font-family: inherit; 152 | font-size: 11px; 153 | font-size: 0.785714286rem; 154 | font-weight: normal; 155 | line-height: 1.428571429; 156 | padding: 6px 10px; 157 | padding: 0.428571429rem 0.714285714rem; 158 | } 159 | 160 | .wp-block-file .wp-block-file__button:hover, 161 | .wp-block-file .wp-block-file__button:focus { 162 | background-color: #ebebeb; 163 | background-image: -moz-linear-gradient(top, #f9f9f9, #ebebeb); 164 | background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb); 165 | background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb); 166 | background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb); 167 | background-image: linear-gradient(top, #f9f9f9, #ebebeb); 168 | background-repeat: repeat-x; 169 | color: #5e5e5e; 170 | } 171 | 172 | .wp-block-file .wp-block-file__button:focus { 173 | background-color: #e1e1e1; 174 | background-image: -moz-linear-gradient(top, #ebebeb, #e1e1e1); 175 | background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1); 176 | background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1); 177 | background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1); 178 | background-image: linear-gradient(top, #ebebeb, #e1e1e1); 179 | background-repeat: repeat-x; 180 | border-color: transparent; 181 | box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4; 182 | color: #757575; 183 | } 184 | 185 | .rtl .wp-block-file * + .wp-block-file__button { 186 | margin-left: 0.75em; 187 | margin-right: 0; 188 | } 189 | 190 | /* Video */ 191 | 192 | .wp-block-video video:not(:last-child) { 193 | margin-bottom: 0; 194 | } 195 | 196 | /*-------------------------------------------------------------- 197 | 3.0 Blocks - Formatting 198 | --------------------------------------------------------------*/ 199 | 200 | /* Code */ 201 | 202 | pre.wp-block-code { 203 | border: 0; 204 | padding: 0; 205 | } 206 | 207 | /* Pullquote */ 208 | 209 | .wp-block-pullquote__citation, 210 | .wp-block-pullquote cite, 211 | .wp-block-pullquote footer { 212 | font-size: 14px; 213 | text-transform: none; 214 | } 215 | 216 | /* Table */ 217 | 218 | .wp-block-table { 219 | border-bottom: 1px solid #ededed; 220 | border-collapse: collapse; 221 | border-spacing: 0; 222 | font-size: 14px; 223 | line-height: 2; 224 | margin: 0 0 20px; 225 | width: 100%; 226 | } 227 | 228 | .wp-block-table th { 229 | border: 0; 230 | font-weight: bold; 231 | padding: 6px 10px 6px 0; 232 | text-transform: uppercase; 233 | } 234 | 235 | .wp-block-table td { 236 | border: 0; 237 | border-top: 1px solid #ededed; 238 | padding: 6px 10px 6px 0; 239 | } 240 | 241 | /*-------------------------------------------------------------- 242 | 4.0 Blocks - Layout Elements 243 | --------------------------------------------------------------*/ 244 | 245 | /* Buttons */ 246 | 247 | .wp-block-button .wp-block-button__link { 248 | border: 1px solid #d2d2d2; 249 | font-family: inherit; 250 | font-size: 11px; 251 | font-size: 0.785714286rem; 252 | font-weight: normal; 253 | line-height: 1.428571429; 254 | padding: 6px 10px; 255 | padding: 0.428571429rem 0.714285714rem; 256 | } 257 | 258 | .entry-content .wp-block-button__link, 259 | .entry-content .wp-block-button__link:visited { 260 | background-color: #e6e6e6; 261 | color: #7c7c7c; 262 | } 263 | 264 | .wp-block-button.is-style-outline .wp-block-button__link, 265 | .wp-block-button.is-style-outline .wp-block-button__link:visited { 266 | background-color: inherit; 267 | border-color: inherit; 268 | } 269 | 270 | .entry-content .wp-block-button__link:hover, 271 | .entry-content .wp-block-button__link:visited:hover, 272 | .entry-content .wp-block-button__link:focus { 273 | background-color: #ebebeb; 274 | color: #5e5e5e; 275 | } 276 | 277 | .entry-content .wp-block-button__link:active { 278 | background-color: #e1e1e1; 279 | color: #757575; 280 | } 281 | 282 | .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) { 283 | background-repeat: repeat-x; 284 | background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6); 285 | background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6); 286 | background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6); 287 | background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6); 288 | background-image: linear-gradient(top, #f4f4f4, #e6e6e6); 289 | } 290 | 291 | .wp-block-button__link:not(.has-text-color) { 292 | box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1); 293 | } 294 | 295 | .wp-block-button__link:not(.has-background):hover, 296 | .wp-block-button__link:not(.has-background):focus { 297 | background-image: -moz-linear-gradient(top, #f9f9f9, #ebebeb); 298 | background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb); 299 | background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb); 300 | background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb); 301 | background-image: linear-gradient(top, #f9f9f9, #ebebeb); 302 | background-repeat: repeat-x; 303 | } 304 | 305 | .wp-block-button__link:not(.has-background):active { 306 | background-image: -moz-linear-gradient(top, #ebebeb, #e1e1e1); 307 | background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1); 308 | background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1); 309 | background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1); 310 | background-image: linear-gradient(top, #ebebeb, #e1e1e1); 311 | background-repeat: repeat-x; 312 | border-color: transparent; 313 | } 314 | 315 | .wp-block-button__link:not(.has-text-color):active { 316 | box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4; 317 | } 318 | 319 | /* Separator */ 320 | 321 | .wp-block-separator { 322 | border: 0; 323 | } 324 | 325 | /* Media & Text */ 326 | 327 | .wp-block-media-text { 328 | margin-bottom: 24px; 329 | margin-bottom: 1.714285714rem; 330 | } 331 | 332 | .wp-block-media-text *:last-child { 333 | margin-bottom: 0; 334 | } 335 | 336 | /*-------------------------------------------------------------- 337 | 5.0 Blocks - Widgets 338 | --------------------------------------------------------------*/ 339 | 340 | /* Archives, Categories & Latest Posts */ 341 | 342 | .wp-block-archives.aligncenter, 343 | .wp-block-categories.aligncenter, 344 | .wp-block-latest-posts.aligncenter { 345 | list-style-position: inside; 346 | text-align: center; 347 | } 348 | 349 | /* Latest Comments */ 350 | 351 | .wp-block-latest-comments { 352 | margin: 0; 353 | padding: 0; 354 | } 355 | 356 | .wp-block-latest-comments .avatar, 357 | .wp-block-latest-comments__comment-avatar { 358 | border-radius: 0; 359 | box-shadow: none; 360 | } 361 | 362 | .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt, 363 | .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta { 364 | margin-left: 60px; 365 | } 366 | 367 | .wp-block-latest-comments__comment, 368 | .wp-block-latest-comments__comment-excerpt, 369 | .wp-block-latest-comments__comment-excerpt p { 370 | font-size: 14px; 371 | } 372 | 373 | .wp-block-latest-comments__comment-excerpt p:last-child { 374 | margin-bottom: 0; 375 | } 376 | 377 | .wp-block-latest-comments__comment-date { 378 | color: #5e5e5e; 379 | } 380 | 381 | .wp-block-latest-comments .wp-block-latest-comments__comment { 382 | margin: 0; 383 | padding: 24px 0; 384 | padding: 1.714285714rem 0 0; 385 | } 386 | 387 | .wp-block-latest-comments article { 388 | margin-bottom: 0; 389 | } 390 | 391 | /*-------------------------------------------------------------- 392 | 6.0 Blocks - Colors 393 | --------------------------------------------------------------*/ 394 | 395 | .entry-content .has-blue-color, 396 | .entry-content .has-blue-color:visited { 397 | color: #21759b; 398 | } 399 | 400 | .entry-content .has-blue-background-color, 401 | .entry-content .has-blue-background-color:visited { 402 | background-color: #21759b; 403 | } 404 | 405 | .entry-content .has-dark-gray-color, 406 | .entry-content .has-dark-gray-color:visited { 407 | color: #373737; 408 | } 409 | 410 | .entry-content .has-dark-gray-background-color, 411 | .entry-content .has-dark-gray-background-color:visited { 412 | background-color: #373737; 413 | } 414 | 415 | .entry-content .has-medium-gray-color, 416 | .entry-content .has-medium-gray-color:visited { 417 | color: #9f9f9f; 418 | } 419 | 420 | .entry-content .has-medium-gray-background-color, 421 | .entry-content .has-medium-gray-background-color:visited { 422 | background-color: #9f9f9f; 423 | } 424 | 425 | .entry-content .has-light-gray-color, 426 | .entry-content .has-light-gray-color:visited { 427 | color: #e6e6e6; 428 | } 429 | 430 | .entry-content .has-light-gray-background-color, 431 | .entry-content .has-light-gray-background-color:visited { 432 | background-color: #e6e6e6; 433 | } 434 | 435 | .entry-content .has-white-color, 436 | .entry-content .has-white-color:visited { 437 | color: #fff; 438 | } 439 | 440 | .entry-content .has-white-background-color, 441 | .entry-content .has-white-background-color:visited { 442 | background-color: #fff; 443 | } 444 | -------------------------------------------------------------------------------- /css/editor-blocks.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Twenty Twelve 3 | Description: Used to style blocks in the editor. 4 | */ 5 | 6 | /*-------------------------------------------------------------- 7 | >>> TABLE OF CONTENTS: 8 | ---------------------------------------------------------------- 9 | 1.0 General Typography 10 | 2.0 General Block Styles 11 | 3.0 Blocks - Common Blocks 12 | 4.0 Blocks - Formatting 13 | 5.0 Blocks - Layout Elements 14 | 6.0 Blocks - Widgets 15 | --------------------------------------------------------------*/ 16 | 17 | /*-------------------------------------------------------------- 18 | 1.0 General Typography 19 | --------------------------------------------------------------*/ 20 | 21 | .edit-post-visual-editor .editor-block-list__block, 22 | .edit-post-visual-editor .editor-block-list__block p, 23 | .editor-default-block-appender textarea.editor-default-block-appender__content { 24 | font-size: 14px; 25 | } 26 | 27 | .editor-default-block-appender textarea.editor-default-block-appender__content { 28 | font-family: "Open Sans", Helvetica, Arial, sans-serif; 29 | } 30 | 31 | .edit-post-visual-editor .editor-block-list__block { 32 | color: #444; 33 | } 34 | 35 | .editor-post-title__block .editor-post-title__input { 36 | font-family: "Open Sans", Helvetica, Arial, sans-serif; 37 | font-size: 20px; 38 | font-weight: 400; 39 | } 40 | 41 | @media screen and (min-width: 600px) { 42 | .editor-post-title__block .editor-post-title__input { 43 | font-size: 22px; 44 | } 45 | } 46 | 47 | .wp-block-freeform.block-library-rich-text__tinymce h1 { 48 | font-size: 21px; 49 | } 50 | 51 | .wp-block-freeform.block-library-rich-text__tinymce h2 { 52 | font-size: 18px; 53 | } 54 | 55 | .wp-block-freeform.block-library-rich-text__tinymce h3 { 56 | font-size: 16px; 57 | } 58 | 59 | .wp-block-freeform.block-library-rich-text__tinymce h4 { 60 | font-size: 14px; 61 | } 62 | 63 | .wp-block-freeform.block-library-rich-text__tinymce h5 { 64 | font-size: 13px; 65 | } 66 | 67 | .wp-block-freeform.block-library-rich-text__tinymce h6 { 68 | font-size: 12px; 69 | } 70 | 71 | /*-------------------------------------------------------------- 72 | 2.0 General Block Styles 73 | --------------------------------------------------------------*/ 74 | 75 | /* Main column width */ 76 | 77 | .wp-block { 78 | max-width: 655px; /* 625px + 30px for padding */ 79 | } 80 | 81 | /* Link styles */ 82 | 83 | .edit-post-visual-editor a, 84 | .editor-block-list__block a, 85 | .wp-block-freeform.block-library-rich-text__tinymce a { 86 | color: #21759b; 87 | } 88 | 89 | /* List styles */ 90 | 91 | .wp-block-freeform.block-library-rich-text__tinymce ol, 92 | .wp-block-freeform.block-library-rich-text__tinymce ul:not(.wp-block-gallery), 93 | .block-library-list ol.editor-rich-text__tinymce, 94 | .block-library-list ul.editor-rich-text__tinymce:not(.wp-block-gallery) { 95 | padding-left: 0; 96 | padding-right: 0; 97 | } 98 | 99 | /* Quote styles */ 100 | 101 | .wp-block-freeform.block-library-rich-text__tinymce blockquote { 102 | border: 0; 103 | font-style: italic; 104 | padding: 24px; 105 | } 106 | 107 | /* Table styles */ 108 | 109 | .wp-block-freeform.block-library-rich-text__tinymce th { 110 | font-size: 11px; 111 | } 112 | 113 | .wp-block-freeform.block-library-rich-text__tinymce td { 114 | font-size: 12px; 115 | } 116 | 117 | .wp-block-freeform.block-library-rich-text__tinymce th, 118 | .wp-block-freeform.block-library-rich-text__tinymce td { 119 | padding-left: 0; 120 | padding-right: 0; 121 | } 122 | 123 | .rtl .wp-block-freeform.block-library-rich-text__tinymce th, 124 | .rtl .wp-block-freeform.block-library-rich-text__tinymce td { 125 | text-align: right; 126 | } 127 | 128 | /* Code styles */ 129 | 130 | .wp-block-freeform.block-library-rich-text__tinymce code { 131 | background-color: transparent; 132 | font-size: 12px; 133 | } 134 | 135 | /* Pre styles */ 136 | 137 | .wp-block-freeform.block-library-rich-text__tinymce pre { 138 | font-size: 12px; 139 | } 140 | 141 | /* Captions */ 142 | 143 | [class^="wp-block-"] figcaption, 144 | [class^="wp-block-"] figcaption.editor-rich-text__tinymce.mce-content-body { 145 | color: #757575; 146 | font-size: 12px; 147 | line-height: 2; 148 | font-style: italic; 149 | text-align: left; 150 | } 151 | 152 | .rtl [class^="wp-block-"] figcaption, 153 | .rtl [class^="wp-block-"] figcaption.editor-rich-text__tinymce.mce-content-body { 154 | text-align: right; 155 | } 156 | 157 | /* Definition Lists */ 158 | 159 | .wp-block-freeform.block-library-rich-text__tinymce dt { 160 | margin-bottom: 0; 161 | } 162 | 163 | /*-------------------------------------------------------------- 164 | 3.0 Blocks - Common Blocks 165 | --------------------------------------------------------------*/ 166 | 167 | /* Paragraph */ 168 | 169 | p.has-drop-cap:not(:focus)::first-letter { 170 | font-size: 5em; 171 | margin-top: 0.1em; 172 | } 173 | 174 | /* Image */ 175 | 176 | .wp-block-image { 177 | margin-left: 0; 178 | margin-right: 0; 179 | } 180 | 181 | /* Gallery */ 182 | 183 | .wp-block-gallery { 184 | margin-bottom: 24px; 185 | } 186 | 187 | .wp-block-gallery figcaption, 188 | .wp-block-gallery figcaption.editor-rich-text__tinymce.mce-content-body { 189 | color: #fff; 190 | text-align: center; 191 | } 192 | 193 | /* Quote */ 194 | 195 | .wp-block-quote, 196 | .wp-block-quote:not(.is-large):not(.is-style-large) { 197 | padding: 24px; 198 | } 199 | 200 | .wp-block-quote p { 201 | font-style: italic; 202 | } 203 | 204 | .wp-block-quote:not(.is-large):not(.is-style-large) { 205 | border: 0; 206 | } 207 | 208 | .wp-block-quote.is-large p, 209 | .wp-block-quote.is-style-large p { 210 | font-size: 20px; 211 | } 212 | 213 | .wp-block-quote .wp-block-quote__citation { 214 | color: inherit; 215 | font-style: italic; 216 | } 217 | 218 | .wp-block-quote.is-large .wp-block-quote__citation, 219 | .wp-block-quote.is-style-large .wp-block-quote__citation { 220 | font-size: 18px; 221 | } 222 | 223 | /* Cover */ 224 | 225 | .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p, 226 | .edit-post-visual-editor .editor-block-list__block .wp-block-cover p { 227 | font-size: 28px; 228 | } 229 | 230 | /* File */ 231 | 232 | .wp-block-file .wp-block-file__textlink { 233 | color: #21759b; 234 | text-decoration: underline; 235 | } 236 | 237 | .wp-block-file .wp-block-file__button { 238 | background-color: #e6e6e6; 239 | background-repeat: repeat-x; 240 | background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6); 241 | background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6); 242 | background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6); 243 | background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6); 244 | background-image: linear-gradient(top, #f4f4f4, #e6e6e6); 245 | border: 1px solid #d2d2d2; 246 | border-radius: 3px; 247 | box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1); 248 | color: #7c7c7c; 249 | font-family: inherit; 250 | font-size: 11px; 251 | font-weight: normal; 252 | line-height: 1.428571429; 253 | padding: 6px 10px; 254 | } 255 | 256 | /*-------------------------------------------------------------- 257 | 4.0 Blocks - Formatting 258 | --------------------------------------------------------------*/ 259 | 260 | /* Verse */ 261 | 262 | .editor-block-list__block .wp-block-verse pre { 263 | font-size: 12px; 264 | } 265 | 266 | /* Code */ 267 | 268 | .wp-block-code { 269 | border: 0; 270 | font-size: 12px; 271 | line-height: 2; 272 | padding: 0; 273 | } 274 | 275 | .wp-block-html .CodeMirror-sizer { 276 | line-height: 1.7; 277 | } 278 | 279 | /* Preformatted */ 280 | 281 | .editor-block-list__block .wp-block-preformatted pre { 282 | font-size: 12px; 283 | } 284 | 285 | /* Pullquote */ 286 | 287 | .wp-block-pullquote { 288 | font-style: italic; 289 | } 290 | 291 | .edit-post-visual-editor .wp-block-pullquote { 292 | margin: 0; 293 | } 294 | 295 | .wp-block-pullquote .wp-block-pullquote__citation, 296 | .wp-block-pullquote cite { 297 | font-size: 14px; 298 | text-transform: none; 299 | } 300 | 301 | /* Table */ 302 | 303 | .wp-block-table { 304 | border-bottom: 1px solid #ededed; 305 | border-collapse: collapse; 306 | border-spacing: 0; 307 | font-size: 14px; 308 | line-height: 2; 309 | margin: 0 0 20px; 310 | width: 100%; 311 | } 312 | 313 | .editor-block-list__block .wp-block-table th { 314 | border: 0; 315 | font-size: 11px; 316 | font-weight: bold; 317 | text-transform: uppercase; 318 | } 319 | 320 | .editor-block-list__block .wp-block-table td { 321 | border: 0; 322 | border-top: 1px solid #ededed; 323 | font-size: 12px; 324 | padding: 0; 325 | } 326 | 327 | .wp-block-table__cell-content { 328 | padding: 6px 10px 6px 0; 329 | } 330 | 331 | /*-------------------------------------------------------------- 332 | 5.0 Blocks - Layout Elements 333 | --------------------------------------------------------------*/ 334 | 335 | /* Buttons */ 336 | 337 | .wp-block-button__link { 338 | background-color: #e6e6e6; 339 | color: #7c7c7c; 340 | } 341 | 342 | .wp-block-button .wp-block-button__link { 343 | border: 1px solid #d2d2d2; 344 | font-family: inherit; 345 | font-size: 11px; 346 | font-weight: normal; 347 | line-height: 1.428571429; 348 | padding: 6px 10px; 349 | } 350 | 351 | .wp-block-button .editor-rich-text__tinymce.mce-content-body { 352 | line-height: 1.428571429; 353 | } 354 | 355 | .wp-block-button__link:not(.has-text-color) { 356 | box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1); 357 | } 358 | 359 | .wp-block-button.is-style-outline .wp-block-button__link { 360 | background-color: inherit; 361 | border-color: inherit; 362 | } 363 | 364 | .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) { 365 | background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6); 366 | background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6); 367 | background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6); 368 | background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6); 369 | background-image: linear-gradient(top, #f4f4f4, #e6e6e6); 370 | background-repeat: repeat-x; 371 | } 372 | 373 | /* Separator */ 374 | 375 | .editor-block-list__block hr.wp-block-separator { 376 | margin-left: auto; 377 | margin-right: auto; 378 | } 379 | 380 | /* Media & Text */ 381 | 382 | .wp-block-media-text *:last-child { 383 | margin-bottom: 0; 384 | } 385 | 386 | /*-------------------------------------------------------------- 387 | 6.0 Blocks - Widgets 388 | --------------------------------------------------------------*/ 389 | 390 | /* Archives, Categories & Latest Posts */ 391 | 392 | [data-align="center"] .wp-block-archives ul, 393 | [data-align="center"] .wp-block-categories ul, 394 | [data-align="center"] .wp-block-latest-posts ul { 395 | list-style-position: inside; 396 | } 397 | 398 | /* Archives */ 399 | 400 | .editor-block-list__block ul.wp-block-archives { 401 | padding-left: 0; 402 | } 403 | 404 | /* Categories */ 405 | 406 | .editor-block-list__block .wp-block-categories ul { 407 | padding-left: 0; 408 | } 409 | 410 | /* Latest Comments */ 411 | 412 | .editor-block-list__block .wp-block-latest-comments { 413 | margin: 0; 414 | padding: 0; 415 | } 416 | 417 | .wp-block-latest-comments .avatar, 418 | .wp-block-latest-comments__comment-avatar { 419 | border-radius: 0; 420 | box-shadow: none; 421 | } 422 | 423 | .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt, 424 | .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta { 425 | margin-left: 60px; 426 | } 427 | 428 | .wp-block-latest-comments__comment, 429 | .wp-block-latest-comments__comment-excerpt, 430 | .wp-block-latest-comments__comment-excerpt p { 431 | font-size: 14px; 432 | } 433 | 434 | .wp-block-latest-comments__comment-excerpt p:last-child { 435 | margin-bottom: 0; 436 | } 437 | 438 | .wp-block-latest-comments__comment-date { 439 | color: #5e5e5e; 440 | } 441 | 442 | .wp-block-latest-comments .wp-block-latest-comments__comment { 443 | margin: 0; 444 | padding: 24px 0; 445 | } 446 | 447 | .wp-block-latest-comments article { 448 | border-bottom: 4px double #ededed; 449 | padding-bottom: 2em; 450 | } 451 | 452 | /* Latest Posts */ 453 | 454 | .editor-block-list__block .wp-block-latest-posts { 455 | padding-left: 0; 456 | padding-right: 0; 457 | } 458 | -------------------------------------------------------------------------------- /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); 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.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 | margin: 0; 108 | padding: 0; 109 | position: absolute; 110 | top: 100%; 111 | z-index: 1; 112 | height: 1px; 113 | width: 1px; 114 | overflow: hidden; 115 | clip: rect(1px, 1px, 1px, 1px); 116 | } 117 | .ie7 .main-navigation li ul { 118 | clip: inherit; 119 | display: none; 120 | left: 0; 121 | overflow: visible; 122 | } 123 | .main-navigation li ul ul, 124 | .ie7 .main-navigation li ul ul { 125 | top: 0; 126 | left: 100%; 127 | } 128 | .main-navigation ul li:hover > ul, 129 | .main-navigation ul li:focus > ul, 130 | .main-navigation .focus > ul { 131 | border-left: 0; 132 | clip: inherit; 133 | overflow: inherit; 134 | height: inherit; 135 | width: inherit; 136 | } 137 | .ie7 .main-navigation ul li:hover > ul, 138 | .ie7 .main-navigation ul li:focus > ul { 139 | display: block; 140 | } 141 | .main-navigation li ul li a { 142 | background: #efefef; 143 | border-bottom: 1px solid #ededed; 144 | display: block; 145 | font-size: 11px; 146 | line-height: 2.181818182; 147 | padding: 8px 10px; 148 | width: 180px; 149 | } 150 | .main-navigation li ul li a:hover { 151 | background: #e3e3e3; 152 | color: #444; 153 | } 154 | .main-navigation .current-menu-item > a, 155 | .main-navigation .current-menu-ancestor > a, 156 | .main-navigation .current_page_item > a, 157 | .main-navigation .current_page_ancestor > a { 158 | color: #636363; 159 | font-weight: bold; 160 | } 161 | .main-navigation .menu-toggle { 162 | display: none; 163 | } 164 | .entry-header .entry-title { 165 | font-size: 22px; 166 | } 167 | #respond form input[type="text"] { 168 | width: 46.333333333%; 169 | } 170 | #respond form textarea.blog-textarea { 171 | width: 79.666666667%; 172 | } 173 | .template-front-page .site-content, 174 | .template-front-page article { 175 | overflow: hidden; 176 | } 177 | .template-front-page.has-post-thumbnail article { 178 | float: left; 179 | width: 47.916666667%; 180 | } 181 | .entry-page-image { 182 | float: right; 183 | margin-bottom: 0; 184 | width: 47.916666667%; 185 | } 186 | /* IE Front Page Template Widget fix */ 187 | .template-front-page .widget-area { 188 | clear: both; 189 | } 190 | .template-front-page .widget { 191 | width: 100% !important; 192 | border: none; 193 | } 194 | .template-front-page .widget-area .widget, 195 | .template-front-page .first.front-widgets, 196 | .template-front-page.two-sidebars .widget-area .front-widgets { 197 | float: left; 198 | margin-bottom: 24px; 199 | width: 51.875%; 200 | } 201 | .template-front-page .second.front-widgets, 202 | .template-front-page .widget-area .widget:nth-child(odd) { 203 | clear: right; 204 | } 205 | .template-front-page .first.front-widgets, 206 | .template-front-page .second.front-widgets, 207 | .template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets { 208 | float: right; 209 | margin: 0 0 24px; 210 | width: 39.0625%; 211 | } 212 | .template-front-page.two-sidebars .widget, 213 | .template-front-page.two-sidebars .widget:nth-child(even) { 214 | float: none; 215 | width: auto; 216 | } 217 | /* add input font for ul { 238 | text-align: right; 239 | } 240 | .rtl .main-navigation ul li ul li, 241 | .rtl .main-navigation ul li ul li ul li { 242 | margin-left: 40px; 243 | margin-right: auto; 244 | } 245 | .rtl .main-navigation li ul ul { 246 | position: absolute; 247 | bottom: 0; 248 | right: 100%; 249 | z-index: 1; 250 | } 251 | .ie7 .rtl .main-navigation li ul ul { 252 | position: absolute; 253 | bottom: 0; 254 | right: 100%; 255 | z-index: 1; 256 | } 257 | .ie7 .rtl .main-navigation ul li { 258 | z-index: 99; 259 | } 260 | .ie7 .rtl .main-navigation li ul { 261 | position: absolute; 262 | bottom: 100%; 263 | right: 0; 264 | z-index: 1; 265 | } 266 | .ie7 .rtl .main-navigation li { 267 | margin-right: auto; 268 | margin-left: 40px; 269 | } 270 | .ie7 .rtl .main-navigation li ul ul ul { 271 | position: relative; 272 | z-index: 1; 273 | } -------------------------------------------------------------------------------- /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.mce-wp-nextpage { 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 | } 343 | -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | __( 'Blue', 'twentytwelve' ), 73 | 'slug' => 'blue', 74 | 'color' => '#21759b', 75 | ), 76 | array( 77 | 'name' => __( 'Dark Gray', 'twentytwelve' ), 78 | 'slug' => 'dark-gray', 79 | 'color' => '#444', 80 | ), 81 | array( 82 | 'name' => __( 'Medium Gray', 'twentytwelve' ), 83 | 'slug' => 'medium-gray', 84 | 'color' => '#9f9f9f', 85 | ), 86 | array( 87 | 'name' => __( 'Light Gray', 'twentytwelve' ), 88 | 'slug' => 'light-gray', 89 | 'color' => '#e6e6e6', 90 | ), 91 | array( 92 | 'name' => __( 'White', 'twentytwelve' ), 93 | 'slug' => 'white', 94 | 'color' => '#fff', 95 | ), 96 | ) 97 | ); 98 | 99 | // Adds RSS feed links to for posts and comments. 100 | add_theme_support( 'automatic-feed-links' ); 101 | 102 | // This theme supports a variety of post formats. 103 | add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) ); 104 | 105 | // This theme uses wp_nav_menu() in one location. 106 | register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) ); 107 | 108 | /* 109 | * This theme supports custom background color and image, 110 | * and here we also set up the default background color. 111 | */ 112 | add_theme_support( 113 | 'custom-background', 114 | array( 115 | 'default-color' => 'e6e6e6', 116 | ) 117 | ); 118 | 119 | // This theme uses a custom image size for featured images, displayed on "standard" posts. 120 | add_theme_support( 'post-thumbnails' ); 121 | set_post_thumbnail_size( 624, 9999 ); // Unlimited height, soft crop 122 | 123 | // Indicate widget sidebars can use selective refresh in the Customizer. 124 | add_theme_support( 'customize-selective-refresh-widgets' ); 125 | } 126 | add_action( 'after_setup_theme', 'twentytwelve_setup' ); 127 | 128 | /** 129 | * Add support for a custom header image. 130 | */ 131 | require( get_template_directory() . '/inc/custom-header.php' ); 132 | 133 | /** 134 | * Return the Google font stylesheet URL if available. 135 | * 136 | * The use of Open Sans by default is localized. For languages that use 137 | * characters not supported by the font, the font can be disabled. 138 | * 139 | * @since Twenty Twelve 1.2 140 | * 141 | * @return string Font stylesheet or empty string if disabled. 142 | */ 143 | function twentytwelve_get_font_url() { 144 | $font_url = ''; 145 | 146 | /* translators: If there are characters in your language that are not supported 147 | * by Open Sans, translate this to 'off'. Do not translate into your own language. 148 | */ 149 | if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) { 150 | $subsets = 'latin,latin-ext'; 151 | 152 | /* translators: To add an additional Open Sans character subset specific to your language, 153 | * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language. 154 | */ 155 | $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' ); 156 | 157 | if ( 'cyrillic' == $subset ) { 158 | $subsets .= ',cyrillic,cyrillic-ext'; 159 | } elseif ( 'greek' == $subset ) { 160 | $subsets .= ',greek,greek-ext'; 161 | } elseif ( 'vietnamese' == $subset ) { 162 | $subsets .= ',vietnamese'; 163 | } 164 | 165 | $query_args = array( 166 | 'family' => 'Open+Sans:400italic,700italic,400,700', 167 | 'subset' => $subsets, 168 | ); 169 | $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); 170 | } 171 | 172 | return $font_url; 173 | } 174 | 175 | /** 176 | * Enqueue scripts and styles for front end. 177 | * 178 | * @since Twenty Twelve 1.0 179 | */ 180 | function twentytwelve_scripts_styles() { 181 | global $wp_styles; 182 | 183 | /* 184 | * Adds JavaScript to pages with the comment form to support 185 | * sites with threaded comments (when in use). 186 | */ 187 | if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 188 | wp_enqueue_script( 'comment-reply' ); 189 | } 190 | 191 | // Adds JavaScript for handling the navigation menu hide-and-show behavior. 192 | wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20140711', true ); 193 | 194 | $font_url = twentytwelve_get_font_url(); 195 | if ( ! empty( $font_url ) ) { 196 | wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null ); 197 | } 198 | 199 | // Loads our main stylesheet. 200 | wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); 201 | 202 | // Theme block stylesheet. 203 | wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20181230' ); 204 | 205 | // Loads the Internet Explorer specific stylesheet. 206 | wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' ); 207 | $wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' ); 208 | } 209 | add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' ); 210 | 211 | /** 212 | * Enqueue styles for the block-based editor. 213 | * 214 | * @since Twenty Twelve 2.6 215 | */ 216 | function twentytwelve_block_editor_styles() { 217 | // Block styles. 218 | wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' ); 219 | // Add custom fonts. 220 | wp_enqueue_style( 'twentytwelve-fonts', twentytwelve_get_font_url(), array(), null ); 221 | } 222 | add_action( 'enqueue_block_editor_assets', 'twentytwelve_block_editor_styles' ); 223 | 224 | /** 225 | * Add preconnect for Google Fonts. 226 | * 227 | * @since Twenty Twelve 2.2 228 | * 229 | * @param array $urls URLs to print for resource hints. 230 | * @param string $relation_type The relation type the URLs are printed. 231 | * @return array URLs to print for resource hints. 232 | */ 233 | function twentytwelve_resource_hints( $urls, $relation_type ) { 234 | if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) && 'preconnect' === $relation_type ) { 235 | if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '>=' ) ) { 236 | $urls[] = array( 237 | 'href' => 'https://fonts.gstatic.com', 238 | 'crossorigin', 239 | ); 240 | } else { 241 | $urls[] = 'https://fonts.gstatic.com'; 242 | } 243 | } 244 | 245 | return $urls; 246 | } 247 | add_filter( 'wp_resource_hints', 'twentytwelve_resource_hints', 10, 2 ); 248 | 249 | /** 250 | * Filter TinyMCE CSS path to include Google Fonts. 251 | * 252 | * Adds additional stylesheets to the TinyMCE editor if needed. 253 | * 254 | * @uses twentytwelve_get_font_url() To get the Google Font stylesheet URL. 255 | * 256 | * @since Twenty Twelve 1.2 257 | * 258 | * @param string $mce_css CSS path to load in TinyMCE. 259 | * @return string Filtered CSS path. 260 | */ 261 | function twentytwelve_mce_css( $mce_css ) { 262 | $font_url = twentytwelve_get_font_url(); 263 | 264 | if ( empty( $font_url ) ) { 265 | return $mce_css; 266 | } 267 | 268 | if ( ! empty( $mce_css ) ) { 269 | $mce_css .= ','; 270 | } 271 | 272 | $mce_css .= esc_url_raw( str_replace( ',', '%2C', $font_url ) ); 273 | 274 | return $mce_css; 275 | } 276 | add_filter( 'mce_css', 'twentytwelve_mce_css' ); 277 | 278 | /** 279 | * Filter the page title. 280 | * 281 | * Creates a nicely formatted and more specific title element text 282 | * for output in head of document, based on current view. 283 | * 284 | * @since Twenty Twelve 1.0 285 | * 286 | * @param string $title Default title text for current view. 287 | * @param string $sep Optional separator. 288 | * @return string Filtered title. 289 | */ 290 | function twentytwelve_wp_title( $title, $sep ) { 291 | global $paged, $page; 292 | 293 | if ( is_feed() ) { 294 | return $title; 295 | } 296 | 297 | // Add the site name. 298 | $title .= get_bloginfo( 'name', 'display' ); 299 | 300 | // Add the site description for the home/front page. 301 | $site_description = get_bloginfo( 'description', 'display' ); 302 | if ( $site_description && ( is_home() || is_front_page() ) ) { 303 | $title = "$title $sep $site_description"; 304 | } 305 | 306 | // Add a page number if necessary. 307 | if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { 308 | $title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) ); 309 | } 310 | 311 | return $title; 312 | } 313 | add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 ); 314 | 315 | /** 316 | * Filter the page menu arguments. 317 | * 318 | * Makes our wp_nav_menu() fallback -- wp_page_menu() -- show a home link. 319 | * 320 | * @since Twenty Twelve 1.0 321 | */ 322 | function twentytwelve_page_menu_args( $args ) { 323 | if ( ! isset( $args['show_home'] ) ) { 324 | $args['show_home'] = true; 325 | } 326 | return $args; 327 | } 328 | add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' ); 329 | 330 | /** 331 | * Register sidebars. 332 | * 333 | * Registers our main widget area and the front page widget areas. 334 | * 335 | * @since Twenty Twelve 1.0 336 | */ 337 | function twentytwelve_widgets_init() { 338 | register_sidebar( 339 | array( 340 | 'name' => __( 'Main Sidebar', 'twentytwelve' ), 341 | 'id' => 'sidebar-1', 342 | 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ), 343 | 'before_widget' => '', 345 | 'before_title' => '

', 346 | 'after_title' => '

', 347 | ) 348 | ); 349 | 350 | register_sidebar( 351 | array( 352 | 'name' => __( 'First Front Page Widget Area', 'twentytwelve' ), 353 | 'id' => 'sidebar-2', 354 | 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), 355 | 'before_widget' => '', 357 | 'before_title' => '

', 358 | 'after_title' => '

', 359 | ) 360 | ); 361 | 362 | register_sidebar( 363 | array( 364 | 'name' => __( 'Second Front Page Widget Area', 'twentytwelve' ), 365 | 'id' => 'sidebar-3', 366 | 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), 367 | 'before_widget' => '', 369 | 'before_title' => '

', 370 | 'after_title' => '

', 371 | ) 372 | ); 373 | } 374 | add_action( 'widgets_init', 'twentytwelve_widgets_init' ); 375 | 376 | if ( ! function_exists( 'twentytwelve_content_nav' ) ) : 377 | /** 378 | * Displays navigation to next/previous pages when applicable. 379 | * 380 | * @since Twenty Twelve 1.0 381 | */ 382 | function twentytwelve_content_nav( $html_id ) { 383 | global $wp_query; 384 | 385 | if ( $wp_query->max_num_pages > 1 ) : ?> 386 | 391 | comment_type ) : 410 | case 'pingback': 411 | case 'trackback': 412 | // Display trackbacks differently than normal comments. 413 | ?> 414 |
  • id="comment-"> 415 |

    ', '' ); ?>

    416 | 422 |
  • id="li-comment-"> 423 |
    424 |
    425 | %1$s %2$s', 429 | get_comment_author_link(), 430 | // If current post author is also comment author, make it known visually. 431 | ( $comment->user_id === $post->post_author ) ? '' . __( 'Post author', 'twentytwelve' ) . '' : '' 432 | ); 433 | printf( 434 | '', 435 | esc_url( get_comment_link( $comment->comment_ID ) ), 436 | get_comment_time( 'c' ), 437 | /* translators: 1: date, 2: time */ 438 | sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() ) 439 | ); 440 | ?> 441 |
    442 | 443 | comment_approved ) : ?> 444 |

    445 | 446 | 447 |
    448 | 449 | ', '

    ' ); ?> 450 |
    451 | 452 |
    453 | __( 'Reply', 'twentytwelve' ), 459 | 'after' => ' ', 460 | 'depth' => $depth, 461 | 'max_depth' => $args['max_depth'], 462 | ) 463 | ) 464 | ); 465 | ?> 466 |
    467 |
    468 | ', 493 | esc_url( get_permalink() ), 494 | esc_attr( get_the_time() ), 495 | esc_attr( get_the_date( 'c' ) ), 496 | esc_html( get_the_date() ) 497 | ); 498 | 499 | $author = sprintf( 500 | '', 501 | esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 502 | esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ), 503 | get_the_author() 504 | ); 505 | 506 | // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. 507 | if ( $tag_list ) { 508 | $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s by %4$s.', 'twentytwelve' ); 509 | } elseif ( $categories_list ) { 510 | $utility_text = __( 'This entry was posted in %1$s on %3$s by %4$s.', 'twentytwelve' ); 511 | } else { 512 | $utility_text = __( 'This entry was posted on %3$s by %4$s.', 'twentytwelve' ); 513 | } 514 | 515 | printf( 516 | $utility_text, 517 | $categories_list, 518 | $tag_list, 519 | $date, 520 | $author 521 | ); 522 | } 523 | endif; 524 | 525 | /** 526 | * Extend the default WordPress body classes. 527 | * 528 | * Extends the default WordPress body class to denote: 529 | * 1. Using a full-width layout, when no active widgets in the sidebar 530 | * or full-width template. 531 | * 2. Front Page template: thumbnail in use and number of sidebars for 532 | * widget areas. 533 | * 3. White or empty background color to change the layout and spacing. 534 | * 4. Custom fonts enabled. 535 | * 5. Single or multiple authors. 536 | * 537 | * @since Twenty Twelve 1.0 538 | * 539 | * @param array $classes Existing class values. 540 | * @return array Filtered class values. 541 | */ 542 | function twentytwelve_body_class( $classes ) { 543 | $background_color = get_background_color(); 544 | $background_image = get_background_image(); 545 | 546 | if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) ) { 547 | $classes[] = 'full-width'; 548 | } 549 | 550 | if ( is_page_template( 'page-templates/front-page.php' ) ) { 551 | $classes[] = 'template-front-page'; 552 | if ( has_post_thumbnail() ) { 553 | $classes[] = 'has-post-thumbnail'; 554 | } 555 | if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) ) { 556 | $classes[] = 'two-sidebars'; 557 | } 558 | } 559 | 560 | if ( empty( $background_image ) ) { 561 | if ( empty( $background_color ) ) { 562 | $classes[] = 'custom-background-empty'; 563 | } elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) { 564 | $classes[] = 'custom-background-white'; 565 | } 566 | } 567 | 568 | // Enable custom font class only if the font CSS is queued to load. 569 | if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) { 570 | $classes[] = 'custom-font-enabled'; 571 | } 572 | 573 | if ( ! is_multi_author() ) { 574 | $classes[] = 'single-author'; 575 | } 576 | 577 | return $classes; 578 | } 579 | add_filter( 'body_class', 'twentytwelve_body_class' ); 580 | 581 | /** 582 | * Adjust content width in certain contexts. 583 | * 584 | * Adjusts content_width value for full-width and single image attachment 585 | * templates, and when there are no active widgets in the sidebar. 586 | * 587 | * @since Twenty Twelve 1.0 588 | */ 589 | function twentytwelve_content_width() { 590 | if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) { 591 | global $content_width; 592 | $content_width = 960; 593 | } 594 | } 595 | add_action( 'template_redirect', 'twentytwelve_content_width' ); 596 | 597 | /** 598 | * Register postMessage support. 599 | * 600 | * Add postMessage support for site title and description for the Customizer. 601 | * 602 | * @since Twenty Twelve 1.0 603 | * 604 | * @param WP_Customize_Manager $wp_customize Customizer object. 605 | */ 606 | function twentytwelve_customize_register( $wp_customize ) { 607 | $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 608 | $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 609 | $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; 610 | 611 | if ( isset( $wp_customize->selective_refresh ) ) { 612 | $wp_customize->selective_refresh->add_partial( 613 | 'blogname', 614 | array( 615 | 'selector' => '.site-title > a', 616 | 'container_inclusive' => false, 617 | 'render_callback' => 'twentytwelve_customize_partial_blogname', 618 | ) 619 | ); 620 | $wp_customize->selective_refresh->add_partial( 621 | 'blogdescription', 622 | array( 623 | 'selector' => '.site-description', 624 | 'container_inclusive' => false, 625 | 'render_callback' => 'twentytwelve_customize_partial_blogdescription', 626 | ) 627 | ); 628 | } 629 | } 630 | add_action( 'customize_register', 'twentytwelve_customize_register' ); 631 | 632 | /** 633 | * Render the site title for the selective refresh partial. 634 | * 635 | * @since Twenty Twelve 2.0 636 | * @see twentytwelve_customize_register() 637 | * 638 | * @return void 639 | */ 640 | function twentytwelve_customize_partial_blogname() { 641 | bloginfo( 'name' ); 642 | } 643 | 644 | /** 645 | * Render the site tagline for the selective refresh partial. 646 | * 647 | * @since Twenty Twelve 2.0 648 | * @see twentytwelve_customize_register() 649 | * 650 | * @return void 651 | */ 652 | function twentytwelve_customize_partial_blogdescription() { 653 | bloginfo( 'description' ); 654 | } 655 | 656 | /** 657 | * Enqueue Javascript postMessage handlers for the Customizer. 658 | * 659 | * Binds JS handlers to make the Customizer preview reload changes asynchronously. 660 | * 661 | * @since Twenty Twelve 1.0 662 | */ 663 | function twentytwelve_customize_preview_js() { 664 | wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true ); 665 | } 666 | add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' ); 667 | 668 | 669 | /** 670 | * Modifies tag cloud widget arguments to display all tags in the same font size 671 | * and use list format for better accessibility. 672 | * 673 | * @since Twenty Twelve 2.4 674 | * 675 | * @param array $args Arguments for tag cloud widget. 676 | * @return array The filtered arguments for tag cloud widget. 677 | */ 678 | function twentytwelve_widget_tag_cloud_args( $args ) { 679 | $args['largest'] = 22; 680 | $args['smallest'] = 8; 681 | $args['unit'] = 'pt'; 682 | $args['format'] = 'list'; 683 | 684 | return $args; 685 | } 686 | add_filter( 'widget_tag_cloud_args', 'twentytwelve_widget_tag_cloud_args' ); 687 | -------------------------------------------------------------------------------- /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 | 59 | 60 |
    61 | -------------------------------------------------------------------------------- /image.php: -------------------------------------------------------------------------------- 1 | 13 | 14 |
    15 |
    16 | 17 | 21 | 22 |
    > 23 |
    24 |

    25 | 26 |
    27 | Published at %4$s × %5$s in %8$s.', 'twentytwelve' ), 31 | esc_attr( get_the_date( 'c' ) ), 32 | esc_html( get_the_date() ), 33 | esc_url( wp_get_attachment_url() ), 34 | $metadata['width'], 35 | $metadata['height'], 36 | esc_url( get_permalink( $post->post_parent ) ), 37 | esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ), 38 | get_the_title( $post->post_parent ) 39 | ); 40 | ?> 41 | ', '' ); ?> 42 |
    43 | 44 | 48 |
    49 | 50 |
    51 | 52 |
    53 |
    54 | $post->post_parent, 63 | 'post_status' => 'inherit', 64 | 'post_type' => 'attachment', 65 | 'post_mime_type' => 'image', 66 | 'order' => 'ASC', 67 | 'orderby' => 'menu_order ID', 68 | ) 69 | ) 70 | ); 71 | foreach ( $attachments as $k => $attachment ) : 72 | if ( $attachment->ID == $post->ID ) { 73 | break; 74 | } 75 | endforeach; 76 | 77 | // If there is more than 1 attachment in a gallery 78 | if ( count( $attachments ) > 1 ) : 79 | $k++; 80 | if ( isset( $attachments[ $k ] ) ) : 81 | // get the URL of the next image attachment 82 | $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); 83 | else : 84 | // or get the URL of the first image attachment 85 | $next_attachment_url = get_attachment_link( $attachments[0]->ID ); 86 | endif; 87 | else : 88 | // or, if there's only 1 image, get the URL of the image 89 | $next_attachment_url = wp_get_attachment_url(); 90 | endif; 91 | ?> 92 | 93 | ID, $attachment_size ); 106 | ?> 107 | 108 | 109 | post_excerpt ) ) : ?> 110 |
    111 | 112 |
    113 | 114 |
    115 | 116 |
    117 | 118 |
    119 | 120 | '', 125 | ) 126 | ); 127 | ?> 128 |
    129 | 130 |
    131 | 132 |
    133 | 134 | 135 | 136 | 137 | 138 |
    139 |
    140 | 141 | 142 | -------------------------------------------------------------------------------- /inc/custom-header.php: -------------------------------------------------------------------------------- 1 | '515151', 26 | 'default-image' => '', 27 | 28 | // Set height and width, with a maximum value for the width. 29 | 'height' => 250, 30 | 'width' => 960, 31 | 'max-width' => 2000, 32 | 33 | // Support flexible height and width. 34 | 'flex-height' => true, 35 | 'flex-width' => true, 36 | 37 | // Random image rotation off by default. 38 | 'random-default' => false, 39 | 40 | // Callbacks for styling the header and the admin preview. 41 | 'wp-head-callback' => 'twentytwelve_header_style', 42 | 'admin-head-callback' => 'twentytwelve_admin_header_style', 43 | 'admin-preview-callback' => 'twentytwelve_admin_header_image', 44 | ); 45 | 46 | add_theme_support( 'custom-header', $args ); 47 | } 48 | add_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' ); 49 | 50 | /** 51 | * Load our special font CSS file. 52 | * 53 | * @since Twenty Twelve 1.2 54 | */ 55 | function twentytwelve_custom_header_fonts() { 56 | $font_url = twentytwelve_get_font_url(); 57 | if ( ! empty( $font_url ) ) { 58 | wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null ); 59 | } 60 | } 61 | add_action( 'admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts' ); 62 | 63 | /** 64 | * Style the header text displayed on the blog. 65 | * 66 | * get_header_textcolor() options: 515151 is default, hide text (returns 'blank'), or any hex value. 67 | * 68 | * @since Twenty Twelve 1.0 69 | */ 70 | function twentytwelve_header_style() { 71 | $text_color = get_header_textcolor(); 72 | 73 | // If no custom options for text are set, let's bail 74 | if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) { 75 | return; 76 | } 77 | 78 | // If we get this far, we have custom styles. 79 | ?> 80 | 101 | Header admin panel. 106 | * 107 | * @since Twenty Twelve 1.0 108 | */ 109 | function twentytwelve_admin_header_style() { 110 | ?> 111 | 141 | Header admin panel. 146 | * 147 | * This callback overrides the default markup displayed there. 148 | * 149 | * @since Twenty Twelve 1.0 150 | */ 151 | function twentytwelve_admin_header_image() { 152 | $style = 'color: #' . get_header_textcolor() . ';'; 153 | if ( ! display_header_text() ) { 154 | $style = 'display: none;'; 155 | } 156 | ?> 157 |
    158 |

    159 |

    160 | 164 | 165 | 166 |
    167 | 18 | 19 |
    20 |
    21 | 22 | 23 | 24 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 |
    36 | 37 | 41 |
    42 |

    43 |
    44 | 45 |
    46 |

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

    47 |
    48 | 49 | 53 |
    54 |

    55 |
    56 | 57 |
    58 |

    59 | 60 |
    61 | 62 | 63 |
    64 | 65 | 66 | 67 |
    68 |
    69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /js/html5.js: -------------------------------------------------------------------------------- 1 | /* 2 | HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed 3 | */ 4 | (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(); 5 | 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"; 6 | 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|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|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");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| 7 | "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 dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f); 8 | if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d