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