| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
?> |
| 6 |
<tr valign="top"> |
| 7 |
<th scope="row">P3P |
| 8 |
<p class="description"><?php esc_html_e('The Platform for Privacy Preferences Project (P3P) is a protocol allowing websites to declare their intended use of information they collect about web browser users.', 'http-headers'); ?></p> |
| 9 |
</th> |
| 10 |
<td> |
| 11 |
<fieldset> |
| 12 |
<legend class="screen-reader-text">P3P</legend> |
| 13 |
<?php |
| 14 |
$http_headers_p3p = get_option('hh_p3p', 0); |
| 15 |
foreach ($http_headers_bools as $http_headers_k => $http_headers_v) |
| 16 |
{ |
| 17 |
?><p><label><input type="radio" class="http-header" name="hh_p3p" value="<?php echo esc_attr($http_headers_k); ?>"<?php checked($http_headers_p3p, $http_headers_k); ?> /> <?php echo esc_html($http_headers_v); ?></label></p><?php |
| 18 |
} |
| 19 |
?> |
| 20 |
</fieldset> |
| 21 |
</td> |
| 22 |
<td> |
| 23 |
<?php settings_fields( 'http-headers-p3p' ); ?> |
| 24 |
<?php do_settings_sections( 'http-headers-p3p' ); ?> |
| 25 |
<?php |
| 26 |
$http_headers_p3p_value = get_option('hh_p3p_value'); |
| 27 |
if (!$http_headers_p3p_value) |
| 28 |
{ |
| 29 |
$http_headers_p3p_value = array(); |
| 30 |
} |
| 31 |
$http_headers_in_creq = array('ADM', 'DEV', 'TAI', 'PSA', 'PSD', 'IVA', 'IVD', 'CON', 'HIS', 'TEL', 'OTP', 'DEL', 'SAM', 'UNR', 'PUB', 'OTR',); |
| 32 |
$http_headers_creq = array('a', 'i', 'o'); |
| 33 |
?> |
| 34 |
<table> |
| 35 |
<tbody> |
| 36 |
<tr> |
| 37 |
<td>Compact ACCESS</td> |
| 38 |
<td class="hh-td-inner"> |
| 39 |
<table><tbody><tr><?php |
| 40 |
$http_headers_items = array('NOI', 'ALL', 'CAO', 'IDC', 'OTI', 'NON'); |
| 41 |
foreach ($http_headers_items as $http_headers_i => $http_headers_item) { |
| 42 |
if ($http_headers_i > 0 && $http_headers_i % 4 === 0) { |
| 43 |
?></tr><tr><?php |
| 44 |
} |
| 45 |
?><td><label><input type="checkbox" class="http-header-value" name="hh_p3p_value[<?php echo esc_attr($http_headers_item); ?>]" value="1"<?php echo !array_key_exists($http_headers_item, $http_headers_p3p_value) ? NULL : ' checked'; ?><?php echo $http_headers_p3p == 1 ? NULL : ' readonly'; ?> /> <?php echo esc_html($http_headers_item); ?></label></td><?php |
| 46 |
} |
| 47 |
?></tr></tbody></table> |
| 48 |
</td> |
| 49 |
</tr> |
| 50 |
<tr> |
| 51 |
<td>Compact DISPUTES</td> |
| 52 |
<td class="hh-td-inner"> |
| 53 |
<table><tbody><tr><?php |
| 54 |
$http_headers_items = array('DSP'); |
| 55 |
foreach ($http_headers_items as $http_headers_i => $http_headers_item) { |
| 56 |
if ($http_headers_i > 0 && $http_headers_i % 4 === 0) { |
| 57 |
?></tr><tr><?php |
| 58 |
} |
| 59 |
?><td><label><input type="checkbox" class="http-header-value" name="hh_p3p_value[<?php echo esc_attr($http_headers_item); ?>]" value="1"<?php echo !array_key_exists($http_headers_item, $http_headers_p3p_value) ? NULL : ' checked'; ?><?php echo $http_headers_p3p == 1 ? NULL : ' readonly'; ?> /> <?php echo esc_html($http_headers_item); ?></label></td><?php |
| 60 |
} |
| 61 |
?></tr></tbody></table> |
| 62 |
</td> |
| 63 |
</tr> |
| 64 |
<tr> |
| 65 |
<td>Compact REMEDIES</td> |
| 66 |
<td class="hh-td-inner"> |
| 67 |
<table><tbody><tr><?php |
| 68 |
$http_headers_items = array('COR', 'MON', 'LAW'); |
| 69 |
foreach ($http_headers_items as $http_headers_i => $http_headers_item) { |
| 70 |
if ($http_headers_i > 0 && $http_headers_i % 4 === 0) { |
| 71 |
?></tr><tr><?php |
| 72 |
} |
| 73 |
?><td><label><input type="checkbox" class="http-header-value" name="hh_p3p_value[<?php echo esc_attr($http_headers_item); ?>]" value="1"<?php echo !array_key_exists($http_headers_item, $http_headers_p3p_value) ? NULL : ' checked'; ?><?php echo $http_headers_p3p == 1 ? NULL : ' readonly'; ?> /> <?php echo esc_html($http_headers_item); ?></label></td><?php |
| 74 |
} |
| 75 |
?></tr></tbody></table> |
| 76 |
</td> |
| 77 |
</tr> |
| 78 |
<tr> |
| 79 |
<td>Compact NON-IDENTIFIABLE</td> |
| 80 |
<td class="hh-td-inner"> |
| 81 |
<table><tbody><tr><?php |
| 82 |
$http_headers_items = array('NID'); |
| 83 |
foreach ($http_headers_items as $http_headers_i => $http_headers_item) { |
| 84 |
if ($http_headers_i > 0 && $http_headers_i % 4 === 0) { |
| 85 |
?></tr><tr><?php |
| 86 |
} |
| 87 |
?><td><label><input type="checkbox" class="http-header-value" name="hh_p3p_value[<?php echo esc_attr($http_headers_item); ?>]" value="1"<?php echo !array_key_exists($http_headers_item, $http_headers_p3p_value) ? NULL : ' checked'; ?><?php echo $http_headers_p3p == 1 ? NULL : ' readonly'; ?> /> <?php echo esc_html($http_headers_item); ?></label></td><?php |
| 88 |
} |
| 89 |
?></tr></tbody></table> |
| 90 |
</td> |
| 91 |
</tr> |
| 92 |
<tr> |
| 93 |
<td>Compact PURPOSE</td> |
| 94 |
<td class="hh-td-inner"> |
| 95 |
<table><tbody><tr><?php |
| 96 |
$http_headers_items = array('CUR', 'ADM', 'DEV', 'TAI', 'PSA', 'PSD', 'IVA', 'IVD', 'CON', 'HIS', 'TEL', 'OTP'); |
| 97 |
foreach ($http_headers_items as $http_headers_i => $http_headers_item) { |
| 98 |
if ($http_headers_i > 0 && $http_headers_i % 4 === 0) { |
| 99 |
?></tr><tr><?php |
| 100 |
} |
| 101 |
?><td><label><input type="checkbox" class="http-header-value" name="hh_p3p_value[<?php echo esc_attr($http_headers_item); ?>]" value="1"<?php echo !array_key_exists($http_headers_item, $http_headers_p3p_value) ? NULL : ' checked'; ?><?php echo $http_headers_p3p == 1 ? NULL : ' readonly'; ?> /> <?php echo esc_html($http_headers_item); ?></label></td><?php |
| 102 |
} |
| 103 |
?></tr></tbody></table> |
| 104 |
</td> |
| 105 |
</tr> |
| 106 |
<tr> |
| 107 |
<td>Compact RECIPIENT</td> |
| 108 |
<td class="hh-td-inner"> |
| 109 |
<table><tbody><tr><?php |
| 110 |
$http_headers_items = array('OUR', 'DEL', 'SAM', 'UNR', 'PUB', 'OTR'); |
| 111 |
foreach ($http_headers_items as $http_headers_i => $http_headers_item) { |
| 112 |
if ($http_headers_i > 0 && $http_headers_i % 4 === 0) { |
| 113 |
?></tr><tr><?php |
| 114 |
} |
| 115 |
?><td><label><input type="checkbox" class="http-header-value" name="hh_p3p_value[<?php echo esc_attr($http_headers_item); ?>]" value="1"<?php echo !array_key_exists($http_headers_item, $http_headers_p3p_value) ? NULL : ' checked'; ?><?php echo $http_headers_p3p == 1 ? NULL : ' readonly'; ?> /> <?php echo esc_html($http_headers_item); ?></label></td><?php |
| 116 |
} |
| 117 |
?></tr></tbody></table> |
| 118 |
</td> |
| 119 |
</tr> |
| 120 |
<tr> |
| 121 |
<td>Compact RETENTION</td> |
| 122 |
<td class="hh-td-inner"> |
| 123 |
<table><tbody><tr><?php |
| 124 |
$http_headers_items = array('NOR', 'STP', 'LEG', 'BUS', 'IND'); |
| 125 |
foreach ($http_headers_items as $http_headers_i => $http_headers_item) { |
| 126 |
if ($http_headers_i > 0 && $http_headers_i % 4 === 0) { |
| 127 |
?></tr><tr><?php |
| 128 |
} |
| 129 |
?><td><label><input type="checkbox" class="http-header-value" name="hh_p3p_value[<?php echo esc_attr($http_headers_item); ?>]" value="1"<?php echo !array_key_exists($http_headers_item, $http_headers_p3p_value) ? NULL : ' checked'; ?><?php echo $http_headers_p3p == 1 ? NULL : ' readonly'; ?> /> <?php echo esc_html($http_headers_item); ?></label></td><?php |
| 130 |
} |
| 131 |
?></tr></tbody></table> |
| 132 |
</td> |
| 133 |
</tr> |
| 134 |
<tr> |
| 135 |
<td>Compact CATEGORIES</td> |
| 136 |
<td class="hh-td-inner"> |
| 137 |
<table><tbody><tr><?php |
| 138 |
$http_headers_items = array('PHY', 'ONL', 'UNI', 'PUR', 'FIN', 'COM', 'NAV', 'INT', 'DEM', 'CNT', 'STA', 'POL', 'HEA', 'PRE', 'LOC', 'GOV', 'OTC'); |
| 139 |
foreach ($http_headers_items as $http_headers_i => $http_headers_item) { |
| 140 |
if ($http_headers_i > 0 && $http_headers_i % 4 === 0) { |
| 141 |
?></tr><tr><?php |
| 142 |
} |
| 143 |
?><td><label><input type="checkbox" class="http-header-value" name="hh_p3p_value[<?php echo esc_attr($http_headers_item); ?>]" value="1"<?php echo !array_key_exists($http_headers_item, $http_headers_p3p_value) ? NULL : ' checked'; ?><?php echo $http_headers_p3p == 1 ? NULL : ' readonly'; ?> /> <?php echo esc_html($http_headers_item); ?></label></td><?php |
| 144 |
} |
| 145 |
?></tr></tbody></table> |
| 146 |
</td> |
| 147 |
</tr> |
| 148 |
<tr> |
| 149 |
<td>Compact TEST</td> |
| 150 |
<td class="hh-td-inner"> |
| 151 |
<table><tbody><tr><?php |
| 152 |
$http_headers_items = array('TST'); |
| 153 |
foreach ($http_headers_items as $http_headers_i => $http_headers_item) { |
| 154 |
if ($http_headers_i > 0 && $http_headers_i % 4 === 0) { |
| 155 |
?></tr><tr><?php |
| 156 |
} |
| 157 |
?><td><label><input type="checkbox" class="http-header-value" name="hh_p3p_value[<?php echo esc_attr($http_headers_item); ?>]" value="1"<?php echo !array_key_exists($http_headers_item, $http_headers_p3p_value) ? NULL : ' checked'; ?><?php echo $http_headers_p3p == 1 ? NULL : ' readonly'; ?> /> <?php echo esc_html($http_headers_item); ?></label></td><?php |
| 158 |
} |
| 159 |
?></tr></tbody></table> |
| 160 |
</td> |
| 161 |
</tr> |
| 162 |
</tbody> |
| 163 |
</table> |
| 164 |
|
| 165 |
</td> |
| 166 |
</tr> |