Project

General

Profile

« Previous | Next » 

Revision 1005

Added by aldus almost 15 years ago

Changes on module "code": add the section_id to the name of the textarea,
to keep the functionality if you are using more than one code-section on a page.

View differences:

trunk/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
------------------------------------- 2.8.0 -------------------------------------
14
22-June-2009 Dietrich Roland Pehlke
15
#	Changes on module "code": add the section_id to the name of the textarea,
16
	to keep the functionality if you are using more than one code-section on a page.
17
!	Moving the html-template inside a "htt" folder and rename the suffix to ".htt" to
18
	keep it consitant to other modules. Minor cosmetic changes inside the code.
14 19
22-June-2009 Ruud Eisinga
15 20
#	Fixed a bug in Menu_link module that made childpages of the menu_link page 
16 21
	not selectable. (thnx to Luisehahne)
trunk/wb/modules/code/info.php
23 23

  
24 24
*/
25 25

  
26
$module_directory = 'code';
27
$module_name = 'Code';
28
$module_function = 'page';
29
$module_version = '2.7';
30
$module_platform = '2.7.x';
31
$module_author = 'Ryan Djurovich';
32
$module_license = 'GNU General Public License';
33
$module_description = 'This module allows you to execute PHP commands (limit access to users you trust!!)';
26
$module_directory	= 'code';
27
$module_name		= 'Code';
28
$module_function	= 'page';
29
$module_version		= '2.8';
30
$module_platform	= '2.7.x';
31
$module_author		= 'Ryan Djurovich';
32
$module_license		= 'GNU General Public License';
33
$module_description	= 'This module allows you to execute PHP commands (limit access to users you trust!!)';
34 34

  
35 35
?>
trunk/wb/modules/code/modify.php
25 25

  
26 26
// Setup template object
27 27
$template = new Template(WB_PATH.'/modules/code');
28
$template->set_file('page', 'modify.html');
28
$template->set_file('page', 'htt/modify.htt');
29 29
$template->set_block('page', 'main_block', 'main');
30 30

  
31 31
// Get page content
......
39 39
	array(
40 40
		'PAGE_ID'				=> $page_id,
41 41
		'SECTION_ID'			=> $section_id,
42
		'REGISTER_EDIT_AREA'	=> function_exists('registerEditArea') ? registerEditArea('content', 'php', false) : '',
42
		'REGISTER_EDIT_AREA'	=> function_exists('registerEditArea') ? registerEditArea('content'.$section_id, 'php', false) : '',
43 43
		'WB_URL'				=> WB_URL,
44 44
		'CONTENT'				=> $content,
45 45
		'TEXT_SAVE'				=> $TEXT['SAVE'],
46
		'TEXT_CANCEL'			=> $TEXT['CANCEL']
46
		'TEXT_CANCEL'			=> $TEXT['CANCEL'],
47
		'SECTION'				=> $section_id
47 48
	)
48 49
);
49 50

  

Also available in: Unified diff