Exemple #1
0
function outputImageStream($id, $src, $width, $height, $title = "")
{
    if (canStreamIframe()) {
        ?>
<iframe id="<?php 
        echo $id;
        ?>
" src="<?php 
        echo $src;
        ?>
" alt="<?php 
        echo validHtmlStr($title);
        ?>
" width="<?php 
        echo $width;
        ?>
" height="<?php 
        echo $height;
        ?>
"/>
<?php 
    } else {
        ?>
<img id="<?php 
        echo $id;
        ?>
" src="<?php 
        echo $src;
        ?>
" alt="<?php 
        echo validHtmlStr($title);
        ?>
" width="<?php 
        echo $width;
        ?>
" height="<?php 
        echo $height;
        ?>
"/>
<?php 
    }
}
Exemple #2
0
function outputImageStream( $id, $src, $width, $height, $title="" )
{
   if ( canStreamIframe() ) {
?>
<iframe id="<?= $id ?>" src="<?= $src ?>" alt="<?= validHtmlStr($title) ?>" width="<?= $width ?>" height="<?= $height ?>"/>
<?php
   } else {
?>
<img id="<?= $id ?>" src="<?= $src ?>" alt="<?= validHtmlStr($title) ?>" width="<?= $width ?>" height="<?= $height ?>"/>
<?php
   }
}