diff --git a/plugins/CoreAdminHome/Controller.php b/plugins/CoreAdminHome/Controller.php index cb914716cf3..eb1082baabb 100644 --- a/plugins/CoreAdminHome/Controller.php +++ b/plugins/CoreAdminHome/Controller.php @@ -180,6 +180,15 @@ public function optOut() $view->language = Piwik_LanguagesManager_API::getInstance()->isLanguageAvailable($language) ? $language : Piwik_LanguagesManager::getLanguageCodeForCurrentUser(); + + $customStyle = Piwik_Common::getRequestVar('style', false); + if (!empty($customStyle)) { + $customStyle = 'optout_' . str_replace(array('.', '/', ':'), '_', $customStyle) . '.css'; + if (file_exists(PIWIK_DOCUMENT_ROOT . '/themes/' . $customStyle)) { + $view->customStyle = $customStyle; + } + } + echo $view->render(); } diff --git a/plugins/CoreAdminHome/templates/optOut.twig b/plugins/CoreAdminHome/templates/optOut.twig index c2a41f2fb75..ce32750dcfe 100644 --- a/plugins/CoreAdminHome/templates/optOut.twig +++ b/plugins/CoreAdminHome/templates/optOut.twig @@ -3,6 +3,9 @@
+ {% if customStyle %} + + {% endif %} {% if not trackVisits %}