TbHtml::imagePolaroid PHP Method

imagePolaroid() public static method

Generates an image tag within polaroid frame.
Deprecation: See {@link imageThumbnail()}
public static imagePolaroid ( string $src, string $alt = '', array $htmlOptions = [] ) : string
$src string the image URL.
$alt string the alternative text display.
$htmlOptions array additional HTML attributes.
return string the generated image tag.
    public static function imagePolaroid($src, $alt = '', $htmlOptions = array())
    {
        $htmlOptions['type'] = self::IMAGE_TYPE_POLAROID;
        return self::image($src, $alt, $htmlOptions);
    }

Usage Example

Exemplo n.º 1
0
	<div class="bs-docs-example">
		<div class="row-fluid" style="text-align: center; width: 450px;">
			<div class="span4">
				<?php 
echo TbHtml::imageRounded('holder.js/140x140');
?>
			</div>
			<div class="span4">
				<?php 
echo TbHtml::imageCircle('holder.js/140x140');
?>
			</div>
			<div class="span4">
				<?php 
echo TbHtml::imagePolaroid('holder.js/140x140');
?>
			</div>
		</div>
	</div>

    <pre class="prettyprint linenums">
&lt;?php echo TbHtml::imageRounded('...'); ?>
&lt;?php echo TbHtml::imageCircle('...'); ?>
&lt;?php echo TbHtml::imagePolaroid('...'); ?></pre>

</section>

<!-- Nav, Tabs, & Pills
	================================================== -->
<section id="navs">
All Usage Examples Of TbHtml::imagePolaroid
TbHtml