Guest User

Untitled

a guest
Jan 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. {% set image_position = field_collection_item.field_image_position.value is not empty ? field_collection_item.field_image_position.getSettings()['allowed_values'][field_collection_item.field_image_position.value]|lower|replace({' ': '-', '(': '', ')': ''}) %}
  2. {% set position = [
  3. image_position ? 'fill-pos',
  4. 'pos-' ~ image_position,
  5. ] %}
  6.  
  7.  
  8. <div{{ attributes.addClass(position) }}>
  9. <div class="content"{{ content_attributes }}>
  10. {{ content }}
  11. </div>
Add Comment
Please, Sign In to add comment