@@ 411-425 (lines=15) @@ | ||
408 | * |
|
409 | * @since 1.6.0 |
|
410 | */ |
|
411 | private function output_register_pc_class_field_instructions() { |
|
412 | ||
413 | ?> |
|
414 | <p class="description"><?php |
|
415 | esc_html_e( 'Enable to register PC class in the global namespace.', 'wp-php-console' ); |
|
416 | echo '<br>'; |
|
417 | printf( |
|
418 | /* translators: Placeholders: %1$s, %2$s and %3$s are PHP code snippets examples */ |
|
419 | __( 'Allows to write %1$s or %2$s instructions in PHP to inspect %3$s in the JavaScript console.', 'wp-php-console' ), |
|
420 | '<code>PC::debug($var, $tag)</code>', |
|
421 | '<code>PC::magic_tag($var)</code>', |
|
422 | '<code>$var</code>' |
|
423 | ); ?></p> |
|
424 | <?php |
|
425 | } |
|
426 | ||
427 | ||
428 | /** |
|
@@ 446-459 (lines=14) @@ | ||
443 | * |
|
444 | * @since 1.6.0 |
|
445 | */ |
|
446 | private function output_show_short_paths_field_instructions() { |
|
447 | ||
448 | ?> |
|
449 | <p class="description"><?php |
|
450 | esc_html_e( 'Enable to shorten the length of PHP Console error sources and traces paths in browser JavaScript console for better readability.', 'wp-php-console' ); |
|
451 | echo '<br>'; |
|
452 | printf( |
|
453 | /* translators: Placeholders: %1$s - long server path, %2$s - shortened server path */ |
|
454 | __( 'Paths like %1$s will be displayed as %2$s', 'wp-php-console' ), |
|
455 | '<code>/server/path/to/document/root/WP/wp-admin/admin.php:31</code>', |
|
456 | '<code>/WP/wp-admin/admin.php:31</code>' |
|
457 | ); ?></p> |
|
458 | <?php |
|
459 | } |
|
460 | ||
461 | ||
462 | /** |