Beispiel #1
0
 private string GetOrderFile(Site site, string themeName)
 {
     while (site != null)
     {
         var orderFile = FileOrderHelper.GetOrderFile(new Theme(site, themeName).PhysicalPath);
         if (File.Exists(orderFile))
         {
             return(orderFile);
         }
         site = site.Parent;
     }
     return(null);
 }
Beispiel #2
0
 private string GetOrderFile(Site site)
 {
     while (site != null)
     {
         var orderFile = FileOrderHelper.GetOrderFile(GetScriptBasePath(site));
         if (File.Exists(orderFile))
         {
             return(orderFile);
         }
         site = site.Parent;
     }
     return(null);
 }