Skip to content

Instantly share code, notes, and snippets.

@kgiszewski
Created December 31, 2015 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kgiszewski/81d87aea258e5b8844c4 to your computer and use it in GitHub Desktop.
Save kgiszewski/81d87aea258e5b8844c4 to your computer and use it in GitHub Desktop.
@inherits UmbracoViewPage<Archetype.Models.ArchetypeFieldsetModel>
@{
var colorClass = Model.GetValue<string>("color");
if (string.IsNullOrEmpty(colorClass))
{
colorClass = "primary"; //default
}
}
<section class="break @colorClass.ToLower()-break break-module">
<div class="col-md-12">
<blockquote>@Html.Raw(Model.GetValue<string>("text"))</blockquote>
</div>
</section>
@inherits UmbracoViewPage<Archetype.Models.ArchetypeFieldsetModel>
<section class="code-block">
<div class="container">
<div class="col-md-12">
<pre><code>@Model.GetValue("text")</code></pre>
</div>
</div>
</section>
@inherits UmbracoViewPage<Archetype.Models.ArchetypeFieldsetModel>
<section class="video video-module">
<div class="container">
<div class="col-md-12">
<iframe width="100%" height="1" src="https://www.youtube.com/embed/@Model.GetValue("youTubeId")" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment