<{* Template: content_entry.html Description: The page for one entry of a content type with its own URL (Indholdstyper). Used for every type unless the theme has a content_.html for it. Variables: $content_entry (SafeContentEntry), $content_type (SafeContentType), $breadcrumbs *}> <{if $content_entry}> <{capture name="title"}> <{$content_entry->getTitle()}> <{/capture}> <{$content_entry_images = $content_entry->getImages()}> <{* Short values are collected in a table, longer content (text, images, products, rows) gets its own heading *}> <{$content_entry_block_types = ['longtext', 'richtext', 'image', 'images', 'product', 'products', 'repeater']}>
<{if $settings.breadcrumbs.enable_breadcrumbs}>
<{include file="components/breadcrumbs.html"}>
<{/if}> <{if $content_entry_images}>

<{$content_entry->getTitle()|escape}>

<{include file="components/image.html" image=$content_entry_images[0] product="" sizes="400,640,768,1024,1536" aspect_ratio="full" object_fit="cover" padding="none" loading="eager" priority="high"}>
<{/if}>
<{if !$content_entry_images}>

<{$content_entry->getTitle()|escape}>

<{/if}>
<{if $content_entry_images|@count > 1}>
    <{foreach $content_entry_images as $content_entry_image}> <{if !$content_entry_image@first}>
  • <{include file="components/image.html" image=$content_entry_image product="" sizes="750,960,600,750,960" aspect_ratio="16by9" object_fit="cover" padding="none"}>
  • <{/if}> <{/foreach}>
<{/if}> <{$content_entry_table_open = false}> <{foreach $content_entry->getFields() as $content_entry_field}> <{if in_array($content_entry_field.type, $content_entry_block_types)}> <{if $content_entry_table_open}> <{$content_entry_table_open = false}> <{/if}> <{include file="components/content-field.html" field=$content_entry_field entry=$content_entry variant="block"}> <{else}> <{if !$content_entry_table_open}> <{$content_entry_table_open = true}> <{/if}> <{include file="components/content-field.html" field=$content_entry_field entry=$content_entry variant="row"}> <{/if}> <{/foreach}> <{if $content_entry_table_open}>
<{/if}>
<{include file="components/page-blocks.html"}>
<{/if}>