From f64468d5c4a5bb767a461b02f6df257ef22e9b29 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Mon, 11 Nov 2024 22:29:24 -0500 Subject: [PATCH] Add the templates for the feed and the episode file class --- app/src/Domain/Entity/Episode/File.php | 30 ++++++++++++++++++++++++++ app/templates/feed/skeleton.xml.twig | 20 +++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 app/src/Domain/Entity/Episode/File.php create mode 100644 app/templates/feed/skeleton.xml.twig diff --git a/app/src/Domain/Entity/Episode/File.php b/app/src/Domain/Entity/Episode/File.php new file mode 100644 index 0000000..2e980eb --- /dev/null +++ b/app/src/Domain/Entity/Episode/File.php @@ -0,0 +1,30 @@ +url; + } + + public function getLength(): int + { + return $this->length; + } + + public function getType(): string + { + return $this->type; + } +} diff --git a/app/templates/feed/skeleton.xml.twig b/app/templates/feed/skeleton.xml.twig new file mode 100644 index 0000000..d00c03f --- /dev/null +++ b/app/templates/feed/skeleton.xml.twig @@ -0,0 +1,20 @@ + + + + + {% block channel %}{% endblock %} + {% block image %}{% endblock %} + + {# Render each episoe in here #} + {% block episodes %}{% endblock %} + + +