{% load wagtailcore_tags %} {% load wagtailimages_tags %} {% image self.bg_img width-910 as tmp_photo %}
{% if self.position == "left"%}
{% for block in self.content %} {% include_block block with block_count=forloop.counter %} {% endfor %}
{% endif %}
{% if self.position == "right"%}
{% for block in self.content %} {% include_block block with block_count=forloop.counter %} {% endfor %}
{% endif %}