本文整理汇总了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>