76 $GLOBALS[
'LANG']->includeLLFile(
'EXT:lang/locallang_misc.xlf');
87 protected function init() {
93 $this->MCONF[
'name'] =
'xMOD_alt_clickmenu.php';
95 $inputBP = explode(
'|', $this->backPath);
97 $this->backPath = $inputBP[0];
99 $this->backPath = $GLOBALS[
'BACK_PATH'];
102 $this->extClassArray = $GLOBALS[
'TBE_MODULES_EXT'][
'xMOD_alt_clickmenu'][
'extendCMclasses'];
105 if (is_array($this->extClassArray)) {
106 foreach ($this->extClassArray as $extClassConf) {
107 if (isset($extClassConf[
'path'])) {
109 '$GLOBALS[\'TBE_MODULES_EXT\'][\'xMOD_alt_clickmenu\'][\'extendCMclasses\'][\'path\'] option is not needed anymore. The autoloader takes care of loading the class.' 111 $this->include_once[] = $extClassConf[
'path'];
118 $this->doc->backPath = $GLOBALS[
'BACK_PATH'];
126 $listFrameDoc = $this->reloadListFrame != 2 ?
'top.content.list_frame' :
'top.content';
127 $this->doc->JScode .= $this->doc->wrapScriptTags(
' 128 var date = new Date(); 129 var mo_timeout = Math.floor(date.getTime()/1000); 133 routImg = "t3-icon-empty"; 137 document.getElementById(name).className = roImg; 140 function mout(c) { // 142 document[name].src = routImg; 145 function updateTime() { // 147 mo_timeout = Math.floor(date.getTime()/1000); 149 function timeout_func() { // 151 if (Math.floor(date.getTime()/1000)-mo_timeout > ' . $secs .
') { 155 window.setTimeout("timeout_func();",1*1000); 158 function hideCM() { // 159 window.location.href="alt_topmenu_dummy.php"; 166 ' . ($this->reloadListFrame ?
' 167 // Reload list frame: 168 if(' . $listFrameDoc .
'){' . $listFrameDoc .
'.location.href=' . $listFrameDoc .
'.location.href;}' :
'') .
' 181 $clipObj->initializeClipboard();
183 $clipObj->lockToNormal();
186 $clipObj->setCmd($CB);
187 $clipObj->cleanCurrent();
189 $clipObj->endClipboard();
193 $clickMenu->clipObj = $clipObj;
198 $this->content .= $this->doc->startPage(
'Context Sensitive Menu');
201 $this->content .= $clickMenu->init();
211 $this->content .= $this->doc->endPage();
212 $this->content = $this->doc->insertStylesAndJS($this->content);
215 header(
'Content-Type: text/xml');
216 echo
'<?xml version="1.0"?>' . LF .
'<t3ajax>' . $this->content .
'</t3ajax>';
static forceIntegerInRange($theInt, $min, $max=2000000000, $defaultValue=0)
static makeInstance($className)
static shortMD5($input, $len=10)
static deprecationLog($msg)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
static getSpriteIconClasses($iconName)