Public feed #602515

Mine

public text v1 · immutable
Raw Edit
·published 2007-07-04 03:29 UTC
rendered paste body
function aq_install_now() {
		$postheader = array('author' => '1', 'date' => '1', 'categories' => '1', 'comments' => '1', 'commentlr' => '1');
		add_option('aq2_color', '1', 'Style chosen for Aqueous 2');
		add_option('aq2_postheader', serialize($postheader), 'Information for the header of each post.');
		add_option('aq2_style_onoff', 'y', 'Allow users to customize the page??');
		add_option('aq2_disabled_styles', '', 'Disabled styles in aq2');
		add_option('aq2_bg', 'default', 'What should be used as the background of the page?');
		add_option('aq2_is_installed', '1.9.3', 'Proves Aqueous2 is installed and working correctly.');
}

function check_value($option, $value, $tag) {
	$getoption 		= $option;
	if ($tag=="text") {
		return 'value="'.$getoption.'"';
	}
	elseif ($getoption==$value) {
		if ($tag=="radio") {
			return 'checked="checked"';
		}
		elseif ($tag=="option") {
			return 'selected="selected"';
		}
	}
}
function aq2_admin() {
	$postheaderdb = unserialize(get_option('aq2_postheader'));
?>
		<form method="post">
			<table>
				<tr>
					<td>
						<?php _e('These settings can change the layout of posts on your blog.','aqueous2'); ?>
					</td>
					<td>
						<label for="author"><input type="checkbox" name="postheader[author]" value="1" id="author" <?php echo check_value($postheaderdb['author'], "1", "radio"); ?> /> <?php _e('Display author','aqueous2'); ?></label><br />
					</td>
				</tr>
			</table>
		</form>
<?php } ?>