Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 19 |
|
0.00% |
0 / 1 |
CRAP | n/a |
0 / 0 |
|
| twentytwentyone__jetpack_setup | |
0.00% |
0 / 16 |
|
0.00% |
0 / 1 |
2 | |||
| 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 One. |
| 15 | */ |
| 16 | function twentytwentyone__jetpack_setup() { |
| 17 | |
| 18 | /** |
| 19 | * Add theme support for Content Options. |
| 20 | */ |
| 21 | add_theme_support( |
| 22 | 'jetpack-content-options', |
| 23 | array( |
| 24 | 'blog-display' => array( 'content', 'excerpt' ), |
| 25 | 'post-details' => array( |
| 26 | 'stylesheet' => 'twenty-twenty-one-style', |
| 27 | 'date' => '.posted-on', |
| 28 | 'categories' => '.cat-links', |
| 29 | ), |
| 30 | 'featured-images' => array( |
| 31 | 'archive' => true, |
| 32 | 'post' => true, |
| 33 | 'page' => true, |
| 34 | ), |
| 35 | ) |
| 36 | ); |
| 37 | } |
| 38 | add_action( 'after_setup_theme', 'twentytwentyone__jetpack_setup' ); |