Revision 810
Added by doc over 16 years ago
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 |
} |
Also available in: Unified diff
removed some obsolete language variables from news and form module (now defined in global WB language files)