Initial Commit
This commit is contained in:
parent
4c352bf02e
commit
1ab6e5f0b0
1085 changed files with 195258 additions and 0 deletions
28
plugins/jetpack/modules/theme-tools/compat/twentyfifteen.php
Normal file
28
plugins/jetpack/modules/theme-tools/compat/twentyfifteen.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Jetpack Compatibility File
|
||||
* See: http://jetpack.com/
|
||||
*/
|
||||
|
||||
function twentyfifteen_jetpack_setup() {
|
||||
/**
|
||||
* Add theme support for Responsive Videos.
|
||||
*/
|
||||
add_theme_support( 'jetpack-responsive-videos' );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'twentyfifteen_jetpack_setup' );
|
||||
|
||||
function twentyfifteen_init_jetpack() {
|
||||
/**
|
||||
* Add our compat CSS file for custom widget stylings and such.
|
||||
* Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production
|
||||
* or skip it entirely for wpcom.
|
||||
*/
|
||||
$version = false;
|
||||
if ( method_exists( 'Jetpack', 'is_development_version' ) ) {
|
||||
$version = Jetpack::is_development_version() ? filemtime( plugin_dir_path( __FILE__ ) . 'twentyfifteen.css' ) : JETPACK__VERSION;
|
||||
}
|
||||
wp_enqueue_style( 'twentyfifteen-jetpack', plugins_url( 'twentyfifteen.css', __FILE__ ), array(), $version );
|
||||
wp_style_add_data( 'twentyfifteen-jetpack', 'rtl', 'replace' );
|
||||
}
|
||||
add_action( 'init', 'twentyfifteen_init_jetpack' );
|
Reference in a new issue