├── .babelrc ├── .editorconfig ├── .gitignore ├── README.md ├── composer.json ├── css ├── editor-style.css ├── ie.css ├── ie7.css └── ie8.css ├── functions.php ├── genericons ├── COPYING.txt ├── Genericons.eot ├── Genericons.svg ├── Genericons.ttf ├── Genericons.woff ├── LICENSE.txt ├── README.md └── genericons.css ├── inc ├── customizer.php └── template-tags.php ├── index.php ├── js ├── color-scheme-control.js ├── customize-preview.js ├── functions.js ├── html5.js ├── keyboard-image-navigation.js ├── skip-link-focus-fix.js └── src │ ├── actions │ └── index.js │ ├── client.js │ ├── components │ ├── 404.jsx │ ├── App.jsx │ ├── Comments.jsx │ ├── Footer.jsx │ ├── Header.jsx │ ├── NavMenu.jsx │ ├── Post.jsx │ ├── River.jsx │ ├── Sidebar.jsx │ └── Single.jsx │ ├── includes.js │ ├── reducer.js │ └── server.js ├── package.json ├── screenshot.png ├── searchform.php ├── style.css └── webpack.config.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets" : ["es2015", "react"] 3 | } 4 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | 7 | [*.{php,js,jsx,css,scss}] 8 | end_of_line = lf 9 | insert_final_newline = true 10 | indent_style = tab 11 | indent_size = 4 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | vendor 3 | .DS_Store 4 | js/client.js 5 | js/server.js 6 | js/includes.js -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Twenty Sixteen React 2 | 3 | Twenty Sixteen React is an isomorphic WordPress theme built using [NodeifyWP](https://github.com/10up/nodeifywp). The theme executes Node.js code directly in PHP utilizing the latest JavaScript technologies: 4 | 5 | * [React.js](https://facebook.github.io/react/) 6 | * [Redux](http://redux.js.org/docs/introduction/) 7 | * [NodeifyWP](https://github.com/10up/nodeifywp/) 8 | 9 | 10 | Twenty Sixteen React is a __true isomorphic application__ within PHP. It provides all the benefits of WordPress and powerful isomorphic Node.js technologies. No separate Node.js/Express server is necessary. 11 | 12 |

13 | 14 |

15 | 16 | ## Requirements 17 | 18 | * [NodeifyWP Environment](https://github.com/10up/nodeifywp-environment) 19 | * [NodeifyWP](https://github.com/10up/nodeifywp) 20 | * [npm](https://www.npmjs.com/) 21 | 22 | ## Setup 23 | 24 | After properly setting up the [NodeifyWP environment](https://github.com/10up/nodeifywp-environment): 25 | 26 | 1. Activate the theme in WordPress 27 | 2. Within the theme directory, run the following in the command line: 28 | 29 | `npm install` 30 | 31 | 3. Enable pretty permalinks in the WordPress admin. 32 | 33 | ## License 34 | 35 | This is free software; you can redistribute it and/or modify it under the terms of the [GNU General Public License](http://www.gnu.org/licenses/gpl-2.0.html) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 36 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "10up/twentysixteenreact", 3 | "type": "wordpress-theme", 4 | "description": "Twenty Sixteen is a WordPress theme and an isomorphic React.js application using NodeifyWP.", 5 | "license": "GPLv2", 6 | "type": "wordpress-theme", 7 | "authors": [ 8 | { 9 | "name": "Taylor Lovett, 10up", 10 | "email": "taylor.lovett@10up.com" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /css/editor-style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Twenty Sixteen 3 | Description: Used to style the TinyMCE editor. 4 | */ 5 | 6 | 7 | /** 8 | * Table of Contents: 9 | * 10 | * 1.0 - Body 11 | * 2.0 - Typography 12 | * 3.0 - Elements 13 | * 4.0 - Alignment 14 | * 5.0 - Caption 15 | * 6.0 - Galleries 16 | * 7.0 - Audio / Video 17 | * 8.0 - RTL 18 | */ 19 | 20 | 21 | /** 22 | * 1.0 - Body 23 | */ 24 | 25 | body { 26 | color: #1a1a1a; 27 | font-family: Merriweather, Georgia, serif; 28 | font-size: 16px; 29 | font-weight: 400; 30 | line-height: 1.75; 31 | margin: 20px 40px; 32 | max-width: 600px; 33 | vertical-align: baseline; 34 | } 35 | 36 | body.post-type-page { 37 | max-width: 840px; 38 | } 39 | 40 | 41 | /** 42 | * 2.0 - Typography 43 | */ 44 | 45 | h1, 46 | h2, 47 | h3, 48 | h4, 49 | h5, 50 | h6 { 51 | clear: both; 52 | font-weight: 900; 53 | margin: 56px 0 28px; 54 | } 55 | 56 | h1 { 57 | font-size: 33px; 58 | line-height: 1.2727272727; 59 | } 60 | 61 | h2 { 62 | font-size: 28px; 63 | line-height: 1.25; 64 | } 65 | 66 | h3 { 67 | font-size: 23px; 68 | line-height: 1.2173913043; 69 | } 70 | 71 | h4, 72 | h5, 73 | h6 { 74 | font-size: 19px; 75 | line-height: 1.1052631579; 76 | } 77 | 78 | h4 { 79 | letter-spacing: 0.13333em; 80 | text-transform: uppercase; 81 | } 82 | 83 | h6 { 84 | font-style: italic; 85 | } 86 | 87 | h1:first-child, 88 | h2:first-child, 89 | h3:first-child, 90 | h4:first-child, 91 | h5:first-child, 92 | h6:first-child { 93 | margin-top: 0; 94 | } 95 | 96 | p { 97 | margin: 0 0 28px; 98 | } 99 | 100 | b, 101 | strong { 102 | font-weight: 700; 103 | } 104 | 105 | dfn, 106 | cite, 107 | em, 108 | i { 109 | font-style: italic; 110 | } 111 | 112 | blockquote { 113 | border-left: 4px solid #1a1a1a; 114 | color: #686868; 115 | font-size: 19px; 116 | font-style: italic; 117 | line-height: 1.4736842105; 118 | margin-bottom: 28px; 119 | overflow: hidden; 120 | padding: 0 0 0 24px; 121 | } 122 | 123 | blockquote:not(.alignleft):not(.alignright) { 124 | margin-left: -28px; 125 | } 126 | 127 | blockquote blockquote:not(.alignleft):not(.alignright) { 128 | margin-left: 0; 129 | } 130 | 131 | blockquote:before, 132 | blockquote:after { 133 | content: ""; 134 | display: table; 135 | } 136 | 137 | blockquote:after { 138 | clear: both; 139 | } 140 | 141 | blockquote > :last-child { 142 | margin-bottom: 0; 143 | } 144 | 145 | blockquote cite, 146 | blockquote small { 147 | color: #1a1a1a; 148 | font-size: 16px; 149 | line-height: 1.75; 150 | } 151 | 152 | blockquote em, 153 | blockquote i, 154 | blockquote cite { 155 | font-style: normal; 156 | } 157 | 158 | blockquote strong, 159 | blockquote b { 160 | font-weight: 400; 161 | } 162 | 163 | blockquote.alignleft, 164 | blockquote.alignright { 165 | border: 0 solid #1a1a1a; 166 | border-top-width: 4px; 167 | padding: 18px 0 0; 168 | width: -webkit-calc(50% - 14px); 169 | width: calc(50% - 14px); 170 | } 171 | 172 | address { 173 | font-style: italic; 174 | margin: 0 0 28px; 175 | } 176 | 177 | code, 178 | kbd, 179 | tt, 180 | var, 181 | samp, 182 | pre { 183 | font-family: Inconsolata, monospace; 184 | } 185 | 186 | pre { 187 | border: 1px solid #d1d1d1; 188 | font-size: 16px; 189 | line-height: 1.3125; 190 | margin: 0 0 28px; 191 | max-width: 100%; 192 | overflow: auto; 193 | padding: 14px; 194 | white-space: pre; 195 | white-space: pre-wrap; 196 | word-wrap: break-word; 197 | } 198 | 199 | code { 200 | background-color: #d1d1d1; 201 | padding: 2px 4px; 202 | } 203 | 204 | abbr[title] { 205 | border-bottom: 1px dotted #d1d1d1; 206 | cursor: help; 207 | } 208 | 209 | mark, 210 | ins { 211 | background: #007acc; 212 | color: #fff; 213 | padding: 2px 4px; 214 | text-decoration: none; 215 | } 216 | 217 | sup, 218 | sub { 219 | font-size: 75%; 220 | height: 0; 221 | line-height: 0; 222 | position: relative; 223 | vertical-align: baseline; 224 | } 225 | 226 | sub { 227 | top: -6px; 228 | } 229 | 230 | sup { 231 | bottom: -3px; 232 | } 233 | 234 | small { 235 | font-size: 80%; 236 | } 237 | 238 | big { 239 | font-size: 125%; 240 | } 241 | 242 | 243 | /** 244 | * 3.0 - Elements 245 | */ 246 | 247 | hr { 248 | background-color: #d1d1d1; 249 | border: 0; 250 | height: 1px; 251 | margin-bottom: 28px; 252 | } 253 | 254 | ul, 255 | ol { 256 | margin: 0 0 28px 0; 257 | padding: 0; 258 | } 259 | 260 | ul { 261 | list-style: disc; 262 | } 263 | 264 | ol { 265 | list-style: decimal; 266 | } 267 | 268 | li > ul, 269 | li > ol { 270 | margin-bottom: 0; 271 | } 272 | 273 | li > ul, 274 | blockquote > ul { 275 | margin-left: 20px; 276 | } 277 | 278 | li > ol, 279 | blockquote > ol { 280 | margin-left: 24px; 281 | } 282 | 283 | dl { 284 | margin: 0 0 28px; 285 | } 286 | 287 | dt { 288 | font-weight: bold; 289 | } 290 | 291 | dd { 292 | margin: 0 0 28px; 293 | } 294 | 295 | table, 296 | th, 297 | td, 298 | .mce-item-table, 299 | .mce-item-table th, 300 | .mce-item-table td { 301 | border: 1px solid #d1d1d1; 302 | } 303 | 304 | table a { 305 | color: #007acc; 306 | } 307 | 308 | table, 309 | .mce-item-table { 310 | border-collapse: separate; 311 | border-spacing: 0; 312 | border-width: 1px 0 0 1px; 313 | margin: 0 0 28px; 314 | width: 100%; 315 | } 316 | 317 | table th, 318 | .mce-item-table th, 319 | table caption { 320 | border-width: 0 1px 1px 0; 321 | font-size: 16px; 322 | font-weight: 700; 323 | padding: 7px; 324 | text-align: left; 325 | vertical-align: baseline; 326 | } 327 | 328 | table td, 329 | .mce-item-table td { 330 | border-width: 0 1px 1px 0; 331 | font-size: 16px; 332 | padding: 7px; 333 | vertical-align: baseline; 334 | } 335 | 336 | img { 337 | border: 0; 338 | height: auto; 339 | max-width: 100%; 340 | vertical-align: middle; 341 | } 342 | 343 | a img { 344 | display: block; 345 | } 346 | 347 | figure { 348 | margin: 0; 349 | } 350 | 351 | del { 352 | opacity: 0.8; 353 | } 354 | 355 | a { 356 | box-shadow: 0 1px 0 0 currentColor; 357 | color: #007acc; 358 | text-decoration: none; 359 | } 360 | 361 | fieldset { 362 | border: 1px solid #d1d1d1; 363 | margin: 0 0 28px; 364 | padding: 14px; 365 | } 366 | 367 | 368 | /** 369 | * 4.0 - Alignment 370 | */ 371 | 372 | .alignleft { 373 | float: left; 374 | margin: 6px 28px 28px 0; 375 | } 376 | 377 | .alignright { 378 | float: right; 379 | margin: 6px 0 28px 28px; 380 | } 381 | 382 | .aligncenter { 383 | clear: both; 384 | display: block; 385 | margin: 0 auto 28px; 386 | } 387 | 388 | 389 | /** 390 | * 5.0 - Caption 391 | */ 392 | 393 | .wp-caption { 394 | background: transparent; 395 | border: none; 396 | margin-bottom: 28px; 397 | max-width: 100%; 398 | padding: 0; 399 | text-align: inherit; 400 | } 401 | 402 | .wp-caption-text, 403 | .wp-caption-dd { 404 | color: #686868; 405 | font-size: 13px; 406 | font-style: italic; 407 | line-height: 1.6153846154; 408 | padding-top: 7px; 409 | } 410 | 411 | 412 | /** 413 | * 6.0 - Galleries 414 | */ 415 | 416 | .mce-content-body .wpview-wrap { 417 | margin-bottom: 28px; 418 | } 419 | 420 | .gallery { 421 | margin: 0 -1.1666667%; 422 | padding: 0; 423 | } 424 | 425 | .gallery .gallery-item { 426 | display: inline-block; 427 | max-width: 33.33%; 428 | padding: 0 1.1400652% 2.2801304%; 429 | text-align: center; 430 | vertical-align: top; 431 | width: 100%; 432 | } 433 | 434 | .gallery-columns-1 .gallery-item { 435 | max-width: 100%; 436 | } 437 | 438 | .gallery-columns-2 .gallery-item { 439 | max-width: 50%; 440 | } 441 | 442 | .gallery-columns-4 .gallery-item { 443 | max-width: 25%; 444 | } 445 | 446 | .gallery-columns-5 .gallery-item { 447 | max-width: 20%; 448 | } 449 | 450 | .gallery-columns-6 .gallery-item { 451 | max-width: 16.66%; 452 | } 453 | 454 | .gallery-columns-7 .gallery-item { 455 | max-width: 14.28%; 456 | } 457 | 458 | .gallery-columns-8 .gallery-item { 459 | max-width: 12.5%; 460 | } 461 | 462 | .gallery-columns-9 .gallery-item { 463 | max-width: 11.11%; 464 | } 465 | 466 | .gallery .gallery-caption { 467 | font-size: 13px; 468 | margin: 0; 469 | } 470 | 471 | .gallery-columns-6 .gallery-caption, 472 | .gallery-columns-7 .gallery-caption, 473 | .gallery-columns-8 .gallery-caption, 474 | .gallery-columns-9 .gallery-caption { 475 | display: none; 476 | } 477 | 478 | 479 | /** 480 | * 7.0 - Audio / Video 481 | */ 482 | 483 | .wp-audio-shortcode a, 484 | .wp-playlist a { 485 | box-shadow: none; 486 | } 487 | 488 | .mce-content-body .wp-audio-playlist { 489 | margin: 0; 490 | padding-bottom: 0; 491 | } 492 | 493 | .mce-content-body .wp-playlist-tracks { 494 | margin-top: 0; 495 | } 496 | 497 | .mce-content-body .wp-playlist-item { 498 | padding: 10px 0; 499 | } 500 | 501 | .mce-content-body .wp-playlist-item-length { 502 | top: 10px; 503 | } 504 | 505 | 506 | /** 507 | * 8.0 - RTL 508 | */ 509 | 510 | .rtl blockquote { 511 | border: 0 solid #1a1a1a; 512 | border-right-width: 4px; 513 | } 514 | 515 | .rtl blockquote.alignleft, 516 | .rtl blockquote.alignright { 517 | border: 0 solid #1a1a1a; 518 | border-top-width: 4px; 519 | } 520 | 521 | .rtl blockquote:not(.alignleft):not(.alignright) { 522 | margin-right: -28px; 523 | padding: 0 24px 0 0; 524 | } 525 | 526 | .rtl blockquote blockquote:not(.alignleft):not(.alignright) { 527 | margin-right: 0; 528 | margin-left: auto; 529 | } 530 | 531 | .rtl li > ul, 532 | .rtl blockquote > ul { 533 | margin-right: 20px; 534 | margin-left: auto; 535 | } 536 | 537 | .rtl li > ol, 538 | .rtl blockquote > ol { 539 | margin-right: 24px; 540 | margin-left: auto; 541 | } 542 | 543 | .rtl table th, 544 | .rtl .mce-item-table th, 545 | .rtl table caption { 546 | text-align: right; 547 | } 548 | -------------------------------------------------------------------------------- /css/ie.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Twenty Sixteen 3 | Description: Global Styles for older IE versions (previous to IE10). 4 | */ 5 | 6 | .site-header-main:before, 7 | .site-header-main:after, 8 | .site-footer:before, 9 | .site-footer:after { 10 | content: ""; 11 | display: table; 12 | } 13 | 14 | .site-header-main:after, 15 | .site-footer:after { 16 | clear: both; 17 | } 18 | 19 | @media screen and (min-width: 56.875em) { 20 | .site-branding, 21 | .site-info { 22 | float: left; 23 | } 24 | 25 | .site-header-menu, 26 | .site-footer .social-navigation { 27 | float: right; 28 | } 29 | 30 | .site-footer .social-navigation { 31 | margin-left: 7px; 32 | } 33 | 34 | .rtl .site-branding, 35 | .rtl .site-info { 36 | float: right; 37 | } 38 | 39 | .rtl .site-header-menu, 40 | .rtl .site-footer .social-navigation { 41 | float: left; 42 | } 43 | 44 | .rtl .site-footer .social-navigation { 45 | margin-right: 7px; 46 | margin-left: 0; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /css/ie7.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Twenty Sixteen 3 | Description: IE7 specific style. 4 | */ 5 | 6 | .site-inner { 7 | max-width: 656px; 8 | } 9 | 10 | .post-navigation, 11 | .pagination, 12 | .image-navigation, 13 | .entry-header, 14 | .entry-summary, 15 | .entry-content, 16 | .entry-footer, 17 | .page-header, 18 | .page-content, 19 | .post-thumbnail, 20 | .content-bottom-widgets, 21 | .comments-area { 22 | margin-right: 28px; 23 | margin-left: 28px; 24 | max-width: 100%; 25 | } 26 | 27 | .site-header, 28 | .sidebar, 29 | .site-footer, 30 | .widecolumn { 31 | padding-right: 28px; 32 | padding-left: 28px; 33 | } 34 | 35 | .search-submit { 36 | height: auto; 37 | margin-top: 28px; 38 | padding: 15px 0 8px; 39 | position: relative; 40 | width: auto; 41 | } 42 | 43 | .search-submit .screen-reader-text { 44 | height: auto; 45 | position: relative !important; 46 | width: auto; 47 | } 48 | 49 | .image-navigation .nav-previous, 50 | .image-navigation .nav-next, 51 | .comment-navigation .nav-previous, 52 | .comment-navigation .nav-next { 53 | *display: inline; 54 | zoom: 1; 55 | } 56 | 57 | .image-navigation .nav-previous + .nav-next, 58 | .comment-navigation .nav-previous + .nav-next { 59 | margin-left: 14px; 60 | } 61 | 62 | .pagination .nav-links { 63 | padding: 0; 64 | } 65 | 66 | .pagination .page-numbers { 67 | line-height: 1; 68 | margin: -4px 14px 0; 69 | padding: 18px 0; 70 | } 71 | 72 | .pagination .prev, 73 | .pagination .next { 74 | display: inline-block; 75 | font-size: 16px; 76 | font-weight: 700; 77 | height: auto; 78 | left: 0; 79 | line-height: 1; 80 | margin: 0; 81 | padding: 18px 14px; 82 | position: relative; 83 | right: 0; 84 | text-transform: none; 85 | width: auto; 86 | } 87 | 88 | .dropdown-toggle { 89 | display: none; 90 | } 91 | 92 | .main-navigation ul ul { 93 | display: block; 94 | } 95 | 96 | .social-navigation { 97 | margin-top: 1.75em; 98 | } 99 | 100 | .social-navigation a { 101 | height: auto; 102 | padding: 3px 7px; 103 | width: auto; 104 | } 105 | 106 | .social-navigation .screen-reader-text { 107 | height: auto; 108 | position: relative !important; 109 | width: auto; 110 | } 111 | 112 | .site-header-main { 113 | overflow : hidden; 114 | zoom : 1; 115 | } 116 | 117 | .entry-footer > span { 118 | margin-right: 14px; 119 | } 120 | 121 | .site-info .site-title { 122 | font-size: 13px; 123 | margin-right: 14px; 124 | } 125 | 126 | .gallery-item { 127 | max-width: 30%; 128 | } 129 | 130 | .gallery-columns-1 .gallery-item { 131 | max-width: 100%; 132 | } 133 | 134 | .gallery-columns-2 .gallery-item { 135 | max-width: 46%; 136 | } 137 | 138 | .gallery-columns-4 .gallery-item { 139 | max-width: 22%; 140 | } 141 | 142 | .gallery-columns-5 .gallery-item { 143 | max-width: 17%; 144 | } 145 | 146 | .gallery-columns-6 .gallery-item { 147 | max-width: 13.5%; 148 | } 149 | 150 | .gallery-columns-7 .gallery-item { 151 | max-width: 11%; 152 | } 153 | 154 | .gallery-columns-8 .gallery-item { 155 | max-width: 9.5%; 156 | } 157 | 158 | .gallery-columns-9 .gallery-item { 159 | max-width: 8%; 160 | } 161 | 162 | .rtl .image-navigation .nav-previous + .nav-next, 163 | .rtl .comment-navigation .nav-previous + .nav-next { 164 | margin-right: 14px; 165 | margin-left: 0; 166 | } 167 | 168 | .rtl .entry-footer > span { 169 | margin-right: 14px; 170 | margin-left: 0; 171 | } 172 | 173 | .rtl .site-info .site-title { 174 | margin-right: 0; 175 | margin-left: 14px; 176 | } 177 | -------------------------------------------------------------------------------- /css/ie8.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Twenty Sixteen 3 | Description: IE8 specific style. 4 | */ 5 | 6 | code { 7 | background-color: transparent; 8 | padding: 0; 9 | } 10 | 11 | .entry-content a, 12 | .entry-summary a, 13 | .taxonomy-description a, 14 | .logged-in-as a, 15 | .comment-content a, 16 | .pingback .comment-body > a, 17 | .textwidget a, 18 | .entry-footer a:hover, 19 | .site-info a:hover { 20 | text-decoration: underline; 21 | } 22 | 23 | .entry-content a:hover, 24 | .entry-content a:focus, 25 | .entry-summary a:hover, 26 | .entry-summary a:focus, 27 | .taxonomy-description a:hover, 28 | .taxonomy-description a:focus, 29 | .logged-in-as a:hover, 30 | .logged-in-as a:focus, 31 | .comment-content a:hover, 32 | .comment-content a:focus, 33 | .pingback .comment-body > a:hover, 34 | .pingback .comment-body > a:focus, 35 | .textwidget a:hover, 36 | .textwidget a:focus, 37 | .entry-content .wp-audio-shortcode a, 38 | .entry-content .wp-playlist a, 39 | .page-links a { 40 | text-decoration: none; 41 | } 42 | 43 | .site { 44 | margin: 21px; 45 | } 46 | 47 | .site-inner { 48 | max-width: 710px; 49 | } 50 | 51 | .site-header { 52 | padding-top: 3.9375em; 53 | padding-bottom: 3.9375em; 54 | } 55 | 56 | .site-branding { 57 | float: left; 58 | margin-top: 1.3125em; 59 | margin-bottom: 1.3125em; 60 | } 61 | 62 | .site-title { 63 | font-size: 28px; 64 | line-height: 1.25; 65 | } 66 | 67 | .site-description { 68 | display: block; 69 | } 70 | 71 | .menu-toggle { 72 | float: right; 73 | font-size: 16px; 74 | margin: 1.3125em 0; 75 | padding: 0.8125em 0.875em 0.6875em; 76 | } 77 | 78 | .site-header-menu { 79 | clear: both; 80 | margin: 0; 81 | padding: 1.3125em 0; 82 | } 83 | 84 | .site-header .main-navigation + .social-navigation { 85 | margin-top: 2.625em; 86 | } 87 | 88 | .header-image { 89 | margin: 1.3125em 0; 90 | } 91 | 92 | .site-main { 93 | margin-bottom: 5.25em; 94 | } 95 | 96 | .post-navigation { 97 | margin-bottom: 5.25em; 98 | } 99 | 100 | .post-navigation .post-title { 101 | font-size: 28px; 102 | line-height: 1.25; 103 | } 104 | 105 | .pagination { 106 | margin: 0 7.6923% 4.421052632em; 107 | } 108 | 109 | .pagination .nav-links:before, 110 | .pagination .nav-links:after { 111 | display: none; 112 | } 113 | 114 | /* restore screen-reader-text */ 115 | .pagination .current .screen-reader-text { 116 | position: absolute !important; 117 | } 118 | 119 | .pagination .page-numbers { 120 | display: inline-block; 121 | font-weight: 400; 122 | } 123 | 124 | .image-navigation .nav-previous, 125 | .image-navigation .nav-next, 126 | .comment-navigation .nav-previous, 127 | .comment-navigation .nav-next { 128 | display: inline-block; 129 | } 130 | 131 | .image-navigation .nav-previous + .nav-next:before, 132 | .comment-navigation .nav-previous + .nav-next:before { 133 | content: "\002f"; 134 | display: inline-block; 135 | filter: alpha(opacity=70); 136 | padding: 0 0.538461538em; 137 | } 138 | 139 | .site-main > article { 140 | margin-bottom: 5.25em; 141 | } 142 | 143 | .entry-title { 144 | font-size: 33px; 145 | line-height: 1.2727272727; 146 | margin-bottom: 0.8484848485em; 147 | } 148 | 149 | .entry-content blockquote.alignleft, 150 | .entry-content blockquote.alignright { 151 | border-width: 4px 0 0 0; 152 | padding: 0.9473684211em 0 0; 153 | width: 50%; 154 | } 155 | 156 | .entry-footer > span:after { 157 | content: "\002f"; 158 | display: inline-block; 159 | filter: alpha(opacity=70); 160 | padding: 0 0.538461538em; 161 | } 162 | 163 | .updated { 164 | display: none; 165 | } 166 | 167 | .updated.published { 168 | display: inline; 169 | } 170 | 171 | .comment-author { 172 | margin-bottom: 0; 173 | } 174 | 175 | .comment-author .avatar { 176 | height: 42px; 177 | position: relative; 178 | top: 0.25em; 179 | width: 42px; 180 | } 181 | 182 | .comment-list .children > li { 183 | padding-left: 1.75em; 184 | } 185 | 186 | .comment-list + .comment-respond, 187 | .comment-navigation + .comment-respond { 188 | padding-top: 3.5em; 189 | } 190 | 191 | .comment-reply-link { 192 | margin-top: 0; 193 | } 194 | 195 | .comments-area, 196 | .widget, 197 | .content-bottom-widgets .widget-area { 198 | margin-bottom: 5.25em; 199 | } 200 | 201 | .sidebar, 202 | .widecolumn { 203 | margin-bottom: 5.25em; 204 | } 205 | 206 | .site-footer .main-navigation, 207 | .site-footer .social-navigation { 208 | display: none; 209 | } 210 | 211 | .rtl .site-branding { 212 | float: right; 213 | } 214 | 215 | .rtl .menu-toggle { 216 | float: left; 217 | } 218 | 219 | .rtl .comment-list .children > li { 220 | padding-right: 1.75em; 221 | padding-left: 0; 222 | } 223 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | tag in the document head, and expect WordPress to 73 | * provide it for us. 74 | */ 75 | add_theme_support( 'title-tag' ); 76 | 77 | /* 78 | * Enable support for custom logo. 79 | * 80 | * @since Twenty Sixteen 1.2 81 | */ 82 | add_theme_support( 'custom-logo', array( 83 | 'height' => 240, 84 | 'width' => 240, 85 | 'flex-height' => true, 86 | ) ); 87 | 88 | /* 89 | * Enable support for Post Thumbnails on posts and pages. 90 | * 91 | * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails 92 | */ 93 | add_theme_support( 'post-thumbnails' ); 94 | set_post_thumbnail_size( 1200, 9999 ); 95 | 96 | // This theme uses wp_nav_menu() in two locations. 97 | register_nav_menus( array( 98 | 'primary' => __( 'Primary Menu', 'twentysixteen' ), 99 | 'social' => __( 'Social Links Menu', 'twentysixteen' ), 100 | ) ); 101 | 102 | /* 103 | * Switch default core markup for search form, comment form, and comments 104 | * to output valid HTML5. 105 | */ 106 | add_theme_support( 'html5', array( 107 | 'search-form', 108 | 'comment-form', 109 | 'comment-list', 110 | 'gallery', 111 | 'caption', 112 | ) ); 113 | 114 | /* 115 | * Enable support for Post Formats. 116 | * 117 | * See: https://codex.wordpress.org/Post_Formats 118 | */ 119 | add_theme_support( 'post-formats', array( 120 | 'aside', 121 | 'image', 122 | 'video', 123 | 'quote', 124 | 'link', 125 | 'gallery', 126 | 'status', 127 | 'audio', 128 | 'chat', 129 | ) ); 130 | 131 | /* 132 | * This theme styles the visual editor to resemble the theme style, 133 | * specifically font, colors, icons, and column width. 134 | */ 135 | add_editor_style( array( 'css/editor-style.css', twentysixteen_fonts_url() ) ); 136 | 137 | // Indicate widget sidebars can use selective refresh in the Customizer. 138 | add_theme_support( 'customize-selective-refresh-widgets' ); 139 | } 140 | endif; // twentysixteen_setup 141 | add_action( 'after_setup_theme', 'twentysixteen_setup' ); 142 | 143 | /** 144 | * Sets the content width in pixels, based on the theme's design and stylesheet. 145 | * 146 | * Priority 0 to make it available to lower priority callbacks. 147 | * 148 | * @global int $content_width 149 | * 150 | * @since Twenty Sixteen 1.0 151 | */ 152 | function twentysixteen_content_width() { 153 | $GLOBALS['content_width'] = apply_filters( 'twentysixteen_content_width', 840 ); 154 | } 155 | add_action( 'after_setup_theme', 'twentysixteen_content_width', 0 ); 156 | 157 | /** 158 | * Registers a widget area. 159 | * 160 | * @link https://developer.wordpress.org/reference/functions/register_sidebar/ 161 | * 162 | * @since Twenty Sixteen 1.0 163 | */ 164 | function twentysixteen_widgets_init() { 165 | register_sidebar( array( 166 | 'name' => __( 'Sidebar', 'twentysixteen' ), 167 | 'id' => 'sidebar-1', 168 | 'description' => __( 'Add widgets here to appear in your sidebar.', 'twentysixteen' ), 169 | 'before_widget' => '
', 170 | 'after_widget' => '
', 171 | 'before_title' => '

', 172 | 'after_title' => '

', 173 | ) ); 174 | 175 | register_sidebar( array( 176 | 'name' => __( 'Content Bottom 1', 'twentysixteen' ), 177 | 'id' => 'sidebar-2', 178 | 'description' => __( 'Appears at the bottom of the content on posts and pages.', 'twentysixteen' ), 179 | 'before_widget' => '
', 180 | 'after_widget' => '
', 181 | 'before_title' => '

', 182 | 'after_title' => '

', 183 | ) ); 184 | 185 | register_sidebar( array( 186 | 'name' => __( 'Content Bottom 2', 'twentysixteen' ), 187 | 'id' => 'sidebar-3', 188 | 'description' => __( 'Appears at the bottom of the content on posts and pages.', 'twentysixteen' ), 189 | 'before_widget' => '
', 190 | 'after_widget' => '
', 191 | 'before_title' => '

', 192 | 'after_title' => '

', 193 | ) ); 194 | } 195 | add_action( 'widgets_init', 'twentysixteen_widgets_init' ); 196 | 197 | if ( ! function_exists( 'twentysixteen_fonts_url' ) ) : 198 | /** 199 | * Register Google fonts for Twenty Sixteen. 200 | * 201 | * Create your own twentysixteen_fonts_url() function to override in a child theme. 202 | * 203 | * @since Twenty Sixteen 1.0 204 | * 205 | * @return string Google fonts URL for the theme. 206 | */ 207 | function twentysixteen_fonts_url() { 208 | $fonts_url = ''; 209 | $fonts = array(); 210 | $subsets = 'latin,latin-ext'; 211 | 212 | /* translators: If there are characters in your language that are not supported by Merriweather, translate this to 'off'. Do not translate into your own language. */ 213 | if ( 'off' !== _x( 'on', 'Merriweather font: on or off', 'twentysixteen' ) ) { 214 | $fonts[] = 'Merriweather:400,700,900,400italic,700italic,900italic'; 215 | } 216 | 217 | /* translators: If there are characters in your language that are not supported by Montserrat, translate this to 'off'. Do not translate into your own language. */ 218 | if ( 'off' !== _x( 'on', 'Montserrat font: on or off', 'twentysixteen' ) ) { 219 | $fonts[] = 'Montserrat:400,700'; 220 | } 221 | 222 | /* translators: If there are characters in your language that are not supported by Inconsolata, translate this to 'off'. Do not translate into your own language. */ 223 | if ( 'off' !== _x( 'on', 'Inconsolata font: on or off', 'twentysixteen' ) ) { 224 | $fonts[] = 'Inconsolata:400'; 225 | } 226 | 227 | if ( $fonts ) { 228 | $fonts_url = add_query_arg( array( 229 | 'family' => urlencode( implode( '|', $fonts ) ), 230 | 'subset' => urlencode( $subsets ), 231 | ), 'https://fonts.googleapis.com/css' ); 232 | } 233 | 234 | return $fonts_url; 235 | } 236 | endif; 237 | 238 | /** 239 | * Handles JavaScript detection. 240 | * 241 | * Adds a `js` class to the root `` element when JavaScript is detected. 242 | * 243 | * @since Twenty Sixteen 1.0 244 | */ 245 | function twentysixteen_javascript_detection() { 246 | echo "\n"; 247 | } 248 | add_action( 'wp_head', 'twentysixteen_javascript_detection', 0 ); 249 | 250 | /** 251 | * Enqueues scripts and styles. 252 | * 253 | * @since Twenty Sixteen 1.0 254 | */ 255 | function twentysixteen_scripts() { 256 | // Add custom fonts, used in the main stylesheet. 257 | wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null ); 258 | 259 | // Add Genericons, used in the main stylesheet. 260 | wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1' ); 261 | 262 | // Theme stylesheet. 263 | wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() ); 264 | 265 | // Load the Internet Explorer specific stylesheet. 266 | wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20160816' ); 267 | wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10' ); 268 | 269 | // Load the Internet Explorer 8 specific stylesheet. 270 | wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20160816' ); 271 | wp_style_add_data( 'twentysixteen-ie8', 'conditional', 'lt IE 9' ); 272 | 273 | // Load the Internet Explorer 7 specific stylesheet. 274 | wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20160816' ); 275 | wp_style_add_data( 'twentysixteen-ie7', 'conditional', 'lt IE 8' ); 276 | 277 | // Load the html5 shiv. 278 | wp_enqueue_script( 'twentysixteen-html5', get_template_directory_uri() . '/js/html5.js', array(), '3.7.3' ); 279 | wp_script_add_data( 'twentysixteen-html5', 'conditional', 'lt IE 9' ); 280 | 281 | wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20160816', true ); 282 | 283 | if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 284 | wp_enqueue_script( 'comment-reply' ); 285 | } 286 | 287 | if ( is_singular() && wp_attachment_is_image() ) { 288 | wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20160816' ); 289 | } 290 | 291 | wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20160816', true ); 292 | 293 | wp_localize_script( 'twentysixteen-script', 'screenReaderText', array( 294 | 'expand' => __( 'expand child menu', 'twentysixteen' ), 295 | 'collapse' => __( 'collapse child menu', 'twentysixteen' ), 296 | ) ); 297 | } 298 | add_action( 'wp_enqueue_scripts', 'twentysixteen_scripts' ); 299 | 300 | /** 301 | * Adds custom classes to the array of body classes. 302 | * 303 | * @since Twenty Sixteen 1.0 304 | * 305 | * @param array $classes Classes for the body element. 306 | * @return array (Maybe) filtered body classes. 307 | */ 308 | function twentysixteen_body_classes( $classes ) { 309 | // Adds a class of custom-background-image to sites with a custom background image. 310 | if ( get_background_image() ) { 311 | $classes[] = 'custom-background-image'; 312 | } 313 | 314 | // Adds a class of group-blog to sites with more than 1 published author. 315 | if ( is_multi_author() ) { 316 | $classes[] = 'group-blog'; 317 | } 318 | 319 | // Adds a class of no-sidebar to sites without active sidebar. 320 | if ( ! is_active_sidebar( 'sidebar-1' ) ) { 321 | $classes[] = 'no-sidebar'; 322 | } 323 | 324 | // Adds a class of hfeed to non-singular pages. 325 | if ( ! is_singular() ) { 326 | $classes[] = 'hfeed'; 327 | } 328 | 329 | return $classes; 330 | } 331 | add_filter( 'body_class', 'twentysixteen_body_classes' ); 332 | 333 | /** 334 | * Converts a HEX value to RGB. 335 | * 336 | * @since Twenty Sixteen 1.0 337 | * 338 | * @param string $color The original color, in 3- or 6-digit hexadecimal form. 339 | * @return array Array containing RGB (red, green, and blue) values for the given 340 | * HEX code, empty array otherwise. 341 | */ 342 | function twentysixteen_hex2rgb( $color ) { 343 | $color = trim( $color, '#' ); 344 | 345 | if ( strlen( $color ) === 3 ) { 346 | $r = hexdec( substr( $color, 0, 1 ).substr( $color, 0, 1 ) ); 347 | $g = hexdec( substr( $color, 1, 1 ).substr( $color, 1, 1 ) ); 348 | $b = hexdec( substr( $color, 2, 1 ).substr( $color, 2, 1 ) ); 349 | } else if ( strlen( $color ) === 6 ) { 350 | $r = hexdec( substr( $color, 0, 2 ) ); 351 | $g = hexdec( substr( $color, 2, 2 ) ); 352 | $b = hexdec( substr( $color, 4, 2 ) ); 353 | } else { 354 | return array(); 355 | } 356 | 357 | return array( 'red' => $r, 'green' => $g, 'blue' => $b ); 358 | } 359 | 360 | /** 361 | * Custom template tags for this theme. 362 | */ 363 | require get_template_directory() . '/inc/template-tags.php'; 364 | 365 | /** 366 | * Customizer additions. 367 | */ 368 | require get_template_directory() . '/inc/customizer.php'; 369 | 370 | /** 371 | * Add custom image sizes attribute to enhance responsive image functionality 372 | * for content images 373 | * 374 | * @since Twenty Sixteen 1.0 375 | * 376 | * @param string $sizes A source size value for use in a 'sizes' attribute. 377 | * @param array $size Image size. Accepts an array of width and height 378 | * values in pixels (in that order). 379 | * @return string A source size value for use in a content image 'sizes' attribute. 380 | */ 381 | function twentysixteen_content_image_sizes_attr( $sizes, $size ) { 382 | $width = $size[0]; 383 | 384 | 840 <= $width && $sizes = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px'; 385 | 386 | if ( 'page' === get_post_type() ) { 387 | 840 > $width && $sizes = '(max-width: ' . $width . 'px) 85vw, ' . $width . 'px'; 388 | } else { 389 | 840 > $width && 600 <= $width && $sizes = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px'; 390 | 600 > $width && $sizes = '(max-width: ' . $width . 'px) 85vw, ' . $width . 'px'; 391 | } 392 | 393 | return $sizes; 394 | } 395 | add_filter( 'wp_calculate_image_sizes', 'twentysixteen_content_image_sizes_attr', 10 , 2 ); 396 | 397 | /** 398 | * Add custom image sizes attribute to enhance responsive image functionality 399 | * for post thumbnails 400 | * 401 | * @since Twenty Sixteen 1.0 402 | * 403 | * @param array $attr Attributes for the image markup. 404 | * @param int $attachment Image attachment ID. 405 | * @param array $size Registered image size or flat array of height and width dimensions. 406 | * @return string A source size value for use in a post thumbnail 'sizes' attribute. 407 | */ 408 | function twentysixteen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) { 409 | if ( 'post-thumbnail' === $size ) { 410 | is_active_sidebar( 'sidebar-1' ) && $attr['sizes'] = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 60vw, (max-width: 1362px) 62vw, 840px'; 411 | ! is_active_sidebar( 'sidebar-1' ) && $attr['sizes'] = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 88vw, 1200px'; 412 | } 413 | return $attr; 414 | } 415 | add_filter( 'wp_get_attachment_image_attributes', 'twentysixteen_post_thumbnail_sizes_attr', 10 , 3 ); 416 | 417 | /** 418 | * Modifies tag cloud widget arguments to have all tags in the widget same font size. 419 | * 420 | * @since Twenty Sixteen 1.1 421 | * 422 | * @param array $args Arguments for tag cloud widget. 423 | * @return array A new modified arguments. 424 | */ 425 | function twentysixteen_widget_tag_cloud_args( $args ) { 426 | $args['largest'] = 1; 427 | $args['smallest'] = 1; 428 | $args['unit'] = 'em'; 429 | return $args; 430 | } 431 | add_filter( 'widget_tag_cloud_args', 'twentysixteen_widget_tag_cloud_args' ); 432 | -------------------------------------------------------------------------------- /genericons/COPYING.txt: -------------------------------------------------------------------------------- 1 | Genericons is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 2 | 3 | The fonts are distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 4 | 5 | You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 6 | 7 | As a special exception, if you create a document which uses this font, and embed this font or unaltered portions of this font into the document, this font does not by itself cause the resulting document to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the document might be covered by the GNU General Public License. If you modify this font, you may extend this exception to your version of the font, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. 8 | 9 | This license does not convey any intellectual property rights to third party trademarks that may be included in the icon font; such marks remain subject to all rights and guidelines of use of their owner. -------------------------------------------------------------------------------- /genericons/Genericons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/twentysixteenreact/539a7ca7cb0d39f0551a2d8703ba7bc215f2d927/genericons/Genericons.eot -------------------------------------------------------------------------------- /genericons/Genericons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/twentysixteenreact/539a7ca7cb0d39f0551a2d8703ba7bc215f2d927/genericons/Genericons.ttf -------------------------------------------------------------------------------- /genericons/Genericons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/twentysixteenreact/539a7ca7cb0d39f0551a2d8703ba7bc215f2d927/genericons/Genericons.woff -------------------------------------------------------------------------------- /genericons/LICENSE.txt: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /genericons/README.md: -------------------------------------------------------------------------------- 1 | # Genericons 2 | 3 | Genericons are vector icons embedded in a webfont designed to be clean and simple keeping with a generic aesthetic. 4 | 5 | Use genericons for instant HiDPI, to change icon colors on the fly, or even with CSS effects such as drop-shadows or gradients! 6 | 7 | 8 | ## Usage 9 | 10 | To use it, place the `genericons` folder in your stylesheet directory and enqueue the genericons.css file. Now you can create an icon like this: 11 | 12 | ``` 13 | .my-icon:before { 14 | content: '\f101'; 15 | font: normal 16px/1 'Genericons'; 16 | display: inline-block; 17 | -webkit-font-smoothing: antialiased; 18 | -moz-osx-font-smoothing: grayscale; 19 | } 20 | ``` 21 | 22 | This will output a comment icon before every element with the class "my-icon". The `content: '\f101';` part of this CSS is easily copied from the helper tool at http://genericons.com/, or `example.html` in the `font` directory. 23 | 24 | You can also use the bundled example.css if you'd rather insert the icons using HTML tags. 25 | 26 | 27 | ## Building your own Genericons 28 | 29 | In the `source` directory, you'll find all Genericons source icons in SVG format. This will allow you to bake your own flavor of Genericons using a tool such as FontCustom (http://fontcustom.com) or Fontello (http://fontello.com). Perhaps you need more logos than are available in the base Genericons package? Just add those logos and bake your own expanded set. Maybe you need just a few of the icons Genericons provides, but would like to trim the fat? Remove the ones you won't need! 30 | 31 | 32 | ### FontCustom instructions 33 | 34 | FontCustom is a powerful commandline tool which which bakes icon fonts from the SVG source files. It's the tool Genericons is built on, and it provides highly accurate and perfectly crisp icons, *provided all SVGs have the same pixel height*. 35 | 36 | It's not that hard to use, and once it's installed you'll never think of icon-fonts the same way again. Seriously, you should try it. Icon fonts for everyone! 37 | 38 | 1. Install FontCustom. Follow the instructions on the website: http://fontcustom.com/ 39 | 2. In the `source` directory from the Genericons download, open the file called `fontcustom.yml` in a text editor. Customize the `font_name` and `css_selector`. 40 | 3. Open a terminal. Browse to the `source` directory. Type `fontcustom compile`. 41 | 42 | You'll now receive a brand new subdirectory called `fontcustom-webfont`. Inside here you'll find your very own flavor of Genericons, with only the icons you want, including a handy example page that'll help you copy/paste the necessary glyphs or CSS values. 43 | 44 | *Please note*: In the source directory, there's a hidden file called `.fontcustom-manifest.json`. This file is auto-generated by the FontCustom tool, and holds codepoints (unicode addresses) for every glyph, so its address doesn't change when you add or remove icons. If you feel the need to "start fresh" with the unicode addresses, you should delete this file. 45 | 46 | 47 | ### Fontello instructions 48 | 49 | Fontello is very easy to use. Just drop the SVG files of the icons you want onto their website and download the font. The downside is that Fontello seems to ignore the 16px pixelgrid, so you'll end up with fuzzy icons. Buyer beware. 50 | 51 | 52 | ## Notes 53 | 54 | **Photoshop mockups** 55 | 56 | The `Genericons.ttf` file can be placed in your system fonts folder and used Photoshop or other graphics apps if you like. 57 | 58 | If you're using Genericons in your Photoshop mockups, please remember to delete the old version of the font from Font Book, and grab the new one from the zip file. This also affects using it in your webdesigns: if you have an old version of the font installed locally, that's the font that'll be used in your website as well, so if you're missing icons, check for old versions of the font on your system. 59 | 60 | **Pixel grid** 61 | 62 | Genericons has been designed for a 16x16px grid. That means it'll look sharp at font-size: 16px exactly. It'll also be crisp at multiples thereof, such as 32px or 64px. It'll look reasonably crisp at in-between font sizes such as 24px or 48px, but not quite as crisp as 16 or 32. Please don't set the font-size to 17px, though, that'll just look terrible blurry. 63 | 64 | **Antialiasing** 65 | 66 | If you keep intact the `-webkit-font-smoothing: antialiased;` and `-moz-osx-font-smoothing: grayscale;` CSS properties. That'll make the icons look their best possible, in Firefox and WebKit based browsers. 67 | 68 | **optimizeLegibility** 69 | 70 | Note: On Android browsers with version 4.2, 4.3, and probably later, Genericons will simply not show up if you're using the CSS property "text-rendering" set to "optimizeLegibility. 71 | 72 | **Updates** 73 | 74 | We don't often update icons, but do very carefully when we get good feedback suggesting improvements. Please be mindful if you upgrade, and check that the updated icons behave as you intended. 75 | 76 | **Base64 encoding** 77 | 78 | By default, Genericons ships with a stylesheet that includes a base64 encoded version of the font. This is to sidestep issues with cross-origin requests for fonts, that happen when a stylesheet loads a font that's stored on a different domain or subdomain. This is very common when using caching plugins. 79 | 80 | Base64 encoding comes with a 25% filesize overhead compared to just loading the WOFF file directly. If you know that you won't be loading fonts across domains, or have the ability to edit your server config files to allow it, you can get slightly faster performance by loading Genericons without the base64 encoding. Simply edit `genericons.css` and edit the `@font-face` declaration to match this: 81 | 82 | ``` 83 | @font-face { 84 | font-family: 'Genericons'; 85 | src: url('Genericons.woff') format('woff'), 86 | url('Genericons.ttf') format('truetype'), 87 | url('Genericons.svg#genericonsregular') format('svg'); 88 | font-weight: normal; 89 | font-style: normal; 90 | } 91 | ``` 92 | 93 | 94 | 95 | ## Changelog 96 | 97 | **3.4.1** 98 | 99 | * IE8 support restored. 100 | 101 | **3.4** 102 | 103 | * Updated: Update Google Plus icon to new geometric version. This also *retires* the "alt" version, so *please be mindful if you choose to update, make sure you use the `f206` glyph, not the `f218` glyph, as it no longer exists! 104 | * New: Added helper rotation classes to the base CSS, thanks to geminorum. Apply `genericon-rotate-90` to rotate 90 degrees, -180, -270. Or `genericon-flip-horizontal` or -vertical. 105 | 106 | *Again, it is important if you choose to update to this version, make sure you're not using `genericon-googleplus-alt` or unicode character `f218`, as that has been retired! Use `genericon-googleplus` and glyph `f206` instead!* 107 | 108 | **3.3.1** 109 | 110 | Security Hardening: Remove Genericons example.html file. Please visit genericons.com instead. 111 | 112 | **3.3** 113 | 114 | The Open Source release. 115 | 116 | You can now build your own flavors of Genericons with all the SVGs provided. 117 | 118 | 119 | **3.2** 120 | 121 | A number of new icons and a couple of quick updates. 122 | 123 | * New: Activity 124 | * New: HTML anchor 125 | * New: Bug 126 | * New: Download 127 | * New: Handset 128 | * New: Microphone 129 | * New: Minus 130 | * New: Plus 131 | * New: Move 132 | * New: Rating stars, empty, half, full 133 | * New: Shuffle 134 | * New: video camera 135 | * New: Spotify 136 | * New: Twitch 137 | * Update: Fixed geometry in Edit icon 138 | * Update: Updated Foursquare icon 139 | * IE8 bugfix, slipstreamed into this. 140 | 141 | Twitch and Spotify mark the last social icons that will be added to Genericons. 142 | Future social icons will have to happen in a separate font. 143 | 144 | **3.1** 145 | 146 | Genericons is now generated using a commandline tool called FontCustom. This makes it far easier to add new icons to the font, but the switch means the download zip now has a different layout, fonts have different filenames, there's now no .otf font included (but the .ttf should suffice), and the font now has slightly different metrics. I've taken great care to ensure this new version should work as a drop-in replacement, but please be mindful and test carefully if you choose to upgrade. 147 | 148 | * Per feedback, the baked-in 16px width and height has been removed from the helper CSS. It wasn't really necessary (the glyph itself has these dimensions naturally), and it caused some headaches. 149 | * Base64 encoding is now included by default in the helper CSS. This makes it drop-in easy to get Genericons working in Firefox even when using a CDN. 150 | * Title attribute on website tool. 151 | * New: Website. 152 | * New: Ellipsis. 153 | * New: Foursquare. 154 | * New: X-post. 155 | * New: Sitemap. 156 | * New: Hierarchy. 157 | * New: Paintbrush. 158 | * Updated: Show and Hide icons were updated for clarity. 159 | 160 | **3.0.3** 161 | 162 | Bunch of updates mostly. 163 | 164 | * Two new icons, Dropbox and Fullscreen. 165 | * Updates to all icons containing an exclamation mark. 166 | * Updates to Image and Quote. 167 | * Nicer "Share" icon. 168 | * Bigger default Linkedin icon. 169 | 170 | **3.0.2** 171 | 172 | A slew of new stuff and updates. 173 | 174 | * Social icons: Skype, Digg, Reddit, Stumbleupon, Pocket. 175 | * New generic icons: heart, lock and print. 176 | * New editing icons: code, bold, italic, image 177 | * New interaction icons: subscribe, unsubscribe, subscribed, reply all, reply, flag. 178 | * The hyperlink icon has been updated to be clearer, chunkier. 179 | * The "home" icon has been updated for style, size and clarity. 180 | * The email icon has been updated for style and clarity, and to fit with the new subscribe icons. 181 | * The document icon has been updated for style. 182 | * The "pin" icon has been updated for style and clarity. 183 | * The Twitter icon has been scaled down to fit with the other social icons. 184 | 185 | **3.0.1** 186 | 187 | Mostly maintenance. 188 | 189 | * Fixed an issue with the example page that showed an old "top" icon instead of the actual NEW "refresh" icon. 190 | * Added inverse Google+ and Path. 191 | * Replaced tabs with spaces in the helper CSS. 192 | * Changed the Genericons.com copy/paste tool to serve span's instead of div's for casual icon insertion. It's being converted to "inline-block" anyway. 193 | 194 | **3.0** 195 | 196 | Mainly maintenance and a few new icons. 197 | 198 | * Fast forward, rewind, PollDaddy, Notice, Info, Help, Portfolio 199 | * Updated the feed icon. It's a bit smaller now for consistency, the previous one was rather big. 200 | * So, the previous version numbering, 2.09, wasn't very PHP version compare friendly. So from now on it'll be 3.0, 3.1 etc. Props Ipstenu. 201 | * Genericons.com now has a mini release blog. 202 | * The CSS has prettier formatting, props Konstantin Obenland. 203 | 204 | **2.09** 205 | 206 | Updated Facebook icon to new version. Updated Instagram logo to use new one-color version. Updated Google+ icon to use same radius as Instagram and Facebook. Added a bunch of new icons, cog, unapprove, cart, media player buttons, tablet, send to tablet. 207 | 208 | **2.06** 209 | 210 | Included Base64 encoded version. This is necessary for Genericons to work with CDNs in Firefox. Firefox blocks fonts linked from a different domain. A CDN (typically s.example.com) usually puts the font on a subdomain, and is hence blocked in Firefox. 211 | 212 | **2.05** 213 | 214 | Added a bunch of new icons, including upload to cloud, download to cloud, many more. 215 | 216 | **2.0** 217 | 218 | Initial public release 219 | -------------------------------------------------------------------------------- /genericons/genericons.css: -------------------------------------------------------------------------------- 1 | /** 2 | 3 | Genericons 4 | 5 | */ 6 | 7 | 8 | /* IE8 and below use EOT and allow cross-site embedding. 9 | IE9 uses WOFF which is base64 encoded to allow cross-site embedding. 10 | So unfortunately, IE9 will throw a console error, but it'll still work. 11 | When the font is base64 encoded, cross-site embedding works in Firefox */ 12 | @font-face { 13 | font-family: "Genericons"; 14 | src: url("./Genericons.eot"); 15 | src: url("./Genericons.eot?") format("embedded-opentype"); 16 | font-weight: normal; 17 | font-style: normal; 18 | } 19 | 20 | @font-face { 21 | font-family: "Genericons"; 22 | src: url("data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAADakAA0AAAAAVqwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAA2iAAAABoAAAAcdeu6KE9TLzIAAAGgAAAARQAAAGBkLHXFY21hcAAAAogAAACWAAABsqlys6FjdnQgAAADIAAAAAQAAAAEAEQFEWdhc3AAADaAAAAACAAAAAj//wADZ2x5ZgAABFQAAC7AAABIkKrsSc5oZWFkAAABMAAAAC8AAAA2C2BCV2hoZWEAAAFgAAAAHQAAACQQuAgGaG10eAAAAegAAACfAAABOFjwU3Jsb2NhAAADJAAAATAAAAEwy4vdrm1heHAAAAGAAAAAIAAAACAA6QEZbmFtZQAAMxQAAAE5AAACN1KGf59wb3N0AAA0UAAAAjAAAAXo9iKXv3jaY2BkYGAAYqUtWvLx/DZfGbg5GEDgkmLVWhj9/ycDAwcbWJyDgQlEAQABJgkgAHjaY2BkYOBgAIIdHAz/fwLZbAyMDKiAFQBE7gLWAAAAAAEAAACXAOgAEAAAAAAAAgAAAAEAAQAAAEAALgAAAAB42mNgYf/MOIGBlYGB1Zh1JgMDoxyEZr7OkMYkxMDAxMDKzAADjAIMCBCQ5prC0MCg8FWcA8TdwQFVg6REgYERAPvTCMQAAAB42i1PsRXCUAg8SAprl7FN4QZqb2WZGRjAIVLrHj4be4ews7OJHAd54cMBd+Af7JHmt3RPYAOHAYFweFhmYE4jlj+uVb8nshCzd/qVeNUCLysG8lgwrojfSW/pcTK6o7rWX82En6HJwIEv+wbi28IwpndxRu/JaJGStHRDq5EB+OKCNumZLlSVl2TnOFVtl9nR5t7woR0QzVT+D7cKLeIAeNpjYGBgZoBgGQZGBhBYA+QxgvksDBOAtAIQsoDoj5yfOD9JflL7zPGF84vkF80vll88v0R+yfxS9lX8/3+wCoZPDJ8EPil8Zvj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4e73ONv7vOAh/zDI/7lPx7zhKc84zkveDnqwsljg1W7bVZmMrMZZjFrszG7zZ63mfSSXtJLekkv6SW9pJf00pBX6VV6lV6lV+lVepVepVfpVXpJL+klvaSX9JJe6njZu7J3Ze/K3pW9K3tXbg9915id/wid0Amd0Amd0Amd0Il3TueesJ+wn7CfsJ+wn7CfsJ+wn7CfsJ+wn7CfsJ+wn7CfsJ+wn0h6SS/pZb2sl/WyXtbLelkv62W9rBd6oRd6oRd6oRd6oRd6oVf0il7RK3pFr+gVvaJX9IperVfr1Xq1Xq1X69V6tV6tV+s1eo1eo9foNXqNXtPxijsr7qy4s+LOijsr7qy0h75rzG6zx+w115l9Zr85YA520l0Wd1ncZXGXxV0Wd1ncZama1x+EcTsAAAAB//8AAnjaY2BgYGQAgosrjpwF0ZcUq9bCaABTzgdAAAA=") format("woff"), 23 | url("./Genericons.ttf") format("truetype"), 24 | url("./Genericons.svg#Genericons") format("svg"); 25 | font-weight: normal; 26 | font-style: normal; 27 | } 28 | 29 | @media screen and (-webkit-min-device-pixel-ratio:0) { 30 | @font-face { 31 | font-family: "Genericons"; 32 | src: url("./Genericons.svg#Genericons") format("svg"); 33 | } 34 | } 35 | 36 | 37 | /** 38 | * All Genericons 39 | */ 40 | 41 | .genericon { 42 | font-size: 16px; 43 | vertical-align: top; 44 | text-align: center; 45 | -moz-transition: color .1s ease-in 0; 46 | -webkit-transition: color .1s ease-in 0; 47 | display: inline-block; 48 | font-family: "Genericons"; 49 | font-style: normal; 50 | font-weight: normal; 51 | font-variant: normal; 52 | line-height: 1; 53 | text-decoration: inherit; 54 | text-transform: none; 55 | -moz-osx-font-smoothing: grayscale; 56 | -webkit-font-smoothing: antialiased; 57 | speak: none; 58 | } 59 | 60 | 61 | /** 62 | * Helper classes 63 | */ 64 | 65 | .genericon-rotate-90 { 66 | -webkit-transform: rotate(90deg); 67 | -moz-transform: rotate(90deg); 68 | -ms-transform: rotate(90deg); 69 | -o-transform: rotate(90deg); 70 | transform: rotate(90deg); 71 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); 72 | } 73 | 74 | .genericon-rotate-180 { 75 | -webkit-transform: rotate(180deg); 76 | -moz-transform: rotate(180deg); 77 | -ms-transform: rotate(180deg); 78 | -o-transform: rotate(180deg); 79 | transform: rotate(180deg); 80 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); 81 | } 82 | 83 | .genericon-rotate-270 { 84 | -webkit-transform: rotate(270deg); 85 | -moz-transform: rotate(270deg); 86 | -ms-transform: rotate(270deg); 87 | -o-transform: rotate(270deg); 88 | transform: rotate(270deg); 89 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); 90 | } 91 | 92 | .genericon-flip-horizontal { 93 | -webkit-transform: scale(-1, 1); 94 | -moz-transform: scale(-1, 1); 95 | -ms-transform: scale(-1, 1); 96 | -o-transform: scale(-1, 1); 97 | transform: scale(-1, 1); 98 | } 99 | 100 | .genericon-flip-vertical { 101 | -webkit-transform: scale(1, -1); 102 | -moz-transform: scale(1, -1); 103 | -ms-transform: scale(1, -1); 104 | -o-transform: scale(1, -1); 105 | transform: scale(1, -1); 106 | } 107 | 108 | 109 | /** 110 | * Individual icons 111 | */ 112 | 113 | .genericon-404:before { content: "\f423"; } 114 | .genericon-activity:before { content: "\f508"; } 115 | .genericon-anchor:before { content: "\f509"; } 116 | .genericon-aside:before { content: "\f101"; } 117 | .genericon-attachment:before { content: "\f416"; } 118 | .genericon-audio:before { content: "\f109"; } 119 | .genericon-bold:before { content: "\f471"; } 120 | .genericon-book:before { content: "\f444"; } 121 | .genericon-bug:before { content: "\f50a"; } 122 | .genericon-cart:before { content: "\f447"; } 123 | .genericon-category:before { content: "\f301"; } 124 | .genericon-chat:before { content: "\f108"; } 125 | .genericon-checkmark:before { content: "\f418"; } 126 | .genericon-close:before { content: "\f405"; } 127 | .genericon-close-alt:before { content: "\f406"; } 128 | .genericon-cloud:before { content: "\f426"; } 129 | .genericon-cloud-download:before { content: "\f440"; } 130 | .genericon-cloud-upload:before { content: "\f441"; } 131 | .genericon-code:before { content: "\f462"; } 132 | .genericon-codepen:before { content: "\f216"; } 133 | .genericon-cog:before { content: "\f445"; } 134 | .genericon-collapse:before { content: "\f432"; } 135 | .genericon-comment:before { content: "\f300"; } 136 | .genericon-day:before { content: "\f305"; } 137 | .genericon-digg:before { content: "\f221"; } 138 | .genericon-document:before { content: "\f443"; } 139 | .genericon-dot:before { content: "\f428"; } 140 | .genericon-downarrow:before { content: "\f502"; } 141 | .genericon-download:before { content: "\f50b"; } 142 | .genericon-draggable:before { content: "\f436"; } 143 | .genericon-dribbble:before { content: "\f201"; } 144 | .genericon-dropbox:before { content: "\f225"; } 145 | .genericon-dropdown:before { content: "\f433"; } 146 | .genericon-dropdown-left:before { content: "\f434"; } 147 | .genericon-edit:before { content: "\f411"; } 148 | .genericon-ellipsis:before { content: "\f476"; } 149 | .genericon-expand:before { content: "\f431"; } 150 | .genericon-external:before { content: "\f442"; } 151 | .genericon-facebook:before { content: "\f203"; } 152 | .genericon-facebook-alt:before { content: "\f204"; } 153 | .genericon-fastforward:before { content: "\f458"; } 154 | .genericon-feed:before { content: "\f413"; } 155 | .genericon-flag:before { content: "\f468"; } 156 | .genericon-flickr:before { content: "\f211"; } 157 | .genericon-foursquare:before { content: "\f226"; } 158 | .genericon-fullscreen:before { content: "\f474"; } 159 | .genericon-gallery:before { content: "\f103"; } 160 | .genericon-github:before { content: "\f200"; } 161 | .genericon-googleplus:before { content: "\f206"; } 162 | .genericon-googleplus-alt:before { content: "\f218"; } 163 | .genericon-handset:before { content: "\f50c"; } 164 | .genericon-heart:before { content: "\f461"; } 165 | .genericon-help:before { content: "\f457"; } 166 | .genericon-hide:before { content: "\f404"; } 167 | .genericon-hierarchy:before { content: "\f505"; } 168 | .genericon-home:before { content: "\f409"; } 169 | .genericon-image:before { content: "\f102"; } 170 | .genericon-info:before { content: "\f455"; } 171 | .genericon-instagram:before { content: "\f215"; } 172 | .genericon-italic:before { content: "\f472"; } 173 | .genericon-key:before { content: "\f427"; } 174 | .genericon-leftarrow:before { content: "\f503"; } 175 | .genericon-link:before { content: "\f107"; } 176 | .genericon-linkedin:before { content: "\f207"; } 177 | .genericon-linkedin-alt:before { content: "\f208"; } 178 | .genericon-location:before { content: "\f417"; } 179 | .genericon-lock:before { content: "\f470"; } 180 | .genericon-mail:before { content: "\f410"; } 181 | .genericon-maximize:before { content: "\f422"; } 182 | .genericon-menu:before { content: "\f419"; } 183 | .genericon-microphone:before { content: "\f50d"; } 184 | .genericon-minimize:before { content: "\f421"; } 185 | .genericon-minus:before { content: "\f50e"; } 186 | .genericon-month:before { content: "\f307"; } 187 | .genericon-move:before { content: "\f50f"; } 188 | .genericon-next:before { content: "\f429"; } 189 | .genericon-notice:before { content: "\f456"; } 190 | .genericon-paintbrush:before { content: "\f506"; } 191 | .genericon-path:before { content: "\f219"; } 192 | .genericon-pause:before { content: "\f448"; } 193 | .genericon-phone:before { content: "\f437"; } 194 | .genericon-picture:before { content: "\f473"; } 195 | .genericon-pinned:before { content: "\f308"; } 196 | .genericon-pinterest:before { content: "\f209"; } 197 | .genericon-pinterest-alt:before { content: "\f210"; } 198 | .genericon-play:before { content: "\f452"; } 199 | .genericon-plugin:before { content: "\f439"; } 200 | .genericon-plus:before { content: "\f510"; } 201 | .genericon-pocket:before { content: "\f224"; } 202 | .genericon-polldaddy:before { content: "\f217"; } 203 | .genericon-portfolio:before { content: "\f460"; } 204 | .genericon-previous:before { content: "\f430"; } 205 | .genericon-print:before { content: "\f469"; } 206 | .genericon-quote:before { content: "\f106"; } 207 | .genericon-rating-empty:before { content: "\f511"; } 208 | .genericon-rating-full:before { content: "\f512"; } 209 | .genericon-rating-half:before { content: "\f513"; } 210 | .genericon-reddit:before { content: "\f222"; } 211 | .genericon-refresh:before { content: "\f420"; } 212 | .genericon-reply:before { content: "\f412"; } 213 | .genericon-reply-alt:before { content: "\f466"; } 214 | .genericon-reply-single:before { content: "\f467"; } 215 | .genericon-rewind:before { content: "\f459"; } 216 | .genericon-rightarrow:before { content: "\f501"; } 217 | .genericon-search:before { content: "\f400"; } 218 | .genericon-send-to-phone:before { content: "\f438"; } 219 | .genericon-send-to-tablet:before { content: "\f454"; } 220 | .genericon-share:before { content: "\f415"; } 221 | .genericon-show:before { content: "\f403"; } 222 | .genericon-shuffle:before { content: "\f514"; } 223 | .genericon-sitemap:before { content: "\f507"; } 224 | .genericon-skip-ahead:before { content: "\f451"; } 225 | .genericon-skip-back:before { content: "\f450"; } 226 | .genericon-skype:before { content: "\f220"; } 227 | .genericon-spam:before { content: "\f424"; } 228 | .genericon-spotify:before { content: "\f515"; } 229 | .genericon-standard:before { content: "\f100"; } 230 | .genericon-star:before { content: "\f408"; } 231 | .genericon-status:before { content: "\f105"; } 232 | .genericon-stop:before { content: "\f449"; } 233 | .genericon-stumbleupon:before { content: "\f223"; } 234 | .genericon-subscribe:before { content: "\f463"; } 235 | .genericon-subscribed:before { content: "\f465"; } 236 | .genericon-summary:before { content: "\f425"; } 237 | .genericon-tablet:before { content: "\f453"; } 238 | .genericon-tag:before { content: "\f302"; } 239 | .genericon-time:before { content: "\f303"; } 240 | .genericon-top:before { content: "\f435"; } 241 | .genericon-trash:before { content: "\f407"; } 242 | .genericon-tumblr:before { content: "\f214"; } 243 | .genericon-twitch:before { content: "\f516"; } 244 | .genericon-twitter:before { content: "\f202"; } 245 | .genericon-unapprove:before { content: "\f446"; } 246 | .genericon-unsubscribe:before { content: "\f464"; } 247 | .genericon-unzoom:before { content: "\f401"; } 248 | .genericon-uparrow:before { content: "\f500"; } 249 | .genericon-user:before { content: "\f304"; } 250 | .genericon-video:before { content: "\f104"; } 251 | .genericon-videocamera:before { content: "\f517"; } 252 | .genericon-vimeo:before { content: "\f212"; } 253 | .genericon-warning:before { content: "\f414"; } 254 | .genericon-website:before { content: "\f475"; } 255 | .genericon-week:before { content: "\f306"; } 256 | .genericon-wordpress:before { content: "\f205"; } 257 | .genericon-xpost:before { content: "\f504"; } 258 | .genericon-youtube:before { content: "\f213"; } 259 | .genericon-zoom:before { content: "\f402"; } 260 | 261 | 262 | 263 | 264 | -------------------------------------------------------------------------------- /inc/customizer.php: -------------------------------------------------------------------------------- 1 | $default_background_color, 35 | ) ) ); 36 | 37 | /** 38 | * Filter the arguments used when adding 'custom-header' support in Twenty Sixteen. 39 | * 40 | * @since Twenty Sixteen 1.0 41 | * 42 | * @param array $args { 43 | * An array of custom-header support arguments. 44 | * 45 | * @type string $default-text-color Default color of the header text. 46 | * @type int $width Width in pixels of the custom header image. Default 1200. 47 | * @type int $height Height in pixels of the custom header image. Default 280. 48 | * @type bool $flex-height Whether to allow flexible-height header images. Default true. 49 | * @type callable $wp-head-callback Callback function used to style the header image and text 50 | * displayed on the blog. 51 | * } 52 | */ 53 | add_theme_support( 'custom-header', apply_filters( 'twentysixteen_custom_header_args', array( 54 | 'default-text-color' => $default_text_color, 55 | 'width' => 1200, 56 | 'height' => 280, 57 | 'flex-height' => true, 58 | 'wp-head-callback' => 'twentysixteen_header_style', 59 | ) ) ); 60 | } 61 | add_action( 'after_setup_theme', 'twentysixteen_custom_header_and_background' ); 62 | 63 | if ( ! function_exists( 'twentysixteen_header_style' ) ) : 64 | /** 65 | * Styles the header text displayed on the site. 66 | * 67 | * Create your own twentysixteen_header_style() function to override in a child theme. 68 | * 69 | * @since Twenty Sixteen 1.0 70 | * 71 | * @see twentysixteen_custom_header_and_background(). 72 | */ 73 | function twentysixteen_header_style() { 74 | // If the header text option is untouched, let's bail. 75 | if ( display_header_text() ) { 76 | return; 77 | } 78 | 79 | // If the header text has been hidden. 80 | ?> 81 | 92 | get_setting( 'blogname' )->transport = 'refresh'; 107 | $wp_customize->get_setting( 'blogdescription' )->transport = 'refresh'; 108 | 109 | if ( isset( $wp_customize->selective_refresh ) ) { 110 | $wp_customize->selective_refresh->add_partial( 'blogname', array( 111 | 'selector' => '.site-title a', 112 | 'container_inclusive' => false, 113 | 'render_callback' => 'twentysixteen_customize_partial_blogname', 114 | ) ); 115 | $wp_customize->selective_refresh->add_partial( 'blogdescription', array( 116 | 'selector' => '.site-description', 117 | 'container_inclusive' => false, 118 | 'render_callback' => 'twentysixteen_customize_partial_blogdescription', 119 | ) ); 120 | } 121 | 122 | // Add color scheme setting and control. 123 | $wp_customize->add_setting( 'color_scheme', array( 124 | 'default' => 'default', 125 | 'sanitize_callback' => 'twentysixteen_sanitize_color_scheme', 126 | 'transport' => 'refresh', 127 | ) ); 128 | 129 | $wp_customize->add_control( 'color_scheme', array( 130 | 'label' => __( 'Base Color Scheme', 'twentysixteen' ), 131 | 'section' => 'colors', 132 | 'type' => 'select', 133 | 'choices' => twentysixteen_get_color_scheme_choices(), 134 | 'priority' => 1, 135 | ) ); 136 | 137 | // Add page background color setting and control. 138 | $wp_customize->add_setting( 'page_background_color', array( 139 | 'default' => $color_scheme[1], 140 | 'sanitize_callback' => 'sanitize_hex_color', 141 | 'transport' => 'refresh', 142 | ) ); 143 | 144 | $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'page_background_color', array( 145 | 'label' => __( 'Page Background Color', 'twentysixteen' ), 146 | 'section' => 'colors', 147 | ) ) ); 148 | 149 | // Remove the core header textcolor control, as it shares the main text color. 150 | $wp_customize->remove_control( 'header_textcolor' ); 151 | 152 | // Add link color setting and control. 153 | $wp_customize->add_setting( 'link_color', array( 154 | 'default' => $color_scheme[2], 155 | 'sanitize_callback' => 'sanitize_hex_color', 156 | 'transport' => 'refresh', 157 | ) ); 158 | 159 | $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'link_color', array( 160 | 'label' => __( 'Link Color', 'twentysixteen' ), 161 | 'section' => 'colors', 162 | ) ) ); 163 | 164 | // Add main text color setting and control. 165 | $wp_customize->add_setting( 'main_text_color', array( 166 | 'default' => $color_scheme[3], 167 | 'sanitize_callback' => 'sanitize_hex_color', 168 | 'transport' => 'refresh', 169 | ) ); 170 | 171 | $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'main_text_color', array( 172 | 'label' => __( 'Main Text Color', 'twentysixteen' ), 173 | 'section' => 'colors', 174 | ) ) ); 175 | 176 | // Add secondary text color setting and control. 177 | $wp_customize->add_setting( 'secondary_text_color', array( 178 | 'default' => $color_scheme[4], 179 | 'sanitize_callback' => 'sanitize_hex_color', 180 | 'transport' => 'refresh', 181 | ) ); 182 | 183 | $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'secondary_text_color', array( 184 | 'label' => __( 'Secondary Text Color', 'twentysixteen' ), 185 | 'section' => 'colors', 186 | ) ) ); 187 | } 188 | add_action( 'customize_register', 'twentysixteen_customize_register', 11 ); 189 | 190 | /** 191 | * Render the site title for the selective refresh partial. 192 | * 193 | * @since Twenty Sixteen 1.2 194 | * @see twentysixteen_customize_register() 195 | * 196 | * @return void 197 | */ 198 | function twentysixteen_customize_partial_blogname() { 199 | bloginfo( 'name' ); 200 | } 201 | 202 | /** 203 | * Render the site tagline for the selective refresh partial. 204 | * 205 | * @since Twenty Sixteen 1.2 206 | * @see twentysixteen_customize_register() 207 | * 208 | * @return void 209 | */ 210 | function twentysixteen_customize_partial_blogdescription() { 211 | bloginfo( 'description' ); 212 | } 213 | 214 | /** 215 | * Registers color schemes for Twenty Sixteen. 216 | * 217 | * Can be filtered with {@see 'twentysixteen_color_schemes'}. 218 | * 219 | * The order of colors in a colors array: 220 | * 1. Main Background Color. 221 | * 2. Page Background Color. 222 | * 3. Link Color. 223 | * 4. Main Text Color. 224 | * 5. Secondary Text Color. 225 | * 226 | * @since Twenty Sixteen 1.0 227 | * 228 | * @return array An associative array of color scheme options. 229 | */ 230 | function twentysixteen_get_color_schemes() { 231 | /** 232 | * Filter the color schemes registered for use with Twenty Sixteen. 233 | * 234 | * The default schemes include 'default', 'dark', 'gray', 'red', and 'yellow'. 235 | * 236 | * @since Twenty Sixteen 1.0 237 | * 238 | * @param array $schemes { 239 | * Associative array of color schemes data. 240 | * 241 | * @type array $slug { 242 | * Associative array of information for setting up the color scheme. 243 | * 244 | * @type string $label Color scheme label. 245 | * @type array $colors HEX codes for default colors prepended with a hash symbol ('#'). 246 | * Colors are defined in the following order: Main background, page 247 | * background, link, main text, secondary text. 248 | * } 249 | * } 250 | */ 251 | return apply_filters( 'twentysixteen_color_schemes', array( 252 | 'default' => array( 253 | 'label' => __( 'Default', 'twentysixteen' ), 254 | 'colors' => array( 255 | '#1a1a1a', 256 | '#ffffff', 257 | '#007acc', 258 | '#1a1a1a', 259 | '#686868', 260 | ), 261 | ), 262 | 'dark' => array( 263 | 'label' => __( 'Dark', 'twentysixteen' ), 264 | 'colors' => array( 265 | '#262626', 266 | '#1a1a1a', 267 | '#9adffd', 268 | '#e5e5e5', 269 | '#c1c1c1', 270 | ), 271 | ), 272 | 'gray' => array( 273 | 'label' => __( 'Gray', 'twentysixteen' ), 274 | 'colors' => array( 275 | '#616a73', 276 | '#4d545c', 277 | '#c7c7c7', 278 | '#f2f2f2', 279 | '#f2f2f2', 280 | ), 281 | ), 282 | 'red' => array( 283 | 'label' => __( 'Red', 'twentysixteen' ), 284 | 'colors' => array( 285 | '#ffffff', 286 | '#ff675f', 287 | '#640c1f', 288 | '#402b30', 289 | '#402b30', 290 | ), 291 | ), 292 | 'yellow' => array( 293 | 'label' => __( 'Yellow', 'twentysixteen' ), 294 | 'colors' => array( 295 | '#3b3721', 296 | '#ffef8e', 297 | '#774e24', 298 | '#3b3721', 299 | '#5b4d3e', 300 | ), 301 | ), 302 | ) ); 303 | } 304 | 305 | if ( ! function_exists( 'twentysixteen_get_color_scheme' ) ) : 306 | /** 307 | * Retrieves the current Twenty Sixteen color scheme. 308 | * 309 | * Create your own twentysixteen_get_color_scheme() function to override in a child theme. 310 | * 311 | * @since Twenty Sixteen 1.0 312 | * 313 | * @return array An associative array of either the current or default color scheme HEX values. 314 | */ 315 | function twentysixteen_get_color_scheme() { 316 | $color_scheme_option = get_theme_mod( 'color_scheme', 'default' ); 317 | $color_schemes = twentysixteen_get_color_schemes(); 318 | 319 | if ( array_key_exists( $color_scheme_option, $color_schemes ) ) { 320 | return $color_schemes[ $color_scheme_option ]['colors']; 321 | } 322 | 323 | return $color_schemes['default']['colors']; 324 | } 325 | endif; // twentysixteen_get_color_scheme 326 | 327 | if ( ! function_exists( 'twentysixteen_get_color_scheme_choices' ) ) : 328 | /** 329 | * Retrieves an array of color scheme choices registered for Twenty Sixteen. 330 | * 331 | * Create your own twentysixteen_get_color_scheme_choices() function to override 332 | * in a child theme. 333 | * 334 | * @since Twenty Sixteen 1.0 335 | * 336 | * @return array Array of color schemes. 337 | */ 338 | function twentysixteen_get_color_scheme_choices() { 339 | $color_schemes = twentysixteen_get_color_schemes(); 340 | $color_scheme_control_options = array(); 341 | 342 | foreach ( $color_schemes as $color_scheme => $value ) { 343 | $color_scheme_control_options[ $color_scheme ] = $value['label']; 344 | } 345 | 346 | return $color_scheme_control_options; 347 | } 348 | endif; // twentysixteen_get_color_scheme_choices 349 | 350 | 351 | if ( ! function_exists( 'twentysixteen_sanitize_color_scheme' ) ) : 352 | /** 353 | * Handles sanitization for Twenty Sixteen color schemes. 354 | * 355 | * Create your own twentysixteen_sanitize_color_scheme() function to override 356 | * in a child theme. 357 | * 358 | * @since Twenty Sixteen 1.0 359 | * 360 | * @param string $value Color scheme name value. 361 | * @return string Color scheme name. 362 | */ 363 | function twentysixteen_sanitize_color_scheme( $value ) { 364 | $color_schemes = twentysixteen_get_color_scheme_choices(); 365 | 366 | if ( ! array_key_exists( $value, $color_schemes ) ) { 367 | return 'default'; 368 | } 369 | 370 | return $value; 371 | } 372 | endif; // twentysixteen_sanitize_color_scheme 373 | 374 | /** 375 | * Enqueues front-end CSS for color scheme. 376 | * 377 | * @since Twenty Sixteen 1.0 378 | * 379 | * @see wp_add_inline_style() 380 | */ 381 | function twentysixteen_color_scheme_css() { 382 | $color_scheme_option = get_theme_mod( 'color_scheme', 'default' ); 383 | 384 | // Don't do anything if the default color scheme is selected. 385 | if ( 'default' === $color_scheme_option ) { 386 | return; 387 | } 388 | 389 | $color_scheme = twentysixteen_get_color_scheme(); 390 | 391 | // Convert main text hex color to rgba. 392 | $color_textcolor_rgb = twentysixteen_hex2rgb( $color_scheme[3] ); 393 | 394 | // If the rgba values are empty return early. 395 | if ( empty( $color_textcolor_rgb ) ) { 396 | return; 397 | } 398 | 399 | // If we get this far, we have a custom color scheme. 400 | $colors = array( 401 | 'background_color' => $color_scheme[0], 402 | 'page_background_color' => $color_scheme[1], 403 | 'link_color' => $color_scheme[2], 404 | 'main_text_color' => $color_scheme[3], 405 | 'secondary_text_color' => $color_scheme[4], 406 | 'border_color' => vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.2)', $color_textcolor_rgb ), 407 | 408 | ); 409 | 410 | $color_scheme_css = twentysixteen_get_color_scheme_css( $colors ); 411 | 412 | wp_add_inline_style( 'twentysixteen-style', $color_scheme_css ); 413 | } 414 | add_action( 'wp_enqueue_scripts', 'twentysixteen_color_scheme_css' ); 415 | 416 | /** 417 | * Binds the JS listener to make Customizer color_scheme control. 418 | * 419 | * Passes color scheme data as colorScheme global. 420 | * 421 | * @since Twenty Sixteen 1.0 422 | */ 423 | function twentysixteen_customize_control_js() { 424 | wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20160816', true ); 425 | wp_localize_script( 'color-scheme-control', 'colorScheme', twentysixteen_get_color_schemes() ); 426 | } 427 | add_action( 'customize_controls_enqueue_scripts', 'twentysixteen_customize_control_js' ); 428 | 429 | /** 430 | * Binds JS handlers to make the Customizer preview reload changes asynchronously. 431 | * 432 | * @since Twenty Sixteen 1.0 433 | */ 434 | function twentysixteen_customize_preview_js() { 435 | wp_enqueue_script( 'twentysixteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20160816', true ); 436 | } 437 | add_action( 'customize_preview_init', 'twentysixteen_customize_preview_js' ); 438 | 439 | /** 440 | * Returns CSS for the color schemes. 441 | * 442 | * @since Twenty Sixteen 1.0 443 | * 444 | * @param array $colors Color scheme colors. 445 | * @return string Color scheme CSS. 446 | */ 447 | function twentysixteen_get_color_scheme_css( $colors ) { 448 | $colors = wp_parse_args( $colors, array( 449 | 'background_color' => '', 450 | 'page_background_color' => '', 451 | 'link_color' => '', 452 | 'main_text_color' => '', 453 | 'secondary_text_color' => '', 454 | 'border_color' => '', 455 | ) ); 456 | 457 | return << .page-links-title, 592 | .comment-author, 593 | .comment-reply-title small a:hover, 594 | .comment-reply-title small a:focus { 595 | color: {$colors['main_text_color']}; 596 | } 597 | 598 | blockquote, 599 | .menu-toggle.toggled-on, 600 | .menu-toggle.toggled-on:hover, 601 | .menu-toggle.toggled-on:focus, 602 | .post-navigation, 603 | .post-navigation div + div, 604 | .pagination, 605 | .widget, 606 | .page-header, 607 | .page-links a, 608 | .comments-title, 609 | .comment-reply-title { 610 | border-color: {$colors['main_text_color']}; 611 | } 612 | 613 | button, 614 | button[disabled]:hover, 615 | button[disabled]:focus, 616 | input[type="button"], 617 | input[type="button"][disabled]:hover, 618 | input[type="button"][disabled]:focus, 619 | input[type="reset"], 620 | input[type="reset"][disabled]:hover, 621 | input[type="reset"][disabled]:focus, 622 | input[type="submit"], 623 | input[type="submit"][disabled]:hover, 624 | input[type="submit"][disabled]:focus, 625 | .menu-toggle.toggled-on, 626 | .menu-toggle.toggled-on:hover, 627 | .menu-toggle.toggled-on:focus, 628 | .pagination:before, 629 | .pagination:after, 630 | .pagination .prev, 631 | .pagination .next, 632 | .page-links a { 633 | background-color: {$colors['main_text_color']}; 634 | } 635 | 636 | /* Secondary Text Color */ 637 | 638 | /** 639 | * IE8 and earlier will drop any block with CSS3 selectors. 640 | * Do not combine these styles with the next block. 641 | */ 642 | body:not(.search-results) .entry-summary { 643 | color: {$colors['secondary_text_color']}; 644 | } 645 | 646 | blockquote, 647 | .post-password-form label, 648 | a:hover, 649 | a:focus, 650 | a:active, 651 | .post-navigation .meta-nav, 652 | .image-navigation, 653 | .comment-navigation, 654 | .widget_recent_entries .post-date, 655 | .widget_rss .rss-date, 656 | .widget_rss cite, 657 | .site-description, 658 | .author-bio, 659 | .entry-footer, 660 | .entry-footer a, 661 | .sticky-post, 662 | .taxonomy-description, 663 | .entry-caption, 664 | .comment-metadata, 665 | .pingback .edit-link, 666 | .comment-metadata a, 667 | .pingback .comment-edit-link, 668 | .comment-form label, 669 | .comment-notes, 670 | .comment-awaiting-moderation, 671 | .logged-in-as, 672 | .form-allowed-tags, 673 | .site-info, 674 | .site-info a, 675 | .wp-caption .wp-caption-text, 676 | .gallery-caption, 677 | .widecolumn label, 678 | .widecolumn .mu_register label { 679 | color: {$colors['secondary_text_color']}; 680 | } 681 | 682 | .widget_calendar tbody a:hover, 683 | .widget_calendar tbody a:focus { 684 | background-color: {$colors['secondary_text_color']}; 685 | } 686 | 687 | /* Border Color */ 688 | fieldset, 689 | pre, 690 | abbr, 691 | acronym, 692 | table, 693 | th, 694 | td, 695 | input[type="date"], 696 | input[type="time"], 697 | input[type="datetime-local"], 698 | input[type="week"], 699 | input[type="month"], 700 | input[type="text"], 701 | input[type="email"], 702 | input[type="url"], 703 | input[type="password"], 704 | input[type="search"], 705 | input[type="tel"], 706 | input[type="number"], 707 | textarea, 708 | .main-navigation li, 709 | .main-navigation .primary-menu, 710 | .menu-toggle, 711 | .dropdown-toggle:after, 712 | .social-navigation a, 713 | .image-navigation, 714 | .comment-navigation, 715 | .tagcloud a, 716 | .entry-content, 717 | .entry-summary, 718 | .page-links a, 719 | .page-links > span, 720 | .comment-list article, 721 | .comment-list .pingback, 722 | .comment-list .trackback, 723 | .comment-reply-link, 724 | .no-comments, 725 | .widecolumn .mu_register .mu_alert { 726 | border-color: {$colors['main_text_color']}; /* Fallback for IE7 and IE8 */ 727 | border-color: {$colors['border_color']}; 728 | } 729 | 730 | hr, 731 | code { 732 | background-color: {$colors['main_text_color']}; /* Fallback for IE7 and IE8 */ 733 | background-color: {$colors['border_color']}; 734 | } 735 | 736 | @media screen and (min-width: 56.875em) { 737 | .main-navigation li:hover > a, 738 | .main-navigation li.focus > a { 739 | color: {$colors['link_color']}; 740 | } 741 | 742 | .main-navigation ul ul, 743 | .main-navigation ul ul li { 744 | border-color: {$colors['border_color']}; 745 | } 746 | 747 | .main-navigation ul ul:before { 748 | border-top-color: {$colors['border_color']}; 749 | border-bottom-color: {$colors['border_color']}; 750 | } 751 | 752 | .main-navigation ul ul li { 753 | background-color: {$colors['page_background_color']}; 754 | } 755 | 756 | .main-navigation ul ul:after { 757 | border-top-color: {$colors['page_background_color']}; 758 | border-bottom-color: {$colors['page_background_color']}; 759 | } 760 | } 761 | 762 | CSS; 763 | } 764 | 765 | 766 | /** 767 | * Outputs an Underscore template for generating CSS for the color scheme. 768 | * 769 | * The template generates the css dynamically for instant display in the 770 | * Customizer preview. 771 | * 772 | * @since Twenty Sixteen 1.0 773 | */ 774 | function twentysixteen_color_scheme_css_template() { 775 | $colors = array( 776 | 'background_color' => '{{ data.background_color }}', 777 | 'page_background_color' => '{{ data.page_background_color }}', 778 | 'link_color' => '{{ data.link_color }}', 779 | 'main_text_color' => '{{ data.main_text_color }}', 780 | 'secondary_text_color' => '{{ data.secondary_text_color }}', 781 | 'border_color' => '{{ data.border_color }}', 782 | ); 783 | ?> 784 | 787 | a, 957 | .main-navigation li.focus > a { 958 | color: %1$s; 959 | } 960 | } 961 | '; 962 | 963 | wp_add_inline_style( 'twentysixteen-style', sprintf( $css, $link_color ) ); 964 | } 965 | add_action( 'wp_enqueue_scripts', 'twentysixteen_link_color_css', 11 ); 966 | 967 | /** 968 | * Enqueues front-end CSS for the main text color. 969 | * 970 | * @since Twenty Sixteen 1.0 971 | * 972 | * @see wp_add_inline_style() 973 | */ 974 | function twentysixteen_main_text_color_css() { 975 | $color_scheme = twentysixteen_get_color_scheme(); 976 | $default_color = $color_scheme[3]; 977 | $main_text_color = get_theme_mod( 'main_text_color', $default_color ); 978 | 979 | // Don't do anything if the current color is the default. 980 | if ( $main_text_color === $default_color ) { 981 | return; 982 | } 983 | 984 | // Convert main text hex color to rgba. 985 | $main_text_color_rgb = twentysixteen_hex2rgb( $main_text_color ); 986 | 987 | // If the rgba values are empty return early. 988 | if ( empty( $main_text_color_rgb ) ) { 989 | return; 990 | } 991 | 992 | // If we get this far, we have a custom color scheme. 993 | $border_color = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.2)', $main_text_color_rgb ); 994 | 995 | $css = ' 996 | /* Custom Main Text Color */ 997 | body, 998 | blockquote cite, 999 | blockquote small, 1000 | .main-navigation a, 1001 | .menu-toggle, 1002 | .dropdown-toggle, 1003 | .social-navigation a, 1004 | .post-navigation a, 1005 | .pagination a:hover, 1006 | .pagination a:focus, 1007 | .widget-title a, 1008 | .site-branding .site-title a, 1009 | .entry-title a, 1010 | .page-links > .page-links-title, 1011 | .comment-author, 1012 | .comment-reply-title small a:hover, 1013 | .comment-reply-title small a:focus { 1014 | color: %1$s 1015 | } 1016 | 1017 | blockquote, 1018 | .menu-toggle.toggled-on, 1019 | .menu-toggle.toggled-on:hover, 1020 | .menu-toggle.toggled-on:focus, 1021 | .post-navigation, 1022 | .post-navigation div + div, 1023 | .pagination, 1024 | .widget, 1025 | .page-header, 1026 | .page-links a, 1027 | .comments-title, 1028 | .comment-reply-title { 1029 | border-color: %1$s; 1030 | } 1031 | 1032 | button, 1033 | button[disabled]:hover, 1034 | button[disabled]:focus, 1035 | input[type="button"], 1036 | input[type="button"][disabled]:hover, 1037 | input[type="button"][disabled]:focus, 1038 | input[type="reset"], 1039 | input[type="reset"][disabled]:hover, 1040 | input[type="reset"][disabled]:focus, 1041 | input[type="submit"], 1042 | input[type="submit"][disabled]:hover, 1043 | input[type="submit"][disabled]:focus, 1044 | .menu-toggle.toggled-on, 1045 | .menu-toggle.toggled-on:hover, 1046 | .menu-toggle.toggled-on:focus, 1047 | .pagination:before, 1048 | .pagination:after, 1049 | .pagination .prev, 1050 | .pagination .next, 1051 | .page-links a { 1052 | background-color: %1$s; 1053 | } 1054 | 1055 | /* Border Color */ 1056 | fieldset, 1057 | pre, 1058 | abbr, 1059 | acronym, 1060 | table, 1061 | th, 1062 | td, 1063 | input[type="date"], 1064 | input[type="time"], 1065 | input[type="datetime-local"], 1066 | input[type="week"], 1067 | input[type="month"], 1068 | input[type="text"], 1069 | input[type="email"], 1070 | input[type="url"], 1071 | input[type="password"], 1072 | input[type="search"], 1073 | input[type="tel"], 1074 | input[type="number"], 1075 | textarea, 1076 | .main-navigation li, 1077 | .main-navigation .primary-menu, 1078 | .menu-toggle, 1079 | .dropdown-toggle:after, 1080 | .social-navigation a, 1081 | .image-navigation, 1082 | .comment-navigation, 1083 | .tagcloud a, 1084 | .entry-content, 1085 | .entry-summary, 1086 | .page-links a, 1087 | .page-links > span, 1088 | .comment-list article, 1089 | .comment-list .pingback, 1090 | .comment-list .trackback, 1091 | .comment-reply-link, 1092 | .no-comments, 1093 | .widecolumn .mu_register .mu_alert { 1094 | border-color: %1$s; /* Fallback for IE7 and IE8 */ 1095 | border-color: %2$s; 1096 | } 1097 | 1098 | hr, 1099 | code { 1100 | background-color: %1$s; /* Fallback for IE7 and IE8 */ 1101 | background-color: %2$s; 1102 | } 1103 | 1104 | @media screen and (min-width: 56.875em) { 1105 | .main-navigation ul ul, 1106 | .main-navigation ul ul li { 1107 | border-color: %2$s; 1108 | } 1109 | 1110 | .main-navigation ul ul:before { 1111 | border-top-color: %2$s; 1112 | border-bottom-color: %2$s; 1113 | } 1114 | } 1115 | '; 1116 | 1117 | wp_add_inline_style( 'twentysixteen-style', sprintf( $css, $main_text_color, $border_color ) ); 1118 | } 1119 | add_action( 'wp_enqueue_scripts', 'twentysixteen_main_text_color_css', 11 ); 1120 | 1121 | /** 1122 | * Enqueues front-end CSS for the secondary text color. 1123 | * 1124 | * @since Twenty Sixteen 1.0 1125 | * 1126 | * @see wp_add_inline_style() 1127 | */ 1128 | function twentysixteen_secondary_text_color_css() { 1129 | $color_scheme = twentysixteen_get_color_scheme(); 1130 | $default_color = $color_scheme[4]; 1131 | $secondary_text_color = get_theme_mod( 'secondary_text_color', $default_color ); 1132 | 1133 | // Don't do anything if the current color is the default. 1134 | if ( $secondary_text_color === $default_color ) { 1135 | return; 1136 | } 1137 | 1138 | $css = ' 1139 | /* Custom Secondary Text Color */ 1140 | 1141 | /** 1142 | * IE8 and earlier will drop any block with CSS3 selectors. 1143 | * Do not combine these styles with the next block. 1144 | */ 1145 | body:not(.search-results) .entry-summary { 1146 | color: %1$s; 1147 | } 1148 | 1149 | blockquote, 1150 | .post-password-form label, 1151 | a:hover, 1152 | a:focus, 1153 | a:active, 1154 | .post-navigation .meta-nav, 1155 | .image-navigation, 1156 | .comment-navigation, 1157 | .widget_recent_entries .post-date, 1158 | .widget_rss .rss-date, 1159 | .widget_rss cite, 1160 | .site-description, 1161 | .author-bio, 1162 | .entry-footer, 1163 | .entry-footer a, 1164 | .sticky-post, 1165 | .taxonomy-description, 1166 | .entry-caption, 1167 | .comment-metadata, 1168 | .pingback .edit-link, 1169 | .comment-metadata a, 1170 | .pingback .comment-edit-link, 1171 | .comment-form label, 1172 | .comment-notes, 1173 | .comment-awaiting-moderation, 1174 | .logged-in-as, 1175 | .form-allowed-tags, 1176 | .site-info, 1177 | .site-info a, 1178 | .wp-caption .wp-caption-text, 1179 | .gallery-caption, 1180 | .widecolumn label, 1181 | .widecolumn .mu_register label { 1182 | color: %1$s; 1183 | } 1184 | 1185 | .widget_calendar tbody a:hover, 1186 | .widget_calendar tbody a:focus { 1187 | background-color: %1$s; 1188 | } 1189 | '; 1190 | 1191 | wp_add_inline_style( 'twentysixteen-style', sprintf( $css, $secondary_text_color ) ); 1192 | } 1193 | add_action( 'wp_enqueue_scripts', 'twentysixteen_secondary_text_color_css', 11 ); 1194 | -------------------------------------------------------------------------------- /inc/template-tags.php: -------------------------------------------------------------------------------- 1 | register_template_tag( 'twentysixteen_custom_header_sizes', function() { 13 | return apply_filters( 'twentysixteen_custom_header_sizes', '(max-width: 709px) 85vw, (max-width: 909px) 81vw, (max-width: 1362px) 88vw, 1200px' ); 14 | }, true, 'after_theme_setup' ); 15 | 16 | \NodeifyWP\App::instance()->register_template_tag( 'twentysixteen_the_custom_logo', function() { 17 | if ( function_exists( 'the_custom_logo' ) ) { 18 | ob_start(); 19 | 20 | the_custom_logo(); 21 | 22 | return ob_get_clean(); 23 | } 24 | } ); 25 | 26 | \NodeifyWP\App::instance()->register_post_tag( 'twentysixteen_entry_meta', function( $post ) { 27 | ob_start(); 28 | 29 | if ( 'post' === get_post_type() ) { 30 | $author_avatar_size = apply_filters( 'twentysixteen_author_avatar_size', 49 ); 31 | printf( '', 32 | get_avatar( get_the_author_meta( 'user_email' ), $author_avatar_size ), 33 | _x( 'Author', 'Used before post author name.', 'twentysixteen' ), 34 | esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 35 | get_the_author() 36 | ); 37 | } 38 | 39 | if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) { 40 | twentysixteen_entry_date(); 41 | } 42 | 43 | $format = get_post_format(); 44 | if ( current_theme_supports( 'post-formats', $format ) ) { 45 | printf( '%1$s%3$s', 46 | sprintf( '%s ', _x( 'Format', 'Used before post format.', 'twentysixteen' ) ), 47 | esc_url( get_post_format_link( $format ) ), 48 | get_post_format_string( $format ) 49 | ); 50 | } 51 | 52 | if ( 'post' === get_post_type() ) { 53 | twentysixteen_entry_taxonomies(); 54 | } 55 | 56 | if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { 57 | echo ''; 58 | comments_popup_link( sprintf( __( 'Leave a comment on %s', 'twentysixteen' ), get_the_title() ) ); 59 | echo ''; 60 | } 61 | 62 | return ob_get_clean(); 63 | } ); 64 | 65 | \NodeifyWP\App::instance()->register_post_tag( 'twentysixteen_post_thumbnail', function() { 66 | if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { 67 | return ''; 68 | } 69 | 70 | ob_start(); 71 | 72 | if ( is_singular() ) : 73 | ?> 74 | 75 |
76 | 77 |
78 | 79 | 80 | 81 | 84 | 85 | register_template_tag( 'twentysixteen_credits', function() { 91 | ob_start(); 92 | 93 | do_action( 'twentysixteen_credits' ); 94 | 95 | return ob_get_clean(); 96 | } ); 97 | 98 | \NodeifyWP\App::instance()->register_post_tag( 'edit_link', function() { 99 | ob_start(); 100 | 101 | edit_post_link( 102 | sprintf( 103 | /* translators: %s: Name of current post */ 104 | __( 'Edit "%s"', 'twentysixteen' ), 105 | get_the_title() 106 | ), 107 | '', 108 | '' 109 | ); 110 | 111 | return ob_get_clean(); 112 | } ); 113 | 114 | \NodeifyWP\App::instance()->register_post_tag( 'comments_title', function() { 115 | ob_start(); 116 | 117 | $comments_number = get_comments_number(); 118 | if ( 1 === $comments_number ) { 119 | /* translators: %s: post title */ 120 | printf( _x( 'One thought on “%s”', 'comments title', 'twentysixteen' ), get_the_title() ); 121 | } else { 122 | printf( 123 | /* translators: 1: number of comments, 2: post title */ 124 | _nx( 125 | '%1$s thought on “%2$s”', 126 | '%1$s thoughts on “%2$s”', 127 | $comments_number, 128 | 'comments title', 129 | 'twentysixteen' 130 | ), 131 | number_format_i18n( $comments_number ), 132 | get_the_title() 133 | ); 134 | } 135 | 136 | return ob_get_clean(); 137 | } ); 138 | 139 | \NodeifyWP\App::instance()->register_post_tag( 'comments_title', function() { 140 | ob_start(); 141 | 142 | the_comments_navigation(); 143 | 144 | return ob_get_clean(); 145 | } ); 146 | 147 | \NodeifyWP\App::instance()->register_post_tag( 'comments_number', function() { 148 | return get_comments_number(); 149 | } ); 150 | 151 | \NodeifyWP\App::instance()->register_post_tag( 'comments_html', function() { 152 | ob_start(); 153 | ?> 154 | 155 |
    156 | 'ol', 159 | 'per_page' => 20, 160 | 'short_ping' => true, 161 | 'avatar_size' => 42, 162 | ) ); 163 | ?> 164 |
165 | 166 | register_post_tag( 'comment_form', function() { 171 | ob_start(); 172 | 173 | comment_form( array( 174 | 'title_reply_before' => '

', 175 | 'title_reply_after' => '

', 176 | ) ); 177 | 178 | return ob_get_clean(); 179 | } ); 180 | 181 | if ( ! function_exists( 'twentysixteen_entry_date' ) ) : 182 | /** 183 | * Prints HTML with date information for current post. 184 | * 185 | * Create your own twentysixteen_entry_date() function to override in a child theme. 186 | * 187 | * @since Twenty Sixteen 1.0 188 | */ 189 | function twentysixteen_entry_date() { 190 | $time_string = ''; 191 | 192 | if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { 193 | $time_string = ''; 194 | } 195 | 196 | $time_string = sprintf( $time_string, 197 | esc_attr( get_the_date( 'c' ) ), 198 | get_the_date(), 199 | esc_attr( get_the_modified_date( 'c' ) ), 200 | get_the_modified_date() 201 | ); 202 | 203 | printf( '%1$s %3$s', 204 | _x( 'Posted on', 'Used before publish date.', 'twentysixteen' ), 205 | esc_url( get_permalink() ), 206 | $time_string 207 | ); 208 | } 209 | endif; 210 | 211 | if ( ! function_exists( 'twentysixteen_entry_taxonomies' ) ) : 212 | /** 213 | * Prints HTML with category and tags for current post. 214 | * 215 | * Create your own twentysixteen_entry_taxonomies() function to override in a child theme. 216 | * 217 | * @since Twenty Sixteen 1.0 218 | */ 219 | function twentysixteen_entry_taxonomies() { 220 | $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentysixteen' ) ); 221 | if ( $categories_list && twentysixteen_categorized_blog() ) { 222 | printf( '%1$s %2$s', 223 | _x( 'Categories', 'Used before category names.', 'twentysixteen' ), 224 | $categories_list 225 | ); 226 | } 227 | 228 | $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentysixteen' ) ); 229 | if ( $tags_list ) { 230 | printf( '%1$s %2$s', 231 | _x( 'Tags', 'Used before tag names.', 'twentysixteen' ), 232 | $tags_list 233 | ); 234 | } 235 | } 236 | endif; 237 | 238 | if ( ! function_exists( 'twentysixteen_categorized_blog' ) ) : 239 | /** 240 | * Determines whether blog/site has more than one category. 241 | * 242 | * Create your own twentysixteen_categorized_blog() function to override in a child theme. 243 | * 244 | * @since Twenty Sixteen 1.0 245 | * 246 | * @return bool True if there is more than one category, false otherwise. 247 | */ 248 | function twentysixteen_categorized_blog() { 249 | if ( false === ( $all_the_cool_cats = get_transient( 'twentysixteen_categories' ) ) ) { 250 | // Create an array of all the categories that are attached to posts. 251 | $all_the_cool_cats = get_categories( array( 252 | 'fields' => 'ids', 253 | // We only need to know if there is more than one category. 254 | 'number' => 2, 255 | ) ); 256 | 257 | // Count the number of categories that are attached to the posts. 258 | $all_the_cool_cats = count( $all_the_cool_cats ); 259 | 260 | set_transient( 'twentysixteen_categories', $all_the_cool_cats ); 261 | } 262 | 263 | if ( $all_the_cool_cats > 1 ) { 264 | // This blog has more than 1 category so twentysixteen_categorized_blog should return true. 265 | return true; 266 | } else { 267 | // This blog has only 1 category so twentysixteen_categorized_blog should return false. 268 | return false; 269 | } 270 | } 271 | endif; 272 | 273 | /** 274 | * Flushes out the transients used in twentysixteen_categorized_blog(). 275 | * 276 | * @since Twenty Sixteen 1.0 277 | */ 278 | function twentysixteen_category_transient_flusher() { 279 | if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { 280 | return; 281 | } 282 | // Like, beat it. Dig? 283 | delete_transient( 'twentysixteen_categories' ); 284 | } 285 | add_action( 'edit_category', 'twentysixteen_category_transient_flusher' ); 286 | add_action( 'save_post', 'twentysixteen_category_transient_flusher' ); 287 | 288 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/twentysixteenreact/539a7ca7cb0d39f0551a2d8703ba7bc215f2d927/index.php -------------------------------------------------------------------------------- /js/color-scheme-control.js: -------------------------------------------------------------------------------- 1 | /* global colorScheme, Color */ 2 | /** 3 | * Add a listener to the Color Scheme control to update other color controls to new values/defaults. 4 | * Also trigger an update of the Color Scheme CSS when a color is changed. 5 | */ 6 | 7 | ( function( api ) { 8 | var cssTemplate = wp.template( 'twentysixteen-color-scheme' ), 9 | colorSchemeKeys = [ 10 | 'background_color', 11 | 'page_background_color', 12 | 'link_color', 13 | 'main_text_color', 14 | 'secondary_text_color' 15 | ], 16 | colorSettings = [ 17 | 'background_color', 18 | 'page_background_color', 19 | 'link_color', 20 | 'main_text_color', 21 | 'secondary_text_color' 22 | ]; 23 | 24 | api.controlConstructor.select = api.Control.extend( { 25 | ready: function() { 26 | if ( 'color_scheme' === this.id ) { 27 | this.setting.bind( 'change', function( value ) { 28 | var colors = colorScheme[value].colors; 29 | 30 | // Update Background Color. 31 | var color = colors[0]; 32 | api( 'background_color' ).set( color ); 33 | api.control( 'background_color' ).container.find( '.color-picker-hex' ) 34 | .data( 'data-default-color', color ) 35 | .wpColorPicker( 'defaultColor', color ); 36 | 37 | // Update Page Background Color. 38 | color = colors[1]; 39 | api( 'page_background_color' ).set( color ); 40 | api.control( 'page_background_color' ).container.find( '.color-picker-hex' ) 41 | .data( 'data-default-color', color ) 42 | .wpColorPicker( 'defaultColor', color ); 43 | 44 | // Update Link Color. 45 | color = colors[2]; 46 | api( 'link_color' ).set( color ); 47 | api.control( 'link_color' ).container.find( '.color-picker-hex' ) 48 | .data( 'data-default-color', color ) 49 | .wpColorPicker( 'defaultColor', color ); 50 | 51 | // Update Main Text Color. 52 | color = colors[3]; 53 | api( 'main_text_color' ).set( color ); 54 | api.control( 'main_text_color' ).container.find( '.color-picker-hex' ) 55 | .data( 'data-default-color', color ) 56 | .wpColorPicker( 'defaultColor', color ); 57 | 58 | // Update Secondary Text Color. 59 | color = colors[4]; 60 | api( 'secondary_text_color' ).set( color ); 61 | api.control( 'secondary_text_color' ).container.find( '.color-picker-hex' ) 62 | .data( 'data-default-color', color ) 63 | .wpColorPicker( 'defaultColor', color ); 64 | } ); 65 | } 66 | } 67 | } ); 68 | 69 | // Generate the CSS for the current Color Scheme. 70 | function updateCSS() { 71 | var scheme = api( 'color_scheme' )(), 72 | css, 73 | colors = _.object( colorSchemeKeys, colorScheme[ scheme ].colors ); 74 | 75 | // Merge in color scheme overrides. 76 | _.each( colorSettings, function( setting ) { 77 | colors[ setting ] = api( setting )(); 78 | } ); 79 | 80 | // Add additional color. 81 | // jscs:disable 82 | colors.border_color = Color( colors.main_text_color ).toCSS( 'rgba', 0.2 ); 83 | // jscs:enable 84 | 85 | css = cssTemplate( colors ); 86 | 87 | api.previewer.send( 'update-color-scheme-css', css ); 88 | } 89 | 90 | // Update the CSS whenever a color setting is changed. 91 | _.each( colorSettings, function( setting ) { 92 | api( setting, function( setting ) { 93 | setting.bind( updateCSS ); 94 | } ); 95 | } ); 96 | } )( wp.customize ); 97 | -------------------------------------------------------------------------------- /js/customize-preview.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Live-update changed settings in real time in the Customizer preview. 3 | */ 4 | 5 | ( function( $ ) { 6 | var style = $( '#twentysixteen-color-scheme-css' ), 7 | api = wp.customize; 8 | 9 | if ( ! style.length ) { 10 | style = $( 'head' ).append( ''; 72 | return parent.insertBefore(p.lastChild, parent.firstChild); 73 | } 74 | 75 | /** 76 | * Returns the value of `html5.elements` as an array. 77 | * @private 78 | * @returns {Array} An array of shived element node names. 79 | */ 80 | function getElements() { 81 | var elements = html5.elements; 82 | return typeof elements == 'string' ? elements.split(' ') : elements; 83 | } 84 | 85 | /** 86 | * Extends the built-in list of html5 elements 87 | * @memberOf html5 88 | * @param {String|Array} newElements whitespace separated list or array of new element names to shiv 89 | * @param {Document} ownerDocument The context document. 90 | */ 91 | function addElements(newElements, ownerDocument) { 92 | var elements = html5.elements; 93 | if(typeof elements != 'string'){ 94 | elements = elements.join(' '); 95 | } 96 | if(typeof newElements != 'string'){ 97 | newElements = newElements.join(' '); 98 | } 99 | html5.elements = elements +' '+ newElements; 100 | shivDocument(ownerDocument); 101 | } 102 | 103 | /** 104 | * Returns the data associated to the given document 105 | * @private 106 | * @param {Document} ownerDocument The document. 107 | * @returns {Object} An object of data. 108 | */ 109 | function getExpandoData(ownerDocument) { 110 | var data = expandoData[ownerDocument[expando]]; 111 | if (!data) { 112 | data = {}; 113 | expanID++; 114 | ownerDocument[expando] = expanID; 115 | expandoData[expanID] = data; 116 | } 117 | return data; 118 | } 119 | 120 | /** 121 | * returns a shived element for the given nodeName and document 122 | * @memberOf html5 123 | * @param {String} nodeName name of the element 124 | * @param {Document|DocumentFragment} ownerDocument The context document. 125 | * @returns {Object} The shived element. 126 | */ 127 | function createElement(nodeName, ownerDocument, data){ 128 | if (!ownerDocument) { 129 | ownerDocument = document; 130 | } 131 | if(supportsUnknownElements){ 132 | return ownerDocument.createElement(nodeName); 133 | } 134 | if (!data) { 135 | data = getExpandoData(ownerDocument); 136 | } 137 | var node; 138 | 139 | if (data.cache[nodeName]) { 140 | node = data.cache[nodeName].cloneNode(); 141 | } else if (saveClones.test(nodeName)) { 142 | node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); 143 | } else { 144 | node = data.createElem(nodeName); 145 | } 146 | 147 | // Avoid adding some elements to fragments in IE < 9 because 148 | // * Attributes like `name` or `type` cannot be set/changed once an element 149 | // is inserted into a document/fragment 150 | // * Link elements with `src` attributes that are inaccessible, as with 151 | // a 403 response, will cause the tab/window to crash 152 | // * Script elements appended to fragments will execute when their `src` 153 | // or `text` property is set 154 | return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node; 155 | } 156 | 157 | /** 158 | * returns a shived DocumentFragment for the given document 159 | * @memberOf html5 160 | * @param {Document} ownerDocument The context document. 161 | * @returns {Object} The shived DocumentFragment. 162 | */ 163 | function createDocumentFragment(ownerDocument, data){ 164 | if (!ownerDocument) { 165 | ownerDocument = document; 166 | } 167 | if(supportsUnknownElements){ 168 | return ownerDocument.createDocumentFragment(); 169 | } 170 | data = data || getExpandoData(ownerDocument); 171 | var clone = data.frag.cloneNode(), 172 | i = 0, 173 | elems = getElements(), 174 | l = elems.length; 175 | for(;i -1, 10 | isOpera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, 11 | isIE = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; 12 | 13 | if ( ( isWebkit || isOpera || isIE ) && document.getElementById && window.addEventListener ) { 14 | window.addEventListener( 'hashchange', function() { 15 | var id = location.hash.substring( 1 ), 16 | element; 17 | 18 | if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) { 19 | return; 20 | } 21 | 22 | element = document.getElementById( id ); 23 | 24 | if ( element ) { 25 | if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) { 26 | element.tabIndex = -1; 27 | } 28 | 29 | element.focus(); 30 | 31 | // Repositions the window on jump-to-anchor to account for admin bar and border height. 32 | window.scrollBy( 0, -53 ); 33 | } 34 | }, false ); 35 | } 36 | } )(); 37 | -------------------------------------------------------------------------------- /js/src/actions/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | export const setContext = (route, template_tags, posts, nav_menus, sidebars, user) => ({ type: 'SET_CONTEXT', route, template_tags, posts, nav_menus, sidebars, user }); 4 | 5 | export function navigate(location, apiUrl, user) { 6 | return function (dispatch) { 7 | if ('' === location) { 8 | location = '/'; 9 | } 10 | 11 | if (window && window.jQuery) { 12 | let data = { 13 | location: location 14 | }; 15 | 16 | if (user && user.rest_nonce) { 17 | data._wpnonce = user.rest_nonce; 18 | } 19 | 20 | return jQuery.ajax({ 21 | url: apiUrl, 22 | method: 'get', 23 | data: data, 24 | xhrFields: { 25 | withCredentials: true 26 | } 27 | }).done(function(data) { 28 | dispatch(setContext( 29 | data.route, 30 | data.template_tags, 31 | data.posts, 32 | data.nav_menus, 33 | data.sidebars, 34 | data.user 35 | )); 36 | 37 | history.pushState({}, data.route.document_title, location); 38 | }).error(function() { 39 | // @Todo: Handle error gracefully 40 | console.log('An error occured'); 41 | }); 42 | } 43 | }; 44 | } 45 | -------------------------------------------------------------------------------- /js/src/client.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Includes are compiled separately for heap snapshot purposes 5 | */ 6 | 7 | import App from './components/App.jsx'; 8 | import { Provider } from 'react-redux'; 9 | 10 | import { render } from 'react-dom'; 11 | 12 | let initialState = includes.immutable.Map(window.__INITIAL_STATE__); 13 | 14 | const store = includes.redux.createStore(includes.reducer, initialState, includes.redux.applyMiddleware(includes.thunk)); 15 | 16 | render( 17 | 18 | 19 | , 20 | document.querySelector('.nodeifywp-app-container') 21 | ); 22 | -------------------------------------------------------------------------------- /js/src/components/404.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | class Missing404 extends React.Component { 4 | render() { 5 | return ( 6 |
7 |
8 |
9 |
10 |

Oops! That page can’t be found.

11 |
12 | 13 |
14 |

It looks like nothing was found at this location.

15 |
16 |
17 |
18 |
19 | ); 20 | } 21 | } 22 | 23 | export default Missing404; 24 | -------------------------------------------------------------------------------- /js/src/components/App.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import River from './River.jsx'; 4 | import Single from './Single.jsx'; 5 | import Header from './Header.jsx'; 6 | import Missing404 from './404.jsx'; 7 | import Footer from './Footer.jsx'; 8 | import Sidebar from './Sidebar.jsx'; 9 | 10 | class App extends React.Component { 11 | constructor(props) { 12 | super(props); 13 | 14 | this.handleAllClickEvents = this.handleAllClickEvents.bind(this); 15 | } 16 | 17 | handleAllClickEvents(event) { 18 | 19 | const href = event.target.getAttribute('href'); 20 | const apiUrl = this.props.template_tags.home_url + '/wp-json/nodeifywp/v1/route'; 21 | let self = this; 22 | 23 | if ('A' === event.target.nodeName && href) { 24 | if ((href.match(this.props.template_tags.home_url) || href.match(/^\//)) && !href.match(/\/wp-admin/i)) { 25 | event.preventDefault(); 26 | 27 | this.props.actions.navigate(href.replace(this.props.template_tags.home_url, ''), apiUrl, this.props.user).then(function() { 28 | document.querySelector('title').innerHTML = self.props.route.document_title; 29 | }); 30 | } 31 | } 32 | } 33 | 34 | render() { 35 | let initialStateString = 'window.__INITIAL_STATE__ = ' + includes.htmlescape(this.props) + ';'; 36 | 37 | return ( 38 |
39 |
40 | 41 |
42 | 43 |
44 | { ('single' === this.props.route.type || '404' === this.props.route.type) ? 45 |
46 | { 'single' === this.props.route.type ? 47 | 48 | : 49 | 50 | } 51 |
52 | : 53 | 54 | } 55 | 56 | 57 |
58 |
59 |
60 | 61 |
62 | 63 |
64 | 65 | 66 |
67 | ); 68 | } 69 | } 70 | 71 | const mapStateToProps = state => ({ 72 | route: state.get('route'), 73 | posts: state.get('posts'), 74 | template_tags: state.get('template_tags'), 75 | nav_menus: state.get('nav_menus'), 76 | sidebars: state.get('sidebars'), 77 | user: state.get('user'), 78 | }); 79 | 80 | 81 | const mapDispatchToProps = dispatch => ({ 82 | actions: includes.redux.bindActionCreators(includes.actions, dispatch) 83 | }); 84 | 85 | export default includes.ReactRedux.connect( 86 | mapStateToProps, 87 | mapDispatchToProps 88 | )(App) 89 | -------------------------------------------------------------------------------- /js/src/components/Comments.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | class Comments extends React.Component { 4 | render() { 5 | return ( 6 |
7 | 8 | { parseInt(this.props.post.comments_number) > 0 ? 9 |
10 |

11 | {this.props.post.comments_title} 12 |

13 | 14 |
15 | 16 |
17 | 18 |
19 |
20 | : '' } 21 | 22 |
23 |
24 | ); 25 | } 26 | } 27 | 28 | export default Comments; 29 | -------------------------------------------------------------------------------- /js/src/components/Footer.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import NavMenu from './NavMenu.jsx'; 4 | 5 | class Footer extends React.Component { 6 | render() { 7 | return ( 8 | 28 | ); 29 | } 30 | } 31 | 32 | export default Footer; 33 | -------------------------------------------------------------------------------- /js/src/components/Header.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import NavMenu from './NavMenu.jsx'; 4 | 5 | class Header extends React.Component { 6 | render() { 7 | return ( 8 |
9 | Skip to content 10 | 11 | 56 |
57 | ); 58 | } 59 | } 60 | 61 | export default Header; 62 | -------------------------------------------------------------------------------- /js/src/components/NavMenu.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import React from 'react'; 4 | 5 | class NavMenu extends React.Component { 6 | render() { 7 | function processMenuItem(menuItem, key) { 8 | let classes = 'menu-item'; 9 | if (menuItem.children && menuItem.children.length) { 10 | classes += ' menu-item-has-children'; 11 | } 12 | 13 | return ( 14 |
  • 15 | 16 | {menuItem.title} 17 | 18 | 19 | {menuItem.children && menuItem.children.length ? 20 |
      21 | {menuItem.children.map(processMenuItem)} 22 |
    23 | : '' } 24 |
  • 25 | ); 26 | } 27 | 28 | let menuComponent = this.props.nav_menus[this.props.location].map(processMenuItem); 29 | return ( 30 |
      31 | {menuComponent} 32 |
    33 | ); 34 | } 35 | } 36 | 37 | export default NavMenu; 38 | -------------------------------------------------------------------------------- /js/src/components/Post.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | class Post extends React.Component { 4 | render() { 5 | let id = 'post-' + this.props.post.ID; 6 | return ( 7 |
    8 |
    9 | {'single' === this.props.route ? 10 |

    11 | {this.props.post.the_title} 12 |

    13 | : 14 |

    15 | {this.props.post.the_title} 16 |

    17 | } 18 |
    19 | 20 |
    21 | 22 |
    23 |
    24 | 25 |
    26 |
    27 | 28 |
    29 | 30 |
    31 | ); 32 | } 33 | } 34 | 35 | export default Post; 36 | -------------------------------------------------------------------------------- /js/src/components/River.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import Post from './Post.jsx'; 4 | 5 | class River extends React.Component { 6 | render() { 7 | return ( 8 |
    9 |
    10 | {this.props.posts.map(function(post, key) { 11 | return 12 | }, this)} 13 |
    14 |
    15 | ); 16 | } 17 | } 18 | 19 | export default River; 20 | -------------------------------------------------------------------------------- /js/src/components/Sidebar.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | class Sidebar extends React.Component { 4 | render() { 5 | return ( 6 | 8 | ); 9 | } 10 | } 11 | 12 | export default Sidebar; 13 | -------------------------------------------------------------------------------- /js/src/components/Single.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import Post from './Post.jsx'; 4 | import Comments from './Comments.jsx'; 5 | 6 | class Single extends React.Component { 7 | render() { 8 | return ( 9 |
    10 |
    11 | 12 |
    13 | 14 | 15 |
    16 | ); 17 | } 18 | } 19 | 20 | export default Single; 21 | -------------------------------------------------------------------------------- /js/src/includes.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * This puts the entire React module in the global scope as "React". 5 | */ 6 | require('expose-loader?React!react'); 7 | 8 | let includes = {}; 9 | 10 | includes.ReactDOMServer = require('react-dom/server'); 11 | includes.reducer = require('./reducer').default; 12 | includes.redux = require('redux'); 13 | includes.ReactRedux = require('react-redux'); 14 | includes.immutable = require('immutable'); 15 | includes._ = require('lodash'); 16 | includes.thunk = require('redux-thunk').default; 17 | includes.htmlescape = require('htmlescape'); 18 | includes.actions = require('./actions/index.js'); 19 | 20 | module.exports = includes; 21 | -------------------------------------------------------------------------------- /js/src/reducer.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | export default function(state = includes.immutable.Map(), action) { 4 | switch (action.type) { 5 | case 'SET_CONTEXT': 6 | return includes.immutable.Map({ route: action.route, posts: action.posts, template_tags: action.template_tags, nav_menus: action.nav_menus, sidebars: action.sidebars, user: action.user }); 7 | break; 8 | } 9 | 10 | return state; 11 | } 12 | -------------------------------------------------------------------------------- /js/src/server.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Includes and React are compiled separately for heap snapshots 5 | */ 6 | 7 | let initialState = includes.immutable.Map({ 8 | route: PHP.context.$route, 9 | posts: PHP.context.$posts, 10 | template_tags: PHP.context.$template_tags, 11 | nav_menus: PHP.context.$nav_menus, 12 | sidebars: PHP.context.$sidebars, 13 | user: PHP.context.$user 14 | }); 15 | 16 | import App from './components/App.jsx'; 17 | import { Provider } from 'react-redux'; 18 | 19 | const store = includes.redux.createStore(includes.reducer, initialState, includes.redux.applyMiddleware(includes.thunk)); 20 | 21 | print(includes.ReactDOMServer.renderToStaticMarkup( 22 | 23 | 24 | 25 | 26 |
    27 | 28 | 29 | 30 |
    31 | 32 | 33 | 34 | 35 | 36 | )); 37 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "twentysixteenreact", 3 | "version": "1.0.0", 4 | "description": "Isomorphic React.js theme for WordPress powered by V8JS.", 5 | "author": "Taylor Lovett, 10up", 6 | "license": "GPLv2", 7 | "dependencies": { 8 | "babel-core": "^6.18.0", 9 | "babel-loader": "^6.2.5", 10 | "babel-preset-es2015": "^6.18.0", 11 | "es6-promise": "^4.0.5", 12 | "expose-loader": "^0.7.1", 13 | "htmlescape": "^1.1.1", 14 | "immutable": "^3.8.1", 15 | "lodash": "^4.16.5", 16 | "react": "^15.3.2", 17 | "react-dom": "^15.3.2", 18 | "react-redux": "^4.4.5", 19 | "redux": "^3.6.0", 20 | "redux-thunk": "^2.1.0", 21 | "webpack": "^1.13.2", 22 | "babel-preset-react": "^6.16.0" 23 | }, 24 | "scripts": { 25 | "postinstall" : "./node_modules/webpack/bin/webpack.js" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/twentysixteenreact/539a7ca7cb0d39f0551a2d8703ba7bc215f2d927/screenshot.png -------------------------------------------------------------------------------- /searchform.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 18 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | var path = require('path'); 2 | var webpack = require('webpack'); 3 | 4 | var loaders = [ 5 | { 6 | test: /\.jsx?$/, 7 | exclude: /(node_modules|bower_components)/, 8 | loader: 'babel' 9 | } 10 | ]; 11 | 12 | module.exports = [ 13 | { 14 | entry: './js/src/server.js', 15 | output: { 16 | path: __dirname, 17 | filename: './js/server.js' 18 | }, 19 | module: { 20 | loaders: loaders 21 | }, 22 | stats: { 23 | colors: true 24 | } 25 | }, 26 | { 27 | entry: './js/src/includes.js', 28 | output: { 29 | path: __dirname, 30 | filename: './js/includes.js', 31 | libraryTarget: 'var', 32 | library: 'includes' 33 | }, 34 | module: { 35 | loaders: loaders 36 | }, 37 | stats: { 38 | colors: true 39 | } 40 | }, 41 | { 42 | entry: './js/src/client.js', 43 | output: { 44 | path: __dirname, 45 | filename: './js/client.js' 46 | }, 47 | module: { 48 | loaders: loaders 49 | }, 50 | stats: { 51 | colors: true 52 | } 53 | } 54 | ]; 55 | --------------------------------------------------------------------------------