Advertisement
Guest User

Untitled

a guest
Jun 21st, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.47 KB | None | 0 0
  1. @using Articulate
  2. @using Umbraco.Core
  3. @model Articulate.Models.PostModel
  4. @{
  5.     Layout = "Master.cshtml";
  6.     ViewBag.CssBodyClass = "post-template";
  7.     var imageToUse = Model.PostImageUrl;
  8.  
  9. }
  10.  
  11. <div class="content">
  12.     <div class="ripe__container">
  13.         <div class="ripe__row">
  14.             <div class="ripe__col ripe__col--12">
  15.                 <style>
  16.                     .headerblock__background {
  17.                         background-image: url("/");
  18.                     }
  19.  
  20.                     /*@@media screen and (max-width: 600px) {
  21.                             .headerblock__background {
  22.                                 background-image: url(/media/1107/jewellery_header_image_mob.jpg);
  23.                             }
  24.                         }*/
  25.                 </style>
  26.  
  27.                 <div class="headerblock">
  28.  
  29.  
  30.                     @imageToUse
  31.                    
  32.  
  33.                     <div class="headerblock__background">
  34.                         <div class="headerblock__container">
  35.                                                      
  36.                             <h1 class="headerblock__heading headerblock__heading--blog">@Model.Name</h1>
  37.                         </div>
  38.                         <img src="/images/curve.png" alt="" class="headerblock__curve">
  39.                     </div>
  40.                 </div>
  41.  
  42.             </div>
  43.         </div>
  44.  
  45.     </div>
  46.  
  47. </div>
  48.  
  49.  
  50. <div class="content__row">
  51.     <article class="@Model.BlogDescription">
  52.  
  53.         <div class="outer-container outer-container--maincontent">
  54.  
  55.             <div class="blog__col-left">
  56.                 <div class="content">
  57.  
  58.  
  59.  
  60.                     <header>
  61.  
  62.                         @Html.ThemedPartial(Model, "PostTags")
  63.  
  64.                         @if (!Model.Author.Name.IsNullOrWhiteSpace())
  65.                         {
  66.                             <section class="author">
  67.                                 @if (!Model.Author.Image.IsNullOrWhiteSpace())
  68.                                 {
  69.                                     <div class="authorimage" style="background: url(@Model.Author.Image)"></div>
  70.                                 }
  71.  
  72.                                 <h4>
  73.                                     @if (!Model.Author.Url.IsNullOrWhiteSpace())
  74.                                     {
  75.                                         <a href="@Model.Author.Url">@Model.Author.Name</a>
  76.                                     }
  77.                                     else
  78.                                     {
  79.                                         <p>Written by @Model.Author.Name - <time datetime="@Model.PublishedDate.ToString("yyyy-MM-dd")"> @Model.PublishedDate.ToString("dddd, MMMM dd, yyyy")</time></p>
  80.                                     }
  81.                                 </h4>
  82.                                 @if (!Model.Author.Bio.IsNullOrWhiteSpace())
  83.                                 {
  84.                                     <p class="bio">@Model.Author.Bio</p>
  85.                                 }
  86.                             </section>
  87.                         }
  88.  
  89.                     </header>
  90.  
  91.  
  92.  
  93.                     <section class="post-content">
  94.  
  95.                         @if (!Model.PostImageUrl.IsNullOrWhiteSpace())
  96.                         {
  97.                             var cropUrl = Model.GetCropUrl("postImage", "blogPost");
  98.                             if (!cropUrl.IsNullOrWhiteSpace())
  99.                             {
  100.                                 <img class="postImage" alt="@Model.Name" src="@cropUrl" />
  101.                             }
  102.                         }
  103.  
  104.                         @Model.Body
  105.                     </section>
  106.  
  107.                 </div>
  108.  
  109.              
  110.             </div>
  111.  
  112.             <div class="blog__col-right">
  113.          
  114.             </div>
  115.  
  116.             <section class="share">
  117.                 @*<p class="info prompt">Share this post</p>*@
  118.                 <a class="blog__icon-container blog__icon-container--twitter" href="http://twitter.com/share?text=@Model.Name&url=@Model.NiceUrlWithDomain()"
  119.                    onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
  120.                     <i class="fa fa-2x fa-fw blog__icon fa-twitter"></i> @*<span class="hidden">Twitter</span>*@
  121.                 </a>
  122.                 <a class="blog__icon-container blog__icon-container--facebook" href="https://www.facebook.com/sharer/sharer.php?u=@Model.NiceUrlWithDomain()"
  123.                    onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
  124.                     <i class="fa fa-2x fa-fw blog__icon fa-facebook"></i> @*<span class="hidden">Facebook</span>*@
  125.                 </a>
  126.                 <a class="blog__icon-container blog__icon-container--google" href="https://plus.google.com/share?url=@Model.NiceUrlWithDomain()"
  127.                    onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
  128.                     <i class="fa fa-2x fa-fw blog__icon fa-envelope"></i> @*<span class="hidden">Google+</span>*@
  129.                 </a>
  130.             </section>
  131.  
  132.             <div class="blog__comments">
  133.                 @if (Model.EnableComments)
  134.                 {
  135.                     @Html.ThemedPartial(Model, "CommentsDisqus")
  136.                     @*@Html.ThemedPartial(Model, "CommentsGooglePlus")*@
  137.                     @*@Html.ThemedPartial(Model, "CommentsFacebook")*@
  138.                 }
  139.             </div>
  140.  
  141.  
  142.  
  143.             </div>
  144.         </article>
  145.     </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement