Example #1
0
		protected string ProcessBoolInfoCategoryItemSection(InfoCategoryItem infocategoryitem, string template)
		{
			string sectionStartTag;
			string sectionEndTag;
			string sectionTag;
			string sectionValue;
				
			#region Bool Section Processing

            #region Get Section Tag/Value

			sectionStartTag = "{{#InfoCategorySelected}}";
			sectionEndTag = "{{/InfoCategorySelected}}";
            sectionTag = TemplateUtil.GetSectionTag(template, sectionStartTag, sectionEndTag);
			sectionValue = sectionTag.Replace(sectionStartTag, "").Replace(sectionEndTag, "");

			#endregion

            #region Bool Section

			if (sectionTag.Trim().Length > 0)
			{
				template = template.Replace(sectionTag, infocategoryitem.InfoCategorySelected ? sectionValue : "");
            }

            #endregion

            #endregion
				
			#region Bool Section Processing

            #region Get Section Tag/Value

			sectionStartTag = "{{#InfoCategoryDisable}}";
			sectionEndTag = "{{/InfoCategoryDisable}}";
            sectionTag = TemplateUtil.GetSectionTag(template, sectionStartTag, sectionEndTag);
			sectionValue = sectionTag.Replace(sectionStartTag, "").Replace(sectionEndTag, "");

			#endregion

            #region Bool Section

			if (sectionTag.Trim().Length > 0)
			{
				template = template.Replace(sectionTag, infocategoryitem.InfoCategoryDisable ? sectionValue : "");
            }

            #endregion

            #endregion
			
			return template;
		}
Example #2
0
		protected string ProcessListInfoCategoryItemSection(InfoCategoryItem infocategoryitem, string template)
		{

			return template;
		}