i() public static method

Generates italic text.
public static i ( string $text, array $htmlOptions = [] ) : string
$text string the text to style.
$htmlOptions array additional HTML attributes.
return string the generated text.
Beispiel #1
0
 public function testItalic()
 {
     $I = $this->codeGuy;
     $html = TbHtml::i('Italic text');
     $em = $I->createNode($html, 'em');
     $I->seeNodeText($em, 'Italic text');
 }
Beispiel #2
0
    <h3>Bold</h3>

    <div class="bs-docs-example">
        <p>The following snippet of text is <?php 
echo TbHtml::b('rendered as bold text');
?>
.</p>
    </div>
    <pre class="prettyprint linenums">
&lt;p>The following snippet of text is &lt;?php echo TbHtml::b('rendered as bold text'); ?>.&lt;/p></pre>

    <h3>Italic</h3>

    <div class="bs-docs-example">
        <p>The following snippet of text is <?php 
echo TbHtml::i('rendered as italic text');
?>
.</p>
    </div>
    <pre class="prettyprint linenums">
&lt;p>The following snippet of text is &lt;?php echo TbHtml::i('rendered as italic text'); ?>.&lt;/p></pre>

    <h3>Emphasis styles</h3>

    <div class="bs-docs-example">
        <?php 
echo TbHtml::muted('Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.');
?>
        <?php 
echo TbHtml::em('Etiam porta sem malesuada magna mollis euismod.', array('color' => TbHtml::TEXT_COLOR_WARNING));
?>
Beispiel #3
0
Datei: form.php Projekt: cicb/tpc
?>
					<br /><br />
					<?php 
echo TbHtml::fileField('imabol', '', array('span' => 2, 'maxlength' => 200, 'class' => 'hidden'));
?>

						<?php 
echo $form->textField($model, 'EventoImaBol', array('append' => TbHtml::button('Seleccionar imagen', array('class' => 'btn btn-success', 'id' => 'btn-subir-imabol')), 'placeholder' => 'Nombre de la imagen en Boleto'));
?>

				</div>


				<div class='span4 white-box box'>
				<h3><?php 
echo TbHtml::i('', array('class' => 'fa fa-picture-o'));
?>
 Imagen para PV</h3>
					<?php 
echo TbHtml::imagePolaroid(strlen($model->EventoImaMin) > 3 ? "../imagesbd/" . $model->EventoImaMin : 'holder.js/130x130', '', array('id' => 'img-imamin'));
?>
					<br /><br />
					<?php 
echo TbHtml::fileField('imamin', '', array('span' => 2, 'maxlength' => 200, 'class' => 'hidden'));
?>
					<?php 
echo $form->textField($model, 'EventoImaMin', array('append' => TbHtml::button('Seleccionar imagen', array('class' => 'btn btn-success', 'id' => 'btn-subir-imamin')), 'placeholder' => 'Nombre de la imagen miniatura'));
?>
		
				</div>
                <?php