Guest User

Untitled

a guest
Dec 13th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. namespace Corlate.Feature.Configurations.Models
  2. {
  3. using Sitecore.Data.Items;
  4.  
  5. /// <summary>
  6. /// Defines the <see cref="ThemeLibrary" />
  7. /// </summary>
  8. public class ThemeLibrary : CustomItem
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="ThemeLibrary"/> class.
  12. /// </summary>
  13. /// <param name="innerItem">The <see cref="Item"/></param>
  14. public ThemeLibrary(Item innerItem) : base(innerItem)
  15. {
  16. }
  17.  
  18. /// <summary>
  19. /// Gets the IsStylesheet
  20. /// </summary>
  21. public bool IsStylesheet
  22. {
  23. get
  24. {
  25. return InnerItem.Fields[References.Templates.ThemeLibrary.Fields.IsStylesheet].Value == "1";
  26. }
  27. }
  28.  
  29. /// <summary>
  30. /// Gets the FilePath
  31. /// </summary>
  32. public string FilePath
  33. {
  34. get
  35. {
  36. return InnerItem.Fields[References.Templates.ThemeLibrary.Fields.FilePath].Value;
  37. }
  38. }
  39. }
  40. }
Add Comment
Please, Sign In to add comment