Go to the source code of this file.
Namespaces | |
namespace | TYPO3 |
Classes | |
class | tslib_gmenu_foldout |
Functions | |
extProc_finish () | |
Putting things together, in particular the JavaScript code needed for the DHTML menu. | |
Variables | |
$GLOBALS['TSFE'] tmpl | menuclasses = 'gmenu_foldout' |
|
Putting things together, in particular the JavaScript code needed for the DHTML menu.
Definition at line 160 of file gmenu_foldout.php. Referenced by tslib_tmenu_layers::extProc_finish(), tslib_gmenu_layers::extProc_finish(), and tslib_tmenu::writeMenu(). 00160 { 00161 $bHeight = t3lib_div::intInRange(($this->mconf['bottomHeight']?$this->mconf['bottomHeight']:100) ,0,3000); 00162 $bottomContent = $this->mconf['bottomContent'] ? $GLOBALS['TSFE']->cObj->cObjGetSingle($this->mconf['bottomContent'],$this->mconf['bottomContent.'], '/GMENU_FOLDOUT/.bottomContent') : ''; 00163 $adjustTopHeights = intval($this->mconf['adjustItemsH']); 00164 $adjustSubHeights = intval($this->mconf['adjustSubItemsH']); 00165 $mWidth = t3lib_div::intInRange(($this->mconf['menuWidth']?$this->mconf['menuWidth']:170) ,0,3000); 00166 $mHeight = t3lib_div::intInRange(($this->mconf['menuHeight']?$this->mconf['menuHeight']:400) ,0,3000); 00167 $insertmColor= $this->mconf['menuBackColor'] ? 'BACKGROUND-COLOR: '.$this->mconf['menuBackColor'].'; layer-background-color: '.$this->mconf['menuBackColor'] : ''; 00168 $insertBottomColor= $this->mconf['bottomBackColor'] ? 'BACKGROUND-COLOR: '.$this->mconf['bottomBackColor'].'; layer-background-color: '.$this->mconf['bottomBackColor'] : ''; 00169 $menuOffset = t3lib_div::intExplode(',',$this->mconf['menuOffset'].','); 00170 $subOffset = t3lib_div::intExplode(',',$this->mconf['subMenuOffset'].','); 00171 00172 00173 $GLOBALS['TSFE']->additionalHeaderData['gmenu_layer_shared']='<script type="text/javascript" src="'.$GLOBALS['TSFE']->absRefPrefix.'media/scripts/jsfunc.layermenu.js"></script>'; 00174 $GLOBALS['TSFE']->additionalHeaderData['gmenu_foldout']='<script type="text/javascript" src="'.$GLOBALS['TSFE']->absRefPrefix.'media/scripts/jsfunc.foldout.js"></script>'; 00175 00176 $GLOBALS["TSFE"]->additionalHeaderData[].= ' 00177 <style type="text/css"> 00178 /*<![CDATA[*/ 00179 #divCont { 00180 Z-INDEX: 1; LEFT: '.$menuOffset[0].'px; VISIBILITY: hidden; WIDTH: '.$mWidth.'px; POSITION: absolute; TOP: '.$menuOffset[1].'px; HEIGHT: '.$mHeight.'px 00181 } 00182 .clTop { 00183 Z-INDEX: 1; WIDTH: '.$mWidth.'px; POSITION: absolute; '.$insertmColor.' 00184 } 00185 .clSub { 00186 Z-INDEX: 1; LEFT: '.$subOffset[0].'px; WIDTH: '.$mWidth.'px; POSITION: absolute; TOP: '.$subOffset[1].'px 00187 } 00188 .bottomLayer { 00189 Z-INDEX: 1; WIDTH: '.$mWidth.'px; CLIP: rect(0px '.$mWidth.'px '.$bHeight.'px 0px); POSITION: absolute; HEIGHT: '.$bHeight.'px; '.$insertBottomColor.' 00190 } 00191 /*]]>*/ 00192 </style> 00193 <script type="text/javascript"> 00194 /*<![CDATA[*/ 00195 <!-- 00196 GFV_foldNumber='.$this->WMmenuItems.'; //How many toplinks do you have? 00197 GFV_foldTimer='.t3lib_div::intInRange(($this->mconf['foldTimer']?$this->mconf['foldTimer']:40) ,1,3000).'; //The timeout in the animation, these are milliseconds. 00198 GFV_foldSpeed='.t3lib_div::intInRange($this->mconf['foldSpeed'],1,100).'; //How many steps in an animation? 00199 GFV_stayFolded='.($this->mconf['stayFolded'] ? 'true' : 'false').'; //Stay open when you click a new toplink? 00200 GFV_foldImg='.$this->WMimagesFlag.'; //Do you want images (if not set to 0 and remove the images from the body)? 00201 GFV_currentFold=null; 00202 GFV_foldStep1=null; 00203 GFV_foldStep2=null; 00204 GFV_step=0; 00205 GFV_active=false; //Don\'t change this one. 00206 GFV_adjustTopHeights = '.$adjustTopHeights.'; 00207 GFV_adjustSubHeights = '.$adjustSubHeights.'; 00208 if (bw.opera) { 00209 GFV_scrX= innerWidth; 00210 GFV_scrY= innerHeight; 00211 } 00212 00213 //This is the default image. 00214 //Remember to change the actual images in the page as well, but remember to keep the name of the image. 00215 var GFV_unImg=new Image(); 00216 GFV_unImg.src="'.$GLOBALS['TSFE']->absRefPrefix.$this->WMarrowNO[3].'"; 00217 00218 var GFV_exImg=new Image(); //Making an image variable... 00219 GFV_exImg.src="'.$GLOBALS['TSFE']->absRefPrefix.$this->WMarrowACT[3].'"; //...this is the source of the image that it changes to when the menu expands. 00220 00221 //--> 00222 /*]]>*/ 00223 </script> 00224 '; 00225 00226 $GLOBALS['TSFE']->JSeventFuncCalls['onmousemove']['GF_resizeForOpera()']= 'GF_resizeForOpera();'; 00227 $GLOBALS['TSFE']->JSeventFuncCalls['onload']['GMENU_FOLDOUT']= 'if(bw.bw) {GF_initFoldout();'.$this->WM_activeOnLoad.'}'; 00228 00229 $GLOBALS['TSFE']->divSection.= ' 00230 <div id="divCont"><!-- These are the contents of the foldoutmenu. --> 00231 '.$this->tmpl->wrap($this->WMresult,$this->mconf['wrap']).' 00232 <div class="bottomLayer" id="divTop'.($this->WMmenuItems+1).'"> 00233 <div class="clSub" id="divSub'.($this->WMmenuItems+1).'"><!-- This is a cover layer, it should always be the last one, and does NOT count in your number of toplinks! --><!-- So if this one is divTop7, the GFV_foldNumber variable should be set to 6 --><!-- This layer covers up the last sub, so if the last sub gets too big, increase this layers size in the stylesheet. --><!-- There are tables with width="100%" around the toplinks, to force NS4 to use the real width specified for the toplinks in the stylesheet. --> 00234 </div>'.$this->tmpl->wrap($bottomContent, $this->WMtableWrap).' 00235 </div> 00236 </div><!-- Here ends the foldoutmenu. --> 00237 '; 00238 return ''; 00239 }
|
|
Definition at line 242 of file gmenu_foldout.php. |