MAKALE

Kategori altına eklenen makaleleri, kategori sıra numarasına göre listeler.

<section class="discus-parallax bg-white">
    @{
        int card73Col = 3;
        int card73TotalRow = 1;
        int card73CategoryOrderNumber = 3;

        if (Partial.isCategoryOrderNumber(card73CategoryOrderNumber))
        {
            IEnumerable<Post>
            card73Posts = Partial.PostsOrderNumber(card73CategoryOrderNumber, 0, card73Col * card73TotalRow, Partial.Order.OrderBy, true, lang);
            Category categorytitle = Partial.Category(card73CategoryOrderNumber, lang);
            int card73Count = Convert.ToInt32(Math.Ceiling(card73Posts.Count() / Convert.ToDouble(card73Col)));
        <div class="container">
            <div class="section-header center">
                <h2 class="title" style="color:#333333;">@categorytitle.CategoryTitle.HtmlEncode()</h2>
                <div class="border mb-4"></div>
            </div>

            <div class="rs-courses-categories2">
                @for (int componen = 0; componen < card73Count; componen++)
                {
                    <div class="row">
                        @foreach (Post comPost in card73Posts.Skip(componen * card73Col).Take(card73Col))
                        {

                            <div class="col-lg-@(12 / card73Col) col-md-@(12 / card73Col) mb-3">
                                <div class="card">
                                    <a href="@Partial.PostLink(comPost.PostID)">
                                        <img class="card-img-top discus-card-custom-img" src="@comPost.PostThumbnail">
                                    </a>
                                    <div class="card-body text-center">
                                        <h2>@comPost.PostTitle.HtmlEncode()</h2>
                                    
                                        <div class="discus-spotlight-content">
                                            @Partial.PostShortContent(comPost.PostID, 85)
                                        </div>
                                    </div>
                                    <div class="about-content text-center mb-3">
                                        <a href="@Partial.PostLink(comPost.PostID)" class="readmore-btn" tabindex="0">@Partial.Translate("Devami", lang)</a>
                                    </div>
                                </div>

                            </div>

                        }
                    </div>
                }
            </div>
        </div>
        }
    }
</section>

ALT KATEGORİ

@{
    int card20Col = 3;
    int card20TotalRow = 1;
    int card20CategoryOrderNumber = 3;

    if (Partial.isCategoryOrderNumber(card20CategoryOrderNumber))
    {
        IEnumerable<Category>
        card20Category = Partial.CategorySubID(card20CategoryOrderNumber);
        Category categoryidno = Partial.Category(card20CategoryOrderNumber);
        int card2Count = Convert.ToInt32(Math.Ceiling(card20Category.Count() / Convert.ToDouble(card20Col)));
        <div class="container-fluid bg-white p-5">
            <h3 class="text-center">@categoryidno.CategoryTitle.HtmlEncode()</h3>
            <div class="container">
                @for (int componen = 0; componen < card20TotalRow; componen++)
                {
                    <div class="row">
                        @foreach (Category comCategory in card20Category.Skip(componen * card20Col).Take(card20Col))
                        {
                            <div class="col-md-@(12 / card20Col)">
                                <div class="card mt-4">
                                    <img class="card-img-top" src="@comCategory.CategoryThumbnail" alt="Card image cap">
                                    <div class="card-body text-center">
                                        <h5 class="card-title">@comCategory.CategoryTitle.HtmlEncode()</h5>
                                        <p class="card-text">@Partial.CategoryShortContent(comCategory.CategoryID, 170)</p>


                                        <div class="discus-btn text-center">
                                            <a href="@Partial.CategoryLink(comCategory.CategoryID)" class="btn btn-success">@Partial.Translate("Devami", lang)<i class="fa fa-arrow-circle-right"></i></a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        }
                    </div>
                }
            </div>
        </div>
    }
}

www.yapraktarim.com.tr

http://www.yapraktarim.com.tr/tr

http://www.royalagroscience.com/

http://www.ispartafidancilik.com.tr/tr

http://www.sgplastik.com.tr/tr

İndex Bileşenleri