Source of file CookiePolicyAjaxController.php
Size: 0,565 Bytes - Last Modified: 2021-12-24T06:43:55+00:00
/var/www/docs.ssmods.com/process/src/code/CookiePolicyAjaxController.php
123456789101112131415161718192021222324252627 | <?php /** * Created by PhpStorm. * User: robert * Date: 26.08.18 * Time: 16:05 */ class CookiePolicyAjaxController extends Controller { public function index(SS_HTTPRequest $request) { // Director::is_ajax() geht hier leider nicht ... keine Ahnung warum $cfg = SiteConfig::current_site_config(); if (!$cfg->CookiePolicyEnabled) { return; } $html = $cfg->renderWith('CookiePolicyBanner'); $html = sprintf("<style>%s</style>", $cfg->CookiePolicyCSS) . $html; return $html; } } |