示例#1
0
 public static IHtmlString ThreeElements(this HtmlHelper helper, string useClass, IHtmlString left, IHtmlString middle, IHtmlString right)
 {
     return(new HtmlString(LayoutWork.ChildrenTemplate("childrenThird",
                                                       HtmlMethods.addOrUpdateCssClass(left.ToString(), useClass),
                                                       HtmlMethods.addOrUpdateCssClass(middle.ToString(), useClass),
                                                       HtmlMethods.addOrUpdateCssClass(right.ToString(), useClass))));
 }
示例#2
0
 public static IHtmlString FourElements(this HtmlHelper helper, IHtmlString left, IHtmlString middleLeft, IHtmlString middleRight, IHtmlString right)
 {
     return(new HtmlString(LayoutWork.ChildrenTemplate("childrenQuarter",
                                                       left.ToString(),
                                                       middleLeft.ToString(),
                                                       middleLeft.ToString(),
                                                       right.ToString())));
 }
示例#3
0
 public static IHtmlString ImageTextLeft(this HtmlHelper helper, string containerClass, string imgSrc, string text)
 {
     return(new HtmlString(LayoutWork.ImageTextTemplate("left " + containerClass, string.Format("<img {0} />", HtmlMethods.attribute("src", imgSrc)), string.Format("<span >{0}</span>", text))));
 }
示例#4
0
 public static IHtmlString ThreeElements(this HtmlHelper helper, IHtmlString left, IHtmlString middle, IHtmlString right)
 {
     return(new HtmlString(LayoutWork.ChildrenTemplate("childrenThird", left.ToString(), middle.ToString(), right.ToString())));
 }
示例#5
0
 public static IHtmlString TwoElements(this HtmlHelper helper, IHtmlString left, IHtmlString right)
 {
     return(new HtmlString(LayoutWork.ChildrenTemplate("childrenHalf", left.ToString(), right.ToString())));
 }