[slot vrtx-main-content] [def rc = request-context()] [def resourceUri rc.resource-uri] [def repoId rc.repository-id] [!-- Kj?r vanlig under uio1 design under for-ansatte: --] [if resourceUri ~ "/for-ansatte/.*" && (repoId = "uio-test.uio.no" || repoId = "www.uio.no" || repoId = "vortex-test.uio.no")] [slot-content] [else] [def document structured-document()] [def author document.properties.author] [resource-props "."] [call "comp:link-other-language"]
[def portraitImage false] [def theHidePicture document.properties.hidePicture] [if theHidePicture = "false" || theHidePicture = false || theHidePicture = null] [def img-uri resource-prop(".", "picture")] [def pixel-width null] [def img null] [def pixel-width null] [def pixel-height null] [if img-uri != null] [def img resource(img-uri)] [/if] [if img != null] [def pixel-width resource-prop(img-uri, "pixelWidth")] [def pixel-height resource-prop(img-uri, "pixelHeight")] [if pixel-width != null && pixel-height != null] [if pixel-height > pixel-width] [def portraitImage true] [/if] [/if] [/if] [/if]
[if portraitImage = true]
[/if]

[call "comp:title"]

[call "comp:introduction"] [if portraitImage = false] [call "comp:introduction-image"] [/if] [!-- Hvis forfatter finnes, kommer publiseringstidspunkt/forfatter f?r innholdet: --] [if author != null && author != ""]
[call "comp:author"] [if publish-date != null]
[localized "publishedDate"] [val publish-date # "short"] [if publish-date < lastModified] - [localized "lastModifiedDate"] [val lastModified # "short"] [endif]
[endif]
[/if] [if portraitImage = true]
[call "comp:introduction-image"] [/if]
[call "resource:media-player"]
[call "json:field" {"select": "content"}]
[call "comp:related-content-in-main-column"] [call "resource:tags"] [!-- Hvis forfatter mangler, kommer publiseringstidspunkt etter innholdet: --] [if author = null || author = ""]
[if publish-date != null]
[localized "publishedDate"] [val publish-date # "short"] [if publish-date < lastModified] - [localized "lastModifiedDate"] [val lastModified # "short"] [/if]
[/if]
[/if] [if component-available("resource:email-friend") || component-available("resource:share-at")]
[if component-available("resource:email-friend")] [call "resource:email-friend"] [/if] [if component-available("resource:share-at")] [call "resource:share-at" {"use-facebook-api": true}] [/if]
[/if] [call "resource:comments"] [/if] [/slot]