Project

General

Profile

« Previous | Next » 

Revision 794

Added by doc about 16 years ago

updated edit module CSS functions to include backend.css into head if possible

View differences:

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

  
13 13
------------------------------------- 2.7.0 -------------------------------------
14
02-Apr-2008 Christian Sommer
14
03-Apr-2008 Christian Sommer
15
!	updated edit module CSS functions to include backend.css into head if possible
15 16
#	fixed bug in Javascript decryption routines of the Output-Filter module
16 17
02-Apr-2008 Matthias Gallas
17 18
#	fixed bug with registration of users are not added to signup group
trunk/wb/framework/class.admin.php
319 319
		$head_links = "";
320 320
		if($file_id == "css") {
321 321
      	$base_link = '<link href="'.WB_URL.'/modules/{MODULE_DIRECTORY}/backend.css"'; 
322
			$base_link.= 'rel="stylesheet" type="text/css" media="screen" />';
322
			$base_link.= ' rel="stylesheet" type="text/css" media="screen" />';
323 323
			$base_file = "backend.css";
324 324
		} else {
325 325
			$base_link = '<script type="text/javascript" src="'.WB_URL.'/modules/{MODULE_DIRECTORY}/backend.js"></script>';
trunk/wb/modules/form/edit_css.php
87 87
	/** 
88 88
		MODIFY CONTENTS OF THE CSS FILE VIA TEXT AREA 
89 89
	*/
90
	// include the backend.css file if exists
91
	if(file_exists(WB_PATH .'/modules/' .$mod_dir .'/backend.css')) {
90
	// check if module backend.css file needs to be included into the <body>
91
	if((!method_exists($admin, 'register_backend_modfiles') || !isset($_GET['page_id']))
92
			&& file_exists(WB_PATH .'/modules/'.$mod_dir.'/backend.css')) {
92 93
		echo '<style type="text/css">';
93 94
		include(WB_PATH .'/modules/' .$mod_dir .'/backend.css');
94 95
		echo "\n</style>\n";
trunk/wb/modules/form/css.functions.php
61 61
			if(!isset($CAP_EDIT_CSS)) $CAP_EDIT_CSS	= 'Edit CSS';
62 62
			?>
63 63
			<form name="edit_module_file" action="<?php echo WB_URL .'/modules/' .$mod_dir .
64
				'/edit_css.php';?>" method="post" style="margin: 0; align:right;">
64
 				'/edit_css.php?page_id='.$page_id;?>" method="post" style="margin: 0; align:right;">
65 65
				<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
66 66
				<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
67 67
				<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>">
trunk/wb/modules/news/edit_css.php
85 85
	/** 
86 86
		MODIFY CONTENTS OF THE CSS FILE VIA TEXT AREA 
87 87
	*/
88
	// include the backend.css file if exists
89
	if(file_exists(WB_PATH .'/modules/' .$mod_dir .'/backend.css')) {
88
	// check if module backend.css file needs to be included into the <body>
89
	if((!method_exists($admin, 'register_backend_modfiles') || !isset($_GET['page_id']))
90
			&& file_exists(WB_PATH .'/modules/'.$mod_dir.'/backend.css')) {
90 91
		echo '<style type="text/css">';
91 92
		include(WB_PATH .'/modules/' .$mod_dir .'/backend.css');
92 93
		echo "\n</style>\n";
trunk/wb/modules/news/css.functions.php
61 61
			if(!isset($CAP_EDIT_CSS)) $CAP_EDIT_CSS	= 'Edit CSS';
62 62
			?>
63 63
			<form name="edit_module_file" action="<?php echo WB_URL .'/modules/' .$mod_dir .
64
				'/edit_css.php';?>" method="post" style="margin: 0; align:right;">
64
 				'/edit_css.php?page_id='.$page_id;?>" method="post" style="margin: 0; align:right;">
65 65
				<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
66 66
				<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
67 67
				<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>">

Also available in: Unified diff