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'; add_editor_style( 'assets/css/' . $dir_name . '/editor-style' . $file_prefix . '.css' ); if ( apply_filters( 'astra_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 ); } // WooCommerce. add_theme_support( 'woocommerce' ); } /** * Adds a responsive embed wrapper around oEmbed content * * @param string $html The oEmbed markup. * @param string $url The URL being embedded. * @param array $attr An array of attributes. * @return string Updated embed markup. */ function responsive_oembed_wrapper( $html, $url, $attr ) { $add_astra_oembed_wrapper = apply_filters( 'astra_responsive_oembed_wrapper_enable', true ); if ( false !== strpos( $url, 'vimeo.com' ) || false !== strpos( $url, 'youtube.com' ) || false !== strpos( $url, 'youtu.be' ) ) { if ( $add_astra_oembed_wrapper ) { $html = ( '' !== $html ) ? '
' : ''; } } return $html; } } }// End if(). /** * Kicking this off by calling 'get_instance()' method */ Astra_After_Setup_Theme::get_instance();