diff --git a/src/Umbraco.Web.UI/Views/Partials/Grid/bootstrap3.cshtml b/src/Umbraco.Web.UI/Views/Partials/Grid/bootstrap3.cshtml new file mode 100644 index 0000000000..91aaf305af --- /dev/null +++ b/src/Umbraco.Web.UI/Views/Partials/Grid/bootstrap3.cshtml @@ -0,0 +1,66 @@ +@inherits UmbracoViewPage +@using Umbraco.Web.Templates + + +@if (Model != null) +{ + var onlyOneColumn = Model.columns != null ? ((System.Collections.ICollection)Model.columns).Count : 0; +
+
+ @foreach (var column in Model.columns) + { +
+ @foreach (var row in column.rows) + { +
+
+
+ + @foreach (var cell in row.cells) + { +
+
+ + @foreach (var control in cell.controls) + { + if (control != null && control.macro != null) + { + string macroAlias = control.macro.macroAlias.ToString(); + ViewDataDictionary parameters = new ViewDataDictionary(); + foreach (dynamic mpd in control.macro.marcoParamsDictionary) + { + parameters.Add(mpd.Name, mpd.Value); + } + + @Umbraco.RenderMacro(macroAlias, parameters) + } + + if (control != null && control.tinyMCE != null) + { +
+ @Html.Raw(TemplateUtilities.ParseInternalLinks(control.tinyMCE.value.ToString())) +
+ } + + if (control != null && control.media != null) + { + + } + + if (control != null && control.embed != null) + { + @Html.Raw(control.embed.content) + } + } +
+
+ } +
+
+
+ } +
+ } +
+
+} \ No newline at end of file