From 0e0965c83cb3d0cc20c1a776e9e280cec3d7d77c Mon Sep 17 00:00:00 2001 From: root Date: Wed, 16 Nov 2022 15:15:31 +0100 Subject: [PATCH] s/title/description/ --- src/Controller/PodcastRorController.php | 5 +++-- templates/podcast.html.twig | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Controller/PodcastRorController.php b/src/Controller/PodcastRorController.php index f0bddf8..1c847b5 100644 --- a/src/Controller/PodcastRorController.php +++ b/src/Controller/PodcastRorController.php @@ -91,12 +91,13 @@ class PodcastRorController extends ControllerBase { } return $data; } - public function podcast($query, $title) { + public function podcast($query, $description) { // TODO: add $title argument to the function $template = $this->twig->loadTemplate(drupal_get_path('module', 'podcast_ror') . '/templates/podcast.html.twig'); $tmpl_data = [ 'ror' => array('podcast' => $this->query($query), 'url' => \Drupal::service('path.current')->getPath(), - 'title' => $title, + 'description' => $description, + 'title' => 'Radio Onda Rossa', )]; //$variables['ror']['url'] = $xml = $template->render($tmpl_data); diff --git a/templates/podcast.html.twig b/templates/podcast.html.twig index 4158dcf..26ffe29 100644 --- a/templates/podcast.html.twig +++ b/templates/podcast.html.twig @@ -7,13 +7,13 @@ version="2.0"> -Radio Onda Rossa +{{ror.title}} http://www.ondarossa.info it-it La radio di chi se la sente Ondarossa -{{ror.title}} -{{ror.title}} +{{ror.description}} +{{ror.description}} Ondarossa ondarossa@ondarossa.info