本文整理汇总了PHP中model::url方法的典型用法代码示例。如果您正苦于以下问题:PHP model::url方法的具体用法?PHP model::url怎么用?PHP model::url使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类model
的用法示例。
在下文中一共展示了model::url方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
* Date: 2015.11.11.
* Time: 20:50
*/
?>
<div class="col-md-6 img-portfolio">
<a href="<?php
echo \model::url();
?>
" title="<?php
echo \model::property("label");
?>
">
<?php
echo \model::call("image", "contentimage", "img-responsive img-hover");
?>
</a>
<h3>
<a href="<?php
echo \model::url();
?>
" class="rr-portfolio-label" title="<?php
echo \model::property("label");
?>
"><?php
echo \model::property("label");
?>
</a>
</h3>
</div>
示例2:
<div class="mb-social glp-social">
<p>Share</p>
<a href="https://twitter.com/home?status=<?php
echo \runner::config("BASE") . \model::url();
?>
"><i class="fa fa-twitter"></i></a>
<a href="https://www.facebook.com/sharer/sharer.php?u=<?php
echo \runner::config("BASE") . \model::url();
?>
"><i class="fa fa-facebook"></i></a>
<a href="https://plus.google.com/share?url=<?php
echo \runner::config("BASE") . \model::url();
?>
"><i class="fa fa-google-plus"></i></a>
<a href="https://pinterest.com/pin/create/button/?url=<?php
echo \runner::config("BASE") . \model::url();
?>
&media=<?php
echo \runner::config("BASE") . $size_l;
?>
&description=<?php
echo \model::property("label");
?>
"><i class="fa fa-pinterest"></i></a>
</div>
</div>
</div>
</div> <!-- gl-preview -->
</li>
示例3:
<?php
$debug = 1;
?>
<li class="rr-submenu-model<?php
echo $runner->context["selected_class"];
?>
">
<a href="<?php
echo model::url();
?>
" class="rr-submenu-label"><?php
echo model::property("label");
?>
</a>
</li>
示例4: key
$type = key($current);
$type_id = $current[$type];
if ($model = \model::load(array("resource" => array($type, $type_id)))) {
$title = $model->label;
}
}
$bread_str = "<li><a href=\"" . \runner::config("BASE") . "\" title=\"Home\">Home</a></li>";
if ($breadcrumb = \bootstrap::get("breadcrumb")) {
$i = 0;
foreach ($breadcrumb as $type => $type_id) {
$i++;
$breadcrumb_model = \model::load(array("resource" => array($type, $type_id)));
if ($i >= count($breadcrumb)) {
$bread_str .= "<li class=\"active\">" . $breadcrumb_model->label . "</li>";
} else {
$bread_str .= "<li><a href=\"" . \model::url(false, $breadcrumb_model) . "\">" . $breadcrumb_model->label . "</a></li>";
}
}
}
?>
<!-- Page Heading/Breadcrumbs -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header"><?php
echo $title;
?>
<small><?php
echo $subtitle;
?>
</small>
</h1>