Revision 810
Added by doc over 17 years ago
| trunk/CHANGELOG | ||
|---|---|---|
| 12 | 12 |
|
| 13 | 13 |
------------------------------------- 2.7.0 ------------------------------------- |
| 14 | 14 |
06-Apr-2008 Christian Sommer |
| 15 |
! removed some obsolete language variables from news and form module (now defined in global WB language files) |
|
| 15 | 16 |
! enlarged admin tool icon to match size 50x50px of the other icons |
| 16 | 17 |
05-Apr-2008 Matthias Gallas |
| 17 | 18 |
! Moved language variables for edit module CSS from modules language files to core language files |
| trunk/wb/framework/module.functions.php | ||
|---|---|---|
| 54 | 54 |
// this function displays the "Edit CSS" button in modify.php |
| 55 | 55 |
if (!function_exists('edit_module_css')) {
|
| 56 | 56 |
function edit_module_css($mod_dir) {
|
| 57 |
global $page_id, $section_id, $CAP_EDIT_CSS; |
|
| 57 |
global $page_id, $section_id; |
|
| 58 |
|
|
| 58 | 59 |
// check if the required edit_module_css.php file exists |
| 59 | 60 |
if(!file_exists(WB_PATH .'/modules/edit_module_files.php')) return; |
| 60 | 61 |
|
| ... | ... | |
| 67 | 68 |
|
| 68 | 69 |
// output the edit CSS submtin button if required |
| 69 | 70 |
if($frontend_css || $backend_css) {
|
| 70 |
// default text used for the edit CSS routines if not defined in the modules language file
|
|
| 71 |
if(!isset($CAP_EDIT_CSS)) $CAP_EDIT_CSS = 'Edit CSS';
|
|
| 71 |
// default text used for the edit CSS routines if not defined in the WB core language files
|
|
| 72 |
$edit_css_caption = (isset($GLOBALS['TEXT']['CAP_EDIT_CSS'])) ?$GLOBALS['TEXT']['CAP_EDIT_CSS'] :'Edit CSS';
|
|
| 72 | 73 |
?> |
| 73 | 74 |
<form name="edit_module_file" action="<?php echo WB_URL .'/modules/edit_module_files.php?page_id='.$page_id;?>" |
| 74 | 75 |
method="post" style="margin: 0; align:right;"> |
| ... | ... | |
| 77 | 78 |
<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>"> |
| 78 | 79 |
<input type="hidden" name="edit_file" value="<?php echo ($frontend_css) ?'frontend.css' : 'backend.css';?>"> |
| 79 | 80 |
<input type="hidden" name="action" value="edit"> |
| 80 |
<input type="submit" value="<?php echo $CAP_EDIT_CSS;?>" class="mod_<?php echo $mod_dir;?>_edit_css">
|
|
| 81 |
<input type="submit" value="<?php echo $edit_css_caption;?>" class="mod_<?php echo $mod_dir;?>_edit_css">
|
|
| 81 | 82 |
</form> |
| 82 | 83 |
<?php |
| 83 | 84 |
} |
| trunk/wb/modules/edit_module_files.php | ||
|---|---|---|
| 40 | 40 |
|
| 41 | 41 |
// leave if the required module.functions.php file does not exist |
| 42 | 42 |
if(!file_exists(WB_PATH .'/framework/module.functions.php')) {
|
| 43 |
echo 'Uups, the required file: /framework/module.functions.php is missing - script stopped.';
|
|
| 43 |
echo 'The required file: /framework/module.functions.php is missing - script stopped.';
|
|
| 44 | 44 |
die; |
| 45 | 45 |
} |
| 46 | 46 |
|
| 47 |
/** |
|
| 48 |
DEFINE LANGUAGE DEPENDING OUTPUTS FOR THE EDIT CSS PART |
|
| 49 |
*/ |
|
| 50 |
$lang_dir = WB_PATH .'/modules/' .$_POST['mod_dir'] .'/languages/'; |
|
| 51 |
if(file_exists($lang_dir .LANGUAGE .'.php')) {
|
|
| 52 |
// try to include custom language file if exists |
|
| 53 |
require_once($lang_dir .LANGUAGE .'.php'); |
|
| 54 |
} elseif(file_exists($lang_dir .'EN.php')) {
|
|
| 55 |
// try to include default module language file |
|
| 56 |
require_once($lang_dir .'EN.php'); |
|
| 57 |
} |
|
| 47 |
// set default text output if varibles are not defined in the global WB language files |
|
| 48 |
$HEADING_CSS_FILE = (isset($GLOBALS['TEXT']['HEADING_CSS_FILE'])) ?$GLOBALS['TEXT']['HEADING_CSS_FILE'] :'Actual module file: '; |
|
| 49 |
$TXT_EDIT_CSS_FILE = (isset($GLOBALS['TEXT']['TXT_EDIT_CSS_FILE'])) ?$GLOBALS['TEXT']['TXT_EDIT_CSS_FILE'] :'Edit the CSS definitions in the textarea below.'; |
|
| 58 | 50 |
|
| 59 |
// set defaults if output varibles are not set in the languages files |
|
| 60 |
if(!isset($HEADING_CSS_FILE)) $HEADING_CSS_FILE = 'Actual module file: '; |
|
| 61 |
if(!isset($TXT_EDIT_CSS_FILE)) $TXT_EDIT_CSS_FILE = 'Edit the CSS definitions in the textarea below.'; |
|
| 62 |
|
|
| 63 | 51 |
// include functions to edit the optional module CSS files (frontend.css, backend.css) |
| 64 | 52 |
require_once(WB_PATH .'/framework/module.functions.php'); |
| 65 | 53 |
|
| trunk/wb/modules/form/languages/NL.php | ||
|---|---|---|
| 29 | 29 |
//Variables for the backend |
| 30 | 30 |
$MOD_FORM['SETTINGS'] = 'Formulier instellingen'; |
| 31 | 31 |
|
| 32 |
// Variables for the module CSS edit outputs |
|
| 33 |
$CAP_EDIT_CSS = 'Wijzig CSS'; |
|
| 34 |
$HEADING_CSS_FILE = 'Actuele module bestand: '; |
|
| 35 |
$TXT_EDIT_CSS_FILE = 'Wijzig de CSS definities in het textveld hieronder.'; |
|
| 36 |
|
|
| 37 | 32 |
?> |
| trunk/wb/modules/form/languages/NO.php | ||
|---|---|---|
| 29 | 29 |
//Variables for the backend |
| 30 | 30 |
$MOD_FORM['SETTINGS'] = 'Skjema Innstillinger'; |
| 31 | 31 |
|
| 32 |
// Variables for the module CSS edit outputs |
|
| 33 |
$CAP_EDIT_CSS = 'Rediger CSS koden'; |
|
| 34 |
$HEADING_CSS_FILE = 'Faktisk modul fil: '; |
|
| 35 |
$TXT_EDIT_CSS_FILE = 'Rediger CSS koden i tekst viduet nedenfor.'; |
|
| 36 |
|
|
| 37 | 32 |
?> |
| trunk/wb/modules/form/languages/EN.php | ||
|---|---|---|
| 29 | 29 |
//Variables for the backend |
| 30 | 30 |
$MOD_FORM['SETTINGS'] = 'Form Settings'; |
| 31 | 31 |
|
| 32 |
// Variables for the module CSS edit outputs |
|
| 33 |
$CAP_EDIT_CSS = 'Edit CSS'; |
|
| 34 |
$HEADING_CSS_FILE = 'Actual module file: '; |
|
| 35 |
$TXT_EDIT_CSS_FILE = 'Edit the CSS definitions in the textarea below.'; |
|
| 36 |
|
|
| 37 | 32 |
?> |
| trunk/wb/modules/form/languages/RU.php | ||
|---|---|---|
| 29 | 29 |
//Variables for the backend |
| 30 | 30 |
$MOD_FORM['SETTINGS'] = 'Настройки формы'; |
| 31 | 31 |
|
| 32 |
// Variables for the module CSS edit outputs |
|
| 33 |
$CAP_EDIT_CSS = 'Редактировать CSS'; |
|
| 34 |
$HEADING_CSS_FILE = 'Имя файла: '; |
|
| 35 |
$TXT_EDIT_CSS_FILE = 'Измените CSS файл, если необходимо:'; |
|
| 36 |
|
|
| 37 | 32 |
?> |
| trunk/wb/modules/form/languages/DE.php | ||
|---|---|---|
| 29 | 29 |
//Variablen fuer backend Texte |
| 30 | 30 |
$MOD_FORM['SETTINGS'] = 'Formular Einstellungen'; |
| 31 | 31 |
|
| 32 |
// Variablen fuer Textausgabe der frontend.css/backend.css Bearbeitung |
|
| 33 |
$CAP_EDIT_CSS = 'Bearbeite CSS'; |
|
| 34 |
$HEADING_CSS_FILE = 'Aktuelle Moduldatei: '; |
|
| 35 |
$TXT_EDIT_CSS_FILE = 'Bearbeite die CSS Definitionen im nachfolgenden Textfeld.'; |
|
| 36 |
|
|
| 37 | 32 |
?> |
| trunk/wb/modules/news/languages/NL.php | ||
|---|---|---|
| 29 | 29 |
//Variables for the backend |
| 30 | 30 |
$MOD_NEWS['SETTINGS'] = 'Eigenschappen van de Nieuwsmodule'; |
| 31 | 31 |
|
| 32 |
// Variables for the module CSS edit outputs |
|
| 33 |
$CAP_EDIT_CSS = 'Wijzig CSS'; |
|
| 34 |
$HEADING_CSS_FILE = 'Actuele module bestand: '; |
|
| 35 |
$TXT_EDIT_CSS_FILE = 'Wijzig de CSS definities in het textveld hieronder.'; |
|
| 36 |
|
|
| 37 | 32 |
?> |
| trunk/wb/modules/news/languages/NO.php | ||
|---|---|---|
| 29 | 29 |
//Variables for the backend |
| 30 | 30 |
$MOD_NEWS['SETTINGS'] = 'Innstillinger for Nyheter'; |
| 31 | 31 |
|
| 32 |
// Variables for the module CSS edit outputs |
|
| 33 |
$CAP_EDIT_CSS = 'Rediger CSS koden'; |
|
| 34 |
$HEADING_CSS_FILE = 'Faktisk modul fil: '; |
|
| 35 |
$TXT_EDIT_CSS_FILE = 'Rediger CSS koden i tekst viduet nedenfor.'; |
|
| 36 |
|
|
| 37 | 32 |
?> |
| trunk/wb/modules/news/languages/EN.php | ||
|---|---|---|
| 29 | 29 |
//Variables for the backend |
| 30 | 30 |
$MOD_NEWS['SETTINGS'] = 'News Settings'; |
| 31 | 31 |
|
| 32 |
// Variables for the module CSS edit outputs |
|
| 33 |
$CAP_EDIT_CSS = 'Edit CSS'; |
|
| 34 |
$HEADING_CSS_FILE = 'Actual module file: '; |
|
| 35 |
$TXT_EDIT_CSS_FILE = 'Edit the CSS definitions in the textarea below.'; |
|
| 36 |
|
|
| 37 | 32 |
?> |
| trunk/wb/modules/news/languages/RU.php | ||
|---|---|---|
| 29 | 29 |
//Variables for the backend |
| 30 | 30 |
$MOD_NEWS['SETTINGS'] = 'Настройки новостной ленты'; |
| 31 | 31 |
|
| 32 |
// Variables for the module CSS edit outputs |
|
| 33 |
$CAP_EDIT_CSS = 'Редактировать CSS'; |
|
| 34 |
$HEADING_CSS_FILE = 'Имя файла: '; |
|
| 35 |
$TXT_EDIT_CSS_FILE = 'Измените CSS файл, если необходимо:'; |
|
| 36 |
|
|
| 37 | 32 |
?> |
| trunk/wb/modules/news/languages/DE.php | ||
|---|---|---|
| 29 | 29 |
//Variablen fuer backend Texte |
| 30 | 30 |
$MOD_NEWS['SETTINGS'] = 'News Einstellungen'; |
| 31 | 31 |
|
| 32 |
// Variablen fuer Textausgabe der frontend.css/backend.css Bearbeitung |
|
| 33 |
$CAP_EDIT_CSS = 'Bearbeite CSS'; |
|
| 34 |
$HEADING_CSS_FILE = 'Aktuelle Moduldatei: '; |
|
| 35 |
$TXT_EDIT_CSS_FILE = 'Bearbeite die CSS Definitionen im nachfolgenden Textfeld.'; |
|
| 36 |
|
|
| 37 | 32 |
?> |
Also available in: Unified diff
removed some obsolete language variables from news and form module (now defined in global WB language files)