180, 'height' => 60, 'flex-width' => true, 'flex-height' => true, ) ); // Customize Selective Refresh Widgets. add_theme_support( 'customize-selective-refresh-widgets' ); /** * This theme styles the visual editor to resemble the theme style, * specifically font, colors, icons, and column width. */ /* Directory and Extension */ $dir_name = ( SCRIPT_DEBUG ) ? 'unminified' : 'minified'; $file_prefix = ( SCRIPT_DEBUG ) ? '' : '.min'; if ( apply_filters( 'kemet_theme_editor_style', true ) ) { add_editor_style( 'assets/css/' . $dir_name . '/editor-style' . $file_prefix . '.css' ); } if ( apply_filters( 'kemet_fullwidth_oembed', true ) ) { // Filters the oEmbed process to run the responsive_oembed_wrapper() function. add_filter( 'embed_oembed_html', array( $this, 'responsive_oembed_wrapper' ), 10, 3 ); add_filter( 'oembed_result', array( $this, 'responsive_oembed_wrapper' ), 10, 3 ); } // WooCommerce. add_theme_support( 'woocommerce' ); } /** * Adds a responsive embed wrapper around oEmbed content * * @return string Updated embed markup. */ function responsive_oembed_wrapper( $html, $url, $attr ) { $add_kemet_oembed_wrapper = apply_filters( 'kemet_responsive_oembed_wrapper_enable', true ); $allowed_providers = apply_filters( 'kemet_allowed_fullwidth_oembed_providers', array( 'vimeo.com', 'youtube.com', ) ); if ( kemet_strposa( $url, $allowed_providers ) ) { if ( $add_kemet_oembed_wrapper ) { $html = ( '' !== $html ) ? '
' . $html . '
' : ''; } } return $html; } } } Kemet_Setup::get_instance();