Public Member Functions | |
| init () | |
| Constructor, initialize. | |
| main () | |
| Rendering the content. | |
| printContent () | |
| Printing the content. | |
Public Attributes | |
| $doc | |
| $content | |
| $loadModules | |
|
|
Constructor, initialize.
Definition at line 84 of file alt_doc_nodoc.php. 00084 {
00085 global $BACK_PATH;
00086
00087 // Start the template object:
00088 $this->doc = t3lib_div::makeInstance('mediumDoc');
00089 $this->doc->docType = 'xhtml_trans';
00090 $this->doc->bodyTagMargins['x']=5;
00091 $this->doc->bodyTagMargins['y']=5;
00092 $this->doc->backPath = $BACK_PATH;
00093
00094 // Start the page:
00095 $this->content='';
00096 $this->content.=$this->doc->startPage('TYPO3 Edit Document');
00097
00098 // Loads the backend modules available for the logged in user.
00099 $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
00100 $this->loadModules->load($GLOBALS['TBE_MODULES']);
00101 }
|
|
|
Rendering the content.
Definition at line 108 of file alt_doc_nodoc.php. References $LANG, t3lib_extMgm::isLoaded(), and isModuleSetInTBE_MODULES(). 00108 {
00109 global $BE_USER,$LANG,$BACK_PATH;
00110
00111 $msg=array();
00112
00113 // Add a message, telling that no documents were open...
00114 $msg[]='<p>'.$LANG->getLL('noDocuments_msg',1).'</p><br />';
00115
00116 // If another page module was specified, replace the default Page module with the new one
00117 $newPageModule = trim($BE_USER->getTSConfigVal('options.overridePageModule'));
00118 $pageModule = t3lib_BEfunc::isModuleSetInTBE_MODULES($newPageModule) ? $newPageModule : 'web_layout';
00119
00120 // Perform some acccess checks:
00121 $a_wl = $BE_USER->check('modules','web_list');
00122 $a_wp = t3lib_extMgm::isLoaded('cms') && $BE_USER->check('modules',$pageModule);
00123
00124
00125 // Finding module images: PAGE
00126 $imgFile = $LANG->moduleLabels['tabs_images']['web_layout_tab'];
00127 $imgInfo = @getimagesize($imgFile);
00128 $img_web_layout = is_array($imgInfo) ? '<img src="../'.substr($imgFile,strlen(PATH_site)).'" '.$image[3].' alt="" />' : '';
00129
00130 // Finding module images: LIST
00131 $imgFile = $LANG->moduleLabels['tabs_images']['web_list_tab'];
00132 $imgInfo = @getimagesize($imgFile);
00133 $img_web_list = is_array($imgInfo) ? '<img src="../'.substr($imgFile,strlen(PATH_site)).'" '.$image[3].' alt="" />' : '';
00134
00135
00136 // If either the Web>List OR Web>Page module are active, show the little message with links to those modules:
00137 if ($a_wl || $a_wp) {
00138 $msg_2 = array();
00139 if ($a_wp) { // Web>Page:
00140 $msg_2[]='<strong><a href="#" onclick="top.goToModule(\''.$pageModule.'\'); return false;">'.$LANG->getLL('noDocuments_pagemodule',1).$img_web_layout.'</a></strong>';
00141 if ($a_wl) $msg_2[]=$LANG->getLL('noDocuments_OR');
00142 }
00143 if ($a_wl) { // Web>List
00144 $msg_2[]='<strong><a href="#" onclick="top.goToModule(\'web_list\'); return false;">'.$LANG->getLL('noDocuments_listmodule',1).$img_web_list.'</a></strong>';
00145 }
00146 $msg[]='<p>'.sprintf($LANG->getLL('noDocuments_msg2',1),implode(' ',$msg_2)).'</p><br />';
00147 }
00148
00149 // If the task center is loaded and the module of recent documents is, then display the list of the most recently edited documents:
00150 if ($BE_USER->check('modules','user_task') && t3lib_extMgm::isLoaded('taskcenter_recent')) {
00151 $modObj = t3lib_div::makeInstance('tx_taskcenterrecent');
00152 $modObj->backPath = $BACK_PATH;
00153 $modObj->BE_USER = $BE_USER;
00154 $modObj->perms_clause = $BE_USER->getPagePermsClause(1);
00155
00156 $msg[]='<p>'.$LANG->getLL('noDocuments_msg3',1).'</p><br />'.$modObj->_renderRecent();
00157 }
00158
00159 // Adding the content:
00160 $this->content.=$this->doc->section($LANG->getLL('noDocuments'),implode(' ',$msg),0,1);
00161 }
|
|
|
Printing the content.
Definition at line 168 of file alt_doc_nodoc.php. 00168 {
00169 echo $this->content.$this->doc->endPage();
00170 }
|
|
|
Definition at line 76 of file alt_doc_nodoc.php. |
|
|
Definition at line 75 of file alt_doc_nodoc.php. |
|
|
Definition at line 77 of file alt_doc_nodoc.php. |
1.3.8-20040913