HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/dodolodge-net/wp-content/plugins/thim-core/inc/customizer/modules/webfonts/embed.php
<?php
namespace ThimPress\Customizer\Modules\Webfonts;

final class Embed {

	protected $webfonts;

	public function __construct( $webfonts ) {
		$this->webfonts = $webfonts;

		add_action( 'wp', [ $this, 'init' ], 9 );
	}

	public function init() {
 		add_action( 'thim_customizer_dynamic_css', [ $this, 'the_css' ] );
	}

	public function the_css() {
		$url = $this->webfonts->google_fonts_api_v2_link();

		if ( empty( $url ) ) {
			return;
		}

		$downloader = new Downloader();

		$contents = $downloader->get_styles($url);

		if ( $contents ) {
			echo wp_strip_all_tags( $contents );
		}
	}

}