Project

General

Profile

« Previous | Next » 

Revision 192

Added by ryan about 19 years ago

Semi-disabled use of "separate" page trash feature

View differences:

trunk/wb/admin/settings/index.php
365 365
// Work-out if page trash feature is disabled, in-line, or separate
366 366
if(PAGE_TRASH == 'disabled') {
367 367
	$template->set_var('PAGE_TRASH_DISABLED', ' checked');
368
	$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', ' display: none;');
368 369
} elseif(PAGE_TRASH == 'inline') {
369 370
	$template->set_var('PAGE_TRASH_INLINE', ' checked');
371
	$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', ' display: none;');
370 372
} elseif(PAGE_TRASH == 'separate') {
371 373
	$template->set_var('PAGE_TRASH_SEPARATE', ' checked');
374
	$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', ' display: inline;');
372 375
}
373 376

  
374 377
// Work-out if media home folde feature is enabled
trunk/wb/admin/settings/template.html
106 106
		<label for="page_trash_disabled">{TEXT_DISABLED}</label>
107 107
		<input type="radio" name="page_trash" id="page_trash_inline" style="width: 14px; height: 14px;" value="inline"{PAGE_TRASH_INLINE} />
108 108
		<label for="page_trash_inline">{TEXT_INLINE}</label>
109
		<input type="radio" name="page_trash" id="page_trash_separate" style="width: 14px; height: 14px;" value="separate"{PAGE_TRASH_SEPARATE} />
110
		<label for="page_trash_separate">{TEXT_SEPARATE}</label>
109
		<div style="margin: 0; padding: 0;{DISPLAY_PAGE_TRASH_SEPARATE}">
110
			<input type="radio" name="page_trash" id="page_trash_separate" style="width: 14px; height: 14px;" value="separate"{PAGE_TRASH_SEPARATE} />
111
			<label for="page_trash_separate">{TEXT_SEPARATE}</label>
112
		</div>
111 113
	</td>
112 114
</tr>
113 115
<input type="hidden" name="page_languages" value="{PAGE_LANGUAGES}" />

Also available in: Unified diff