| @@ 591-609 (lines=19) @@ | ||
| 588 | } |
|
| 589 | } |
|
| 590 | ||
| 591 | public function get_image_url() |
|
| 592 | { |
|
| 593 | if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'image')) |
|
| 594 | { |
|
| 595 | return $this->sanitize($return[0]['attribs']['']['href'], SIMPLEPIE_CONSTRUCT_IRI); |
|
| 596 | } |
|
| 597 | elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'logo')) |
|
| 598 | { |
|
| 599 | return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($return[0])); |
|
| 600 | } |
|
| 601 | elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'icon')) |
|
| 602 | { |
|
| 603 | return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($return[0])); |
|
| 604 | } |
|
| 605 | else |
|
| 606 | { |
|
| 607 | return null; |
|
| 608 | } |
|
| 609 | } |
|
| 610 | } |
|
| 611 | ||
| 612 | ||
| @@ 2728-2746 (lines=19) @@ | ||
| 2725 | * |
|
| 2726 | * @return string|null |
|
| 2727 | */ |
|
| 2728 | public function get_image_link() |
|
| 2729 | { |
|
| 2730 | if ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'link')) |
|
| 2731 | { |
|
| 2732 | return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($return[0])); |
|
| 2733 | } |
|
| 2734 | elseif ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'link')) |
|
| 2735 | { |
|
| 2736 | return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($return[0])); |
|
| 2737 | } |
|
| 2738 | elseif ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'link')) |
|
| 2739 | { |
|
| 2740 | return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($return[0])); |
|
| 2741 | } |
|
| 2742 | else |
|
| 2743 | { |
|
| 2744 | return null; |
|
| 2745 | } |
|
| 2746 | } |
|
| 2747 | ||
| 2748 | /** |
|
| 2749 | * Get the feed logo's link |
|