| @@ 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 | /** |
|
| @@ 69-76 (lines=8) @@ | ||
| 66 | * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production |
|
| 67 | * or skip it entirely for wpcom. |
|
| 68 | */ |
|
| 69 | function twentytwentyone_enqueue_jetpack_style() { |
|
| 70 | $version = Jetpack::is_development_version() |
|
| 71 | ? filemtime( JETPACK__PLUGIN_DIR . 'modules/theme-tools/compat/twentytwentyone.css' ) |
|
| 72 | : JETPACK__VERSION; |
|
| 73 | ||
| 74 | wp_enqueue_style( 'twentytwentyone-jetpack', plugins_url( 'twentytwentyone.css', __FILE__ ), array(), $version ); |
|
| 75 | wp_style_add_data( 'twentytwentyone-jetpack', 'rtl', 'replace' ); |
|
| 76 | } |
|
| 77 | add_action( 'wp_enqueue_scripts', 'twentytwentyone_enqueue_jetpack_style' ); |
|
| 78 | ||