Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

SC_alt_topmenu_dummy Class Reference

List of all members.

Public Member Functions

 main ()
 Main function - making the menu happen.
 dummyContent ()
 Creates the dummy content of the top frame if no menu - which is a blank page.
 printContent ()
 Outputting the accumulated content to screen.

Public Attributes

 $content

Member Function Documentation

SC_alt_topmenu_dummy::dummyContent  ) 
 

Creates the dummy content of the top frame if no menu - which is a blank page.

Returns:
void

Definition at line 127 of file alt_topmenu_dummy.php.

References $TBE_TEMPLATE.

Referenced by main().

00127                            {
00128       global $TBE_TEMPLATE;
00129 
00130          // Start page
00131       $TBE_TEMPLATE->docType = 'xhtml_trans';
00132       $this->content.=$TBE_TEMPLATE->startPage('Top frame dummy display');
00133 
00134          // End page:
00135       $this->content.=$TBE_TEMPLATE->endPage();
00136    }

SC_alt_topmenu_dummy::main  ) 
 

Main function - making the menu happen.

Returns:
void

Definition at line 82 of file alt_topmenu_dummy.php.

References $TBE_TEMPLATE, dummyContent(), icons(), menu(), and table().

00082                      {
00083       global $BE_USER,$LANG,$BACK_PATH,$TBE_MODULES,$TBE_TEMPLATE;
00084 
00085          // IF noMenuMode is set to 'icons', then display menu instead of nothingness
00086       if (!strcmp($BE_USER->uc['noMenuMode'],'icons'))   {
00087 
00088             // Loading the modules for this backend user:
00089          $loadModules = t3lib_div::makeInstance('t3lib_loadModules');
00090          $loadModules->load($TBE_MODULES);
00091 
00092             // Creating menu object:
00093          $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
00094 
00095             // Start page
00096          $TBE_TEMPLATE->docType = 'xhtml_trans';
00097          $TBE_TEMPLATE->bodyTagId.= '-iconmenu';
00098          $this->content.=$TBE_TEMPLATE->startPage('Top frame icon menu');
00099 
00100             // Make menu and add it:
00101          $this->content.='
00102 
00103             <!--
00104               Alternative module menu made of icons, displayed in top frame:
00105             -->
00106             <table border="0" cellpadding="0" cellspacing="0" id="typo3-topMenu">
00107                <tr>
00108                   <td class="c-menu">'.$alt_menuObj->topMenu($loadModules->modules,0,'',3).'</td>
00109                   '.($BE_USER->isAdmin() ? '<td class="c-admin">'.$alt_menuObj->adminButtons().'</td>' : '').'
00110                   <td class="c-logout">'.$alt_menuObj->topButtons().'</td>
00111                </tr>
00112             </table>';
00113 
00114             // End page:
00115          $this->content.=$TBE_TEMPLATE->endPage();
00116       } else {
00117             // Make dummy content:
00118          $this->dummyContent();
00119       }
00120    }

SC_alt_topmenu_dummy::printContent  ) 
 

Outputting the accumulated content to screen.

Returns:
void

Definition at line 143 of file alt_topmenu_dummy.php.

00143                            {
00144       echo $this->content;
00145    }


Member Data Documentation

SC_alt_topmenu_dummy::$content
 

Definition at line 75 of file alt_topmenu_dummy.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 3 01:06:28 2004 for TYPO3core 3.7.0 dev by  doxygen 1.3.8-20040913