Skip to content

Commit

Permalink
Upgraded dev magazine
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhenko committed Mar 23, 2016
1 parent 171150e commit 8210df1
Show file tree
Hide file tree
Showing 261 changed files with 289 additions and 47,333 deletions.
6 changes: 6 additions & 0 deletions AttributeRouting/AttributeRoutingSamples.sln.GhostDoc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<GhostDoc>
<IgnoreFilePatterns>
<IgnoreFilePattern>*.min.js</IgnoreFilePattern>
<IgnoreFilePattern>jquery*.js</IgnoreFilePattern>
</IgnoreFilePatterns>
</GhostDoc>
Binary file modified DevMagazineSite/SitefinityWebApp/App_Data/DevMagazine.bak
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<add startupType="Disabled" version="7.3.5328.0" name="DataIntelligenceConnector" />
<add version="8.2.5900.0" name="Comments" />
<add version="8.2.5900.0" name="RecycleBin" />
<add description="Feather" startupType="OnApplicationStart" version="1.4.360.0" name="Feather" />
<add description="Feather" startupType="OnApplicationStart" version="1.4.460.0" name="Feather" />
<add version="8.2.5900.0" name="Translations" />
<add title="Audit Trail - Elasticsearch" description="Logs audit events to an Elasticsearch instance." moduleId="00000000-0000-0000-0000-000000000000" type="Telerik.Sitefinity.Audit.Elasticsearch.ElasticsearchAuditModule, Telerik.Sitefinity.Audit.Elasticsearch, Version=7.3.5328.0, Culture=neutral, PublicKeyToken=4d437ae15f42fd43" startupType="Disabled" name="ElasticsearchAudit" />
</applicationModules>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@
</add>
<add enabled="True" title="Grid widgets" ordinal="0" name="Grids">
<tools>
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="empty-placeholder" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/empty-placeholder.html" visibilityMode="None" name="empty-placeholder" />
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="container-fluid" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/container-fluid.html" visibilityMode="None" name="container-fluid" />
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="grid-7+5" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/grid-7+5.html" visibilityMode="None" name="grid-7+5" />
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="grid-container" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/grid-container.html" visibilityMode="None" name="grid-container" />
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="container" cssClass="sfL100" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/container.html" visibilityMode="None" name="container" />
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="grid-12" cssClass="sfL100" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/grid-12.html" visibilityMode="None" name="grid-12" />
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="grid-2+3+2+3+2" cssClass="sfL20_20_20_20_20" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/grid-2+3+2+3+2.html" visibilityMode="None" name="grid-2+3+2+3+2" />
Expand All @@ -173,10 +177,6 @@
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="grid-6+6" cssClass="sfL50_50" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/grid-6+6.html" visibilityMode="None" name="grid-6+6" />
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="grid-8+4" cssClass="sfL67_33" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/grid-8+4.html" visibilityMode="None" name="grid-8+4" />
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="grid-9+3" cssClass="sfL75_25" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/grid-9+3.html" visibilityMode="None" name="grid-9+3" />
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="empty-placeholder" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/empty-placeholder.html" visibilityMode="None" name="empty-placeholder" />
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="container-fluid" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/container-fluid.html" visibilityMode="None" name="container-fluid" />
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="grid-7+5" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/grid-7+5.html" visibilityMode="None" name="grid-7+5" />
<add enabled="True" type="Telerik.Sitefinity.Frontend.GridSystem.GridControl, Telerik.Sitefinity.Frontend" title="grid-container" layoutTemplate="~/Frontend-Assembly/Telerik.Sitefinity.Frontend/GridSystem/Templates/grid-container.html" visibilityMode="None" name="grid-container" />
</tools>
</add>
</sections>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
<p><a href="@Model.ActionUrl" class="btn btn-primary btn-lg" role="button" >@Model.ActionName</a></p>
}
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
var requiredAttributes = MvcHtmlString.Create(Model.ValidationAttributes);
}

<div class="@Model.CssClass from-group" data-sf-role="checkboxes-field-container">
<div class="@Model.CssClass form-group" data-sf-role="checkboxes-field-container">
<input type="hidden" data-sf-role="violation-messages" value='{ "required": "@Model.RequiredViolationMessage"}' />
<input type="hidden" data-sf-role="required-validator" value='@Model.IsRequired.ToString()' />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
var requiredAttributes = MvcHtmlString.Create(Model.ValidationAttributes);
}

<div class="@Model.CssClass from-group" data-sf-role="checkboxes-field-container">
<div class="@Model.CssClass form-group" data-sf-role="checkboxes-field-container">
<input type="hidden" data-sf-role="violation-messages" value='{ "required": "@Model.RequiredViolationMessage"}' />
<input type="hidden" data-sf-role="required-validator" value='@Model.IsRequired.ToString()' />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@model Telerik.Sitefinity.Frontend.Forms.Mvc.Models.Fields.DropdownListField.DropdownListFieldViewModel

<div class="@Model.CssClass from-group" data-sf-role="text-field-container">
<div class="@Model.CssClass form-group" data-sf-role="text-field-container">
<strong>@Model.MetaField.Title</strong>
<p>@Model.Value</p>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@Html.Script(ScriptRef.JQuery, "top", false)

<div class="@Model.CssClass from-group" data-sf-role="dropdown-list-field-container">
<div class="@Model.CssClass form-group" data-sf-role="dropdown-list-field-container">
<input type="hidden" data-sf-role="violation-messages" value='{ "required": "@Model.RequiredViolationMessage"}' />
<label for='@Html.UniqueId("Dropdown")'>
@Model.MetaField.Title
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@Html.Script(ScriptRef.JQuery, "top", false)

<div class="@Model.CssClass sf-FileField from-group" data-sf-role="file-field-container" data-sf-config="@(Html.AttributeEncode(Model.Serialize()))">
<div class="@Model.CssClass sf-FileField form-group" data-sf-role="file-field-container" data-sf-config="@(Html.AttributeEncode(Model.Serialize()))">
<strong>@Model.MetaField.Title</strong>
<p class="text-danger" data-sf-role="required-violation-message" style="display: none;">@Model.RequiredViolationMessage</p>
@if (!string.IsNullOrEmpty(Model.MetaField.Description))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,40 @@
@using Telerik.Sitefinity.Frontend.Mvc.Helpers
@using System.Web.Mvc;
@using Telerik.Sitefinity.Frontend.Mvc.Helpers;
@using Telerik.Sitefinity.Modules.Pages;
@using Telerik.Sitefinity.UI.MVC;
@using Telerik.Sitefinity.Services;

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<html @Html.RenderLangAttribute()>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" href='~/ResourcePackages/BootstrapCustom/assets/dist/css/styles.min.css' type="text/css" />

@Html.Section("head")
@Html.StyleSheet(Url.Content("~/ResourcePackages/Bootstrap/assets/dist/css/styles.min.css"), "head")
</head>

<body>
@Html.SfPlaceHolder("ContainerPlaceholder")
@Html.Section("top")

<div class="sfPublicWrapper" id="PublicWrapper">
@Html.SfPlaceHolder("Contentplaceholder1")
</div>

<script src="~/ResourcePackages/BootstrapCustom/assets/dist/js/all.min.js"></script>
@* Inline editing scripts and helpers. They should be available only when inline editing is possible. *@
@if (Html.ShouldRenderInlineEditing())
{
@Html.Script(ScriptRef.MicrosoftAjax, "top")
@Html.Script(ScriptRef.MicrosoftAjaxCore, "top")
@Html.Script(ScriptRef.JQuery, "top")

<script>
$(document).ready(function () {
$(".js-nav-fixed").fixit({
top: 0,
fixClass: "is-fixed",
dummyClass: "fixed-dummy",
classOnly: true,
renderDummy: true
});
});
@Html.Script(Url.EmbeddedResource("Telerik.Sitefinity.Resources.Reference", "Telerik.Sitefinity.Resources.Scripts.jquery.ba-outside-events.min.js"), "top")
@Html.Script(ScriptRef.KendoAll, "top")
@Html.Script(Url.EmbeddedResource("Telerik.Sitefinity.Resources.Reference", "Telerik.Sitefinity.Resources.Scripts.RequireJS.require.min.js"), "top")
@Html.InlineEditingManager(false)
}

</script>
@Html.Section("bottom")
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@model Telerik.Sitefinity.Frontend.Forms.Mvc.Models.Fields.MultipleChoiceField.MultipleChoiceFieldViewModel

<div class="@Model.CssClass from-group" data-sf-role="text-field-container">
<div class="@Model.CssClass form-group" data-sf-role="text-field-container">
<strong>@Model.MetaField.Title</strong>
<p>@Model.Value</p>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
var requiredAttributes = MvcHtmlString.Create(Model.ValidationAttributes);
}

<div class="@Model.CssClass from-group" data-sf-role="multiple-choice-field-container">
<div class="@Model.CssClass form-group" data-sf-role="multiple-choice-field-container">
<input type="hidden" data-sf-role="violation-messages" value='{ "required": "@Model.RequiredViolationMessage"}' />

<strong>@Model.MetaField.Title</strong>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
var requiredAttributes = MvcHtmlString.Create(Model.ValidationAttributes);
}

<div class="@Model.CssClass from-group" data-sf-role="multiple-choice-field-container">
<div class="@Model.CssClass form-group" data-sf-role="multiple-choice-field-container">
<input type="hidden" data-sf-role="violation-messages" value='{ "required": "@Model.RequiredViolationMessage"}' />
<strong>@Model.MetaField.Title</strong>
@if (!string.IsNullOrEmpty(Model.MetaField.Description))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
@using Telerik.Sitefinity.Modules.Pages;

@*Add scripts and stylesheets*@
@Html.Script(ScriptRef.JQuery)
@Html.Script("http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js")
@Html.Script(Url.WidgetContent("Mvc/Scripts/Navigation.js"))
@Html.Script(Url.WidgetContent("Mvc/Scripts/Navigation.js"), "bottom")

<select class="nav-select form-control">
@foreach (var node in Model.Nodes)
Expand All @@ -22,7 +20,7 @@
var selectedAttribute = "";
prefix += "-";

if (Model.CurrentSiteMapNode != null && Model.CurrentSiteMapNode.Key == node.OriginalSiteMapNode.Key)
if (Model.CurrentSiteMapNode != null && node.OriginalSiteMapNode !=null && Model.CurrentSiteMapNode.Key == node.OriginalSiteMapNode.Key)
{
selectedAttribute = "selected";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
@using Telerik.Sitefinity.Modules.Pages;

@*Add scripts and stylesheets*@
@Html.Script(ScriptRef.JQuery)
@Html.Script(Url.WidgetContent("Mvc/Scripts/Navigation.js"))
@Html.Script(ScriptRef.JQuery, "top")
@Html.Script(Url.WidgetContent("assets/dist/js/bootstrap.min.js"), "top")

<div class="@Model.CssClass">
<nav role="navigation">
@* @Html.Action("GetView", new { viewName = "Dropdown", model= Model}) *@

<nav class="navbar navbar-default" role="navigation">

<div class="container-fluid">
<div class="navbar-header">
Expand All @@ -19,7 +21,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">DevMagazine</a>
<a class="navbar-brand" href="#">Brand</a>
</div>

<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
@using Telerik.Sitefinity.Modules.Pages;

@*Add scripts and stylesheets*@
@Html.Script(ScriptRef.JQuery)
@Html.Script("http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js")
@Html.Script(Url.WidgetContent("Mvc/Scripts/Navigation.js"))
@Html.Script(Url.WidgetContent("assets/dist/js/bootstrap.min.js"), "top")

<div class="@Model.CssClass">
@Html.Action("GetView", new { viewName = "Dropdown", model= Model})
@* @Html.Action("GetView", new { viewName = "Dropdown", model= Model}) *@

<ul class="nav nav-pills">
@foreach (var node in Model.Nodes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@
@using Telerik.Sitefinity.Modules.Pages;

@*Add scripts and stylesheets*@
@Html.Script(ScriptRef.JQuery)
@Html.Script("http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js")
@Html.Script(Url.WidgetContent("Mvc/Scripts/Navigation.js"))

<div class="@Model.CssClass">
@Html.Action("GetView", new { viewName = "Dropdown", model= Model})
@* @Html.Action("GetView", new { viewName = "Dropdown", model= Model}) *@

<ul class="nav nav-sitemap">
@foreach (var node in Model.Nodes)
Expand All @@ -23,7 +20,7 @@
@helper RenderRootLevelNode(NodeViewModel node)
{
<li>
<a href="@node.Url" target="@node.LinkTarget"><b>@node.Title</b></a>
<a href="@node.Url" target="@node.LinkTarget"><strong>@node.Title</strong></a>
@if (node.ChildNodes.Count > 0)
{
<ul class="nav nav-stacked">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@
@using Telerik.Sitefinity.Modules.Pages;

@*Add scripts and stylesheets*@
@Html.Script(ScriptRef.JQuery)
@Html.Script("http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js")
@Html.Script(Url.WidgetContent("Mvc/Scripts/Navigation.js"))

<div class="@Model.CssClass">
@Html.Action("GetView", new { viewName = "Dropdown", model= Model})
@* @Html.Action("GetView", new { viewName = "Dropdown", model= Model}) *@

@RenderRootLevelNode(@Model.Nodes)
@RenderSubLevelsRecursive(@Model.Nodes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@
@using Telerik.Sitefinity.Modules.Pages;

@*Add scripts and stylesheets*@
@Html.Script(ScriptRef.JQuery)
@Html.Script("http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js")
@Html.Script(Url.WidgetContent("Mvc/Scripts/Navigation.js"))

<div class="@Model.CssClass">
@Html.Action("GetView", new { viewName = "Dropdown", model= Model})
@* @Html.Action("GetView", new { viewName = "Dropdown", model= Model}) *@

<ul class="nav nav-pills nav-stacked">
@foreach (var node in Model.Nodes)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@model Telerik.Sitefinity.Frontend.Mvc.Models.ContentDetailsViewModel

@using Telerik.Sitefinity;
@using Telerik.Sitefinity.Frontend.Mvc.Helpers;
@using Telerik.Sitefinity.Web.DataResolving;

Expand All @@ -10,10 +9,14 @@
<span @Html.InlineEditingFieldAttributes("Title", "ShortText")>@Model.Item.Fields.Title</span>
</h3>

<div class="text-muted">
@Model.Item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")
@Html.Resource("By")
@DataResolver.Resolve(@Model.Item.DataItem, "Author", null)
<div>

<span class="text-muted">
@Model.Item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")
@Html.Resource("By")
@DataResolver.Resolve(@Model.Item.DataItem, "Author", null)
</span>
@Html.CommentsCount("", @Model.Item.DataItem)
</div>

<div @Html.InlineEditingFieldAttributes("Summary", "LongText")>@Html.Raw(Model.Item.Fields.Summary)</div>
Expand All @@ -25,4 +28,6 @@
{
@Html.SocialShareOptions()
}
</div>

@Html.CommentsList(@Model.Item.DataItem)
</div>
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
@model Telerik.Sitefinity.Frontend.Mvc.Models.ContentListViewModel

@using Telerik.Sitefinity;
@using Telerik.Sitefinity.Frontend.Mvc.Helpers;
@using Telerik.Sitefinity.Web.DataResolving;
@using Telerik.Sitefinity.Modules.Pages;
@using Telerik.Sitefinity.Web.DataResolving;

<div class="@Model.CssClass">
<ul class="list-unstyled">
@foreach (var item in Model.Items)
{
var navigateUrl = HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage);

<li @Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)item.Fields.Id)>
<h3>
<a @Html.InlineEditingFieldAttributes("Title", "ShortText") href="@HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage)">@item.Fields.Title</a>
<a @Html.InlineEditingFieldAttributes("Title", "ShortText") href="@navigateUrl">@item.Fields.Title</a>
</h3>

<div class="text-muted">
@item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")
@Html.Resource("By")
@DataResolver.Resolve(item.DataItem, "Author", null)
</div>

<div>
<span class="text-muted">
@item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")
@Html.Resource("By")
@DataResolver.Resolve(item.DataItem, "Author", null)
</span>
@Html.CommentsCount((string)navigateUrl, item.DataItem)
</div>

<div @Html.InlineEditingFieldAttributes("Summary", "ShortText")>@Html.Raw(item.Fields.Summary)</div>

<a href="@HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage)">@Html.Resource("FullStory")</a>
<a href="@navigateUrl">@Html.Resource("FullStory")</a>
</li>
}
</ul>
Expand All @@ -34,4 +38,4 @@
redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate })
}

</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@Html.Script(ScriptRef.JQuery, "top", false)

<div class="forms-group @Model.CssClass" data-sf-role="paragraph-text-field-container">
<div class="form-group @Model.CssClass" data-sf-role="paragraph-text-field-container">
<input type="hidden" data-sf-role="violation-messages" value='{"maxLength":"@Model.MaxLengthViolationMessage", "required": "@Model.RequiredViolationMessage"}' />
<label for='@Html.UniqueId("Textarea")'>@Model.MetaField.Title </label>
<textarea id='@Html.UniqueId("Textarea")' data-sf-role="paragraph-text-field-textarea" name="@Model.MetaField.FieldName" placeholder="@Model.PlaceholderText" @MvcHtmlString.Create(Model.ValidationAttributes)>@Model.Value</textarea>
Expand Down
Loading

0 comments on commit 8210df1

Please sign in to comment.