| 157 | | |
| 158 | | /** |
| 159 | | * Display a pointer for the new privacy tools. |
| 160 | | * |
| 161 | | * @since 4.9.6 |
| 162 | | */ |
| 163 | | public static function pointer_wp496_privacy() { |
| 164 | | $content = '<h3>' . __( 'Personal Data and Privacy' ) . '</h3>'; |
| 165 | | $content .= '<h4>' . __( 'Personal Data Export and Erasure' ) . '</h4>'; |
| 166 | | $content .= '<p>' . __( 'New <strong>Tools</strong> have been added to help you with personal data export and erasure requests.' ) . '</p>'; |
| 167 | | $content .= '<h4>' . __( 'Privacy Policy' ) . '</h4>'; |
| 168 | | $content .= '<p>' . __( 'Create or select your site’s privacy policy page under <strong>Settings > Privacy</strong> to keep your users informed and aware.' ) . '</p>'; |
| 169 | | |
| 170 | | if ( is_rtl() ) { |
| 171 | | $position = array( |
| 172 | | 'edge' => 'right', |
| 173 | | 'align' => 'bottom', |
| 174 | | ); |
| 175 | | } else { |
| 176 | | $position = array( |
| 177 | | 'edge' => 'left', |
| 178 | | 'align' => 'bottom', |
| 179 | | ); |
| 180 | | } |
| 181 | | |
| 182 | | $js_args = array( |
| 183 | | 'content' => $content, |
| 184 | | 'position' => $position, |
| 185 | | 'pointerClass' => 'wp-pointer arrow-bottom', |
| 186 | | 'pointerWidth' => 420, |
| 187 | | ); |
| 188 | | self::print_js( 'wp496_privacy', '#menu-tools', $js_args ); |
| 189 | | } |
| | 153 | public static function pointer_wp496_privacy() {} |