Skip to content

Commit

Permalink
Ticket #2265
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Jul 31, 2019
1 parent 7ad427d commit e29de33
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions modules/base/text/classes/BxBaseModTextTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,30 @@ function entryAuthor ($aData, $iProfileId = false, $sFuncAuthorDesc = 'getAuthor
return $this->parseHtmlByName($sTemplateName, $aVars);
}

public function entryBreadcrumb($aContentInfo, $aTmplVarsItems = array())
{
$CNF = &$this->getModule()->_oConfig->CNF;

$oPermalink = BxDolPermalinks::getInstance();

$aTmplVarsItems = array();
if(!empty($CNF['OBJECT_CATEGORY']) && !empty($CNF['FIELD_CATEGORY'])) {
$oCategory = BxDolCategory::getObjectInstance($CNF['OBJECT_CATEGORY']);

$aTmplVarsItems[] = array(
'url' => $oCategory->getCategoryUrl($aContentInfo[$CNF['FIELD_CATEGORY']]),
'title' => $oCategory->getCategoryTitle($aContentInfo[$CNF['FIELD_CATEGORY']])
);
}

$aTmplVarsItems[] = array(
'url' => $oPermalink->permalink('page.php?i=' . $CNF['URI_VIEW_ENTRY'] . '&id=' . $aContentInfo[$CNF['FIELD_ID']]),
'title' => bx_process_output($aContentInfo[$CNF['FIELD_TITLE']])
);

return parent::entryBreadcrumb($aContentInfo, $aTmplVarsItems);
}

function entryContext ($aData, $iProfileId = false, $sFuncContextDesc = 'getContextDesc', $sTemplateName = 'context.html', $sFuncContextAddon = 'getContextAddon')
{
$CNF = &$this->getModule()->_oConfig->CNF;
Expand Down

0 comments on commit e29de33

Please sign in to comment.