| @@ 559-570 (lines=12) @@ | ||
| 556 | // Atom 1.0 spec supported by misol |
|
| 557 | $rss->title = $xml_doc->feed->title->body; |
|
| 558 | $links = $xml_doc->feed->link; |
|
| 559 | if(is_array($links)) |
|
| 560 | { |
|
| 561 | foreach ($links as $value) |
|
| 562 | { |
|
| 563 | if($value->attrs->rel == 'alternate') |
|
| 564 | { |
|
| 565 | $rss->link = $value->attrs->href; |
|
| 566 | break; |
|
| 567 | } |
|
| 568 | } |
|
| 569 | } |
|
| 570 | else if($links->attrs->rel == 'alternate') $rss->link = $links->attrs->href; |
|
| 571 | ||
| 572 | $items = $xml_doc->feed->entry; |
|
| 573 | ||
| @@ 592-603 (lines=12) @@ | ||
| 589 | ||
| 590 | $content_item = new contentItem($rss->title); |
|
| 591 | $links = $value->link; |
|
| 592 | if(is_array($links)) |
|
| 593 | { |
|
| 594 | foreach ($links as $val) |
|
| 595 | { |
|
| 596 | if($val->attrs->rel == 'alternate') |
|
| 597 | { |
|
| 598 | $item->link = $val->attrs->href; |
|
| 599 | break; |
|
| 600 | } |
|
| 601 | } |
|
| 602 | } |
|
| 603 | else if($links->attrs->rel == 'alternate') $item->link = $links->attrs->href; |
|
| 604 | ||
| 605 | $content_item->setContentsLink($rss->link); |
|
| 606 | if($item->title) |
|
| @@ 508-519 (lines=12) @@ | ||
| 505 | // Atom 1.0 spec supported by misol |
|
| 506 | $rss->title = $xml_doc->feed->title->body; |
|
| 507 | $links = $xml_doc->feed->link; |
|
| 508 | if(is_array($links)) |
|
| 509 | { |
|
| 510 | foreach ($links as $value) |
|
| 511 | { |
|
| 512 | if($value->attrs->rel == 'alternate') |
|
| 513 | { |
|
| 514 | $rss->link = $value->attrs->href; |
|
| 515 | break; |
|
| 516 | } |
|
| 517 | } |
|
| 518 | } |
|
| 519 | else if($links->attrs->rel == 'alternate') $rss->link = $links->attrs->href; |
|
| 520 | ||
| 521 | $items = $xml_doc->feed->entry; |
|
| 522 | ||
| @@ 541-552 (lines=12) @@ | ||
| 538 | ||
| 539 | $content_item = new mcontentItem($rss->title); |
|
| 540 | $links = $value->link; |
|
| 541 | if(is_array($links)) |
|
| 542 | { |
|
| 543 | foreach ($links as $val) |
|
| 544 | { |
|
| 545 | if($val->attrs->rel == 'alternate') |
|
| 546 | { |
|
| 547 | $item->link = $val->attrs->href; |
|
| 548 | break; |
|
| 549 | } |
|
| 550 | } |
|
| 551 | } |
|
| 552 | else if($links->attrs->rel == 'alternate') $item->link = $links->attrs->href; |
|
| 553 | ||
| 554 | $content_item->setContentsLink($rss->link); |
|
| 555 | if($item->title) |
|