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\Feed $xml */ if (!isset($xml) || empty($xml)) return ''; if (!isset($offset)) $offset = 0; if (!isset($limit)) $limit = null; $channel_image = $xml->getTagItem('image'); $channel_title = $xml->getTagItem('title'); $channel_date = $xml->getTagItem('updated_date'); $channel_link = $xml->getTagItem('link'); $channel_description = $xml->getTagItem('description'); $channel_subtitle = $xml->getTagItem('subtitle'); ?>
$channel_subtitle, 'alt_class' => \WebSyndication\Helper::getClass('channel_alt_class')) ); } // description if (!empty($channel_description)) { echo \WebSyndication\Helper::renderView( \WebSyndication\Helper::getTemplate('content_tag_template'), array('xml' => $channel_description, 'alt_class' => \WebSyndication\Helper::getClass('channel_alt_class')) ); } // image if (!empty($channel_image)) { echo \WebSyndication\Helper::renderView( \WebSyndication\Helper::getTemplate('image_tag_template'), array('xml' => $channel_image, 'alt_class' => \WebSyndication\Helper::getClass('channel_alt_class')) ); } ?>
getItems($limit, $offset) as $item) { echo \WebSyndication\Helper::renderView( \WebSyndication\Helper::getTemplate('feed_item_template'), array('xml' => $item, 'alt_class' => \WebSyndication\Helper::getClass('channel_alt_class')) ); } ?>