Feature #16728 ยป bug_4536_w.diff
typo3/sysext/cms/tslib/class.tslib_menu.php (Arbeitskopie) | ||
---|---|---|
$thePage = $this->sys_page->getPage($this->menuArr[$key]['pid']);
|
||
$LD = $this->tmpl->linkData($thePage,$mainTarget,'','',$overrideArray, $this->mconf['addParams'].$MP_params.$this->menuArr[$key]['_ADD_GETVARS'], $typeOverride);
|
||
} else {
|
||
$LD = $this->tmpl->linkData($this->menuArr[$key],$mainTarget,'','',$overrideArray, $this->mconf['addParams'].$MP_params.$this->menuArr[$key]['_ADD_GETVARS'], $typeOverride);
|
||
$LD = $this->tmpl->linkData($this->menuArr[$key],$mainTarget,'','',$overrideArray, $this->mconf['addParams'].$MP_params.$this->I['val']['additionalParams'].$this->menuArr[$key]['_ADD_GETVARS'], $typeOverride);
|
||
}
|
||
// Manipulation in case of access restricted pages:
|
||
... | ... | |
* @access private
|
||
*/
|
||
function setATagParts() {
|
||
$this->I['A1'] = '<a '.t3lib_div::implodeAttributes($this->I['linkHREF'],1).$this->I['val']['ATagParams'].$this->I['addATagParams'].$this->I['accessKey']['code'].'>';
|
||
$this->I['A1'] = '<a '.t3lib_div::implodeAttributes($this->I['linkHREF'],1).' '.$this->I['val']['ATagParams'].$this->I['accessKey']['code'].'>';
|
||
$this->I['A2'] = '</a>';
|
||
}
|
||
... | ... | |
$GLOBALS['TSFE']->register['count_HMENU_MENUOBJ']++;
|
||
$GLOBALS['TSFE']->register['count_MENUOBJ']++;
|
||
$this->I=array();
|
||
$this->WMcObj->start($this->menuArr[$key],'pages'); // Initialize the cObj with the page record of the menu item
|
||
$this->I = array();
|
||
$this->I['key'] = $key;
|
||
$this->I['INPfix']= $this->imgNameNotRandom?'':'_'.$this->INPfixMD5.'_'.$key;
|
||
$this->I['val'] = $val;
|
||
... | ... | |
$this->I['spacer'] = $this->menuArr[$key]['isSpacer'];
|
||
// Make link tag
|
||
$this->I['val']['ATagParams'] = $this->WMcObj->getATagParams($this->I['val'], 0);
|
||
$this->I['val']['ATagParams'] = $this->WMcObj->getATagParams($this->I['val']);
|
||
$this->I['val']['additionalParams'] = $this->WMcObj->stdWrap($this->I['val']['additionalParams'],$this->I['val']['additionalParams.']);
|
||
$this->I['linkHREF'] = $this->link($key,$this->I['val']['altTarget'],$this->mconf['forceTypeValue']);
|
||
// Title attribute of links:
|
||
... | ... | |
$gifFileName = $gifCreator->fileName('menu/');
|
||
}
|
||
$this->result[$resKey][$key] = $conf[$key];
|
||
// Generation of image file:
|
||
if (@file_exists($gifFileName)) { // File exists
|
||
$info = @getimagesize($gifFileName);
|
||
... | ... | |
$gifCreator->output($this->result[$resKey][$key]['output_file']);
|
||
$gifCreator->destroy();
|
||
}
|
||
$this->result[$resKey][$key]['output_file'] = t3lib_div::png_to_gif_by_imagemagick($this->result[$resKey][$key]['output_file']);
|
||
$this->result[$resKey][$key]['noLink']=$conf[$key]['noLink'];
|
||
$this->result[$resKey][$key]['altTarget']=$conf[$key]['altTarget'];
|
||
$this->result[$resKey][$key]['imgParams']=$conf[$key]['imgParams'];
|
||
$this->result[$resKey][$key]['ATagTitle'] = $conf[$key]['ATagTitle'];
|
||
$this->result[$resKey][$key]['ATagTitle.'] = $conf[$key]['ATagTitle.'];
|
||
$this->result[$resKey][$key]['ATagParams'] = $conf[$key]['ATagParams'];
|
||
$this->result[$resKey][$key]['wrap'] = $conf[$key]['wrap'];
|
||
$this->result[$resKey][$key]['allWrap'] = $conf[$key]['allWrap'];
|
||
$this->result[$resKey][$key]['allWrap.'] = $conf[$key]['allWrap.'];
|
||
$this->result[$resKey][$key]['subst_elementUid'] = $conf[$key]['subst_elementUid'];
|
||
$this->result[$resKey][$key]['allStdWrap.'] = $conf[$key]['allStdWrap.'];
|
||
$Hcounter+=$this->result[$resKey][$key]['output_h']; // counter is increased
|
||
$Wcounter+=$this->result[$resKey][$key]['output_w']; // counter is increased
|
||
if ($maxFlag){break;}
|
||
if ($maxFlag) break;
|
||
}
|
||
}
|
||
... | ... | |
if ($this->mconf['accessKey']) {
|
||
$this->I['accessKey'] = $this->accessKey($this->I['title']);
|
||
} else {
|
||
$this->I['accessKey']=Array();
|
||
$this->I['accessKey'] = array();
|
||
}
|
||
// Get link.
|
||
// Make link tag
|
||
$this->I['val']['ATagParams'] = $this->WMcObj->getATagParams($this->I['val']);
|
||
$this->I['val']['additionalParams'] = $this->WMcObj->stdWrap($this->I['val']['additionalParams'],$this->I['val']['additionalParams.']);
|
||
$this->I['linkHREF'] = $this->link($key,$this->I['val']['altTarget'],$this->mconf['forceTypeValue']);
|
||
// Title attribute of links:
|
||
$titleAttrValue = $this->WMcObj->stdWrap($this->I['val']['ATagTitle'],$this->I['val']['ATagTitle.']).$this->I['accessKey']['alt'];
|
||
if (strlen($titleAttrValue)) {
|
||
... | ... | |
*/
|
||
function writeMenu() {
|
||
if ($this->result) {
|
||
$res = $this->result;
|
||
$res = &$this->result;
|
||
$menuName = 'menu_'.t3lib_div::shortMD5($res['imgMap']); // shortMD5 260900
|
||
$result = '<img src="'.$GLOBALS['TSFE']->absRefPrefix.$res['output_file'].'" width="'.$res['output_w'].'" height="'.$res['output_h'].'" usemap="#'.$menuName.'" border="0" '.$this->mconf['params'];
|
||
if (!strstr($result,'alt="')) $result.=' alt="Menu Image Map"'; // Adding alt attribute if not set.
|