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,410 +1,410 @@ {% 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 %}หมวดหมู{% endtrans %}่ : {{ profile.headingname|raw }}
{% if type != 'FL' %} {% endif %}
{% if type != 'FL' %} - {{ profile.profile|raw}} + {{ 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 loop = 1 %}{% else %} {% set loop = profile._format.telno|length %}{% endif %}{% for i in 1..loop %} {{ '
' }} {% endfor %}{% endif %} {% if not profile.fax %}{% else %}{% trans %} Fax {% endtrans %}{% if type == 'FL' %} {% set loop = 1 %}{% else %} {% set loop = profile._format.fax|length %}{% endif %}{% for i in 1..loop %} {{ '
' }} {% 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.websit %}{% else %}{% trans %} Website {% endtrans %} {% set loop = profile.websit|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.websit %} {% else %} {% set website = profile.websit|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 %}
{#{% if profile.picturet1 %}#} {#
#} {#
#} {#
#} {#{% if profile.picturet1 %}#} {#
#} {##} {##} {##} {#
#} {#{% endif %}#} {#{% if profile.picturet2 %}#} {#
#} {##} {##} {##} {#
#} {#{% endif %}#} {#{% if profile.picturet3 %}#} {#
#} {##} {##} {##} {#
#} {#{% endif %}#} {#{% if profile.picturet4 %}#} {#
#} {##} {##} {##} {#
#} {#{% endif %}#} {#{% if profile.picturet5 %}#} {#
#} {##} {##} {##} {#
#} {#{% endif %}#} {#{% if profile.picturet6 %}#} {#
#} {##} {##} {##} {#
#} {#{% endif %}#} {#{% if profile.picturet7 %}#} {#
#} {##} {##} {##} {#
#} {#{% endif %}#} {#{% if profile.picturet8 %}#} {#
#} {##} {##} {##} {#
#} {#{% endif %}#} {#{% if profile.picturet9 %}#} {#
#} {##} {##} {##} {#
#} {#{% endif %}#} {#
#} {#
#} {#{% endif %}#} {% if promotion.promotionid %} {% endif %} {% if profile.location.lat %} {% endif %} {% if profile.printadst %} {% endif %} {#{% if profile.map %}#} {##} {#{% endif %}#}
{% endif %} {#


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

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