function admin_notices()
{
if ($this->error) {
?>
<div id="message" class="jetpack-message jetpack-err">
<div class="squeezer">
<h2><?php
echo wp_kses($this->error, array('a' => array('href' => array()), 'small' => true, 'code' => true, 'strong' => true, 'br' => true, 'b' => true));
?>
</h2>
<?php
if ($desc = Jetpack::state('error_description')) {
?>
<p><?php
echo esc_html(stripslashes($desc));
?>
</p>
<?php
}
?>
</div>
</div>
<?php
}
if ($this->message) {
?>
<div id="message" class="jetpack-message">
<div class="squeezer">
<h2><?php
echo wp_kses($this->message, array('strong' => array(), 'a' => array('href' => true), 'br' => true));
?>
</h2>
</div>
</div>
<?php
}
if ($this->privacy_checks) {
$module_names = $module_slugs = array();
$privacy_checks = explode(',', $this->privacy_checks);
$privacy_checks = array_filter($privacy_checks, array('Jetpack', 'is_module'));
foreach ($privacy_checks as $module_slug) {
$module = Jetpack::get_module($module_slug);
if (!$module) {
continue;
}
$module_slugs[] = $module_slug;
$module_names[] = "<strong>{$module['name']}</strong>";
}
$module_slugs = join(',', $module_slugs);
?>
<div id="message" class="jetpack-message jetpack-err">
<div class="squeezer">
<h2><strong><?php
esc_html_e('Is this site private?', 'jetpack');
?>
</strong></h2><br />
<p><?php
echo wp_kses(wptexturize(wp_sprintf(_nx("Like your site's RSS feeds, %l allows access to your posts and other content to third parties.", "Like your site's RSS feeds, %l allow access to your posts and other content to third parties.", count($privacy_checks), '%l = list of Jetpack module/feature names', 'jetpack'), $module_names)), array('strong' => true));
echo "\n<br />\n";
echo wp_kses(sprintf(_nx('If your site is not publicly accessible, consider <a href="%1$s" title="%2$s">deactivating this feature</a>.', 'If your site is not publicly accessible, consider <a href="%1$s" title="%2$s">deactivating these features</a>.', count($privacy_checks), '%1$s = deactivation URL, %2$s = "Deactivate {list of Jetpack module/feature names}', 'jetpack'), wp_nonce_url(Jetpack::admin_url(array('page' => 'jetpack', 'action' => 'deactivate', 'module' => urlencode($module_slugs))), "jetpack_deactivate-{$module_slugs}"), esc_attr(wp_kses(wp_sprintf(_x('Deactivate %l', '%l = list of Jetpack module/feature names', 'jetpack'), $module_names), array()))), array('a' => array('href' => true, 'title' => true)));
?>
</p>
</div>
</div>
<?php
}
// only display the notice if the other stuff is not there
if ($this->can_display_jetpack_manage_notice() && !$this->error && !$this->message && !$this->privacy_checks) {
if (isset($_GET['page']) && 'jetpack' != $_GET['page']) {
$this->opt_in_jetpack_manage_notice();
}
}
}