twentyfifteen-rtl.css
7 years ago
twentyfifteen.css
4 years ago
twentyfifteen.php
4 years ago
twentyfourteen-rtl.css
7 years ago
twentyfourteen.css
4 years ago
twentyfourteen.php
4 years ago
twentynineteen-rtl.css
2 years ago
twentynineteen.css
3 years ago
twentynineteen.php
4 years ago
twentyseventeen.php
4 years ago
twentysixteen-rtl.css
3 years ago
twentysixteen.css
3 years ago
twentysixteen.php
2 years ago
twentytwenty-rtl.css
2 years ago
twentytwenty.css
4 years ago
twentytwenty.php
4 years ago
twentytwentyone-rtl.css
3 years ago
twentytwentyone.css
5 years ago
twentytwentyone.php
5 years ago
twentyfifteen.php
44 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Jetpack Compatibility File |
| 4 | * See: https://jetpack.com/ |
| 5 | * |
| 6 | * @package automattic/jetpack |
| 7 | */ |
| 8 | |
| 9 | /** |
| 10 | * Add Jetpack theme supports for Twenty Fifteen. |
| 11 | */ |
| 12 | function twentyfifteen_jetpack_setup() { |
| 13 | /** |
| 14 | * Add theme support for Responsive Videos. |
| 15 | */ |
| 16 | add_theme_support( 'jetpack-responsive-videos' ); |
| 17 | |
| 18 | /** |
| 19 | * Add theme support for geo-location. |
| 20 | */ |
| 21 | add_theme_support( 'jetpack-geo-location' ); |
| 22 | } |
| 23 | add_action( 'after_setup_theme', 'twentyfifteen_jetpack_setup' ); |
| 24 | |
| 25 | /** |
| 26 | * Enqueue Jetpack compat styles for Twenty Fifteen. |
| 27 | */ |
| 28 | function twentyfifteen_init_jetpack() { |
| 29 | /** |
| 30 | * Add our compat CSS file for custom widget stylings and such. |
| 31 | * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production |
| 32 | * or skip it entirely for wpcom. |
| 33 | */ |
| 34 | if ( ! is_admin() ) { |
| 35 | $version = false; |
| 36 | if ( method_exists( 'Jetpack', 'is_development_version' ) ) { |
| 37 | $version = Jetpack::is_development_version() ? filemtime( plugin_dir_path( __FILE__ ) . 'twentyfifteen.css' ) : JETPACK__VERSION; |
| 38 | } |
| 39 | wp_enqueue_style( 'twentyfifteen-jetpack', plugins_url( 'twentyfifteen.css', __FILE__ ), array(), $version ); |
| 40 | wp_style_add_data( 'twentyfifteen-jetpack', 'rtl', 'replace' ); |
| 41 | } |
| 42 | } |
| 43 | add_action( 'init', 'twentyfifteen_init_jetpack' ); |
| 44 |