Theme Paths

 Colorado 
!Hubzilla Support Forum #themes
Can someone please tell me the circumstances where each of these THEME PATHS may be valid (and the others not)?

    $paths = array(
        "{$root}view/theme/$thname/$ext/$file",
        "{$root}view/theme/$parent/$ext/$file",
        "{$root}view/site/$ext/$file",
        "{$root}view/$ext/$file",
    );


Are some just for legacy support or...?
  
In order:
* Theme specific support files
* "Parent" theme files (in case current theme is a subtheme
* Site specific
* General "base" base Hubzilla elements.

First "found" file wins.

$ext is going to usually be js, css.

Without knowing exactly where you are looking, I'd say that they could all be used anywhere - but some are very likely not used in many cases (for example, add-on authors likely will not have theme specific settings). I think the array is used for js, css, and tpl elements (that would be the value of $ext) in a variety of circumstances, so you may need to be a bit more specific in your question to get more useful info.
  
In order:
* Theme specific support files
* "Parent" theme files (in case current theme is a subtheme
* Site specific
* General "base" base Hubzilla elements.

First "found" file wins.

$ext is going to usually be js, css.

Without knowing exactly where you are looking, I'd say that they could all be used anywhere - but some are very likely not used in many cases (for example, add-on authors likely will not have theme specific settings). I think the array is used for js, css, and tpl elements (that would be the value of $ext) in a variety of circumstances, so you may need to be a bit more specific in your question to get more useful info.