本文整理汇总了PHP中TbHtml::small方法的典型用法代码示例。如果您正苦于以下问题:PHP TbHtml::small方法的具体用法?PHP TbHtml::small怎么用?PHP TbHtml::small使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TbHtml
的用法示例。
在下文中一共展示了TbHtml::small方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testSmall
public function testSmall()
{
$I = $this->codeGuy;
$html = TbHtml::small('Small text');
$small = $I->createNode($html, 'small');
$I->seeNodeText($small, 'Small text');
}
示例2: array
echo Yii::app()->request->baseUrl;
?>
/css/users.css" />
<p> <b>Questionnaire - Windows Phone</b></p>
<div class="well">
<?php
$testes_selecionados = array();
?>
<?php
echo TbHtml::lead('Characteristics ');
?>
<?php
echo TbHtml::small('To improve the quality of testing in your app, please answer the questions simply check the functionality required by your app.', array('class' => 'help-block'));
?>
<p><?php
echo TbHtml::b('Connectivity');
?>
</p>
<?php
echo TbHtml::checkBoxList('checkConnectivity', '', array('3.1, 3.2' => CHtml::encode('Does your app use Network Connection?')));
?>
<p><?php
echo TbHtml::b('Content Interaction');
?>
</p>
<?php
echo TbHtml::checkBoxList('checkContentInteraction', '', array('4.1, 4.2, 4.3, 4.5' => CHtml::encode('Does your app have content interaction?'), '4.4' => CHtml::encode('Does you app support hover feedback?')));
示例3:
<?php
echo TbHtml::lead('Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.');
?>
</div>
<pre class="prettyprint linenums">
<?php echo TbHtml::lead('...'); ?></pre>
<hr class="bs-docs-separator">
<h2>Emphasis</h2>
<h3>Small</h3>
<div class="bs-docs-example">
<p><?php
echo TbHtml::small('This line of text is meant to be treated as fine print.');
?>
</p>
</div>
<pre class="prettyprint linenums">
<p><?php echo TbHtml::small('...'); ?></p></pre>
<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">
示例4: array
echo CHtml::hiddenField('FileForm[' . $uniqueId . '][photos][' . $idx . '][thumb_filename]', $model->thumb_filename);
echo CHtml::hiddenField('FileForm[' . $uniqueId . '][photos][' . $idx . '][mime_type]', $model->mime_type);
$sTitleMaxLength = 'Max length is ' . Yii::app()->params['lengthPhotoTitle'] . ' symbols';
$sDescMaxLength = 'Max length is ' . Yii::app()->params['lengthPhotoDescription'] . ' symbols';
echo TbHtml::textField('FileForm[' . $uniqueId . '][photos][' . $idx . '][description]', $model->description, array('class' => 'fl-l', 'span' => 6, 'style' => 'margin-left: 10px; margin-right: 10px;', 'placeholder' => Yii::t('main', 'photo description'), 'title' => $sDescMaxLength, 'alt' => $sDescMaxLength));
echo TbHtml::textField('FileForm[' . $uniqueId . '][photos][' . $idx . '][sort_order]', $model->sort_order, array('class' => 'fl-l ' . $radiobuttonClass, 'span' => 1, 'style' => 'margin-left: 10px', 'placeholder' => Yii::t('main', 'order num')));
if ($this->portfolioType == 1) {
echo '<div class="fl-l ml-10 mr-10 ' . $radiobuttonClass . '" style="margin-left: 10px; margin-right: 10px;">';
$istopID = 'FileForm_' . $uniqueId . '_' . $idx . '_is_top';
echo TbHtml::label(Yii::t('main', 'Main photo') . ' ', $istopID, array('class' => 'checkbox'));
echo CHtml::radioButton('FileForm[' . $uniqueId . '][is_top]', $model->is_top, array('id' => $istopID, 'value' => $idx, 'class' => "ml-10 mr-10 "));
echo '</div>';
}
?>
<button class="delete-uploaded btn ml-10 mr-10" type="button">
<i class="icon-trash"></i>
<span><?php
echo Yii::t('main', 'Delete');
?>
</span>
</button>
<br>
<?php
echo CHtml::link(TbHtml::small($photoUrl, array('style' => 'margin-left: 10px; margin-right: 10px; cursor: pointer !important;')), $photoUrl, array('title' => $model->title, 'target' => '_blank'));
?>
</div>
<span class="clearfix mb-10"></span>
</div>