Making WordPress.org

Ticket #4339: 4339.diff

File 4339.diff, 3.5 KB (added by ryelle, 3 years ago)
  • wordcamp.org/public_html/wp-content/themes/campsite-2017/inc/jetpack.php

    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' ); 
    1515 * Jetpack setup function.
    1616 *
    1717 * See: https://jetpack.com/support/infinite-scroll/
     18 * See: https://jetpack.com/support/content-options/
    1819 * See: https://jetpack.com/support/responsive-videos/
    1920 */
    2021function jetpack_setup() {
    function jetpack_setup() { 
    2728                )
    2829        );
    2930
     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
    3043        add_theme_support( 'jetpack-responsive-videos' );
    3144}
    3245
  • wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/content-page.php

    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; 
    1313
    1414<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1515        <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
    1622                <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
    1723        </header>
    1824
  • wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/content-search.php

    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; 
    1313
    1414<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1515        <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
    1622                <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
    1723
    1824                <?php if ( 'post' === get_post_type() ) : ?>
  • wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/content.php

    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; 
    1313
    1414<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1515        <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;
    1723
    1824                if ( is_single() ) {
    1925                        the_title( '<h1 class="entry-title">', '</h1>' );