and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * The source code of this package is available online at * . */ /* @var \WebSyndication\Abstract\StdClass $xml */ if (!isset($xml) || empty($xml)) return ''; $item_image = $xml->getTagItem('image'); $item_title = $xml->getTagItem('title'); $item_date = $xml->getTagItem('updated_date'); $item_link = $xml->getTagItem('item_link'); $item_description = $xml->getTagItem('description'); $item_subtitle = $xml->getTagItem('subtitle'); $item_author = $xml->getTagItem('author'); $item_categories = $xml->getTagItem('category'); $item_media = $xml->getTagItem('media'); $item_comments = $xml->getTagItem('comments'); ?>
$xml->parent, 'alt_class' => \WebSyndication\Helper::getClass('item_alt_class') ) ); } ?> content; ?>
$item_date, 'alt_class' => \WebSyndication\Helper::getClass('item_alt_class')) ); } // image if (!empty($item_image)) { echo \WebSyndication\Helper::renderView( \WebSyndication\Helper::getTemplate('image_tag_template'), array('xml' => $item_image, 'alt_class' => \WebSyndication\Helper::getClass('item_alt_class')) ); } // subtitle if (!empty($item_subtitle)) { echo \WebSyndication\Helper::renderView( \WebSyndication\Helper::getTemplate('content_tag_template'), array('xml' => $item_subtitle, 'alt_class' => \WebSyndication\Helper::getClass('item_alt_class')) ); } // description if (!empty($item_description)) { echo \WebSyndication\Helper::renderView( \WebSyndication\Helper::getTemplate('content_tag_template'), array('xml' => $item_description, 'alt_class' => \WebSyndication\Helper::getClass('item_alt_class')) ); } // categories list if (!empty($item_categories)) { echo \WebSyndication\Helper::renderView( \WebSyndication\Helper::getTemplate('categories_tag_template'), array('xml' => $item_categories, 'alt_class' => \WebSyndication\Helper::getClass('item_alt_class')) ); } // author if (!empty($item_author)) { echo \WebSyndication\Helper::renderView( \WebSyndication\Helper::getTemplate('person_tag_template'), array('xml' => $item_author, 'alt_class' => \WebSyndication\Helper::getClass('item_alt_class')) ); } // comments if (!empty($item_comments)) { echo \WebSyndication\Helper::renderView( \WebSyndication\Helper::getTemplate('comments_tag_template'), array('xml' => $item_comments, 'alt_class' => \WebSyndication\Helper::getClass('item_alt_class')) ); } // media if (!empty($item_media)) { echo \WebSyndication\Helper::renderView( \WebSyndication\Helper::getTemplate('media_tag_template'), array('xml' => $item_media, 'alt_class' => \WebSyndication\Helper::getClass('item_alt_class')) ); } ?>