original_string: protected function loadThemeConfig()
      {
          $xml = $this->getXml();
  
          foreach ($xml->xpath('./resources/themes/theme[@name != "" and @path != ""]') as $node) {
              $path = (string)$node['path'];
              $name = (string)$node['name'];
  
              $this->manifest['application_config']['rampage']['themes'][$name]['path'] = $this->getModulePath($path);
  
              if (isset($node['fallbacks'])) {
                  $fallbacks = explode(',', (string)$node['fallbacks']);
                  $fallbacks = array_filter(array_map('trim', $fallbacks));
  
                  $this->manifest['application_config']['rampage']['themes'][$name]['fallbacks'] = $fallbacks;
              }
          }
  
          return $this;
      }
code: protected function loadThemeConfig()
      {
          $xml = $this->getXml();
  
          foreach ($xml->xpath('./resources/themes/theme[@name != "" and @path != ""]') as $node) {
              $path = (string)$node['path'];
              $name = (string)$node['name'];
  
              $this->manifest['application_config']['rampage']['themes'][$name]['path'] = $this->getModulePath($path);
  
              if (isset($node['fallbacks'])) {
                  $fallbacks = explode(',', (string)$node['fallbacks']);
                  $fallbacks = array_filter(array_map('trim', $fallbacks));
  
                  $this->manifest['application_config']['rampage']['themes'][$name]['fallbacks'] = $fallbacks;
              }
          }
  
          return $this;
      }
code_tokens: protected function loadThemeConfig ( ) { $ xml = $ this -> getXml ( ) ; foreach ( $ xml -> xpath ( './resources/themes/theme[@name != "" and @path != ""]' ) as $ node ) { $ path = ( string ) $ node [ 'path' ] ; $ name = ( string ) $ node [ 'name' ] ; $ this -> manifest [ 'application_config' ] [ 'rampage' ] [ 'themes' ] [ $ name ] [ 'path' ] = $ this -> getModulePath ( $ path ) ; if ( isset ( $ node [ 'fallbacks' ] ) ) { $ fallbacks = explode ( ',' , ( string ) $ node [ 'fallbacks' ] ) ; $ fallbacks = array_filter ( array_map ( 'trim' , $ fallbacks ) ) ; $ this -> manifest [ 'application_config' ] [ 'rampage' ] [ 'themes' ] [ $ name ] [ 'fallbacks' ] = $ fallbacks ; } } return $ this ; }
docstring: Load theme config
  
  @return \rampage\core\modules\ManifestConfig
docstring_tokens: Load theme config