本文整理匯總了PHP中StringHelper::createShortEnd方法的典型用法代碼示例。如果您正苦於以下問題:PHP StringHelper::createShortEnd方法的具體用法?PHP StringHelper::createShortEnd怎麽用?PHP StringHelper::createShortEnd使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類StringHelper
的用法示例。
在下文中一共展示了StringHelper::createShortEnd方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
?>
" name="<?php
echo $model->url;
?>
" style="display: inline-block;">
<a href="#media">
<?php
echo CHtml::image(Yii::app()->baseUrl . "/upload/uploaded_" . $model->user_id . "/adminthumb/" . $model->url, "image", array('border' => 'medium'));
?>
</a>
<br/>
<div class="image-name" id="image-upload-name-<?php
echo $model->id;
?>
">
<?php
echo StringHelper::createShortEnd($model->title, 10);
?>
</div>
</li>
</div>
<div style="float: right; padding: 42px 18px 0 0;">
<a name="<?php
echo $model->url;
?>
" class="image-upload-set" value="<?php
echo $model->id;
?>
" href="#media" >Set Featured</a>
</div>
</div>
示例2: array
<div style="float:right; padding-right: 42px;">
<?php
$this->widget('CLinkPager', array('pages' => $pages, 'id' => 'link_pager'));
?>
</div>
<div style="clear: both;"></div>
<ul id="resultHolder" style="display: block;">
<?php
foreach ($list as $data) {
echo '
<li class="image" value="' . $data->id . '" name="' . $data->url . '" style="opacity: 0.67; display: inline-block; height: 111px; width: 121px;"><a href="#media">';
echo CHtml::image(Yii::app()->baseUrl . "/upload/uploaded_" . $user_id_image . "/adminthumb/" . $data->url, "image", array('border' => 'medium'));
echo '</a><br/><div class="image-name" id="image-name-' . $data->id . '">' . StringHelper::createShortEnd($data->title, 10) . '</div></li>';
}
?>
</ul>