Exemplo n.º 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))));
 }
Exemplo n.º 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())));
 }
Exemplo n.º 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))));
 }
Exemplo n.º 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())));
 }
Exemplo n.º 5
0
 public static IHtmlString TwoElements(this HtmlHelper helper, IHtmlString left, IHtmlString right)
 {
     return(new HtmlString(LayoutWork.ChildrenTemplate("childrenHalf", left.ToString(), right.ToString())));
 }