public function testImageRounded() { $I = $this->codeGuy; $html = TbHtml::imageRounded('image.png', 'Alternative text', array('class' => 'image')); $img = $I->createNode($html, 'img.img-rounded'); $I->seeNodeCssClass($img, 'image'); $I->seeNodeAttributes($img, array('src' => 'image.png', 'alt' => 'Alternative text')); }
</section> <section id="images"> <div class="page-header"> <a name="images"></a> <h1>Images</small></h1> </div> <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>
) )); ?> </div><!-- mainmenu --><br /><br /><br /><br /> <div class="brand" style="margin-left: 5%;margin-right:5%;"> <table id="tbl_logos"> <tr> <td><?php echo TbHtml::imageRounded(Yii::app()->request->baseUrl.'/images/logo.png', '',array('width'=>80,'height'=>80,'class'=>'logo'))?></td> <td> <center> <?php echo TbHtml::pageHeader('', Yii::t('strings', substr(CHtml::encode(Yii::app()->name),0,27)."<br />".substr(CHtml::encode(Yii::app()->name),28),['style'=>'font-size:40px;']) ); ?> </center></td> <td><?php echo TbHtml::imageRounded(Yii::app()->request->baseUrl.'/images/tmea.png', '',array('width'=>100,'height'=>100,'class'=>'tmea'))?></td> <td><?php echo TbHtml::imageRounded(Yii::app()->request->baseUrl.'/images/eac_logo.png', '',array('width'=>100,'height'=>100,'class'=>'eac'))?></td> </tr> </table> </div> <?php if(isset($this->breadcrumbs)):?> <?php // $this->widget('bootstrap.widgets.TbBreadcrumb', array( // 'links' => $this->breadcrumbs, // )); ?><!-- breadcrumbs --> <?php endif?> <?php foreach(Yii::app()->user->getFlashes() as $key => $message) : ?> <?php echo TbHtml::alert($key, $message); ?>