| @@ 117-124 (lines=8) @@ | ||
| 114 | * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production |
|
| 115 | * or skip it entirely for wpcom. |
|
| 116 | */ |
|
| 117 | function twentytwenty_enqueue_jetpack_style() { |
|
| 118 | $version = Jetpack::is_development_version() |
|
| 119 | ? filemtime( JETPACK__PLUGIN_DIR . 'modules/theme-tools/compat/twentytwenty.css' ) |
|
| 120 | : JETPACK__VERSION; |
|
| 121 | ||
| 122 | wp_enqueue_style( 'twentytwenty-jetpack', plugins_url( 'twentytwenty.css', __FILE__ ), array(), $version ); |
|
| 123 | wp_style_add_data( 'twentytwenty-jetpack', 'rtl', 'replace' ); |
|
| 124 | } |
|
| 125 | add_action( 'wp_enqueue_scripts', 'twentytwenty_enqueue_jetpack_style' ); |
|
| 126 | ||
| 127 | /** |
|
| @@ 25-32 (lines=8) @@ | ||
| 22 | * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production |
|
| 23 | * or skip it entirely for wpcom. |
|
| 24 | */ |
|
| 25 | function twentytwentyone_enqueue_jetpack_style() { |
|
| 26 | $version = Jetpack::is_development_version() |
|
| 27 | ? filemtime( JETPACK__PLUGIN_DIR . 'modules/theme-tools/compat/twentytwentyone.css' ) |
|
| 28 | : JETPACK__VERSION; |
|
| 29 | ||
| 30 | wp_enqueue_style( 'twentytwentyone-jetpack', plugins_url( 'twentytwentyone.css', __FILE__ ), array(), $version ); |
|
| 31 | wp_style_add_data( 'twentytwentyone-jetpack', 'rtl', 'replace' ); |
|
| 32 | } |
|
| 33 | add_action( 'wp_enqueue_scripts', 'twentytwentyone_enqueue_jetpack_style' ); |
|
| 34 | ||