├── public ├── wp-content │ ├── uploads │ │ └── .gitkeep │ ├── index.php │ ├── plugins │ │ └── index.php │ └── themes │ │ ├── index.php │ │ └── twentyseventeen │ │ ├── screenshot.png │ │ ├── assets │ │ ├── images │ │ │ ├── coffee.jpg │ │ │ ├── espresso.jpg │ │ │ ├── header.jpg │ │ │ └── sandwich.jpg │ │ ├── js │ │ │ ├── skip-link-focus-fix.js │ │ │ ├── customize-controls.js │ │ │ ├── navigation.js │ │ │ ├── customize-preview.js │ │ │ ├── jquery.scrollTo.js │ │ │ ├── global.js │ │ │ └── html5.js │ │ └── css │ │ │ ├── ie9.css │ │ │ ├── ie8.css │ │ │ ├── editor-style.css │ │ │ └── colors-dark.css │ │ ├── template-parts │ │ ├── header │ │ │ ├── header-image.php │ │ │ └── site-branding.php │ │ ├── footer │ │ │ ├── site-info.php │ │ │ └── footer-widgets.php │ │ ├── page │ │ │ ├── content-page.php │ │ │ ├── content-front-page.php │ │ │ └── content-front-page-panels.php │ │ ├── post │ │ │ ├── content-none.php │ │ │ ├── content-excerpt.php │ │ │ ├── content.php │ │ │ ├── content-image.php │ │ │ ├── content-gallery.php │ │ │ ├── content-audio.php │ │ │ └── content-video.php │ │ └── navigation │ │ │ └── navigation-top.php │ │ ├── sidebar.php │ │ ├── searchform.php │ │ ├── 404.php │ │ ├── page.php │ │ ├── footer.php │ │ ├── front-page.php │ │ ├── single.php │ │ ├── archive.php │ │ ├── header.php │ │ ├── search.php │ │ ├── index.php │ │ ├── inc │ │ ├── back-compat.php │ │ ├── template-functions.php │ │ ├── custom-header.php │ │ ├── template-tags.php │ │ ├── customizer.php │ │ └── icon-functions.php │ │ ├── comments.php │ │ ├── README.txt │ │ ├── rtl.css │ │ └── functions.php ├── index.php └── wp-config.php ├── .gitignore ├── README.md ├── composer.json ├── local-config.sample.php ├── LICENSE └── composer.lock /public/wp-content/uploads/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/wp-content/index.php: -------------------------------------------------------------------------------- 1 | 12 |
13 | 14 |
15 | 16 |
17 | 18 | 19 | 20 |
21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WordPress Skeleton 2 | 3 | A template for using WordPress in a subdirectory managed by Composer. 4 | 5 | ## Usage 6 | 7 | 1. Clone this repository 8 | 1. Run `composer install` 9 | 1. Copy `local-config.sample.php` to `local-config.php` and fill in the details 10 | 1. Point your web root to the `/public` directory 11 | 12 | Note: If you're running on production copy `local-config.sample.php` to `production-config.php`. 13 | 14 | For more info see this blog series: [Managing Your WordPress Site With Git And Composer](https://deliciousbrains.com/install-wordpress-subdirectory-composer-git-submodule/) -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/sidebar.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "repositories": [ 3 | { 4 | "type": "composer", 5 | "url": "https://wpackagist.org" 6 | } 7 | ], 8 | "require": { 9 | "composer/installers": "^1.10", 10 | "johnpbloch/wordpress": ">=5.6" 11 | }, 12 | "extra": { 13 | "wordpress-install-dir": "public/wp", 14 | "installer-paths": { 15 | "public/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"], 16 | "public/wp-content/plugins/{$name}/": ["type:wordpress-plugin"], 17 | "public/wp-content/themes/{$name}/": ["type:wordpress-theme"] 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/template-parts/footer/site-info.php: -------------------------------------------------------------------------------- 1 | 12 |
13 | ' ); 16 | } 17 | ?> 18 | 19 | 20 | 21 |
22 | -------------------------------------------------------------------------------- /local-config.sample.php: -------------------------------------------------------------------------------- 1 | 14 | 15 |
> 16 |
17 | ', '' ); ?> 18 | 19 |
20 |
21 | '', 27 | ) ); 28 | ?> 29 |
30 |
31 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/template-parts/footer/footer-widgets.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 17 | 18 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/searchform.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | 15 | 22 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/404.php: -------------------------------------------------------------------------------- 1 | 14 | 15 |
16 |
17 |
18 | 19 |
20 | 23 |
24 |

25 | 26 | 27 | 28 |
29 |
30 |
31 |
32 |
33 | 34 | 14 | 15 |
16 | 19 |
20 | 22 | 23 |

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

24 | 25 | 26 | 27 |

28 | 32 |
33 |
34 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Gilbert Pellegrom 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/page.php: -------------------------------------------------------------------------------- 1 | 19 | 20 |
21 |
22 |
23 | 24 | 36 | 37 |
38 |
39 |
40 | 41 | 12 | 30 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/assets/js/customize-controls.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Scripts within the customizer controls window. 3 | * 4 | * Contextually shows the color hue control and informs the preview 5 | * when users open or close the front page sections section. 6 | */ 7 | 8 | (function() { 9 | wp.customize.bind( 'ready', function() { 10 | 11 | // Only show the color hue control when there's a custom color scheme. 12 | wp.customize( 'colorscheme', function( setting ) { 13 | wp.customize.control( 'colorscheme_hue', function( control ) { 14 | var visibility = function() { 15 | if ( 'custom' === setting.get() ) { 16 | control.container.slideDown( 180 ); 17 | } else { 18 | control.container.slideUp( 180 ); 19 | } 20 | }; 21 | 22 | visibility(); 23 | setting.bind( visibility ); 24 | }); 25 | }); 26 | 27 | // Detect when the front page sections section is expanded (or closed) so we can adjust the preview accordingly. 28 | wp.customize.section( 'theme_options', function( section ) { 29 | section.expanded.bind( function( isExpanding ) { 30 | 31 | // Value of isExpanding will = true if you're entering the section, false if you're leaving it. 32 | wp.customize.previewer.send( 'section-highlight', { expanded: isExpanding }); 33 | } ); 34 | } ); 35 | }); 36 | })( jQuery ); 37 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/template-parts/header/site-branding.php: -------------------------------------------------------------------------------- 1 | 12 |
13 |
14 | 15 | 16 | 17 |
18 | 19 |

20 | 21 |

22 | 23 | 24 | 29 |

30 | 31 |
32 | 33 | 34 | 'arrow-right' ) ); ?> 35 | 36 | 37 |
38 |
39 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/assets/css/ie9.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Twenty Seventeen 3 | Description: IE9 specific styles. 4 | */ 5 | 6 | .has-header-image.twentyseventeen-front-page .custom-header, 7 | .has-header-video.twentyseventeen-front-page .custom-header, 8 | .has-header-image.home.blog .custom-header, 9 | .has-header-video.home.blog .custom-header { 10 | height: 300px; 11 | } 12 | 13 | .has-header-image .custom-header-media img, 14 | .has-header-video .custom-header-media video, 15 | .has-header-video .custom-header-media iframe { 16 | min-width: 100%; 17 | } 18 | 19 | @media screen and (min-width: 30em) { 20 | 21 | .has-header-image.twentyseventeen-front-page .custom-header, 22 | .has-header-video.twentyseventeen-front-page .custom-header, 23 | .has-header-image.home.blog .custom-header, 24 | .has-header-video.home.blog .custom-header, 25 | .twentyseventeen-front-page.has-header-image .custom-header-media, 26 | .home.blog.has-header-image .custom-header-media, 27 | .panel-image { 28 | height: 700px; 29 | } 30 | } 31 | 32 | @media screen and (min-width: 48em) { 33 | 34 | .has-header-image.twentyseventeen-front-page .custom-header, 35 | .has-header-video.twentyseventeen-front-page .custom-header, 36 | .has-header-image.home.blog .custom-header, 37 | .has-header-video.home.blog .custom-header, 38 | .twentyseventeen-front-page.has-header-image .custom-header-media, 39 | .home.blog.has-header-image .custom-header-media, 40 | .panel-image { 41 | height: 1000px; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/footer.php: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php: -------------------------------------------------------------------------------- 1 | 16 | 17 |
> 18 | 19 |
20 | 21 | 27 | 28 | 31 | 32 | 33 | ', esc_url( get_permalink() ) ), '' ); 37 | } else { 38 | the_title( sprintf( '

', esc_url( get_permalink() ) ), '

' ); 39 | } ?> 40 |
41 | 42 |
43 | 44 |
45 | 46 |
47 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php: -------------------------------------------------------------------------------- 1 | 12 |
> 13 | 14 | ID ), 'twentyseventeen-featured-image' ); 16 | 17 | // Calculate aspect ratio: h / w * 100%. 18 | $ratio = $thumbnail[2] / $thumbnail[1] * 100; 19 | ?> 20 | 21 |
22 |
23 |
24 | 25 | 26 | 27 |
28 |
29 |
30 | ', '' ); ?> 31 | 32 | 33 | 34 |
35 | 36 |
37 | "%s"', 'twentyseventeen' ), 41 | get_the_title() 42 | ) ); 43 | ?> 44 |
45 | 46 |
47 |
48 | 49 |
50 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/front-page.php: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 |
19 | 20 | 28 | 29 | 50 | 51 |
52 |
53 | 54 | 14 | 15 |
16 |
17 |
18 | 19 | '' . __( 'Previous Post', 'twentyseventeen' ) . ' ' . twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '%title', 32 | 'next_text' => '' . __( 'Next Post', 'twentyseventeen' ) . ' %title' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ) . '', 33 | ) ); 34 | 35 | endwhile; // End of the loop. 36 | ?> 37 | 38 |
39 |
40 | 41 |
42 | 43 | 14 | 15 |
16 | 17 | 18 | 24 | 25 | 26 |
27 |
28 | 29 | 31 | twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '' . __( 'Previous page', 'twentyseventeen' ) . '', 46 | 'next_text' => '' . __( 'Next page', 'twentyseventeen' ) . '' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ), 47 | 'before_page_number' => '' . __( 'Page', 'twentyseventeen' ) . ' ', 48 | ) ); 49 | 50 | else : 51 | 52 | get_template_part( 'template-parts/post/content', 'none' ); 53 | 54 | endif; ?> 55 | 56 |
57 |
58 | 59 |
60 | 61 | section and everything up until
6 | * 7 | * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials 8 | * 9 | * @package WordPress 10 | * @subpackage Twenty_Seventeen 11 | * @since 1.0 12 | * @version 1.0 13 | */ 14 | 15 | ?> 16 | class="no-js no-svg"> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | > 26 |
27 | 28 | 29 | 42 | 43 | '; 51 | echo get_the_post_thumbnail( get_queried_object_id(), 'twentyseventeen-featured-image' ); 52 | echo '
'; 53 | endif; 54 | ?> 55 | 56 |
57 |
58 | -------------------------------------------------------------------------------- /public/wp-config.php: -------------------------------------------------------------------------------- 1 | 14 | 15 |
16 | 17 | 24 | 25 |
26 |
27 | 28 | twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '' . __( 'Previous page', 'twentyseventeen' ) . '', 44 | 'next_text' => '' . __( 'Next page', 'twentyseventeen' ) . '' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ), 45 | 'before_page_number' => '' . __( 'Page', 'twentyseventeen' ) . ' ', 46 | ) ); 47 | 48 | else : ?> 49 | 50 |

51 | 56 | 57 |
58 |
59 | 60 |
61 | 62 | 14 | 15 |
> 16 | 'thumb-tack' ) ); 19 | endif; 20 | ?> 21 |
22 | '; 25 | if ( is_single() ) { 26 | twentyseventeen_posted_on(); 27 | } else { 28 | echo twentyseventeen_time_link(); 29 | twentyseventeen_edit_link(); 30 | }; 31 | echo '
'; 32 | }; 33 | 34 | if ( is_single() ) { 35 | the_title( '

', '

' ); 36 | } elseif ( is_front_page() && is_home() ) { 37 | the_title( '

', '

' ); 38 | } else { 39 | the_title( '

', '

' ); 40 | } 41 | ?> 42 | 43 | 44 | 45 |
46 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | "%s"', 'twentyseventeen' ), 57 | get_the_title() 58 | ) ); 59 | 60 | wp_link_pages( array( 61 | 'before' => '', 63 | 'link_before' => '', 64 | 'link_after' => '', 65 | ) ); 66 | ?> 67 |
68 | 69 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/index.php: -------------------------------------------------------------------------------- 1 | 19 | 20 |
21 | 22 | 25 | 26 | 29 | 30 | 31 |
32 |
33 | 34 | twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '' . __( 'Previous page', 'twentyseventeen' ) . '', 51 | 'next_text' => '' . __( 'Next page', 'twentyseventeen' ) . '' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ), 52 | 'before_page_number' => '' . __( 'Page', 'twentyseventeen' ) . ' ', 53 | ) ); 54 | 55 | else : 56 | 57 | get_template_part( 'template-parts/post/content', 'none' ); 58 | 59 | endif; 60 | ?> 61 | 62 |
63 |
64 | 65 |
66 | 67 | 14 | 15 |
> 16 | 'thumb-tack' ) ); 19 | } 20 | ?> 21 |
22 | '; 25 | if ( is_single() ) { 26 | twentyseventeen_posted_on(); 27 | } else { 28 | echo twentyseventeen_time_link(); 29 | twentyseventeen_edit_link(); 30 | }; 31 | echo '
'; 32 | }; 33 | 34 | if ( is_single() ) { 35 | the_title( '

', '

' ); 36 | } elseif ( is_front_page() && is_home() ) { 37 | the_title( '

', '

' ); 38 | } else { 39 | the_title( '

', '

' ); 40 | } 41 | ?> 42 | 43 | 44 | 45 |
46 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | "%s"', 'twentyseventeen' ), 60 | get_the_title() 61 | ) ); 62 | 63 | wp_link_pages( array( 64 | 'before' => '', 66 | 'link_before' => '', 67 | 'link_after' => '', 68 | ) ); 69 | 70 | }; 71 | ?> 72 | 73 |
74 | 75 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php: -------------------------------------------------------------------------------- 1 | 14 | 15 |
> 16 | 17 | ID ), 'twentyseventeen-featured-image' ); 19 | 20 | // Calculate aspect ratio: h / w * 100%. 21 | $ratio = $thumbnail[2] / $thumbnail[1] * 100; 22 | ?> 23 | 24 |
25 |
26 |
27 | 28 | 29 | 30 |
31 |
32 |
33 | ', '' ); ?> 34 | 35 | 36 | 37 |
38 | 39 |
40 | "%s"', 'twentyseventeen' ), 44 | get_the_title() 45 | ) ); 46 | ?> 47 |
48 | 49 | 52 | 53 | 3, 56 | 'post_status' => 'publish', 57 | 'ignore_sticky_posts' => true, 58 | 'no_found_rows' => true, 59 | ) ); 60 | ?> 61 | 62 | have_posts() ) : ?> 63 | 64 |
65 | 66 | have_posts() ) : $recent_posts->the_post(); 68 | get_template_part( 'template-parts/post/content', 'excerpt' ); 69 | endwhile; 70 | wp_reset_postdata(); 71 | ?> 72 |
73 | 74 | 75 | 76 |
77 |
78 | 79 |
80 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/inc/back-compat.php: -------------------------------------------------------------------------------- 1 |

%s

', $message ); 41 | } 42 | 43 | /** 44 | * Prevents the Customizer from being loaded on WordPress versions prior to 4.7. 45 | * 46 | * @since Twenty Seventeen 1.0 47 | * 48 | * @global string $wp_version WordPress version. 49 | */ 50 | function twentyseventeen_customize() { 51 | wp_die( sprintf( __( 'Twenty Seventeen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentyseventeen' ), $GLOBALS['wp_version'] ), '', array( 52 | 'back_link' => true, 53 | ) ); 54 | } 55 | add_action( 'load-customize.php', 'twentyseventeen_customize' ); 56 | 57 | /** 58 | * Prevents the Theme Preview from being loaded on WordPress versions prior to 4.7. 59 | * 60 | * @since Twenty Seventeen 1.0 61 | * 62 | * @global string $wp_version WordPress version. 63 | */ 64 | function twentyseventeen_preview() { 65 | if ( isset( $_GET['preview'] ) ) { 66 | wp_die( sprintf( __( 'Twenty Seventeen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentyseventeen' ), $GLOBALS['wp_version'] ) ); 67 | } 68 | } 69 | add_action( 'template_redirect', 'twentyseventeen_preview' ); 70 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php: -------------------------------------------------------------------------------- 1 | 14 | 15 |
> 16 | 'thumb-tack' ) ); 19 | } 20 | ?> 21 |
22 | '; 25 | if ( is_single() ) { 26 | twentyseventeen_posted_on(); 27 | } else { 28 | echo twentyseventeen_time_link(); 29 | twentyseventeen_edit_link(); 30 | }; 31 | echo ''; 32 | }; 33 | 34 | if ( is_single() ) { 35 | the_title( '

', '

' ); 36 | } elseif ( is_front_page() && is_home() ) { 37 | the_title( '

', '

' ); 38 | } else { 39 | the_title( '

', '

' ); 40 | } 41 | ?> 42 |
43 | 44 | 45 |
46 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | '; 60 | echo get_post_gallery(); 61 | echo '
'; 62 | }; 63 | 64 | }; 65 | 66 | if ( is_single() || ! get_post_gallery() ) { 67 | 68 | /* translators: %s: Name of current post */ 69 | the_content( sprintf( 70 | __( 'Continue reading "%s"', 'twentyseventeen' ), 71 | get_the_title() 72 | ) ); 73 | 74 | wp_link_pages( array( 75 | 'before' => '', 77 | 'link_before' => '', 78 | 'link_after' => '', 79 | ) ); 80 | 81 | }; 82 | ?> 83 | 84 | 85 | 86 | 91 | 92 |
93 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/comments.php: -------------------------------------------------------------------------------- 1 | 25 | 26 |
27 | 28 | 31 |

32 | 52 |

53 | 54 |
    55 | 100, 58 | 'style' => 'ol', 59 | 'short_ping' => true, 60 | 'reply_text' => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ), 61 | ) ); 62 | ?> 63 |
64 | 65 | twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '' . __( 'Previous', 'twentyseventeen' ) . '', 67 | 'next_text' => '' . __( 'Next', 'twentyseventeen' ) . '' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ), 68 | ) ); 69 | 70 | endif; // Check for have_comments(). 71 | 72 | // If comments are closed and there are comments, let's leave a little note, shall we? 73 | if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> 74 | 75 |

76 | 81 | 82 |
83 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/inc/template-functions.php: -------------------------------------------------------------------------------- 1 | 14 | 15 |
> 16 | 'thumb-tack' ) ); 19 | } 20 | ?> 21 |
22 | '; 25 | if ( is_single() ) { 26 | twentyseventeen_posted_on(); 27 | } else { 28 | echo twentyseventeen_time_link(); 29 | twentyseventeen_edit_link(); 30 | }; 31 | echo ''; 32 | }; 33 | 34 | if ( is_single() ) { 35 | the_title( '

', '

' ); 36 | } elseif ( is_front_page() && is_home() ) { 37 | the_title( '

', '

' ); 38 | } else { 39 | the_title( '

', '

' ); 40 | } 41 | ?> 42 |
43 | 44 | 54 | 55 | 56 |
57 | 58 | 59 | 60 |
61 | 62 | 63 |
64 | 65 | '; 72 | echo $audio_html; 73 | echo '
'; 74 | } 75 | }; 76 | 77 | }; 78 | 79 | if ( is_single() || empty( $audio ) ) { 80 | 81 | /* translators: %s: Name of current post */ 82 | the_content( sprintf( 83 | __( 'Continue reading "%s"', 'twentyseventeen' ), 84 | get_the_title() 85 | ) ); 86 | 87 | wp_link_pages( array( 88 | 'before' => '', 90 | 'link_before' => '', 91 | 'link_after' => '', 92 | ) ); 93 | 94 | }; 95 | ?> 96 | 97 | 98 | 99 | 104 | 105 |
106 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/template-parts/post/content-video.php: -------------------------------------------------------------------------------- 1 | 14 | 15 |
> 16 | 'thumb-tack' ) ); 19 | } 20 | ?> 21 |
22 | '; 25 | if ( is_single() ) { 26 | twentyseventeen_posted_on(); 27 | } else { 28 | echo twentyseventeen_time_link(); 29 | twentyseventeen_edit_link(); 30 | } 31 | echo ''; 32 | }; 33 | 34 | if ( is_single() ) { 35 | the_title( '

', '

' ); 36 | } elseif ( is_front_page() && is_home() ) { 37 | the_title( '

', '

' ); 38 | } else { 39 | the_title( '

', '

' ); 40 | } 41 | ?> 42 |
43 | 44 | 53 | 54 | 55 |
56 | 57 | 58 | 59 |
60 | 61 | 62 |
63 | 64 | '; 71 | echo $video_html; 72 | echo '
'; 73 | } 74 | }; 75 | 76 | }; 77 | 78 | if ( is_single() || empty( $video ) ) { 79 | 80 | /* translators: %s: Name of current post */ 81 | the_content( sprintf( 82 | __( 'Continue reading "%s"', 'twentyseventeen' ), 83 | get_the_title() 84 | ) ); 85 | 86 | wp_link_pages( array( 87 | 'before' => '', 89 | 'link_before' => '', 90 | 'link_after' => '', 91 | ) ); 92 | }; 93 | ?> 94 | 95 | 96 | 97 | 102 | 103 |
104 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/README.txt: -------------------------------------------------------------------------------- 1 | === Twenty Seventeen === 2 | Contributors: the WordPress team 3 | Requires at least: WordPress 4.7 4 | Tested up to: WordPress 5.0-trunk 5 | Version: 1.7 6 | License: GPLv2 or later 7 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 8 | Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready 9 | 10 | == Description == 11 | 12 | Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. 13 | 14 | For more information about Twenty Seventeen please go to https://codex.wordpress.org/Twenty_Seventeen. 15 | 16 | == Installation == 17 | 18 | 1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button. 19 | 2. Type in Twenty Seventeen in the search form and press the 'Enter' key on your keyboard. 20 | 3. Click on the 'Activate' button to use your new theme right away. 21 | 4. Go to https://codex.wordpress.org/Twenty_Seventeen for a guide on how to customize this theme. 22 | 5. Navigate to Appearance > Customize in your admin panel and customize to taste. 23 | 24 | == Copyright == 25 | 26 | Twenty Seventeen WordPress Theme, Copyright 2016 WordPress.org 27 | Twenty Seventeen is distributed under the terms of the GNU GPL 28 | 29 | This program is free software: you can redistribute it and/or modify 30 | it under the terms of the GNU General Public License as published by 31 | the Free Software Foundation, either version 2 of the License, or 32 | (at your option) any later version. 33 | 34 | This program is distributed in the hope that it will be useful, 35 | but WITHOUT ANY WARRANTY; without even the implied warranty of 36 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 37 | GNU General Public License for more details. 38 | 39 | Twenty Seventeen bundles the following third-party resources: 40 | 41 | HTML5 Shiv, Copyright 2014 Alexander Farkas 42 | Licenses: MIT/GPL2 43 | Source: https://github.com/aFarkas/html5shiv 44 | 45 | jQuery scrollTo, Copyright 2007-2015 Ariel Flesler 46 | License: MIT 47 | Source: https://github.com/flesler/jquery.scrollTo 48 | 49 | normalize.css, Copyright 2012-2016 Nicolas Gallagher and Jonathan Neal 50 | License: MIT 51 | Source: https://necolas.github.io/normalize.css/ 52 | 53 | Font Awesome icons, Copyright Dave Gandy 54 | License: SIL Open Font License, version 1.1. 55 | Source: http://fontawesome.io/ 56 | 57 | Bundled header image, Copyright Alvin Engler 58 | License: CC0 1.0 Universal (CC0 1.0) 59 | Source: https://unsplash.com/@englr?photo=bIhpiQA009k 60 | 61 | == Changelog == 62 | 63 | = 1.7 = 64 | * Released: August 2, 2018 65 | 66 | https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.7 67 | 68 | = 1.6 = 69 | * Released: May 17, 2018 70 | 71 | https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.6 72 | 73 | = 1.5 = 74 | * Released: April 4, 2018 75 | 76 | https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.5 77 | 78 | = 1.4 = 79 | * Released: November 14, 2017 80 | 81 | https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.4 82 | 83 | = 1.3 = 84 | * Released: June 8, 2017 85 | 86 | https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.3 87 | 88 | = 1.2 = 89 | * Released: April 18, 2017 90 | 91 | https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.2 92 | 93 | = 1.1 = 94 | * Released: January 6, 2017 95 | 96 | https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.1 97 | 98 | = 1.0 = 99 | * Released: December 6, 2016 100 | 101 | Initial release 102 | -------------------------------------------------------------------------------- /public/wp-content/themes/twentyseventeen/assets/js/navigation.js: -------------------------------------------------------------------------------- 1 | /* global twentyseventeenScreenReaderText */ 2 | /** 3 | * Theme functions file. 4 | * 5 | * Contains handlers for navigation and widget area. 6 | */ 7 | 8 | (function( $ ) { 9 | var masthead, menuToggle, siteNavContain, siteNavigation; 10 | 11 | function initMainNavigation( container ) { 12 | 13 | // Add dropdown toggle that displays child menu items. 14 | var dropdownToggle = $( '