$(".wrap h2").first().after(<?phpechojson_encode('<div style="color: #900"><p>'.sprintf(__('Note: The <em>Disable Comments</em> plugin is currently active, and comments are completely disabled on: %s. Many of the settings below will not be applicable for those post types.','disable-comments'),implode(__(', '),$names)).'</p></div>');?>);
echo'<div class="updated fade"><p>'.sprintf(__('The <em>Disable Comments</em> plugin is active, but isn\'t configured to do anything yet. Visit the <a href="%s">configuration page</a> to choose which post types to disable comments on.','disable-comments'),esc_attr($this->settings_page_url())).'</p></div>';
$blogs=$wpdb->get_col($wpdb->prepare("SELECT blog_id FROM $wpdb->blogs WHERE site_id = %d AND public = '1' AND archived = '0' AND deleted = '0'",$wpdb->siteid));
$this->options['extra_post_types']=array_diff($extra_post_types,array_keys($types));// Make sure we don't double up builtins
}
$this->update_options();
$cache_message=WP_CACHE?' <strong>'.__('If a caching/performance plugin is active, please invalidate its cache to ensure that changes are reflected immediately.').'</strong>':'';
echo'<div id="message" class="updated"><p>'.__('Options updated. Changes to the Admin Menu and Admin Bar will not appear until you leave or reload this page.','disable-comments').$cache_message.'</p></div>';
echo'<div class="updated"><p>'.__('<em>Disable Comments</em> is Network Activated. The settings below will affect <strong>all sites</strong> in this network.','disable-comments').'</p></div>';
if(WP_CACHE)
echo'<div class="updated"><p>'.__("It seems that a caching/performance plugin is active on this site. Please manually invalidate that plugin's cache after making any changes to the settings below.",'disable-comments').'</p></div>';
?>
<formaction=""method="post"id="disable-comments">
<ul>
<li><labelfor="remove_everywhere"><inputtype="radio"id="remove_everywhere"name="mode"value="remove_everywhere"<?phpchecked($this->options['remove_everywhere']);?>/><strong><?php_e('Everywhere','disable-comments')?></strong>: <?php_e('Disable all comment-related controls and settings in WordPress.','disable-comments')?></label>
<pclass="indent"><?phpprintf(__('%s: This option is global and will affect your entire site. Use it only if you want to disable comments <em>everywhere</em>. A complete description of what this option does is <a href="%s" target="_blank">available here</a>.','disable-comments'),'<strong style="color: #900">'.__('Warning','disable-comments').'</strong>','https://wordpress.org/plugins/disable-comments/other_notes/');?></p>
</li>
<li><labelfor="selected_types"><inputtype="radio"id="selected_types"name="mode"value="selected_types"<?phpchecked(!$this->options['remove_everywhere']);?>/><strong><?php_e('On certain post types','disable-comments')?></strong>:</label>
<pclass="indent"id="extratypes"><?php_e('Only the built-in post types appear above. If you want to disable comments on other custom post types on the entire network, you can supply a comma-separated list of post types below (use the slug that identifies the post type).','disable-comments');?>
<br/><label><?php_e('Custom post types:','disable-comments');?><inputtype="text"name="extra_post_types"size="30"value="<?phpechoimplode(', ',(array)$this->options['extra_post_types']);?>"/></label></p>
<?phpendif;?>
<pclass="indent"><?php_e('Disabling comments will also disable trackbacks and pingbacks. All comment-related fields will also be hidden from the edit/quick-edit screens of the affected posts. These settings cannot be overridden for individual posts.','disable-comments')?></p>
echo'<p class="indent">'.sprintf(__('%s: <strong>This will make persistent changes to your database — comments will remain closed even if you later disable the plugin!</strong> You should not use it if you only want to disable comments temporarily. Please <a href="%s" target="_blank">read the FAQ</a> before selecting this option.','disable-comments'),'<strong style="color: #900">'.__('Warning','disable-comments').'</strong>','https://wordpress.org/plugins/disable-comments/faq/').'</p>';
if($this->networkactive)
echo'<p class="indent">'.sprintf(__('%s: Entering persistent mode on large multi-site networks requires a large number of database queries and can take a while. Use with caution!','disable-comments'),'<strong style="color: #900">'.__('Warning','disable-comments').'</strong>').'</p>';
if($(this).is(":checked")&&!confirm(<?phpechojson_encode(sprintf(__('%s: Selecting this option will make persistent changes to your database. Are you sure you want to enable it?','disable-comments'),__('Warning','disable-comments')));?>))