• Code change to integrate plugin Borlabs Cookies (commercial) with this plugin. The Podigee shortcode remains unchanged. In Borlabs you have to setup a content blocker and a cookie for Podigee similiar to the default Instagram setup.

    Change the original plugin code line

    return <script class="podigee-podcast-player" src="https://cdn.podigee.com/podcast-player/javascripts/podigee-podcast-player.js" data-configuration="' . $atts['url'] . '/embed?context=external"></script>';

    to

    	$embedCode = '<script class="podigee-podcast-player" src="https://cdn.podigee.com/podcast-player/javascripts/podigee-podcast-player.js" data-configuration="' . $atts['url'] . '/embed?context=external"></script>';
    
    	if (function_exists('BorlabsCookieHelper') && BorlabsCookie\Cookie\Config::getInstance()->get('cookieStatus')) {
    		$embedCode = do_shortcode( '[borlabs-cookie id="podigee" type="content-blocker"]' . $embedCode . '[/borlabs-cookie]');
    	}
    
    	return $embedCode;
    

    If the Borlabs plugin is activated and the general Cookie Status on the settings page is set to ‘On’ consent is required to run the player. Otherwise the player runs as usual.

    • This topic was modified 4 years, 7 months ago by JochenT.
    • This topic was modified 4 years, 7 months ago by JochenT.
Viewing 1 replies (of 1 total)
  • Ben

    (@benbornschein)

    Alternatively you could add a filter hook so we could modify the output before the function returns the code.

Viewing 1 replies (of 1 total)
  • The topic ‘Integrate Borlabs Cookies with this plugin’ is closed to new replies.