HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /var/www/html/www.winghung.com/wp-content/plugins/conversational-forms/classes/cdn/jsdelivr.php
<?php

/**
 * CDN integrations for jsdelivr
 *
 * @package Caldera_Forms Modified by QuantumCloud
 * @author    Josh Pollock <Josh@CalderaWP.com>
 * @license   GPL-2.0+
 * @link
 * @copyright 2017 CalderaWP LLC
 */

class Qcformbuilder_Forms_CDN_Jsdelivr extends Qcformbuilder_Forms_CDN {

	protected $combines = array(
		'scripts' => array(),
		'styles'  => array()
	);

	/**
	 * @inheritdoc
	 * @since 1.5.3
	 */
	public function cdn_url( ){
		
	}

	/**
	 * @inheritdoc
	 * @since 1.5.3
	 */
	public function add_hooks(){
		add_action( 'wp_footer', array( $this, 'radar_tag' ) );

		parent::add_hooks();
	}

	/**
	 * @inheritdoc
	 * @since 1.5.3
	 */
	public function remove_hooks(){
		remove_action( 'wp_footer', array( $this, 'radar_tag' ) );
		parent::remove_hooks();
	}

	/**
	 * Add the radar tag for CDN network
	 *
	 * @see: https://github.com/jsdelivr/jsdelivr#contribute-performance-data
	 *
	 * @uses "wp_footer"
	 *
	 * @since 1.5.3
	 */
	public function radar_tag(){
		
	}


	/**
	 * Add scripts/style slugs to list to be combined
	 *
	 * @since 1.5.3
	 *
	 * @param $slug
	 * @param bool $script
	 */
	public function add_to_combiner( $slug, $script = true ){
		if( $script ){
			$this->combines[ 'scripts' ] = $slug;
		}else {
			$this->combines[ 'styles' ] = $slug;
		}
	}



}