@@ 7332-7345 (lines=14) @@ | ||
7329 | $restrictions_parent[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value)); |
|
7330 | } |
|
7331 | } |
|
7332 | elseif ($restrictions = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'block')) |
|
7333 | { |
|
7334 | foreach ($restrictions as $restriction) |
|
7335 | { |
|
7336 | $restriction_relationship = 'allow'; |
|
7337 | $restriction_type = null; |
|
7338 | $restriction_value = 'itunes'; |
|
7339 | if (isset($restriction['data']) && strtolower($restriction['data']) === 'yes') |
|
7340 | { |
|
7341 | $restriction_relationship = 'deny'; |
|
7342 | } |
|
7343 | $restrictions_parent[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value)); |
|
7344 | } |
|
7345 | } |
|
7346 | elseif ($restrictions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'restriction')) |
|
7347 | { |
|
7348 | foreach ($restrictions as $restriction) |
|
@@ 7368-7381 (lines=14) @@ | ||
7365 | $restrictions_parent[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value)); |
|
7366 | } |
|
7367 | } |
|
7368 | elseif ($restrictions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'block')) |
|
7369 | { |
|
7370 | foreach ($restrictions as $restriction) |
|
7371 | { |
|
7372 | $restriction_relationship = 'allow'; |
|
7373 | $restriction_type = null; |
|
7374 | $restriction_value = 'itunes'; |
|
7375 | if (isset($restriction['data']) && strtolower($restriction['data']) === 'yes') |
|
7376 | { |
|
7377 | $restriction_relationship = 'deny'; |
|
7378 | } |
|
7379 | $restrictions_parent[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value)); |
|
7380 | } |
|
7381 | } |
|
7382 | if (is_array($restrictions_parent)) |
|
7383 | { |
|
7384 | $restrictions_parent = array_values(array_unique($restrictions_parent)); |