library/core/class.thememanager.php
public function Start($Force = FALSE) {
      
      if (function_exists('apc_fetch') && C('Garden.Apc', FALSE))
         $this->Apc = TRUE;
      
      // Build list of all available themes
      $this->AvailableThemes($Force);
      
      // If there is a hooks file in the theme folder, include it.
      $ThemeName = $this->CurrentTheme();
      $ThemeInfo = $this->GetThemeInfo($ThemeName);
      $ThemeHooks = GetValue('RealHooksFile', $ThemeInfo, NULL);
      if (file_exists($ThemeHooks))
         include_once($ThemeHooks);
   }
public function Start($Force = FALSE) {
      
      if (function_exists('apc_fetch') && C('Garden.Apc', FALSE))
         $this->Apc = TRUE;
      
      // Build list of all available themes
      $this->AvailableThemes($Force);
      
      // If there is a hooks file in the theme folder, include it.
      $ThemeName = $this->CurrentTheme();
      $ThemeInfo = $this->GetThemeInfo($ThemeName);
      $ThemeHooks = GetValue('RealHooksFile', $ThemeInfo, NULL);
      if (file_exists($ThemeHooks))
         include_once($ThemeHooks);
   }
public function Start ( $ Force = FALSE ) { if ( function_exists ( 'apc_fetch' ) && C ( 'Garden.Apc' , FALSE ) ) $ this -> Apc = TRUE ; // Build list of all available themes $ this -> AvailableThemes ( $ Force ) ; // If there is a hooks file in the theme folder, include it. $ ThemeName = $ this -> CurrentTheme ( ) ; $ ThemeInfo = $ this -> GetThemeInfo ( $ ThemeName ) ; $ ThemeHooks = GetValue ( 'RealHooksFile' , $ ThemeInfo , NULL ) ; if ( file_exists ( $ ThemeHooks ) ) include_once ( $ ThemeHooks ) ; }
Sets up the theme framework

This method indexes all available themes and extracts their information.
It then determines which plugins have been enabled, and includes them.
Finally, it parses all plugin files and extracts their events and plugged
methods.
Sets up the theme framework