@@ -390,6 +390,11 @@ public function appendToChannel(DOMElement $channel, DOMDocument $doc)
390390 ->appendChild ( new DOMText ( $ this ->explicit ) );
391391 }
392392
393+ if (!empty ($ this ->block ))
394+ {
395+ $ channel ->appendChild ( $ doc ->createElement ('itunes:block ' ) )
396+ ->appendChild ( new DOMText ( $ this ->block ) );
397+ }
393398
394399 if (!empty ($ this ->image_href ))
395400 {
@@ -533,6 +538,11 @@ public function setExplicit($explicit)
533538 {
534539 $ this ->explicit = $ explicit ;
535540 }
541+
542+ public function setBlock ($ block )
543+ {
544+ $ this ->block = $ block ;
545+ }
536546}
537547
538548class RSS_Item extends GetterSetter {
@@ -1999,6 +2009,9 @@ public static function defaults(array $SERVER)
19992009 if (!defined ('ITUNES_EXPLICIT ' ))
20002010 define ('ITUNES_EXPLICIT ' , '' );
20012011
2012+ if (!defined ('ITUNES_BLOCK ' ))
2013+ define ('ITUNES_BLOCK ' , '' );
2014+
20022015 if (!defined ('LONG_TITLES ' ))
20032016 define ('LONG_TITLES ' , false );
20042017
@@ -2166,6 +2179,7 @@ public function init()
21662179 $ itunes ->setSummary (ITUNES_SUMMARY );
21672180 $ itunes ->setImage (ITUNES_IMAGE );
21682181 $ itunes ->setExplicit (ITUNES_EXPLICIT );
2182+ $ itunes ->setBlock (ITUNES_BLOCK );
21692183
21702184 $ itunes ->setOwnerName (ITUNES_OWNER_NAME );
21712185 $ itunes ->setOwnerEmail (ITUNES_OWNER_EMAIL );
0 commit comments