diff --git a/templates/typ-profile.html.twig b/templates/typ-profile.html.twig --- a/templates/typ-profile.html.twig +++ b/templates/typ-profile.html.twig @@ -1,420 +1,420 @@ {% set base_images = 'http://media.yellowpages.co.th/yellowpages'%} {% set base_promotion = 'http://promotion.yellowpages.co.th/media/promotion/' %}
{#{% if profile.logo %}#} {#
#} {##} {#
#} {#{% else %}#} {#
#} {##} {#
#} {#{% endif %}#}

{{ profile.humanname|raw }}

{% trans %}Category{% endtrans %} : {{ profile.headingname|raw }}
{% if type != 'FL' %} {% endif %}
{% if type != 'FL' %} {{ profile.profile|raw}}

{% else %} {{ profile.profile|raw|slice(0, 100)}}{% if profile.profile|length > 100 %}{{ '...

' }}{% endif %}

{% endif %} {% trans %} Address {% endtrans %} {{ [profile.addr,profile.soi,profile.road,profile.subdistrictname, profile.districtname,profile.cityname,profile.postcode]|join(' ') }} {#{% if profile.location.lat %}#} {#
#} {#{% else %}#} {#
#} {#{% endif %}#}

{% if not profile.telno %}{% else %}{% trans %} Tel {% endtrans %}{% if type == 'FL' %}{% set count = 1 %} {% set loop = 1 %}{% else %} {% set loop = profile._format.telno|length %}{% endif %}{% for i in 1..loop %}{% set count=count+1 %}{% if count == 5 %} {{ '
' }}{% set count = 1 %} {% endif %} {% endfor %}{{ '
' }}{% endif %} {% if not profile.fax %}{% else %}{% trans %} Fax {% endtrans %}{% if type == 'FL' %}{% set count = 1 %} {% set loop = 1 %}{% else %} {% set loop = profile._format.fax|length %}{% endif %}{% for i in 1..loop %}{% set count=count+1 %}{% if count == 5 %} {{ '
' }}{% set count = 1 %} {% endif %} {% endfor %}{{ '
' }}{% endif %} {% if not profile.email %}{% else %}{% trans %} Email {% endtrans %} {% set loop = profile.email|split(',') %}{% for i in 1..loop|length %} {{ '
' }} {% endfor %} {% endif %} {% if not profile.website %}{% else %}{% trans %} Website {% endtrans %} {% set loop = profile.website|split(',') %}{% for i in 1..loop|length %} {{ '
' }} {% endfor %} {% endif %} {% if not profile.workinghours %}{% else %}{% trans %} Work-Time {% endtrans %}{% endif %}
{% if not profile.telno %} {% else %} {% if type == 'FL' %} {{ profile._format.telno.0 }}
{% else %} {% for key, tel in profile._format.telno %} {% if loop.last != key+1 %}{{ tel }}{{ " ," }} {% else %}{{ tel }}{% endif %} {% endfor %}
{% endif %} {% endif %} {% if not profile.fax %} {% else %} {% if type == 'FL' %} {{ profile._format.fax.0 }}
{% else %} {% for key, fax in profile._format.fax %} {% if loop.last != key+1 %}{{ fax }}{{ " ," }} {% else %}{{ fax }}{% endif %} {% endfor %}
{% endif %} {% endif %} {% if not profile.email %} {% else %} {% if type == 'FL' %} {% set email = profile.email|split(',') %} {% for key , mail in email %} {% if loop.last != key+1 %}{{ mail }} ,
{% else %}{{ mail }}
{% endif %} {% endfor %} {% else %} {% set email = profile.email|split(',') %} {% for key , mail in email %} {% if loop.last != key+1 %}{{ mail }} ,
{% else %}{{ mail }}
{% endif %} {% endfor %} {% endif %} {% endif %} {% if not profile.website %} {% else %} {% set website = profile.website|split(',') %} {% for key , web in website %} {% if loop.last != key+1 %}{{ web }} ,
{% else %}{{ web }}
{% endif %} {% endfor %} {% endif %} {% if not profile.workinghours %} {% else %} {{ profile._format.workinghours }}
{% endif %}
{% if type != 'FL' %} {% if not prodescription %} {% else %}
{% trans %} Product And Service {% endtrans %}

{{ prodescription|raw }}
{% endif %} {% if not profile.brandname %} {% else %}
{% trans %} Banner {% endtrans %} : {{ profile.brandname|replace({"

":" ","

":" "}) }} {% endif %} {% endif %}


{# TAB #} {% if type == 'FL' %}
{% if promotion.promotionid %} {% endif %} {% if profile.map %} {% endif %}
{% else %}
{% endif %} {#


#} {#{% if not profile.custname %}#} {#{% else %}#} {#{{ profile.custname|raw }} : แสดงความคิดเห็น#} {#{% endif %}#} {#

#} {# TAB #} {#
#} {##} {#
#} {##} {##} {#{##}#} {#
#} {#
#} {# END TAB #}