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 * . */ if (!isset($xml) || empty($xml)) return ''; if (!isset($alt_class)) $alt_class = ''; $image_src = $image_alt = $image_description = $image_link = null; $image_src = (isset($xml->url) ? $xml->url->content : $xml->content); if (isset($image->link)) $image_link = $image->link->content; if (isset($image->description)) $image_description = $image->description->content; if (isset($image->title)) $image_alt = $image->title->content; $width = $height = 0; if (!empty($xml->width)) $width = $xml->width->content; if (!empty($xml->height)) $height = $xml->height->content; if ($width===0 || $height===0) { list($width, $height) = \WebSyndication\Helper::getImageSize($image_src); } if (!empty($max_width) || !empty($max_height)) { list($width, $height) = \WebSyndication\Helper::imageResize($width, $height, $max_width, $max_height); } ?>
<?php 
        echo (!empty($image_alt) ? $image_alt : 'img');
    ?> width="" height="" style="width:px; height:px;" width="" style="width:px;" height="" style="height:px;" />