本文整理汇总了PHP中Gdn_Theme::Breadcrumbs方法的典型用法代码示例。如果您正苦于以下问题:PHP Gdn_Theme::Breadcrumbs方法的具体用法?PHP Gdn_Theme::Breadcrumbs怎么用?PHP Gdn_Theme::Breadcrumbs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gdn_Theme
的用法示例。
在下文中一共展示了Gdn_Theme::Breadcrumbs方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smarty_function_breadcrumbs
/**
* Render a breadcrumb trail for the user based on the page they are on.
*/
function smarty_function_breadcrumbs($Params, &$Smarty)
{
$Breadcrumbs = $Smarty->Controller->Data('Breadcrumbs');
if (is_array($Breadcrumbs)) {
return Gdn_Theme::Breadcrumbs($Breadcrumbs);
}
}
示例2: smarty_function_breadcrumbs
/**
* Render a breadcrumb trail for the user based on the page they are on.
*/
function smarty_function_breadcrumbs($Params, &$Smarty)
{
$Breadcrumbs = $Smarty->Controller->Data('Breadcrumbs');
if (!is_array($Breadcrumbs)) {
$Breadcrumbs = array();
}
return Gdn_Theme::Breadcrumbs($Breadcrumbs, GetValue('homelink', $Params, TRUE));
}
示例3: smarty_function_breadcrumbs
/**
* Render a breadcrumb trail for the user based on the page they are on.
*/
function smarty_function_breadcrumbs($Params, &$Smarty)
{
$Breadcrumbs = $Smarty->Controller->Data('Breadcrumbs');
if (!is_array($Breadcrumbs)) {
$Breadcrumbs = array();
}
$Options = ArrayTranslate($Params, array('homeurl' => 'HomeUrl', 'hidelast' => 'HideLast'));
return Gdn_Theme::Breadcrumbs($Breadcrumbs, GetValue('homelink', $Params, TRUE), $Options);
}
示例4: userPhoto
<div class="Item-Body Media">
<?php
$Photo = userPhoto($Row, array('LinkClass' => 'Img'));
if ($Photo) {
echo $Photo;
}
?>
<div class="Media-Body">
<div class="Meta">
<?php
echo ' <span class="MItem-Author">' . sprintf(t('by %s'), userAnchor($Row)) . '</span>';
echo Bullet(' ');
echo ' <span clsss="MItem-DateInserted">' . Gdn_Format::date($Row['DateInserted'], 'html') . '</span> ';
if (isset($Row['Breadcrumbs'])) {
echo Bullet(' ');
echo ' <span class="MItem-Location">' . Gdn_Theme::Breadcrumbs($Row['Breadcrumbs'], false) . '</span> ';
}
if (isset($Row['Notes'])) {
echo ' <span class="Aside Debug">debug(' . $Row['Notes'] . ')</span>';
}
?>
</div>
<div class="Summary">
<?php
echo $Row['Summary'];
?>
</div>
<?php
$Count = val('Count', $Row);
// $i = 0;
// if (isset($Row['Children'])) {