Documentation TYPO3 par Ameos

ext_tables.php

00001 <?php
00002 if (!defined ('TYPO3_MODE'))    die ('Access denied.');
00003 
00004 //require_once(t3lib_extMgm::extPath('t3skin').'debuglib.php');
00005 
00006 if (TYPO3_MODE=='BE')   {
00007 
00008         $presetSkinImgs = is_array($TBE_STYLES['skinImg']) ? $TBE_STYLES['skinImg'] : array();  // Means, support for other extensions to add own icons...
00009 
00013         $TBE_STYLES['mainColors'] = Array (     // Always use #xxxxxx color definitions!
00014         'bgColor' => '#FFFFFF',                 // Light background color
00015         'bgColor2' => '#FEFEFE',                // Steel-blue
00016         'bgColor3' => '#F1F3F5',                // dok.color
00017         'bgColor4' => '#E6E9EB',                // light tablerow background, brownish
00018         'bgColor5' => '#F8F9FB',                // light tablerow background, greenish
00019         'bgColor6' => '#E6E9EB',                // light tablerow background, yellowish, for section headers. Light.
00020         'hoverColor' => '#FF0000',
00021         'navFrameHL' => '#F8F9FB'
00022         );
00023 
00024         $TBE_STYLES['colorschemes'][0]='-|class-main1,-|class-main2,-|class-main3,-|class-main4,-|class-main5';
00025         $TBE_STYLES['colorschemes'][1]='-|class-main11,-|class-main12,-|class-main13,-|class-main14,-|class-main15';
00026         $TBE_STYLES['colorschemes'][2]='-|class-main21,-|class-main22,-|class-main23,-|class-main24,-|class-main25';
00027         $TBE_STYLES['colorschemes'][3]='-|class-main31,-|class-main32,-|class-main33,-|class-main34,-|class-main35';
00028         $TBE_STYLES['colorschemes'][4]='-|class-main41,-|class-main42,-|class-main43,-|class-main44,-|class-main45';
00029         $TBE_STYLES['colorschemes'][5]='-|class-main51,-|class-main52,-|class-main53,-|class-main54,-|class-main55';
00030 
00031         $TBE_STYLES['styleschemes'][0]['all'] = 'CLASS: formField';
00032         $TBE_STYLES['styleschemes'][1]['all'] = 'CLASS: formField1';
00033         $TBE_STYLES['styleschemes'][2]['all'] = 'CLASS: formField2';
00034         $TBE_STYLES['styleschemes'][3]['all'] = 'CLASS: formField3';
00035         $TBE_STYLES['styleschemes'][4]['all'] = 'CLASS: formField4';
00036         $TBE_STYLES['styleschemes'][5]['all'] = 'CLASS: formField5';
00037 
00038         $TBE_STYLES['styleschemes'][0]['check'] = 'CLASS: checkbox';
00039         $TBE_STYLES['styleschemes'][1]['check'] = 'CLASS: checkbox';
00040         $TBE_STYLES['styleschemes'][2]['check'] = 'CLASS: checkbox';
00041         $TBE_STYLES['styleschemes'][3]['check'] = 'CLASS: checkbox';
00042         $TBE_STYLES['styleschemes'][4]['check'] = 'CLASS: checkbox';
00043         $TBE_STYLES['styleschemes'][5]['check'] = 'CLASS: checkbox';
00044 
00045         $TBE_STYLES['styleschemes'][0]['radio'] = 'CLASS: radio';
00046         $TBE_STYLES['styleschemes'][1]['radio'] = 'CLASS: radio';
00047         $TBE_STYLES['styleschemes'][2]['radio'] = 'CLASS: radio';
00048         $TBE_STYLES['styleschemes'][3]['radio'] = 'CLASS: radio';
00049         $TBE_STYLES['styleschemes'][4]['radio'] = 'CLASS: radio';
00050         $TBE_STYLES['styleschemes'][5]['radio'] = 'CLASS: radio';
00051 
00052         $TBE_STYLES['styleschemes'][0]['select'] = 'CLASS: select';
00053         $TBE_STYLES['styleschemes'][1]['select'] = 'CLASS: select';
00054         $TBE_STYLES['styleschemes'][2]['select'] = 'CLASS: select';
00055         $TBE_STYLES['styleschemes'][3]['select'] = 'CLASS: select';
00056         $TBE_STYLES['styleschemes'][4]['select'] = 'CLASS: select';
00057         $TBE_STYLES['styleschemes'][5]['select'] = 'CLASS: select';
00058 
00059         $TBE_STYLES['borderschemes'][0]= array('','','','wrapperTable');
00060         $TBE_STYLES['borderschemes'][1]= array('','','','wrapperTable1');
00061         $TBE_STYLES['borderschemes'][2]= array('','','','wrapperTable2');
00062         $TBE_STYLES['borderschemes'][3]= array('','','','wrapperTable3');
00063         $TBE_STYLES['borderschemes'][4]= array('','','','wrapperTable4');
00064         $TBE_STYLES['borderschemes'][5]= array('','','','wrapperTable5');
00065 
00066 
00067 
00068         // Setting the relative path to the extension in temp. variable:
00069         $temp_eP = t3lib_extMgm::extRelPath($_EXTKEY);
00070 
00071         // Setting login box image rotation folder:
00072         $TBE_STYLES['loginBoxImage_rotationFolder'] = $temp_eP.'images/login/';
00073         #$TBE_STYLES['loginBoxImage_rotationFolder'] = '';
00074 
00075         // Setting up stylesheets (See template() constructor!)
00076         #       $TBE_STYLES['stylesheet'] = $temp_eP.'stylesheets/stylesheet.css';                              // Alternative stylesheet to the default "typo3/stylesheet.css" stylesheet.
00077         #       $TBE_STYLES['stylesheet2'] = $temp_eP.'stylesheets/stylesheet.css';                                                                             // Additional stylesheet (not used by default).  Set BEFORE any in-document styles
00078         $TBE_STYLES['styleSheetFile_post'] = $temp_eP.'stylesheets/stylesheet_post.css';                                                                // Additional stylesheet. Set AFTER any in-document styles
00079         #       $TBE_STYLES['inDocStyles_TBEstyle'] = '* {text-align: right;}';                                                                         // Additional default in-document styles.
00080 
00081         // Alternative dimensions for frameset sizes:
00082         $TBE_STYLES['dims']['leftMenuFrameW']=140;              // Left menu frame width
00083         $TBE_STYLES['dims']['topFrameH']=45;                    // Top frame heigth
00084         $TBE_STYLES['dims']['shortcutFrameH']=35;               // Shortcut frame height
00085         $TBE_STYLES['dims']['selMenuFrame']=200;                // Width of the selector box menu frame
00086         $TBE_STYLES['dims']['navFrameWidth']=260;               // Default navigation frame width
00087 
00088         $TBE_STYLES['border'] = $temp_eP.'noborder.html';
00089 
00090         // Setting roll-over background color for click menus:
00091         // Notice, this line uses the the 'scriptIDindex' feature to override another value in this array (namely $TBE_STYLES['mainColors']['bgColor5']), for a specific script "typo3/alt_clickmenu.php"
00092         $TBE_STYLES['scriptIDindex']['typo3/alt_clickmenu.php']['mainColors']['bgColor5']='#F8F9FB';
00093 
00094         // Setting up auto detection of alternative icons:
00095         $TBE_STYLES['skinImgAutoCfg']=array(
00096         'absDir' => t3lib_extMgm::extPath($_EXTKEY).'icons/',
00097         'relDir' => t3lib_extMgm::extRelPath($_EXTKEY).'icons/',
00098         'forceFileExtension' => 'gif',  // Force to look for PNG alternatives...
00099         #               'scaleFactor' => 2/3,   // Scaling factor, default is 1
00100         );
00101 
00102         // Manual setting up of alternative icons. This is mainly for module icons which has a special prefix:
00103         $TBE_STYLES['skinImg'] = array_merge($presetSkinImgs, array (
00104         'gfx/ol/blank.gif' => array('clear.gif','width="14" height="14"'),
00105         'MOD:web/website.gif'  => array($temp_eP.'icons/module_web.gif','width="24" height="24"'),
00106         'MOD:web_layout/layout.gif'  => array($temp_eP.'icons/module_web_layout.gif','width="24" height="24"'),
00107         'MOD:web_view/view.gif'  => array($temp_eP.'icons/module_web_view.gif','width="24" height="24"'),
00108         'MOD:web_list/list.gif'  => array($temp_eP.'icons/module_web_list.gif','width="24" height="24"'),
00109         'MOD:web_info/info.gif'  => array($temp_eP.'icons/module_web_info.gif','width="24" height="24"'),
00110         'MOD:web_perm/perm.gif'  => array($temp_eP.'icons/module_web_perms.gif','width="24" height="24"'),
00111         'MOD:web_perm/legend.gif'  => array($temp_eP.'icons/legend.gif','width="24" height="24"'),
00112         'MOD:web_func/func.gif'  => array($temp_eP.'icons/module_web_func.gif','width="24" height="24"'),
00113         'MOD:web_ts/ts1.gif'  => array($temp_eP.'icons/module_web_ts.gif','width="24" height="24"'),
00114         'MOD:web_modules/modules.gif' => array($temp_eP.'icons/module_web_modules.gif','width="24" height="24"'),
00115         'MOD:file/file.gif'  => array($temp_eP.'icons/module_file.gif','width="22" height="24"'),
00116         'MOD:file_list/list.gif'  => array($temp_eP.'icons/module_file_list.gif','width="22" height="24"'),
00117         'MOD:file_images/images.gif'  => array($temp_eP.'icons/module_file_images.gif','width="22" height="22"'),
00118         'MOD:doc/document.gif'  => array($temp_eP.'icons/module_doc.gif','width="22" height="22"'),
00119         'MOD:user/user.gif'  => array($temp_eP.'icons/module_user.gif','width="22" height="22"'),
00120         'MOD:user_task/task.gif'  => array($temp_eP.'icons/module_user_taskcenter.gif','width="22" height="22"'),
00121         'MOD:user_setup/setup.gif'  => array($temp_eP.'icons/module_user_setup.gif','width="22" height="22"'),
00122         'MOD:tools/tool.gif'  => array($temp_eP.'icons/module_tools.gif','width="25" height="24"'),
00123         'MOD:tools_beuser/beuser.gif'  => array($temp_eP.'icons/module_tools_user.gif','width="24" height="24"'),
00124         'MOD:tools_em/em.gif'  => array($temp_eP.'icons/module_tools_em.gif','width="24" height="24"'),
00125         'MOD:tools_em/install.gif'  => array($temp_eP.'icons/module_tools_em.gif','width="24" height="24"'),
00126         'MOD:tools_dbint/db.gif'  => array($temp_eP.'icons/module_tools_dbint.gif','width="25" height="24"'),
00127         'MOD:tools_config/config.gif'  => array($temp_eP.'icons/module_tools_config.gif','width="24" height="24"'),
00128         'MOD:tools_install/install.gif'  => array($temp_eP.'icons/module_tools_install.gif','width="24" height="24"'),
00129         'MOD:tools_log/log.gif'  => array($temp_eP.'icons/module_tools_log.gif','width="24" height="24"'),
00130         'MOD:tools_txphpmyadmin/thirdparty_db.gif'  => array($temp_eP.'icons/module_tools_phpmyadmin.gif','width="24" height="24"'),
00131         'MOD:tools_isearch/isearch.gif' => array($temp_eP.'icons/module_tools_isearch.gif','width="24" height="24"'),
00132         'MOD:help/help.gif'  => array($temp_eP.'icons/module_help.gif','width="23" height="24"'),
00133         'MOD:help_about/info.gif'  => array($temp_eP.'icons/module_help_about.gif','width="25" height="24"'),
00134         'MOD:help_aboutmodules/aboutmodules.gif'  => array($temp_eP.'icons/module_help_aboutmodules.gif','width="24" height="24"'),
00135         ));
00136 
00137         // Adding icon for photomarathon extensions' backend module, if enabled:
00138         if (t3lib_extMgm::isloaded('user_photomarathon'))       {
00139                 $TBE_STYLES['skinImg']['MOD:web_uphotomarathon/tab_icon.gif'] = array($temp_eP.'icons/ext/user_photomarathon/tab_icon.gif','width="24" height="24"');
00140         }
00141         // Adding icon for templavoila extensions' backend module, if enabled:
00142         if (t3lib_extMgm::isloaded('templavoila'))      {
00143                 $TBE_STYLES['skinImg']['MOD:web_txtemplavoilaM1/moduleicon.gif'] = array($temp_eP.'icons/ext/templavoila/mod1/moduleicon.gif','width="22" height="22"');
00144                 $TBE_STYLES['skinImg']['MOD:web_txtemplavoilaM2/moduleicon.gif'] = array($temp_eP.'icons/ext/templavoila/mod1/moduleicon.gif','width="22" height="22"');
00145         }
00146         // Adding icon for extension manager' backend module, if enabled:
00147         $TBE_STYLES['skinImg']['MOD:tools_em/install.gif'] = array($temp_eP.'icons/ext/templavoila/mod1/moduleicon.gif','width="22" height="22"');
00148         $TBE_STYLES['skinImg']['MOD:tools_em/uninstall.gif'] = array($temp_eP.'icons/ext/templavoila/mod1/moduleicon.gif','width="22" height="22"');
00149 
00150         //print_a($TBE_STYLES,2);
00151 }
00152 ?>


Généré par Les experts TYPO3 avec  doxygen 1.4.6