| @@ 474-478 (lines=5) @@ | ||
| 471 | ||
| 472 | // Enqueue styles. |
|
| 473 | $style_relative_path = self::get_blocks_directory() . $type . '/view' . ( is_rtl() ? '.rtl' : '' ) . '.css'; |
|
| 474 | if ( self::block_has_asset( $style_relative_path ) ) { |
|
| 475 | $style_version = self::get_asset_version( $style_relative_path ); |
|
| 476 | $view_style = plugins_url( $style_relative_path, JETPACK__PLUGIN_FILE ); |
|
| 477 | wp_enqueue_style( 'jetpack-block-' . $type, $view_style, array(), $style_version ); |
|
| 478 | } |
|
| 479 | ||
| 480 | } |
|
| 481 | ||
| @@ 227-231 (lines=5) @@ | ||
| 224 | } |
|
| 225 | ||
| 226 | $style_relative_path = '_inc/build/instant-search/instant-search.min.css'; |
|
| 227 | if ( file_exists( JETPACK__PLUGIN_DIR . $script_relative_path ) ) { |
|
| 228 | $style_version = self::get_asset_version( $style_relative_path ); |
|
| 229 | $style_path = plugins_url( $style_relative_path, JETPACK__PLUGIN_FILE ); |
|
| 230 | wp_enqueue_style( 'jetpack-instant-search', $style_path, array(), $style_version ); |
|
| 231 | } |
|
| 232 | ||
| 233 | //filters configuration |
|
| 234 | $filters = Jetpack_Search_Helpers::get_filters_from_widgets(); |
|