本文整理匯總了PHP中zmf::url方法的典型用法代碼示例。如果您正苦於以下問題:PHP zmf::url方法的具體用法?PHP zmf::url怎麽用?PHP zmf::url使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類zmf
的用法示例。
在下文中一共展示了zmf::url方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
<div class="area-holder">
<span class="area-list-title">標簽</span>
<ul class="area-list">
<li><?php
echo zmf::url('全部', 'posts/index', array('areaid' => $areaId, 'colid' => $this->selectColid, 'order' => $this->pOrder));
?>
</li>
<?php
foreach ($tags as $k => $one) {
?>
<li <?php
echo $k >= 20 ? 'class="more-items hidden"' : '';
?>
><?php
echo $one['id'] == $tagid ? $one['title'] : zmf::url($one['title'], 'posts/index', array('areaid' => $areaId, 'colid' => $this->selectColid, 'tagid' => $one['id'], 'order' => $this->pOrder));
?>
</li>
<?php
}
?>
<?php
if ($k >= 20) {
?>
<li class="color-grey"><?php
echo CHtml::link('<span class="icon-double-angle-down"></span> 顯示全部', 'javascript:;', array('onclick' => 'showMore(this)'));
?>
</li>
<?php
}
?>
示例2: array
<div class="col-xs-4 col-sm-4 text-center">
<a href="<?php
echo Yii::app()->createUrl('index/media', array('id' => $this->uid));
?>
" title="<?php
echo $this->userInfo['hits'];
?>
次訪問">
<p style="font-size: 48px;"><span class="icon-bar-chart"></span></p>
<h2><?php
echo $this->userInfo['hits'];
?>
</h2>
</a>
</div>
<div class="col-xs-4 col-sm-4 text-center" title="152次貢獻">
<p style="font-size: 48px;"><span class="icon-group"></span></p>
<h2>152</h2>
</div>
</div>
<hr/>
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">我的鏈接</span>
<input type="text" class="form-control" placeholder="分享鏈接,增加貢獻" value="<?php
echo zmf::config('domain') . zmf::url('', 'index/media', array('id' => $this->uid, 'zmf' => zmf::jiaMi($this->uid)), 'l');
?>
">
<span class="input-group-btn">
<button class="btn btn-default" type="button">分享給好友</button>
</span>
</div><!-- /input-group -->
示例3: elseif
</li>
<?php
}
?>
<?php
}
?>
</ul>
</li>
<li class="dropdown pull-right"><a href="#" id="order-poi-type" class="dropdown-toggle" data-toggle="dropdown" ><?php
if ($this->pOrder == 1) {
echo '時間軸';
} elseif ($this->pOrder == 2) {
echo '關注度';
} else {
echo '排序';
}
?>
<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><?php
echo zmf::url('最近更新', 'posts/index', array('areaid' => $areaId, 'colid' => $colid, 'tagid' => $tagid, 'order' => 1));
?>
</li>
<li><?php
echo zmf::url('最多評論', 'posts/index', array('areaid' => $areaId, 'colid' => $colid, 'tagid' => $tagid, 'order' => 2));
?>
</li>
</ul>
</li>
</ul>