@@ 7627-7652 (lines=26) @@ | ||
7624 | $captions = $captions_parent; |
|
7625 | } |
|
7626 | // CATEGORIES |
|
7627 | if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['category'])) |
|
7628 | { |
|
7629 | foreach ((array) $content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['category'] as $category) |
|
7630 | { |
|
7631 | $term = null; |
|
7632 | $scheme = null; |
|
7633 | $label = null; |
|
7634 | if (isset($category['data'])) |
|
7635 | { |
|
7636 | $term = $this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7637 | } |
|
7638 | if (isset($category['attribs']['']['scheme'])) |
|
7639 | { |
|
7640 | $scheme = $this->sanitize($category['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7641 | } |
|
7642 | else |
|
7643 | { |
|
7644 | $scheme = 'http://search.yahoo.com/mrss/category_schema'; |
|
7645 | } |
|
7646 | if (isset($category['attribs']['']['label'])) |
|
7647 | { |
|
7648 | $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7649 | } |
|
7650 | $categories[] = $this->registry->create('Category', array($term, $scheme, $label)); |
|
7651 | } |
|
7652 | } |
|
7653 | if (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['category'])) |
|
7654 | { |
|
7655 | foreach ((array) $group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['category'] as $category) |
|
@@ 7653-7678 (lines=26) @@ | ||
7650 | $categories[] = $this->registry->create('Category', array($term, $scheme, $label)); |
|
7651 | } |
|
7652 | } |
|
7653 | if (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['category'])) |
|
7654 | { |
|
7655 | foreach ((array) $group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['category'] as $category) |
|
7656 | { |
|
7657 | $term = null; |
|
7658 | $scheme = null; |
|
7659 | $label = null; |
|
7660 | if (isset($category['data'])) |
|
7661 | { |
|
7662 | $term = $this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7663 | } |
|
7664 | if (isset($category['attribs']['']['scheme'])) |
|
7665 | { |
|
7666 | $scheme = $this->sanitize($category['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7667 | } |
|
7668 | else |
|
7669 | { |
|
7670 | $scheme = 'http://search.yahoo.com/mrss/category_schema'; |
|
7671 | } |
|
7672 | if (isset($category['attribs']['']['label'])) |
|
7673 | { |
|
7674 | $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7675 | } |
|
7676 | $categories[] = $this->registry->create('Category', array($term, $scheme, $label)); |
|
7677 | } |
|
7678 | } |
|
7679 | if (is_array($categories) && is_array($categories_parent)) |
|
7680 | { |
|
7681 | $categories = array_values(array_unique(array_merge($categories, $categories_parent))); |
|
@@ 8199-8224 (lines=26) @@ | ||
8196 | $captions = $captions_parent; |
|
8197 | } |
|
8198 | // CATEGORIES |
|
8199 | if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['category'])) |
|
8200 | { |
|
8201 | foreach ((array) $content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['category'] as $category) |
|
8202 | { |
|
8203 | $term = null; |
|
8204 | $scheme = null; |
|
8205 | $label = null; |
|
8206 | if (isset($category['data'])) |
|
8207 | { |
|
8208 | $term = $this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
8209 | } |
|
8210 | if (isset($category['attribs']['']['scheme'])) |
|
8211 | { |
|
8212 | $scheme = $this->sanitize($category['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
8213 | } |
|
8214 | else |
|
8215 | { |
|
8216 | $scheme = 'http://search.yahoo.com/mrss/category_schema'; |
|
8217 | } |
|
8218 | if (isset($category['attribs']['']['label'])) |
|
8219 | { |
|
8220 | $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
8221 | } |
|
8222 | $categories[] = $this->registry->create('Category', array($term, $scheme, $label)); |
|
8223 | } |
|
8224 | } |
|
8225 | if (is_array($categories) && is_array($categories_parent)) |
|
8226 | { |
|
8227 | $categories = array_values(array_unique(array_merge($categories, $categories_parent))); |