public function execute()
 {
     wfProfileIn(__METHOD__);
     // check rights
     if (!ThemeDesignerHelper::checkAccess()) {
         $this->displayRestrictionError();
         wfProfileOut(__METHOD__);
         return;
     }
     Wikia::setVar('OasisEntryControllerName', 'ThemeDesigner');
     wfProfileOut(__METHOD__);
 }
 public function execute()
 {
     wfProfileIn(__METHOD__);
     global $wgOut, $wgExtensionsPath;
     // check rights
     if (!ThemeDesignerHelper::checkAccess()) {
         $this->displayRestrictionError();
         wfProfileOut(__METHOD__);
         return;
     }
     $wgOut->allowClickjacking();
     $this->setHeaders();
     $wgOut->setPageTitle('Example Page Title');
     $wgOut->addScript('<script src="' . $wgExtensionsPath . '/wikia/ThemeDesigner/js/ThemeDesignerPreview.js"></script>');
     $wgOut->addLink(array("type" => "text/css", "rel" => "stylesheet", "href" => AssetsManager::getInstance()->getSassCommonURL('/extensions/wikia/ThemeDesigner/css/ThemeDesignerPreview.scss')));
     $wgOut->addHtml(F::app()->renderView('ThemeDesigner', 'Preview'));
     // page header: use static date
     global $wgHooks;
     $wgHooks['PageHeaderIndexAfterExecute'][] = 'SpecialThemeDesignerPreview::modifyHeaderData';
     wfProfileOut(__METHOD__);
 }
 public function executeSaveSettings()
 {
     wfProfileIn(__METHOD__);
     global $wgRequest;
     // check rights
     if (!ThemeDesignerHelper::checkAccess()) {
         $this->displayRestrictionError(__METHOD__);
     }
     $data = $wgRequest->getArray('settings');
     if ($wgRequest->wasPosted()) {
         $themeSettings = new ThemeSettings();
         $themeSettings->saveSettings($data);
     }
     wfProfileOut(__METHOD__);
 }