public static isCustomVariablesPluginsEnabled ( ) |
private function addSearchWidgets(WidgetsList $widgetsList, $controller) { $category = 'Actions_SubmenuSitesearch'; $widgetsList->add($category, 'Actions_WidgetSearchKeywords', $controller, 'getSiteSearchKeywords'); if (Actions::isCustomVariablesPluginsEnabled()) { $widgetsList->add($category, 'Actions_WidgetSearchCategories', $controller, 'getSiteSearchCategories'); } $widgetsList->add($category, 'Actions_WidgetSearchNoResultKeywords', $controller, 'getSiteSearchNoResultKeywords'); $widgetsList->add($category, 'Actions_WidgetPageUrlsFollowingSearch', $controller, 'getPageUrlsFollowingSiteSearch'); $widgetsList->add($category, 'Actions_WidgetPageTitlesFollowingSearch', $controller, 'getPageTitlesFollowingSiteSearch'); }
public function indexSiteSearch() { $view = new View('@Actions/indexSiteSearch'); $keyword = Report::factory($this->pluginName, 'getSiteSearchKeywords'); $noResult = Report::factory($this->pluginName, 'getSiteSearchNoResultKeywords'); $pageUrls = Report::factory($this->pluginName, 'getPageUrlsFollowingSiteSearch'); $view->keywords = $keyword->render(); $view->noResultKeywords = $noResult->render(); $view->pagesUrlsFollowingSiteSearch = $pageUrls->render(); $categoryTrackingEnabled = Actions::isCustomVariablesPluginsEnabled(); if ($categoryTrackingEnabled) { $categories = Report::factory($this->pluginName, 'getSiteSearchCategories'); $view->categories = $categories->render(); } return $view->render(); }
protected function isEnabledForIdSites($idSites, $idSite) { return parent::isEnabledForIdSites($idSites, $idSite) && Actions::isCustomVariablesPluginsEnabled(); }
public function isEnabled() { return parent::isEnabled() && Actions::isCustomVariablesPluginsEnabled(); }