| @@ 59-72 (lines=14) @@ | ||
| 56 | } |
|
| 57 | add_filter( 'sharing_show', 'twentyfourteen_mute_content_filters', 10, 2 ); |
|
| 58 | ||
| 59 | function twentyfourteen_init_jetpack() { |
|
| 60 | /** |
|
| 61 | * Add our compat CSS file for custom widget stylings and such. |
|
| 62 | * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production. |
|
| 63 | */ |
|
| 64 | if ( ! is_admin() ) { |
|
| 65 | $version = false; |
|
| 66 | if ( method_exists( 'Jetpack', 'is_development_version' ) ) { |
|
| 67 | $version = Jetpack::is_development_version() ? filemtime( plugin_dir_path( __FILE__ ) . 'twentyfourteen.css' ) : JETPACK__VERSION; |
|
| 68 | } |
|
| 69 | wp_enqueue_style( 'twentyfourteen-jetpack', plugins_url( 'twentyfourteen.css', __FILE__ ), array(), $version ); |
|
| 70 | wp_style_add_data( 'twentyfourteen-jetpack', 'rtl', 'replace' ); |
|
| 71 | } |
|
| 72 | } |
|
| 73 | add_action( 'init', 'twentyfourteen_init_jetpack' ); |
|
| 74 | ||
| @@ 20-34 (lines=15) @@ | ||
| 17 | } |
|
| 18 | add_action( 'after_setup_theme', 'twentyfifteen_jetpack_setup' ); |
|
| 19 | ||
| 20 | function twentyfifteen_init_jetpack() { |
|
| 21 | /** |
|
| 22 | * Add our compat CSS file for custom widget stylings and such. |
|
| 23 | * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production |
|
| 24 | * or skip it entirely for wpcom. |
|
| 25 | */ |
|
| 26 | if ( ! is_admin() ) { |
|
| 27 | $version = false; |
|
| 28 | if ( method_exists( 'Jetpack', 'is_development_version' ) ) { |
|
| 29 | $version = Jetpack::is_development_version() ? filemtime( plugin_dir_path( __FILE__ ) . 'twentyfifteen.css' ) : JETPACK__VERSION; |
|
| 30 | } |
|
| 31 | wp_enqueue_style( 'twentyfifteen-jetpack', plugins_url( 'twentyfifteen.css', __FILE__ ), array(), $version ); |
|
| 32 | wp_style_add_data( 'twentyfifteen-jetpack', 'rtl', 'replace' ); |
|
| 33 | } |
|
| 34 | } |
|
| 35 | add_action( 'init', 'twentyfifteen_init_jetpack' ); |
|
| 36 | ||
| @@ 20-34 (lines=15) @@ | ||
| 17 | } |
|
| 18 | add_action( 'after_setup_theme', 'twentysixteen_jetpack_setup' ); |
|
| 19 | ||
| 20 | function twentysixteen_init_jetpack() { |
|
| 21 | /** |
|
| 22 | * Add our compat CSS file for custom widget stylings and such. |
|
| 23 | * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production |
|
| 24 | * or skip it entirely for wpcom. |
|
| 25 | */ |
|
| 26 | if ( ! is_admin() ) { |
|
| 27 | $version = false; |
|
| 28 | if ( method_exists( 'Jetpack', 'is_development_version' ) ) { |
|
| 29 | $version = Jetpack::is_development_version() ? filemtime( plugin_dir_path( __FILE__ ) . 'twentysixteen.css' ) : JETPACK__VERSION; |
|
| 30 | } |
|
| 31 | wp_enqueue_style( 'twentysixteen-jetpack', plugins_url( 'twentysixteen.css', __FILE__ ), array(), $version ); |
|
| 32 | wp_style_add_data( 'twentysixteen-jetpack', 'rtl', 'replace' ); |
|
| 33 | } |
|
| 34 | } |
|
| 35 | add_action( 'init', 'twentysixteen_init_jetpack' ); |
|
| 36 | ||
| 37 | /** |
|
| @@ 61-75 (lines=15) @@ | ||
| 58 | } |
|
| 59 | } |
|
| 60 | ||
| 61 | function twentynineteen_init_jetpack() { |
|
| 62 | /** |
|
| 63 | * Add our compat CSS file for Infinite Scroll and custom widget stylings and such. |
|
| 64 | * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production |
|
| 65 | * or skip it entirely for wpcom. |
|
| 66 | */ |
|
| 67 | if ( ! is_admin() ) { |
|
| 68 | $version = false; |
|
| 69 | if ( method_exists( 'Jetpack', 'is_development_version' ) ) { |
|
| 70 | $version = Jetpack::is_development_version() ? filemtime( plugin_dir_path( __FILE__ ) . 'twentynineteen.css' ) : JETPACK__VERSION; |
|
| 71 | } |
|
| 72 | wp_enqueue_style( 'twentynineteen-jetpack', plugins_url( 'twentynineteen.css', __FILE__ ), array(), $version ); |
|
| 73 | wp_style_add_data( 'twentynineteen-jetpack', 'rtl', 'replace' ); |
|
| 74 | } |
|
| 75 | } |
|
| 76 | add_action( 'init', 'twentynineteen_init_jetpack' ); |
|
| 77 | ||
| 78 | /** |
|