Browse files

Added Subtitle for Episodes

  • Loading branch information...
1 parent 80a66c2 commit 87cb9d6ae11844fbbec78248229551108abcccc4 Noël Bossart committed Jan 24, 2012
View
28 Classes/Domain/Model/Episode.php
@@ -43,7 +43,14 @@ class Tx_Podcast_Domain_Model_Episode extends Tx_Extbase_DomainObject_AbstractEn
protected $title;
/**
- * Description
+ * Subtitle
+ *
+ * @var string
+ */
+ protected $subtitle;
+
+ /**
+ * Summary
*
* @var string
* @validate NotEmpty
@@ -122,6 +129,25 @@ public function setTitle($title) {
}
/**
+ * Returns the subtitle
+ *
+ * @return string $subtitle
+ */
+ public function getSubtitle() {
+ return $this->subtitle;
+ }
+
+ /**
+ * Sets the subtitle
+ *
+ * @param string $subtitle
+ * @return void
+ */
+ public function setSubtitle($subtitle) {
+ $this->subtitle = $subtitle;
+ }
+
+ /**
* Returns the description
*
* @return string $description
View
13 Configuration/TCA/Episode.php
@@ -4,10 +4,10 @@
$TCA['tx_podcast_domain_model_episode'] = array(
'ctrl' => $TCA['tx_podcast_domain_model_episode']['ctrl'],
'interface' => array(
- 'showRecordFieldList' => 'title,description,file,publication_date,duration,mime,website,author'
+ 'showRecordFieldList' => 'title,subtitle,description,file,publication_date,duration,mime,website,author'
),
'types' => array(
- '1' => array('showitem' => 'title,description,file,publication_date,duration,mime,website,author')
+ '1' => array('showitem' => 'title,subtitle,description,file,publication_date,duration,mime,website,author')
),
'palettes' => array(
'1' => array('showitem' => '')
@@ -67,6 +67,15 @@
'eval' => 'trim,required'
)
),
+ 'subtitle' => array(
+ 'exclude' => 0,
+ 'label' => 'LLL:EXT:podcast/Resources/Private/Language/locallang_db.xml:tx_podcast_domain_model_episode.subtitle',
+ 'config' => array(
+ 'type' => 'input',
+ 'size' => 30,
+ 'eval' => 'trim'
+ ),
+ ),
'description' => array(
'exclude' => 0,
'label' => 'LLL:EXT:podcast/Resources/Private/Language/locallang_db.xml:tx_podcast_domain_model_episode.description',
View
2 ExtensionBuilder.json
@@ -1 +1 @@
-{"modules":[{"config":{"position":[231,29]},"name":"New Model Object","value":{"actionGroup":{"actions":["list","create","show"]},"name":"Podcast","objectsettings":{"aggregateRoot":true,"description":"This is a podcast","type":"Entity","uid":"e21f9300259ee0dc42f433f8a4c97afa"},"propertyGroup":{"properties":[{"propertyDescription":"Title","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"title","propertyType":"String","uid":"03e50d4322c1669670958e09c27e2bcf"},{"propertyDescription":"Subtitle","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"subtitle","propertyType":"String","uid":"137e02ef9f0e669d0a53b988769f80ec"},{"propertyDescription":"Description","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"description","propertyType":"String","uid":"d82a03cce18504d0486c6e62336075fe"},{"propertyDescription":"Copyright","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"copyright","propertyType":"String","uid":"484eb7d990828d54c016140370db6860"},{"propertyDescription":"Image","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"image","propertyType":"String","uid":"de9c2ea15e828ea22e29e5db03777cf4"},{"propertyDescription":"iTunes optimized","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"itunes","propertyType":"Boolean","uid":"1268218384207"}]},"relationGroup":{"relations":[{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"episodes","relationType":"zeroToMany","relationWire":"[wired]","uid":"94ad0ae8a1da5af6d15e87c2dc3408bf"},{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"categories","relationType":"manyToMany","relationWire":"[wired]","uid":"0d0b73c315bb847c772a1d4e05b84b6f"},{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"author","relationType":"zeroToOne","relationWire":"[wired]","uid":"03c4956c31d088a6a32e59e97a5eb4ab"},{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"technicalContact","relationType":"zeroToOne","relationWire":"[wired]","uid":"30e07586af1bea102e44399e6b5dcf00"},{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"website","relationType":"zeroToOne","relationWire":"[wired]","uid":"12418d36538fc930076690a386c9bf7b"}]}}},{"config":{"position":[801,15]},"name":"New Model Object","value":{"actionGroup":{"actions":["list","show","create"]},"name":"Episode","objectsettings":{"aggregateRoot":false,"description":"Podcast Episode","type":"Entity","uid":"bec96252dc5bf73221fc9d271f39b477"},"propertyGroup":{"properties":[{"propertyDescription":"Title","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"title","propertyType":"String","uid":"cd2f3ee1a0afb641de86014468b22363"},{"propertyDescription":"Description","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"description","propertyType":"String","uid":"81fb88227e98b4e7b26aeebdb34ce2df"},{"propertyDescription":"File","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"file","propertyType":"String","uid":"210e606d4bbdef27b697c88db50cb3be"},{"propertyDescription":"Publication Date","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"publicationDate","propertyType":"DateTime","uid":"ba93598036caa6d1c2b9d52287d7c2c8"},{"propertyDescription":"Duration","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"duration","propertyType":"DateTime","uid":"0e181fa90a3f41a5ece186e4e52af2c3"},{"propertyDescription":"mime","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"mime","propertyType":"String","uid":"1076130321886"}]},"relationGroup":{"relations":[{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"website","relationType":"zeroToOne","relationWire":"[wired]","uid":"6848d661086f35bb2128e175c448cf04"},{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"author","relationType":"zeroToOne","relationWire":"[wired]","uid":"71b6d562f5491ae8200d126aa2f3db13"}]}}},{"config":{"position":[308,485]},"name":"New Model Object","value":{"actionGroup":{"actions":["list","create","show"]},"name":"Category","objectsettings":{"aggregateRoot":false,"description":"Podcast Categorie","type":"Entity","uid":"bf1505095a6bc6c94a8ff298edbdde5c"},"propertyGroup":{"properties":[{"propertyDescription":"Title","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"title","propertyType":"String","uid":"cc74fc3984653e5a2580e35da5405273"}]},"relationGroup":{"relations":[{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"Sucategory","relationName":"subcategory","relationType":"zeroToOne","relationWire":"[wired]","uid":"9e9d381808cc71f582612b280bb5ea8a"}]}}},{"config":{"position":[785,538]},"name":"New Model Object","value":{"actionGroup":{"actions":["list","create","show"]},"name":"Person","objectsettings":{"aggregateRoot":true,"description":"Author or Technical Contact","type":"Entity","uid":"a2585f441dde24a2ad1713de72ac93e3"},"propertyGroup":{"properties":[{"propertyDescription":"Name","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"name","propertyType":"String","uid":"eaaf2b6b0a79560ea831bcf6e375a73b"},{"propertyDescription":"E-Mail","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"eMail","propertyType":"String","uid":"8f0f7c58cc4c997551897ba1eea17124"}]},"relationGroup":{"relations":[]}}},{"config":{"position":[867,362]},"name":"New Model Object","value":{"actionGroup":{"actions":["list","show","create"]},"name":"Website","objectsettings":{"aggregateRoot":true,"description":"Website","type":"ValueObject","uid":"a150ec42de709de9d8d955d4dc355c16"},"propertyGroup":{"properties":[{"propertyDescription":"Title","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"title","propertyType":"String","uid":"d0e7ecab83432261594df2825116cbb2"},{"propertyDescription":"Link","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"link","propertyType":"String","uid":"666746475286"}]},"relationGroup":{"relations":[]}}}],"properties":{"backendModules":[],"description":"Handel multiple Podcasts.","emConf":{"category":"plugin","custom_category":"","priority":"","shy":false,"state":"alpha","version":""},"extensionKey":"podcast","name":"Podcast","originalExtensionKey":"podcast","persons":[{"company":"noelboss.ch","email":"n dot company at me dot com","name":"No\u00ebl Bossart","role":"Developer"}],"plugins":[]},"wires":[{"src":{"moduleId":2,"terminal":"relationWire_0","uid":"9e9d381808cc71f582612b280bb5ea8a"},"tgt":{"moduleId":2,"terminal":"SOURCES","uid":"bf1505095a6bc6c94a8ff298edbdde5c"}},{"src":{"moduleId":0,"terminal":"relationWire_1","uid":"0d0b73c315bb847c772a1d4e05b84b6f"},"tgt":{"moduleId":2,"terminal":"SOURCES","uid":"bf1505095a6bc6c94a8ff298edbdde5c"}},{"src":{"moduleId":0,"terminal":"relationWire_0","uid":"94ad0ae8a1da5af6d15e87c2dc3408bf"},"tgt":{"moduleId":1,"terminal":"SOURCES","uid":"bec96252dc5bf73221fc9d271f39b477"}},{"src":{"moduleId":1,"terminal":"relationWire_0","uid":"6848d661086f35bb2128e175c448cf04"},"tgt":{"moduleId":4,"terminal":"SOURCES","uid":"a150ec42de709de9d8d955d4dc355c16"}},{"src":{"moduleId":1,"terminal":"relationWire_1","uid":"71b6d562f5491ae8200d126aa2f3db13"},"tgt":{"moduleId":3,"terminal":"SOURCES","uid":"a2585f441dde24a2ad1713de72ac93e3"}},{"src":{"moduleId":0,"terminal":"relationWire_2","uid":"03c4956c31d088a6a32e59e97a5eb4ab"},"tgt":{"moduleId":3,"terminal":"SOURCES","uid":"a2585f441dde24a2ad1713de72ac93e3"}},{"src":{"moduleId":0,"terminal":"relationWire_3","uid":"30e07586af1bea102e44399e6b5dcf00"},"tgt":{"moduleId":3,"terminal":"SOURCES","uid":"a2585f441dde24a2ad1713de72ac93e3"}},{"src":{"moduleId":0,"terminal":"relationWire_4","uid":"12418d36538fc930076690a386c9bf7b"},"tgt":{"moduleId":4,"terminal":"SOURCES","uid":"a150ec42de709de9d8d955d4dc355c16"}}],"log":{"last_modified":"2012-01-24 07:06","extension_builder_version":"2.0.5","be_user":" (1)"}}
+{"modules":[{"config":{"position":[231,29]},"name":"New Model Object","value":{"actionGroup":{"actions":["list","create","show"]},"name":"Podcast","objectsettings":{"aggregateRoot":true,"description":"This is a podcast","type":"Entity","uid":"e21f9300259ee0dc42f433f8a4c97afa"},"propertyGroup":{"properties":[{"propertyDescription":"Title","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"title","propertyType":"String","uid":"03e50d4322c1669670958e09c27e2bcf"},{"propertyDescription":"Subtitle","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"subtitle","propertyType":"String","uid":"137e02ef9f0e669d0a53b988769f80ec"},{"propertyDescription":"Description","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"description","propertyType":"String","uid":"d82a03cce18504d0486c6e62336075fe"},{"propertyDescription":"Copyright","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"copyright","propertyType":"String","uid":"484eb7d990828d54c016140370db6860"},{"propertyDescription":"Image","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"image","propertyType":"String","uid":"de9c2ea15e828ea22e29e5db03777cf4"},{"propertyDescription":"iTunes optimized","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"itunes","propertyType":"Boolean","uid":"1268218384207"}]},"relationGroup":{"relations":[{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"episodes","relationType":"zeroToMany","relationWire":"[wired]","uid":"94ad0ae8a1da5af6d15e87c2dc3408bf"},{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"categories","relationType":"manyToMany","relationWire":"[wired]","uid":"0d0b73c315bb847c772a1d4e05b84b6f"},{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"author","relationType":"zeroToOne","relationWire":"[wired]","uid":"03c4956c31d088a6a32e59e97a5eb4ab"},{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"technicalContact","relationType":"zeroToOne","relationWire":"[wired]","uid":"30e07586af1bea102e44399e6b5dcf00"},{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"website","relationType":"zeroToOne","relationWire":"[wired]","uid":"12418d36538fc930076690a386c9bf7b"}]}}},{"config":{"position":[801,15]},"name":"New Model Object","value":{"actionGroup":{"actions":["list","show","create"]},"name":"Episode","objectsettings":{"aggregateRoot":false,"description":"Podcast Episode","type":"Entity","uid":"bec96252dc5bf73221fc9d271f39b477"},"propertyGroup":{"properties":[{"propertyDescription":"Title","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"title","propertyType":"String","uid":"cd2f3ee1a0afb641de86014468b22363"},{"propertyDescription":"Subtitle","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"subtitle","propertyType":"String","uid":"1147347786140"},{"propertyDescription":"Summary","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"description","propertyType":"String","uid":"81fb88227e98b4e7b26aeebdb34ce2df"},{"propertyDescription":"File","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"file","propertyType":"String","uid":"210e606d4bbdef27b697c88db50cb3be"},{"propertyDescription":"Publication Date","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"publicationDate","propertyType":"DateTime","uid":"ba93598036caa6d1c2b9d52287d7c2c8"},{"propertyDescription":"Duration","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"duration","propertyType":"DateTime","uid":"0e181fa90a3f41a5ece186e4e52af2c3"},{"propertyDescription":"mime","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"mime","propertyType":"String","uid":"1076130321886"}]},"relationGroup":{"relations":[{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"website","relationType":"zeroToOne","relationWire":"[wired]","uid":"6848d661086f35bb2128e175c448cf04"},{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"","relationName":"author","relationType":"zeroToOne","relationWire":"[wired]","uid":"71b6d562f5491ae8200d126aa2f3db13"}]}}},{"config":{"position":[308,485]},"name":"New Model Object","value":{"actionGroup":{"actions":["list","create","show"]},"name":"Category","objectsettings":{"aggregateRoot":false,"description":"Podcast Categorie","type":"Entity","uid":"bf1505095a6bc6c94a8ff298edbdde5c"},"propertyGroup":{"properties":[{"propertyDescription":"Title","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"title","propertyType":"String","uid":"cc74fc3984653e5a2580e35da5405273"}]},"relationGroup":{"relations":[{"lazyLoading":false,"propertyIsExcludeField":false,"relationDescription":"Sucategory","relationName":"subcategory","relationType":"zeroToOne","relationWire":"[wired]","uid":"9e9d381808cc71f582612b280bb5ea8a"}]}}},{"config":{"position":[785,538]},"name":"New Model Object","value":{"actionGroup":{"actions":["list","create","show"]},"name":"Person","objectsettings":{"aggregateRoot":true,"description":"Author or Technical Contact","type":"Entity","uid":"a2585f441dde24a2ad1713de72ac93e3"},"propertyGroup":{"properties":[{"propertyDescription":"Name","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"name","propertyType":"String","uid":"eaaf2b6b0a79560ea831bcf6e375a73b"},{"propertyDescription":"E-Mail","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"eMail","propertyType":"String","uid":"8f0f7c58cc4c997551897ba1eea17124"}]},"relationGroup":{"relations":[]}}},{"config":{"position":[867,362]},"name":"New Model Object","value":{"actionGroup":{"actions":["list","show","create"]},"name":"Website","objectsettings":{"aggregateRoot":true,"description":"Website","type":"ValueObject","uid":"a150ec42de709de9d8d955d4dc355c16"},"propertyGroup":{"properties":[{"propertyDescription":"Title","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"title","propertyType":"String","uid":"d0e7ecab83432261594df2825116cbb2"},{"propertyDescription":"Link","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"link","propertyType":"String","uid":"666746475286"}]},"relationGroup":{"relations":[]}}}],"properties":{"backendModules":[],"description":"Handel multiple Podcasts.","emConf":{"category":"plugin","custom_category":"","priority":"","shy":false,"state":"alpha","version":""},"extensionKey":"podcast","name":"Podcast","originalExtensionKey":"podcast","persons":[{"company":"noelboss.ch","email":"n dot company at me dot com","name":"No\u00ebl Bossart","role":"Developer"}],"plugins":[]},"wires":[{"src":{"moduleId":2,"terminal":"relationWire_0","uid":"9e9d381808cc71f582612b280bb5ea8a"},"tgt":{"moduleId":2,"terminal":"SOURCES","uid":"bf1505095a6bc6c94a8ff298edbdde5c"}},{"src":{"moduleId":0,"terminal":"relationWire_1","uid":"0d0b73c315bb847c772a1d4e05b84b6f"},"tgt":{"moduleId":2,"terminal":"SOURCES","uid":"bf1505095a6bc6c94a8ff298edbdde5c"}},{"src":{"moduleId":0,"terminal":"relationWire_0","uid":"94ad0ae8a1da5af6d15e87c2dc3408bf"},"tgt":{"moduleId":1,"terminal":"SOURCES","uid":"bec96252dc5bf73221fc9d271f39b477"}},{"src":{"moduleId":1,"terminal":"relationWire_0","uid":"6848d661086f35bb2128e175c448cf04"},"tgt":{"moduleId":4,"terminal":"SOURCES","uid":"a150ec42de709de9d8d955d4dc355c16"}},{"src":{"moduleId":1,"terminal":"relationWire_1","uid":"71b6d562f5491ae8200d126aa2f3db13"},"tgt":{"moduleId":3,"terminal":"SOURCES","uid":"a2585f441dde24a2ad1713de72ac93e3"}},{"src":{"moduleId":0,"terminal":"relationWire_2","uid":"03c4956c31d088a6a32e59e97a5eb4ab"},"tgt":{"moduleId":3,"terminal":"SOURCES","uid":"a2585f441dde24a2ad1713de72ac93e3"}},{"src":{"moduleId":0,"terminal":"relationWire_3","uid":"30e07586af1bea102e44399e6b5dcf00"},"tgt":{"moduleId":3,"terminal":"SOURCES","uid":"a2585f441dde24a2ad1713de72ac93e3"}},{"src":{"moduleId":0,"terminal":"relationWire_4","uid":"12418d36538fc930076690a386c9bf7b"},"tgt":{"moduleId":4,"terminal":"SOURCES","uid":"a150ec42de709de9d8d955d4dc355c16"}}],"log":{"last_modified":"2012-01-24 07:16","extension_builder_version":"2.0.5","be_user":" (1)"}}
View
3 Resources/Private/Language/locallang_csh_tx_podcast_domain_model_episode.xml
@@ -8,7 +8,8 @@
<data type="array">
<languageKey index="default" type="array">
<label index="title.description">Title</label>
- <label index="description.description">Description</label>
+ <label index="subtitle.description">Subtitle</label>
+ <label index="description.description">Summary</label>
<label index="file.description">File</label>
<label index="publication_date.description">Publication Date</label>
<label index="duration.description">Duration</label>
View
4 Resources/Private/Language/locallang_db.xml
@@ -20,11 +20,12 @@
<label index="tx_podcast_domain_model_podcast.website">Website</label>
<label index="tx_podcast_domain_model_episode">Episode</label>
<label index="tx_podcast_domain_model_episode.title">Title</label>
+ <label index="tx_podcast_domain_model_episode.subtitle">Subtitle</label>
<label index="tx_podcast_domain_model_episode.description">Description</label>
<label index="tx_podcast_domain_model_episode.file">File</label>
<label index="tx_podcast_domain_model_episode.publication_date">Publication Date</label>
<label index="tx_podcast_domain_model_episode.duration">Duration</label>
- <label index="tx_podcast_domain_model_episode.mime">Mime Type</label>
+ <label index="tx_podcast_domain_model_episode.mime">Mime</label>
<label index="tx_podcast_domain_model_episode.website">Website</label>
<label index="tx_podcast_domain_model_episode.author">Author</label>
<label index="tx_podcast_domain_model_category">Category</label>
@@ -35,6 +36,7 @@
<label index="tx_podcast_domain_model_person.e_mail">E Mail</label>
<label index="tx_podcast_domain_model_website">Website</label>
<label index="tx_podcast_domain_model_website.title">Title</label>
+ <label index="tx_podcast_domain_model_website.link">Link</label>
</languageKey>
</data>
</T3locallang>
View
18 Resources/Private/Templates/Podcast/list.html
@@ -16,14 +16,18 @@
</div>
<div class="description">
<h2><f:link.action action="show" arguments="{podcast : podcast}">{podcast.title}</f:link.action>
- <span>
- <f:link.action action="show" arguments="{podcast : podcast}" pageType="23456689564">
- <f:image src="typo3conf/ext/podcast/Resources/Public/Icons/tx_podcast_domain_model_podcast.gif" alt="<f:translate key='tx_podcast_domain_model_podcast.feed' />" />
- <f:translate key="tx_podcast_domain_model_podcast.links.feed" />
- </f:link.action>
- </span>
+ <f:if condition="{podcast.episodes}">
+ <f:then>
+ <span>
+ <f:link.action action="show" arguments="{podcast : podcast}" pageType="23456689564">
+ <f:image src="typo3conf/ext/podcast/Resources/Public/Icons/tx_podcast_domain_model_podcast.gif" alt="<f:translate key='tx_podcast_domain_model_podcast.feed' />" />
+ <f:translate key="tx_podcast_domain_model_podcast.links.feed" />
+ </f:link.action>
+ </span>
+ </f:then>
+ </f:if>
</h2>
- <p><f:format.nl2br>{podcast.description}</f:format.nl2br> </p>
+ <h3>{podcast.subtitle}</h3>
</div>
</li>
</f:for>
View
2 Resources/Private/Templates/Podcast/show.html
@@ -6,7 +6,6 @@
<f:link.action action="index"><f:translate key="tx_podcast_domain_model_podcast.links.back" /></f:link.action>
</span>
</h1>
- <h2>{podcast.subtitle}</h2>
<div class="info">
<div class="image">
<f:if condition="{podcast.image}">
@@ -19,6 +18,7 @@
</f:if>
</div>
<div class="description">
+ <strong>{podcast.subtitle}</strong> –
<f:format.nl2br>{podcast.description}</f:format.nl2br>
<f:if condition="{podcast.episodes}">
<f:then>
View
4 Resources/Public/Styles/default.css
@@ -4,7 +4,9 @@
.modPodcast .info { overflow: hidden; zoom: 1; margin-bottom: 1em; margin-bottom: 2em;}
.modPodcast .podcasts li { overflow: hidden; zoom: 1; margin: 1em 0; }
.modPodcast .podcasts h2 span { float: right; font-weight: normal; font-size: 0.8em; }
-.modPodcast .podcasts h2 a img { vertical-align: bottom; }
+.modPodcast .podcasts h2 a img { vertical-align: bottom; }
+.modPodcast .podcasts h3 { font-weight: normal; font-size: 1em; }
+
.modPodcast .image { float: left; border: 1px solid #ddd; }
.modPodcast .image img { margin: 1px; vertical-align: bottom; }
View
17 Tests/Unit/Domain/Model/EpisodeTest.php
@@ -71,6 +71,23 @@ public function setTitleForStringSetsTitle() {
/**
* @test
*/
+ public function getSubtitleReturnsInitialValueForString() { }
+
+ /**
+ * @test
+ */
+ public function setSubtitleForStringSetsSubtitle() {
+ $this->fixture->setSubtitle('Conceived at T3CON10');
+
+ $this->assertSame(
+ 'Conceived at T3CON10',
+ $this->fixture->getSubtitle()
+ );
+ }
+
+ /**
+ * @test
+ */
public function getDescriptionReturnsInitialValueForString() { }
/**
View
17 Tests/Unit/Domain/Model/WebsiteTest.php
@@ -68,5 +68,22 @@ public function setTitleForStringSetsTitle() {
);
}
+ /**
+ * @test
+ */
+ public function getLinkReturnsInitialValueForString() { }
+
+ /**
+ * @test
+ */
+ public function setLinkForStringSetsLink() {
+ $this->fixture->setLink('Conceived at T3CON10');
+
+ $this->assertSame(
+ 'Conceived at T3CON10',
+ $this->fixture->getLink()
+ );
+ }
+
}
?>
View
1 ext_tables.sql
@@ -57,6 +57,7 @@ CREATE TABLE tx_podcast_domain_model_episode (
podcast int(11) unsigned DEFAULT '0' NOT NULL,
title varchar(255) DEFAULT '' NOT NULL,
+ subtitle varchar(255) DEFAULT '' NOT NULL,
description varchar(255) DEFAULT '' NOT NULL,
file varchar(255) DEFAULT '' NOT NULL,
publication_date int(11) DEFAULT '0' NOT NULL,

0 comments on commit 87cb9d6

Please sign in to comment.