{% extends 'App::layout_profile.html.twig' %} {% block title %}Cours particuliers à {{ profile.city }} {% if profile and profile.department %}({{ profile.department }}){% endif %}{% if profile and profile.firstname and profile.lastname %} avec {{ profile.firstname }} {{ profile.lastname|first }}{% endif %}{% endblock %} {% block og_title %}Cours particuliers à {{ profile.city }} {% if profile and profile.department %}({{ profile.department }}) {% endif %}{% if profile and profile.firstname and profile.lastname %} avec {{ profile.firstname }} {{ profile.lastname|first }}{% endif %}{% endblock %} {% block description %}{% if profile.content %}{{ profile.content|striptags|replace({'\n':' ', '\r':' '}) |length > 350 ? profile.content|striptags|replace({'\n':' ', '\r':' '}) |slice(0, 350) ~ '...' : profile.content|striptags|replace({'\n':' ', '\r':' '}) }}{% else %}Annonces de Cours particuliers sur RueduProf.{% endif %}{% endblock %} {% block og_description %}{% if profile.content %}{{ profile.content|striptags|replace({'\n':' ', '\r':' '}) |length > 350 ? profile.content|striptags|replace({'\n':' ', '\r':' '}) |slice(0, 350) ~ '...' : profile.content|striptags|replace({'\n':' ', '\r':' '}) }}{% else %}Annonces de Cours particuliers sur RueduProf.{% endif %}{% endblock %} {% block og_url %}https://www.rueduprof.com/{{ profile.id }}/professeur-{{ profile.department }}-{{ profile.firstname | myslugify }}-{{ profile.lastname|first| myslugify }}/{% endblock %} {% block canonical_url %}https://www.rueduprof.com/{{ profile.id }}/professeur-{{ profile.department }}-{{ profile.firstname | myslugify }}-{{ profile.lastname|first| myslugify }}/{% endblock %} {% block snippet_json_breadcrumb %} {% endblock %} {% block snippet_json %} {% include 'App::schema/profile_show_user.html.twig' with { profile: profile } only %} {% endblock %} {% block stylesheet %} {% endblock %} {% block body %}
{% if item.content %} {{ item.content|length > 350 ? item.content|slice(0, 350) ~ '...' : item.content }} {% elseif profile.content %} {{ profile.content|length > 350 ? profile.content|slice(0, 350) ~ '...' : profile.content }} {% endif %}