Feature #15889 » 2970.patch
typo3/sysext/cms/tslib/media/scripts/tmenu_layers.php (working copy) | ||
---|---|---|
$this->divLayers['iframe'] = '<iframe id="Iframe'.$this->WMid.'" scrolling="no" frameborder="0" style="position:absolute; top:0px; left:0px; background-color:transparent; layer-background-color:transparent; display:none;"></iframe>';
|
||
}
|
||
$GLOBALS['TSFE']->applicationData['GMENU_LAYERS']['WMid']=array_merge($this->WMtempStore,$GLOBALS['TSFE']->applicationData['GMENU_LAYERS']['WMid']);
|
||
$GLOBALS['TSFE']->additionalHeaderData['gmenu_layer_shared']='<script type="text/javascript" src="'.t3lib_extMgm::siteRelPath('cms').'tslib/media/scripts/jsfunc.layermenu.js"></script>';
|
||
$GLOBALS['TSFE']->JSCode.= '
|
||
$jsFuncLayerFile = t3lib_extMgm::siteRelPath('cms') . 'tslib/media/scripts/jsfunc.layermenu.js';
|
||
$pageRender = $GLOBALS['TSFE']->getPageRenderer();
|
||
$pageRender->addJsFile($jsFuncLayerFile, $type='text/javascript', $compress=TRUE, $forceOnTop=FALSE, $allWrap='');
|
||
$this->JScode .= '
|
||
GLV_curLayerWidth["'.$this->WMid.'"]=0;
|
||
GLV_curLayerHeight["'.$this->WMid.'"]=0;
|
||
GLV_curLayerX["'.$this->WMid.'"]=0;
|
||
... | ... | |
'.$this->WMrestoreVars;
|
||
if ($this->mconf['freezeMouseover']) {
|
||
$GLOBALS['TSFE']->JSCode.= '
|
||
$this->JScode .= '
|
||
// Alternative rollover/out functions for use with GMENU_LAYER
|
||
function GL'.$this->WMid.'_over(mitm_id) {
|
||
GL'.$this->WMid.'_out(""); // removes any old roll over state of an item. Needed for alwaysKeep and Opera browsers.
|
||
... | ... | |
}
|
||
';
|
||
}
|
||
$GLOBALS["TSFE"]->JSCode.= '
|
||
$this->JScode .= '
|
||
function GL'.$this->WMid.'_getMouse(e) {
|
||
if (GLV_menuOn["'.$this->WMid.'"]!=null && !GLV_dontFollowMouse["'.$this->WMid.'"]){
|
||
'.implode(LF,$GLV_menuOn).'
|
||
... | ... | |
$GLOBALS['TSFE']->JSeventFuncCalls['onmouseup'][$this->WMid]= 'GL_mouseUp(\''.$this->WMid.'\',e);';
|
||
$GLOBALS['TSFE']->divSection.=implode($this->divLayers,LF).LF;
|
||
|
||
if ($this->mconf['layer_menu_id']) {
|
||
$inline2TempFile = TSpagegen::inline2TempFile($this->JScode,'js');
|
||
$pageRender->addJsFile($inline2TempFile, $type='text/javascript', $compress=TRUE, $forceOnTop=FALSE, $allWrap='');
|
||
} else {
|
||
$GLOBALS['TSFE']->JSCode .= $this->JScode;
|
||
}
|
||
return parent::extProc_finish();
|
||
}
|
typo3/sysext/cms/tslib/media/scripts/gmenu_layers.php (working copy) | ||
---|---|---|
$this->divLayers['iframe'] = '<iframe id="Iframe'.$this->WMid.'" scrolling="no" frameborder="0" style="position:absolute; top:0px; left:0px; background-color:transparent; layer-background-color:transparent; display:none;"></iframe>';
|
||
}
|
||
$GLOBALS['TSFE']->applicationData['GMENU_LAYERS']['WMid']=array_merge($this->WMtempStore,$GLOBALS['TSFE']->applicationData['GMENU_LAYERS']['WMid']);
|
||
$GLOBALS['TSFE']->additionalHeaderData['gmenu_layer_shared']='<script type="text/javascript" src="'.t3lib_extMgm::siteRelPath('cms').'tslib/media/scripts/jsfunc.layermenu.js"></script>';
|
||
$GLOBALS['TSFE']->JSCode.= '
|
||
$jsFuncLayerFile = t3lib_extMgm::siteRelPath('cms') . 'tslib/media/scripts/jsfunc.layermenu.js';
|
||
$pageRender = $GLOBALS['TSFE']->getPageRenderer();
|
||
$pageRender->addJsFile($jsFuncLayerFile, $type='text/javascript', $compress=TRUE, $forceOnTop=FALSE, $allWrap='');
|
||
$this->JScode .= '
|
||
GLV_curLayerWidth["'.$this->WMid.'"]=0;
|
||
GLV_curLayerHeight["'.$this->WMid.'"]=0;
|
||
GLV_curLayerX["'.$this->WMid.'"]=0;
|
||
... | ... | |
'.$this->WMrestoreVars;
|
||
if ($this->mconf['freezeMouseover']) {
|
||
$GLOBALS['TSFE']->JSCode.= '
|
||
$this->JScode .= '
|
||
// Alternative rollover/out functions for use with GMENU_LAYER
|
||
function GL'.$this->WMid.'_over(mitm_id) {
|
||
GL'.$this->WMid.'_out(""); // removes any old roll over state of an item. Needed for alwaysKeep and Opera browsers.
|
||
... | ... | |
}
|
||
';
|
||
}
|
||
$GLOBALS["TSFE"]->JSCode.= '
|
||
$this->JScode .= '
|
||
function GL'.$this->WMid.'_getMouse(e) {
|
||
if (GLV_menuOn["'.$this->WMid.'"]!=null && !GLV_dontFollowMouse["'.$this->WMid.'"]){
|
||
'.implode(LF,$GLV_menuOn).'
|
||
... | ... | |
$GLOBALS['TSFE']->JSeventFuncCalls['onmouseup'][$this->WMid]= 'GL_mouseUp(\''.$this->WMid.'\',e);';
|
||
$GLOBALS['TSFE']->divSection.=implode($this->divLayers,LF).LF;
|
||
|
||
if ($this->mconf['layer_menu_id']) {
|
||
$inline2TempFile = TSpagegen::inline2TempFile($this->JScode, 'js');
|
||
$pageRender->addJsFile($inline2TempFile, $type='text/javascript', $compress=TRUE, $forceOnTop=FALSE, $allWrap='');
|
||
} else {
|
||
$GLOBALS['TSFE']->JSCode .= $this->JScode;
|
||
}
|
||
return parent::extProc_finish();
|
||
}
|
- « Previous
- 1
- 2
- 3
- 4
- Next »