Kategori Makale Detay

@inherits System.Web.Mvc.WebViewPage<Discus.Models.Post>
@using System.Web.Helpers;
@using System.Web.Mvc;
@using System.Web.Mvc.Html;
@using Discus.Models;
@using Discus.Controllers;
@using System.Web.Mvc.Html;
@using System.Text.RegularExpressions;
@{
    string lang = ViewBag.LanguageShortName;
    Category category = Partial.Category(Model.RefPostCategoryID);
    Post lastPost = Partial.LastPost(Model.PostID, true);
    Post nextPost = Partial.NextPost(Model.PostID, true);
}

<div class="jumbotron jumbotron-fluid">
    <div class="container">
        <h1 class="display-4 text-center">@Model.PostTitle.HtmlEncode()</h1>
        <div class="text-center">
            <nav aria-label="breadcrumb" style="display:inline-block;">
                @{ int breadcrumbcount = 2;}
                <ol class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList">
                    <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                        <a itemprop="item" href="@Partial.SiteAddress()@lang"><span itemprop="name">@Partial.Translate("Anasayfa", lang)</span></a>
                        <meta itemprop="position" content="1" />
                    </li>
                    @foreach (Category kat in Partial.BreadcrumbCategory(category.CategoryID))
                    {
                        <li class="breadcrumb-item active" aria-current="page" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                            <a itemprop="item" href="@Partial.CategoryLink(kat.CategoryID)"><span itemprop="name">@kat.CategoryTitle.Replace("<br />", " ").HtmlEncode()</span></a>
                            <meta itemprop="position" content="@(breadcrumbcount)" />
                        </li>
                        breadcrumbcount++;
                    }
                    <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                        <a itemprop="item" href="@Partial.PostLink(Model.PostID)">@Model.PostTitle.HtmlEncode()</a>
                        <meta itemprop="position" content="@(breadcrumbcount)" />
                    </li>
                </ol>
            </nav>
        </div>
    </div>
</div>

<style>
    p {
        text-align: justify;
    }
</style>

<div class="container discus-post-main mt-3">
    <div class="row">
        <div class="col-md-8">
            <div class="discus-content">
                <div class="text-center  d-block d-sm-none">
                    <img src="@Model.PostThumbnail" />
                </div>
                <div class="thumbnail-right  d-none d-sm-block">
                    <img src="@Model.PostThumbnail" />
                </div>
                @Model.PostContent.HtmlEncode()
            </div>
            <div class="clearfix"></div>
            <div class="discus-photogallery row ">
                @foreach (PostImage item in Partial.PostImages(Model.PostID))
                {
                    <div class="col-md-3 mt-5">
                        <div class="discus-photogallery-item" style="background-image:url('@Partial.FileGet(item.RefPostImageFileID).FileLink')">
                            <a data-fancybox="gallery" href="@Partial.FileGet(item.RefPostImageFileID).FileLink" style="display:block;"></a>
                        </div>
                    </div>
                }
                @if (!String.IsNullOrEmpty(Partial.PostMeta(Model.PostID, 4).ToString()))
                {
                    foreach (PhotoGalleryImage item in Partial.PhotoGalleryImages(Partial.PostMeta(Model.PostID, 4).ToString(), lang))
                    {
                        <div class="col-md-3 mt-5">
                            <div class="discus-photogallery-item" style="background-image:url('/Upload/PhotoGallery/@item.PhotoGalleryImageLink')">
                                <a data-fancybox="gallery" href="/Upload/PhotoGallery/@item.PhotoGalleryImageLink" style="display:block;"></a>
                            </div>
                        </div>
                    }
                }
            </div>

            <style>
                .discus-content .thumbnail-right {
                    width: 285px;
                    float: right;
                    padding-left: 10px;
                }

                .discus-photogallery-item {
                    width: 100%;
                    background-size: cover;
                    background-position: center center;
                    border: 1px solid #ccc;
                }

                    .discus-photogallery-item a {
                        height: 200px;
                        display: block;
                    }

                .discus-photogallery .col-md-3 {
                    padding-bottom: 30px;
                }
            </style>
            @if (Partial.OptionGetValue("CommentModul", lang) == "true")
            {
                <div id="discus-comments" class="discus-comments-container">
                    <h3 class="discus-title">@Partial.Translate("Yorumlar", lang)</h3>
                    <ol class="discus-comment-list discus-commentlist">
                        @foreach (Comment comment in Partial.PostCommentsi(Model.PostID))
                        {
                            <li class="discus-comment-item">
                                <div class="discus-the-comment">
                                    <div class="discus-comment-box">
                                        <div class="discus-comment-author">
                                            <strong>@comment.CommentNameSurname</strong> @comment.CommentCreateDate.ToShortDateString()
                                        </div>
                                        <div class="discus-comment-text">
                                            <p>@comment.CommentMessage</p>
                                        </div>
                                    </div>
                                    @foreach (Comment answer in Partial.CommentCevaplari(comment.CommentID))
                                    {
                                        <div class="discus-comment-answer">
                                            <div class="row">
                                                <div class="col-md-2">
                                                    <div class="discus-comment-answer-title">@Partial.Translate("Cevap", lang)</div>
                                                </div>
                                                <div class="col-md-10">
                                                    <div class="discus-comment-answer-author">
                                                        <strong>@Partial.Translate("Admin", lang)</strong> @answer.CommentCreateDate.ToShortDateString()
                                                    </div>
                                                    <div class="discus-comment-answer-text">
                                                        @answer.CommentMessage.HtmlEncode()
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    }
                                </div>
                            </li>
                        }
                    </ol>
                </div>
            }
        </div>
        <div class="col-md-4 pb-5">
            <div style="background-color:#f8f8f8;">
                @{
                    int card073Col = 6;
                    int card073TotalRow = 1;
                    int card073CategoryOrderNumber = 535;

                    if (Partial.isCategoryOrderNumber(card073CategoryOrderNumber))
                    {
                        IEnumerable<Post>
                        card073Posts = Partial.PostsOrderNumber(card073CategoryOrderNumber, 0, card073Col * card073TotalRow, Partial.Order.OrderBy, true, lang);
                        Category category073title = Partial.Category(card073CategoryOrderNumber, lang);
                        int card073Count = Convert.ToInt32(Math.Ceiling(card073Posts.Count() / Convert.ToDouble(card073Col)));
                        <header>
                            <div class="box-heading">@category073title.CategoryTitle<div class="border haber" style="width:30px;"></div></div>
                            <img src="@category073title.CategoryThumbnail" />
                            <div style="background: #10304a;padding: 10px 0px 10px 0px;text-align: center;color:#fff;">
                                <div style="font-size:20px;">@category073title.CategoryContent.HtmlEncode()</div>
                                <div style="font-size:16px;">Belediye Başkanı</div>
                            </div>
                        </header>
                        <div>
                            <div class="category-widget cardtop">
                                @for (int componen = 0; componen < card073Count; componen++)
                                {
                                <ul style="background-color: #fff;">
                                    @foreach (Post comPost in card073Posts.Skip(componen * card073Col).Take(card073Col))
                                    {
                                        <li style="margin: 0px 20px;"><a href="@Partial.PostLink(comPost.PostID)" title="@comPost.PostTitle.HtmlEncode()"> @comPost.PostTitle.HtmlEncode()</a></li>
                                    }
                                </ul>
                                }
                            </div>
                        </div>
                    }
                }
                <div class="sbb-buttons">
                    @{
                        int card0128Col = 6;
                        int card0128TotalRow = 1;
                        int card0128CategoryOrderNumber = 2;

                        if (Partial.isCategoryOrderNumber(card0128CategoryOrderNumber))
                        {
                            IEnumerable<Post>
                            card0128Posts = Partial.PostsOrderNumber(card0128CategoryOrderNumber, 0, card0128Col * card0128TotalRow, Partial.Order.OrderBy, true, lang);
                            Category category0128title = Partial.Category(card0128CategoryOrderNumber, lang);
                            int card0128Count = Convert.ToInt32(Math.Ceiling(card0128Posts.Count() / Convert.ToDouble(card0128Col)));
                            for (int componen = 0; componen < card0128Count; componen++)
                            {
                                <ul class="row no-gutters">
                                    @foreach (Post comPost in card0128Posts.Skip(componen * card0128Col).Take(card0128Col))
                                    {
                                        <li class="sbb-button col-sm-4 col-md-6">
                                            <a href="@Partial.PostLink(comPost.PostID)">
                                                <div class="sbb-cover"><img src="@comPost.PostThumbnail"></div>
                                                <div class="sbb-body">
                                                    <div class="text">Belediye <br> <span>@comPost.PostTitle.HtmlEncode()</span></div>
                                                </div>
                                            </a>
                                        </li>
                                    }
                                </ul>
                            }
                        }
                    }
                </div>
            </div>
        </div>
    </div>
</div>

Css

<style>
    .box-heading {
        font-size: 20px;
        font-weight: 800;
        color: #1b4b62;
        padding: 20px;
    }

    .sbb-cover {
        height: 150px;
        overflow: hidden;
    }

        .sbb-cover img {
            width: 100%;
            height: 100%;
            -o-object-fit: cover;
            object-fit: cover;
            -webkit-transition: -webkit-transform 1.5s cubic-bezier(0, 0, 0.2, 1);
            transition: -webkit-transform 1.5s cubic-bezier(0, 0, 0.2, 1);
            transition: transform 1.5s cubic-bezier(0, 0, 0.2, 1);
            transition: transform 1.5s cubic-bezier(0, 0, 0.2, 1), -webkit-transform 1.5s cubic-bezier(0, 0, 0.2, 1);
        }

    .sbb-body .text {
        font-weight: 300;
        line-height: 1.4;
        font-size: 16px;
    }

    .sbb-button a {
        display: block;
        position: relative;
    }

    .sbb-body {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: rgba(93, 175, 73, 0.9);
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        text-align: center;
        color: #fff;
    }

    .sbb-button:nth-child(2) .sbb-body {
        background: rgba(169, 119, 141, 0.9);
    }

    .sbb-button:nth-child(3) .sbb-body {
        background: rgba(155, 163, 133, 0.9);
    }

    .sbb-button:nth-child(4) .sbb-body {
        background: rgba(80, 152, 161, 0.9);
    }

    .sbb-button:nth-child(5) .sbb-body {
        background: rgba(255, 150, 0, 0.9);
    }

    .sbb-button:nth-child(6) .sbb-body {
        background: rgba(92, 101, 153, 0.9);
    }
</style>

https://www.samsun.bel.tr/icerik/ilkadim-ilcesinde-bulunan-eski-ruh-ve-sinir-hastaliklari-hastanesinin-bulundugu-kokcuoglu-mahallesindeki-binalarin-yikilmasi-ve-tasinmasi-ihale-ilani-26032020-tarihine-kadar