wp/wp-admin/privacy-policy-guide.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    12 if ( ! current_user_can( 'manage_privacy_options' ) ) {
    12 if ( ! current_user_can( 'manage_privacy_options' ) ) {
    13 	wp_die( __( 'Sorry, you are not allowed to manage privacy options on this site.' ) );
    13 	wp_die( __( 'Sorry, you are not allowed to manage privacy options on this site.' ) );
    14 }
    14 }
    15 
    15 
    16 if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
    16 if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
    17 	include_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
    17 	require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
    18 }
    18 }
       
    19 
       
    20 // Used in the HTML title tag.
       
    21 $title = __( 'Privacy Policy Guide' );
    19 
    22 
    20 add_filter(
    23 add_filter(
    21 	'admin_body_class',
    24 	'admin_body_class',
    22 	static function( $body_class ) {
    25 	static function ( $body_class ) {
    23 		$body_class .= ' privacy-settings ';
    26 		$body_class .= ' privacy-settings ';
    24 
    27 
    25 		return $body_class;
    28 		return $body_class;
    26 	}
    29 	}
    27 );
    30 );
    55 	</nav>
    58 	</nav>
    56 </div>
    59 </div>
    57 
    60 
    58 <hr class="wp-header-end">
    61 <hr class="wp-header-end">
    59 
    62 
    60 <div class="notice notice-error hide-if-js">
    63 <?php
    61 	<p><?php _e( 'The Privacy Settings require JavaScript.' ); ?></p>
    64 wp_admin_notice(
    62 </div>
    65 	__( 'The Privacy Settings require JavaScript.' ),
       
    66 	array(
       
    67 		'type'               => 'error',
       
    68 		'additional_classes' => array( 'hide-if-js' ),
       
    69 	)
       
    70 );
       
    71 ?>
    63 
    72 
    64 <div class="privacy-settings-body hide-if-no-js">
    73 <div class="privacy-settings-body hide-if-no-js">
    65 	<h2><?php _e( 'Privacy Policy Guide' ); ?></h2>
    74 	<h2><?php _e( 'Privacy Policy Guide' ); ?></h2>
    66 	<h3 class="section-title"><?php _e( 'Introduction' ); ?></h3>
    75 	<h3 class="section-title"><?php _e( 'Introduction' ); ?></h3>
    67 	<p><?php _e( 'This text template will help you to create your web site&#8217;s privacy policy.' ); ?></p>
    76 	<p><?php _e( 'This text template will help you to create your website&#8217;s privacy policy.' ); ?></p>
    68 	<p><?php _e( 'The template contains a suggestion of sections you most likely will need. Under each section heading you will find a short summary of what information you should provide, which will help you to get started. Some sections include suggested policy content, others will have to be completed with information from your theme and plugins.' ); ?></p>
    77 	<p><?php _e( 'The template contains a suggestion of sections you most likely will need. Under each section heading, you will find a short summary of what information you should provide, which will help you to get started. Some sections include suggested policy content, others will have to be completed with information from your theme and plugins.' ); ?></p>
    69 	<p><?php _e( 'Please edit your privacy policy content, making sure to delete the summaries, and adding any information from your theme and plugins. Once you publish your policy page, remember to add it to your navigation menu.' ); ?></p>
    78 	<p><?php _e( 'Please edit your privacy policy content, making sure to delete the summaries, and adding any information from your theme and plugins. Once you publish your policy page, remember to add it to your navigation menu.' ); ?></p>
    70 	<p><?php _e( 'It is your responsibility to write a comprehensive privacy policy, to make sure it reflects all national and international legal requirements on privacy, and to keep your policy current and accurate.' ); ?></p>
    79 	<p><?php _e( 'It is your responsibility to write a comprehensive privacy policy, to make sure it reflects all national and international legal requirements on privacy, and to keep your policy current and accurate.' ); ?></p>
    71 	<div class="privacy-settings-accordion">
    80 	<div class="privacy-settings-accordion">
    72 		<h4 class="privacy-settings-accordion-heading">
    81 		<h4 class="privacy-settings-accordion-heading">
    73 			<button aria-expanded="false" class="privacy-settings-accordion-trigger" aria-controls="privacy-settings-accordion-block-privacy-policy-guide" type="button">
    82 			<button aria-expanded="false" class="privacy-settings-accordion-trigger" aria-controls="privacy-settings-accordion-block-privacy-policy-guide" type="button">