Advertisement
Guest User

Untitled

a guest
Oct 9th, 2017
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. <div id="sc-entity-@Content.EntityID" class="sc-entity sc-text" data-animate="@Content.Animacja">
  2. @if((Dnn.User.IsInRole("Administrators") || @Dnn.User.IsSuperUser) && DotNetNuke.Common.Globals.IsEditMode())
  3. {
  4. <div class="sc-module-name">
  5. @Content.Nazwa
  6. </div>
  7. <div class="sc-edit">
  8. @Edit.Toolbar(Content, actions: "edit,layout,remove,moveup,movedown,template-develop", settings: new { show = "always"})
  9. </div>
  10. }
  11. <div class="sc-gap-1 editor-styles">
  12. @if(Content.NaglowekTekst != "")
  13. {
  14. if(Content.NaglowekRodzaj == "h1") { <text><h1>@Content.NaglowekTekst</h1></text> }
  15. if(Content.NaglowekRodzaj == "h2") { <text><h2>@Content.NaglowekTekst</h2></text> }
  16. if(Content.NaglowekRodzaj == "h3") { <text><h3>@Content.NaglowekTekst</h3></text> }
  17. if(Content.NaglowekRodzaj == "h4") { <text><h4>@Content.NaglowekTekst</h4></text> }
  18. if(Content.NaglowekRodzaj == "h5") { <text><h5>@Content.NaglowekTekst</h5></text> }
  19. if(Content.NaglowekRodzaj == "h6") { <text><h6>@Content.NaglowekTekst</h6></text> }
  20. }
  21. @Html.Raw(Content.Tresc)
  22. </div>
  23. @if(Content.Animacja != "")
  24. {
  25. <script>
  26. jQuery(document).ready(function() {
  27. if(jQuery().viewportChecker) {
  28. var entity@(Content.EntityID) = jQuery('#sc-entity-@Content.EntityID');
  29. entity@(Content.EntityID).viewportChecker({
  30. classToAdd: 'animated ' + entity@(Content.EntityID).data('animate'),
  31. repeat: false,
  32. offset: -50
  33. });
  34. }
  35. });
  36. </script>
  37. }
  38. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement