Exemplo n.º 1
0
 public static string IncludePageHeaderDefault(NBrightBuyController modCtrl, Page page, String templatename, String themeFolder, bool debugMode = false)
 {
     if (!page.Items.Contains("nbrightbuyinject")) page.Items.Add("nbrightbuyinject", "");
     if (templatename != "" && !page.Items["nbrightbuyinject"].ToString().Contains(templatename + ","))
     {
         var includetext = modCtrl.GetTemplate(templatename,Utils.GetCurrentCulture(),themeFolder, debugMode);
         var objInfo = new NBrightInfo(); //create a object so we process the tag values (resourcekey)
         includetext = GenXmlFunctions.RenderRepeater(objInfo, includetext,"","XMLData","",StoreSettings.Current.Settings());
         if (includetext != "")
         {
             PageIncludes.IncludeTextInHeader(page, includetext);
             page.Items["nbrightbuyinject"] = page.Items["nbrightbuyinject"] + templatename + ",";
         }
     }
     return "";
 }