diff --git wordcamp.org/public_html/wp-content/themes/campsite-2017/inc/jetpack.php wordcamp.org/public_html/wp-content/themes/campsite-2017/inc/jetpack.php
index b553e071a..06018be01 100644
|
|
add_action( 'after_setup_theme', __NAMESPACE__ . '\jetpack_setup' ); |
15 | 15 | * Jetpack setup function. |
16 | 16 | * |
17 | 17 | * See: https://jetpack.com/support/infinite-scroll/ |
| 18 | * See: https://jetpack.com/support/content-options/ |
18 | 19 | * See: https://jetpack.com/support/responsive-videos/ |
19 | 20 | */ |
20 | 21 | function jetpack_setup() { |
… |
… |
function jetpack_setup() { |
27 | 28 | ) |
28 | 29 | ); |
29 | 30 | |
| 31 | add_theme_support( 'jetpack-content-options', array( |
| 32 | 'featured-images' => array( |
| 33 | 'archive' => true, |
| 34 | 'archive-default' => false, |
| 35 | 'post' => true, |
| 36 | 'post-default' => false, |
| 37 | 'page' => true, |
| 38 | 'page-default' => false, |
| 39 | 'fallback' => false, |
| 40 | ), |
| 41 | ) ); |
| 42 | |
30 | 43 | add_theme_support( 'jetpack-responsive-videos' ); |
31 | 44 | } |
32 | 45 | |
diff --git wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/content-page.php wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/content-page.php
index cee9ec62a..7c0180f4f 100644
|
|
namespace WordCamp\CampSite_2017; |
13 | 13 | |
14 | 14 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
15 | 15 | <header class="entry-header"> |
| 16 | <?php if ( has_post_thumbnail() ): ?> |
| 17 | <div class="entry-image"> |
| 18 | <?php the_post_thumbnail(); ?> |
| 19 | </div> |
| 20 | <?php endif; ?> |
| 21 | |
16 | 22 | <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> |
17 | 23 | </header> |
18 | 24 | |
diff --git wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/content-search.php wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/content-search.php
index c433dab4f..c705bebf0 100644
|
|
namespace WordCamp\CampSite_2017; |
13 | 13 | |
14 | 14 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
15 | 15 | <header class="entry-header"> |
| 16 | <?php if ( has_post_thumbnail() ): ?> |
| 17 | <div class="entry-image"> |
| 18 | <?php the_post_thumbnail(); ?> |
| 19 | </div> |
| 20 | <?php endif; ?> |
| 21 | |
16 | 22 | <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> |
17 | 23 | |
18 | 24 | <?php if ( 'post' === get_post_type() ) : ?> |
diff --git wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/content.php wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/content.php
index c32cfe7d0..02c3829ef 100644
|
|
namespace WordCamp\CampSite_2017; |
13 | 13 | |
14 | 14 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
15 | 15 | <header class="entry-header"> |
16 | | <?php |
| 16 | <?php |
| 17 | |
| 18 | if ( ( ! is_single() || is_singular( 'post' ) ) && has_post_thumbnail() ): ?> |
| 19 | <div class="entry-image"> |
| 20 | <?php the_post_thumbnail(); ?> |
| 21 | </div> |
| 22 | <?php endif; |
17 | 23 | |
18 | 24 | if ( is_single() ) { |
19 | 25 | the_title( '<h1 class="entry-title">', '</h1>' ); |