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);

    string enlem = Partial.PostMeta(Model.PostID, "Enlem").ToString();
    string boylam = Partial.PostMeta(Model.PostID, "Boylam").ToString();
    string firma = Partial.PostMeta(Model.PostID, "Üye Şirket").ToString();
    string web = Partial.PostMeta(Model.PostID, "Üye Sitesi").ToString();
    string tel = Partial.PostMeta(Model.PostID, "Üye Telefon").ToString();
    string fax = Partial.PostMeta(Model.PostID, "Üye Faks").ToString();
    string email = Partial.PostMeta(Model.PostID, "Üye E-Posta").ToString();
    string adres = Partial.PostMeta(Model.PostID, "Üye Adresi").ToString();

}

<div class="jumbotron jumbotron-fluid">
    <div class="discus-shadow">
        <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>
</div>

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

<div class="container ana">
    <h2 class="text-center">@firma Hakkında</h2>

    <div class="row">
        <div class="col-md-3">
            <img class="img-responsive img-thumbnail force-responsive" src="@Model.PostThumbnail" />
        </div>
        <div class="col-md-9">
            <div class="row">
                <iframe class="haritaframe" src="http://maps.google.com/maps?z=15&t=m&q=loc:@(Partial.Translate("Enlem1", lang))+@(Partial.Translate("Boylam1", lang))&output=embed" style="width:100%; height:200px;"></iframe>
                <div class="haritakapat" onclick="style.pointerEvents = 'none'; style.background = 'transparent'"></div>
            </div>
        </div>
    </div>

    <div class="row mrow">
            <div class="col-xs-12 col-md-12">
                @if (!String.IsNullOrEmpty(firma))
                {
                <p> <strong>@Partial.Translate("UyeFirma", lang) : </strong> @firma</p>
                }

                @if (!String.IsNullOrEmpty(web))
                {
                    <p><strong>@Partial.Translate("UyeWeb", lang) : </strong> <a href="@web" target="_blank">@web</a></p>
                }

                @if (!String.IsNullOrEmpty(tel))
                {
                    <p><strong>@Partial.Translate("UyeTel", lang) : </strong> <a href="tel:@(tel)">@tel</a></p>
                }

                @if (!String.IsNullOrEmpty(fax))
                {
                    <p><strong>@Partial.Translate("UyeFaks", lang) : </strong>@fax</p>
                }

                @if (!String.IsNullOrEmpty(email))
                {
                    <p><strong>@Partial.Translate("UyeMail", lang) : </strong> <a href="mailto:@(email)">@email</a></p>
                }
                @if (!String.IsNullOrEmpty(adres))
                {
                    <p><strong>@Partial.Translate("UyeAdres", lang) : </strong>@adres</p>
                }
            </div>
    </div>
    <div class="row">

            @if (!String.IsNullOrEmpty(Partial.PostContent(Model.PostID).ToString()))
            {
                <div class="col-md-12">
                    <p class="text-justify">
                        @Partial.PostContent(Model.PostID)
                    </p>
                </div>
            }
    </div>
</div>

Css


<style>
    .ana {
        padding-bottom: 45px;
    }

    .mrow {
        padding-top: 15px;
        padding-bottom: 15px;
        border-top: 1px solid #dcdcdc;
        border-bottom: 1px solid #dcdcdc;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .kapat {
        width: 100%;
        height: 200px;
        position: relative;
        margin-top: -205px;
        background: rgba(0, 0, 0, 0.05);
    }
</style>

yorsiad.org.tr