32 parent::__construct();
33 $this->bGroupInMore =
true;
34 $this->iElementsCntInLine = (int)
getParam(
'nav_menu_elements_on_line_' . (
isLogged() ?
'usr' :
'gst'));
36 $this->sSiteUrl = CH_WSB_URL_ROOT;
37 $this->iJumpedMenuID = 0;
38 $this->sCustomSubIconUrl =
'';
39 $this->sCustomSubHeader =
'';
40 $this->sCustomSubHeaderUrl =
'';
41 $this->sCustomActions =
'';
43 $this->sBreadCrumb =
'';
45 $this->bDebugMode =
false;
47 $this->sWidth =
$GLOBALS[
'oSysTemplate']->getPageWidth();
70 $this->sCustomActions =
'';
76 $aKeys[
'window_width'] = $this->oTemplConfig->popUpWindowWidth;
77 $aKeys[
'window_height'] = $this->oTemplConfig->popUpWindowHeight;
78 $aKeys[
'anonym_mode'] = $this->oTemplConfig->bAnonymousMode;
84 $this->sCustomActions =
$GLOBALS[
'oFunctions']->genObjectsActions($aKeys, $sActionsType, $bSubMenuMode,
'actions_submenu',
'action_submenu');
92 if (is_array($aCustomActions) && count($aCustomActions) > 0) {
94 foreach ($aCustomActions
as $iID => $aCustomAction) {
96 $sTitle = $aCustomAction[
'title'];
97 $sLink = $aCustomAction[
'url'];
98 $sIcon = $aCustomAction[
'icon'];
101 <div
class=
"button_wrapper" style=
"width:48%;margin-right:1%;margin-left:1%;" onclick=
"window.open ('{$sLink}','_self');">
102 <img alt=
"{$sTitle}" src=
"{$sIcon}" style=
"float:left;" />
103 <input
class=
"form_input_submit" type=
"submit" value=
"{$sTitle}" class=
"menuLink" />
104 <div
class=
"button_wrapper_close"></div>
109 $this->sCustomActions = $sActions;
121 $GLOBALS[
'ch_profiler']->beginMenu(
'Main Menu');
130 if(!defined(
'CH_INDEX_PAGE') && !defined(
'CH_JOIN_PAGE'))
133 $sResult = $oSysTemplate->parseHtmlByName(
'navigation_menu.html', array(
134 'main_menu' => $sMainMenu,
135 'sub_menu' => $sSubMenu
139 $GLOBALS[
'ch_profiler']->endMenu(
'Main Menu');
149 $bWrap = isset($aParams[
'wrap']) ? (bool)$aParams[
'wrap'] :
true;
150 $bGroupInMore = isset($aParams[
'group_in_more']) ? (bool)$aParams[
'group_in_more'] : $this->bGroupInMore;
153 foreach( $this->aTopMenu
as $iItemID => $aItem ) {
154 if( $aItem[
'Type'] !=
'top' )
158 if ($aItem[
'Caption'] ==
"{profileNick}" && $this->aMenuInfo[
'profileNick']==
'')
continue;
160 $bActive = ( $iItemID == $this->aMenuInfo[
'currentTop'] );
162 if ($bActive &&
$bGroupInMore && $iCounter >= $this->iElementsCntInLine) {
163 $this->iJumpedMenuID = $iItemID;
171 foreach( $this->aTopMenu
as $iItemID => $aItem ) {
172 if( $aItem[
'Type'] !=
'top' )
179 list( $aItem[
'Link'] ) = explode(
'|', $aItem[
'Link'] );
181 $aItem[
'Caption'] = $this->
replaceMetas( $aItem[
'Caption'] );
183 $aItem[
'Onclick'] = $this->
replaceMetas( $aItem[
'Onclick'] );
185 $bActive = ( $iItemID == $this->aMenuInfo[
'currentTop'] );
186 $bActive = ($aItem[
'Link']==
'index.php' && $this->aMenuInfo[
'currentTop']==0) ?
true : $bActive;
188 if ($this->bDebugMode)
189 print $iItemID . $aItem[
'Caption'] .
'__' . $aItem[
'Link'] .
'__' . $bActive .
'<br />';
192 $sImage = ($aItem[
'Icon'] !=
'') ? $aItem[
'Icon'] : $aItem[
'Picture'];
195 if ($this->iJumpedMenuID > 0 &&
$bGroupInMore && $iCounter == $this->iElementsCntInLine) {
197 list( $aItemJmp[
'Link'] ) = explode(
'|', $aItemJmp[
'Link'] );
198 $aItemJmp[
'Link'] = $this->
replaceMetas( $aItemJmp[
'Link'] );
199 $aItemJmp[
'Onclick'] = $this->
replaceMetas( $aItemJmp[
'Onclick'] );
201 $bJumpActive = ( $this->iJumpedMenuID == $this->aMenuInfo[
'currentTop'] );
202 $bJumpActive = ($aItemJmp[
'Link']==
'index.php' && $this->aMenuInfo[
'currentTop']==0) ?
true : $bJumpActive;
204 $sCode .= $this->
genTopItem(
_t($aItemJmp[
'Caption']), $aItemJmp[
'Link'], $aItemJmp[
'Target'], $aItemJmp[
'Onclick'], $bJumpActive, $this->iJumpedMenuID, $isBold);
206 if ($this->bDebugMode)
207 print
'<br />pre_pop: ' . $this->iJumpedMenuID . $aItemJmp[
'Caption'] .
'__' . $aItemJmp[
'Link'] .
'__' . $bJumpActive .
'<br /><br />';
210 if (
$bGroupInMore && $iCounter == $this->iElementsCntInLine) {
213 if ($this->bDebugMode)
214 print
'<br />more begin here ' .
'<br /><br />';
217 if($this->iJumpedMenuID == 0 || $iItemID != $this->iJumpedMenuID) {
219 $sCode .= $this->
genTopItemMore(
_t($aItem[
'Caption']), $aItem[
'Link'], $aItem[
'Target'], $aItem[
'Onclick'], $bActive, $iItemID);
221 $sCode .= $this->
genTopItem(
_t($aItem[
'Caption']), $aItem[
'Link'], $aItem[
'Target'], $aItem[
'Onclick'], $bActive, $iItemID, $isBold, $sImage);
233 return $GLOBALS[
'oSysTemplate']->parseHtmlByName(
'navigation_menu_main.html', array(
243 foreach( $this->aTopMenu
as $iTItemID => $aTItem ) {
244 if( $aTItem[
'Type'] !=
'top' && $aTItem[
'Type'] !=
'system')
250 if( $this->aMenuInfo[
'currentTop'] == $iTItemID && $this->
checkShowCurSub() )
254 if ($aTItem[
'Caption']==
'_Home' && $this->aMenuInfo[
'currentTop']==0)
262 if ($sDisplay ==
'block') {
263 $sPicture = $aTItem[
'Picture'];
270 return $GLOBALS[
'oSysTemplate']->parseHtmlByName(
'navigation_menu_sub.html', array(
271 'sub_menu' => $this->sCode
281 $iTItemID = $this->aMenuInfo[
'currentTop'];
285 foreach( $this->aTopMenu
as $iItemID => $aItem ) {
286 if( $aItem[
'Type'] !=
'custom' )
288 if( $aItem[
'Parent'] != $iTItemID )
294 list( $aItem[
'Link'] ) = explode(
'|', $aItem[
'Link'] );
297 $aItem[
'Onclick'] = $this->
replaceMetas( $aItem[
'Onclick'] );
298 $sSubItems .= (!$bFirst ?
'<div class="sys-bullet"></div>' :
'') . $this->
genSubItem(
_t( $aItem[
'Caption'] ), $aItem[
'Link'], $aItem[
'Target'], $aItem[
'Onclick'], $iItemID == $this->aMenuInfo[
'currentCustom']);
308 $sOnclick = $sOnclick ?
' onclick="' . $sOnclick .
'"' :
'';
309 $sTarget = $sTarget ?
' target="' . $sTarget .
'"' :
'';
311 if(strpos( $sLink,
'http://' ) ===
false && strpos( $sLink,
'https://' ) ===
false && !strlen($sOnclick))
312 $sLink = $this->sSiteUrl . $sLink;
314 return '<div class="' . ($bActive ?
'act' :
'pas') .
'"><a class="sublinks" href="' . $sLink .
'"' . $sTarget . $sOnclick .
'>' .
$sCaption .
'</a></div>';
320 function genTopItem($sText, $sLink, $sTarget, $sOnclick, $bActive, $iItemID, $isBold =
false, $sPicture =
'')
322 $sLink = (strpos($sLink,
'http://') ===
false && strpos($sLink,
'https://') ===
false && strpos($sLink,
'javascript') ===
false && !strlen($sOnclick)) ? $this->sSiteUrl . $sLink : $sLink;
324 return $GLOBALS[
'oSysTemplate']->parseHtmlByName(
'navigation_menu_mm_item.html', array(
326 'ch_if:show_active' => array(
327 'condition' => $bActive,
330 'ch_if:show_onclick' => array(
331 'condition' => !$bActive && $sOnclick,
333 'onclick' => $sOnclick
336 'ch_if:show_target' => array(
337 'condition' => !$bActive && $sTarget,
342 'ch_if:show_style' => array(
343 'condition' => $isBold,
345 'style' =>
'font-weight:bold;'
348 'ch_if:show_picture' => array(
349 'condition' => $sText ==
'' && $isBold && $sPicture !=
'',
365 return $GLOBALS[
'oSysTemplate']->parseHtmlByName(
'navigation_menu_mm_subitems.html', array(
366 'content' => $sSubMenus,
375 return $this->aMenuInfo[
'currentTop'];
383 $sLoginSection = $sSubElementCaption = $sProfStatusMessage = $sProfStatusMessageWhen = $sProfileActions =
'';
384 $sCaptionWL = $sProfStatusMessageEl = $sMiddleImg =
'';
386 if ($this->aMenuInfo[
'currentCustom'] == 0 && $iFirstID > 0) $this->aMenuInfo[
'currentCustom'] = $iFirstID;
388 if ($this->sCustomSubHeader ==
'' && $this->aMenuInfo[
'currentCustom'] > 0) {
390 $sSubElementCaption =
_t($this->aTopMenu[$this->aMenuInfo[
'currentCustom']][
'Caption']);
392 $sCustomPic = $this->aTopMenu[$this->aMenuInfo[
'currentCustom']][
'Picture'];
393 $sPicture = ($sCustomPic !=
'') ? $sCustomPic : $sPicture;
395 $sMiddleImg =
'<img src="'.$sSubCapIcon.
'" />';
396 $sSubElementCaption = <<<EOF
397 <font style=
"font-weight:normal;">{$sSubElementCaption}</font>
405 if ($this->sCustomSubHeader ==
'' && !
empty($this->aMenuInfo[
'profileID'])) {
411 $sRealWhen = ($aProfInfo[
'UserStatusMessageWhen'] != 0) ? $aProfInfo[
'UserStatusMessageWhen'] :
time();
414 if($this->aMenuInfo[
'memberID'] == $this->aMenuInfo[
'profileID']) {
416 'ch_if:show_script' => array(
420 'ch_if:show_when' => array(
421 'condition' =>
false && $sProfStatusMessage !=
'',
423 'when' => $sProfStatusMessageWhen
426 'ch_if:show_update' => array(
430 'message' => $sProfStatusMessage !=
'' ? $sProfStatusMessage :
_t(
'_sys_status_default')
432 $sProfStatusMessage =
$GLOBALS[
'oSysTemplate']->parseHtmlByName(
'navigation_menu_status.html', $aTmplVars);
433 }
else if ($sProfStatusMessage !=
'') {
435 'ch_if:show_script' => array(
436 'condition' =>
false,
439 'ch_if:show_when' => array(
440 'condition' =>
false && $sProfStatusMessage !=
'',
442 'when' => $sProfStatusMessageWhen
445 'ch_if:show_update' => array(
446 'condition' =>
false,
449 'message' => $sProfStatusMessage
451 $sProfStatusMessage =
$GLOBALS[
'oSysTemplate']->parseHtmlByName(
'navigation_menu_status.html', $aTmplVars);
452 $sProfileActions = $this->
getProfileActions($aProfInfo, $this->aMenuInfo[
'memberID']);
457 if (!
empty($sPicture) &&
false === strpos($sPicture,
'.'))
458 $sPictureEl =
'<i class="img_submenu sys-icon ' . $sPicture .
'"></i>';
459 elseif (!
empty($sPicture))
460 $sPictureEl =
'<img class="img_submenu" src="' .
getTemplateIcon($sPicture) .
'" alt="" />';
462 $sPictureEl = $this->
genSubHeaderIcon($this->aTopMenu[$iFirstID], $sPictureEl);
465 if ($this->sCustomSubIconUrl &&
false === strpos($this->sCustomSubIconUrl,
'.'))
466 $sPictureEl =
'<i class="img_submenu sys-icon ' . $this->sCustomSubIconUrl .
'"></i>';
467 elseif ($this->sCustomSubIconUrl)
468 $sPictureEl =
'<img class="img_submenu" src="' . $this->sCustomSubIconUrl.
' " alt="" />';
471 $sCaptionWL = $this->sCustomSubHeader !=
'' ? $this->sCustomSubHeader : $this->
genSubHeaderCaption($this->aTopMenu[$iFirstID],
$sCaption);
473 if ($this->sCustomActions !=
'')
479 $aTemplateKeys = array (
480 'submenu_id' => $iTItemID,
481 'display_value' => $sDisplay,
482 'picture' => $sPictureEl,
483 'ch_if:show_caption' => array(
484 'condition' => !
empty($sCaptionWL),
486 'caption' => $sCaptionWL,
489 'ch_if:show_status' => array(
490 'condition' => $sProfStatusMessage !=
'',
492 'status' => $sProfStatusMessage
495 'ch_if:show_submenu' => array(
496 'condition' => $sProfStatusMessage ==
'' && $sSubmenu !=
'',
498 'submenu' => $sSubmenu
501 'ch_if:show_empty' => array(
502 'condition' => $sProfStatusMessage ==
'' && $sSubmenu ==
'',
507 'ch_if:show_submenu_bottom' => array(
508 'condition' => $sProfStatusMessage !=
'' && $sSubmenu !=
'',
510 'submenu' => $sSubmenu
513 'login_section' => $sLoginSection,
514 'profile_actions' => $sProfileActions,
515 'injection_title_zone' => $sProfileActions
517 $this->sCode .=
$GLOBALS[
'oSysTemplate']->parseHtmlByName(
'navigation_menu_sub_header.html', $aTemplateKeys);
522 $aBreadcrumb = array();
525 if($sSubElementCaption !=
'')
526 $aBreadcrumb[] = $sSubElementCaption;
533 return $GLOBALS[
'oSysTemplate']->parseHtmlByName(
'login_join.html', array());
554 if (!$sSubMainLink && !
empty($aItem[
'Link'])) {
555 list($sSubMainLinkFirst) = explode(
'|', $aItem[
'Link']);
556 $sSubMainLink = $this->
replaceMetas($sSubMainLinkFirst);
559 if (
empty($sSubMainLink))
560 $sSubMainLink = $this->sSiteUrl . $this->aTopMenu[$this->aMenuInfo[
'currentTop']][
'Link'];
563 $sSubMainOnclick = $this->
replaceMetas($aItem[
'Onclick']);
564 return $GLOBALS[
'oSysTemplate']->parseHtmlByName($sTemplateFile, array(
565 'href' => $sSubMainLink,
566 'ch_if:show_onclick' => array(
567 'condition' => !
empty($sSubMainOnclick),
569 'onclick' => $sSubMainOnclick
578 $iViewedMemberID = (int)
$p_arr[
'ID'];
580 if( (!$iMemberID
or !$iViewedMemberID)
or ($iMemberID == $iViewedMemberID) )
585 $p_arr[
'window_width'] = $this->oTemplConfig->popUpWindowWidth;
586 $p_arr[
'window_height'] = $this->oTemplConfig->popUpWindowHeight;
587 $p_arr[
'anonym_mode'] = $this->oTemplConfig->bAnonymousMode;
589 $p_arr[
'member_id'] = $iMemberID;
592 $GLOBALS[
'oFunctions']->iDhtmlPopupMenu = 1;
593 return $GLOBALS[
'oFunctions']->genObjectsActions(
$p_arr,
'Profile',
true);
604 foreach( $aTTopMenu
as $iTItemID => $aTItem ) {
609 if ($iItemID == $aTItem[
'Parent']) {
611 list( $aTItem[
'Link'] ) = explode(
'|', $aTItem[
'Link'] );
613 $aTItem[
'Link'] = str_replace(
"{memberID}", isset(
$aMenuInfo[
'memberID']) ?
$aMenuInfo[
'memberID'] :
'', $aTItem[
'Link'] );
614 $aTItem[
'Link'] = str_replace(
"{memberNick}", isset(
$aMenuInfo[
'memberNick']) ?
$aMenuInfo[
'memberNick'] :
'', $aTItem[
'Link'] );
615 $aTItem[
'Link'] = str_replace(
"{memberLink}", isset(
$aMenuInfo[
'memberLink']) ?
$aMenuInfo[
'memberLink'] :
'', $aTItem[
'Link'] );
617 $aTItem[
'Link'] = str_replace(
"{profileID}", isset(
$aMenuInfo[
'profileID']) ?
$aMenuInfo[
'profileID'] :
'', $aTItem[
'Link'] );
618 $aTItem[
'Onclick'] = str_replace(
"{profileID}", isset(
$aMenuInfo[
'profileID']) ?
$aMenuInfo[
'profileID'] :
'', $aTItem[
'Onclick'] );
620 $aTItem[
'Link'] = str_replace(
"{profileNick}", isset(
$aMenuInfo[
'profileNick']) ?
$aMenuInfo[
'profileNick'] :
'', $aTItem[
'Link'] );
621 $aTItem[
'Onclick'] = str_replace(
"{profileNick}", isset(
$aMenuInfo[
'profileNick']) ?
$aMenuInfo[
'profileNick'] :
'', $aTItem[
'Onclick'] );
623 $aTItem[
'Link'] = str_replace(
"{profileLink}", isset(
$aMenuInfo[
'profileLink']) ?
$aMenuInfo[
'profileLink'] :
'', $aTItem[
'Link'] );
625 $aTItem[
'Onclick'] = str_replace(
"{memberID}", isset(
$aMenuInfo[
'memberID']) ?
$aMenuInfo[
'memberID'] :
'', $aTItem[
'Onclick'] );
626 $aTItem[
'Onclick'] = str_replace(
"{memberNick}", isset(
$aMenuInfo[
'memberNick']) ?
$aMenuInfo[
'memberNick'] :
'', $aTItem[
'Onclick'] );
629 $sElement = $this->
getCustomMenuItem(
_t( $aTItem[
'Caption'] ), $aTItem[
'Link'], $aTItem[
'Target'], $aTItem[
'Onclick'], ( $iTItemID ==
$aMenuInfo[
'currentCustom'] ) );
640 $sIActiveClass = ($bActive) ?
' active' :
'';
641 $sITarget = (strlen($sTarget)) ? $sTarget :
'_self';
642 $sILink = (strpos($sLink,
'http://') ===
false && strpos($sLink,
'https://') ===
false && !strlen($sOnclick)) ? $this->sSiteUrl . $sLink : $sLink;
643 $sIOnclick = (strlen($sOnclick)) ?
'onclick="'.$sOnclick.
'"' :
'';
647 <
a href=
"{$sILink}" target=
"{$sITarget}" {$sIOnclick}
class=
"button more_ntop_element{$sIActiveClass}">{$sText}</
a>
656 $sMoreMainCaption =
_t(
'_sys_top_menu_more');
660 <
a href=
"javascript: void(0);" onclick=
"void(0);" class=
"top_link">
661 <span
class=
"down ch-def-padding-sec-leftright">{$sMoreMainCaption}</span>
662 <!--[
if gte IE 7]><!--></
a><!--<![
endif]-->
663 <!--[
if lte IE 6]><
table id=
"mmm"><tr><td><![
endif]-->
664 <div style=
"position:relative;display:block;">
671 if(strpos($sLink,
'http://') ===
false && strpos($sLink,
'https://') ===
false && !strlen($sOnclick))
672 $sLink = $this->sSiteUrl . $sLink;
674 $sSubMenus = $this->getAllSubMenus($iItemID);
676 return $GLOBALS[
'oSysTemplate']->parseHtmlByName(
'navigation_menu_mm_more_subitem.html', array(
677 'wrapper_class' => $bActive ?
'active' :
'',
678 'item_class' => $bActive ?
' active' :
'',
680 'ch_if:show_onclick' => array(
681 'condition' => strlen($sOnclick) > 0,
683 'onclick' => $sOnclick
686 'ch_if:show_target' => array(
687 'condition' => strlen($sTarget) > 0,
693 'ch_if:show_submenus' => array(
694 'condition' => !
empty($sSubMenus),
696 'sub_menus' => $sSubMenus
705 <li
class=
"li_last_round"> </li>
708 <div
class=
"clear_both"></div>
709 <!--[
if lte IE 6]></td></tr></
table></
a><![
endif]-->
722 $sRootItem =
'<a href="' . $this->sSiteUrl .
'">' .
_t(
'_Home') .
'</a>';
724 if (!
empty($this->aCustomBreadcrumbs)) {
726 foreach ($this->aCustomBreadcrumbs
as $sTitle => $sLink)
728 $a[] = $sLink ?
'<a href="' . $sLink .
'">' .
$sTitle .
'</a>' :
$sTitle;
729 $aPath = array_merge(array($sRootItem), $a);
730 } elseif(!is_array($aPath) ||
empty($aPath)) {
731 $aPath = array($sRootItem);
733 $aPath = array_merge(array($sRootItem), $aPath);
737 if( $this -> aMenuInfo[
'currentTop'] != -1 && count($aPath) == 1) {
738 $aPath[] =
_t($this -> aTopMenu[ $this -> aMenuInfo[
'currentTop'] ][
'Caption']);
742 $sDivider =
'<div class="bc_divider ch-def-margin-sec-left">›</div>';
743 $aPathLinks = array();
744 foreach($aPath
as $sLink)
745 $aPathLinks[] =
'<div class="bc_unit ch-def-margin-sec-left">' . $sLink .
'</div>';
746 $sPathLinks = implode($sDivider, $aPathLinks);
750 return '<div class="sys_bc ch-def-margin-leftright">' . $sPathLinks .
'<div class="bc_addons">' . $sAddons .
'</div></div>';
758 $sOnResult = $bShowResult ?
"$('#ajaxy_popup_result_div_" .
$iId .
"').html(sData);" :
"document.location.href=document.location.href;";
759 return "$.post('list_pop.php?action=friend', {ID: " .
$iId .
"}, function(sData){" . $sOnResult .
"}); return false;";
766 $sOnResult = $bShowResult ?
"$('#ajaxy_popup_result_div_" .
$iId .
"').html(sData);" :
"document.location.href=document.location.href;";
767 return "$.post('list_pop.php?action=friend', {ID: " .
$iId .
"}, function(sData){" . $sOnResult .
"}); return false;";
774 $sOnResult = $bShowResult ?
"$('#ajaxy_popup_result_div_" .
$iId .
"').html(sData);" :
"document.location.href=document.location.href;";
775 return "$.post('list_pop.php?action=remove_friend', {ID: " .
$iId .
"}, function(sData){" . $sOnResult .
"}); return false;";
783 $sOnResult = $bShowResult ?
"$('#ajaxy_popup_result_div_" .
$iId .
"').html(sData);" :
"document.location.href=document.location.href;";
784 return "$.post('list_pop.php?action=hot', {ID: " .
$iId .
"}, function(sData){" . $sOnResult .
"}); return false;";
791 $sOnResult = $bShowResult ?
"$('#ajaxy_popup_result_div_" .
$iId .
"').html(sData);" :
"document.location.href=document.location.href;";
792 return "$.post('list_pop.php?action=remove_hot', {ID: " .
$iId .
"}, function(sData){" . $sOnResult .
"}); return false;";
800 return CH_WSB_URL_ROOT .
'mail.php?mode=compose&recipient_id=' .
$iId;
814 return CH_WSB_URL_ROOT .
'member.php';
818 if(
empty($this->aMenuInfo))
819 $this->getMenuInfo();
822 $iParentId = $this->aMenuInfo[
'currentTop'];
824 $aSubItems = array();
825 foreach($this->aTopMenu
as $iItemID => $aItem) {
826 if($aItem[
'Type'] !=
'custom' || $aItem[
'Parent'] != $iParentId || !$this->checkToShow($aItem))
829 list($aItem[
'Link']) = explode(
'|', $aItem[
'Link']);
831 $aItem[
'Link'] = $this->replaceMetas($aItem[
'Link']);
832 $aItem[
'Onclick'] = $this->replaceMetas($aItem[
'Onclick']);
833 $aItem[
'Active'] = $iItemID == $this->aMenuInfo[
'currentCustom'];
835 if(strpos($aItem[
'Link'],
'http://') ===
false && strpos($aItem[
'Link'],
'https://') ===
false && !strlen($aItem[
'Onclick']))
836 $aItem[
'Link'] = $this->sSiteUrl . $aItem[
'Link'];
838 $aSubItems[] = $aItem;