@@ 15-29 (lines=15) @@ | ||
12 | } |
|
13 | add_action( 'after_setup_theme', 'twentyfifteen_jetpack_setup' ); |
|
14 | ||
15 | function twentyfifteen_init_jetpack() { |
|
16 | /** |
|
17 | * Add our compat CSS file for custom widget stylings and such. |
|
18 | * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production |
|
19 | * or skip it entirely for wpcom. |
|
20 | */ |
|
21 | if ( ! is_admin() ) { |
|
22 | $version = false; |
|
23 | if ( method_exists( 'Jetpack', 'is_development_version' ) ) { |
|
24 | $version = Jetpack::is_development_version() ? filemtime( plugin_dir_path( __FILE__ ) . 'twentyfifteen.css' ) : JETPACK__VERSION; |
|
25 | } |
|
26 | wp_enqueue_style( 'twentyfifteen-jetpack', plugins_url( 'twentyfifteen.css', __FILE__ ), array(), $version ); |
|
27 | wp_style_add_data( 'twentyfifteen-jetpack', 'rtl', 'replace' ); |
|
28 | } |
|
29 | } |
|
30 | add_action( 'init', 'twentyfifteen_init_jetpack' ); |
|
31 |
@@ 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 |
@@ 15-29 (lines=15) @@ | ||
12 | } |
|
13 | add_action( 'after_setup_theme', 'twentysixteen_jetpack_setup' ); |
|
14 | ||
15 | function twentysixteen_init_jetpack() { |
|
16 | /** |
|
17 | * Add our compat CSS file for custom widget stylings and such. |
|
18 | * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production |
|
19 | * or skip it entirely for wpcom. |
|
20 | */ |
|
21 | if ( ! is_admin() ) { |
|
22 | $version = false; |
|
23 | if ( method_exists( 'Jetpack', 'is_development_version' ) ) { |
|
24 | $version = Jetpack::is_development_version() ? filemtime( plugin_dir_path( __FILE__ ) . 'twentysixteen.css' ) : JETPACK__VERSION; |
|
25 | } |
|
26 | wp_enqueue_style( 'twentysixteen-jetpack', plugins_url( 'twentysixteen.css', __FILE__ ), array(), $version ); |
|
27 | wp_style_add_data( 'twentysixteen-jetpack', 'rtl', 'replace' ); |
|
28 | } |
|
29 | } |
|
30 | add_action( 'init', 'twentysixteen_init_jetpack' ); |
|
31 | ||
32 | /** |