Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimisations pour la google search console video #1644

Merged
merged 4 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/Resources/views/event/calendar.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex,follow">
<title>Planning {{ event.title }}</title>

<!-- Bootstrap -->
Expand Down
4 changes: 2 additions & 2 deletions app/Resources/views/site/become_member.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@

<p>
Le paiement d'une adhésion professionnelle peut se faire soit par carte bancaire ou par virement. Pour les particuliers, seul le paiement par carte bancaire est disponible.<br />
L'adhésion nécessite l'acceptation pleine et sans réserve du <a href="/pages/site/?route=vie-associative-afup/21/reglement-interieur">règlement intérieur</a> et du <a href="/p/986-code-de-conduite">code de conduite</a>.
L'adhésion nécessite l'acceptation pleine et sans réserve du <a href="{{ path('cms_page_display', {code: '21-reglement-interieur'}) }}">règlement intérieur</a> et du <a href="{{ path('cms_page_display', {code: '986-code-de-conduite'}) }}">code de conduite</a>.
</p>

<h2>Questions</h2>

<p>
Pour toutes questions, notre <a href="/p/1012-faq" title="FAQ">FAQ</a> est disponible.
Pour toutes questions, notre <a href="{{ path('cms_page_display', {code: '1012-faq'}) }}" title="FAQ">FAQ</a> est disponible.
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/Resources/views/site/home.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{% endfor %}
</ul>

<a href="/pages/site/?route=06-actualit/9" class="home-view-more" title="Voir plus : d'autres actualités">Voir plus <i class="fa fa-arrow-right"></i></a>
<a href="{{ path('news_list')}}" class="home-view-more" title="Voir plus : d'autres actualités">Voir plus <i class="fa fa-arrow-right"></i></a>
</div>

<div class="col-md-6">
Expand Down
58 changes: 34 additions & 24 deletions app/Resources/views/site/talks/show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,25 @@
</script>
{% endblock %}

{% block title %}{{ talk.title }} - {{ event.title }} - {{ parent() }}{% endblock %}
{% block title %}{{ talk.title }} - {{ event.title }}{% endblock %}

{% block metas %}
{{ parent() }}
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="AFUP - {{ talk.title }}">
<meta name="twitter:title" content="{{ talk.title }}">
<meta name="twitter:description" content="{{ talk.description|striptags|raw }}">
{% if talk.hasYoutubeId %}
<meta name="twitter:image:src" content="https://img.youtube.com/vi/{{ talk.getYoutubeId }}/hqdefault.jpg">
{% endif %}
<meta name="twitter:domain" content="afup.org">

<meta property="og:type" content="article" />
<meta property="og:title" content="AFUP - {{ talk.title }}" />
<meta property="og:title" content="{{ talk.title }}" />
<meta property="og:url" content="{{ url('talks_show', {id: talk.id, slug: talk.slug }) }}" />
{% if talk.hasYoutubeId %}
<meta property="og:image" content="https://img.youtube.com/vi/{{ talk.getYoutubeId }}/hqdefault.jpg" />
<meta property="og:type" content="video.other" />
{% else %}
<meta property="og:type" content="article" />
{% endif %}
<meta property="og:description" content="{{ talk.description|striptags|raw }}" />
<meta property="og:site_name" content="AFUP" />
Expand All @@ -62,10 +64,23 @@
<div class="col-md-12 talk-title">
<h1>{{ talk.title }}</h1>
</div>
</div>

<div class="container">
<div class="col-md-{% if talk.hasYoutubeId %}6{% else %}12"{% endif %}">
{% if talk.hasYoutubeId %}
<div class="col-md-6">
<h2>Vidéo</h2>
<div class="responsive-video-container">
<div id="player">
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ talk.youtubeId }}"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
</div>
</div>
{% endif %}

<div class="col-md-{% if talk.hasYoutubeId %}6{% else %}12{% endif %}">
<div class="container">
<div class="col-md-12">
<h2>Description</h2>
Expand All @@ -78,9 +93,9 @@
</div>
<div class="container talk-date-container">
<div class="col-md-12">
Conférence donnée lors du <a href="{{ url('talks_list', {"fR": { "event.title" : [ event.title ]}}) }}">{{ event.title }}</a>, ayant eu lieu {% if event.dateStart == event.dateEnd %}le {{ event.dateStart|date('d') }}{% else %}les {{ event.dateStart|date('d') }} et {{ event.dateEnd|date('d') }}{% endif %} {{ event.dateEnd|localizeddate('none', 'none', 'fr', 'Europe/Paris', 'MMMM YYYY') }}.
Conférence donnée lors du <a href="{{ url('talks_list', {"fR": { "event.title" : [ event.title ]}}) }}">{{ event.title }}</a>,
ayant eu lieu {% if event.dateStart == event.dateEnd %}le {{ event.dateStart|date('d') }}{% else %}les {{ event.dateStart|date('d') }} et {{ event.dateEnd|date('d') }}{% endif %} {{ event.dateEnd|localizeddate('none', 'none', 'fr', 'Europe/Paris', 'MMMM YYYY') }}.
</div>

</div>

{% if talk.hasSlidesUrl or talk.hasBlogPostUrl or talk.hasJoindinId or talk.getVideoHasEnSubtitles or talk.getVideoHasFrSubtitles or talk.hasOpenfeedbackPath %}
Expand Down Expand Up @@ -133,14 +148,6 @@
</div>
{% endif %}
</div>
{% if talk.hasYoutubeId %}
<div class="col-md-6">
<h2>Vidéo</h2>
<div class="responsive-video-container">
<div id="player"></div>
</div>
</div>
{% endif %}
</div>

<div class="container">
Expand All @@ -166,7 +173,9 @@
</div>
<div class="container">
<div class="col-md-2 speaker-photo-container">
<img src="{{ photo_storage.getUrl(speaker) }}" class="speaker-photo" alt="" />
{% if photo_storage.getUrl(speaker) %}
<img src="{{ photo_storage.getUrl(speaker) }}" class="speaker-photo" alt="" />
{% endif %}
<div class="speaker-talks-link">
<a href="{{ url('talks_list', {"fR": { "speakers.label" : [ speaker.label ]}}) }}">Voir tous ses talks</a>
</div>
Expand Down Expand Up @@ -247,16 +256,16 @@
<div class="col-md-12">
<div class="container comments-title-container">
<div class="col-md-12">
<h2>Transcript</h2>
<h2>Transcription de la vidéo</h2>
</div>
</div>

<div class="container">
<div class="col-md-12 talk-comment-container transcript">

{% for cue in transcript %}
<p data-cue-start="{{ cue.start }}" style="cursor:pointer;">{{ cue.text }}</p>
{% endfor %}
{% for cue in transcript %}
<p data-cue-start="{{ cue.start }}" style="cursor:pointer;">{{ cue.text }}</p>
{% endfor %}
</div>
</div>

</div>
Expand All @@ -279,7 +288,8 @@

</div>
</div>
{% endif %}
</div>
{% endif %}

</div>
{% endblock %}
21 changes: 18 additions & 3 deletions db/seeds/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,30 @@ public function run(): void
'plannifie' => 1,
'needs_mentoring' => 0,
'youtube_id' => 'MseSkWbhxV8',
'video_has_fr_subtitles' => 0,
'video_has_en_subtitles' => 0,
'video_has_fr_subtitles' => 1,
'video_has_en_subtitles' => 1,
'slides_url' => 'https://speakerdeck.com/caporaldead/jouons-tous-ensemble-a-un-petit-jeu',
'blog_post_url' => '',
'blog_post_url' => 'https://mon-blog.com/post/123',
'interview_url' => 'https://mon-blog.com/interview/456',
'openfeedback_path' => 'eaJnyMXD3oNfhrrnBYDT/2019-06-27/100',
'language_code' => 'fr',
'markdown' => 1,
'joindin' => 24041,
'date_publication' => null,
'has_allowed_to_sharing_with_local_offices' => 1,
'transcript' => <<<EOF
1
00:00:28,440 --> 00:00:29,900
Merci.

2
00:00:29,920 --> 00:00:31,660
Merci.

3
00:00:31,680 --> 00:00:33,340
Bonjour, bonjour à toutes et à tous.
EOF
],
[
'session_id' => self::ID_SESSIONS[1],
Expand Down