{% extends 'D2ExpertBundle::base.html.twig' %} {% set seo_img_path = "/uploads/customer/images/" ~ expert.customer.getBestPath ~ "?v=" ~ expert.customer.version %} {% if social_shares|length > 0 %} {% set built_snippets = d2_build_snippets(social_shares, route_url, expert.title, expert.orginization, seo_img_path, expert.hashTag, expert.shareTag) %} {% endif %} {% block title %} {{ d2_sys_config('sys_orginization') }} {% trans %}Expert{% endtrans %}: {{ expert.title }} {% endblock title %} {% block head_seo %} {% set tag_list = d2_get_tag_list(expert) %} {% if d2_sys_config('sys_show_social') %}{% if built_snippets['meta_data'] is defined %} {{ built_snippets['meta_data']| raw }} {% endif %}{% endif %} {% endblock head_seo %} {% block head_script_extra %} {% if d2_sys_config('sys_show_social') %}{% if built_snippets['script'] is defined %} {{ built_snippets['script']| raw }} {% endif %}{% endif %} {% endblock head_script_extra %} {% block head_style_extra %} {% endblock head_style_extra %} {% block page_header %} {% endblock page_header %} {% block content %}

{% if app.user %} {% if expert.chatStatus == 0 %} {% set pop_title = "I'm Currently Off-Line" %} {% set pop_content = "Apologies, but I can't chat now. Pls email me for a future chat time." %} {% elseif expert.chatStatus == 1 %} {% set pop_title = "I'm Currently On-Line" %} {% set pop_content = "I'm ready to chat right now!" %} {% elseif expert.chatStatus == 2 %} {% set pop_title = "I'm Currently Busy" %} {% set pop_content = "I'm currently busy with a chat. Pls try a little later to see if I'm free.." %} {% endif %} {% else %} {% set pop_title = "Chat to an Expert" %} {% set pop_content = "Please logon if you want to chat to one of our experts." %} {% endif %} {% set customer = expert.customer %}
{% if expert.customer.path %} EXPERT {% else %} EXPERT {% endif %}

{{ expert.customer.firstname }} {{ expert.customer.lastname }}

{{ expert.title }}, {{ expert.orginization }}
{{ expert.customer.country }}
{{ customer.description }}
EXPERTISE {{ expert.expertise }}
{% if expert.chatStatus == 0 %}

I AM CURRENTLY OFF LINE

{% elseif expert.chatStatus == 1 %}

I AM CURRENTLY ON LINE

{% elseif expert.chatStatus == 2 %}

I AM CURRENTLY BUSY ON ON A CHAT

{% endif %}
{% if app.user %} {% if expert.chatStatus == 1 %} Chat Now? {% else %} Email Me? {% endif %} {% else %} {% if expert.chatStatus == 1 %} Chat Now? {% else %} Email Me? {% endif %} {% endif %}
{% if d2_sys_config('sys_show_social') %}{% if built_snippets['html'] is defined %} {{ built_snippets['html']| raw }} {% endif %}{% endif %}
{# COMMENTS #} {% if d2_sys_config('sys_comments_show') == true %} {% include 'D2CommentBundle::comments.html.twig' with {'comments_name': 'Expert', 'comment_item_type': 'expert', 'comment_item_id': expert.id} %} {% endif %}
{% if d2_sys_config('sys_related_show') == true %}
{# RELATED VIDEO's #} {% if d2_sys_config('sys_case_study_active') == true %} {% include 'D2CaseStudiesBundle::related.html.twig' with {'exclude_related': false, 'skip': 0} %} {% endif %} {# RELATED EXPERT'S #} {% if d2_sys_config('sys_expert_active') == true %} {% include 'D2ExpertBundle::related.html.twig' with {'exclude_related': expert.id, 'skip': 0} %} {% endif %} {# RELATED RESOURCE's #} {% if d2_sys_config('sys_collection_active') == true %} {% include 'D2ResourceBundle::related.html.twig' with {'exclude_related': false, 'skip': 0} %} {% endif %} {# RELATED COLLECTIONS #} {% if d2_sys_config('sys_collection_active') == true %} {% include 'D2CollectionBundle::related.html.twig' with {'exclude_related': false, 'skip': 0} %} {% endif %} {# RELATED NEWS #} {% if d2_sys_config('sys_news_active') == true %} {% include 'D2NewsBundle::related.html.twig' with {'exclude_related': false, 'skip': 0} %} {% endif %} {# RELATED ADVERTS #} {% if d2_sys_config('sys_smalls_active') == true %} {% include 'D2AdvertBundle::related.html.twig' with {'exclude_related': false, 'skip': 0} %} {% endif %} {% endif %}
{% endblock content %}