本文整理汇总了PHP中Listing::FormatNameListingIndexGrid方法的典型用法代码示例。如果您正苦于以下问题:PHP Listing::FormatNameListingIndexGrid方法的具体用法?PHP Listing::FormatNameListingIndexGrid怎么用?PHP Listing::FormatNameListingIndexGrid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Listing
的用法示例。
在下文中一共展示了Listing::FormatNameListingIndexGrid方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
/* @var $model Listing */
$f = Yii::app()->format;
$urlReturn = "http://" . $_SERVER['HTTP_HOST'] . Yii::app()->request->requestUri;
$link = Yii::app()->createAbsoluteUrl('site/login', array('returnUrl' => $urlReturn));
$propUrl = $this->createAbsoluteUrl('site/listingdetail', array('slug' => $model->slug));
$propName = StringHelper::limitStringLength(Listing::FormatNameListingIndexGrid($model, array('not_type' => 1)), 22);
$propAddr = StringHelper::limitStringLength(strip_tags(Listing::FormatShowBuildingOrStreet($model)), 30);
$sp = $model->rUser;
$linkAgent = $this->createUrl('/agent/view', array('slug' => $model->rUser->slug));
// shortlist js
$uId = (int) Yii::app()->user->id;
$rId = (int) Yii::app()->user->role_id;
$roleMember = ROLE_REGISTER_MEMBER;
$url = Yii::app()->createAbsoluteUrl('site/addShortlist');
Yii::app()->clientScript->registerScript('shortlist-add-button', "setupShortList({ \n\tuserId: {$uId},\n\troleId: {$rId},\n\troleMember: {$roleMember},\n\taddShortListUrl: '{$url}'\n});");
// add this button
Yii::app()->clientScript->registerScriptFile("//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-56133df5326f44f0", CClientScript::POS_END, array('async' => 'async'));
?>
<div class="col-sm-6 col-md-4">
<div class="property-item">
<div class="image">
<div class="img-rad">
<?php
echo InputHelper::holderImage($model->getDefaultImageUrl(266, 161), 266, 161);
?>
</div>
<div class="price">
<span class="head">
<span class="tail">
示例2: echo
echo $link;
?>
" href="javascript:void(0);" data-listing-id="<?php
echo $data->id;
?>
" class="ico-star shortlist">Shortlist</a></p>
<?php
}
?>
<p style="margin-bottom: 10px"> <i class="fa fa-eye fa-lg"></i>
<?php
echo (int) $data->view_count;
?>
views</p>
<div class="addthis_native_toolbox" data-title="<?php
echo Listing::FormatNameListingIndexGrid($data, array('not_type' => 1));
?>
"
accesskey=""data-url="<?php
echo $this->createAbsoluteUrl('site/listingdetail', array('slug' => $data->slug));
?>
"></div>
</div>
<div class="description">
<h3>
<a href="<?php
echo Yii::app()->createAbsoluteUrl('site/listingdetail', array('slug' => $data->slug));
?>
">
<?php