Project

General

Profile

« Previous | Next » 

Revision 909

Added by doc almost 16 years ago

Added Javascript syntax highlighting framework EditArea as replacement for Codepress.

View differences:

modify.php
35 35
$content = (htmlspecialchars($content['content']));
36 36

  
37 37
// Insert vars
38
$template->set_var(array(
39
								'PAGE_ID' => $page_id,
40
								'SECTION_ID' => $section_id,
41
								'WB_URL' => WB_URL,
42
								'CONTENT' => $content,
43
								'TEXT_SAVE' => $TEXT['SAVE'],
44
								'TEXT_CANCEL' => $TEXT['CANCEL']
45
								)
46
						);
38
$template->set_var(
39
	array(
40
		'PAGE_ID'				=> $page_id,
41
		'SECTION_ID'			=> $section_id,
42
		'REGISTER_EDIT_AREA'	=> function_exists('registerEditArea') ? registerEditArea('content', 'php', false) : '',
43
		'WB_URL'				=> WB_URL,
44
		'CONTENT'				=> $content,
45
		'TEXT_SAVE'				=> $TEXT['SAVE'],
46
		'TEXT_CANCEL'			=> $TEXT['CANCEL']
47
	)
48
);
47 49

  
48 50
// Parse template object
49 51
$template->set_unknowns('keep');

Also available in: Unified diff