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,234 +1,229 @@ {% set base_images = 'http://media.yellowpages.co.th/yellowpages' %} {% set base_promotion = promotion.baseurl %}
{% if profile.logo %}
{#logo#}
{% else %}
{#end logo#} {% endif %}

{{ profile.humanname|raw }}

{% if profile.districtname or profile.cityname %} {{ [profile.districtname,profile.cityname]|join(' ') }} {% endif %} {% if profile.headings %}

{% trans %}Category{% endtrans %} : {% for key, heading in profile.headings %} {% if loop.last %} {{ heading.headingname|raw }} {% else %} {{ heading.headingname|raw }}, {% endif %} {% endfor %}

{% endif %}

{% trans %} Views {% endtrans %} : xxxxx

{#description#}
{% if profile.profile %}

{{ profile.profile|raw }}

{% endif %} {% if profile.proddesc %} {% trans %} Product And Service {% endtrans %}

{{ profile.proddesc|raw }}

{% endif %} {% if profile.brandname %} {% trans %}Brand Name{% endtrans %}

{{ profile.brandname|replace({"

":" ","

":" "}) }}

{% endif %}
{#end description#} {#picture#} {% if profile.pictures %}
{% endif %} {#end picture#} {#contact#}

{% trans %} Contact Information {% endtrans %}

{#Business Name.#} {% if profile.humanname %}

{% trans %} Business Name {% endtrans %}:

{{ profile.humanname }}
{% endif %} {#address#}

{% trans %} Address {% endtrans %}:

{{ [profile.addr,profile.soi,profile.road,profile.subdistrictname,profile.districtname,profile.cityname,profile.postcode]|join(' ') }}
{#tel.#} {% if profile.telno %}

{% trans %} Tel {% endtrans %}:

{% if profile.telno %} {% for key, tel in profile._format.telno %} {% if loop.last %} {{ tel }} {% else %} {{ tel }}, {% endif %} {% endfor %} {% endif %}
{% endif %} {#fax#} {% if profile.fax %}

{% trans %} Fax {% endtrans %}:

{% if profile.fax %} {% for key, fax in profile._format.fax %} {% if loop.last %} {{ fax }} {% else %} {{ fax }}, {% endif %} {% endfor %} {% endif %}
{% endif %} {#e-mail#} {% if profile.email %}

{% trans %} Email {% endtrans %}:

{% if profile.email %} {% for key , mail in profile.email %} {% if loop.last %} {{ mail }} {% else %} {{ mail }}, {% endif %} {% endfor %} {% endif %}
{% endif %} {#website#} {% if profile.website %}

{% trans %} Website {% endtrans %}:

{% if profile.website %} {% for key , web in profile.website %} {% if loop.last %} {{web}} {% else %} {{web}}, {% endif %} {% endfor %} {% endif %}
{% endif %} {#work-time#} {% if profile.workinghours %}

{% trans %} Work-Time {% endtrans %}:

{% if not profile.workinghours %} {% else %} {{ profile._format.workinghours }} {% endif %}
{% endif %}
{#end contact#} {#Map#} {% if profile.location.lat and profile.location.lon %}
{% endif %} {#end Map#}

{% trans %} Comment {% endtrans %}


{#facebook#}
{{ app.request.getRequestUri() }}
{#end facebook#}
{#end typ profile freelist#} diff --git a/templates/typ-ypmap.html.twig b/templates/typ-ypmap.html.twig --- a/templates/typ-ypmap.html.twig +++ b/templates/typ-ypmap.html.twig @@ -1,81 +1,81 @@ {##} {##} {##} {##} {##} {#แผนที่#} {% if latitude or longitude %} - + {##}
{% if not bypass %} {##} {% endif %}
{##} {% endif %} \ No newline at end of file diff --git a/typ_profile.module b/typ_profile.module --- a/typ_profile.module +++ b/typ_profile.module @@ -1,56 +1,61 @@ array( 'variables' => array( 'profile' => NULL, 'prodescription' => NULL, 'catalog' => NULL, 'type' => NULL, 'promotion' => NULL, 'breadcrumbs' => NULL, 'base_path' => NULL, 'facebook_comment' => NULL, ) ), 'typ_promotion' => array( 'variables' => array( 'url' => NULL ) ), 'typ_ypmap' => array( 'variables' => array( + 'latitude' => NULL, + 'longitude' => NULL, + 'width' => NULL, + 'height' => NULL, + 'bypass' => NULL ) ) ); }