本文整理匯總了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'])) {