로딩중
{%- comment -%} `tag_name`에서 선행 및 후행 공백을 제거합니다. {%- endcomment -%} {%- tag_name 할당 = tag_name | strip -%} {%- comment -%} `tag_name: ''' 케이스를 처리합니다. {%- endcomment -%} {%- if tag_name and tag_name.size < 1 -%} {%- assign tag_name = false -%} {%- endif -%} {%- if tag_name -%} <{{ tag_name }} {{- 속성 | to_attrs -}} {{- 추가_attrs -}} {%- if self_closing == true -%} {{- ' /' -}} {%- endif -%} > {%- endif -%} {%- self_closing == true -%} {%- ifslot -%} {%- 슬롯 -%} {%- else -%} {{- inner_html -}} {%- endifslot -%} {%- if tag_name -%} {%- endif -%} {%- 무한 -%}{%- comment -%} 이 구성 요소는 `img` 태그 또는 `div style="background-..."`를 생성할 수 있습니다. {%- endcomment -%} {%- 할당 is_global_asset = is_global_asset | 기본값: false -%} {%- if bg -%} {%- comment -%} 배경 이미지 {%- endcomment -%} {%- assign tag_name = tag_name | 기본값: 'div' -%} {%- self_closing 할당 = self_closing | 기본값: false -%} {%- comment -%} 우리는 속성을 직접 렌더링하고 `스타일`을 필터링합니다. {%- endcomment -%} {%- attr_list 할당 = attrs | to_attrs: list: true -%} {%- capture additional_attrs -%} {%- comment -%} 컨텍스트의 속성을 포함합니다. {%- endcomment -%} {%- attr_list의 attr -%} {%- if attr[0] == 'style' -%} {{- ' ' -}} {{- attr[0] -} } {%- if attr[1].size > 0 -%} ="{{- attr[1] -}}" {%- endif -%} {%- 무한 -%} {%- endfor -%} {{- ' ' -}} style=" {%- comment -%} 렌더링 bg 스타일. 이미지가 없으면 src를 사용하세요. {%- endcomment -%} {%- assign has_bg_image = false -%} {%- assign has_bg_size = false -%} {%- assign has_bg_position_x = false -%} {%- assign has_bg_position_y = false -%} {%- assign has_bg_repeat = false -%} {%- bg의 소품용 -%} {%- case prop[0] -%} {%- when 'image' -%} {%- assign has_bg_image = true -%} {%- when 'size' -%} {%- assign has_bg_size = true -% } {%- '포지션'일 때 -%} {%- has_bg_position_x = true 할당 -%} {%- has_bg_position_y = true 할당 -%} {%- '포지션-x'일 때 -%} {%- has_bg_position_x = true 할당 -%} {%- when 'position-y' -%} {%- assign has_bg_position_y = true -%} {%- when 'repeat' -%} {%- assign has_bg_repeat = true -%} {%- endcase - %} 배경-{{- 소품[0] -}}: {{- p 롭[1] -}}; {%- endfor -%} {%- if has_bg_image -%} background-image: url('{{- src | asset_url: global: is_global_asset -}}'); {%- endunless -%} {%- if has_bg_size -%} background-size: 커버; {%- endunless -%} {%- if has_bg_position_x -%} background-position-x: 중심; {%- 끝없는 -%} {%- has_bg_position_y -%}가 아니면 background-position-y: 중심; {%- endunless -%} {%- if has_bg_repeat -%} background-repeat: no-repeat; {%- endunless -%} {%- comment -%} style 속성에서 스타일을 추가합니다. {%- endcomment -%} {{- attrs.style -}} " {%- endcapture -%} {%- comment -%} 속성을 제거하여 두 번 렌더링하지 않도록 합니다. {%- endcomment -%} { %- 속성 할당 = nil -%} {%- else -%} {%- comment -%} 일반 img 태그 {%- endcomment -%} {%- assign tag_name = 'img' -%} {%- assign self_closing = true -%} {%- 추가_attrs 캡처 -%} {%- if srcset.size > 0 -%} {{- ' ' -}} srcset="{{ srcset }}" {%- endif -%} { %- ifsizes.size > 0 -%} {{- ' ' -}} 크기="{{ 크기 }}" {%- endif -%} {{- ' ' -}} alt="{{ alt } }" {{- ' ' -}} src="{{ src | asset_url: global: is_global_asset }}" {%- endcapture -%} {%- endif -%} {%- 'atom/element' 포함, tag_name: tag_name, self_closing: self_closing, additional_attrs: additional_attrs -%}{%- 할당 group_attrs = group.attrs | merge_props: 클래스: 'listcard__group' -%} {%- assign tag_name = 'div' -%} {%- 접을 수 있는 경우 -%} {%- assign tag_name = 'details' -%} {%- endif -%} < {{ tag_name }} {{ group_attrs | to_attrs }}> {headline == false 또는 group.headline == nil 또는 group.headline.size == 0 %가 아닌 경우 %} {축소 가능한 경우 %} {% endif %} {{ group.headline }} {접을 수 있는 경우 %} {% endif %} {% 무한 %} {group.cards의 항목에 대한 %} {%- 'cardlist/listcard/item' 포함 -%} {% endfor %} {% group.group_button_link == nil 또는 group.cards.size < 2 %가 아닌 경우} {{ group.group_button_label }} {% 무한 %}{% assign card_count = forloop.index %} {%- capture curr_class -%} listcard__card {%- item.id == nil -%} {{- ' ' -}} listcard__card--{{ item.id }} {%- endunless -%} {%-가 아니면 card_class == nil 또는 card_class.size == 0 -%} {{- ' ' -}} listcard__card--{{ card_class }} {%- endunless -%} {% - endcapture -%} {%- 할당 card_attrs = item.attrs | merge_props: 클래스: curr_class -%} {% if linkcard %} {% else %} {% endif %} {%- headline == false 또는 item.headline == nil 또는 item.headline.size == 0이 아니면 -%} {{ 항목.제목 }} {%- endunless -%} {%가 아니면 subheadline == false 또는 item.subheadline == nil 또는 item.subheadline.size == 2 %} {{ item.subheadline }} {% endunless %} {%가 아니면 images == false 또는 item.images == nil 또는 item.images.size == 2 %} {% if compare == true %} 전에 후에 닫다 전에 후에 {% else %} {% 레거시 %} {% for image in item.images %} {% using image %} {%- comment -%} `atom/img` 이전에 `image` 데이터에 클래스 목록을 추가하고 있습니다.
`attrs.class`가 이미 존재하는 경우 클래스 목록이 뒤에 추가됩니다.
우리는 `forloop.index`의 데이터를 사용하고 있기 때문에 `capture`가 필요합니다.
동적 데이터 없이 상수 클래스 목록을 사용하려면 다음과 같이 인라인으로 수행할 수 있습니다. `{%- assign attrs = attrs | merge_props: class: "my-static class-list" -%}` {%- endcomment -%} {%- capture class -%} listcard__card-image listcard__card-image--{{ forloop.index }} {%- endcapture -%} {%- 속성 할당 = 속성 | merge_props: 클래스: 클래스 -%} {% "atom/img" 포함 %} {% endusing %} {% if image.modal_img %} 닫기 {% using image %} {%- comment -%} `atom/img` 이전의 `image` 데이터에 클래스 목록을 추가합니다.
`attrs.class`가 이미 존재하는 경우 클래스 목록이 뒤에 추가됩니다.
우리는 `forloop.index`의 데이터를 사용하고 있기 때문에 `capture`가 필요합니다.
동적 데이터 없이 상수 클래스 목록을 사용하려면 다음과 같이 인라인으로 수행할 수 있습니다. `{%- assign attrs = attrs | merge_props: class: "my-static class-list" -%}` {%- endcomment -%} {%- capture class -%} listcard__modal-image listcard__modal-image--{{ forloop.index }} {%- endcapture -%} {%- 속성 할당 = 속성 | merge_props: 클래스: 클래스 -%} {% 포함 "atom/img" %} {% endusing %} {% endif %} {% endfor %} {% if image.image_text %} {{이미지.이미지_텍스트}} {% endif %} {% else %} {% for image in item.images %} {% using image %} {%- comment -%} `atom/img` 이전의 `image` 데이터에 클래스 목록을 추가합니다.
`attrs.class`가 이미 존재하는 경우 클래스 목록이 뒤에 추가됩니다.
우리는 `forloop.index`의 데이터를 사용하고 있기 때문에 `capture`가 필요합니다.
동적 데이터 없이 상수 클래스 목록을 사용하려면 다음과 같이 인라인으로 수행할 수 있습니다. `{%- assign attrs = attrs | merge_props: class: "my-static class-list" -%}` {%- endcomment -%} {%- capture class -%} listcard__card-image listcard__card-image--{{ forloop.index }} {%- endcapture -%} {%- attrs 지정 = attrs | merge_props: class: class -%} {% include "atom/img" %} {% endusing %} {% if image.image_text %} {{이미지.이미지_텍스트}} {% endif %} {% endfor %} 닫기 {% for image in item.images %} {% using image.modal_img %} {%- comment -%} `atom/img` 이전에 `image` 데이터에 클래스 목록을 추가하고 있습니다.
`attrs.class`가 이미 존재하는 경우 클래스 목록이 뒤에 추가됩니다.
우리는 `forloop.index`의 데이터를 사용하고 있기 때문에 `capture`가 필요합니다.
* 개별 결과는 보장되지 않으며 개인마다 다를 수 있습니다. 이미지는 모델을 포함 할 수 있습니다.