Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {if $card_blocks|@count>0}
- <div class="card-blocks">
- {foreach from=$card_blocks item=e}
- {if $e.type == 1}
- {if !$e.hide_block && (!empty($e.blocks) || $e.title)}
- <div class="card-block card-block-1">
- <div class="card-block-1__inner">
- {if $e.title}<div class="card-block-1__header">{$e.title}</div>{/if}
- {if !empty($e.blocks)}
- <div class="card-block-1__items">
- {foreach from=$e.blocks item=j}
- <div class="card-block-1__item">
- {if $j.image.filename || $j.image.svg_body}
- <div class="card-block-1__icon">
- {if $j.image.svg_body}
- {$j.image.svg_body}
- {else}
- {if $shop2.my.gr_images_lazy_load}
- <img src="/g/spacer.gif" data-src="{s3_img width=72 height=72 method=c src=$j.image.filename}" class="gr_images_lazy_load" alt="{$j.title}" title="{$j.title}" />
- {else}
- <img src="{s3_img width=72 height=72 method=c src=$j.image.filename}" alt="{$j.title}" title="{$j.title}" />
- {/if}
- {/if}
- </div>
- {/if}
- {if $j.title || $j.text}
- <div class="card-block-1__text">
- {if $j.title}<div class="card-block-1__title"{if !$j.image.filename} style="margin-top: 0;"{/if}>{$j.title}</div>{/if}
- {if $j.text}<div class="card-block-1__desc"{if !$j.image.filename && !$j.title} style="margin-top: 0;"{/if}>{$j.text}</div>{/if}
- </div>
- {/if}
- </div>
- {/foreach}
- </div>
- {/if}
- </div>
- </div>
- {/if}
- {elseif $e.type == 2}
- {if !$e.hide_block && (!empty($e.blocks) || $e.title)}
- <div class="card-block card-block-2">
- <div class="card-block-2__inner">
- {if $e.title}<div class="card-block-2__header">{$e.title}</div>{/if}
- {if !empty($e.blocks)}
- <div class="card-block-2__items">
- {foreach from=$e.blocks item=j key=card_block_2_key}
- <div class="card-block-2__item">
- <div class="card-block-2__num">{$card_block_2_key+1}</div>
- <div class="card-block-2__text">
- {if $j.title}<div class="card-block-2__title">{$j.title}</div>{/if}
- {if $j.text}<div class="card-block-2__desc">{$j.text}</div>{/if}
- </div>
- </div>
- {/foreach}
- </div>
- {/if}
- </div>
- </div>
- {/if}
- {elseif $e.type == 3}
- {if !$e.hide_block && (!empty($e.blocks) || $e.title)}
- <div class="card-block card-block-3">
- <div class="card-block-3__inner">
- {if $e.title}<div class="card-block-3__header">{$e.title}</div>{/if}
- {if !empty($e.blocks)}
- <div class="card-block-3__items">
- {foreach from=$e.blocks item=j}
- <div class="card-block-3__item">
- {if $j.image.filename}
- <div class="card-block-3__pic">
- {if $shop2.my.gr_images_lazy_load}
- <img src="/g/spacer.gif" data-src="{s3_img width=220 height=220 method=c src=$j.image.filename}" class="gr_images_lazy_load" alt="{$j.title}" title="{$j.title}" />
- {else}
- <img src="{s3_img width=220 height=220 method=c src=$j.image.filename}" alt="{$j.title}" title="{$j.title}" />
- {/if}
- </div>
- {/if}
- <div class="card-block-3__text"{if !$j.image.filename} style="width: 100%;"{/if}>
- {if $j.title}<div class="card-block-3__title">{$j.title}</div>{/if}
- {if $j.text}<div class="card-block-3__desc">{$j.text}</div>{/if}
- </div>
- </div>
- {/foreach}
- </div>
- {/if}
- </div>
- </div>
- {/if}
- {/if}
- {/foreach}
- </div>
- {/if}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement