jetpack
/
jetpack_vendor
/
automattic
/
jetpack-classic-theme-helper
/
src
/
compat
/
twentytwenty.php
jetpack
/
jetpack_vendor
/
automattic
/
jetpack-classic-theme-helper
/
src
/
compat
Last commit date
twentyfifteen.php
9 months ago
twentyfourteen.php
9 months ago
twentynineteen.php
9 months ago
twentysixteen.php
9 months ago
twentytwenty.php
9 months ago
twentytwentyone.php
9 months ago
twentytwenty.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Jetpack Compatibility File |
| 4 | * See: https://jetpack.com/ |
| 5 | * |
| 6 | * @package automattic/jetpack-classic-theme-helper |
| 7 | */ |
| 8 | |
| 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | exit( 0 ); |
| 11 | } |
| 12 | |
| 13 | /** |
| 14 | * Add Jetpack extra functionality to Twenty Twenty. |
| 15 | * |
| 16 | * See: https://jetpack.com/support/infinite-scroll/ |
| 17 | * See: https://jetpack.com/support/responsive-videos/ |
| 18 | * See: https://jetpack.com/support/content-options/ |
| 19 | */ |
| 20 | function twentytwenty__jetpack_setup() { |
| 21 | |
| 22 | // Add theme support for Content Options. |
| 23 | add_theme_support( |
| 24 | 'jetpack-content-options', |
| 25 | array( |
| 26 | 'post-details' => array( |
| 27 | 'stylesheet' => 'twentytwenty-style', |
| 28 | 'date' => '.post-date', |
| 29 | 'categories' => '.entry-categories', |
| 30 | 'tags' => '.post-tags', |
| 31 | 'author' => '.post-author', |
| 32 | ), |
| 33 | 'featured-images' => array( |
| 34 | 'archive' => true, |
| 35 | 'post' => true, |
| 36 | 'page' => true, |
| 37 | 'fallback' => false, |
| 38 | ), |
| 39 | ) |
| 40 | ); |
| 41 | } |
| 42 | add_action( 'after_setup_theme', 'twentytwenty__jetpack_setup' ); |
| 43 |