Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="sc-entity-@Content.EntityID" class="sc-entity sc-text" data-animate="@Content.Animacja">
- @if((Dnn.User.IsInRole("Administrators") || @Dnn.User.IsSuperUser) && DotNetNuke.Common.Globals.IsEditMode())
- {
- <div class="sc-module-name">
- @Content.Nazwa
- </div>
- <div class="sc-edit">
- @Edit.Toolbar(Content, actions: "edit,layout,remove,moveup,movedown,template-develop", settings: new { show = "always"})
- </div>
- }
- <div class="sc-gap-1 editor-styles">
- @if(Content.NaglowekTekst != "")
- {
- if(Content.NaglowekRodzaj == "h1") { <text><h1>@Content.NaglowekTekst</h1></text> }
- if(Content.NaglowekRodzaj == "h2") { <text><h2>@Content.NaglowekTekst</h2></text> }
- if(Content.NaglowekRodzaj == "h3") { <text><h3>@Content.NaglowekTekst</h3></text> }
- if(Content.NaglowekRodzaj == "h4") { <text><h4>@Content.NaglowekTekst</h4></text> }
- if(Content.NaglowekRodzaj == "h5") { <text><h5>@Content.NaglowekTekst</h5></text> }
- if(Content.NaglowekRodzaj == "h6") { <text><h6>@Content.NaglowekTekst</h6></text> }
- }
- @Html.Raw(Content.Tresc)
- </div>
- @if(Content.Animacja != "")
- {
- <script>
- jQuery(document).ready(function() {
- if(jQuery().viewportChecker) {
- var entity@(Content.EntityID) = jQuery('#sc-entity-@Content.EntityID');
- entity@(Content.EntityID).viewportChecker({
- classToAdd: 'animated ' + entity@(Content.EntityID).data('animate'),
- repeat: false,
- offset: -50
- });
- }
- });
- </script>
- }
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement