From a12b1bf71e24fe49cccec24d7a78e3d4e6ed4e2b Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Thu, 6 Sep 2018 15:55:08 +0300 Subject: [PATCH] Remove vs-blog from js --- .../Pages/Blog/Posts/Detail.cshtml | 329 +++++++-------- .../Pages/Blog/Posts/Index.cshtml | 379 +++++++++--------- .../Pages/Blog/Posts/blogcss/blog.js | 8 - 3 files changed, 357 insertions(+), 359 deletions(-) diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml index 66129d8351..03608cd40a 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml @@ -20,195 +20,198 @@ } -
-
-
-
-
-
-
-

- @foreach (var tag in Model.Post.Tags) - { - @tag.Name - } -

-

- @Model.Post.Title -

-
-
-
+ +
- -
-
-
-

@Html.Raw(Model.FormattedContent)

+
+
+
+

@Html.Raw(Model.FormattedContent)

-
+
+
- -
-
-
-
@L["TagsInThisArticle"]
- @foreach (var tag in Model.Post.Tags) - { - @tag.Name - } -
-
-
-

@L["LeaveComment"]

-
-
- - -
- -
- - +
+
+
+
@L["TagsInThisArticle"]
+ @foreach (var tag in Model.Post.Tags) + { + @tag.Name + } +
+
+
+

@L["LeaveComment"]

+
+
+ + +
+ +
+ + +
-
-
- - - @foreach (var commentWithRepliesDto in Model.CommentsWithReplies) - { -
- -
-
- Armağan Ünlü - @commentWithRepliesDto.Comment.CreationTime.ToString("dd/MM/yyyy hh/mm") -
-

- @commentWithRepliesDto.Comment.Text -

- +
+ + + @foreach (var commentWithRepliesDto in Model.CommentsWithReplies) + { +
+ +
+
+ Armağan Ünlü + @commentWithRepliesDto.Comment.CreationTime.ToString("dd/MM/yyyy hh/mm") +
+

+ @commentWithRepliesDto.Comment.Text +

+ -
-
-

@L["ReplyTo"] Armağan Ünlü

-
-
- - +
+
+

@L["ReplyTo"] Armağan Ünlü

+
+ + + -
- -
- - +
+ +
+ + +
-
- @foreach (var reply in commentWithRepliesDto.Replies) - { -
- -
-
- Zlatan Ibrahimovic - @reply.CreationTime.ToString("dd/MM/yyyy hh/mm") -
-

- @reply.Text -

- + @foreach (var reply in commentWithRepliesDto.Replies) + { +
+ +
+
+ Zlatan Ibrahimovic + @reply.CreationTime.ToString("dd/MM/yyyy hh/mm") +
+

+ @reply.Text +

+ -
-
-

@L["ReplyTo"] Armağan Ünlü

-
-
- - -
- -
- - +
+
+

@L["ReplyTo"] Armağan Ünlü

+
+
+ + +
+ +
+ + +
-
- } + } +
-
- } + } +
\ No newline at end of file diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml index 46c2d8c3da..bb388a28e1 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml @@ -17,7 +17,7 @@ } @section styles { - + @@ -25,238 +25,241 @@ } -
+
-
-
-
-
-
- -
- - @if (await Authorization.IsGrantedAsync(BloggingPermissions.Posts.Create)) - { - Create New Post - } +
+
+
+
-
- @L["SeeAll"] + +
+ + @if (await Authorization.IsGrantedAsync(BloggingPermissions.Posts.Create)) + { + Create New Post + } + +

@L["WhatIsNew"]

+
+ + @for (var index = 0; index < Model.Posts.Count && index < 3; index++) + { + var post = Model.Posts[index]; + + } +
+
-
-
-
-
-
-
-
-

@L["LastPosts"]

+
+
+
+
+
+
+

@L["LastPosts"]

+
-
- @for (var index = 3; index < Model.Posts.Count; index++) - { - var post = Model.Posts[index]; - var oddPost = index % 2 == 1; + @for (var index = 3; index < Model.Posts.Count; index++) + { + var post = Model.Posts[index]; + var oddPost = index % 2 == 1; -
-
-
-
- - - -
+ } -
+
-
-
-
+
\ No newline at end of file diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/blogcss/blog.js b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/blogcss/blog.js index 19ad8db17a..18a1b59c4b 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/blogcss/blog.js +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/blogcss/blog.js @@ -1,5 +1,3 @@ -$('body').addClass("vs-blog"); - function handleArrows() { var herosWidth = $(".hero-articles").width(); var arrowsPosition = (herosWidth / 2 - 90); @@ -17,10 +15,6 @@ function handleImages() { $(".box-articles .img-container").css("height", "auto"); } } -function handleBodyPadding() { - var headerHeight = $("header").height(); - $("body").css("padding-top", headerHeight); -} function handleOwlCarousel() { $('.hero-section .owl-carousel').owlCarousel({ loop:true, @@ -53,7 +47,6 @@ $(document).ready(function(){ handleArrows(); }, 500); handleImages(); - handleBodyPadding(); handleOwlCarousel(); var stickySidebar = new StickySidebar('#sidebar', { topSpacing: 80, @@ -70,7 +63,6 @@ $(window).resize(function(){ setTimeout(function(){ handleArrows(); handleImages(); - handleBodyPadding(); }, 500); });